The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { CliError } from '@/output/cli-error';
import { EXIT_CODE } from '@/output/constants/exit-code.constant';
export const createAppNotInstalledError = ({
universalIdentifier,
apiUrl,
hint,
}: {
universalIdentifier: string;
apiUrl: string;
hint?: string;
}) =>
new CliError({
code: 'APP_NOT_INSTALLED',
exitCode: EXIT_CODE.NOT_FOUND,
message: `No app with universal identifier ${universalIdentifier} is installed on ${apiUrl}.`,
hint,
details: { universalIdentifier },
});