@dv4resi/dvss-backend-module-offering-im 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { CONFIGURED_FOR_TYPE_ENUM, MEDIA_PROVIDER_ENUM, DAY_OF_WEEK, OFFERING_RESOURCE_TYPE, STATUS } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models';
2
2
  import { LoggerService, GraphQLContext, AddAPIResponse } from '@dv4resi/dvss-backend-module-utility';
3
3
  import { HttpService } from '@nestjs/axios';
4
+ import { CAPABILITY_PROVIDER_INTEGRATION_ENUM, CAPABILITY_CATEGORY_ENUM, ICapability } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability.model';
4
5
  import { schema, CommonValidationDatabaseService as CommonValidationDatabaseService$1 } from '@dv4resi/dvss-backend-module-datastore';
5
- import { ICapability } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability.model';
6
6
  import { MySql2Database } from 'drizzle-orm/mysql2';
7
7
  import { CAPABILITY_INTEGRATION_STATUS_ENUM, CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability-integration.model';
8
8
  import { CommonValidationDatabaseService } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/util/common-validation.util';
@@ -61,6 +61,148 @@ type IAddCapabilityIntegration = typeof schema.capabilityIntegration.$inferInser
61
61
  };
62
62
  type IUpdateCapabilityIntegration = Partial<typeof schema.capabilityIntegration.$inferInsert>;
63
63
  type IAddCapIntegResourceMapping = typeof schema.capIntegResourceMapping.$inferInsert;
64
+ interface IAddCapabilityIntegrationMappingResponse {
65
+ status: boolean;
66
+ ids: bigint[];
67
+ }
68
+ interface IRemoveCapabilityIntegrationMappingInput {
69
+ capabilityIntegrationId: bigint;
70
+ configuredForId: bigint;
71
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
72
+ }
73
+ interface IDeleteAPIResponse {
74
+ status: boolean;
75
+ }
76
+ interface IUpdateAPIResponse {
77
+ status: boolean;
78
+ }
79
+ interface ICapabilityIntegrationResourceMappingRow {
80
+ id: bigint;
81
+ capabilityIntegrationId: bigint;
82
+ configuredForId: bigint;
83
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
84
+ }
85
+ interface IGetCapabilityIntegrationInput {
86
+ projectId: number;
87
+ id?: bigint;
88
+ category?: CAPABILITY_CATEGORY_ENUM;
89
+ fetchBy?: {
90
+ configuredForId: string | bigint;
91
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
92
+ category?: CAPABILITY_CATEGORY_ENUM;
93
+ };
94
+ }
95
+ type IGetCapabilityIntegrationResult = typeof schema.capabilityIntegration.$inferSelect & {
96
+ provider?: CAPABILITY_PROVIDER_INTEGRATION_ENUM | null;
97
+ resourceMappingId?: bigint;
98
+ configuredForId?: bigint;
99
+ configuredForType?: typeof schema.capIntegResourceMapping.$inferSelect.configuredForType;
100
+ resourceMappingConfig?: typeof schema.capIntegResourceMapping.$inferSelect.config;
101
+ };
102
+
103
+ declare enum INTEGRATION_PROVIDER_ENUM {
104
+ TRYBE = "TRYBE"
105
+ }
106
+ interface IPlatformConfig {
107
+ baseUrl?: string;
108
+ }
109
+ interface IIntegrationConfig {
110
+ siteId?: string;
111
+ apiKey?: string;
112
+ organisationId?: string;
113
+ }
114
+ interface ICapabilityIntegrationConfig {
115
+ platformConfig?: IPlatformConfig;
116
+ integrationConfig?: IIntegrationConfig;
117
+ }
118
+ interface IValidatedCapabilityIntegrationConfig {
119
+ platformConfig: Required<IPlatformConfig>;
120
+ integrationConfig: Required<IIntegrationConfig>;
121
+ }
122
+ interface ICapabilityIntegration {
123
+ id: bigint;
124
+ provider?: INTEGRATION_PROVIDER_ENUM | null;
125
+ providerId?: bigint;
126
+ config?: ICapabilityIntegrationConfig;
127
+ capabilityId?: bigint;
128
+ projectId?: number;
129
+ }
130
+ interface IValidatedCapabilityIntegration {
131
+ id: bigint;
132
+ provider?: INTEGRATION_PROVIDER_ENUM | null;
133
+ providerId?: bigint;
134
+ config: IValidatedCapabilityIntegrationConfig;
135
+ capabilityId?: bigint;
136
+ headers?: Record<string, string>;
137
+ projectId?: number;
138
+ }
139
+
140
+ interface IAddCapabilityIntegrationConfig {
141
+ platformConfig: Record<string, unknown>;
142
+ integrationConfig: Record<string, unknown>;
143
+ }
144
+ interface IIcon {
145
+ provider: MEDIA_PROVIDER_ENUM;
146
+ meta: unknown;
147
+ }
148
+ interface IAddCapabilityIntegrationConfiguredFor {
149
+ configuredForId: bigint;
150
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
151
+ }
152
+ interface IAddCapabilityIntegrationInput {
153
+ projectId: number;
154
+ propertyId?: number;
155
+ capabilityId: bigint;
156
+ capabilityProviderId: bigint;
157
+ config?: Record<string, unknown>;
158
+ nickname?: string;
159
+ subcategory?: string;
160
+ parentId?: bigint;
161
+ capabilityIntegrationResourceId?: bigint;
162
+ groupId?: bigint;
163
+ status: CAPABILITY_INTEGRATION_STATUS_ENUM;
164
+ icon?: IIcon;
165
+ availableFor: CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM;
166
+ configuredFor?: IAddCapabilityIntegrationConfiguredFor;
167
+ }
168
+ interface IUpdateCapabilityIntegrationUpdateData {
169
+ nickname?: string;
170
+ icon?: IIcon;
171
+ config?: IAddCapabilityIntegrationConfig;
172
+ parentId?: bigint;
173
+ }
174
+ interface IUpdateCapabilityIntegrationRequest {
175
+ id: bigint;
176
+ updateData: IUpdateCapabilityIntegrationUpdateData;
177
+ }
178
+ interface IUpdateCapabilityIntegrationResponse {
179
+ status: boolean;
180
+ }
181
+ interface IGetCapabilityIntegrationsFilterInput {
182
+ by: string;
183
+ values?: string[];
184
+ }
185
+ interface IGetCapabilityIntegrationsSortingInput {
186
+ by: string;
187
+ order: string;
188
+ }
189
+ interface IGetCapabilityIntegrationsOptionsInput {
190
+ count?: number;
191
+ page?: number;
192
+ filters?: IGetCapabilityIntegrationsFilterInput[];
193
+ sorting?: IGetCapabilityIntegrationsSortingInput;
194
+ search?: string;
195
+ }
196
+ interface IGetCapabilityIntegrationsRequest {
197
+ projectId: number;
198
+ category?: string;
199
+ propertyId?: number;
200
+ options?: IGetCapabilityIntegrationsOptionsInput;
201
+ }
202
+ interface IGetCapabilityIntegrationsResponse {
203
+ totalCount: number;
204
+ records: ICapabilityIntegration[];
205
+ }
64
206
 
65
207
  declare class IntegrationConfigurationDao {
66
208
  private readonly conn;
@@ -85,6 +227,19 @@ declare class IntegrationConfigurationDao {
85
227
  getCapabilityIntegration(input: {
86
228
  capabilityIntegrationId: bigint;
87
229
  }, loggedInUserId: bigint): Promise<typeof schema.capabilityIntegration.$inferSelect | undefined>;
230
+ getCapabilityIntegrationById(request: {
231
+ id: bigint;
232
+ projectId: number;
233
+ category?: CAPABILITY_CATEGORY_ENUM;
234
+ }, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationResult | undefined>;
235
+ getCapabilityIntegrationByProvider(request: {
236
+ projectId: number;
237
+ category?: CAPABILITY_CATEGORY_ENUM;
238
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
239
+ configuredForId: bigint;
240
+ }, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationResult | undefined>;
241
+ getCapabilityIntegrations(input: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
242
+ private applyFilters;
88
243
  }
89
244
 
90
245
  declare class IntegrationUserManagementDao {
@@ -92,6 +247,35 @@ declare class IntegrationUserManagementDao {
92
247
  constructor(conn: MySql2Database<typeof schema>);
93
248
  }
94
249
 
250
+ declare class IntegrationResourceManagementDao {
251
+ private readonly conn;
252
+ private readonly logger;
253
+ private readonly fileName;
254
+ constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
255
+ addCapabilityIntegrationMapping(input: {
256
+ projectId: number;
257
+ capabilityIntegrationId: bigint;
258
+ configuredForId: bigint;
259
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
260
+ config?: Record<string, unknown>;
261
+ }, context: GraphQLContext): Promise<IAddCapabilityIntegrationMappingResponse>;
262
+ checkMappingExists(input: {
263
+ capabilityIntegrationId: bigint;
264
+ configuredForId: bigint;
265
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
266
+ }, loggedInUserId: bigint): Promise<boolean>;
267
+ removeCapabilityIntegrationMapping(input: {
268
+ capabilityIntegrationId: bigint;
269
+ configuredForId: bigint;
270
+ configuredForType: CONFIGURED_FOR_TYPE_ENUM;
271
+ }, context: GraphQLContext): Promise<IDeleteAPIResponse>;
272
+ getCapabilityIntegrationResourceMappingById(id: bigint, loggedInUserId: bigint): Promise<ICapabilityIntegrationResourceMappingRow | undefined>;
273
+ updateCapabilityIntegrationConfiguration(input: {
274
+ id: bigint;
275
+ config: Record<string, unknown>;
276
+ }, context: GraphQLContext): Promise<IUpdateAPIResponse>;
277
+ }
278
+
95
279
  interface IGetCustomerRequest {
96
280
  email?: string;
97
281
  customerId?: string;
@@ -196,70 +380,29 @@ interface IGetCustomerCreditsRequest {
196
380
  options?: IGetCustomerCreditsRequestOptions;
197
381
  }
198
382
 
199
- declare enum INTEGRATION_PROVIDER_ENUM {
200
- TRYBE = "TRYBE"
201
- }
202
- interface IPlatformConfig {
203
- baseUrl?: string;
383
+ interface IAddResourceToIntegrationInput {
384
+ projectId: number;
385
+ offeringId: bigint;
386
+ capabilityIntegrationId: bigint;
387
+ config?: Record<string, unknown>;
204
388
  }
205
- interface IIntegrationConfig {
206
- siteId?: string;
207
- apiKey?: string;
208
- organisationId?: string;
389
+ interface IAddResourceToIntegrationResponse {
390
+ status: boolean;
391
+ ids: bigint[];
209
392
  }
210
- interface ICapabilityIntegrationConfig {
211
- platformConfig?: IPlatformConfig;
212
- integrationConfig?: IIntegrationConfig;
393
+ interface IRemoveResourceFromIntegrationRequest {
394
+ offeringId: bigint;
395
+ capabilityIntegrationId: bigint;
213
396
  }
214
- interface IValidatedCapabilityIntegrationConfig {
215
- platformConfig: Required<IPlatformConfig>;
216
- integrationConfig: Required<IIntegrationConfig>;
397
+ interface IRemoveResourceFromIntegrationResponse {
398
+ status: boolean;
217
399
  }
218
- interface ICapabilityIntegration {
400
+ interface IUpdateOfferingIntegrationResourceConfigurationInput {
219
401
  id: bigint;
220
- provider?: INTEGRATION_PROVIDER_ENUM | null;
221
- providerId?: bigint;
222
- config?: ICapabilityIntegrationConfig;
223
- capabilityId?: bigint;
224
- projectId?: number;
402
+ config: Record<string, unknown>;
225
403
  }
226
- interface IValidatedCapabilityIntegration {
227
- id: bigint;
228
- provider?: INTEGRATION_PROVIDER_ENUM | null;
229
- providerId?: bigint;
230
- config: IValidatedCapabilityIntegrationConfig;
231
- capabilityId?: bigint;
232
- headers?: Record<string, string>;
233
- projectId?: number;
234
- }
235
-
236
- interface IAddCapabilityIntegrationConfig {
237
- platformConfig: Record<string, unknown>;
238
- integrationConfig: Record<string, unknown>;
239
- }
240
- interface IIcon {
241
- provider: MEDIA_PROVIDER_ENUM;
242
- meta: unknown;
243
- }
244
- interface IAddCapabilityIntegrationConfiguredFor {
245
- configuredForId: bigint;
246
- configuredForType: CONFIGURED_FOR_TYPE_ENUM;
247
- }
248
- interface IAddCapabilityIntegrationInput {
249
- projectId: number;
250
- propertyId?: number;
251
- capabilityId: bigint;
252
- capabilityProviderId: bigint;
253
- config?: Record<string, unknown>;
254
- nickname?: string;
255
- subcategory?: string;
256
- parentId?: bigint;
257
- capabilityIntegrationResourceId?: bigint;
258
- groupId?: bigint;
259
- status: CAPABILITY_INTEGRATION_STATUS_ENUM;
260
- icon?: IIcon;
261
- availableFor: CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM;
262
- configuredFor?: IAddCapabilityIntegrationConfiguredFor;
404
+ interface IUpdateOfferingIntegrationResourceConfigurationResponse {
405
+ status: boolean;
263
406
  }
264
407
 
265
408
  declare enum BOOKABLE_ITEM_TYPE_ENUM {
@@ -529,6 +672,7 @@ declare abstract class BaseCustomerManagement {
529
672
  abstract createCustomer(request: IAddCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomer>;
530
673
  abstract searchCustomer(request: IGetCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomer | undefined>;
531
674
  abstract updateCustomer(customerId: string, request: IUpdateCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IAddUpdateCustomerResponseData>;
675
+ abstract deleteCustomer(customerId: string, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IDeleteAPIResponse>;
532
676
  }
533
677
 
534
678
  declare abstract class BasePackageManagement {
@@ -608,15 +752,28 @@ declare abstract class BaseMembershipManagement {
608
752
  abstract getMembership(): Promise<void>;
609
753
  }
610
754
 
611
- declare abstract class BaseIntegrationConfiguration {
612
- private readonly integrationConfigurationDao;
755
+ declare class BaseIntegrationConfiguration {
756
+ protected readonly integrationConfigurationDao: IntegrationConfigurationDao;
613
757
  protected readonly commonValidationDatabaseService: CommonValidationDatabaseService;
614
- constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService);
758
+ protected readonly logger: LoggerService;
759
+ protected readonly fileName = "integration-configuration.base.ts";
760
+ constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService, logger: LoggerService);
615
761
  private validateAddCapabilityIntegrationInput;
616
762
  addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext): Promise<AddAPIResponse>;
617
- updateCapabilityIntegration(id: bigint, updateData: IUpdateCapabilityIntegration, context: GraphQLContext): Promise<{
618
- status: boolean;
619
- }>;
763
+ updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration?: ICapabilityIntegration, loggedInUserId?: bigint): Promise<IUpdateCapabilityIntegrationResponse>;
764
+ protected validateIconAndNickName(updateData: IUpdateCapabilityIntegrationRequest['updateData'], loggedInUserId: bigint): void;
765
+ getCapabilityIntegrations(request: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
766
+ getCapabilityIntegration(input: IGetCapabilityIntegrationInput, context: GraphQLContext): Promise<IGetCapabilityIntegrationResult>;
767
+ }
768
+
769
+ declare abstract class BaseIntegrationResourceManagement {
770
+ protected readonly integrationResourceManagementDao: IntegrationResourceManagementDao;
771
+ protected readonly logger: LoggerService;
772
+ private readonly fileName;
773
+ constructor(integrationResourceManagementDao: IntegrationResourceManagementDao, logger: LoggerService);
774
+ addResourceToIntegration(input: IAddResourceToIntegrationInput, context: GraphQLContext): Promise<IAddResourceToIntegrationResponse>;
775
+ removeResourceFromIntegration(request: IRemoveResourceFromIntegrationRequest, context: GraphQLContext): Promise<IRemoveResourceFromIntegrationResponse>;
776
+ updateOfferingIntegrationResourceConfiguration(input: IUpdateOfferingIntegrationResourceConfigurationInput, context: GraphQLContext): Promise<IUpdateOfferingIntegrationResourceConfigurationResponse>;
620
777
  }
621
778
 
622
779
  interface ITrybeCustomer extends ICustomer {
@@ -680,8 +837,8 @@ interface ITrybeCredit {
680
837
  coupon_code: string;
681
838
  multi_use: number;
682
839
  issued_at: string;
683
- expires_at: string;
684
- redeemed_at: string | null;
840
+ expires_at?: string;
841
+ redeemed_at?: string | null;
685
842
  revoked_at: string | null;
686
843
  }
687
844
  type ITrybeGetCustomerCreditsResponse = IGetTrybeResourcesCommonResponse<ITrybeCredit>;
@@ -1062,6 +1219,22 @@ interface ITrybeUpdateOrderItemResponse {
1062
1219
  };
1063
1220
  }
1064
1221
 
1222
+ declare enum TRYBE_SUPPORTED_JOURNEYS_ENUM {
1223
+ APPOINTMENT = "APPOINTMENT",
1224
+ SESSION = "SESSION",
1225
+ COURSE = "COURSE"
1226
+ }
1227
+ declare enum TRYBE_CATALOGING_BY_ENUM {
1228
+ PEOPLE_RESOURCE = "PEOPLE_RESOURCE"
1229
+ }
1230
+ interface ITrybeResourceMappingConfiguration {
1231
+ supportedJourneys?: TRYBE_SUPPORTED_JOURNEYS_ENUM[];
1232
+ catalogingBy?: TRYBE_CATALOGING_BY_ENUM;
1233
+ externalCmsUrl?: string;
1234
+ isExternalCmsIntegrationEnabled?: boolean;
1235
+ paymentType?: string;
1236
+ }
1237
+
1065
1238
  declare class TrybeCustomerManagement implements BaseCustomerManagement {
1066
1239
  private readonly logger;
1067
1240
  private readonly trafficGatewayService;
@@ -1070,6 +1243,7 @@ declare class TrybeCustomerManagement implements BaseCustomerManagement {
1070
1243
  createCustomer(request: IAddCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ITrybeCustomer>;
1071
1244
  searchCustomer(request: IGetCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ITrybeCustomer | undefined>;
1072
1245
  updateCustomer(customerId: string, request: IUpdateCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IAddUpdateCustomerResponseData>;
1246
+ deleteCustomer(customerId: string, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IDeleteAPIResponse>;
1073
1247
  }
1074
1248
 
1075
1249
  declare class TrybeAuthService implements BaseAuth {
@@ -1078,7 +1252,6 @@ declare class TrybeAuthService implements BaseAuth {
1078
1252
  private readonly fileName;
1079
1253
  constructor(trybeCustomerManagement: TrybeCustomerManagement, logger: LoggerService);
1080
1254
  validateConfig(integration: Omit<ICapabilityIntegration, 'id'>, loggedInUserId: bigint): IValidatedCapabilityIntegration;
1081
- private isValidUrl;
1082
1255
  testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
1083
1256
  fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
1084
1257
  }
@@ -1103,15 +1276,22 @@ interface ISiteSystemResponse {
1103
1276
  declare class TrybeIntegrationConfigurationService extends BaseIntegrationConfiguration {
1104
1277
  private readonly trybeAuthService;
1105
1278
  private readonly trafficGatewayService;
1106
- constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService$1, trybeAuthService: TrybeAuthService, trafficGatewayService: TrafficGatewayService);
1279
+ constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService$1, logger: LoggerService, trybeAuthService: TrybeAuthService, trafficGatewayService: TrafficGatewayService);
1107
1280
  addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext): Promise<AddAPIResponse>;
1108
- updateCapabilityIntegration(id: bigint, updateData: IUpdateCapabilityIntegration, context: GraphQLContext): Promise<{
1109
- status: boolean;
1110
- }>;
1281
+ updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration?: ICapabilityIntegration, loggedInUserId?: bigint): Promise<IUpdateCapabilityIntegrationResponse>;
1111
1282
  private validateCapabilityIntegrationConfiguredForInput;
1112
1283
  getSiteDetailedInformation(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISiteSystemResponse | undefined>;
1113
1284
  }
1114
1285
 
1286
+ declare const OFFERING_INTEGRATION_MAPPING_ALREADY_EXISTS = "OFFERING_INTEGRATION_MAPPING_ALREADY_EXISTS";
1287
+ declare class TrybeIntegrationResourceManagementService extends BaseIntegrationResourceManagement {
1288
+ constructor(logger: LoggerService, integrationResourceManagementDao: IntegrationResourceManagementDao);
1289
+ validateResourceMappingConfig(config: Record<string, unknown>): void;
1290
+ addResourceToIntegration(input: IAddResourceToIntegrationInput, context: GraphQLContext): Promise<IAddResourceToIntegrationResponse>;
1291
+ removeResourceFromIntegration(request: IRemoveResourceFromIntegrationRequest, context: GraphQLContext): Promise<IRemoveResourceFromIntegrationResponse>;
1292
+ updateOfferingIntegrationResourceConfiguration(input: IUpdateOfferingIntegrationResourceConfigurationInput, context: GraphQLContext): Promise<IUpdateOfferingIntegrationResourceConfigurationResponse>;
1293
+ }
1294
+
1115
1295
  declare class TrybeWellnessManagement implements BaseWellnessManagement {
1116
1296
  private readonly logger;
1117
1297
  private readonly trafficGatewayService;
@@ -1155,4 +1335,4 @@ declare const fetchAllPages: <T, TResponse extends {
1155
1335
  };
1156
1336
  }>(firstPageResponse: TResponse, shouldFetchAll: boolean, fetchPage: (page: number) => Promise<TResponse>) => Promise<T[]>;
1157
1337
 
1158
- export { BOOKABLE_ITEM_STATUS_ENUM, BOOKABLE_ITEM_TYPE_ENUM, BaseAccountingContactManagement, BaseAccountingCreditNoteManagement, BaseAccountingCustomerManagement, BaseAccountingCustomerPaymentManagement, BaseAccountingInvoiceManagement, BaseAccountingLOAManagement, BaseAccountingTaxManagement, BaseAuth, BaseCreditBooking, BaseCustomerManagement, BaseIntegrationConfiguration, BaseMembershipCustomerManagement, BaseMembershipManagement, BasePackageManagement, BasePayment, BasePaymentMethodManagement, BasePaymentUserManagement, BaseWellnessManagement, CREDIT_FILTER_BY_ENUM, CREDIT_STATUS_ENUM, CREDIT_TYPE_ENUM, HTTP_METHOD, type IAddCapIntegResourceMapping, type IAddCapabilityIntegration, type IAddCapabilityIntegrationConfig, type IAddCapabilityIntegrationConfiguredFor, type IAddCapabilityIntegrationInput, type IAddCustomerRequest, type IAddItemToOrderItemConfig, type IAddItemToOrderRequest, type IAddItemToOrderResponse, type IAddPaymentToOrderRequest, type IAddUpdateCustomerResponseData, type IApiCallRequest, type IAvailableDateWithSlots, type IAvailableTimeSlot, type IBookableItem, type IBookableItemCategory, type IBookableItemMedia, type IBookableItemPrice, type IBookableItemPriceMeta, type ICapabilityIntegration, type ICapabilityIntegrationConfig, type ICreateOrderRequest, type ICreateOrderResponse, type ICredit, type ICustomer, type ICustomerLastCheckIn, type IFetchOfferingAvailabilityRequest, type IGetAppointmentsRequest, type IGetAvailableDatesAndTimeSlotsResponse, type IGetBookableItemsFromCreditRequest, type IGetCategoriesRequest, type IGetCoursesRequest, type IGetCustomerCreditsRequest, type IGetCustomerCreditsRequestFilters, type IGetCustomerCreditsRequestOptions, type IGetCustomerRequest, type IGetOrderResponse, type IGetPractitionersRequest, type IGetSessionsRequest, type IGetTrybeResourcesCommonResponse, type IIcon, type IIntegrationRequestContext, type IIntegrationRequestLog, INTEGRATION_PROVIDER_ENUM, type IOfferingResource, type IOfferingResourceMedia, type IOrderGuest, type ISystemResponse, type ITrybeAddCustomerToOrderResponse, type ITrybeAddOrderItemResponse, type ITrybeAddOrderResponse, type ITrybeAddPaymentToOrderResponse, type ITrybeAppointment, type ITrybeAppointmentAvailabilityResponse, type ITrybeAppointmentPriceRule, type ITrybeAppointmentSlot, type ITrybeCancelOrderResponse, type ITrybeCategory, type ITrybeCouponCodeOffering, type ITrybeCouponCodeOfferingsData, type ITrybeCourse, type ITrybeCreateOrderResponse, type ITrybeCredit, type ITrybeCustomer, type ITrybeCustomerAvatar, type ITrybeCustomerLabels, type ITrybeCustomerResponse, type ITrybeGetAppointmentsResponse, type ITrybeGetCategoriesResponse, type ITrybeGetCouponCodeOfferingsResponse, type ITrybeGetCoursesResponse, type ITrybeGetCustomerByEmailResponse, type ITrybeGetCustomerCreditsResponse, type ITrybeGetOrderResponse, type ITrybeGetOrderResponseData, type ITrybeGetResourcesCommonLink, type ITrybeGetResourcesCommonLinks, type ITrybeGetResourcesCommonMeta, type ITrybeGetSessionsResponse, type ITrybeImage, type ITrybeMeta, type ITrybeOffering, type ITrybeOrder, type ITrybeOrderGuest, type ITrybePractitioner, type ITrybePriceRule, type ITrybeSession, type ITrybeSessionAvailability, type ITrybeSessionAvailabilityResponse, type ITrybeSessionMeta, type ITrybeSessionPractitioner, type ITrybeSessionPriceRule, type ITrybeSessionRecurrenceGroup, type ITrybeSessionRoom, type ITrybeSessionStartTime, type ITrybeSubmitOrderResponse, type ITrybeUpdateOrderItemResponse, type ITrybeZone, type IUpdateCapabilityIntegration, type IUpdateCustomerRequest, type IUpdateOrderRequest, type IUpdateOrderResponse, type IValidatedCapabilityIntegration, type IValidatedCapabilityIntegrationConfig, type IWellnessManagementRequestOptions, IntegrationConfigurationDao, AppModule as IntegrationLibsModule, IntegrationRequestLoggerService, AppModule$1 as IntegrationTrybeModule, IntegrationUserManagementDao, AppModule$2 as OfferingIntegrationManager, RateLimiterService, TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY, TRYBE_OFFERING_TYPE_API, TRYBE_OFFERING_TYPE_ENUM, TrafficGatewayService, TrybeAuthService, TrybeCreditBooking, TrybeCustomerManagement, TrybeIntegrationConfigurationService, type TrybeOfferingTypeApi, TrybeWellnessManagement, convertKeysToCamelCase, extractTimeFromIsoString, fetchAllPages, formatDateForTrybe };
1338
+ export { BOOKABLE_ITEM_STATUS_ENUM, BOOKABLE_ITEM_TYPE_ENUM, BaseAccountingContactManagement, BaseAccountingCreditNoteManagement, BaseAccountingCustomerManagement, BaseAccountingCustomerPaymentManagement, BaseAccountingInvoiceManagement, BaseAccountingLOAManagement, BaseAccountingTaxManagement, BaseAuth, BaseCreditBooking, BaseCustomerManagement, BaseIntegrationConfiguration, BaseIntegrationResourceManagement, BaseMembershipCustomerManagement, BaseMembershipManagement, BasePackageManagement, BasePayment, BasePaymentMethodManagement, BasePaymentUserManagement, BaseWellnessManagement, CREDIT_FILTER_BY_ENUM, CREDIT_STATUS_ENUM, CREDIT_TYPE_ENUM, HTTP_METHOD, type IAddCapIntegResourceMapping, type IAddCapabilityIntegration, type IAddCapabilityIntegrationConfig, type IAddCapabilityIntegrationConfiguredFor, type IAddCapabilityIntegrationInput, type IAddCapabilityIntegrationMappingResponse, type IAddCustomerRequest, type IAddItemToOrderItemConfig, type IAddItemToOrderRequest, type IAddItemToOrderResponse, type IAddPaymentToOrderRequest, type IAddResourceToIntegrationInput, type IAddResourceToIntegrationResponse, type IAddUpdateCustomerResponseData, type IApiCallRequest, type IAvailableDateWithSlots, type IAvailableTimeSlot, type IBookableItem, type IBookableItemCategory, type IBookableItemMedia, type IBookableItemPrice, type IBookableItemPriceMeta, type ICapabilityIntegration, type ICapabilityIntegrationConfig, type ICapabilityIntegrationResourceMappingRow, type ICreateOrderRequest, type ICreateOrderResponse, type ICredit, type ICustomer, type ICustomerLastCheckIn, type IDeleteAPIResponse, type IFetchOfferingAvailabilityRequest, type IGetAppointmentsRequest, type IGetAvailableDatesAndTimeSlotsResponse, type IGetBookableItemsFromCreditRequest, type IGetCapabilityIntegrationInput, type IGetCapabilityIntegrationResult, type IGetCapabilityIntegrationsFilterInput, type IGetCapabilityIntegrationsOptionsInput, type IGetCapabilityIntegrationsRequest, type IGetCapabilityIntegrationsResponse, type IGetCapabilityIntegrationsSortingInput, type IGetCategoriesRequest, type IGetCoursesRequest, type IGetCustomerCreditsRequest, type IGetCustomerCreditsRequestFilters, type IGetCustomerCreditsRequestOptions, type IGetCustomerRequest, type IGetOrderResponse, type IGetPractitionersRequest, type IGetSessionsRequest, type IGetTrybeResourcesCommonResponse, type IIcon, type IIntegrationRequestContext, type IIntegrationRequestLog, INTEGRATION_PROVIDER_ENUM, type IOfferingResource, type IOfferingResourceMedia, type IOrderGuest, type IRemoveCapabilityIntegrationMappingInput, type IRemoveResourceFromIntegrationRequest, type IRemoveResourceFromIntegrationResponse, type ISystemResponse, type ITrybeAddCustomerToOrderResponse, type ITrybeAddOrderItemResponse, type ITrybeAddOrderResponse, type ITrybeAddPaymentToOrderResponse, type ITrybeAppointment, type ITrybeAppointmentAvailabilityResponse, type ITrybeAppointmentPriceRule, type ITrybeAppointmentSlot, type ITrybeCancelOrderResponse, type ITrybeCategory, type ITrybeCouponCodeOffering, type ITrybeCouponCodeOfferingsData, type ITrybeCourse, type ITrybeCreateOrderResponse, type ITrybeCredit, type ITrybeCustomer, type ITrybeCustomerAvatar, type ITrybeCustomerLabels, type ITrybeCustomerResponse, type ITrybeGetAppointmentsResponse, type ITrybeGetCategoriesResponse, type ITrybeGetCouponCodeOfferingsResponse, type ITrybeGetCoursesResponse, type ITrybeGetCustomerByEmailResponse, type ITrybeGetCustomerCreditsResponse, type ITrybeGetOrderResponse, type ITrybeGetOrderResponseData, type ITrybeGetResourcesCommonLink, type ITrybeGetResourcesCommonLinks, type ITrybeGetResourcesCommonMeta, type ITrybeGetSessionsResponse, type ITrybeImage, type ITrybeMeta, type ITrybeOffering, type ITrybeOrder, type ITrybeOrderGuest, type ITrybePractitioner, type ITrybePriceRule, type ITrybeResourceMappingConfiguration, type ITrybeSession, type ITrybeSessionAvailability, type ITrybeSessionAvailabilityResponse, type ITrybeSessionMeta, type ITrybeSessionPractitioner, type ITrybeSessionPriceRule, type ITrybeSessionRecurrenceGroup, type ITrybeSessionRoom, type ITrybeSessionStartTime, type ITrybeSubmitOrderResponse, type ITrybeUpdateOrderItemResponse, type ITrybeZone, type IUpdateAPIResponse, type IUpdateCapabilityIntegration, type IUpdateCapabilityIntegrationRequest, type IUpdateCapabilityIntegrationResponse, type IUpdateCapabilityIntegrationUpdateData, type IUpdateCustomerRequest, type IUpdateOfferingIntegrationResourceConfigurationInput, type IUpdateOfferingIntegrationResourceConfigurationResponse, type IUpdateOrderRequest, type IUpdateOrderResponse, type IValidatedCapabilityIntegration, type IValidatedCapabilityIntegrationConfig, type IWellnessManagementRequestOptions, IntegrationConfigurationDao, AppModule as IntegrationLibsModule, IntegrationRequestLoggerService, IntegrationResourceManagementDao, AppModule$1 as IntegrationTrybeModule, IntegrationUserManagementDao, OFFERING_INTEGRATION_MAPPING_ALREADY_EXISTS, AppModule$2 as OfferingIntegrationManager, RateLimiterService, TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY, TRYBE_CATALOGING_BY_ENUM, TRYBE_OFFERING_TYPE_API, TRYBE_OFFERING_TYPE_ENUM, TRYBE_SUPPORTED_JOURNEYS_ENUM, TrafficGatewayService, TrybeAuthService, TrybeCreditBooking, TrybeCustomerManagement, TrybeIntegrationConfigurationService, TrybeIntegrationResourceManagementService, type TrybeOfferingTypeApi, TrybeWellnessManagement, convertKeysToCamelCase, extractTimeFromIsoString, fetchAllPages, formatDateForTrybe };