Skip to content

Commit

Permalink
🚧 WIP crm
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jan 9, 2024
1 parent eb947b8 commit 331837a
Show file tree
Hide file tree
Showing 198 changed files with 15,011 additions and 232 deletions.
555 changes: 483 additions & 72 deletions packages/api/scripts/commonObject.sh

Large diffs are not rendered by default.

218 changes: 212 additions & 6 deletions packages/api/src/@core/utils/types/original/original.crm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,83 @@ import {
PipedriveContactOutput,
ZendeskContactOutput,
ZohoContactOutput,
FreshsalesCompanyOutput,
HubspotCompanyOutput,
PipedriveCompanyOutput,
ZendeskCompanyOutput,
ZohoCompanyOutput,
FreshsalesEngagementInput,
FreshsalesEngagementOutput,
FreshsalesLeadInput,
FreshsalesLeadOutput,
FreshsalesNoteInput,
FreshsalesNoteOutput,
FreshsalesStageInput,
FreshsalesStageOutput,
FreshsalesTaskInput,
FreshsalesTaskOutput,
HubspotDealOutput,
HubspotEngagementInput,
HubspotEngagementOutput,
HubspotLeadInput,
HubspotLeadOutput,
HubspotStageInput,
HubspotStageOutput,
HubspotTaskInput,
HubspotTaskOutput,
PipedriveEngagementInput,
PipedriveEngagementOutput,
PipedriveLeadInput,
PipedriveLeadOutput,
PipedriveStageInput,
PipedriveStageOutput,
PipedriveTaskInput,
PipedriveTaskOutput,
ZendeskEngagementInput,
ZendeskEngagementOutput,
ZendeskLeadInput,
ZendeskLeadOutput,
ZendeskStageInput,
ZendeskStageOutput,
ZendeskTaskInput,
ZendeskTaskOutput,
ZohoEngagementInput,
ZohoEngagementOutput,
ZohoLeadInput,
ZohoLeadOutput,
ZohoNoteInput,
ZohoNoteOutput,
ZohoStageInput,
ZohoStageOutput,
ZohoTaskInput,
ZohoTaskOutput,
FreshsalesUserOutput,
HubspotUserOutput,
PipedriveUserOutput,
ZendeskUserOutput,
ZohoUserOutput,
FreshsalesUserInput,
HubspotUserInput,
PipedriveUserInput,
ZendeskUserInput,
ZohoUserInput,
} from '@crm/@utils/@types';
import { FreshsalesDealOutput } from '@crm/deal/services/freshsales/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 {
HubspotNoteInput,
HubspotNoteOutput,
} from '@crm/note/services/hubspot/types';
import {
PipedriveNoteInput,
PipedriveNoteOutput,
} from '@crm/note/services/pipedrive/types';
import {
ZendeskNoteInput,
ZendeskNoteOutput,
} from '@crm/note/services/zendesk/types';

/* INPUT */

Expand All @@ -22,15 +98,79 @@ export type OriginalContactInput =
| PipedriveContactInput;

/* deal */
export type OriginalDealInput = '';
export type OriginalDealInput =
| FreshsalesDealOutput
| HubspotDealOutput
| ZohoDealOutput
| ZendeskDealOutput
| PipedriveDealOutput;

/* company */
export type OriginalCompanyInput = '';
export type OriginalCompanyInput =
| FreshsalesCompanyOutput
| HubspotCompanyOutput
| ZohoCompanyOutput
| ZendeskCompanyOutput
| PipedriveCompanyOutput;

/* engagement */
export type OriginalEngagementInput =
| FreshsalesEngagementInput
| HubspotEngagementInput
| ZohoEngagementInput
| ZendeskEngagementInput
| PipedriveEngagementInput;

/* note */
export type OriginalNoteInput =
| FreshsalesNoteInput
| HubspotNoteInput
| ZohoNoteInput
| ZendeskNoteInput
| PipedriveNoteInput;

/* task */
export type OriginalTaskInput =
| FreshsalesTaskInput
| HubspotTaskInput
| ZohoTaskInput
| ZendeskTaskInput
| PipedriveTaskInput;

/* stage */
export type OriginalStageInput =
| FreshsalesStageInput
| HubspotStageInput
| ZohoStageInput
| ZendeskStageInput
| PipedriveStageInput;

/* lead */
export type OriginalLeadInput =
| FreshsalesLeadInput
| HubspotLeadInput
| ZohoLeadInput
| ZendeskLeadInput
| PipedriveLeadInput;

/* user */
export type OriginalUserInput =
| FreshsalesUserInput
| HubspotUserInput
| ZohoUserInput
| ZendeskUserInput
| PipedriveUserInput;

export type CrmObjectInput =
| OriginalContactInput
| OriginalDealInput
| OriginalCompanyInput;
| OriginalCompanyInput
| OriginalEngagementInput
| OriginalNoteInput
| OriginalTaskInput
| OriginalStageInput
| OriginalLeadInput
| OriginalUserInput;

/* OUTPUT */

Expand All @@ -41,11 +181,77 @@ export type OriginalContactOutput =
| ZendeskContactOutput
| PipedriveContactOutput;

export type OriginalCompanyOutput = '';
/* deal */
export type OriginalDealOutput =
| FreshsalesDealOutput
| HubspotDealOutput
| ZohoDealOutput
| ZendeskDealOutput
| PipedriveDealOutput;

/* company */
export type OriginalCompanyOutput =
| FreshsalesCompanyOutput
| HubspotCompanyOutput
| ZohoCompanyOutput
| ZendeskCompanyOutput
| PipedriveCompanyOutput;

/* engagement */
export type OriginalEngagementOutput =
| FreshsalesEngagementOutput
| HubspotEngagementOutput
| ZohoEngagementOutput
| ZendeskEngagementOutput
| PipedriveEngagementOutput;

/* note */
export type OriginalNoteOutput =
| FreshsalesNoteOutput
| HubspotNoteOutput
| ZohoNoteOutput
| ZendeskNoteOutput
| PipedriveNoteOutput;

/* task */
export type OriginalTaskOutput =
| FreshsalesTaskOutput
| HubspotTaskOutput
| ZohoTaskOutput
| ZendeskTaskOutput
| PipedriveTaskOutput;

/* stage */
export type OriginalStageOutput =
| FreshsalesStageOutput
| HubspotStageOutput
| ZohoStageOutput
| ZendeskStageOutput
| PipedriveStageOutput;

/* lead */
export type OriginalLeadOutput =
| FreshsalesLeadOutput
| HubspotLeadOutput
| ZohoLeadOutput
| ZendeskLeadOutput
| PipedriveLeadOutput;

export type OriginalDealOutput = '';
/* user */
export type OriginalUserOutput =
| FreshsalesUserOutput
| HubspotUserOutput
| ZohoUserOutput
| ZendeskUserOutput
| PipedriveUserOutput;

export type CrmObjectOutput =
| OriginalContactOutput
| OriginalDealOutput
| OriginalCompanyOutput;
| OriginalCompanyOutput
| OriginalEngagementOutput
| OriginalNoteOutput
| OriginalTaskOutput
| OriginalStageOutput
| OriginalLeadOutput
| OriginalUserOutput;
Loading

0 comments on commit 331837a

Please sign in to comment.