Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mit-27 committed Sep 14, 2024
1 parent 5a60903 commit 9cbd823
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 15 deletions.
1 change: 1 addition & 0 deletions packages/api/scripts/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ CREATE TABLE connector_sets
fs_googledrive boolean NULL,
fs_sharepoint boolean NULL,
fs_onedrive boolean NULL,
crm_affinity boolean NULL,
CONSTRAINT PK_project_connector PRIMARY KEY ( id_connector_set )
);

Expand Down
8 changes: 4 additions & 4 deletions packages/api/scripts/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ INSERT INTO users (id_user, identification_strategy, email, password_hash, first
('0ce39030-2901-4c56-8db0-5e326182ec6b', 'b2c','[email protected]', '$2b$10$Y7Q8TWGyGuc5ecdIASbBsuXMo3q/Rs3/cnY.mLZP4tUgfGUOCUBlG', 'local', 'Panora');


INSERT INTO connector_sets (id_connector_set, crm_hubspot, crm_zoho, crm_pipedrive, crm_attio, crm_zendesk, crm_close, tcg_zendesk, tcg_gorgias, tcg_front, tcg_jira, tcg_gitlab, fs_box, tcg_github, hris_deel, hris_sage, ats_ashby, crm_microsoftdynamicssales, ecom_webflow, tcg_linear, ecom_shopify, ecom_woocommerce, ecom_amazon, ecom_squarespace, hris_gusto, fs_googledrive, fs_dropbox, fs_sharepoint, fs_onedrive) VALUES
('1709da40-17f7-4d3a-93a0-96dc5da6ddd7', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('852dfff8-ab63-4530-ae49-e4b2924407f8', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('aed0f856-f802-4a79-8640-66d441581a99', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);
INSERT INTO connector_sets (id_connector_set, crm_hubspot, crm_zoho, crm_pipedrive, crm_attio, crm_zendesk, crm_close, tcg_zendesk, tcg_gorgias, tcg_front, tcg_jira, tcg_gitlab, fs_box, tcg_github, hris_deel, hris_sage, ats_ashby, crm_microsoftdynamicssales, ecom_webflow, tcg_linear, ecom_shopify, ecom_woocommerce, ecom_amazon, ecom_squarespace, hris_gusto, fs_googledrive, fs_dropbox, fs_sharepoint, fs_onedrive,crm_affinity) VALUES
('1709da40-17f7-4d3a-93a0-96dc5da6ddd7', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('852dfff8-ab63-4530-ae49-e4b2924407f8', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('aed0f856-f802-4a79-8640-66d441581a99', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);

INSERT INTO projects (id_project, name, sync_mode, id_user, id_connector_set) VALUES
('1e468c15-aa57-4448-aa2b-7fed640d1e3d', 'Project 1', 'pull', '0ce39030-2901-4c56-8db0-5e326182ec6b', '1709da40-17f7-4d3a-93a0-96dc5da6ddd7'),
Expand Down
18 changes: 11 additions & 7 deletions packages/api/src/@core/utils/types/original/original.crm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@


import { AffinityCompanyInput, AffinityCompanyOutput } from '@crm/company/services/affinity/types';
import { AffinityDealInput, AffinityDealOutput } from '@crm/deal/services/affinity/types';
import { AffinityNoteInput, AffinityNoteOutput } from '@crm/note/services/affinity/types';
import { AffinityUserInput, AffinityUserOutput } from '@crm/user/services/affinity/types';
import { AffinityContactInput, AffinityContactOutput } from '@crm/contact/services/affinity/types';
import { MicrosoftdynamicssalesEngagementInput, MicrosoftdynamicssalesEngagementOutput } from '@crm/engagement/services/microsoftdynamicssales/types';

import { MicrosoftdynamicssalesTaskInput, MicrosoftdynamicssalesTaskOutput } from '@crm/task/services/microsoftdynamicssales/types';
Expand Down Expand Up @@ -172,7 +176,7 @@ export type OriginalContactInput =
| ZendeskContactInput
| PipedriveContactInput
| AttioContactInput
| CloseContactInput
| CloseContactInput
| MicrosoftdynamicssalesContactInput
| SalesforceContactInput;

Expand All @@ -184,7 +188,7 @@ export type OriginalDealInput =
| ZendeskDealOutput
| PipedriveDealOutput
| CloseDealOutput
| AttioDealInput
| AttioDealInput
| MicrosoftdynamicssalesDealInput
| SalesforceDealInput

Expand Down Expand Up @@ -223,7 +227,7 @@ export type OriginalTaskInput =
| ZendeskTaskInput
| PipedriveTaskInput
| CloseTaskInput
| AttioTaskInput | MicrosoftdynamicssalesTaskInput | SalesforceTaskInput;
| AttioTaskInput | MicrosoftdynamicssalesTaskInput | SalesforceTaskInput;

/* stage */
export type OriginalStageInput =
Expand All @@ -242,7 +246,7 @@ export type OriginalUserInput =
| ZohoUserInput
| ZendeskUserInput
| PipedriveUserInput
| CloseUserOutput | MicrosoftdynamicssalesUserInput | SalesforceUserInput
| CloseUserOutput | MicrosoftdynamicssalesUserInput | SalesforceUserInput

export type CrmObjectInput =
| OriginalContactInput
Expand Down Expand Up @@ -301,7 +305,7 @@ export type OriginalNoteOutput =
| ZendeskNoteOutput
| PipedriveNoteOutput
| CloseNoteOutput
| AttioNoteOutput | MicrosoftdynamicssalesNoteOutput | SalesforceNoteOutput;
| AttioNoteOutput | MicrosoftdynamicssalesNoteOutput | SalesforceNoteOutput;

/* task */
export type OriginalTaskOutput =
Expand Down Expand Up @@ -330,7 +334,7 @@ export type OriginalUserOutput =
| ZendeskUserOutput
| PipedriveUserOutput
| CloseUserInput
| AttioUserOutput | MicrosoftdynamicssalesUserOutput| SalesforceUserOutput;
| AttioUserOutput | MicrosoftdynamicssalesUserOutput | SalesforceUserOutput;

export type CrmObjectOutput =
| OriginalContactOutput
Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/crm/company/company.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { ZohoService } from './services/zoho';
import { ZohoCompanyMapper } from './services/zoho/mappers';
import { SyncService } from './sync/sync.service';
import { SalesforceCompanyMapper } from './services/salesforce/mappers';
import { AffinityCompanyMapper } from './services/affinity/mappers';
import { AffinityService } from './services/affinity';

@Module({
controllers: [CompanyController],
Expand Down Expand Up @@ -56,4 +58,4 @@ import { SalesforceCompanyMapper } from './services/salesforce/mappers';
],
exports: [SyncService, ServiceRegistry, WebhookService],
})
export class CompanyModule {}
export class CompanyModule { }
4 changes: 3 additions & 1 deletion packages/api/src/crm/contact/contact.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { ZohoService } from './services/zoho';
import { ZohoContactMapper } from './services/zoho/mappers';
import { SyncService } from './sync/sync.service';
import { SalesforceContactMapper } from './services/salesforce/mappers';
import { AffinityContactMapper } from './services/affinity/mappers';
import { AffinityService } from './services/affinity';

@Module({
controllers: [ContactController],
Expand Down Expand Up @@ -57,4 +59,4 @@ import { SalesforceContactMapper } from './services/salesforce/mappers';
],
exports: [SyncService, ServiceRegistry, WebhookService],
})
export class ContactModule {}
export class ContactModule { }
4 changes: 3 additions & 1 deletion packages/api/src/crm/deal/deal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { ZohoService } from './services/zoho';
import { ZohoDealMapper } from './services/zoho/mappers';
import { SyncService } from './sync/sync.service';
import { SalesforceDealMapper } from './services/salesforce/mappers';
import { AffinityDealMapper } from './services/affinity/mappers';
import { AffinityService } from './services/affinity';

@Module({
controllers: [DealController],
Expand Down Expand Up @@ -55,4 +57,4 @@ import { SalesforceDealMapper } from './services/salesforce/mappers';
],
exports: [SyncService, ServiceRegistry, WebhookService],
})
export class DealModule {}
export class DealModule { }
4 changes: 3 additions & 1 deletion packages/api/src/crm/note/note.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { ZohoService } from './services/zoho';
import { ZohoNoteMapper } from './services/zoho/mappers';
import { SyncService } from './sync/sync.service';
import { SalesforceNoteMapper } from './services/salesforce/mappers';
import { AffinityNoteMapper } from './services/affinity/mappers';
import { AffinityService } from './services/affinity';
@Module({
controllers: [NoteController],
providers: [
Expand Down Expand Up @@ -54,4 +56,4 @@ import { SalesforceNoteMapper } from './services/salesforce/mappers';
],
exports: [SyncService, ServiceRegistry, WebhookService],
})
export class NoteModule {}
export class NoteModule { }
1 change: 1 addition & 0 deletions packages/shared/src/connectors/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export enum CrmConnectors {
ATTIO = 'attio',
CLOSE = 'close',
MICROSOFTDYNAMICSSALES = 'microsoftdynamicssales',
AFFINITY = 'affinity',
}

export enum EcommerceConnectors {
Expand Down

0 comments on commit 9cbd823

Please sign in to comment.