Skip to content

Commit

Permalink
🚑 Fixed Zoho Mappers Ids
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed May 2, 2024
1 parent 0dd0ad4 commit c574efe
Show file tree
Hide file tree
Showing 163 changed files with 1,160 additions and 1,125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { v4 as uuidv4 } from 'uuid';
import axios from 'axios';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { CrmObject } from '@crm/@utils/@types';
import { CrmObject } from '@crm/@lib/@types';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { providersConfig } from '@panora/shared';

Expand Down
14 changes: 7 additions & 7 deletions packages/api/src/@core/utils/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CrmObject, UnifiedCrm } from '@crm/@utils/@types';
import { HrisObject } from '@hris/@types';
import { AtsObject, UnifiedAts } from '@ats/@types';
import { AccountingObject } from '@accounting/@types';
import { TicketingObject, UnifiedTicketing } from '@ticketing/@utils/@types';
import { CrmObject, UnifiedCrm } from '@crm/@lib/@types';
import { HrisObject } from '@hris/@lib/@types';
import { AtsObject, UnifiedAts } from '@ats/@lib/@types';
import { AccountingObject } from '@accounting/@lib/@types';
import { TicketingObject, UnifiedTicketing } from '@ticketing/@lib/@types';
import {
ApiExtraModels,
ApiOkResponse,
Expand All @@ -11,8 +11,8 @@ import {
getSchemaPath,
} from '@nestjs/swagger';
import { Type, applyDecorators } from '@nestjs/common';
import { FileStorageObject } from '@filestorage/@types';
import { MarketingAutomationObject } from '@marketingautomation/@types';
import { FileStorageObject } from '@filestorage/@lib/@types';
import { MarketingAutomationObject } from '@marketingautomation/@lib/@types';

export type Unified = UnifiedCrm | UnifiedAts | UnifiedTicketing;
export type UnifyReturnType = Unified | Unified[];
Expand Down
21 changes: 13 additions & 8 deletions packages/api/src/@core/utils/types/original/original.crm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { AttioCompanyOutput } from '@crm/company/services/attio/types';
import { HubspotCompanyOutput } from '@crm/company/services/hubspot/types';
import { PipedriveCompanyOutput } from '@crm/company/services/pipedrive/types';
import { ZendeskCompanyOutput } from '@crm/company/services/zendesk/types';
import { ZohoCompanyOutput } from '@crm/company/services/zoho/types';
import {
AttioContactInput,
AttioContactOutput,
} from '@crm/contact/services/attio/types';
import {
HubspotContactInput,
HubspotContactOutput,
Expand All @@ -18,7 +23,6 @@ import { HubspotDealOutput } from '@crm/deal/services/hubspot/types';
import { PipedriveDealOutput } from '@crm/deal/services/pipedrive/types';
import { ZendeskDealOutput } from '@crm/deal/services/zendesk/types';
import { ZohoDealOutput } from '@crm/deal/services/zoho/types';

import {
HubspotEngagementInput,
HubspotEngagementOutput,
Expand All @@ -35,7 +39,6 @@ import {
ZohoEngagementInput,
ZohoEngagementOutput,
} from '@crm/engagement/services/zoho/types';

import {
HubspotNoteInput,
HubspotNoteOutput,
Expand All @@ -49,7 +52,6 @@ import {
ZendeskNoteOutput,
} from '@crm/note/services/zendesk/types';
import { ZohoNoteInput, ZohoNoteOutput } from '@crm/note/services/zoho/types';

import {
HubspotStageInput,
HubspotStageOutput,
Expand All @@ -66,7 +68,6 @@ import {
ZohoStageInput,
ZohoStageOutput,
} from '@crm/stage/services/zoho/types';

import {
HubspotTaskInput,
HubspotTaskOutput,
Expand Down Expand Up @@ -105,7 +106,8 @@ export type OriginalContactInput =
| HubspotContactInput
| ZohoContactInput
| ZendeskContactInput
| PipedriveContactInput;
| PipedriveContactInput
| AttioContactInput;

/* deal */
export type OriginalDealInput =
Expand All @@ -119,7 +121,8 @@ export type OriginalCompanyInput =
| HubspotCompanyOutput
| ZohoCompanyOutput
| ZendeskCompanyOutput
| PipedriveCompanyOutput;
| PipedriveCompanyOutput
| AttioCompanyOutput;

/* engagement */
export type OriginalEngagementInput =
Expand Down Expand Up @@ -174,7 +177,8 @@ export type OriginalContactOutput =
| HubspotContactOutput
| ZohoContactOutput
| ZendeskContactOutput
| PipedriveContactOutput;
| PipedriveContactOutput
| AttioContactOutput;

/* deal */
export type OriginalDealOutput =
Expand All @@ -188,7 +192,8 @@ export type OriginalCompanyOutput =
| HubspotCompanyOutput
| ZohoCompanyOutput
| ZendeskCompanyOutput
| PipedriveCompanyOutput;
| PipedriveCompanyOutput
| AttioCompanyOutput;

/* engagement */
export type OriginalEngagementOutput =
Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/@core/utils/unification/desunify.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CrmObject } from '@crm/@utils/@types';
import { CrmObject } from '@crm/@lib/@types';
import { TargetObject, Unified } from '../types';
import { desunifyCrm } from '@crm/@utils/@unification';
import { TicketingObject } from '@ticketing/@utils/@types';
import { desunifyTicketing } from '@ticketing/@utils/@unification';
import { desunifyCrm } from '@crm/@lib/@unification';
import { TicketingObject } from '@ticketing/@lib/@types';
import { desunifyTicketing } from '@ticketing/@lib/@unification';
import { DesunifyReturnType } from '../types/desunify.input';
import { ProviderVertical } from '@panora/shared';

Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/@core/utils/unification/unify.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CrmObject } from '@crm/@utils/@types';
import { CrmObject } from '@crm/@lib/@types';
import { TargetObject, UnifyReturnType } from '../types';
import { unifyCrm } from '@crm/@utils/@unification';
import { TicketingObject } from '@ticketing/@utils/@types';
import { unifyTicketing } from '@ticketing/@utils/@unification';
import { unifyCrm } from '@crm/@lib/@unification';
import { TicketingObject } from '@ticketing/@lib/@types';
import { unifyTicketing } from '@ticketing/@lib/@unification';
import { UnifySourceType } from '../types/unify.output';
import { ProviderVertical } from '@panora/shared';

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export type ICrmService =
| IStageService
| ICompanyService;

export const ENGAGEMENTS_TYPE = ['CALL', 'MEETING', 'EMAIL'];

export enum Industry {
ACCOUNTING = 'ACCOUNTING',
AIRLINES_AVIATION = 'AIRLINES_AVIATION',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CrmObject, unificationMapping } from '@crm/@utils/@types';
import { CrmObject, unificationMapping } from '@crm/@lib/@types';
import { Unified, UnifyReturnType } from '@@core/utils/types';
import { UnifySourceType } from '@@core/utils/types/unify.output';
import { CrmObjectInput } from '@@core/utils/types/original/original.crm';
Expand Down
Loading

0 comments on commit c574efe

Please sign in to comment.