From 57fef76117e51d3b7d511c17f5433a775c0b2223 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 9 Sep 2024 23:52:02 +0200 Subject: [PATCH] :rotating_light: Linter updated --- packages/shared/src/standardObjects.ts | 103 ++++++++++++------------- 1 file changed, 51 insertions(+), 52 deletions(-) diff --git a/packages/shared/src/standardObjects.ts b/packages/shared/src/standardObjects.ts index 4cc6f6e04..aeba4720f 100644 --- a/packages/shared/src/standardObjects.ts +++ b/packages/shared/src/standardObjects.ts @@ -103,7 +103,7 @@ export enum TicketingObject { ticket = 'ticket', comment = 'comment', user = 'user', - //attachment = 'attachment', + // attachment = 'attachment', contact = 'contact', account = 'account', tag = 'tag', @@ -124,59 +124,58 @@ export const standardObjects = [ ...prependPrefixToEnumValues('ecommerce', EcommerceObject), ]; - export function getCrmCommonObjects(): string[] { return Object.values(CrmObject); } - export function getHrisCommonObjects(): string[] { - return Object.values(HrisObject); - } - - export function getAtsCommonObjects(): string[] { - return Object.values(AtsObject); - } - - export function getAccountingCommonObjects(): string[] { - return Object.values(AccountingObject); - } - - export function getEcommerceCommonObjects(): string[] { - return Object.values(EcommerceObject); - } - - export function getFileStorageCommonObjects(): string[] { - return Object.values(FileStorageObject); - } - - export function getMarketingAutomationCommonObjects(): string[] { - return Object.values(MarketingAutomationObject); - } - - export function getTicketingCommonObjects(): string[] { - return Object.values(TicketingObject); +export function getHrisCommonObjects(): string[] { + return Object.values(HrisObject); +} + +export function getAtsCommonObjects(): string[] { + return Object.values(AtsObject); +} + +export function getAccountingCommonObjects(): string[] { + return Object.values(AccountingObject); +} + +export function getEcommerceCommonObjects(): string[] { + return Object.values(EcommerceObject); +} + +export function getFileStorageCommonObjects(): string[] { + return Object.values(FileStorageObject); +} + +export function getMarketingAutomationCommonObjects(): string[] { + return Object.values(MarketingAutomationObject); +} + +export function getTicketingCommonObjects(): string[] { + return Object.values(TicketingObject); +} + +// A utility function to get common objects for any vertical +export function getCommonObjectsForVertical(vertical: string): string[] { + switch (vertical.toLowerCase()) { + case 'crm': + return getCrmCommonObjects(); + case 'hris': + return getHrisCommonObjects(); + case 'ats': + return getAtsCommonObjects(); + case 'accounting': + return getAccountingCommonObjects(); + case 'ecommerce': + return getEcommerceCommonObjects(); + case 'filestorage': + return getFileStorageCommonObjects(); + case 'marketingautomation': + return getMarketingAutomationCommonObjects(); + case 'ticketing': + return getTicketingCommonObjects(); + default: + throw new Error(`Unknown vertical: ${vertical}`); } - - // A utility function to get common objects for any vertical - export function getCommonObjectsForVertical(vertical: string): string[] { - switch (vertical.toLowerCase()) { - case 'crm': - return getCrmCommonObjects(); - case 'hris': - return getHrisCommonObjects(); - case 'ats': - return getAtsCommonObjects(); - case 'accounting': - return getAccountingCommonObjects(); - case 'ecommerce': - return getEcommerceCommonObjects(); - case 'filestorage': - return getFileStorageCommonObjects(); - case 'marketingautomation': - return getMarketingAutomationCommonObjects(); - case 'ticketing': - return getTicketingCommonObjects(); - default: - throw new Error(`Unknown vertical: ${vertical}`); - } - } \ No newline at end of file +}