Skip to content

Commit

Permalink
🐛 Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Mar 26, 2024
1 parent 82873a8 commit d30dfc9
Show file tree
Hide file tree
Showing 85 changed files with 244 additions and 350 deletions.
143 changes: 93 additions & 50 deletions packages/api/src/@core/utils/types/original/original.crm.ts
Original file line number Diff line number Diff line change
@@ -1,69 +1,53 @@
import { FreshsalesCompanyOutput } from '@crm/company/services/freshsales/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 {
FreshsalesContactInput,
HubspotContactInput,
PipedriveContactInput,
ZendeskContactInput,
ZohoContactInput,
FreshsalesContactOutput,
} from '@crm/contact/services/freshsales/types';
import {
HubspotContactInput,
HubspotContactOutput,
} from '@crm/contact/services/hubspot/types';
import {
PipedriveContactInput,
PipedriveContactOutput,
ZendeskContactOutput,
} from '@crm/contact/services/pipedrive/types';
import {
ZohoContactInput,
ZohoContactOutput,
FreshsalesCompanyOutput,
HubspotCompanyOutput,
PipedriveCompanyOutput,
ZendeskCompanyOutput,
ZohoCompanyOutput,
} from '@crm/contact/services/zoho/types';
import { FreshsalesDealOutput } from '@crm/deal/services/freshsales/types';
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 {
FreshsalesEngagementInput,
FreshsalesEngagementOutput,
FreshsalesNoteInput,
FreshsalesNoteOutput,
FreshsalesStageInput,
FreshsalesStageOutput,
FreshsalesTaskInput,
FreshsalesTaskOutput,
HubspotDealOutput,
} from '@crm/engagement/services/freshsales/types';
import {
HubspotEngagementInput,
HubspotEngagementOutput,
HubspotStageInput,
HubspotStageOutput,
HubspotTaskInput,
HubspotTaskOutput,
} from '@crm/engagement/services/hubspot/types';
import {
PipedriveEngagementInput,
PipedriveEngagementOutput,
PipedriveStageInput,
PipedriveStageOutput,
PipedriveTaskInput,
PipedriveTaskOutput,
} from '@crm/engagement/services/pipedrive/types';
import {
ZendeskEngagementInput,
ZendeskEngagementOutput,
ZendeskStageInput,
ZendeskStageOutput,
ZendeskTaskInput,
ZendeskTaskOutput,
} from '@crm/engagement/services/zendesk/types';
import {
ZohoEngagementInput,
ZohoEngagementOutput,
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';
} from '@crm/engagement/services/zoho/types';
import {
FreshsalesNoteInput,
FreshsalesNoteOutput,
} from '@crm/note/services/freshsales/types';
import {
HubspotNoteInput,
HubspotNoteOutput,
Expand All @@ -76,6 +60,65 @@ import {
ZendeskNoteInput,
ZendeskNoteOutput,
} from '@crm/note/services/zendesk/types';
import { ZohoNoteInput, ZohoNoteOutput } from '@crm/note/services/zoho/types';
import {
FreshsalesStageInput,
FreshsalesStageOutput,
} from '@crm/stage/services/freshsales/types';
import {
HubspotStageInput,
HubspotStageOutput,
} from '@crm/stage/services/hubspot/types';
import {
PipedriveStageInput,
PipedriveStageOutput,
} from '@crm/stage/services/pipedrive/types';
import {
ZendeskStageInput,
ZendeskStageOutput,
} from '@crm/stage/services/zendesk/types';
import {
ZohoStageInput,
ZohoStageOutput,
} from '@crm/stage/services/zoho/types';
import {
FreshsalesTaskInput,
FreshsalesTaskOutput,
} from '@crm/task/services/freshsales/types';
import {
HubspotTaskInput,
HubspotTaskOutput,
} from '@crm/task/services/hubspot/types';
import {
PipedriveTaskInput,
PipedriveTaskOutput,
} from '@crm/task/services/pipedrive/types';
import {
ZendeskTaskInput,
ZendeskTaskOutput,
} from '@crm/task/services/zendesk/types';
import { ZohoTaskInput, ZohoTaskOutput } from '@crm/task/services/zoho/types';
import {
FreshsalesUserInput,
FreshsalesUserOutput,
} from '@crm/user/services/freshsales/types';
import {
HubspotUserInput,
HubspotUserOutput,
} from '@crm/user/services/hubspot/types';
import {
PipedriveUserInput,
PipedriveUserOutput,
} from '@crm/user/services/pipedrive/types';
import { ZohoUserInput, ZohoUserOutput } from '@crm/user/services/zoho/types';
import {
ZendeskContactInput,
ZendeskContactOutput,
} from '@ticketing/contact/services/zendesk/types';
import {
ZendeskUserInput,
ZendeskUserOutput,
} from '@ticketing/user/services/zendesk/types';

/* INPUT */

Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/company/services/freshsales/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Injectable } from '@nestjs/common';
import axios from 'axios';
import {
CrmObject,
FreshsalesCompanyInput,
FreshsalesCompanyOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import { PrismaService } from '@@core/prisma/prisma.service';
import { LoggerService } from '@@core/logger/logger.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ICompanyService } from '@crm/company/types';
import { ServiceRegistry } from '../registry.service';
import { FreshsalesCompanyInput, FreshsalesCompanyOutput } from './types';

@Injectable()
export class FreshsalesService implements ICompanyService {
Expand Down
5 changes: 1 addition & 4 deletions packages/api/src/crm/company/services/freshsales/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import {
UnifiedCompanyInput,
UnifiedCompanyOutput,
} from '@crm/company/types/model.unified';
import {
FreshsalesCompanyInput,
FreshsalesCompanyOutput,
} from '@crm/@utils/@types';
import { FreshsalesCompanyInput, FreshsalesCompanyOutput } from './types';

//TODO
export class FreshsalesCompanyMapper implements ICompanyMapper {
Expand Down
12 changes: 6 additions & 6 deletions packages/api/src/crm/company/services/hubspot/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Injectable } from '@nestjs/common';
import { ICompanyService } from '@crm/company/types';
import {
CrmObject,
HubspotCompanyInput,
HubspotCompanyOutput,
commonCompanyHubspotProperties,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import axios from 'axios';
import { PrismaService } from '@@core/prisma/prisma.service';
import { LoggerService } from '@@core/logger/logger.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ServiceRegistry } from '../registry.service';
import {
commonCompanyHubspotProperties,
HubspotCompanyInput,
HubspotCompanyOutput,
} from './types';

@Injectable()
export class HubspotService implements ICompanyService {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/company/services/hubspot/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HubspotCompanyInput, HubspotCompanyOutput } from '@crm/@utils/@types';
import { HubspotCompanyInput, HubspotCompanyOutput } from './types';
import {
UnifiedCompanyInput,
UnifiedCompanyOutput,
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/company/services/pipedrive/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { Injectable } from '@nestjs/common';
import { ICompanyService } from '@crm/company/types';
import {
CrmObject,
PipedriveCompanyInput,
PipedriveCompanyOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import axios from 'axios';
import { PrismaService } from '@@core/prisma/prisma.service';
import { LoggerService } from '@@core/logger/logger.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ServiceRegistry } from '../registry.service';
import { PipedriveCompanyInput, PipedriveCompanyOutput } from './types';

@Injectable()
export class PipedriveService implements ICompanyService {
Expand Down
6 changes: 1 addition & 5 deletions packages/api/src/crm/company/services/pipedrive/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import {
PipedriveCompanyInput,
PipedriveCompanyOutput,
} from '@crm/@utils/@types';
import {
UnifiedCompanyInput,
UnifiedCompanyOutput,
} from '@crm/company/types/model.unified';
import { ICompanyMapper } from '@crm/company/types';
import { Utils } from '@crm/contact/utils';
import { OriginalCompanyOutput } from '@@core/utils/types/original/original.crm';
import { PipedriveCompanyInput, PipedriveCompanyOutput } from './types';

export class PipedriveCompanyMapper implements ICompanyMapper {
private readonly utils: Utils;
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/company/services/zendesk/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { Injectable } from '@nestjs/common';
import { ICompanyService } from '@crm/company/types';
import {
CrmObject,
ZendeskCompanyInput,
ZendeskCompanyOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import axios from 'axios';
import { LoggerService } from '@@core/logger/logger.service';
import { PrismaService } from '@@core/prisma/prisma.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ServiceRegistry } from '../registry.service';
import { ZendeskCompanyInput, ZendeskCompanyOutput } from './types';
@Injectable()
export class ZendeskService implements ICompanyService {
constructor(
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/company/services/zendesk/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import {
Address,
ZendeskCompanyInput,
ZendeskCompanyOutput,
} from '@crm/@utils/@types';
import { Address } from '@crm/@utils/@types';
import {
UnifiedCompanyInput,
UnifiedCompanyOutput,
} from '@crm/company/types/model.unified';
import { ICompanyMapper } from '@crm/company/types';
import { Utils } from '@crm/contact/utils';
import { ZendeskCompanyInput, ZendeskCompanyOutput } from './types';

export class ZendeskCompanyMapper implements ICompanyMapper {
private readonly utils: Utils;
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/company/services/zoho/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { Injectable } from '@nestjs/common';
import { ICompanyService } from '@crm/company/types';
import {
CrmObject,
ZohoCompanyInput,
ZohoCompanyOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import axios from 'axios';
import { LoggerService } from '@@core/logger/logger.service';
import { PrismaService } from '@@core/prisma/prisma.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ServiceRegistry } from '../registry.service';
import { ZohoCompanyInput, ZohoCompanyOutput } from './types';

@Injectable()
export class ZohoService implements ICompanyService {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/crm/company/services/zoho/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ZohoCompanyInput, ZohoCompanyOutput } from '@crm/@utils/@types';
import {
UnifiedCompanyInput,
UnifiedCompanyOutput,
} from '@crm/company/types/model.unified';
import { ICompanyMapper } from '@crm/company/types';
import { ZohoCompanyInput, ZohoCompanyOutput } from './types';

export class ZohoCompanyMapper implements ICompanyMapper {
desunify(
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/contact/services/attio/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { Injectable } from '@nestjs/common';
import { IContactService } from '@crm/contact/types';
import {
CrmObject,
AttioContactInput,
AttioContactOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import axios from 'axios';
import { PrismaService } from '@@core/prisma/prisma.service';
import { LoggerService } from '@@core/logger/logger.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
import { EncryptionService } from '@@core/encryption/encryption.service';
import { ApiResponse } from '@@core/utils/types';
import { ServiceRegistry } from '../registry.service';
import { AttioContactInput, AttioContactOutput } from './types';

@Injectable()
export class AttioService implements IContactService {
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/contact/services/attio/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import {
Address,
AttioContactInput,
AttioContactOutput,
} from '@crm/@utils/@types';
import { Address } from '@crm/@utils/@types';
import {
UnifiedContactInput,
UnifiedContactOutput,
} from '@crm/contact/types/model.unified';
import { IContactMapper } from '@crm/contact/types';
import { Utils } from '@crm/contact/utils';
import { AttioContactInput, AttioContactOutput } from './types';

export class AttioContactMapper implements IContactMapper {
private readonly utils: Utils;
Expand Down
7 changes: 2 additions & 5 deletions packages/api/src/crm/contact/services/freshsales/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Injectable } from '@nestjs/common';
import axios from 'axios';
import {
CrmObject,
FreshsalesContactInput,
FreshsalesContactOutput,
} from '@crm/@utils/@types';
import { CrmObject } from '@crm/@utils/@types';
import { FreshsalesContactInput, FreshsalesContactOutput } from './types';
import { PrismaService } from '@@core/prisma/prisma.service';
import { LoggerService } from '@@core/logger/logger.service';
import { ActionType, handleServiceError } from '@@core/utils/errors';
Expand Down
Loading

0 comments on commit d30dfc9

Please sign in to comment.