From 68dae36aa952ebd8f91fd4a87edd361c66fca563 Mon Sep 17 00:00:00 2001 From: Subin C Date: Thu, 22 Aug 2024 11:18:52 +0530 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=90=9B=20If=20Column=20contains=20a?= =?UTF-8?q?=20null=20data=20then=20act=20as=20if=20the=20colum=20was=20set?= =?UTF-8?q?=20to=20true=20#561?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/components/PanoraDynamicCatalog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/embedded-catalog/react/src/components/PanoraDynamicCatalog.tsx b/apps/embedded-catalog/react/src/components/PanoraDynamicCatalog.tsx index 27685e13e..f8208cc8e 100644 --- a/apps/embedded-catalog/react/src/components/PanoraDynamicCatalog.tsx +++ b/apps/embedded-catalog/react/src/components/PanoraDynamicCatalog.tsx @@ -168,7 +168,7 @@ const DynamicCatalog = ({projectId,linkedUserId, category, optionalApiUrl} : Dyn return [{ connector_name: connector_name, category: category, - status: String(value) + status: value === null ? "true" : String(value) }]; } return []; From 4c32cd424bccaa463a222465bcc193dad900fc3a Mon Sep 17 00:00:00 2001 From: Subin C Date: Thu, 22 Aug 2024 15:46:29 +0530 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=90=9B=20Removed=20returnurl=20in=20c?= =?UTF-8?q?ode=20example=20#674?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "removed returnurl in code example #674" --- .../src/components/Configuration/Catalog/CopySnippet.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx b/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx index f8ba24d40..464ebfd40 100644 --- a/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx +++ b/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx @@ -28,7 +28,7 @@ export const CopySnippet = () => { `` ); @@ -131,7 +131,7 @@ export const CopySnippet = () => { projectId{`={'c9a1b1f8-466d-442d-a95e-11cdd00baf49'}`} - returnUrl{`={'https://acme.inc'}`} + optionalApiUrl{`={'https://acme.inc'}`} linkedUserId{`={'b860d6c1-28f9-485c-86cd-fb09e60f10a2'}`} @@ -191,7 +191,7 @@ export const CopySnippet = () => { projectId{`={'c9a1b1f8-466d-442d-a95e-11cdd00baf49'}`} - returnUrl{`={'https://acme.inc'}`} + optionalApiUrl{`={'https://acme.inc'}`} linkedUserId{`={'b860d6c1-28f9-485c-86cd-fb09e60f10a2'}`} From c08d89ec1babcf6c72515e1e4cd3186dd4a83e8f Mon Sep 17 00:00:00 2001 From: Subin C Date: Thu, 22 Aug 2024 15:48:35 +0530 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=90=9B=20Removed=20returnurl=20in=20c?= =?UTF-8?q?ode=20example=20#674?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removed returnurl in code example #674 --- .../webapp/src/components/Configuration/Catalog/CopySnippet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx b/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx index 464ebfd40..896f02c2d 100644 --- a/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx +++ b/apps/webapp/src/components/Configuration/Catalog/CopySnippet.tsx @@ -50,7 +50,7 @@ export const CopySnippet = () => { name={"hubspot"} category={ConnectorCategory.Crm} projectId={"c9a1b1f8-466d-442d-a95e-11cdd00baf49"} - returnUrl={"https://acme.inc"} + optionalApiUrl={"https://acme.inc"} linkedUserId={"b860d6c1-28f9-485c-86cd-fb09e60f10a2"} />` ); From bdab891c6d3eaba2d0d334cb18ecbf08d7788b62 Mon Sep 17 00:00:00 2001 From: Ram Krishna Singh Date: Sat, 24 Aug 2024 12:07:20 +0530 Subject: [PATCH 4/7] stores account output api data in remote_data --- packages/api/src/ticketing/account/services/front/mappers.ts | 1 + packages/api/src/ticketing/account/services/zendesk/mappers.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/api/src/ticketing/account/services/front/mappers.ts b/packages/api/src/ticketing/account/services/front/mappers.ts index ba545a04d..c467955c8 100644 --- a/packages/api/src/ticketing/account/services/front/mappers.ts +++ b/packages/api/src/ticketing/account/services/front/mappers.ts @@ -63,6 +63,7 @@ export class FrontAccountMapper implements IAccountMapper { name: account.name, domains: account.domains.flat(), field_mappings: field_mappings, + remote_data: account }; return unifiedAccount; diff --git a/packages/api/src/ticketing/account/services/zendesk/mappers.ts b/packages/api/src/ticketing/account/services/zendesk/mappers.ts index d4e128d80..5f40bfd32 100644 --- a/packages/api/src/ticketing/account/services/zendesk/mappers.ts +++ b/packages/api/src/ticketing/account/services/zendesk/mappers.ts @@ -60,6 +60,7 @@ export class ZendeskAccountMapper implements IAccountMapper { remote_id: String(account.id), name: account.name, domains: account.domain_names, + remote_data: account }; return unifiedAccount; From b32940f1cbe7cba43283595589b89832797f6cc8 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 26 Aug 2024 22:02:27 +0200 Subject: [PATCH 5/7] :bug: Fix verifyEvent return response type --- .../panora-webhooks/webhook.controller.ts | 5 ++- .../panora-webhooks/webhook.processor.ts | 36 ++++++++++------- .../panora-webhooks/webhook.service.ts | 7 ---- .../ats/services/ashby/ashby.service.ts | 4 +- .../@core/utils/dtos/openapi.respone.dto.ts | 2 +- packages/api/src/crm/@lib/@utils/index.ts | 1 + .../src/crm/company/services/hubspot/index.ts | 2 +- .../src/crm/contact/services/hubspot/index.ts | 2 +- .../api/src/crm/contact/sync/sync.service.ts | 40 +++++++++---------- .../src/crm/deal/services/hubspot/index.ts | 2 +- .../api/src/crm/deal/sync/sync.service.ts | 39 +++++++++--------- .../crm/engagement/services/hubspot/index.ts | 6 +-- .../src/crm/note/services/hubspot/index.ts | 4 +- .../src/crm/task/services/hubspot/index.ts | 19 +++++---- .../src/crm/user/services/hubspot/index.ts | 17 ++++---- packages/api/swagger/swagger-spec.yaml | 4 +- packages/shared/src/authUrl.ts | 2 +- packages/shared/src/connectors/metadata.ts | 2 +- 18 files changed, 97 insertions(+), 97 deletions(-) diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts index 38b311ade..5cd8b1857 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts @@ -176,10 +176,13 @@ export class WebhookController { @Post('verifyEvent') async verifyPayloadSignature(@Body() data: SignatureVerificationDto) { const { payload, signature, secret } = data; - return await this.webhookService.verifyPayloadSignature( + const resp = await this.webhookService.verifyPayloadSignature( payload, signature, secret, ); + return { + data: resp, + }; } } diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.processor.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.processor.ts index cc43e3f23..741209b02 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.processor.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.processor.ts @@ -6,6 +6,7 @@ import { Job } from 'bull'; import { v4 as uuidv4 } from 'uuid'; import { WebhookService } from './webhook.service'; import { Queues } from '@@core/@core-services/queues/types'; +import { response } from 'express'; @Processor(Queues.PANORA_WEBHOOKS_SENDER) export class WebhookProcessor { @@ -60,19 +61,24 @@ export class WebhookProcessor { deliveryAttempt.webhooks_payloads.data, deliveryAttempt.webhook_endpoints.secret, ); - const response = await axios.post( - deliveryAttempt.webhook_endpoints.url, - { - id_event: deliveryAttempt.id_event, - data: deliveryAttempt.webhooks_payloads.data, - type: event.type, - }, - { - headers: { - 'Panora-Signature': signature, + let response; + try { + response = await axios.post( + deliveryAttempt.webhook_endpoints.url, + { + id_event: deliveryAttempt.id_event, + data: deliveryAttempt.webhooks_payloads.data, + type: event.type, }, - }, - ); + { + headers: { + 'Panora-Signature': signature, + }, + }, + ); + } catch (error) { + throw error; + } // Populate the webhooks_responses table await this.prisma.webhooks_reponses.create({ @@ -92,7 +98,7 @@ export class WebhookProcessor { this.logger.log('Webhook delivered !'); } catch (error) { // If the POST request fails, set a next retry time and reinsert the job in the queue - const nextRetry = new Date(); + /*const nextRetry = new Date(); nextRetry.setSeconds(nextRetry.getSeconds() + 60); // Retry after 60 seconds await this.prisma.webhook_delivery_attempts.update({ @@ -104,10 +110,10 @@ export class WebhookProcessor { }); //re-insert the webhook in the queue - await this.webhookService.dispatchFailedWebhook(id_webhook_delivery); + await this.webhookService.dispatchFailedWebhook(id_webhook_delivery);*/ this.logger.log( - 'Webhook delivery failed. Job reinserted in the queue for retry.', + `Webhook delivery failed. Job reinserted in the queue for retry : ${error}`, ); } } else { diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.service.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.service.ts index 323e074d4..e025ef298 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.service.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.service.ts @@ -20,7 +20,6 @@ export class WebhookService { generateSignature(payload: any, secret: string): string { try { - this.logger.log('PAYLOAD IS ' + JSON.stringify(payload)); return createHmac('sha256', secret) .update(JSON.stringify(payload)) .digest('hex'); @@ -295,12 +294,6 @@ export class WebhookService { secret: string, ) { try { - this.logger.log( - '(verify) PAYLOAD IS ' + - JSON.stringify(payload) + - ' data from payload is ' + - JSON.stringify(payload.data), - ); const expected = this.generateSignature(payload.data, secret); if (expected !== signature) { throw new WebhooksError({ diff --git a/packages/api/src/@core/connections/ats/services/ashby/ashby.service.ts b/packages/api/src/@core/connections/ats/services/ashby/ashby.service.ts index 77ec8a559..8fa6a0b80 100644 --- a/packages/api/src/@core/connections/ats/services/ashby/ashby.service.ts +++ b/packages/api/src/@core/connections/ats/services/ashby/ashby.service.ts @@ -93,7 +93,7 @@ export class AshbyConnectionService extends AbstractBaseConnectionService { id_connection: isNotUnique.id_connection, }, data: { - access_token: this.cryptoService.encrypt(body.username), + access_token: this.cryptoService.encrypt(body.api_key), account_url: CONNECTORS_METADATA['ats']['ashby'].urls .apiUrl as string, status: 'valid', @@ -110,7 +110,7 @@ export class AshbyConnectionService extends AbstractBaseConnectionService { token_type: 'basic', account_url: CONNECTORS_METADATA['ats']['ashby'].urls .apiUrl as string, - access_token: this.cryptoService.encrypt(body.username), + access_token: this.cryptoService.encrypt(body.api_key), status: 'valid', created_at: new Date(), projects: { diff --git a/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts b/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts index ef4b0103e..49a604708 100644 --- a/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts +++ b/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts @@ -46,7 +46,7 @@ export const ApiPostCustomResponse = >( export const ApiPostGenericJson = (description: string) => { return applyDecorators( - ApiOkResponse({ + ApiCreatedResponse({ schema: { properties: { data: { diff --git a/packages/api/src/crm/@lib/@utils/index.ts b/packages/api/src/crm/@lib/@utils/index.ts index 7f7444c9e..383083625 100644 --- a/packages/api/src/crm/@lib/@utils/index.ts +++ b/packages/api/src/crm/@lib/@utils/index.ts @@ -14,6 +14,7 @@ export class Utils { if (email_addresses) { normalizedEmails = email_addresses.map((email) => ({ ...email, + email_address: email.email_address ?? '', owner_type: email.owner_type ? email.owner_type : '', created_at: new Date(), modified_at: new Date(), diff --git a/packages/api/src/crm/company/services/hubspot/index.ts b/packages/api/src/crm/company/services/hubspot/index.ts index 4ff80ba66..e5feb1919 100644 --- a/packages/api/src/crm/company/services/hubspot/index.ts +++ b/packages/api/src/crm/company/services/hubspot/index.ts @@ -44,7 +44,7 @@ export class HubspotService implements ICompanyService { properties: companyData, }; const resp = await axios.post( - `${connection.account_url}/crm/v3/objects/companies`, + `${connection.account_url}/v3/objects/companies`, JSON.stringify(dataBody), { headers: { diff --git a/packages/api/src/crm/contact/services/hubspot/index.ts b/packages/api/src/crm/contact/services/hubspot/index.ts index a0c32a178..02fdcbbe6 100644 --- a/packages/api/src/crm/contact/services/hubspot/index.ts +++ b/packages/api/src/crm/contact/services/hubspot/index.ts @@ -45,7 +45,7 @@ export class HubspotService implements IContactService { properties: contactData, }; const resp = await axios.post( - `${connection.account_url}/crm/v3/objects/contacts`, + `${connection.account_url}/v3/objects/contacts`, JSON.stringify(dataBody), { headers: { diff --git a/packages/api/src/crm/contact/sync/sync.service.ts b/packages/api/src/crm/contact/sync/sync.service.ts index a64e78ef3..0f388df28 100644 --- a/packages/api/src/crm/contact/sync/sync.service.ts +++ b/packages/api/src/crm/contact/sync/sync.service.ts @@ -1,24 +1,22 @@ -import { FieldMappingService } from '@@core/field-mapping/field-mapping.service'; import { LoggerService } from '@@core/@core-services/logger/logger.service'; import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; -import { ApiResponse } from '@@core/utils/types'; +import { BullQueueService } from '@@core/@core-services/queues/shared.service'; +import { CoreSyncRegistry } from '@@core/@core-services/registries/core-sync.registry'; +import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; +import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; import { WebhookService } from '@@core/@core-services/webhooks/panora-webhooks/webhook.service'; +import { FieldMappingService } from '@@core/field-mapping/field-mapping.service'; +import { IBaseSync, SyncLinkedUserType } from '@@core/utils/types/interface'; +import { OriginalContactOutput } from '@@core/utils/types/original/original.crm'; +import { Utils } from '@crm/@lib/@utils'; import { UnifiedCrmContactOutput } from '@crm/contact/types/model.unified'; -import { CrmObject } from '@crm/@lib/@types'; import { Injectable, OnModuleInit } from '@nestjs/common'; import { Cron } from '@nestjs/schedule'; -import { v4 as uuidv4 } from 'uuid'; +import { CRM_PROVIDERS } from '@panora/shared'; import { crm_contacts as CrmContact } from '@prisma/client'; -import { IContactService } from '../types'; -import { OriginalContactOutput } from '@@core/utils/types/original/original.crm'; +import { v4 as uuidv4 } from 'uuid'; import { ServiceRegistry } from '../services/registry.service'; -import { CRM_PROVIDERS } from '@panora/shared'; -import { Utils } from '@crm/@lib/@utils'; -import { CoreSyncRegistry } from '@@core/@core-services/registries/core-sync.registry'; -import { CoreUnification } from '@@core/@core-services/unification/core-unification.service'; -import { BullQueueService } from '@@core/@core-services/queues/shared.service'; -import { IBaseSync, SyncLinkedUserType } from '@@core/utils/types/interface'; -import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; +import { IContactService } from '../types'; @Injectable() export class SyncService implements OnModuleInit, IBaseSync { @@ -58,12 +56,12 @@ export class SyncService implements OnModuleInit, IBaseSync { const users = user_id ? [ - await this.prisma.users.findUnique({ - where: { - id_user: user_id, - }, - }), - ] + await this.prisma.users.findUnique({ + where: { + id_user: user_id, + }, + }), + ] : await this.prisma.users.findMany(); if (users && users.length > 0) { for (const user of users) { @@ -113,7 +111,9 @@ export class SyncService implements OnModuleInit, IBaseSync { const service: IContactService = this.serviceRegistry.getService(integrationId); if (!service) { - this.logger.log(`No service found in {vertical:crm, commonObject: contact} for integration ID: ${integrationId}`); + this.logger.log( + `No service found in {vertical:crm, commonObject: contact} for integration ID: ${integrationId}`, + ); return; } diff --git a/packages/api/src/crm/deal/services/hubspot/index.ts b/packages/api/src/crm/deal/services/hubspot/index.ts index 5f2ba38ee..237c15b6f 100644 --- a/packages/api/src/crm/deal/services/hubspot/index.ts +++ b/packages/api/src/crm/deal/services/hubspot/index.ts @@ -82,7 +82,7 @@ export class HubspotService implements IDealService { const commonPropertyNames = Object.keys(commonDealHubspotProperties); const allProperties = [...commonPropertyNames, ...custom_properties]; - const baseURL = `${connection.account_url}/crm/v3/objects/deals`; + const baseURL = `${connection.account_url}/v3/objects/deals`; const queryString = allProperties .map((prop) => `properties=${encodeURIComponent(prop)}`) diff --git a/packages/api/src/crm/deal/sync/sync.service.ts b/packages/api/src/crm/deal/sync/sync.service.ts index 24a2c8550..95e80032f 100644 --- a/packages/api/src/crm/deal/sync/sync.service.ts +++ b/packages/api/src/crm/deal/sync/sync.service.ts @@ -1,20 +1,19 @@ -import { Injectable, OnModuleInit } from '@nestjs/common'; import { LoggerService } from '@@core/@core-services/logger/logger.service'; import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; +import { BullQueueService } from '@@core/@core-services/queues/shared.service'; +import { CoreSyncRegistry } from '@@core/@core-services/registries/core-sync.registry'; +import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; +import { FieldMappingService } from '@@core/field-mapping/field-mapping.service'; +import { IBaseSync, SyncLinkedUserType } from '@@core/utils/types/interface'; +import { OriginalDealOutput } from '@@core/utils/types/original/original.crm'; +import { Injectable, OnModuleInit } from '@nestjs/common'; import { Cron } from '@nestjs/schedule'; -import { ApiResponse } from '@@core/utils/types'; +import { CRM_PROVIDERS } from '@panora/shared'; +import { crm_deals as CrmDeal } from '@prisma/client'; import { v4 as uuidv4 } from 'uuid'; -import { FieldMappingService } from '@@core/field-mapping/field-mapping.service'; import { ServiceRegistry } from '../services/registry.service'; -import { UnifiedCrmDealOutput } from '../types/model.unified'; import { IDealService } from '../types'; -import { OriginalDealOutput } from '@@core/utils/types/original/original.crm'; -import { crm_deals as CrmDeal } from '@prisma/client'; -import { CRM_PROVIDERS } from '@panora/shared'; -import { CoreSyncRegistry } from '@@core/@core-services/registries/core-sync.registry'; -import { BullQueueService } from '@@core/@core-services/queues/shared.service'; -import { IBaseSync, SyncLinkedUserType } from '@@core/utils/types/interface'; -import { IngestDataService } from '@@core/@core-services/unification/ingest-data.service'; +import { UnifiedCrmDealOutput } from '../types/model.unified'; @Injectable() export class SyncService implements OnModuleInit, IBaseSync { @@ -48,12 +47,12 @@ export class SyncService implements OnModuleInit, IBaseSync { this.logger.log(`Syncing deals....`); const users = user_id ? [ - await this.prisma.users.findUnique({ - where: { - id_user: user_id, - }, - }), - ] + await this.prisma.users.findUnique({ + where: { + id_user: user_id, + }, + }), + ] : await this.prisma.users.findMany(); if (users && users.length > 0) { for (const user of users) { @@ -103,7 +102,9 @@ export class SyncService implements OnModuleInit, IBaseSync { const service: IDealService = this.serviceRegistry.getService(integrationId); if (!service) { - this.logger.log(`No service found in {vertical:crm, commonObject: deal} for integration ID: ${integrationId}`); + this.logger.log( + `No service found in {vertical:crm, commonObject: deal} for integration ID: ${integrationId}`, + ); return; } @@ -141,7 +142,7 @@ export class SyncService implements OnModuleInit, IBaseSync { const baseData: any = { name: deal.name ?? null, description: deal.description ?? null, - amount: deal.amount ?? null, + amount: deal.amount ?? 0, id_crm_user: deal.user_id ?? null, id_crm_deals_stage: deal.stage_id ?? null, id_crm_company: deal.company_id ?? null, diff --git a/packages/api/src/crm/engagement/services/hubspot/index.ts b/packages/api/src/crm/engagement/services/hubspot/index.ts index 5673e86db..91aa6bff4 100644 --- a/packages/api/src/crm/engagement/services/hubspot/index.ts +++ b/packages/api/src/crm/engagement/services/hubspot/index.ts @@ -81,7 +81,7 @@ export class HubspotService implements IEngagementService { properties: engagementData, }; const resp = await axios.post( - `${connection.account_url}/crm/v3/objects/calls`, + `${connection.account_url}/v3/objects/calls`, JSON.stringify(dataBody), { headers: { @@ -118,7 +118,7 @@ export class HubspotService implements IEngagementService { properties: engagementData, }; const resp = await axios.post( - `${connection.account_url}/crm/v3/objects/meetings`, + `${connection.account_url}/v3/objects/meetings`, JSON.stringify(dataBody), { headers: { @@ -155,7 +155,7 @@ export class HubspotService implements IEngagementService { properties: engagementData, }; const resp = await axios.post( - `${connection.account_url}/crm/v3/objects/emails`, + `${connection.account_url}/v3/objects/emails`, JSON.stringify(dataBody), { headers: { diff --git a/packages/api/src/crm/note/services/hubspot/index.ts b/packages/api/src/crm/note/services/hubspot/index.ts index 71e3e332a..3028e4e2a 100644 --- a/packages/api/src/crm/note/services/hubspot/index.ts +++ b/packages/api/src/crm/note/services/hubspot/index.ts @@ -53,7 +53,7 @@ export class HubspotService implements INoteService { ); const final_resp = await axios.get( - `${connection.account_url}/objects/notes/${resp.data.id}?properties=hs_note_body&associations=deal,contact,company`, + `${connection.account_url}/v3/objects/notes/${resp.data.id}?properties=hs_note_body&associations=deal,contact,company`, { headers: { 'Content-Type': 'application/json', @@ -87,7 +87,7 @@ export class HubspotService implements INoteService { const commonPropertyNames = Object.keys(commonNoteHubspotProperties); const allProperties = [...commonPropertyNames, ...custom_properties]; - const baseURL = `${connection.account_url}/objects/notes`; + const baseURL = `${connection.account_url}/v3/objects/notes`; const queryString = allProperties .map((prop) => `properties=${encodeURIComponent(prop)}`) diff --git a/packages/api/src/crm/task/services/hubspot/index.ts b/packages/api/src/crm/task/services/hubspot/index.ts index 4b8cad070..88b8fcb18 100644 --- a/packages/api/src/crm/task/services/hubspot/index.ts +++ b/packages/api/src/crm/task/services/hubspot/index.ts @@ -1,19 +1,18 @@ -import { Injectable } from '@nestjs/common'; -import { ITaskService } from '@crm/task/types'; +import { EncryptionService } from '@@core/@core-services/encryption/encryption.service'; +import { LoggerService } from '@@core/@core-services/logger/logger.service'; +import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; +import { ApiResponse } from '@@core/utils/types'; +import { SyncParam } from '@@core/utils/types/interface'; import { CrmObject } from '@crm/@lib/@types'; +import { ITaskService } from '@crm/task/types'; +import { Injectable } from '@nestjs/common'; +import axios from 'axios'; +import { ServiceRegistry } from '../registry.service'; import { HubspotTaskInput, HubspotTaskOutput, commonTaskHubspotProperties, } from './types'; -import axios from 'axios'; -import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; -import { LoggerService } from '@@core/@core-services/logger/logger.service'; -import { ActionType, handle3rdPartyServiceError } from '@@core/utils/errors'; -import { EncryptionService } from '@@core/@core-services/encryption/encryption.service'; -import { ApiResponse } from '@@core/utils/types'; -import { ServiceRegistry } from '../registry.service'; -import { SyncParam } from '@@core/utils/types/interface'; @Injectable() export class HubspotService implements ITaskService { diff --git a/packages/api/src/crm/user/services/hubspot/index.ts b/packages/api/src/crm/user/services/hubspot/index.ts index a86a7ec20..0e35a4f77 100644 --- a/packages/api/src/crm/user/services/hubspot/index.ts +++ b/packages/api/src/crm/user/services/hubspot/index.ts @@ -1,15 +1,14 @@ -import { Injectable } from '@nestjs/common'; -import { IUserService } from '@crm/user/types'; -import { CrmObject } from '@crm/@lib/@types'; -import { HubspotUserOutput, commonUserHubspotProperties } from './types'; -import axios from 'axios'; -import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; -import { LoggerService } from '@@core/@core-services/logger/logger.service'; -import { ActionType, handle3rdPartyServiceError } from '@@core/utils/errors'; import { EncryptionService } from '@@core/@core-services/encryption/encryption.service'; +import { LoggerService } from '@@core/@core-services/logger/logger.service'; +import { PrismaService } from '@@core/@core-services/prisma/prisma.service'; import { ApiResponse } from '@@core/utils/types'; -import { ServiceRegistry } from '../registry.service'; import { SyncParam } from '@@core/utils/types/interface'; +import { CrmObject } from '@crm/@lib/@types'; +import { IUserService } from '@crm/user/types'; +import { Injectable } from '@nestjs/common'; +import axios from 'axios'; +import { ServiceRegistry } from '../registry.service'; +import { HubspotUserOutput, commonUserHubspotProperties } from './types'; @Injectable() export class HubspotService implements IUserService { diff --git a/packages/api/swagger/swagger-spec.yaml b/packages/api/swagger/swagger-spec.yaml index 17b806d81..722e6de24 100644 --- a/packages/api/swagger/swagger-spec.yaml +++ b/packages/api/swagger/swagger-spec.yaml @@ -151,7 +151,7 @@ paths: schema: $ref: '#/components/schemas/SignatureVerificationDto' responses: - '200': + '201': description: '' content: application/json: @@ -161,8 +161,6 @@ paths: type: object additionalProperties: true description: Dynamic event payload - '201': - description: '' tags: *ref_0 x-speakeasy-group: webhooks /ticketing/tickets: diff --git a/packages/shared/src/authUrl.ts b/packages/shared/src/authUrl.ts index 5a7ae7d8a..cc719e90c 100644 --- a/packages/shared/src/authUrl.ts +++ b/packages/shared/src/authUrl.ts @@ -48,7 +48,7 @@ export const constructAuthUrl = async ({ let baseRedirectURL = apiUrl; if (config.options?.local_redirect_uri_in_https && redirectUriIngress?.status) { baseRedirectURL = redirectUriIngress.value!; - } + } const encodedRedirectUrl = encodeURIComponent(`${baseRedirectURL}/connections/oauth/callback`); let state = encodeURIComponent(JSON.stringify({ projectId, linkedUserId, providerName, vertical, returnUrl })); diff --git a/packages/shared/src/connectors/metadata.ts b/packages/shared/src/connectors/metadata.ts index 873590f9c..b5baeafac 100644 --- a/packages/shared/src/connectors/metadata.ts +++ b/packages/shared/src/connectors/metadata.ts @@ -1259,7 +1259,7 @@ export const CONNECTORS_METADATA: ProvidersConfig = { primaryColor: '#4a3ead', authStrategy: { strategy: AuthStrategy.basic, - properties: ['username'] + properties: ['api_key'] } }, 'bamboohr': { From d2e3cc3de695c6a27c4a8e2762c328c9db624ed0 Mon Sep 17 00:00:00 2001 From: nael Date: Tue, 27 Aug 2024 01:26:38 +0200 Subject: [PATCH 6/7] :sparkles: Update verifyEvent return response --- .../webhooks/panora-webhooks/webhook.controller.ts | 4 +--- .../api/src/@core/utils/dtos/openapi.respone.dto.ts | 10 +++------- packages/api/swagger/swagger-spec.yaml | 8 +++----- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts index 5cd8b1857..1cabce443 100644 --- a/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts +++ b/packages/api/src/@core/@core-services/webhooks/panora-webhooks/webhook.controller.ts @@ -181,8 +181,6 @@ export class WebhookController { signature, secret, ); - return { - data: resp, - }; + return resp; } } diff --git a/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts b/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts index 49a604708..bc3151d25 100644 --- a/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts +++ b/packages/api/src/@core/utils/dtos/openapi.respone.dto.ts @@ -48,13 +48,9 @@ export const ApiPostGenericJson = (description: string) => { return applyDecorators( ApiCreatedResponse({ schema: { - properties: { - data: { - type: 'object', - additionalProperties: true, - description: description, - }, - }, + type: 'object', + additionalProperties: true, + description: description, }, }), ); diff --git a/packages/api/swagger/swagger-spec.yaml b/packages/api/swagger/swagger-spec.yaml index 722e6de24..8abc627f7 100644 --- a/packages/api/swagger/swagger-spec.yaml +++ b/packages/api/swagger/swagger-spec.yaml @@ -156,11 +156,9 @@ paths: content: application/json: schema: - properties: - data: - type: object - additionalProperties: true - description: Dynamic event payload + type: object + additionalProperties: true + description: Dynamic event payload tags: *ref_0 x-speakeasy-group: webhooks /ticketing/tickets: From 1b143b0a8b98a53c103a424612efd1910baca487 Mon Sep 17 00:00:00 2001 From: nael Date: Tue, 27 Aug 2024 08:46:10 +0200 Subject: [PATCH 7/7] :bug: Fix limit query type value --- .../api/src/@core/utils/dtos/query.dto.ts | 3 +- .../accounting/account/types/model.unified.ts | 2 +- .../balancesheet/types/model.unified.ts | 2 +- .../cashflowstatement/types/model.unified.ts | 2 +- .../companyinfo/types/model.unified.ts | 2 +- .../accounting/contact/types/model.unified.ts | 2 +- .../creditnote/types/model.unified.ts | 2 +- .../accounting/expense/types/model.unified.ts | 4 +- .../incomestatement/types/model.unified.ts | 2 +- .../accounting/invoice/types/model.unified.ts | 4 +- .../journalentry/types/model.unified.ts | 4 +- .../accounting/payment/types/model.unified.ts | 2 +- .../purchaseorder/types/model.unified.ts | 4 +- .../transaction/types/model.unified.ts | 4 +- .../vendorcredit/types/model.unified.ts | 2 +- packages/api/src/ats/@lib/@types/index.ts | 8 +- .../src/ats/activity/types/model.unified.ts | 13 +- .../src/ats/attachment/types/model.unified.ts | 4 +- .../api/src/ats/eeocs/types/model.unified.ts | 28 +- .../src/ats/interview/types/model.unified.ts | 4 +- .../api/src/ats/job/types/model.unified.ts | 8 +- .../jobinterviewstage/types/model.unified.ts | 2 +- .../api/src/ats/offer/types/model.unified.ts | 8 +- .../src/ats/scorecard/types/model.unified.ts | 4 +- .../api/src/ats/user/types/model.unified.ts | 8 +- packages/api/src/crm/@lib/@types/index.ts | 10 +- .../src/crm/company/types/model.unified.ts | 2 +- .../api/src/crm/contact/contact.controller.ts | 6 +- .../crm/contact/services/hubspot/mappers.ts | 4 +- .../crm/contact/services/zendesk/mappers.ts | 6 +- .../src/crm/contact/services/zoho/mappers.ts | 4 +- .../src/crm/engagement/types/model.unified.ts | 12 +- .../api/src/crm/task/types/model.unified.ts | 6 +- .../api/src/ecommerce/@lib/@types/index.ts | 4 +- .../ecommerce/order/types/model.unified.ts | 22 +- .../ecommerce/product/types/model.unified.ts | 4 +- .../permission/types/model.unified.ts | 6 +- .../src/hris/bankinfo/types/model.unified.ts | 2 +- .../src/hris/dependent/types/model.unified.ts | 4 +- .../src/hris/employee/types/model.unified.ts | 12 +- .../employerbenefit/types/model.unified.ts | 2 +- .../hris/employment/types/model.unified.ts | 14 +- .../api/src/hris/group/types/model.unified.ts | 2 +- .../src/hris/location/types/model.unified.ts | 4 +- .../hris/payrollrun/types/model.unified.ts | 6 +- .../src/hris/timeoff/types/model.unified.ts | 8 +- .../timeoffbalance/types/model.unified.ts | 4 +- .../collection/types/model.unified.ts | 6 +- .../ticketing/comment/types/model.unified.ts | 6 +- .../ticketing/ticket/types/model.unified.ts | 18 +- packages/api/swagger/swagger-spec.yaml | 3320 +---------------- 51 files changed, 295 insertions(+), 3327 deletions(-) diff --git a/packages/api/src/@core/utils/dtos/query.dto.ts b/packages/api/src/@core/utils/dtos/query.dto.ts index 6a0385e97..2f49e0d5e 100644 --- a/packages/api/src/@core/utils/dtos/query.dto.ts +++ b/packages/api/src/@core/utils/dtos/query.dto.ts @@ -30,7 +30,6 @@ export class QueryDto { @Type(() => Number) @IsOptional() @IsNumber() - @Transform((value) => Number(value)) limit: number = DEFAULT_PAGE_SIZE; @ApiProperty({ @@ -41,7 +40,7 @@ export class QueryDto { description: 'Set to get the number of records after this cursor.', }) @IsOptional() - @Transform((p) => Buffer.from(p.value, 'base64').toString()) + //@Transform((p) => Buffer.from(p.value, 'base64').toString()) @IsUUID() cursor: string; } diff --git a/packages/api/src/accounting/account/types/model.unified.ts b/packages/api/src/accounting/account/types/model.unified.ts index 25a221d9d..b7a1317b6 100644 --- a/packages/api/src/accounting/account/types/model.unified.ts +++ b/packages/api/src/accounting/account/types/model.unified.ts @@ -72,7 +72,7 @@ export class UnifiedAccountingAccountInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the account', }) diff --git a/packages/api/src/accounting/balancesheet/types/model.unified.ts b/packages/api/src/accounting/balancesheet/types/model.unified.ts index ba4cf4439..72d99be9d 100644 --- a/packages/api/src/accounting/balancesheet/types/model.unified.ts +++ b/packages/api/src/accounting/balancesheet/types/model.unified.ts @@ -25,7 +25,7 @@ export class UnifiedAccountingBalancesheetInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency used in the balance sheet', }) diff --git a/packages/api/src/accounting/cashflowstatement/types/model.unified.ts b/packages/api/src/accounting/cashflowstatement/types/model.unified.ts index 9bfedd309..c020c1a3b 100644 --- a/packages/api/src/accounting/cashflowstatement/types/model.unified.ts +++ b/packages/api/src/accounting/cashflowstatement/types/model.unified.ts @@ -114,7 +114,7 @@ export class UnifiedAccountingCashflowstatementInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency used in the cash flow statement', }) diff --git a/packages/api/src/accounting/companyinfo/types/model.unified.ts b/packages/api/src/accounting/companyinfo/types/model.unified.ts index 1474454b5..c4e5cc95f 100644 --- a/packages/api/src/accounting/companyinfo/types/model.unified.ts +++ b/packages/api/src/accounting/companyinfo/types/model.unified.ts @@ -70,7 +70,7 @@ export class UnifiedAccountingCompanyinfoInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency used by the company', }) diff --git a/packages/api/src/accounting/contact/types/model.unified.ts b/packages/api/src/accounting/contact/types/model.unified.ts index 6bce88f18..1a1ecd169 100644 --- a/packages/api/src/accounting/contact/types/model.unified.ts +++ b/packages/api/src/accounting/contact/types/model.unified.ts @@ -74,7 +74,7 @@ export class UnifiedAccountingContactInput { type: String, example: 'USD', nullable: true, - enum: CurrencyCode, + // enum: CurrencyCode, description: 'The currency associated with the contact', }) @IsString() diff --git a/packages/api/src/accounting/creditnote/types/model.unified.ts b/packages/api/src/accounting/creditnote/types/model.unified.ts index 12a03f82b..df2cb2f70 100644 --- a/packages/api/src/accounting/creditnote/types/model.unified.ts +++ b/packages/api/src/accounting/creditnote/types/model.unified.ts @@ -105,7 +105,7 @@ export class UnifiedAccountingCreditnoteInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the credit note', }) diff --git a/packages/api/src/accounting/expense/types/model.unified.ts b/packages/api/src/accounting/expense/types/model.unified.ts index 9d1537f3c..09bc6e091 100644 --- a/packages/api/src/accounting/expense/types/model.unified.ts +++ b/packages/api/src/accounting/expense/types/model.unified.ts @@ -23,7 +23,7 @@ export class LineItem { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the line item', }) @@ -123,7 +123,7 @@ export class UnifiedAccountingExpenseInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the expense', }) diff --git a/packages/api/src/accounting/incomestatement/types/model.unified.ts b/packages/api/src/accounting/incomestatement/types/model.unified.ts index 18123d79d..ecb1edbe3 100644 --- a/packages/api/src/accounting/incomestatement/types/model.unified.ts +++ b/packages/api/src/accounting/incomestatement/types/model.unified.ts @@ -22,7 +22,7 @@ export class UnifiedAccountingIncomestatementInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency used in the income statement', }) diff --git a/packages/api/src/accounting/invoice/types/model.unified.ts b/packages/api/src/accounting/invoice/types/model.unified.ts index ce0625651..3fbe810dc 100644 --- a/packages/api/src/accounting/invoice/types/model.unified.ts +++ b/packages/api/src/accounting/invoice/types/model.unified.ts @@ -53,7 +53,7 @@ export class LineItem { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the line item', }) @@ -186,7 +186,7 @@ export class UnifiedAccountingInvoiceInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the invoice', }) diff --git a/packages/api/src/accounting/journalentry/types/model.unified.ts b/packages/api/src/accounting/journalentry/types/model.unified.ts index 36a1bdb06..792b2fe2c 100644 --- a/packages/api/src/accounting/journalentry/types/model.unified.ts +++ b/packages/api/src/accounting/journalentry/types/model.unified.ts @@ -35,7 +35,7 @@ export class LineItem { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the line item', }) @@ -158,7 +158,7 @@ export class UnifiedAccountingJournalentryInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the journal entry', }) diff --git a/packages/api/src/accounting/payment/types/model.unified.ts b/packages/api/src/accounting/payment/types/model.unified.ts index aa85513dd..2b7af2c62 100644 --- a/packages/api/src/accounting/payment/types/model.unified.ts +++ b/packages/api/src/accounting/payment/types/model.unified.ts @@ -123,7 +123,7 @@ export class UnifiedAccountingPaymentInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the payment', }) diff --git a/packages/api/src/accounting/purchaseorder/types/model.unified.ts b/packages/api/src/accounting/purchaseorder/types/model.unified.ts index 8d7de7efd..5e7edcd88 100644 --- a/packages/api/src/accounting/purchaseorder/types/model.unified.ts +++ b/packages/api/src/accounting/purchaseorder/types/model.unified.ts @@ -76,7 +76,7 @@ export class LineItem { type: String, example: 'USD', nullable: true, - enum: CurrencyCode, + // enum: CurrencyCode, description: 'The currency of the line item', }) @IsString() @@ -246,7 +246,7 @@ export class UnifiedAccountingPurchaseorderInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the purchase order', }) diff --git a/packages/api/src/accounting/transaction/types/model.unified.ts b/packages/api/src/accounting/transaction/types/model.unified.ts index 27e5aae97..9246cd35d 100644 --- a/packages/api/src/accounting/transaction/types/model.unified.ts +++ b/packages/api/src/accounting/transaction/types/model.unified.ts @@ -63,7 +63,7 @@ export class LineItem { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the line item', }) @@ -214,7 +214,7 @@ export class UnifiedAccountingTransactionInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the transaction', }) diff --git a/packages/api/src/accounting/vendorcredit/types/model.unified.ts b/packages/api/src/accounting/vendorcredit/types/model.unified.ts index 980918563..270705f67 100644 --- a/packages/api/src/accounting/vendorcredit/types/model.unified.ts +++ b/packages/api/src/accounting/vendorcredit/types/model.unified.ts @@ -154,7 +154,7 @@ export class UnifiedAccountingVendorcreditInput { type: String, example: 'USD', nullable: true, - enum: CurrencyCode, + // enum: CurrencyCode, description: 'The currency of the vendor credit', }) @IsString() diff --git a/packages/api/src/ats/@lib/@types/index.ts b/packages/api/src/ats/@lib/@types/index.ts index 37259f98c..2d2df5f49 100644 --- a/packages/api/src/ats/@lib/@types/index.ts +++ b/packages/api/src/ats/@lib/@types/index.ts @@ -154,12 +154,12 @@ export class Email { @ApiProperty({ type: String, - enum: ['PERSONAL', 'WORK'], + //enum: ['PERSONAL', 'WORK'], nullable: true, description: 'The email address type. Authorized values are either PERSONAL or WORK.', }) - @IsIn(['PERSONAL', 'WORK']) + ////@IsIn(['PERSONAL', 'WORK']) @IsString() email_address_type: string; } @@ -176,11 +176,11 @@ export class Phone { @ApiProperty({ type: String, - enum: ['MOBILE', 'WORK'], + //enum: ['MOBILE', 'WORK'], nullable: true, description: 'The phone type. Authorized values are either MOBILE or WORK', }) - @IsIn(['MOBILE', 'WORK']) + ////@IsIn(['MOBILE', 'WORK']) @IsString() phone_type: string; } diff --git a/packages/api/src/ats/activity/types/model.unified.ts b/packages/api/src/ats/activity/types/model.unified.ts index 6ea43b475..2d21f0bf4 100644 --- a/packages/api/src/ats/activity/types/model.unified.ts +++ b/packages/api/src/ats/activity/types/model.unified.ts @@ -13,12 +13,12 @@ export type ActivityVisibility = 'ADMIN_ONLY' | 'PUBLIC' | 'PRIVATE'; export class UnifiedAtsActivityInput { @ApiPropertyOptional({ type: String, - enum: ['NOTE', 'EMAIL', 'OTHER'], + //// enum: ['NOTE', 'EMAIL', 'OTHER'], example: 'NOTE', nullable: true, - description: 'The type of activity', + description: 'The type of activity. NOTE, EMAIL or OTHER', }) - @IsIn(['NOTE', 'EMAIL', 'OTHER']) + ////@IsIn(['NOTE', 'EMAIL', 'OTHER']) @IsOptional() activity_type?: ActivityType | string; @@ -44,12 +44,13 @@ export class UnifiedAtsActivityInput { @ApiPropertyOptional({ type: String, - enum: ['ADMIN_ONLY', 'PUBLIC', 'PRIVATE'], + // enum: ['ADMIN_ONLY', 'PUBLIC', 'PRIVATE'], example: 'PUBLIC', nullable: true, - description: 'The visibility of the activity', + description: + 'The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE', }) - @IsIn(['ADMIN_ONLY', 'PUBLIC', 'PRIVATE']) + ////@IsIn(['ADMIN_ONLY', 'PUBLIC', 'PRIVATE']) @IsOptional() visibility?: ActivityVisibility | string; diff --git a/packages/api/src/ats/attachment/types/model.unified.ts b/packages/api/src/ats/attachment/types/model.unified.ts index 52bfe9d58..3843665c6 100644 --- a/packages/api/src/ats/attachment/types/model.unified.ts +++ b/packages/api/src/ats/attachment/types/model.unified.ts @@ -36,11 +36,11 @@ export class UnifiedAtsAttachmentInput { @ApiPropertyOptional({ type: String, example: 'RESUME', - enum: ['RESUME', 'COVER_LETTER', 'OFFER_LETTER', 'OTHER'], + //// enum: ['RESUME', 'COVER_LETTER', 'OFFER_LETTER', 'OTHER'], nullable: true, description: 'The type of the file', }) - @IsIn(['RESUME', 'COVER_LETTER', 'OFFER_LETTER', 'OTHER']) + ////@IsIn(['RESUME', 'COVER_LETTER', 'OFFER_LETTER', 'OTHER']) @IsOptional() attachment_type?: AttachmentType | string; diff --git a/packages/api/src/ats/eeocs/types/model.unified.ts b/packages/api/src/ats/eeocs/types/model.unified.ts index 6c3b16a86..1dbb9f15a 100644 --- a/packages/api/src/ats/eeocs/types/model.unified.ts +++ b/packages/api/src/ats/eeocs/types/model.unified.ts @@ -58,7 +58,7 @@ export class UnifiedAtsEeocsInput { @ApiPropertyOptional({ type: String, - enum: [ + /* enum: [ 'AMERICAN_INDIAN_OR_ALASKAN_NATIVE', 'ASIAN', 'BLACK_OR_AFRICAN_AMERICAN', @@ -67,12 +67,12 @@ export class UnifiedAtsEeocsInput { 'NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER', 'TWO_OR_MORE_RACES', 'DECLINE_TO_SELF_IDENTIFY', - ], + ],*/ example: 'AMERICAN_INDIAN_OR_ALASKAN_NATIVE', nullable: true, description: 'The race of the candidate', }) - @IsIn([ + /*@IsIn([ 'AMERICAN_INDIAN_OR_ALASKAN_NATIVE', 'ASIAN', 'BLACK_OR_AFRICAN_AMERICAN', @@ -81,56 +81,56 @@ export class UnifiedAtsEeocsInput { 'NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER', 'TWO_OR_MORE_RACES', 'DECLINE_TO_SELF_IDENTIFY', - ]) + ])*/ @IsOptional() race?: EeocsRace | string; @ApiPropertyOptional({ type: String, example: 'MALE', - enum: ['MALE', 'FEMALE', 'NON_BINARY', 'OTHER', 'DECLINE_TO_SELF_IDENTIFY'], + // enum: ['MALE', 'FEMALE', 'NON_BINARY', 'OTHER', 'DECLINE_TO_SELF_IDENTIFY'], nullable: true, description: 'The gender of the candidate', }) - @IsIn(['MALE', 'FEMALE', 'NON_BINARY', 'OTHER', 'DECLINE_TO_SELF_IDENTIFY']) + //@IsIn(['MALE', 'FEMALE', 'NON_BINARY', 'OTHER', 'DECLINE_TO_SELF_IDENTIFY']) @IsOptional() gender?: EeocsGender | string; @ApiPropertyOptional({ type: String, example: 'I_AM_NOT_A_PROTECTED_VETERAN', - enum: [ + /* enum: [ 'I_AM_NOT_A_PROTECTED_VETERAN', 'I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN', 'I_DONT_WISH_TO_ANSWER', - ], + ],*/ nullable: true, description: 'The veteran status of the candidate', }) - @IsIn([ + /*@IsIn([ 'I_AM_NOT_A_PROTECTED_VETERAN', 'I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN', 'I_DONT_WISH_TO_ANSWER', - ]) + ])*/ @IsOptional() veteran_status?: EeocsVeteranStatus | string; @ApiPropertyOptional({ type: String, - enum: [ + /* enum: [ 'YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY', 'NO_I_DONT_HAVE_A_DISABILITY', 'I_DONT_WISH_TO_ANSWER', - ], + ],*/ example: 'YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY', nullable: true, description: 'The disability status of the candidate', }) - @IsIn([ + /*@IsIn([ 'YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY', 'NO_I_DONT_HAVE_A_DISABILITY', 'I_DONT_WISH_TO_ANSWER', - ]) + ])*/ @IsOptional() disability_status?: EeocsDisabilityStatus | string; diff --git a/packages/api/src/ats/interview/types/model.unified.ts b/packages/api/src/ats/interview/types/model.unified.ts index 8b4ebe31d..3a1e6e272 100644 --- a/packages/api/src/ats/interview/types/model.unified.ts +++ b/packages/api/src/ats/interview/types/model.unified.ts @@ -13,12 +13,12 @@ export type InterviewStatus = 'SCHEDULED' | 'AWAITING_FEEDBACK' | 'COMPLETED'; export class UnifiedAtsInterviewInput { @ApiPropertyOptional({ type: String, - enum: ['SCHEDULED', 'AWAITING_FEEDBACK', 'COMPLETED'], + // enum: ['SCHEDULED', 'AWAITING_FEEDBACK', 'COMPLETED'], example: 'SCHEDULED', nullable: true, description: 'The status of the interview', }) - @IsIn(['SCHEDULED', 'AWAITING_FEEDBACK', 'COMPLETED']) + //@IsIn(['SCHEDULED', 'AWAITING_FEEDBACK', 'COMPLETED']) @IsOptional() status?: InterviewStatus | string; diff --git a/packages/api/src/ats/job/types/model.unified.ts b/packages/api/src/ats/job/types/model.unified.ts index dde4d6842..6b44bc300 100644 --- a/packages/api/src/ats/job/types/model.unified.ts +++ b/packages/api/src/ats/job/types/model.unified.ts @@ -45,23 +45,23 @@ export class UnifiedAtsJobInput { @ApiPropertyOptional({ type: String, - enum: ['OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING'], + // enum: ['OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING'], example: 'OPEN', nullable: true, description: 'The status of the job', }) - @IsIn(['OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING']) + //@IsIn(['OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING']) @IsOptional() status?: JobStatus | string; @ApiPropertyOptional({ type: String, example: 'POSTING', - enum: ['POSTING', 'REQUISITION', 'PROFILE'], + // enum: ['POSTING', 'REQUISITION', 'PROFILE'], nullable: true, description: 'The type of the job', }) - @IsIn(['POSTING', 'REQUISITION', 'PROFILE']) + //@IsIn(['POSTING', 'REQUISITION', 'PROFILE']) @IsOptional() type?: JobType | string; diff --git a/packages/api/src/ats/jobinterviewstage/types/model.unified.ts b/packages/api/src/ats/jobinterviewstage/types/model.unified.ts index c963e3a9f..9f3e86188 100644 --- a/packages/api/src/ats/jobinterviewstage/types/model.unified.ts +++ b/packages/api/src/ats/jobinterviewstage/types/model.unified.ts @@ -24,7 +24,7 @@ export class UnifiedAtsJobinterviewstageInput { nullable: true, description: 'The order of the stage', }) - @IsInt() + //@IsInt() @IsOptional() stage_order?: number; diff --git a/packages/api/src/ats/offer/types/model.unified.ts b/packages/api/src/ats/offer/types/model.unified.ts index 9d8636d47..704e84c32 100644 --- a/packages/api/src/ats/offer/types/model.unified.ts +++ b/packages/api/src/ats/offer/types/model.unified.ts @@ -71,7 +71,7 @@ export class UnifiedAtsOfferInput { @ApiPropertyOptional({ type: String, example: 'DRAFT', - enum: [ + /* enum: [ 'DRAFT', 'APPROVAL_SENT', 'APPROVED', @@ -81,11 +81,11 @@ export class UnifiedAtsOfferInput { 'DENIED', 'SIGNED', 'DEPRECATED', - ], + ],*/ description: 'The status of the offer', nullable: true, }) - @IsIn([ + /*@IsIn([ 'DRAFT', 'APPROVAL_SENT', 'APPROVED', @@ -95,7 +95,7 @@ export class UnifiedAtsOfferInput { 'DENIED', 'SIGNED', 'DEPRECATED', - ]) + ])*/ @IsOptional() status?: OfferStatus | string; diff --git a/packages/api/src/ats/scorecard/types/model.unified.ts b/packages/api/src/ats/scorecard/types/model.unified.ts index 226d8e758..e75a05c45 100644 --- a/packages/api/src/ats/scorecard/types/model.unified.ts +++ b/packages/api/src/ats/scorecard/types/model.unified.ts @@ -17,12 +17,12 @@ export type ScoreCardRecommendation = export class UnifiedAtsScorecardInput { @ApiPropertyOptional({ type: String, - enum: ['DEFINITELY_NO', 'NO', 'YES', 'STRONG_YES', 'NO_DECISION'], + // enum: ['DEFINITELY_NO', 'NO', 'YES', 'STRONG_YES', 'NO_DECISION'], example: 'YES', nullable: true, description: 'The overall recommendation', }) - @IsIn(['DEFINITELY_NO', 'NO', 'YES', 'STRONG_YES', 'NO_DECISION']) + //@IsIn(['DEFINITELY_NO', 'NO', 'YES', 'STRONG_YES', 'NO_DECISION']) @IsOptional() overall_recommendation?: ScoreCardRecommendation | string; diff --git a/packages/api/src/ats/user/types/model.unified.ts b/packages/api/src/ats/user/types/model.unified.ts index 7fc8e09fa..6b7f06c0e 100644 --- a/packages/api/src/ats/user/types/model.unified.ts +++ b/packages/api/src/ats/user/types/model.unified.ts @@ -59,23 +59,23 @@ export class UnifiedAtsUserInput { @ApiPropertyOptional({ type: String, example: 'ADMIN', - enum: [ + /* enum: [ 'SUPER_ADMIN', 'ADMIN', 'TEAM_MEMBER', 'LIMITED_TEAM_MEMBER', 'INTERVIEWER', - ], + ],*/ description: 'The access role of the user', nullable: true, }) - @IsIn([ + /*@IsIn([ 'SUPER_ADMIN', 'ADMIN', 'TEAM_MEMBER', 'LIMITED_TEAM_MEMBER', 'INTERVIEWER', - ]) + ])*/ @IsOptional() access_role?: UserAccessRole | string; diff --git a/packages/api/src/crm/@lib/@types/index.ts b/packages/api/src/crm/@lib/@types/index.ts index 5def9dbd5..899868ba3 100644 --- a/packages/api/src/crm/@lib/@types/index.ts +++ b/packages/api/src/crm/@lib/@types/index.ts @@ -314,12 +314,12 @@ export class Email { @ApiProperty({ type: String, - enum: ['PERSONAL', 'WORK'], + //enum: ['PERSONAL', 'WORK'], nullable: true, description: 'The email address type. Authorized values are either PERSONAL or WORK.', }) - @IsIn(['PERSONAL', 'WORK']) + ////@IsIn(['PERSONAL', 'WORK']) @IsString() email_address_type: string; @@ -331,7 +331,7 @@ export class Email { }) @IsString() @IsOptional() - @IsIn(['COMPANY', 'CONTACT']) + //@IsIn(['COMPANY', 'CONTACT']) owner_type?: string; } @@ -347,11 +347,9 @@ export class Phone { @ApiProperty({ type: String, - enum: ['MOBILE', 'WORK'], nullable: true, description: 'The phone type. Authorized values are either MOBILE or WORK', }) - @IsIn(['MOBILE', 'WORK']) @IsString() phone_type: string; @@ -422,13 +420,11 @@ export class Address { @ApiProperty({ type: String, - enum: ['PERSONAL', 'WORK'], nullable: true, example: 'PERSONAL', description: 'The address type. Authorized values are either PERSONAL or WORK.', }) - @IsIn(['PERSONAL', 'WORK']) @IsOptional() @IsString() address_type?: string; diff --git a/packages/api/src/crm/company/types/model.unified.ts b/packages/api/src/crm/company/types/model.unified.ts index 15b767fb2..be755551a 100644 --- a/packages/api/src/crm/company/types/model.unified.ts +++ b/packages/api/src/crm/company/types/model.unified.ts @@ -21,7 +21,7 @@ export class UnifiedCrmCompanyInput { @ApiPropertyOptional({ type: String, example: 'ACCOUNTING', - enum: Industry, + // enum: Industry, description: 'The industry of the company. Authorized values can be found in the Industry enum.', nullable: true, diff --git a/packages/api/src/crm/contact/contact.controller.ts b/packages/api/src/crm/contact/contact.controller.ts index 18fc6e3b8..ecb025767 100644 --- a/packages/api/src/crm/contact/contact.controller.ts +++ b/packages/api/src/crm/contact/contact.controller.ts @@ -62,12 +62,16 @@ export class ContactController { @ApiPaginatedResponse(UnifiedCrmContactOutput) @UseGuards(ApiKeyAuthGuard) @Get() - @UsePipes(new ValidationPipe({ transform: true, disableErrorMessages: true })) + @UsePipes( + new ValidationPipe({ transform: true, disableErrorMessages: false }), + ) async getContacts( @Headers('x-connection-token') connection_token: string, @Query() query: QueryDto, ) { try { + console.log('Received connection_token:', connection_token); + console.log('Received query:', JSON.stringify(query)); const { linkedUserId, remoteSource, connectionId, projectId } = await this.connectionUtils.getConnectionMetadataFromConnectionToken( connection_token, diff --git a/packages/api/src/crm/contact/services/hubspot/mappers.ts b/packages/api/src/crm/contact/services/hubspot/mappers.ts index 95a2649d8..14d75d496 100644 --- a/packages/api/src/crm/contact/services/hubspot/mappers.ts +++ b/packages/api/src/crm/contact/services/hubspot/mappers.ts @@ -143,14 +143,14 @@ export class HubspotContactMapper implements IContactMapper { email_addresses: [ { email_address: contact.properties.email, - email_address_type: 'primary', + email_address_type: 'PERSONAL', owner_type: 'contact', }, ], phone_numbers: [ { phone_number: contact.properties.phone, - phone_type: 'primary', + phone_type: 'PERSONAL', owner_type: 'contact', }, ], diff --git a/packages/api/src/crm/contact/services/zendesk/mappers.ts b/packages/api/src/crm/contact/services/zendesk/mappers.ts index 83fad6e19..832d5d3a5 100644 --- a/packages/api/src/crm/contact/services/zendesk/mappers.ts +++ b/packages/api/src/crm/contact/services/zendesk/mappers.ts @@ -113,17 +113,17 @@ export class ZendeskContactMapper implements IContactMapper { } // Constructing the email and phone details const email_addresses = contact.email - ? [{ email_address: contact.email, email_address_type: 'primary' }] + ? [{ email_address: contact.email, email_address_type: 'PERSONAL' }] : []; const phone_numbers = []; if (contact.phone) { - phone_numbers.push({ phone_number: contact.phone, phone_type: 'work' }); + phone_numbers.push({ phone_number: contact.phone, phone_type: 'WORK' }); } if (contact.mobile) { phone_numbers.push({ phone_number: contact.mobile, - phone_type: 'mobile', + phone_type: 'MOBILE', }); } diff --git a/packages/api/src/crm/contact/services/zoho/mappers.ts b/packages/api/src/crm/contact/services/zoho/mappers.ts index 81ca7ca5b..8f22d0ef5 100644 --- a/packages/api/src/crm/contact/services/zoho/mappers.ts +++ b/packages/api/src/crm/contact/services/zoho/mappers.ts @@ -124,13 +124,13 @@ export class ZohoContactMapper implements IContactMapper { if (contact && contact.Fax) { phone_numbers.push({ phone_number: contact.Fax, - phone_type: 'fax', + phone_type: 'FAX', }); } if (contact && contact.Home_Phone) { phone_numbers.push({ phone_number: contact.Home_Phone, - phone_type: 'home', + phone_type: 'HOME', }); } diff --git a/packages/api/src/crm/engagement/types/model.unified.ts b/packages/api/src/crm/engagement/types/model.unified.ts index 2c1581c88..528e30ec7 100644 --- a/packages/api/src/crm/engagement/types/model.unified.ts +++ b/packages/api/src/crm/engagement/types/model.unified.ts @@ -19,13 +19,13 @@ export class UnifiedCrmEngagementInput { type: String, nullable: true, example: 'INBOUND', - enum: ['INBOUND', 'OUTBOUND'], + // enum: ['INBOUND', 'OUTBOUND'], description: 'The direction of the engagement. Authorized values are INBOUND or OUTBOUND', }) - @IsIn(['INBOUND', 'OUTBOUND'], { + /*@IsIn(['INBOUND', 'OUTBOUND'], { message: 'Direction must be either INBOUND or OUTBOUND', - }) + })*/ @IsOptional() direction?: EngagementDirection | string; @@ -61,13 +61,13 @@ export class UnifiedCrmEngagementInput { type: String, nullable: true, example: 'MEETING', - enum: ['EMAIL', 'CALL', 'MEETING'], + // enum: ['EMAIL', 'CALL', 'MEETING'], description: 'The type of the engagement. Authorized values are EMAIL, CALL or MEETING', }) - @IsIn(['EMAIL', 'CALL', 'MEETING'], { + /*@IsIn(['EMAIL', 'CALL', 'MEETING'], { message: 'Type must be either EMAIL, CALL or MEETING', - }) + })*/ type?: EngagementType | string; @ApiPropertyOptional({ diff --git a/packages/api/src/crm/task/types/model.unified.ts b/packages/api/src/crm/task/types/model.unified.ts index 78f4c280c..57be7f4cf 100644 --- a/packages/api/src/crm/task/types/model.unified.ts +++ b/packages/api/src/crm/task/types/model.unified.ts @@ -24,14 +24,14 @@ export class UnifiedCrmTaskInput { @ApiProperty({ type: String, example: 'PENDING', - enum: ['PENDING', 'COMPLETED'], + // enum: ['PENDING', 'COMPLETED'], description: 'The status of the task. Authorized values are PENDING, COMPLETED.', nullable: true, }) - @IsIn(['PENDING', 'COMPLETED'], { + /*@IsIn(['PENDING', 'COMPLETED'], { message: 'Type must be either PENDING or COMPLETED', - }) + })*/ status: TaskStatus | string; @ApiPropertyOptional({ diff --git a/packages/api/src/ecommerce/@lib/@types/index.ts b/packages/api/src/ecommerce/@lib/@types/index.ts index c0261f61d..ad393e730 100644 --- a/packages/api/src/ecommerce/@lib/@types/index.ts +++ b/packages/api/src/ecommerce/@lib/@types/index.ts @@ -108,13 +108,13 @@ export class Address { @ApiProperty({ type: String, - enum: ['SHIPPING', 'BILLING'], + //enum: ['SHIPPING', 'BILLING'], example: 'SHIPPING', nullable: true, description: 'The address type. Authorized values are either SHIPPING or BILLING.', }) - @IsIn(['SHIPPING', 'BILLING']) + ////@IsIn(['SHIPPING', 'BILLING']) @IsOptional() @IsString() address_type?: 'SHIPPING' | 'BILLING' | string; diff --git a/packages/api/src/ecommerce/order/types/model.unified.ts b/packages/api/src/ecommerce/order/types/model.unified.ts index fa98aef8e..bc9bd95b6 100644 --- a/packages/api/src/ecommerce/order/types/model.unified.ts +++ b/packages/api/src/ecommerce/order/types/model.unified.ts @@ -44,11 +44,11 @@ export class UnifiedEcommerceOrderInput { @ApiPropertyOptional({ type: String, example: 'UNSHIPPED', - enum: ['PENDING', 'UNSHIPPED', 'SHIPPED', 'CANCELED'], + // enum: ['PENDING', 'UNSHIPPED', 'SHIPPED', 'CANCELED'], nullable: true, description: 'The status of the order', }) - @IsIn(['PENDING', 'UNSHIPPED', 'SHIPPED', 'CANCELED']) + //@IsIn(['PENDING', 'UNSHIPPED', 'SHIPPED', 'CANCELED']) @IsOptional() order_status?: OrderStatus | string; @@ -65,11 +65,11 @@ export class UnifiedEcommerceOrderInput { @ApiPropertyOptional({ type: String, example: 'SUCCESS', - enum: ['SUCCESS', 'FAIL'], + // enum: ['SUCCESS', 'FAIL'], nullable: true, description: 'The payment status of the order', }) - @IsIn(['SUCCESS', 'FAIL']) + //@IsIn(['SUCCESS', 'FAIL']) @IsOptional() payment_status?: 'SUCCESS' | 'FAIL' | string; @@ -77,7 +77,7 @@ export class UnifiedEcommerceOrderInput { type: String, nullable: true, example: 'AUD', - enum: CurrencyCode, + // enum: CurrencyCode, description: 'The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217)', }) @@ -91,7 +91,7 @@ export class UnifiedEcommerceOrderInput { nullable: true, description: 'The total price of the order', }) - @IsInt() + //@IsInt() @IsOptional() total_price?: number; @@ -101,7 +101,7 @@ export class UnifiedEcommerceOrderInput { nullable: true, description: 'The total discount on the order', }) - @IsInt() + //@IsInt() @IsOptional() total_discount?: number; @@ -111,7 +111,7 @@ export class UnifiedEcommerceOrderInput { nullable: true, description: 'The total shipping cost of the order', }) - @IsInt() + //@IsInt() @IsOptional() total_shipping?: number; @@ -121,7 +121,7 @@ export class UnifiedEcommerceOrderInput { nullable: true, description: 'The total tax on the order', }) - @IsInt() + //@IsInt() @IsOptional() total_tax?: number; @@ -129,10 +129,10 @@ export class UnifiedEcommerceOrderInput { type: String, nullable: true, example: 'PENDING', - enum: ['PENDING', 'FULFILLED', 'CANCELED'], + // enum: ['PENDING', 'FULFILLED', 'CANCELED'], description: 'The fulfillment status of the order', }) - @IsIn(['PENDING', 'FULFILLED', 'CANCELED']) + //@IsIn(['PENDING', 'FULFILLED', 'CANCELED']) @IsOptional() fulfillment_status?: FulfillmentStatus | string; diff --git a/packages/api/src/ecommerce/product/types/model.unified.ts b/packages/api/src/ecommerce/product/types/model.unified.ts index 3dce5514f..f2e36216a 100644 --- a/packages/api/src/ecommerce/product/types/model.unified.ts +++ b/packages/api/src/ecommerce/product/types/model.unified.ts @@ -41,10 +41,10 @@ export class UnifiedEcommerceProductInput { type: String, example: 'ACTIVE', nullable: true, - enum: ['ARCHIVED', 'ACTIVE', 'DRAFT'], + // enum: ['ARCHIVED', 'ACTIVE', 'DRAFT'], description: 'The status of the product. Either ACTIVE, DRAFT OR ARCHIVED.', }) - @IsIn(['ARCHIVED', 'ACTIVE', 'DRAFT']) + //@IsIn(['ARCHIVED', 'ACTIVE', 'DRAFT']) @IsOptional() product_status?: string; diff --git a/packages/api/src/filestorage/permission/types/model.unified.ts b/packages/api/src/filestorage/permission/types/model.unified.ts index 6cc360379..33dd0741b 100644 --- a/packages/api/src/filestorage/permission/types/model.unified.ts +++ b/packages/api/src/filestorage/permission/types/model.unified.ts @@ -8,7 +8,7 @@ export class UnifiedFilestoragePermissionInput { @ApiProperty({ type: [String], example: ['READ'], - enum: ['READ', 'WRITE', 'OWNER'], + // enum: ['READ', 'WRITE', 'OWNER'], nullable: true, description: 'The roles of the permission', }) @@ -17,12 +17,12 @@ export class UnifiedFilestoragePermissionInput { @ApiProperty({ type: String, - enum: ['USER', 'GROUP', 'COMPANY', 'ANYONE'], + // enum: ['USER', 'GROUP', 'COMPANY', 'ANYONE'], example: 'USER', nullable: true, description: 'The type of the permission', }) - @IsIn(['USER', 'GROUP', 'COMPANY', 'ANYONE']) + //@IsIn(['USER', 'GROUP', 'COMPANY', 'ANYONE']) @IsString() type: PermissionType | string; diff --git a/packages/api/src/hris/bankinfo/types/model.unified.ts b/packages/api/src/hris/bankinfo/types/model.unified.ts index e3a7cbe3b..750acc65a 100644 --- a/packages/api/src/hris/bankinfo/types/model.unified.ts +++ b/packages/api/src/hris/bankinfo/types/model.unified.ts @@ -13,7 +13,7 @@ export class UnifiedHrisBankinfoInput { @ApiPropertyOptional({ type: String, example: 'CHECKING', - enum: ['SAVINGS', 'CHECKING'], + // enum: ['SAVINGS', 'CHECKING'], nullable: true, description: 'The type of the bank account', }) diff --git a/packages/api/src/hris/dependent/types/model.unified.ts b/packages/api/src/hris/dependent/types/model.unified.ts index 70eedd34e..c1e2add3f 100644 --- a/packages/api/src/hris/dependent/types/model.unified.ts +++ b/packages/api/src/hris/dependent/types/model.unified.ts @@ -50,7 +50,7 @@ export class UnifiedHrisDependentInput { @ApiPropertyOptional({ type: String, example: 'CHILD', - enum: ['CHILD', 'SPOUSE', 'DOMESTIC_PARTNER'], + // enum: ['CHILD', 'SPOUSE', 'DOMESTIC_PARTNER'], nullable: true, description: 'The relationship of the dependent to the employee', }) @@ -71,7 +71,7 @@ export class UnifiedHrisDependentInput { @ApiPropertyOptional({ type: String, example: 'MALE', - enum: ['MALE', 'FEMALE', 'NON-BINARY', 'OTHER', 'PREFER_NOT_TO_DISCLOSE'], + // enum: ['MALE', 'FEMALE', 'NON-BINARY', 'OTHER', 'PREFER_NOT_TO_DISCLOSE'], nullable: true, description: 'The gender of the dependent', }) diff --git a/packages/api/src/hris/employee/types/model.unified.ts b/packages/api/src/hris/employee/types/model.unified.ts index a7c6e8239..335e2ba49 100644 --- a/packages/api/src/hris/employee/types/model.unified.ts +++ b/packages/api/src/hris/employee/types/model.unified.ts @@ -184,7 +184,7 @@ export class UnifiedHrisEmployeeInput { @ApiPropertyOptional({ type: String, example: 'MALE', - enum: ['MALE', 'FEMALE', 'NON-BINARY', 'OTHER', 'PREFER_NOT_TO_DISCLOSE'], + // enum: ['MALE', 'FEMALE', 'NON-BINARY', 'OTHER', 'PREFER_NOT_TO_DISCLOSE'], nullable: true, description: 'The gender of the employee', }) @@ -195,7 +195,7 @@ export class UnifiedHrisEmployeeInput { @ApiPropertyOptional({ type: String, example: 'AMERICAN_INDIAN_OR_ALASKA_NATIVE', - enum: [ + /* enum: [ 'AMERICAN_INDIAN_OR_ALASKA_NATIVE', 'ASIAN_OR_INDIAN_SUBCONTINENT', 'BLACK_OR_AFRICAN_AMERICAN', @@ -204,7 +204,7 @@ export class UnifiedHrisEmployeeInput { 'TWO_OR_MORE_RACES', 'WHITE', 'PREFER_NOT_TO_DISCLOSE', - ], + ],*/ nullable: true, description: 'The ethnicity of the employee', }) @@ -215,13 +215,13 @@ export class UnifiedHrisEmployeeInput { @ApiPropertyOptional({ type: String, example: 'Married', - enum: [ + /* enum: [ 'SINGLE', 'MARRIED_FILING_JOINTLY', 'MARRIED_FILING_SEPARATELY', 'HEAD_OF_HOUSEHOLD', 'QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD', - ], + ],*/ nullable: true, description: 'The marital status of the employee', }) @@ -252,7 +252,7 @@ export class UnifiedHrisEmployeeInput { @ApiPropertyOptional({ type: String, example: 'ACTIVE', - enum: ['ACTIVE', 'PENDING', 'INACTIVE'], + // enum: ['ACTIVE', 'PENDING', 'INACTIVE'], nullable: true, description: 'The employment status of the employee', }) diff --git a/packages/api/src/hris/employerbenefit/types/model.unified.ts b/packages/api/src/hris/employerbenefit/types/model.unified.ts index 3f280edb6..46852f391 100644 --- a/packages/api/src/hris/employerbenefit/types/model.unified.ts +++ b/packages/api/src/hris/employerbenefit/types/model.unified.ts @@ -17,7 +17,7 @@ export class UnifiedHrisEmployerbenefitInput { @ApiPropertyOptional({ type: String, example: 'Health Insurance', - enum: ['MEDICAL', 'HEALTH_SAVINGS', 'INSURANCE', 'RETIREMENT', 'OTHER'], + // enum: ['MEDICAL', 'HEALTH_SAVINGS', 'INSURANCE', 'RETIREMENT', 'OTHER'], nullable: true, description: 'The type of the benefit plan', }) diff --git a/packages/api/src/hris/employment/types/model.unified.ts b/packages/api/src/hris/employment/types/model.unified.ts index aef4d7031..857744110 100644 --- a/packages/api/src/hris/employment/types/model.unified.ts +++ b/packages/api/src/hris/employment/types/model.unified.ts @@ -68,7 +68,7 @@ export class UnifiedHrisEmploymentInput { @ApiPropertyOptional({ type: String, example: 'MONTHLY', - enum: [ + /* enum: [ 'HOUR', 'DAY', 'WEEK', @@ -78,7 +78,7 @@ export class UnifiedHrisEmploymentInput { 'QUARTER', 'EVERY_SIX_MONTHS', 'YEAR', - ], + ],*/ nullable: true, description: 'The pay period of the employment', }) @@ -89,7 +89,7 @@ export class UnifiedHrisEmploymentInput { @ApiPropertyOptional({ type: String, example: 'WEEKLY', - enum: [ + /* enum: [ 'WEEKLY', 'BIWEEKLY', 'MONTHLY', @@ -99,7 +99,7 @@ export class UnifiedHrisEmploymentInput { 'THIRTEEN-MONTHLY', 'PRO_RATA', 'SEMIMONTHLY', - ], + ],*/ nullable: true, description: 'The pay frequency of the employment', }) @@ -110,7 +110,7 @@ export class UnifiedHrisEmploymentInput { @ApiPropertyOptional({ type: String, example: 'USD', - enum: CurrencyCode, + // enum: CurrencyCode, nullable: true, description: 'The currency of the pay', }) @@ -121,7 +121,7 @@ export class UnifiedHrisEmploymentInput { @ApiPropertyOptional({ type: String, example: 'EXEMPT', - enum: ['EXEMPT', 'SALARIED_NONEXEMPT', 'NONEXEMPT', 'OWNER'], + // enum: ['EXEMPT', 'SALARIED_NONEXEMPT', 'NONEXEMPT', 'OWNER'], nullable: true, description: 'The FLSA status of the employment', }) @@ -142,7 +142,7 @@ export class UnifiedHrisEmploymentInput { @ApiPropertyOptional({ type: String, example: 'FULL_TIME', - enum: ['FULL_TIME', 'PART_TIME', 'INTERN', 'CONTRACTOR', 'FREELANCE'], + // enum: ['FULL_TIME', 'PART_TIME', 'INTERN', 'CONTRACTOR', 'FREELANCE'], nullable: true, description: 'The type of employment', }) diff --git a/packages/api/src/hris/group/types/model.unified.ts b/packages/api/src/hris/group/types/model.unified.ts index 6ce238ae6..7ecb4085b 100644 --- a/packages/api/src/hris/group/types/model.unified.ts +++ b/packages/api/src/hris/group/types/model.unified.ts @@ -37,7 +37,7 @@ export class UnifiedHrisGroupInput { @ApiPropertyOptional({ type: String, example: 'DEPARTMENT', - enum: ['TEAM', 'DEPARTMENT', 'COST_CENTER', 'BUSINESS_UNIT', 'GROUP'], + // enum: ['TEAM', 'DEPARTMENT', 'COST_CENTER', 'BUSINESS_UNIT', 'GROUP'], nullable: true, description: 'The type of the group', }) diff --git a/packages/api/src/hris/location/types/model.unified.ts b/packages/api/src/hris/location/types/model.unified.ts index 7c2fa11da..5bf6593cb 100644 --- a/packages/api/src/hris/location/types/model.unified.ts +++ b/packages/api/src/hris/location/types/model.unified.ts @@ -93,12 +93,12 @@ export class UnifiedHrisLocationInput { @ApiPropertyOptional({ type: String, example: 'WORK', - enum: ['WORK', 'HOME'], + // enum: ['WORK', 'HOME'], nullable: true, description: 'The type of the location', }) @IsString() - @IsIn(['WORK', 'HOME']) + //@IsIn(['WORK', 'HOME']) @IsOptional() location_type?: LocationType | string; diff --git a/packages/api/src/hris/payrollrun/types/model.unified.ts b/packages/api/src/hris/payrollrun/types/model.unified.ts index 29a95f9fd..23e77e40f 100644 --- a/packages/api/src/hris/payrollrun/types/model.unified.ts +++ b/packages/api/src/hris/payrollrun/types/model.unified.ts @@ -18,7 +18,7 @@ export class UnifiedHrisPayrollrunInput { @ApiPropertyOptional({ type: String, example: 'PAID', - enum: ['PAID', 'DRAFT', 'APPROVED', 'FAILED', 'CLOSE'], + // enum: ['PAID', 'DRAFT', 'APPROVED', 'FAILED', 'CLOSE'], nullable: true, description: 'The state of the payroll run', }) @@ -29,13 +29,13 @@ export class UnifiedHrisPayrollrunInput { @ApiPropertyOptional({ type: String, example: 'REGULAR', - enum: [ + /* enum: [ 'REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS', - ], + ],*/ nullable: true, description: 'The type of the payroll run', }) diff --git a/packages/api/src/hris/timeoff/types/model.unified.ts b/packages/api/src/hris/timeoff/types/model.unified.ts index ab9a25343..8af5a3284 100644 --- a/packages/api/src/hris/timeoff/types/model.unified.ts +++ b/packages/api/src/hris/timeoff/types/model.unified.ts @@ -46,7 +46,7 @@ export class UnifiedHrisTimeoffInput { @ApiPropertyOptional({ type: String, example: 'REQUESTED', - enum: ['REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED'], + // enum: ['REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED'], nullable: true, description: 'The status of the time off request', }) @@ -67,7 +67,7 @@ export class UnifiedHrisTimeoffInput { @ApiPropertyOptional({ type: String, example: 'DAYS', - enum: ['HOURS', 'DAYS'], + // enum: ['HOURS', 'DAYS'], nullable: true, description: 'The units used for the time off (e.g., Days, Hours)', }) @@ -88,14 +88,14 @@ export class UnifiedHrisTimeoffInput { @ApiPropertyOptional({ type: String, example: 'VACATION', - enum: [ + /* enum: [ 'VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT', - ], + ],*/ nullable: true, description: 'The type of time off request', }) diff --git a/packages/api/src/hris/timeoffbalance/types/model.unified.ts b/packages/api/src/hris/timeoffbalance/types/model.unified.ts index ae45a58ae..941825f82 100644 --- a/packages/api/src/hris/timeoffbalance/types/model.unified.ts +++ b/packages/api/src/hris/timeoffbalance/types/model.unified.ts @@ -50,14 +50,14 @@ export class UnifiedHrisTimeoffbalanceInput { @ApiPropertyOptional({ type: String, example: 'VACATION', - enum: [ + /*enum: [ 'VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT', - ], + ],*/ nullable: true, description: 'The type of time off policy', }) diff --git a/packages/api/src/ticketing/collection/types/model.unified.ts b/packages/api/src/ticketing/collection/types/model.unified.ts index 41a321f29..9662d414f 100644 --- a/packages/api/src/ticketing/collection/types/model.unified.ts +++ b/packages/api/src/ticketing/collection/types/model.unified.ts @@ -26,14 +26,14 @@ export class UnifiedTicketingCollectionInput { @ApiPropertyOptional({ type: String, example: 'PROJECT', - enum: ['PROJECT', 'LIST'], + // enum: ['PROJECT', 'LIST'], nullable: true, description: 'The type of the collection. Authorized values are either PROJECT or LIST ', }) - @IsIn(['PROJECT', 'LIST'], { + /*@IsIn(['PROJECT', 'LIST'], { message: 'Type must be either PROJECT or LIST', - }) + })*/ @IsOptional() collection_type?: CollectionType | string; } diff --git a/packages/api/src/ticketing/comment/types/model.unified.ts b/packages/api/src/ticketing/comment/types/model.unified.ts index 753c6e1b2..aa7ead01d 100644 --- a/packages/api/src/ticketing/comment/types/model.unified.ts +++ b/packages/api/src/ticketing/comment/types/model.unified.ts @@ -42,13 +42,13 @@ export class UnifiedTicketingCommentInput { type: String, nullable: true, example: 'USER', - enum: ['USER', 'CONTACT'], + // enum: ['USER', 'CONTACT'], description: 'The creator type of the comment. Authorized values are either USER or CONTACT', }) - @IsIn(['USER', 'CONTACT'], { + /*@IsIn(['USER', 'CONTACT'], { message: 'Type must be either USER or CONTACT', - }) + })*/ @IsOptional() creator_type?: CommentCreatorType | string; diff --git a/packages/api/src/ticketing/ticket/types/model.unified.ts b/packages/api/src/ticketing/ticket/types/model.unified.ts index 80da04fa3..8c0de3734 100644 --- a/packages/api/src/ticketing/ticket/types/model.unified.ts +++ b/packages/api/src/ticketing/ticket/types/model.unified.ts @@ -26,14 +26,14 @@ export class UnifiedTicketingTicketInput { @ApiPropertyOptional({ type: String, example: 'OPEN', - enum: ['OPEN', 'CLOSED'], + // enum: ['OPEN', 'CLOSED'], nullable: true, description: 'The status of the ticket. Authorized values are OPEN or CLOSED.', }) - @IsIn(['OPEN', 'CLOSED'], { + /*@IsIn(['OPEN', 'CLOSED'], { message: 'Type must be either OPEN or CLOSED', - }) + })*/ @IsOptional() status?: TicketStatus | string; @@ -58,14 +58,14 @@ export class UnifiedTicketingTicketInput { @ApiPropertyOptional({ type: String, example: 'BUG', - enum: ['BUG', 'SUBTASK', 'TASK', 'TO-DO'], + // enum: ['BUG', 'SUBTASK', 'TASK', 'TO-DO'], nullable: true, description: 'The type of the ticket. Authorized values are PROBLEM, QUESTION, or TASK', }) - @IsIn(['BUG', 'SUBTASK', 'TASK', 'TO-DO'], { + /*@IsIn(['BUG', 'SUBTASK', 'TASK', 'TO-DO'], { message: 'Type must be either BUG, SUBTASK, TASK or TO-DO', - }) + })*/ @IsOptional() type?: TicketType | string; @@ -122,14 +122,14 @@ export class UnifiedTicketingTicketInput { @ApiPropertyOptional({ type: String, example: 'HIGH', - enum: ['HIGH', 'MEDIUM', 'LOW'], + // enum: ['HIGH', 'MEDIUM', 'LOW'], nullable: true, description: 'The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW.', }) - @IsIn(['HIGH', 'MEDIUM', 'LOW'], { + /*@IsIn(['HIGH', 'MEDIUM', 'LOW'], { message: 'Type must be either HIGH, MEDIUM or LOW', - }) + })*/ @IsOptional() priority?: TicketPriority | string; diff --git a/packages/api/swagger/swagger-spec.yaml b/packages/api/swagger/swagger-spec.yaml index 8abc627f7..6a58b8106 100644 --- a/packages/api/swagger/swagger-spec.yaml +++ b/packages/api/swagger/swagger-spec.yaml @@ -9872,9 +9872,6 @@ components: type: string nullable: true example: USER - enum: &ref_121 - - USER - - CONTACT description: >- The creator type of the comment. Authorized values are either USER or CONTACT @@ -9899,12 +9896,12 @@ components: specified) attachments: type: array - items: &ref_122 + items: &ref_114 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingAttachmentOutput' nullable: true - example: &ref_123 + example: &ref_115 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The attachements UUIDs tied to the comment required: @@ -9920,9 +9917,6 @@ components: status: type: string example: OPEN - enum: &ref_92 - - OPEN - - CLOSED nullable: true description: The status of the ticket. Authorized values are OPEN or CLOSED. description: @@ -9939,11 +9933,6 @@ components: type: type: string example: BUG - enum: &ref_93 - - BUG - - SUBTASK - - TASK - - TO-DO nullable: true description: >- The type of the ticket. Authorized values are PROBLEM, QUESTION, or @@ -9955,21 +9944,21 @@ components: description: The UUID of the parent ticket collections: type: array - items: &ref_94 + items: &ref_92 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingCollectionOutput' - example: &ref_95 + example: &ref_93 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The collection UUIDs the ticket belongs to tags: type: array - items: &ref_96 + items: &ref_94 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingTagOutput' - example: &ref_97 + example: &ref_95 - my_tag - urgent_tag nullable: true @@ -9983,16 +9972,12 @@ components: priority: type: string example: HIGH - enum: &ref_98 - - HIGH - - MEDIUM - - LOW nullable: true description: >- The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW. assigned_to: - example: &ref_99 + example: &ref_96 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The users UUIDs the ticket is assigned to @@ -10000,7 +9985,7 @@ components: items: type: string comment: - example: &ref_100 + example: &ref_97 content: Assigned the issue ! nullable: true description: The comment of the ticket @@ -10018,17 +10003,17 @@ components: description: The UUID of the contact which the ticket belongs to attachments: type: array - items: &ref_101 + items: &ref_98 oneOf: - type: string - $ref: '#/components/schemas/UnifiedTicketingAttachmentInput' - example: &ref_102 + example: &ref_99 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The attachements UUIDs tied to the ticket nullable: true field_mappings: type: object - example: &ref_103 + example: &ref_100 fav_dish: broccoli fav_color: red nullable: true @@ -10081,7 +10066,6 @@ components: status: type: string example: OPEN - enum: *ref_92 nullable: true description: The status of the ticket. Authorized values are OPEN or CLOSED. description: @@ -10098,7 +10082,6 @@ components: type: type: string example: BUG - enum: *ref_93 nullable: true description: >- The type of the ticket. Authorized values are PROBLEM, QUESTION, or @@ -10110,14 +10093,14 @@ components: description: The UUID of the parent ticket collections: type: array - items: *ref_94 - example: *ref_95 + items: *ref_92 + example: *ref_93 nullable: true description: The collection UUIDs the ticket belongs to tags: type: array - items: *ref_96 - example: *ref_97 + items: *ref_94 + example: *ref_95 nullable: true description: The tags names of the ticket completed_at: @@ -10129,20 +10112,19 @@ components: priority: type: string example: HIGH - enum: *ref_98 nullable: true description: >- The priority of the ticket. Authorized values are HIGH, MEDIUM or LOW. assigned_to: - example: *ref_99 + example: *ref_96 nullable: true description: The users UUIDs the ticket is assigned to type: array items: type: string comment: - example: *ref_100 + example: *ref_97 nullable: true description: The comment of the ticket allOf: @@ -10159,13 +10141,13 @@ components: description: The UUID of the contact which the ticket belongs to attachments: type: array - items: *ref_101 - example: *ref_102 + items: *ref_98 + example: *ref_99 description: The attachements UUIDs tied to the ticket nullable: true field_mappings: type: object - example: *ref_103 + example: *ref_100 nullable: true description: >- The custom field mappings of the ticket between the remote 3rd party @@ -10415,9 +10397,6 @@ components: description: The email address email_address_type: type: string - enum: - - PERSONAL - - WORK nullable: true description: >- The email address type. Authorized values are either PERSONAL or @@ -10467,9 +10446,6 @@ components: description: The country address_type: type: string - enum: - - PERSONAL - - WORK nullable: true example: PERSONAL description: The address type. Authorized values are either PERSONAL or WORK. @@ -10497,9 +10473,6 @@ components: code (e.g +336676778890 for France) phone_type: type: string - enum: - - MOBILE - - WORK nullable: true description: The phone type. Authorized values are either MOBILE or WORK owner_type: @@ -10520,154 +10493,6 @@ components: industry: type: string example: ACCOUNTING - enum: &ref_104 - - ACCOUNTING - - AIRLINES_AVIATION - - ALTERNATIVE_DISPUTE_RESOLUTION - - ALTERNATIVE_MEDICINE - - ANIMATION - - APPAREL_FASHION - - ARCHITECTURE_PLANNING - - ARTS_AND_CRAFTS - - AUTOMOTIVE - - AVIATION_AEROSPACE - - BANKING - - BIOTECHNOLOGY - - BROADCAST_MEDIA - - BUILDING_MATERIALS - - BUSINESS_SUPPLIES_AND_EQUIPMENT - - CAPITAL_MARKETS - - CHEMICALS - - CIVIC_SOCIAL_ORGANIZATION - - CIVIL_ENGINEERING - - COMMERCIAL_REAL_ESTATE - - COMPUTER_NETWORK_SECURITY - - COMPUTER_GAMES - - COMPUTER_HARDWARE - - COMPUTER_NETWORKING - - COMPUTER_SOFTWARE - - INTERNET - - CONSTRUCTION - - CONSUMER_ELECTRONICS - - CONSUMER_GOODS - - CONSUMER_SERVICES - - COSMETICS - - DAIRY - - DEFENSE_SPACE - - DESIGN - - EDUCATION_MANAGEMENT - - E_LEARNING - - ELECTRICAL_ELECTRONIC_MANUFACTURING - - ENTERTAINMENT - - ENVIRONMENTAL_SERVICES - - EVENTS_SERVICES - - EXECUTIVE_OFFICE - - FACILITIES_SERVICES - - FARMING - - FINANCIAL_SERVICES - - FINE_ART - - FISHERY - - FOOD_BEVERAGES - - FOOD_PRODUCTION - - FUND_RAISING - - FURNITURE - - GAMBLING_CASINOS - - GLASS_CERAMICS_CONCRETE - - GOVERNMENT_ADMINISTRATION - - GOVERNMENT_RELATIONS - - GRAPHIC_DESIGN - - HEALTH_WELLNESS_AND_FITNESS - - HIGHER_EDUCATION - - HOSPITAL_HEALTH_CARE - - HOSPITALITY - - HUMAN_RESOURCES - - IMPORT_AND_EXPORT - - INDIVIDUAL_FAMILY_SERVICES - - INDUSTRIAL_AUTOMATION - - INFORMATION_SERVICES - - INFORMATION_TECHNOLOGY_AND_SERVICES - - INSURANCE - - INTERNATIONAL_AFFAIRS - - INTERNATIONAL_TRADE_AND_DEVELOPMENT - - INVESTMENT_BANKING - - INVESTMENT_MANAGEMENT - - JUDICIARY - - LAW_ENFORCEMENT - - LAW_PRACTICE - - LEGAL_SERVICES - - LEGISLATIVE_OFFICE - - LEISURE_TRAVEL_TOURISM - - LIBRARIES - - LOGISTICS_AND_SUPPLY_CHAIN - - LUXURY_GOODS_JEWELRY - - MACHINERY - - MANAGEMENT_CONSULTING - - MARITIME - - MARKET_RESEARCH - - MARKETING_AND_ADVERTISING - - MECHANICAL_OR_INDUSTRIAL_ENGINEERING - - MEDIA_PRODUCTION - - MEDICAL_DEVICES - - MEDICAL_PRACTICE - - MENTAL_HEALTH_CARE - - MILITARY - - MINING_METALS - - MOTION_PICTURES_AND_FILM - - MUSEUMS_AND_INSTITUTIONS - - MUSIC - - NANOTECHNOLOGY - - NEWSPAPERS - - NON_PROFIT_ORGANIZATION_MANAGEMENT - - OIL_ENERGY - - ONLINE_MEDIA - - OUTSOURCING_OFFSHORING - - PACKAGE_FREIGHT_DELIVERY - - PACKAGING_AND_CONTAINERS - - PAPER_FOREST_PRODUCTS - - PERFORMING_ARTS - - PHARMACEUTICALS - - PHILANTHROPY - - PHOTOGRAPHY - - PLASTICS - - POLITICAL_ORGANIZATION - - PRIMARY_SECONDARY_EDUCATION - - PRINTING - - PROFESSIONAL_TRAINING_COACHING - - PROGRAM_DEVELOPMENT - - PUBLIC_POLICY - - PUBLIC_RELATIONS_AND_COMMUNICATIONS - - PUBLIC_SAFETY - - PUBLISHING - - RAILROAD_MANUFACTURE - - RANCHING - - REAL_ESTATE - - RECREATIONAL_FACILITIES_AND_SERVICES - - RELIGIOUS_INSTITUTIONS - - RENEWABLES_ENVIRONMENT - - RESEARCH - - RESTAURANTS - - RETAIL - - SECURITY_AND_INVESTIGATIONS - - SEMICONDUCTORS - - SHIPBUILDING - - SPORTING_GOODS - - SPORTS - - STAFFING_AND_RECRUITING - - SUPERMARKETS - - TELECOMMUNICATIONS - - TEXTILES - - THINK_TANKS - - TOBACCO - - TRANSLATION_AND_LOCALIZATION - - TRANSPORTATION_TRUCKING_RAILROAD - - UTILITIES - - VENTURE_CAPITAL_PRIVATE_EQUITY - - VETERINARY - - WAREHOUSING - - WHOLESALE - - WINE_AND_SPIRITS - - WIRELESS - - WRITING_AND_EDITING description: >- The industry of the company. Authorized values can be found in the Industry enum. @@ -10684,7 +10509,7 @@ components: nullable: true email_addresses: description: The email addresses of the company - example: &ref_105 + example: &ref_101 - email_address: acme@gmail.com email_address_type: WORK nullable: true @@ -10693,7 +10518,7 @@ components: $ref: '#/components/schemas/Email' addresses: description: The addresses of the company - example: &ref_106 + example: &ref_102 - street_1: 5th Avenue city: New York state: NY @@ -10705,7 +10530,7 @@ components: $ref: '#/components/schemas/Address' phone_numbers: description: The phone numbers of the company - example: &ref_107 + example: &ref_103 - phone_number: '+33660606067' phone_type: WORK nullable: true @@ -10714,7 +10539,7 @@ components: $ref: '#/components/schemas/Phone' field_mappings: type: object - example: &ref_108 + example: &ref_104 fav_dish: broccoli fav_color: red description: >- @@ -10763,7 +10588,6 @@ components: industry: type: string example: ACCOUNTING - enum: *ref_104 description: >- The industry of the company. Authorized values can be found in the Industry enum. @@ -10780,28 +10604,28 @@ components: nullable: true email_addresses: description: The email addresses of the company - example: *ref_105 + example: *ref_101 nullable: true type: array items: $ref: '#/components/schemas/Email' addresses: description: The addresses of the company - example: *ref_106 + example: *ref_102 nullable: true type: array items: $ref: '#/components/schemas/Address' phone_numbers: description: The phone numbers of the company - example: *ref_107 + example: *ref_103 nullable: true type: array items: $ref: '#/components/schemas/Phone' field_mappings: type: object - example: *ref_108 + example: *ref_104 description: >- The custom field mappings of the company between the remote 3rd party & Panora @@ -10825,7 +10649,7 @@ components: email_addresses: nullable: true description: The email addresses of the contact - example: &ref_109 + example: &ref_105 - email: john.doe@example.com type: WORK type: array @@ -10834,7 +10658,7 @@ components: phone_numbers: nullable: true description: The phone numbers of the contact - example: &ref_110 + example: &ref_106 - phone: '1234567890' type: WORK type: array @@ -10843,7 +10667,7 @@ components: addresses: nullable: true description: The addresses of the contact - example: &ref_111 + example: &ref_107 - street: 123 Main St city: Anytown state: CA @@ -10860,7 +10684,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: &ref_112 + example: &ref_108 fav_dish: broccoli fav_color: red nullable: true @@ -10917,21 +10741,21 @@ components: email_addresses: nullable: true description: The email addresses of the contact - example: *ref_109 + example: *ref_105 type: array items: $ref: '#/components/schemas/Email' phone_numbers: nullable: true description: The phone numbers of the contact - example: *ref_110 + example: *ref_106 type: array items: $ref: '#/components/schemas/Phone' addresses: nullable: true description: The addresses of the contact - example: *ref_111 + example: *ref_107 type: array items: $ref: '#/components/schemas/Address' @@ -10942,7 +10766,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: *ref_112 + example: *ref_108 nullable: true description: >- The custom field mappings of the contact between the remote 3rd @@ -10987,7 +10811,7 @@ components: field_mappings: type: object nullable: true - example: &ref_113 + example: &ref_109 fav_dish: broccoli fav_color: red description: >- @@ -11064,7 +10888,7 @@ components: field_mappings: type: object nullable: true - example: *ref_113 + example: *ref_109 description: >- The custom field mappings of the company between the remote 3rd party & Panora @@ -11085,9 +10909,6 @@ components: type: string nullable: true example: INBOUND - enum: &ref_114 - - INBOUND - - OUTBOUND description: >- The direction of the engagement. Authorized values are INBOUND or OUTBOUND @@ -11112,10 +10933,6 @@ components: type: string nullable: true example: MEETING - enum: &ref_115 - - EMAIL - - CALL - - MEETING description: >- The type of the engagement. Authorized values are EMAIL, CALL or MEETING @@ -11131,7 +10948,7 @@ components: description: The UUID of the company tied to the engagement contacts: nullable: true - example: &ref_116 + example: &ref_110 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f description: The UUIDs of contacts tied to the engagement object type: array @@ -11140,7 +10957,7 @@ components: field_mappings: type: object nullable: true - example: &ref_117 + example: &ref_111 fav_dish: broccoli fav_color: red description: >- @@ -11193,7 +11010,6 @@ components: type: string nullable: true example: INBOUND - enum: *ref_114 description: >- The direction of the engagement. Authorized values are INBOUND or OUTBOUND @@ -11218,7 +11034,6 @@ components: type: string nullable: true example: MEETING - enum: *ref_115 description: >- The type of the engagement. Authorized values are EMAIL, CALL or MEETING @@ -11234,7 +11049,7 @@ components: description: The UUID of the company tied to the engagement contacts: nullable: true - example: *ref_116 + example: *ref_110 description: The UUIDs of contacts tied to the engagement object type: array items: @@ -11242,7 +11057,7 @@ components: field_mappings: type: object nullable: true - example: *ref_117 + example: *ref_111 description: >- The custom field mappings of the engagement between the remote 3rd party & Panora @@ -11279,7 +11094,7 @@ components: description: The UUID of the deal tied to the note field_mappings: type: object - example: &ref_118 + example: &ref_112 fav_dish: broccoli fav_color: red nullable: true @@ -11349,7 +11164,7 @@ components: description: The UUID of the deal tied to the note field_mappings: type: object - example: *ref_118 + example: *ref_112 nullable: true description: >- The custom field mappings of the note between the remote 3rd party & @@ -11421,9 +11236,6 @@ components: status: type: string example: PENDING - enum: &ref_119 - - PENDING - - COMPLETED description: The status of the task. Authorized values are PENDING, COMPLETED. nullable: true due_date: @@ -11453,7 +11265,7 @@ components: nullable: true field_mappings: type: object - example: &ref_120 + example: &ref_113 fav_dish: broccoli fav_color: red description: >- @@ -11512,7 +11324,6 @@ components: status: type: string example: PENDING - enum: *ref_119 description: The status of the task. Authorized values are PENDING, COMPLETED. nullable: true due_date: @@ -11542,7 +11353,7 @@ components: nullable: true field_mappings: type: object - example: *ref_120 + example: *ref_113 description: >- The custom field mappings of the task between the remote 3rd party & Panora @@ -11624,9 +11435,6 @@ components: collection_type: type: string example: PROJECT - enum: - - PROJECT - - LIST nullable: true description: >- The type of the collection. Authorized values are either PROJECT or @@ -11685,7 +11493,6 @@ components: type: string nullable: true example: USER - enum: *ref_121 description: >- The creator type of the comment. Authorized values are either USER or CONTACT @@ -11710,9 +11517,9 @@ components: specified) attachments: type: array - items: *ref_122 + items: *ref_114 nullable: true - example: *ref_123 + example: *ref_115 description: The attachements UUIDs tied to the comment id: type: string @@ -12345,9 +12152,6 @@ components: account_type: type: string example: CHECKING - enum: - - SAVINGS - - CHECKING nullable: true description: The type of the bank account bank_name: @@ -12613,10 +12417,6 @@ components: relationship: type: string example: CHILD - enum: - - CHILD - - SPOUSE - - DOMESTIC_PARTNER nullable: true description: The relationship of the dependent to the employee date_of_birth: @@ -12628,12 +12428,6 @@ components: gender: type: string example: MALE - enum: - - MALE - - FEMALE - - NON-BINARY - - OTHER - - PREFER_NOT_TO_DISCLOSE nullable: true description: The gender of the dependent phone_number: @@ -12879,7 +12673,7 @@ components: type: object properties: groups: - example: &ref_124 + example: &ref_116 - Group1 - Group2 nullable: true @@ -12888,7 +12682,7 @@ components: items: type: string locations: - example: &ref_125 + example: &ref_117 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: UUIDs of the of the Location associated with the company @@ -12946,7 +12740,7 @@ components: nullable: true description: The mobile phone number of the employee employments: - example: &ref_126 + example: &ref_118 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true @@ -12962,37 +12756,16 @@ components: gender: type: string example: MALE - enum: &ref_127 - - MALE - - FEMALE - - NON-BINARY - - OTHER - - PREFER_NOT_TO_DISCLOSE nullable: true description: The gender of the employee ethnicity: type: string example: AMERICAN_INDIAN_OR_ALASKA_NATIVE - enum: &ref_128 - - AMERICAN_INDIAN_OR_ALASKA_NATIVE - - ASIAN_OR_INDIAN_SUBCONTINENT - - BLACK_OR_AFRICAN_AMERICAN - - HISPANIC_OR_LATINO - - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - - TWO_OR_MORE_RACES - - WHITE - - PREFER_NOT_TO_DISCLOSE nullable: true description: The ethnicity of the employee marital_status: type: string example: Married - enum: &ref_129 - - SINGLE - - MARRIED_FILING_JOINTLY - - MARRIED_FILING_SEPARATELY - - HEAD_OF_HOUSEHOLD - - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD nullable: true description: The marital status of the employee date_of_birth: @@ -13010,10 +12783,6 @@ components: employment_status: type: string example: ACTIVE - enum: &ref_130 - - ACTIVE - - PENDING - - INACTIVE nullable: true description: The employment status of the employee termination_date: @@ -13034,7 +12803,7 @@ components: description: UUID of the manager (employee) of the employee field_mappings: type: object - example: &ref_131 + example: &ref_119 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -13085,14 +12854,14 @@ components: type: object properties: groups: - example: *ref_124 + example: *ref_116 nullable: true description: The groups the employee belongs to type: array items: type: string locations: - example: *ref_125 + example: *ref_117 nullable: true description: UUIDs of the of the Location associated with the company type: array @@ -13149,7 +12918,7 @@ components: nullable: true description: The mobile phone number of the employee employments: - example: *ref_126 + example: *ref_118 nullable: true description: The employments of the employee type: array @@ -13163,19 +12932,16 @@ components: gender: type: string example: MALE - enum: *ref_127 nullable: true description: The gender of the employee ethnicity: type: string example: AMERICAN_INDIAN_OR_ALASKA_NATIVE - enum: *ref_128 nullable: true description: The ethnicity of the employee marital_status: type: string example: Married - enum: *ref_129 nullable: true description: The marital status of the employee date_of_birth: @@ -13193,7 +12959,6 @@ components: employment_status: type: string example: ACTIVE - enum: *ref_130 nullable: true description: The employment status of the employee termination_date: @@ -13214,7 +12979,7 @@ components: description: UUID of the manager (employee) of the employee field_mappings: type: object - example: *ref_131 + example: *ref_119 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -13225,12 +12990,6 @@ components: benefit_plan_type: type: string example: Health Insurance - enum: - - MEDICAL - - HEALTH_SAVINGS - - INSURANCE - - RETIREMENT - - OTHER nullable: true description: The type of the benefit plan name: @@ -13319,209 +13078,21 @@ components: pay_period: type: string example: MONTHLY - enum: - - HOUR - - DAY - - WEEK - - EVERY_TWO_WEEKS - - SEMIMONTHLY - - MONTH - - QUARTER - - EVERY_SIX_MONTHS - - YEAR nullable: true description: The pay period of the employment pay_frequency: type: string example: WEEKLY - enum: - - WEEKLY - - BIWEEKLY - - MONTHLY - - QUARTERLY - - SEMIANNUALLY - - ANNUALLY - - THIRTEEN-MONTHLY - - PRO_RATA - - SEMIMONTHLY nullable: true description: The pay frequency of the employment pay_currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the pay flsa_status: type: string example: EXEMPT - enum: - - EXEMPT - - SALARIED_NONEXEMPT - - NONEXEMPT - - OWNER nullable: true description: The FLSA status of the employment effective_date: @@ -13533,12 +13104,6 @@ components: employment_type: type: string example: FULL_TIME - enum: - - FULL_TIME - - PART_TIME - - INTERN - - CONTRACTOR - - FREELANCE nullable: true description: The type of employment pay_group_id: @@ -13616,12 +13181,6 @@ components: type: type: string example: DEPARTMENT - enum: - - TEAM - - DEPARTMENT - - COST_CENTER - - BUSINESS_UNIT - - GROUP nullable: true description: The type of the group field_mappings: @@ -13719,9 +13278,6 @@ components: location_type: type: string example: WORK - enum: - - WORK - - HOME nullable: true description: The type of the location company_id: @@ -13846,23 +13402,11 @@ components: run_state: type: string example: PAID - enum: - - PAID - - DRAFT - - APPROVED - - FAILED - - CLOSE nullable: true description: The state of the payroll run run_type: type: string example: REGULAR - enum: - - REGULAR - - OFF_CYCLE - - CORRECTION - - TERMINATION - - SIGN_ON_BONUS nullable: true description: The type of the payroll run start_date: @@ -13958,12 +13502,6 @@ components: status: type: string example: REQUESTED - enum: &ref_132 - - REQUESTED - - APPROVED - - DECLINED - - CANCELLED - - DELETED nullable: true description: The status of the time off request employee_note: @@ -13974,9 +13512,6 @@ components: units: type: string example: DAYS - enum: &ref_133 - - HOURS - - DAYS nullable: true description: The units used for the time off (e.g., Days, Hours) amount: @@ -13987,13 +13522,6 @@ components: request_type: type: string example: VACATION - enum: &ref_134 - - VACATION - - SICK - - PERSONAL - - JURY_DUTY - - VOLUNTEER - - BEREAVEMENT nullable: true description: The type of time off request start_time: @@ -14010,7 +13538,7 @@ components: description: The end time of the time off field_mappings: type: object - example: &ref_135 + example: &ref_120 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -14073,7 +13601,6 @@ components: status: type: string example: REQUESTED - enum: *ref_132 nullable: true description: The status of the time off request employee_note: @@ -14084,7 +13611,6 @@ components: units: type: string example: DAYS - enum: *ref_133 nullable: true description: The units used for the time off (e.g., Days, Hours) amount: @@ -14095,7 +13621,6 @@ components: request_type: type: string example: VACATION - enum: *ref_134 nullable: true description: The type of time off request start_time: @@ -14112,7 +13637,7 @@ components: description: The end time of the time off field_mappings: type: object - example: *ref_135 + example: *ref_120 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -14138,13 +13663,6 @@ components: policy_type: type: string example: VACATION - enum: - - VACATION - - SICK - - PERSONAL - - JURY_DUTY - - VOLUNTEER - - BEREAVEMENT nullable: true description: The type of time off policy field_mappings: @@ -14230,7 +13748,7 @@ components: description: Indicates if the timesheet entry was deleted in the remote system field_mappings: type: object - example: &ref_136 + example: &ref_121 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -14303,7 +13821,7 @@ components: description: Indicates if the timesheet entry was deleted in the remote system field_mappings: type: object - example: *ref_136 + example: *ref_121 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -14361,13 +13879,9 @@ components: properties: activity_type: type: string - enum: &ref_137 - - NOTE - - EMAIL - - OTHER example: NOTE nullable: true - description: The type of activity + description: The type of activity. NOTE, EMAIL or OTHER subject: type: string example: Email subject @@ -14380,13 +13894,9 @@ components: description: The body of the activity visibility: type: string - enum: &ref_138 - - ADMIN_ONLY - - PUBLIC - - PRIVATE example: PUBLIC nullable: true - description: The visibility of the activity + description: The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE candidate_id: type: string example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f @@ -14400,7 +13910,7 @@ components: description: The remote creation date of the activity field_mappings: type: object - example: &ref_139 + example: &ref_122 fav_dish: broccoli fav_color: red additionalProperties: true @@ -14443,10 +13953,9 @@ components: properties: activity_type: type: string - enum: *ref_137 example: NOTE nullable: true - description: The type of activity + description: The type of activity. NOTE, EMAIL or OTHER subject: type: string example: Email subject @@ -14459,10 +13968,9 @@ components: description: The body of the activity visibility: type: string - enum: *ref_138 example: PUBLIC nullable: true - description: The visibility of the activity + description: The visibility of the activity. ADMIN_ONLY, PUBLIC or PRIVATE candidate_id: type: string example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f @@ -14476,7 +13984,7 @@ components: description: The remote creation date of the activity field_mappings: type: object - example: *ref_139 + example: *ref_122 additionalProperties: true nullable: true description: >- @@ -14500,7 +14008,7 @@ components: offers: nullable: true description: The offers UUIDs for the application - example: &ref_140 + example: &ref_123 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 12345678-1234-1234-1234-123456789012 type: array @@ -14537,7 +14045,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: &ref_141 + example: &ref_124 fav_dish: broccoli fav_color: red additionalProperties: true @@ -14603,7 +14111,7 @@ components: offers: nullable: true description: The offers UUIDs for the application - example: *ref_140 + example: *ref_123 type: array items: type: string @@ -14638,7 +14146,7 @@ components: example: 801f9ede-c698-4e66-a7fc-48d19eebaa4f field_mappings: type: object - example: *ref_141 + example: *ref_124 additionalProperties: true nullable: true description: >- @@ -14660,11 +14168,6 @@ components: attachment_type: type: string example: RESUME - enum: &ref_142 - - RESUME - - COVER_LETTER - - OFFER_LETTER - - OTHER nullable: true description: The type of the file remote_created_at: @@ -14686,7 +14189,7 @@ components: description: The UUID of the candidate field_mappings: type: object - example: &ref_143 + example: &ref_125 fav_dish: broccoli fav_color: red additionalProperties: true @@ -14740,7 +14243,6 @@ components: attachment_type: type: string example: RESUME - enum: *ref_142 nullable: true description: The type of the file remote_created_at: @@ -14762,7 +14264,7 @@ components: description: The UUID of the candidate field_mappings: type: object - example: *ref_143 + example: *ref_125 additionalProperties: true nullable: true description: >- @@ -14840,37 +14342,37 @@ components: description: The last interaction date with the candidate attachments: type: array - items: &ref_144 + items: &ref_126 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsAttachmentOutput' - example: &ref_145 + example: &ref_127 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The attachments UUIDs of the candidate applications: type: array - items: &ref_146 + items: &ref_128 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsApplicationOutput' - example: &ref_147 + example: &ref_129 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The applications UUIDs of the candidate tags: type: array - items: &ref_148 + items: &ref_130 oneOf: - type: string - $ref: '#/components/schemas/UnifiedAtsTagOutput' - example: &ref_149 + example: &ref_131 - tag_1 - tag_2 nullable: true description: The tags of the candidate urls: - example: &ref_150 + example: &ref_132 - url: mywebsite.com url_type: WEBSITE nullable: true @@ -14881,7 +14383,7 @@ components: items: $ref: '#/components/schemas/Url' phone_numbers: - example: &ref_151 + example: &ref_133 - phone_number: '+33660688899' phone_type: WORK nullable: true @@ -14890,7 +14392,7 @@ components: items: $ref: '#/components/schemas/Phone' email_addresses: - example: &ref_152 + example: &ref_134 - email_address: joedoe@gmail.com email_address_type: WORK nullable: true @@ -14900,7 +14402,7 @@ components: $ref: '#/components/schemas/Email' field_mappings: type: object - example: &ref_153 + example: &ref_135 fav_dish: broccoli fav_color: red additionalProperties: true @@ -14996,24 +14498,24 @@ components: description: The last interaction date with the candidate attachments: type: array - items: *ref_144 - example: *ref_145 + items: *ref_126 + example: *ref_127 nullable: true description: The attachments UUIDs of the candidate applications: type: array - items: *ref_146 - example: *ref_147 + items: *ref_128 + example: *ref_129 nullable: true description: The applications UUIDs of the candidate tags: type: array - items: *ref_148 - example: *ref_149 + items: *ref_130 + example: *ref_131 nullable: true description: The tags of the candidate urls: - example: *ref_150 + example: *ref_132 nullable: true description: >- The urls of the candidate, possible values for Url type are WEBSITE, @@ -15022,14 +14524,14 @@ components: items: $ref: '#/components/schemas/Url' phone_numbers: - example: *ref_151 + example: *ref_133 nullable: true description: The phone numbers of the candidate type: array items: $ref: '#/components/schemas/Phone' email_addresses: - example: *ref_152 + example: *ref_134 nullable: true description: The email addresses of the candidate type: array @@ -15037,7 +14539,7 @@ components: $ref: '#/components/schemas/Email' field_mappings: type: object - example: *ref_153 + example: *ref_135 additionalProperties: true nullable: true description: >- @@ -15097,10 +14599,6 @@ components: properties: status: type: string - enum: &ref_154 - - SCHEDULED - - AWAITING_FEEDBACK - - COMPLETED example: SCHEDULED nullable: true description: The status of the interview @@ -15120,7 +14618,7 @@ components: nullable: true description: The UUID of the organizer interviewers: - example: &ref_155 + example: &ref_136 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the interviewers @@ -15158,7 +14656,7 @@ components: description: The remote modification date of the interview field_mappings: type: object - example: &ref_156 + example: &ref_137 fav_dish: broccoli fav_color: red additionalProperties: true @@ -15201,7 +14699,6 @@ components: properties: status: type: string - enum: *ref_154 example: SCHEDULED nullable: true description: The status of the interview @@ -15221,7 +14718,7 @@ components: nullable: true description: The UUID of the organizer interviewers: - example: *ref_155 + example: *ref_136 nullable: true description: The UUIDs of the interviewers type: array @@ -15258,7 +14755,7 @@ components: description: The remote modification date of the interview field_mappings: type: object - example: *ref_156 + example: *ref_137 additionalProperties: true nullable: true description: >- @@ -15346,22 +14843,12 @@ components: description: The code of the job status: type: string - enum: - - OPEN - - CLOSED - - DRAFT - - ARCHIVED - - PENDING example: OPEN nullable: true description: The status of the job type: type: string example: POSTING - enum: - - POSTING - - REQUISITION - - PROFILE nullable: true description: The type of the job confidential: @@ -15489,16 +14976,6 @@ components: status: type: string example: DRAFT - enum: - - DRAFT - - APPROVAL_SENT - - APPROVED - - SENT - - SENT_MANUALLY - - OPENED - - DENIED - - SIGNED - - DEPRECATED description: The status of the offer nullable: true application_id: @@ -15649,12 +15126,6 @@ components: properties: overall_recommendation: type: string - enum: - - DEFINITELY_NO - - 'NO' - - 'YES' - - STRONG_YES - - NO_DECISION example: 'YES' nullable: true description: The overall recommendation @@ -15798,12 +15269,6 @@ components: access_role: type: string example: ADMIN - enum: - - SUPER_ADMIN - - ADMIN - - TEAM_MEMBER - - LIMITED_TEAM_MEMBER - - INTERVIEWER description: The access role of the user nullable: true remote_created_at: @@ -15874,45 +15339,21 @@ components: description: The submission date of the EEOC race: type: string - enum: - - AMERICAN_INDIAN_OR_ALASKAN_NATIVE - - ASIAN - - BLACK_OR_AFRICAN_AMERICAN - - HISPANIC_OR_LATINO - - WHITE - - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - - TWO_OR_MORE_RACES - - DECLINE_TO_SELF_IDENTIFY example: AMERICAN_INDIAN_OR_ALASKAN_NATIVE nullable: true description: The race of the candidate gender: type: string example: MALE - enum: - - MALE - - FEMALE - - NON_BINARY - - OTHER - - DECLINE_TO_SELF_IDENTIFY nullable: true description: The gender of the candidate veteran_status: type: string example: I_AM_NOT_A_PROTECTED_VETERAN - enum: - - I_AM_NOT_A_PROTECTED_VETERAN - - >- - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - - I_DONT_WISH_TO_ANSWER nullable: true description: The veteran status of the candidate disability_status: type: string - enum: - - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - - NO_I_DONT_HAVE_A_DISABILITY - - I_DONT_WISH_TO_ANSWER example: YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY nullable: true description: The disability status of the candidate @@ -15992,169 +15433,6 @@ components: currency: type: string example: USD - enum: &ref_157 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the account account_number: @@ -16174,7 +15452,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: &ref_158 + example: &ref_138 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -16246,7 +15524,6 @@ components: currency: type: string example: USD - enum: *ref_157 nullable: true description: The currency of the account account_number: @@ -16266,7 +15543,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: *ref_158 + example: *ref_138 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -16382,7 +15659,7 @@ components: description: The UUID of the associated account field_mappings: type: object - example: &ref_159 + example: &ref_139 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -16438,7 +15715,7 @@ components: description: The UUID of the associated account field_mappings: type: object - example: *ref_159 + example: *ref_139 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -16503,169 +15780,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the balance sheet company_info_id: @@ -16772,169 +15886,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the cash flow statement company_id: @@ -17050,169 +16001,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used by the company urls: @@ -17314,169 +16102,6 @@ components: type: string example: USD nullable: true - enum: &ref_160 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: The currency associated with the contact remote_updated_at: type: string @@ -17490,7 +16115,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: &ref_161 + example: &ref_140 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -17563,7 +16188,6 @@ components: type: string example: USD nullable: true - enum: *ref_160 description: The currency associated with the contact remote_updated_at: type: string @@ -17577,7 +16201,7 @@ components: description: The UUID of the associated company info field_mappings: type: object - example: *ref_161 + example: *ref_140 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -17637,169 +16261,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the credit note payments: @@ -17902,169 +16363,6 @@ components: currency: type: string example: USD - enum: &ref_162 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the expense exchange_rate: @@ -18093,7 +16391,7 @@ components: nullable: true description: The UUID of the associated company info tracking_categories: - example: &ref_163 + example: &ref_141 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the tracking categories associated with the expense @@ -18107,7 +16405,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_164 + example: &ref_142 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -18176,7 +16474,6 @@ components: currency: type: string example: USD - enum: *ref_162 nullable: true description: The currency of the expense exchange_rate: @@ -18205,7 +16502,7 @@ components: nullable: true description: The UUID of the associated company info tracking_categories: - example: *ref_163 + example: *ref_141 nullable: true description: The UUIDs of the tracking categories associated with the expense type: array @@ -18218,7 +16515,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_164 + example: *ref_142 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -18234,169 +16531,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency used in the income statement start_period: @@ -18507,169 +16641,6 @@ components: currency: type: string example: USD - enum: &ref_165 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the invoice exchange_rate: @@ -18718,7 +16689,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: &ref_166 + example: &ref_143 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true @@ -18733,7 +16704,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_167 + example: &ref_144 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -18814,7 +16785,6 @@ components: currency: type: string example: USD - enum: *ref_165 nullable: true description: The currency of the invoice exchange_rate: @@ -18863,7 +16833,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: *ref_166 + example: *ref_143 nullable: true description: The UUIDs of the tracking categories associated with the invoice type: array @@ -18876,7 +16846,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_167 + example: *ref_144 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -18973,7 +16943,7 @@ components: nullable: true description: The date of the transaction payments: - example: &ref_168 + example: &ref_145 - payment1 - payment2 nullable: true @@ -18982,7 +16952,7 @@ components: items: type: string applied_payments: - example: &ref_169 + example: &ref_146 - appliedPayment1 - appliedPayment2 nullable: true @@ -18998,169 +16968,6 @@ components: currency: type: string example: USD - enum: &ref_170 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the journal entry exchange_rate: @@ -19179,7 +16986,7 @@ components: nullable: true description: The journal number tracking_categories: - example: &ref_171 + example: &ref_147 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: >- @@ -19205,7 +17012,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_172 + example: &ref_148 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -19265,14 +17072,14 @@ components: nullable: true description: The date of the transaction payments: - example: *ref_168 + example: *ref_145 nullable: true description: The payments associated with the journal entry type: array items: type: string applied_payments: - example: *ref_169 + example: *ref_146 nullable: true description: The applied payments for the journal entry type: array @@ -19286,7 +17093,6 @@ components: currency: type: string example: USD - enum: *ref_170 nullable: true description: The currency of the journal entry exchange_rate: @@ -19305,7 +17111,7 @@ components: nullable: true description: The journal number tracking_categories: - example: *ref_171 + example: *ref_147 nullable: true description: >- The UUIDs of the tracking categories associated with the journal @@ -19330,7 +17136,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_172 + example: *ref_148 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -19362,169 +17168,6 @@ components: currency: type: string example: USD - enum: &ref_173 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the payment exchange_rate: @@ -19553,7 +17196,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: &ref_174 + example: &ref_149 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: The UUIDs of the tracking categories associated with the payment @@ -19567,7 +17210,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_175 + example: &ref_150 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -19636,7 +17279,6 @@ components: currency: type: string example: USD - enum: *ref_173 nullable: true description: The currency of the payment exchange_rate: @@ -19665,7 +17307,7 @@ components: nullable: true description: The UUID of the associated accounting period tracking_categories: - example: *ref_174 + example: *ref_149 nullable: true description: The UUIDs of the tracking categories associated with the payment type: array @@ -19678,7 +17320,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_175 + example: *ref_150 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -19802,169 +17444,6 @@ components: currency: type: string example: USD - enum: &ref_176 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the purchase order exchange_rate: @@ -19973,7 +17452,7 @@ components: nullable: true description: The exchange rate applied to the purchase order tracking_categories: - example: &ref_177 + example: &ref_151 - 801f9ede-c698-4e66-a7fc-48d19eebaa4f nullable: true description: >- @@ -19994,7 +17473,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_178 + example: &ref_152 custom_field_1: value1 custom_field_2: value2 nullable: true @@ -20104,7 +17583,6 @@ components: currency: type: string example: USD - enum: *ref_176 nullable: true description: The currency of the purchase order exchange_rate: @@ -20113,7 +17591,7 @@ components: nullable: true description: The exchange rate applied to the purchase order tracking_categories: - example: *ref_177 + example: *ref_151 nullable: true description: >- The UUIDs of the tracking categories associated with the purchase @@ -20133,7 +17611,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_178 + example: *ref_152 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -20296,169 +17774,6 @@ components: currency: type: string example: USD - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL nullable: true description: The currency of the transaction tracking_categories: @@ -20568,169 +17883,6 @@ components: type: string example: USD nullable: true - enum: - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: The currency of the vendor credit exchange_rate: type: string @@ -20910,7 +18062,7 @@ components: nullable: true field_mappings: type: object - example: &ref_179 + example: &ref_153 fav_dish: broccoli fav_color: red description: >- @@ -20996,7 +18148,7 @@ components: nullable: true field_mappings: type: object - example: *ref_179 + example: *ref_153 description: >- The custom field mappings of the object between the remote 3rd party & Panora @@ -21054,7 +18206,7 @@ components: description: The UUID of the permission tied to the folder field_mappings: type: object - example: &ref_180 + example: &ref_154 fav_dish: broccoli fav_color: red additionalProperties: true @@ -21145,7 +18297,7 @@ components: description: The UUID of the permission tied to the folder field_mappings: type: object - example: *ref_180 + example: *ref_154 additionalProperties: true nullable: true description: >- @@ -21310,13 +18462,9 @@ components: type: string example: ACTIVE nullable: true - enum: &ref_181 - - ARCHIVED - - ACTIVE - - DRAFT description: The status of the product. Either ACTIVE, DRAFT OR ARCHIVED. images_urls: - example: &ref_182 + example: &ref_155 - https://myproduct/image nullable: true description: The URLs of the product images @@ -21334,7 +18482,7 @@ components: nullable: true description: The vendor of the product variants: - example: &ref_183 + example: &ref_156 - title: teeshirt price: 20 sku: '3' @@ -21346,7 +18494,7 @@ components: items: $ref: '#/components/schemas/Variant' tags: - example: &ref_184 + example: &ref_157 - tag_1 nullable: true description: The tags associated with the product @@ -21355,7 +18503,7 @@ components: type: string field_mappings: type: object - example: &ref_185 + example: &ref_158 fav_dish: broccoli fav_color: red nullable: true @@ -21406,10 +18554,9 @@ components: type: string example: ACTIVE nullable: true - enum: *ref_181 description: The status of the product. Either ACTIVE, DRAFT OR ARCHIVED. images_urls: - example: *ref_182 + example: *ref_155 nullable: true description: The URLs of the product images type: array @@ -21426,13 +18573,13 @@ components: nullable: true description: The vendor of the product variants: - example: *ref_183 + example: *ref_156 description: The variants of the product type: array items: $ref: '#/components/schemas/Variant' tags: - example: *ref_184 + example: *ref_157 nullable: true description: The tags associated with the product type: array @@ -21440,7 +18587,7 @@ components: type: string field_mappings: type: object - example: *ref_185 + example: *ref_158 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -21451,11 +18598,6 @@ components: order_status: type: string example: UNSHIPPED - enum: &ref_186 - - PENDING - - UNSHIPPED - - SHIPPED - - CANCELED nullable: true description: The status of the order order_number: @@ -21466,178 +18608,12 @@ components: payment_status: type: string example: SUCCESS - enum: &ref_187 - - SUCCESS - - FAIL nullable: true description: The payment status of the order currency: type: string nullable: true example: AUD - enum: &ref_188 - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - FOK - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - IDR - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - JPY - - KES - - KGS - - KHR - - KID - - KMF - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PHP - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SGD - - SHP - - SLE - - SLL - - SOS - - SRD - - SSP - - STN - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - USD - - UYU - - UZS - - VES - - VND - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWL description: >- The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217) @@ -21665,10 +18641,6 @@ components: type: string nullable: true example: PENDING - enum: &ref_189 - - PENDING - - FULFILLED - - CANCELED description: The fulfillment status of the order customer_id: type: string @@ -21677,7 +18649,7 @@ components: description: The UUID of the customer associated with the order items: nullable: true - example: &ref_190 + example: &ref_159 - remote_id: '12345' product_id: prod_001 variant_id: var_001 @@ -21708,7 +18680,7 @@ components: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: &ref_191 + example: &ref_160 fav_dish: broccoli fav_color: red nullable: true @@ -21748,7 +18720,6 @@ components: order_status: type: string example: UNSHIPPED - enum: *ref_186 nullable: true description: The status of the order order_number: @@ -21759,14 +18730,12 @@ components: payment_status: type: string example: SUCCESS - enum: *ref_187 nullable: true description: The payment status of the order currency: type: string nullable: true example: AUD - enum: *ref_188 description: >- The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217) @@ -21794,7 +18763,6 @@ components: type: string nullable: true example: PENDING - enum: *ref_189 description: The fulfillment status of the order customer_id: type: string @@ -21803,14 +18771,14 @@ components: description: The UUID of the customer associated with the order items: nullable: true - example: *ref_190 + example: *ref_159 description: The items in the order type: array items: $ref: '#/components/schemas/LineItem' field_mappings: type: object - example: *ref_191 + example: *ref_160 nullable: true description: >- The custom field mappings of the object between the remote 3rd party @@ -21987,7 +18955,7 @@ components: field_mappings: type: object nullable: true - example: &ref_192 + example: &ref_161 fav_dish: broccoli fav_color: red description: >- @@ -22059,7 +19027,7 @@ components: field_mappings: type: object nullable: true - example: *ref_192 + example: *ref_161 description: >- The custom field mappings of the attachment between the remote 3rd party & Panora