From e273ba9875743b82ac2087afb5f7fdbb4e83700d Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 15 Jul 2024 09:16:08 +0200 Subject: [PATCH] :rotating_light: Lint and build --- .../connections-strategies.module.ts | 9 +-------- packages/api/src/@core/events/events.module.ts | 2 +- .../src/@core/linked-users/linked-users.module.ts | 2 +- .../api/src/@core/magic-link/magic-link.module.ts | 2 +- .../src/@core/passthrough/passthrough.module.ts | 2 +- .../api/src/accounting/address/address.module.ts | 13 ++++--------- .../accounting/attachment/attachment.module.ts | 13 ++++--------- .../balancesheet/balancesheet.module.ts | 14 +++++--------- .../cashflowstatement/cashflowstatement.module.ts | 12 +++--------- .../accounting/companyinfo/companyinfo.module.ts | 13 ++++--------- .../api/src/accounting/contact/contact.module.ts | 13 ++++--------- .../accounting/creditnote/creditnote.module.ts | 14 +++++--------- .../api/src/accounting/expense/expense.module.ts | 13 ++++--------- .../incomestatement/incomestatement.module.ts | 13 ++++--------- .../api/src/accounting/invoice/invoice.module.ts | 12 +++--------- packages/api/src/accounting/item/item.module.ts | 13 ++++--------- .../journalentry/journalentry.module.ts | 12 +++--------- .../api/src/accounting/payment/payment.module.ts | 13 ++++--------- .../accounting/phonenumber/phonenumber.module.ts | 12 +++--------- .../purchaseorder/purchaseorder.module.ts | 13 ++++--------- .../api/src/accounting/taxrate/taxrate.module.ts | 13 ++++--------- .../trackingcategory/trackingcategory.module.ts | 13 ++++--------- .../accounting/transaction/transaction.module.ts | 13 ++++--------- .../vendorcredit/vendorcredit.module.ts | 12 +++--------- packages/api/src/ats/activity/activity.module.ts | 10 ++++------ .../api/src/ats/application/application.module.ts | 10 ++++------ .../api/src/ats/attachment/attachment.module.ts | 9 +++------ .../api/src/ats/candidate/candidate.module.ts | 11 +++++------ .../api/src/ats/department/department.module.ts | 9 +++------ packages/api/src/ats/eeocs/eeocs.module.ts | 9 +++------ .../api/src/ats/interview/interview.module.ts | 10 ++++------ packages/api/src/ats/job/job.module.ts | 10 ++++------ .../jobinterviewstage/jobinterviewstage.module.ts | 10 ++++------ packages/api/src/ats/offer/offer.module.ts | 10 ++++------ packages/api/src/ats/office/office.module.ts | 10 ++++------ .../src/ats/rejectreason/rejectreason.module.ts | 10 ++++------ .../api/src/ats/scorecard/scorecard.module.ts | 10 ++++------ packages/api/src/ats/tag/tag.module.ts | 9 +++------ packages/api/src/ats/user/user.module.ts | 9 +++------ packages/api/src/crm/company/company.module.ts | 15 +++++---------- packages/api/src/crm/contact/contact.module.ts | 15 +++++---------- .../api/src/crm/contact/services/close/mappers.ts | 12 ++++++++++-- .../src/crm/contact/services/hubspot/mappers.ts | 12 ++++++++++-- packages/api/src/crm/crm.module.ts | 6 ++---- .../api/src/crm/engagement/engagement.module.ts | 14 ++++---------- .../api/src/crm/stage/services/close/mappers.ts | 6 +++++- .../api/src/crm/stage/services/zendesk/mappers.ts | 6 +++++- .../filestorage/permission/permission.module.ts | 10 ++++------ .../filestorage/sharedlink/sharedlink.module.ts | 10 ++++------ packages/api/src/hris/bankinfo/bankinfo.module.ts | 12 ++++-------- packages/api/src/hris/benefit/benefit.module.ts | 12 ++++-------- .../api/src/hris/benefit/sync/sync.service.ts | 2 +- packages/api/src/hris/company/company.module.ts | 12 ++++-------- .../api/src/hris/company/sync/sync.service.ts | 2 +- .../api/src/hris/dependent/dependent.module.ts | 12 ++++-------- .../api/src/hris/dependent/sync/sync.service.ts | 2 +- packages/api/src/hris/employee/employee.module.ts | 12 ++++-------- .../api/src/hris/employee/sync/sync.service.ts | 2 +- .../employeepayrollrun.module.ts | 11 +++-------- .../hris/employeepayrollrun/sync/sync.service.ts | 2 +- .../employerbenefit/employerbenefit.module.ts | 11 +++-------- .../src/hris/employerbenefit/sync/sync.service.ts | 2 +- .../api/src/hris/employment/employment.module.ts | 11 +++-------- .../api/src/hris/employment/sync/sync.service.ts | 2 +- packages/api/src/hris/group/group.module.ts | 12 ++++-------- packages/api/src/hris/group/sync/sync.service.ts | 2 +- packages/api/src/hris/location/location.module.ts | 11 +++-------- .../api/src/hris/location/sync/sync.service.ts | 2 +- packages/api/src/hris/paygroup/paygroup.module.ts | 12 ++++-------- .../api/src/hris/paygroup/sync/sync.service.ts | 2 +- .../api/src/hris/payrollrun/payrollrun.module.ts | 12 ++++-------- .../api/src/hris/payrollrun/sync/sync.service.ts | 2 +- .../api/src/hris/timeoff/sync/sync.service.ts | 2 +- packages/api/src/hris/timeoff/timeoff.module.ts | 11 +++-------- .../hris/timeoffbalance/timeoffbalance.module.ts | 11 +++-------- .../marketingautomation/action/action.module.ts | 13 ++++--------- .../automation/automation.module.ts | 14 +++++--------- .../campaign/campaign.module.ts | 12 +++--------- .../marketingautomation/contact/contact.module.ts | 13 ++++--------- .../src/marketingautomation/email/email.module.ts | 8 +------- .../src/marketingautomation/event/event.module.ts | 12 +++--------- .../src/marketingautomation/user/user.module.ts | 13 ++++--------- .../api/src/ticketing/account/account.module.ts | 14 ++++---------- .../src/ticketing/attachment/attachment.module.ts | 8 ++++---- .../src/ticketing/collection/collection.module.ts | 14 ++++---------- packages/shared/src/authUrl.ts | 4 ++-- 86 files changed, 288 insertions(+), 536 deletions(-) diff --git a/packages/api/src/@core/connections-strategies/connections-strategies.module.ts b/packages/api/src/@core/connections-strategies/connections-strategies.module.ts index 4fc3b0303..cb6f3abb5 100644 --- a/packages/api/src/@core/connections-strategies/connections-strategies.module.ts +++ b/packages/api/src/@core/connections-strategies/connections-strategies.module.ts @@ -8,13 +8,6 @@ import { ConnectionsStrategiesService } from './connections-strategies.service'; @Module({ controllers: [ConnectionsStrategiesController], - providers: [ - - - - ConnectionsStrategiesService, - ConfigService, - ValidateUserService, - ], + providers: [ConnectionsStrategiesService, ConfigService, ValidateUserService], }) export class ConnectionsStrategiesModule {} diff --git a/packages/api/src/@core/events/events.module.ts b/packages/api/src/@core/events/events.module.ts index 2b80bbe6d..3e6ee354c 100644 --- a/packages/api/src/@core/events/events.module.ts +++ b/packages/api/src/@core/events/events.module.ts @@ -5,7 +5,7 @@ import { EventsController } from './events.controller'; import { EventsService } from './events.service'; @Module({ - providers: [EventsService, ValidateUserService], + providers: [EventsService, ValidateUserService], controllers: [EventsController], }) export class EventsModule {} diff --git a/packages/api/src/@core/linked-users/linked-users.module.ts b/packages/api/src/@core/linked-users/linked-users.module.ts index d61b4f629..d07653ed2 100644 --- a/packages/api/src/@core/linked-users/linked-users.module.ts +++ b/packages/api/src/@core/linked-users/linked-users.module.ts @@ -5,7 +5,7 @@ import { LinkedUsersController } from './linked-users.controller'; import { LinkedUsersService } from './linked-users.service'; @Module({ - providers: [LinkedUsersService, ValidateUserService], + providers: [LinkedUsersService, ValidateUserService], controllers: [LinkedUsersController], }) export class LinkedUsersModule {} diff --git a/packages/api/src/@core/magic-link/magic-link.module.ts b/packages/api/src/@core/magic-link/magic-link.module.ts index 6bfcd9b2a..76df3b4dd 100644 --- a/packages/api/src/@core/magic-link/magic-link.module.ts +++ b/packages/api/src/@core/magic-link/magic-link.module.ts @@ -6,6 +6,6 @@ import { MagicLinkService } from './magic-link.service'; @Module({ controllers: [MagicLinkController], - providers: [MagicLinkService, JwtService], + providers: [MagicLinkService, JwtService], }) export class MagicLinkModule {} diff --git a/packages/api/src/@core/passthrough/passthrough.module.ts b/packages/api/src/@core/passthrough/passthrough.module.ts index 30bc5d717..97e475644 100644 --- a/packages/api/src/@core/passthrough/passthrough.module.ts +++ b/packages/api/src/@core/passthrough/passthrough.module.ts @@ -5,7 +5,7 @@ import { PassthroughController } from './passthrough.controller'; import { PassthroughService } from './passthrough.service'; @Module({ - providers: [PassthroughService, EncryptionService], + providers: [PassthroughService, EncryptionService], controllers: [PassthroughController], }) export class PassthroughModule {} diff --git a/packages/api/src/accounting/address/address.module.ts b/packages/api/src/accounting/address/address.module.ts index 3c8673a57..c088c9a2a 100644 --- a/packages/api/src/accounting/address/address.module.ts +++ b/packages/api/src/accounting/address/address.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [AddressController], providers: [ AddressService, - + SyncService, WebhookService, - + ServiceRegistry, - - + IngestDataService, - - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/accounting/attachment/attachment.module.ts b/packages/api/src/accounting/attachment/attachment.module.ts index d939ee037..e017a66bc 100644 --- a/packages/api/src/accounting/attachment/attachment.module.ts +++ b/packages/api/src/accounting/attachment/attachment.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,17 +18,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [AttachmentController], providers: [ AttachmentService, - + SyncService, WebhookService, - + ServiceRegistry, CoreUnification, - - + IngestDataService, - - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/accounting/balancesheet/balancesheet.module.ts b/packages/api/src/accounting/balancesheet/balancesheet.module.ts index 8aa6792d0..d03fb1966 100644 --- a/packages/api/src/accounting/balancesheet/balancesheet.module.ts +++ b/packages/api/src/accounting/balancesheet/balancesheet.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,18 +18,17 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [BalanceSheetController], providers: [ BalanceSheetService, - + SyncService, WebhookService, - + CoreUnification, - + FieldMappingService, ServiceRegistry, - + IngestDataService, - - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/accounting/cashflowstatement/cashflowstatement.module.ts b/packages/api/src/accounting/cashflowstatement/cashflowstatement.module.ts index c76606fed..650bf6754 100644 --- a/packages/api/src/accounting/cashflowstatement/cashflowstatement.module.ts +++ b/packages/api/src/accounting/cashflowstatement/cashflowstatement.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [CashflowStatementController], providers: [ CashflowStatementService, - + SyncService, WebhookService, - + ServiceRegistry, CoreUnification, - - - - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/companyinfo/companyinfo.module.ts b/packages/api/src/accounting/companyinfo/companyinfo.module.ts index 7de03f716..012227e25 100644 --- a/packages/api/src/accounting/companyinfo/companyinfo.module.ts +++ b/packages/api/src/accounting/companyinfo/companyinfo.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,17 +18,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [CompanyInfoController], providers: [ CoreUnification, - + CompanyInfoService, - + SyncService, WebhookService, - - - + FieldMappingService, ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/contact/contact.module.ts b/packages/api/src/accounting/contact/contact.module.ts index 45e86fc86..f4ceb2c10 100644 --- a/packages/api/src/accounting/contact/contact.module.ts +++ b/packages/api/src/accounting/contact/contact.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [ContactController], providers: [ ContactService, - + SyncService, WebhookService, - + ServiceRegistry, - + CoreUnification, - - - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/creditnote/creditnote.module.ts b/packages/api/src/accounting/creditnote/creditnote.module.ts index 8c394ee8e..c174faced 100644 --- a/packages/api/src/accounting/creditnote/creditnote.module.ts +++ b/packages/api/src/accounting/creditnote/creditnote.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [CreditNoteController], providers: [ CreditNoteService, - + CoreUnification, - + SyncService, - - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/expense/expense.module.ts b/packages/api/src/accounting/expense/expense.module.ts index be6ae1c23..9868fd955 100644 --- a/packages/api/src/accounting/expense/expense.module.ts +++ b/packages/api/src/accounting/expense/expense.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -22,15 +19,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ ExpenseService, CoreUnification, - - - + SyncService, - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/incomestatement/incomestatement.module.ts b/packages/api/src/accounting/incomestatement/incomestatement.module.ts index 849f00b95..28fc568ac 100644 --- a/packages/api/src/accounting/incomestatement/incomestatement.module.ts +++ b/packages/api/src/accounting/incomestatement/incomestatement.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,17 +18,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [IncomeStatementController], providers: [ IncomeStatementService, - + SyncService, CoreUnification, - + WebhookService, - - - + FieldMappingService, ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/invoice/invoice.module.ts b/packages/api/src/accounting/invoice/invoice.module.ts index 5a28e90ca..928c4f61d 100644 --- a/packages/api/src/accounting/invoice/invoice.module.ts +++ b/packages/api/src/accounting/invoice/invoice.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [InvoiceController], providers: [ InvoiceService, - - - + SyncService, WebhookService, CoreUnification, - - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/item/item.module.ts b/packages/api/src/accounting/item/item.module.ts index f5a1dd17e..623fc62e7 100644 --- a/packages/api/src/accounting/item/item.module.ts +++ b/packages/api/src/accounting/item/item.module.ts @@ -11,26 +11,21 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ imports: [BullQueueModule], controllers: [ItemController], providers: [ ItemService, - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, CoreUnification, - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/accounting/journalentry/journalentry.module.ts b/packages/api/src/accounting/journalentry/journalentry.module.ts index ba59157b6..8699300f2 100644 --- a/packages/api/src/accounting/journalentry/journalentry.module.ts +++ b/packages/api/src/accounting/journalentry/journalentry.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [JournalEntryController], providers: [ JournalEntryService, - - - + SyncService, WebhookService, - + ServiceRegistry, CoreUnification, - - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/payment/payment.module.ts b/packages/api/src/accounting/payment/payment.module.ts index 70d04a39c..48de264cc 100644 --- a/packages/api/src/accounting/payment/payment.module.ts +++ b/packages/api/src/accounting/payment/payment.module.ts @@ -11,27 +11,22 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ imports: [BullQueueModule], controllers: [PaymentController], providers: [ - - PaymentService, - + SyncService, WebhookService, - + CoreUnification, - + FieldMappingService, ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/phonenumber/phonenumber.module.ts b/packages/api/src/accounting/phonenumber/phonenumber.module.ts index 809d9aabd..542e662ca 100644 --- a/packages/api/src/accounting/phonenumber/phonenumber.module.ts +++ b/packages/api/src/accounting/phonenumber/phonenumber.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [PhoneNumberController], providers: [ PhoneNumberService, - + SyncService, WebhookService, - + ServiceRegistry, CoreUnification, - - - - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/purchaseorder/purchaseorder.module.ts b/packages/api/src/accounting/purchaseorder/purchaseorder.module.ts index 74cf81864..7486cfa00 100644 --- a/packages/api/src/accounting/purchaseorder/purchaseorder.module.ts +++ b/packages/api/src/accounting/purchaseorder/purchaseorder.module.ts @@ -11,9 +11,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [PurchaseOrderController], providers: [ PurchaseOrderService, - - + CoreUnification, - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/taxrate/taxrate.module.ts b/packages/api/src/accounting/taxrate/taxrate.module.ts index e15201edc..b4c135182 100644 --- a/packages/api/src/accounting/taxrate/taxrate.module.ts +++ b/packages/api/src/accounting/taxrate/taxrate.module.ts @@ -11,9 +11,6 @@ import { TaxRateController } from './taxrate.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [TaxRateController], providers: [ TaxRateService, - + CoreUnification, - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/trackingcategory/trackingcategory.module.ts b/packages/api/src/accounting/trackingcategory/trackingcategory.module.ts index 78d31ad31..a04a1b63a 100644 --- a/packages/api/src/accounting/trackingcategory/trackingcategory.module.ts +++ b/packages/api/src/accounting/trackingcategory/trackingcategory.module.ts @@ -11,9 +11,6 @@ import { TrackingCategoryController } from './trackingcategory.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,16 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [TrackingCategoryController], providers: [ TrackingCategoryService, - - - + CoreUnification, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/transaction/transaction.module.ts b/packages/api/src/accounting/transaction/transaction.module.ts index 2d6629eeb..948e86f9c 100644 --- a/packages/api/src/accounting/transaction/transaction.module.ts +++ b/packages/api/src/accounting/transaction/transaction.module.ts @@ -11,9 +11,6 @@ import { TransactionController } from './transaction.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,17 +18,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [TransactionController], providers: [ TransactionService, - + SyncService, WebhookService, - + CoreUnification, - - - + FieldMappingService, ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/accounting/vendorcredit/vendorcredit.module.ts b/packages/api/src/accounting/vendorcredit/vendorcredit.module.ts index d5100dadc..a92d44abf 100644 --- a/packages/api/src/accounting/vendorcredit/vendorcredit.module.ts +++ b/packages/api/src/accounting/vendorcredit/vendorcredit.module.ts @@ -11,9 +11,6 @@ import { VendorCreditController } from './vendorcredit.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -21,17 +18,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [VendorCreditController], providers: [ VendorCreditService, - + SyncService, WebhookService, CoreUnification, - - - - + FieldMappingService, ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/ats/activity/activity.module.ts b/packages/api/src/ats/activity/activity.module.ts index 75bc70d5e..b77fba880 100644 --- a/packages/api/src/ats/activity/activity.module.ts +++ b/packages/api/src/ats/activity/activity.module.ts @@ -11,10 +11,8 @@ import { ConnectionUtils } from '@@core/connections/@utils'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyActivityMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,16 +22,16 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [ActivityController], providers: [ ActivityService, - + CoreUnification, SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + AshbyActivityMapper, Utils, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/application/application.module.ts b/packages/api/src/ats/application/application.module.ts index e4b4e88d1..f035cb8c3 100644 --- a/packages/api/src/ats/application/application.module.ts +++ b/packages/api/src/ats/application/application.module.ts @@ -11,10 +11,8 @@ import { ConnectionUtils } from '@@core/connections/@utils'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyApplicationMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,16 +22,16 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [ApplicationController], providers: [ ApplicationService, - + CoreUnification, SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + AshbyApplicationMapper, Utils, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/attachment/attachment.module.ts b/packages/api/src/ats/attachment/attachment.module.ts index 276b079cd..68f31e528 100644 --- a/packages/api/src/ats/attachment/attachment.module.ts +++ b/packages/api/src/ats/attachment/attachment.module.ts @@ -10,10 +10,8 @@ import { WebhookService } from '@@core/@core-services/webhooks/panora-webhooks/w import { ConnectionUtils } from '@@core/connections/@utils'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyAttachmentMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -23,16 +21,15 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [AttachmentController], providers: [ AttachmentService, - + SyncService, WebhookService, CoreUnification, - ServiceRegistry, - + IngestDataService, - + AshbyAttachmentMapper, Utils, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/candidate/candidate.module.ts b/packages/api/src/ats/candidate/candidate.module.ts index 469b95a8d..5b9238210 100644 --- a/packages/api/src/ats/candidate/candidate.module.ts +++ b/packages/api/src/ats/candidate/candidate.module.ts @@ -13,7 +13,6 @@ import { AshbyService } from './services/ashby'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { Utils } from '@ats/@lib/@utils'; import { ServiceRegistry as ApplicationServiceRegistry } from '@ats/application/services/registry.service'; @@ -24,16 +23,16 @@ import { AshbyCandidateMapper } from './services/ashby/mappers'; controllers: [CandidateController], providers: [ CandidateService, - + CoreUnification, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + ApplicationServiceRegistry, AttachmentServiceRegistry, Utils, diff --git a/packages/api/src/ats/department/department.module.ts b/packages/api/src/ats/department/department.module.ts index e57e54b93..9d60d9594 100644 --- a/packages/api/src/ats/department/department.module.ts +++ b/packages/api/src/ats/department/department.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyDepartmentMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -26,14 +24,13 @@ import { Utils } from '@ats/@lib/@utils'; DepartmentService, CoreUnification, - SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + Utils, AshbyDepartmentMapper, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/eeocs/eeocs.module.ts b/packages/api/src/ats/eeocs/eeocs.module.ts index b30baffc9..4411a4b27 100644 --- a/packages/api/src/ats/eeocs/eeocs.module.ts +++ b/packages/api/src/ats/eeocs/eeocs.module.ts @@ -10,10 +10,8 @@ import { ServiceRegistry } from './services/registry.service'; import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { Utils } from '@ats/@lib/@utils'; @@ -22,16 +20,15 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [EeocsController], providers: [ EeocsService, - + SyncService, WebhookService, CoreUnification, - ServiceRegistry, - + IngestDataService, - + Utils, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/ats/interview/interview.module.ts b/packages/api/src/ats/interview/interview.module.ts index 23de199cd..1ceddd5a2 100644 --- a/packages/api/src/ats/interview/interview.module.ts +++ b/packages/api/src/ats/interview/interview.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyInterviewMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -26,14 +24,14 @@ import { Utils } from '@ats/@lib/@utils'; CoreUnification, InterviewService, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + AshbyInterviewMapper, Utils, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/job/job.module.ts b/packages/api/src/ats/job/job.module.ts index d52d32cf2..99638bd99 100644 --- a/packages/api/src/ats/job/job.module.ts +++ b/packages/api/src/ats/job/job.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyJobMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -26,14 +24,14 @@ import { Utils } from '@ats/@lib/@utils'; CoreUnification, JobService, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + AshbyJobMapper, Utils, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/jobinterviewstage/jobinterviewstage.module.ts b/packages/api/src/ats/jobinterviewstage/jobinterviewstage.module.ts index 4ef9e4682..0b999c87d 100644 --- a/packages/api/src/ats/jobinterviewstage/jobinterviewstage.module.ts +++ b/packages/api/src/ats/jobinterviewstage/jobinterviewstage.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyJobInterviewStageMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -26,14 +24,14 @@ import { Utils } from '@ats/@lib/@utils'; CoreUnification, JobInterviewStageService, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + Utils, AshbyJobInterviewStageMapper, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ats/offer/offer.module.ts b/packages/api/src/ats/offer/offer.module.ts index a4fba0c20..d4f1c7510 100644 --- a/packages/api/src/ats/offer/offer.module.ts +++ b/packages/api/src/ats/offer/offer.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyOfferMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,17 +22,17 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [OfferController], providers: [ OfferService, - + CoreUnification, SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, Utils, - + AshbyOfferMapper, /* PROVIDERS SERVICES */ AshbyService, diff --git a/packages/api/src/ats/office/office.module.ts b/packages/api/src/ats/office/office.module.ts index 59de3be5d..dcaeada06 100644 --- a/packages/api/src/ats/office/office.module.ts +++ b/packages/api/src/ats/office/office.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyOfficeMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,17 +22,17 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [OfficeController], providers: [ OfficeService, - + SyncService, WebhookService, CoreUnification, Utils, - + ServiceRegistry, - + IngestDataService, - + AshbyOfficeMapper, /* PROVIDERS SERVICES */ AshbyService, diff --git a/packages/api/src/ats/rejectreason/rejectreason.module.ts b/packages/api/src/ats/rejectreason/rejectreason.module.ts index 7affa90ff..e32e0968d 100644 --- a/packages/api/src/ats/rejectreason/rejectreason.module.ts +++ b/packages/api/src/ats/rejectreason/rejectreason.module.ts @@ -11,10 +11,8 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyRejectReasonMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,17 +22,17 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [RejectReasonController], providers: [ RejectReasonService, - + SyncService, CoreUnification, WebhookService, - + ServiceRegistry, - + Utils, IngestDataService, - + AshbyRejectReasonMapper, /* PROVIDERS SERVICES */ AshbyService, diff --git a/packages/api/src/ats/scorecard/scorecard.module.ts b/packages/api/src/ats/scorecard/scorecard.module.ts index f609c1a6c..4b81c920d 100644 --- a/packages/api/src/ats/scorecard/scorecard.module.ts +++ b/packages/api/src/ats/scorecard/scorecard.module.ts @@ -10,10 +10,8 @@ import { ScoreCardService } from './services/scorecard.service'; import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { Utils } from '@ats/@lib/@utils'; @@ -22,18 +20,18 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [ScoreCardController], providers: [ ScoreCardService, - + SyncService, WebhookService, - + CoreUnification, FieldMappingService, ServiceRegistry, - + IngestDataService, Utils, - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/ats/tag/tag.module.ts b/packages/api/src/ats/tag/tag.module.ts index 380eea013..599cb8a26 100644 --- a/packages/api/src/ats/tag/tag.module.ts +++ b/packages/api/src/ats/tag/tag.module.ts @@ -11,10 +11,8 @@ import { TagController } from './tag.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyTagMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,17 +22,16 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [TagController], providers: [ TagService, - + SyncService, WebhookService, - + Utils, ServiceRegistry, CoreUnification, - IngestDataService, - + AshbyTagMapper, /* PROVIDERS SERVICES */ AshbyService, diff --git a/packages/api/src/ats/user/user.module.ts b/packages/api/src/ats/user/user.module.ts index fc08d0e4b..56db5f0cc 100644 --- a/packages/api/src/ats/user/user.module.ts +++ b/packages/api/src/ats/user/user.module.ts @@ -11,10 +11,8 @@ import { UserController } from './user.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { AshbyService } from './services/ashby'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { AshbyUserMapper } from './services/ashby/mappers'; import { Utils } from '@ats/@lib/@utils'; @@ -24,16 +22,15 @@ import { Utils } from '@ats/@lib/@utils'; controllers: [UserController], providers: [ UserService, - + SyncService, WebhookService, - ServiceRegistry, - + IngestDataService, Utils, - + AshbyUserMapper, /* PROVIDERS SERVICES */ AshbyService, diff --git a/packages/api/src/crm/company/company.module.ts b/packages/api/src/crm/company/company.module.ts index 8f9bf81c2..dabda66e4 100644 --- a/packages/api/src/crm/company/company.module.ts +++ b/packages/api/src/crm/company/company.module.ts @@ -30,15 +30,15 @@ import { SyncService } from './sync/sync.service'; controllers: [CompanyController], providers: [ CompanyService, - + SyncService, WebhookService, - + ServiceRegistry, - + Utils, IngestDataService, - + /* PROVIDERS SERVICES */ ZendeskService, ZohoService, @@ -54,11 +54,6 @@ import { SyncService } from './sync/sync.service'; ZendeskCompanyMapper, ZohoCompanyMapper, ], - exports: [ - SyncService, - ServiceRegistry, - WebhookService, - - ], + exports: [SyncService, ServiceRegistry, WebhookService], }) export class CompanyModule {} diff --git a/packages/api/src/crm/contact/contact.module.ts b/packages/api/src/crm/contact/contact.module.ts index 5b262ffc9..93ea088b7 100644 --- a/packages/api/src/crm/contact/contact.module.ts +++ b/packages/api/src/crm/contact/contact.module.ts @@ -30,16 +30,16 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data controllers: [ContactController], providers: [ ContactService, - + FieldMappingService, SyncService, WebhookService, - + ServiceRegistry, Utils, - + IngestDataService, - + /* PROVIDERS SERVICES */ AttioService, ZendeskService, @@ -55,11 +55,6 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data ZendeskContactMapper, ZohoContactMapper, ], - exports: [ - SyncService, - ServiceRegistry, - WebhookService, - - ], + exports: [SyncService, ServiceRegistry, WebhookService], }) export class ContactModule {} diff --git a/packages/api/src/crm/contact/services/close/mappers.ts b/packages/api/src/crm/contact/services/close/mappers.ts index 9bee49509..4919592bb 100644 --- a/packages/api/src/crm/contact/services/close/mappers.ts +++ b/packages/api/src/crm/contact/services/close/mappers.ts @@ -70,11 +70,19 @@ export class CloseContactMapper implements IContactMapper { }[], ): Promise { if (!Array.isArray(source)) { - return this.mapSingleContactToUnified(source, connectionId, customFieldMappings); + return this.mapSingleContactToUnified( + source, + connectionId, + customFieldMappings, + ); } // Handling array of CloseContactOutput return source.map((contact) => - this.mapSingleContactToUnified(contact, connectionId, customFieldMappings), + this.mapSingleContactToUnified( + contact, + connectionId, + customFieldMappings, + ), ); } diff --git a/packages/api/src/crm/contact/services/hubspot/mappers.ts b/packages/api/src/crm/contact/services/hubspot/mappers.ts index 4049f6c70..37e12f56a 100644 --- a/packages/api/src/crm/contact/services/hubspot/mappers.ts +++ b/packages/api/src/crm/contact/services/hubspot/mappers.ts @@ -67,11 +67,19 @@ export class HubspotContactMapper implements IContactMapper { }[], ): Promise { if (!Array.isArray(source)) { - return this.mapSingleContactToUnified(source, connectionId, customFieldMappings); + return this.mapSingleContactToUnified( + source, + connectionId, + customFieldMappings, + ); } // Handling array of HubspotContactOutput return source.map((contact) => - this.mapSingleContactToUnified(contact, connectionId, customFieldMappings), + this.mapSingleContactToUnified( + contact, + connectionId, + customFieldMappings, + ), ); } diff --git a/packages/api/src/crm/crm.module.ts b/packages/api/src/crm/crm.module.ts index b6cd044af..3353a41c8 100644 --- a/packages/api/src/crm/crm.module.ts +++ b/packages/api/src/crm/crm.module.ts @@ -21,9 +21,7 @@ import { CrmUnificationService } from './@lib/@unification'; UserModule, CrmWebhookHandlerModule, ], - providers: [ - CrmUnificationService - ], + providers: [CrmUnificationService], exports: [ ContactModule, DealModule, @@ -36,4 +34,4 @@ import { CrmUnificationService } from './@lib/@unification'; CrmWebhookHandlerModule, ], }) -export class CrmModule { } +export class CrmModule {} diff --git a/packages/api/src/crm/engagement/engagement.module.ts b/packages/api/src/crm/engagement/engagement.module.ts index 3c85e6c52..7b8efe324 100644 --- a/packages/api/src/crm/engagement/engagement.module.ts +++ b/packages/api/src/crm/engagement/engagement.module.ts @@ -28,14 +28,13 @@ import { SyncService } from './sync/sync.service'; controllers: [EngagementController], providers: [ EngagementService, - + SyncService, WebhookService, - - + FieldMappingService, ServiceRegistry, - + Utils, IngestDataService, /* PROVIDERS SERVICES */ @@ -51,11 +50,6 @@ import { SyncService } from './sync/sync.service'; HubspotEngagementMapper, CloseEngagementMapper, ], - exports: [ - SyncService, - ServiceRegistry, - WebhookService, - - ], + exports: [SyncService, ServiceRegistry, WebhookService], }) export class EngagementModule {} diff --git a/packages/api/src/crm/stage/services/close/mappers.ts b/packages/api/src/crm/stage/services/close/mappers.ts index 51626f9bc..f9210805b 100644 --- a/packages/api/src/crm/stage/services/close/mappers.ts +++ b/packages/api/src/crm/stage/services/close/mappers.ts @@ -32,7 +32,11 @@ export class CloseStageMapper implements IStageMapper { }[], ): UnifiedStageOutput | UnifiedStageOutput[] { if (!Array.isArray(source)) { - return this.mapSingleStageToUnified(source, connectionId, customFieldMappings); + return this.mapSingleStageToUnified( + source, + connectionId, + customFieldMappings, + ); } // Handling array of CloseStageOutput return source.map((stage) => diff --git a/packages/api/src/crm/stage/services/zendesk/mappers.ts b/packages/api/src/crm/stage/services/zendesk/mappers.ts index fab571025..30c2b9151 100644 --- a/packages/api/src/crm/stage/services/zendesk/mappers.ts +++ b/packages/api/src/crm/stage/services/zendesk/mappers.ts @@ -32,7 +32,11 @@ export class ZendeskStageMapper implements IStageMapper { }[], ): UnifiedStageOutput | UnifiedStageOutput[] { if (!Array.isArray(source)) { - return this.mapSingleStageToUnified(source, connectionId, customFieldMappings); + return this.mapSingleStageToUnified( + source, + connectionId, + customFieldMappings, + ); } // Handling array of ZendeskStageOutput diff --git a/packages/api/src/filestorage/permission/permission.module.ts b/packages/api/src/filestorage/permission/permission.module.ts index 6951b2e8b..5666430a5 100644 --- a/packages/api/src/filestorage/permission/permission.module.ts +++ b/packages/api/src/filestorage/permission/permission.module.ts @@ -9,10 +9,8 @@ import { ServiceRegistry } from './services/registry.service'; import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { Utils } from '@filestorage/@lib/@utils'; @@ -20,17 +18,17 @@ import { Utils } from '@filestorage/@lib/@utils'; imports: [BullQueueModule], providers: [ PermissionService, - + SyncService, WebhookService, - + CoreUnification, Utils, FieldMappingService, ServiceRegistry, - + IngestDataService, - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/filestorage/sharedlink/sharedlink.module.ts b/packages/api/src/filestorage/sharedlink/sharedlink.module.ts index 51c5629b4..81416e2ca 100644 --- a/packages/api/src/filestorage/sharedlink/sharedlink.module.ts +++ b/packages/api/src/filestorage/sharedlink/sharedlink.module.ts @@ -9,10 +9,8 @@ import { SharedLinkService } from './services/sharedlink.service'; import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; - import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; import { BoxSharedLinkMapper } from './services/box/mappers'; import { Utils } from '@filestorage/@lib/@utils'; @@ -21,16 +19,16 @@ import { Utils } from '@filestorage/@lib/@utils'; imports: [BullQueueModule], providers: [ SharedLinkService, - + SyncService, WebhookService, - + CoreUnification, FieldMappingService, ServiceRegistry, - + IngestDataService, - + Utils, /* PROVIDERS SERVICES */ BoxSharedLinkMapper, diff --git a/packages/api/src/hris/bankinfo/bankinfo.module.ts b/packages/api/src/hris/bankinfo/bankinfo.module.ts index 12e108fe3..82e68c0e1 100644 --- a/packages/api/src/hris/bankinfo/bankinfo.module.ts +++ b/packages/api/src/hris/bankinfo/bankinfo.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,17 +21,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [BankinfoController], providers: [ BankInfoService, - + SyncService, WebhookService, - - - + ServiceRegistry, - + IngestDataService, CoreUnification, - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/hris/benefit/benefit.module.ts b/packages/api/src/hris/benefit/benefit.module.ts index ba8e82844..ff5163193 100644 --- a/packages/api/src/hris/benefit/benefit.module.ts +++ b/packages/api/src/hris/benefit/benefit.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,17 +21,15 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [BenefitController], providers: [ BenefitService, - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, CoreUnification, - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/hris/benefit/sync/sync.service.ts b/packages/api/src/hris/benefit/sync/sync.service.ts index 7543d25e4..3478b8541 100644 --- a/packages/api/src/hris/benefit/sync/sync.service.ts +++ b/packages/api/src/hris/benefit/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/company/company.module.ts b/packages/api/src/hris/company/company.module.ts index 38f868e1f..c167c273c 100644 --- a/packages/api/src/hris/company/company.module.ts +++ b/packages/api/src/hris/company/company.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ CompanyService, CoreUnification, - - - + SyncService, - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/company/sync/sync.service.ts b/packages/api/src/hris/company/sync/sync.service.ts index bc2d1a6d2..1c4c983fc 100644 --- a/packages/api/src/hris/company/sync/sync.service.ts +++ b/packages/api/src/hris/company/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/dependent/dependent.module.ts b/packages/api/src/hris/dependent/dependent.module.ts index 95df3f631..da026a5c3 100644 --- a/packages/api/src/hris/dependent/dependent.module.ts +++ b/packages/api/src/hris/dependent/dependent.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,16 +21,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [DependentController], providers: [ DependentService, - + CoreUnification, - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/dependent/sync/sync.service.ts b/packages/api/src/hris/dependent/sync/sync.service.ts index d56b44df7..c77258302 100644 --- a/packages/api/src/hris/dependent/sync/sync.service.ts +++ b/packages/api/src/hris/dependent/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/employee/employee.module.ts b/packages/api/src/hris/employee/employee.module.ts index 0507d33da..758d81bb1 100644 --- a/packages/api/src/hris/employee/employee.module.ts +++ b/packages/api/src/hris/employee/employee.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ EmployeeService, CoreUnification, - - + SyncService, - - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/employee/sync/sync.service.ts b/packages/api/src/hris/employee/sync/sync.service.ts index 18e4831f6..86e03a269 100644 --- a/packages/api/src/hris/employee/sync/sync.service.ts +++ b/packages/api/src/hris/employee/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/employeepayrollrun/employeepayrollrun.module.ts b/packages/api/src/hris/employeepayrollrun/employeepayrollrun.module.ts index f5ef8e8bf..f238e6dd2 100644 --- a/packages/api/src/hris/employeepayrollrun/employeepayrollrun.module.ts +++ b/packages/api/src/hris/employeepayrollrun/employeepayrollrun.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ EmployeePayrollRunService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/employeepayrollrun/sync/sync.service.ts b/packages/api/src/hris/employeepayrollrun/sync/sync.service.ts index 3095c5217..31d8b15a3 100644 --- a/packages/api/src/hris/employeepayrollrun/sync/sync.service.ts +++ b/packages/api/src/hris/employeepayrollrun/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/employerbenefit/employerbenefit.module.ts b/packages/api/src/hris/employerbenefit/employerbenefit.module.ts index 51aea480e..dca6f000f 100644 --- a/packages/api/src/hris/employerbenefit/employerbenefit.module.ts +++ b/packages/api/src/hris/employerbenefit/employerbenefit.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ EmployerBenefitService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/employerbenefit/sync/sync.service.ts b/packages/api/src/hris/employerbenefit/sync/sync.service.ts index 34f4fbdd3..a1f6789fb 100644 --- a/packages/api/src/hris/employerbenefit/sync/sync.service.ts +++ b/packages/api/src/hris/employerbenefit/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/employment/employment.module.ts b/packages/api/src/hris/employment/employment.module.ts index 9904527af..bc49248c9 100644 --- a/packages/api/src/hris/employment/employment.module.ts +++ b/packages/api/src/hris/employment/employment.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ EmploymentService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/employment/sync/sync.service.ts b/packages/api/src/hris/employment/sync/sync.service.ts index fb67ede37..cf1d87eff 100644 --- a/packages/api/src/hris/employment/sync/sync.service.ts +++ b/packages/api/src/hris/employment/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/group/group.module.ts b/packages/api/src/hris/group/group.module.ts index 20ad67181..196173be8 100644 --- a/packages/api/src/hris/group/group.module.ts +++ b/packages/api/src/hris/group/group.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,16 +21,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [GroupController], providers: [ GroupService, - + SyncService, WebhookService, - + CoreUnification, - - - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/group/sync/sync.service.ts b/packages/api/src/hris/group/sync/sync.service.ts index f3fcbe123..46bb35ab6 100644 --- a/packages/api/src/hris/group/sync/sync.service.ts +++ b/packages/api/src/hris/group/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/location/location.module.ts b/packages/api/src/hris/location/location.module.ts index 4f9b6fb39..011bb9044 100644 --- a/packages/api/src/hris/location/location.module.ts +++ b/packages/api/src/hris/location/location.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ LocationService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/location/sync/sync.service.ts b/packages/api/src/hris/location/sync/sync.service.ts index 41c627bd6..3a353c98b 100644 --- a/packages/api/src/hris/location/sync/sync.service.ts +++ b/packages/api/src/hris/location/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/paygroup/paygroup.module.ts b/packages/api/src/hris/paygroup/paygroup.module.ts index 43fbbe7c6..1247ceb42 100644 --- a/packages/api/src/hris/paygroup/paygroup.module.ts +++ b/packages/api/src/hris/paygroup/paygroup.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,16 +21,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [PayGroupController], providers: [ PayGroupService, - - + CoreUnification, - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/paygroup/sync/sync.service.ts b/packages/api/src/hris/paygroup/sync/sync.service.ts index c7c634fd1..1c442b2e8 100644 --- a/packages/api/src/hris/paygroup/sync/sync.service.ts +++ b/packages/api/src/hris/paygroup/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/payrollrun/payrollrun.module.ts b/packages/api/src/hris/payrollrun/payrollrun.module.ts index 0e2101a0b..27763c6f6 100644 --- a/packages/api/src/hris/payrollrun/payrollrun.module.ts +++ b/packages/api/src/hris/payrollrun/payrollrun.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,13 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ PayrollRunService, CoreUnification, - - + SyncService, - - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/payrollrun/sync/sync.service.ts b/packages/api/src/hris/payrollrun/sync/sync.service.ts index 7bad02cbd..abe1551d4 100644 --- a/packages/api/src/hris/payrollrun/sync/sync.service.ts +++ b/packages/api/src/hris/payrollrun/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/timeoff/sync/sync.service.ts b/packages/api/src/hris/timeoff/sync/sync.service.ts index 884ccaacf..58102206f 100644 --- a/packages/api/src/hris/timeoff/sync/sync.service.ts +++ b/packages/api/src/hris/timeoff/sync/sync.service.ts @@ -22,7 +22,7 @@ export class SyncService implements OnModuleInit, IBaseSync { ) { this.logger.setContext(SyncService.name); } -saveToDb( + saveToDb( connection_id: string, linkedUserId: string, data: any[], diff --git a/packages/api/src/hris/timeoff/timeoff.module.ts b/packages/api/src/hris/timeoff/timeoff.module.ts index 872c9ca25..c1eb66c81 100644 --- a/packages/api/src/hris/timeoff/timeoff.module.ts +++ b/packages/api/src/hris/timeoff/timeoff.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ TimeoffService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/hris/timeoffbalance/timeoffbalance.module.ts b/packages/api/src/hris/timeoffbalance/timeoffbalance.module.ts index 803c82bf2..547753818 100644 --- a/packages/api/src/hris/timeoffbalance/timeoffbalance.module.ts +++ b/packages/api/src/hris/timeoffbalance/timeoffbalance.module.ts @@ -14,8 +14,6 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -24,15 +22,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ TimeoffBalanceService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/marketingautomation/action/action.module.ts b/packages/api/src/marketingautomation/action/action.module.ts index f30bba10f..9503090e7 100644 --- a/packages/api/src/marketingautomation/action/action.module.ts +++ b/packages/api/src/marketingautomation/action/action.module.ts @@ -12,25 +12,20 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ imports: [BullQueueModule], controllers: [ActionController], providers: [ ActionService, - + SyncService, WebhookService, - + ServiceRegistry, - - + IngestDataService, - - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/marketingautomation/automation/automation.module.ts b/packages/api/src/marketingautomation/automation/automation.module.ts index f0ecca1a1..b5a79df63 100644 --- a/packages/api/src/marketingautomation/automation/automation.module.ts +++ b/packages/api/src/marketingautomation/automation/automation.module.ts @@ -12,9 +12,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -22,17 +19,16 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [AutomationController], providers: [ AutomationService, - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, - + CoreUnification, - - + /* PROVIDERS SERVICES */ ], exports: [SyncService], diff --git a/packages/api/src/marketingautomation/campaign/campaign.module.ts b/packages/api/src/marketingautomation/campaign/campaign.module.ts index 9e328b73e..d0c219e64 100644 --- a/packages/api/src/marketingautomation/campaign/campaign.module.ts +++ b/packages/api/src/marketingautomation/campaign/campaign.module.ts @@ -12,9 +12,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ imports: [BullQueueModule], @@ -22,15 +19,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat providers: [ CampaignService, CoreUnification, - - - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/marketingautomation/contact/contact.module.ts b/packages/api/src/marketingautomation/contact/contact.module.ts index 9325d5cbf..cdb0d7ee6 100644 --- a/packages/api/src/marketingautomation/contact/contact.module.ts +++ b/packages/api/src/marketingautomation/contact/contact.module.ts @@ -12,9 +12,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -22,16 +19,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [ContactController], providers: [ ContactService, - - + CoreUnification, - - + SyncService, WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/marketingautomation/email/email.module.ts b/packages/api/src/marketingautomation/email/email.module.ts index 1ccb1f5f0..dfb2b44c1 100644 --- a/packages/api/src/marketingautomation/email/email.module.ts +++ b/packages/api/src/marketingautomation/email/email.module.ts @@ -13,9 +13,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,17 +20,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [EmailController], providers: [ EmailService, - + SyncService, WebhookService, - - FieldMappingService, ServiceRegistry, CoreUnification, - IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/marketingautomation/event/event.module.ts b/packages/api/src/marketingautomation/event/event.module.ts index 3c99bf486..c88560c18 100644 --- a/packages/api/src/marketingautomation/event/event.module.ts +++ b/packages/api/src/marketingautomation/event/event.module.ts @@ -13,9 +13,6 @@ import { SyncService } from './sync/sync.service'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,15 +20,12 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [EventController], providers: [ EventService, - - - + SyncService, WebhookService, - - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/marketingautomation/user/user.module.ts b/packages/api/src/marketingautomation/user/user.module.ts index 5059f1d78..025757d94 100644 --- a/packages/api/src/marketingautomation/user/user.module.ts +++ b/packages/api/src/marketingautomation/user/user.module.ts @@ -13,9 +13,6 @@ import { UserController } from './user.controller'; import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { BullQueueModule } from '@@core/@core-services/queues/queue.module'; - - - import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; @Module({ @@ -23,16 +20,14 @@ import { CoreUnification } from '@@core/@core-services/unification/core-unificat controllers: [UserController], providers: [ UserService, - - - + SyncService, CoreUnification, - + WebhookService, - + ServiceRegistry, - + IngestDataService, /* PROVIDERS SERVICES */ ], diff --git a/packages/api/src/ticketing/account/account.module.ts b/packages/api/src/ticketing/account/account.module.ts index 6ff738efd..de4d8474c 100644 --- a/packages/api/src/ticketing/account/account.module.ts +++ b/packages/api/src/ticketing/account/account.module.ts @@ -22,13 +22,12 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data controllers: [AccountController], providers: [ AccountService, - + SyncService, WebhookService, - + ServiceRegistry, - - + CoreUnification, IngestDataService, Utils, @@ -39,11 +38,6 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data ZendeskAccountMapper, FrontAccountMapper, ], - exports: [ - SyncService, - ServiceRegistry, - WebhookService, - - ], + exports: [SyncService, ServiceRegistry, WebhookService], }) export class AccountModule {} diff --git a/packages/api/src/ticketing/attachment/attachment.module.ts b/packages/api/src/ticketing/attachment/attachment.module.ts index badaa40fe..1ba2ce545 100644 --- a/packages/api/src/ticketing/attachment/attachment.module.ts +++ b/packages/api/src/ticketing/attachment/attachment.module.ts @@ -21,13 +21,13 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data controllers: [AttachmentController], providers: [ AttachmentService, - + WebhookService, - + ServiceRegistry, - + Utils, - + IngestDataService, /* PROVIDERS SERVICES */ diff --git a/packages/api/src/ticketing/collection/collection.module.ts b/packages/api/src/ticketing/collection/collection.module.ts index 1c0ccf6c5..efc18590c 100644 --- a/packages/api/src/ticketing/collection/collection.module.ts +++ b/packages/api/src/ticketing/collection/collection.module.ts @@ -22,13 +22,12 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data controllers: [CollectionController], providers: [ CollectionService, - + SyncService, WebhookService, - - + ServiceRegistry, - + Utils, IngestDataService, /* PROVIDERS SERVICES */ @@ -38,11 +37,6 @@ import { IngestDataService } from '@@core/@core-services/unification/ingest-data JiraCollectionMapper, GitlabCollectionMapper, ], - exports: [ - SyncService, - ServiceRegistry, - WebhookService, - - ], + exports: [SyncService, ServiceRegistry, WebhookService], }) export class CollectionModule {} diff --git a/packages/shared/src/authUrl.ts b/packages/shared/src/authUrl.ts index 73e947465..51c4f00ea 100644 --- a/packages/shared/src/authUrl.ts +++ b/packages/shared/src/authUrl.ts @@ -16,7 +16,7 @@ interface AuthParams { // make sure to check wether its api_key or oauth2 to build the right auth // make sure to check if client has own credentials to connect or panora managed ones export const constructAuthUrl = async ({ projectId, linkedUserId, providerName, returnUrl, apiUrl, vertical }: AuthParams) => { - const redirectUrlIngressWhenLocalDev = CONNECTORS_METADATA[vertical][providerName].options?.local_redirect_uri_in_https == true && "https://prepared-wildcat-infinitely.ngrok-free.app"; + const redirectUrlIngressWhenLocalDev = CONNECTORS_METADATA[vertical][providerName].options?.local_redirect_uri_in_https === true && 'https://prepared-wildcat-infinitely.ngrok-free.app'; const encodedRedirectUrl = encodeURIComponent(`${redirectUrlIngressWhenLocalDev ? redirectUrlIngressWhenLocalDev : apiUrl}/connections/oauth/callback`); const state = encodeURIComponent(JSON.stringify({ projectId, linkedUserId, providerName, vertical, returnUrl })); // console.log('State : ', JSON.stringify({ projectId, linkedUserId, providerName, vertical, returnUrl })); @@ -124,7 +124,7 @@ const handleOAuth2Url = async (input: HandleOAuth2Url) => { if(providerName === 'helpscout') { params = `client_id=${encodeURIComponent(clientId)}&state=${state}`; } - if(providerName === 'pipedrive'){ + if(providerName === 'pipedrive') { params = `client_id=${encodeURIComponent(clientId)}&redirect_uri=${encodedRedirectUrl}&state=${state}`; }