@dv4resi/dvss-backend-module-calendar-im 0.0.1
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 +2420 -0
- package/dist/index.js +5665 -0
- package/dist/index.js.map +1 -0
- package/package.json +54 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2420 @@
|
|
|
1
|
+
import { HttpService } from '@nestjs/axios';
|
|
2
|
+
import { LoggerService, GraphQLContext, IMedia, MASK_STRATEGY_ENUM, SecretProvider, AddAPIResponse } from '@dv4resi/dvss-backend-module-utility';
|
|
3
|
+
import { schema, CAPABILITY_PROVIDER_INTEGRATION_ENUM as CAPABILITY_PROVIDER_INTEGRATION_ENUM$1, SORTING_ORDER_ENUM, CommonValidationDatabaseService } from '@dv4resi/dvss-backend-module-datastore';
|
|
4
|
+
import { CONFIGURED_FOR_TYPE_ENUM, MEDIA_PROVIDER_ENUM, IAddUpdateAPIStatusResponseBigInt, DAY_OF_WEEK, OFFERING_RESOURCE_TYPE, STATUS } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models';
|
|
5
|
+
import { CAPABILITY_INTEGRATION_STATUS_ENUM, CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability-integration.model';
|
|
6
|
+
import { CAPABILITY_PROVIDER_INTEGRATION_ENUM, CAPABILITY_CATEGORY_ENUM, ICapability } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability.model';
|
|
7
|
+
import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
8
|
+
|
|
9
|
+
declare class AppModule$2 {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class AppModule$1 {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare enum HTTP_METHOD {
|
|
16
|
+
GET = "GET",
|
|
17
|
+
POST = "POST",
|
|
18
|
+
PUT = "PUT",
|
|
19
|
+
DELETE = "DELETE",
|
|
20
|
+
PATCH = "PATCH"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY = "traffic-router-configuration-store";
|
|
24
|
+
|
|
25
|
+
interface IIntegrationRequestLog {
|
|
26
|
+
integrationId?: bigint | string;
|
|
27
|
+
method: string;
|
|
28
|
+
url: string;
|
|
29
|
+
headers?: Record<string, string>;
|
|
30
|
+
requestBody?: unknown;
|
|
31
|
+
responseBody?: unknown;
|
|
32
|
+
statusCode?: number;
|
|
33
|
+
duration?: number;
|
|
34
|
+
loggedInUserId?: bigint;
|
|
35
|
+
timestamp?: Date;
|
|
36
|
+
error?: unknown;
|
|
37
|
+
}
|
|
38
|
+
declare class IntegrationRequestLoggerService {
|
|
39
|
+
private readonly logger;
|
|
40
|
+
private readonly className;
|
|
41
|
+
constructor(logger: LoggerService);
|
|
42
|
+
logRequest(logData: IIntegrationRequestLog): void;
|
|
43
|
+
logResponse(logData: IIntegrationRequestLog): void;
|
|
44
|
+
logError(logData: IIntegrationRequestLog): void;
|
|
45
|
+
logIntegrationRequest(logData: IIntegrationRequestLog): void;
|
|
46
|
+
private sanitizeHeaders;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class RateLimiterService {
|
|
50
|
+
validateAndEnforceRateLimit(): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type IAddCapabilityIntegration = typeof schema.capabilityIntegration.$inferInsert & {
|
|
54
|
+
configuredFor?: {
|
|
55
|
+
configuredForId: bigint;
|
|
56
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
57
|
+
};
|
|
58
|
+
resourceMappings?: Array<{
|
|
59
|
+
configuredForId: bigint;
|
|
60
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
61
|
+
config?: typeof schema.capIntegResourceMapping.$inferSelect.config;
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
64
|
+
interface ICapabilityIntegrationResourceMapping {
|
|
65
|
+
configuredForId: bigint;
|
|
66
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
67
|
+
config?: typeof schema.capIntegResourceMapping.$inferSelect.config;
|
|
68
|
+
}
|
|
69
|
+
type IUpdateCapabilityIntegration = Partial<typeof schema.capabilityIntegration.$inferInsert>;
|
|
70
|
+
type IAddCapIntegResourceMapping = typeof schema.capIntegResourceMapping.$inferInsert;
|
|
71
|
+
interface IAddCapabilityIntegrationMappingResponse {
|
|
72
|
+
status: boolean;
|
|
73
|
+
ids: bigint[];
|
|
74
|
+
}
|
|
75
|
+
interface IRemoveCapabilityIntegrationMappingInput {
|
|
76
|
+
capabilityIntegrationId: bigint;
|
|
77
|
+
configuredForId: bigint;
|
|
78
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
79
|
+
}
|
|
80
|
+
interface IDeleteAPIResponse {
|
|
81
|
+
status: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface IUpdateAPIResponse {
|
|
84
|
+
status: boolean;
|
|
85
|
+
}
|
|
86
|
+
interface ICapabilityIntegrationResourceMappingRow {
|
|
87
|
+
id: bigint;
|
|
88
|
+
capabilityIntegrationId: bigint;
|
|
89
|
+
configuredForId: bigint;
|
|
90
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
91
|
+
}
|
|
92
|
+
interface IGetCapabilityIntegrationInput {
|
|
93
|
+
projectId: number;
|
|
94
|
+
id?: bigint;
|
|
95
|
+
category?: CAPABILITY_CATEGORY_ENUM;
|
|
96
|
+
fetchBy?: {
|
|
97
|
+
configuredForId: string | bigint;
|
|
98
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
99
|
+
category?: CAPABILITY_CATEGORY_ENUM;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
type IGetCapabilityIntegrationResult = typeof schema.capabilityIntegration.$inferSelect & {
|
|
103
|
+
provider?: CAPABILITY_PROVIDER_INTEGRATION_ENUM | null;
|
|
104
|
+
resourceMappingId?: bigint;
|
|
105
|
+
configuredForId?: bigint;
|
|
106
|
+
configuredForType?: typeof schema.capIntegResourceMapping.$inferSelect.configuredForType;
|
|
107
|
+
resourceMappingConfig?: typeof schema.capIntegResourceMapping.$inferSelect.config;
|
|
108
|
+
};
|
|
109
|
+
interface IOfferingBookingOccurrence {
|
|
110
|
+
offeringBookingOccurrence: typeof schema.offeringBookingOccurrence.$inferSelect;
|
|
111
|
+
offering: typeof schema.offering.$inferSelect;
|
|
112
|
+
offeringIntentId: bigint;
|
|
113
|
+
}
|
|
114
|
+
type CapabilityIntegrationCategory = typeof schema.capabilityIntegration.$inferSelect.category;
|
|
115
|
+
interface IAPIResponse {
|
|
116
|
+
status?: boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare class IntegrationBookingDao {
|
|
120
|
+
private readonly conn;
|
|
121
|
+
private readonly logger;
|
|
122
|
+
private readonly fileName;
|
|
123
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
124
|
+
getOfferingBookingOccurrence(input: {
|
|
125
|
+
offeringBookingOccurrenceId: bigint;
|
|
126
|
+
loggedInUserId: bigint;
|
|
127
|
+
offeringBookingId?: bigint;
|
|
128
|
+
}): Promise<IOfferingBookingOccurrence | undefined>;
|
|
129
|
+
getOfferingIntent(input: {
|
|
130
|
+
offeringIntentId: bigint;
|
|
131
|
+
}): Promise<typeof schema.offeringIntent.$inferSelect | undefined>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare class IntegrationCommonDao {
|
|
135
|
+
private readonly conn;
|
|
136
|
+
private readonly logger;
|
|
137
|
+
private readonly fileName;
|
|
138
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
139
|
+
getTimezoneForRequest(input: {
|
|
140
|
+
projectId?: number;
|
|
141
|
+
loggedInUserId: bigint;
|
|
142
|
+
}): Promise<string>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
interface IPlatformConfig {
|
|
146
|
+
authUrl?: string;
|
|
147
|
+
baseUrl?: string;
|
|
148
|
+
}
|
|
149
|
+
interface IIntegrationConfig$1 {
|
|
150
|
+
siteId?: string;
|
|
151
|
+
apiKey?: string;
|
|
152
|
+
organisationId?: string;
|
|
153
|
+
refreshToken?: string;
|
|
154
|
+
}
|
|
155
|
+
interface ICapabilityIntegrationConfig {
|
|
156
|
+
platformConfig?: IPlatformConfig;
|
|
157
|
+
integrationConfig?: IIntegrationConfig$1;
|
|
158
|
+
}
|
|
159
|
+
interface IValidatedCapabilityIntegrationConfig {
|
|
160
|
+
platformConfig: Required<IPlatformConfig>;
|
|
161
|
+
integrationConfig: Required<IIntegrationConfig$1>;
|
|
162
|
+
}
|
|
163
|
+
interface ICapabilityIntegration {
|
|
164
|
+
id?: bigint;
|
|
165
|
+
provider?: CAPABILITY_PROVIDER_INTEGRATION_ENUM$1 | null;
|
|
166
|
+
providerId?: bigint;
|
|
167
|
+
config?: ICapabilityIntegrationConfig;
|
|
168
|
+
capabilityId?: bigint;
|
|
169
|
+
projectId?: number;
|
|
170
|
+
}
|
|
171
|
+
interface IValidatedCapabilityIntegration {
|
|
172
|
+
id: bigint;
|
|
173
|
+
provider?: CAPABILITY_PROVIDER_INTEGRATION_ENUM$1 | null;
|
|
174
|
+
providerId?: bigint;
|
|
175
|
+
config: IValidatedCapabilityIntegrationConfig;
|
|
176
|
+
capabilityId?: bigint;
|
|
177
|
+
headers?: Record<string, string>;
|
|
178
|
+
projectId?: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface IAddCapabilityIntegrationConfig {
|
|
182
|
+
platformConfig: Record<string, unknown>;
|
|
183
|
+
integrationConfig: Record<string, unknown>;
|
|
184
|
+
accountConfig?: Record<string, unknown>;
|
|
185
|
+
}
|
|
186
|
+
interface IIcon {
|
|
187
|
+
provider: MEDIA_PROVIDER_ENUM;
|
|
188
|
+
meta: unknown;
|
|
189
|
+
}
|
|
190
|
+
interface IAddCapabilityIntegrationConfiguredFor {
|
|
191
|
+
configuredForId: bigint;
|
|
192
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
193
|
+
}
|
|
194
|
+
interface IAddCapabilityIntegrationInput {
|
|
195
|
+
projectId: number;
|
|
196
|
+
propertyId?: number;
|
|
197
|
+
capabilityId: bigint;
|
|
198
|
+
capabilityProviderId: bigint;
|
|
199
|
+
config?: Record<string, unknown>;
|
|
200
|
+
nickname?: string;
|
|
201
|
+
subcategory?: string;
|
|
202
|
+
parentId?: bigint;
|
|
203
|
+
capabilityIntegrationResourceId?: bigint;
|
|
204
|
+
groupId?: bigint;
|
|
205
|
+
status: CAPABILITY_INTEGRATION_STATUS_ENUM;
|
|
206
|
+
icon?: IIcon;
|
|
207
|
+
availableFor: CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM;
|
|
208
|
+
configuredFor?: IAddCapabilityIntegrationConfiguredFor;
|
|
209
|
+
resourceMappings?: ICapabilityIntegrationResourceMapping[];
|
|
210
|
+
}
|
|
211
|
+
interface IUpdateCapabilityIntegrationUpdateData {
|
|
212
|
+
nickname?: string;
|
|
213
|
+
icon?: IIcon;
|
|
214
|
+
config?: IAddCapabilityIntegrationConfig;
|
|
215
|
+
parentId?: bigint;
|
|
216
|
+
propertyId?: number;
|
|
217
|
+
capabilityId?: bigint;
|
|
218
|
+
capabilityProviderId?: bigint;
|
|
219
|
+
subcategory?: string;
|
|
220
|
+
capabilityIntegrationResourceId?: bigint;
|
|
221
|
+
groupId?: bigint;
|
|
222
|
+
status?: CAPABILITY_INTEGRATION_STATUS_ENUM;
|
|
223
|
+
availableFor?: CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM;
|
|
224
|
+
resourceMappings?: ICapabilityIntegrationResourceMapping[];
|
|
225
|
+
}
|
|
226
|
+
interface IUpdateCapabilityIntegrationRequest {
|
|
227
|
+
id: bigint;
|
|
228
|
+
updateData: IUpdateCapabilityIntegrationUpdateData;
|
|
229
|
+
}
|
|
230
|
+
interface IUpdateCapabilityIntegrationResponse {
|
|
231
|
+
status: boolean;
|
|
232
|
+
}
|
|
233
|
+
interface IGetCapabilityIntegrationsFilterInput {
|
|
234
|
+
by: string;
|
|
235
|
+
values?: string[];
|
|
236
|
+
}
|
|
237
|
+
interface IGetCapabilityIntegrationsSortingInput {
|
|
238
|
+
by: string;
|
|
239
|
+
order: string;
|
|
240
|
+
}
|
|
241
|
+
interface IGetCapabilityIntegrationsOptionsInput {
|
|
242
|
+
count?: number;
|
|
243
|
+
page?: number;
|
|
244
|
+
filters?: IGetCapabilityIntegrationsFilterInput[];
|
|
245
|
+
sorting?: IGetCapabilityIntegrationsSortingInput;
|
|
246
|
+
search?: string;
|
|
247
|
+
}
|
|
248
|
+
interface IGetCapabilityIntegrationsRequest {
|
|
249
|
+
projectId: number;
|
|
250
|
+
category?: string;
|
|
251
|
+
propertyId?: number;
|
|
252
|
+
options?: IGetCapabilityIntegrationsOptionsInput;
|
|
253
|
+
}
|
|
254
|
+
interface IGetCapabilityIntegrationsResponse {
|
|
255
|
+
totalCount: number;
|
|
256
|
+
records: ICapabilityIntegration[];
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
type ISubCapability = typeof schema.subcapability.$inferSelect;
|
|
260
|
+
|
|
261
|
+
declare class IntegrationSubcapabilityDao {
|
|
262
|
+
private readonly conn;
|
|
263
|
+
private readonly logger;
|
|
264
|
+
private readonly fileName;
|
|
265
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
266
|
+
getSubcapabilityId(input: {
|
|
267
|
+
capabilityId: bigint;
|
|
268
|
+
name: string;
|
|
269
|
+
}, loggedInUserId: bigint): Promise<bigint | undefined>;
|
|
270
|
+
getSubcapabilities(input: {
|
|
271
|
+
capabilityId: bigint;
|
|
272
|
+
}, loggedInUserId: bigint): Promise<ISubCapability[]>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare class IntegrationConfigurationDao {
|
|
276
|
+
private readonly conn;
|
|
277
|
+
private readonly logger;
|
|
278
|
+
private readonly integrationSubcapabilityDao;
|
|
279
|
+
private readonly fileName;
|
|
280
|
+
private readonly integrationVisitorCredentialMappingDao;
|
|
281
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService, integrationSubcapabilityDao: IntegrationSubcapabilityDao);
|
|
282
|
+
addCapabilityIntegration(input: IAddCapabilityIntegration, loggedInUserId: bigint): Promise<{
|
|
283
|
+
id: bigint;
|
|
284
|
+
} | undefined>;
|
|
285
|
+
getCapability(request: {
|
|
286
|
+
capabilityId: bigint;
|
|
287
|
+
}, loggedInUserId: bigint): Promise<ICapability | undefined>;
|
|
288
|
+
getCapabilityProvider(request: {
|
|
289
|
+
capabilityProviderId: bigint;
|
|
290
|
+
}, loggedInUserId: bigint): Promise<typeof schema.capabilityProvider.$inferSelect | undefined>;
|
|
291
|
+
updateCapabilityIntegration(input: {
|
|
292
|
+
id: bigint;
|
|
293
|
+
updateData: IUpdateCapabilityIntegration;
|
|
294
|
+
projectId: number;
|
|
295
|
+
}, loggedInUserId: bigint): Promise<{
|
|
296
|
+
status: boolean;
|
|
297
|
+
}>;
|
|
298
|
+
updateCapabilityIntegrationAccessDetails(capabilityIntegrationId: bigint, accessToken: string, expiresInSeconds: number, loggedInUserId: bigint): Promise<void>;
|
|
299
|
+
syncCapabilityIntegrationResourceMappings(input: {
|
|
300
|
+
capabilityIntegrationId: bigint;
|
|
301
|
+
projectId: number;
|
|
302
|
+
resourceMappings: Array<{
|
|
303
|
+
configuredForId: bigint;
|
|
304
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
305
|
+
config?: typeof schema.capIntegResourceMapping.$inferSelect.config;
|
|
306
|
+
}>;
|
|
307
|
+
}, loggedInUserId: bigint): Promise<{
|
|
308
|
+
status: boolean;
|
|
309
|
+
}>;
|
|
310
|
+
getCapabilityIntegration(input: {
|
|
311
|
+
capabilityIntegrationId: bigint;
|
|
312
|
+
}, loggedInUserId: bigint): Promise<typeof schema.capabilityIntegration.$inferSelect | undefined>;
|
|
313
|
+
getCapabilityIntegrationById(request: {
|
|
314
|
+
id: bigint;
|
|
315
|
+
projectId: number;
|
|
316
|
+
category?: CAPABILITY_CATEGORY_ENUM;
|
|
317
|
+
}, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationResult | undefined>;
|
|
318
|
+
getCapabilityIntegrationByProvider(request: {
|
|
319
|
+
projectId: number;
|
|
320
|
+
category?: CAPABILITY_CATEGORY_ENUM;
|
|
321
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
322
|
+
configuredForId: bigint;
|
|
323
|
+
}, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationResult | undefined>;
|
|
324
|
+
getCapabilityIntegrations(input: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
|
|
325
|
+
private applyFilters;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class IntegrationVisitorCredentialMappingDao {
|
|
329
|
+
private readonly generateVisitorCredentialConfigKey;
|
|
330
|
+
private readonly capIntegResourceMappingOfficeVisitorType;
|
|
331
|
+
extractGenerateCredentialsForVisitorValue(config: unknown): boolean | undefined;
|
|
332
|
+
syncVisitorCredentialMapping(input: {
|
|
333
|
+
db: Pick<MySql2Database<typeof schema>, 'query' | 'insert' | 'update'>;
|
|
334
|
+
capabilityIntegrationId: bigint;
|
|
335
|
+
projectId: number;
|
|
336
|
+
isGenerateCredentialsForVisitorEnabled: boolean | undefined;
|
|
337
|
+
loggedInUserId: bigint;
|
|
338
|
+
createOnly: boolean;
|
|
339
|
+
}): Promise<void>;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
type IAddServiceCommunicationTopic = typeof schema.serviceCommunicationTopic.$inferInsert;
|
|
343
|
+
type IGetServiceCommunicationTopic = typeof schema.serviceCommunicationTopic.$inferSelect & {
|
|
344
|
+
subcapability: typeof schema.subcapability.$inferSelect;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
declare class IntegrationServiceCommunicationTopicDao {
|
|
348
|
+
private readonly conn;
|
|
349
|
+
private readonly logger;
|
|
350
|
+
private readonly fileName;
|
|
351
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
352
|
+
upsertTopic(input: IAddServiceCommunicationTopic, loggedInUserId?: bigint): Promise<{
|
|
353
|
+
status: boolean;
|
|
354
|
+
}>;
|
|
355
|
+
getServiceCommunicationTopics(integrationId: bigint, loggedInUserId?: bigint): Promise<IGetServiceCommunicationTopic[]>;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare class IntegrationResourceManagementDao {
|
|
359
|
+
private readonly conn;
|
|
360
|
+
private readonly logger;
|
|
361
|
+
private readonly fileName;
|
|
362
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
363
|
+
addCapabilityIntegrationMapping(input: {
|
|
364
|
+
projectId: number;
|
|
365
|
+
capabilityIntegrationId: bigint;
|
|
366
|
+
configuredForId: bigint;
|
|
367
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
368
|
+
config?: Record<string, unknown>;
|
|
369
|
+
}, context: GraphQLContext): Promise<IAddCapabilityIntegrationMappingResponse>;
|
|
370
|
+
checkMappingExists(input: {
|
|
371
|
+
capabilityIntegrationId: bigint;
|
|
372
|
+
configuredForId: bigint;
|
|
373
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
374
|
+
}, loggedInUserId: bigint): Promise<boolean>;
|
|
375
|
+
removeCapabilityIntegrationMapping(input: {
|
|
376
|
+
capabilityIntegrationId: bigint;
|
|
377
|
+
configuredForId: bigint;
|
|
378
|
+
configuredForType: CONFIGURED_FOR_TYPE_ENUM;
|
|
379
|
+
}, context: GraphQLContext): Promise<IDeleteAPIResponse>;
|
|
380
|
+
getCapabilityIntegrationResourceMappingById(id: bigint, loggedInUserId: bigint): Promise<ICapabilityIntegrationResourceMappingRow | undefined>;
|
|
381
|
+
updateCapabilityIntegrationConfiguration(input: {
|
|
382
|
+
id: bigint;
|
|
383
|
+
config: Record<string, unknown>;
|
|
384
|
+
}, context: GraphQLContext): Promise<IUpdateAPIResponse>;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
declare class IntegrationUserManagementDao {
|
|
388
|
+
protected readonly conn: MySql2Database<typeof schema>;
|
|
389
|
+
constructor(conn: MySql2Database<typeof schema>);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
type IAddOnpremDeployment = typeof schema.onPremDeployment.$inferInsert;
|
|
393
|
+
|
|
394
|
+
declare class IntegrationOnpremDeploymentDao {
|
|
395
|
+
private readonly conn;
|
|
396
|
+
private readonly logger;
|
|
397
|
+
private readonly fileName;
|
|
398
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
399
|
+
addUpdateOnpremDeployment(input: IAddOnpremDeployment, loggedInUserId?: bigint): Promise<IAddUpdateAPIStatusResponseBigInt>;
|
|
400
|
+
private addOnpremDeployment;
|
|
401
|
+
private updateOnpremDeployment;
|
|
402
|
+
getOnpremDeployment(input: {
|
|
403
|
+
integrationId: bigint;
|
|
404
|
+
projectId: number;
|
|
405
|
+
}, loggedInUserId?: bigint): Promise<typeof schema.onPremDeployment.$inferSelect | undefined>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
interface IAddCustomerContactPersonRequest {
|
|
409
|
+
first_name: string;
|
|
410
|
+
last_name?: string;
|
|
411
|
+
contact_id: string;
|
|
412
|
+
email?: string;
|
|
413
|
+
salutation?: string;
|
|
414
|
+
}
|
|
415
|
+
interface ICustomerContactPerson {
|
|
416
|
+
contact_id: string;
|
|
417
|
+
contact_person_id: string;
|
|
418
|
+
salutation?: string;
|
|
419
|
+
first_name?: string;
|
|
420
|
+
last_name?: string;
|
|
421
|
+
email?: string;
|
|
422
|
+
phone?: string;
|
|
423
|
+
mobile?: string;
|
|
424
|
+
mobile_country_code?: string;
|
|
425
|
+
mobile_code_formatted?: string;
|
|
426
|
+
department?: string;
|
|
427
|
+
designation?: string;
|
|
428
|
+
skype?: string;
|
|
429
|
+
fax?: string;
|
|
430
|
+
photo_url?: string;
|
|
431
|
+
zcrm_contact_id?: string;
|
|
432
|
+
is_portal_mfa_enabled?: boolean;
|
|
433
|
+
is_added_in_portal?: boolean;
|
|
434
|
+
can_invite?: boolean;
|
|
435
|
+
is_primary_contact?: boolean;
|
|
436
|
+
is_portal_invitation_accepted?: boolean;
|
|
437
|
+
is_sms_enabled_for_cp?: boolean;
|
|
438
|
+
photo_document_url?: string;
|
|
439
|
+
photo_document_name?: string;
|
|
440
|
+
contactperson_custom_fields?: unknown[];
|
|
441
|
+
communication_preference?: {
|
|
442
|
+
is_email_enabled?: boolean;
|
|
443
|
+
is_sms_enabled?: boolean;
|
|
444
|
+
is_whatsapp_enabled?: boolean;
|
|
445
|
+
};
|
|
446
|
+
enable_portal?: boolean;
|
|
447
|
+
}
|
|
448
|
+
interface IUpdateCustomerContactPersonRequest extends IAddCustomerContactPersonRequest {
|
|
449
|
+
contact_person_id: string;
|
|
450
|
+
}
|
|
451
|
+
interface IDeleteCustomerContactPersonRequest {
|
|
452
|
+
contact_person_id: string;
|
|
453
|
+
}
|
|
454
|
+
interface IMarkCustomerContactPersonPrimaryRequest {
|
|
455
|
+
contact_person_id: string;
|
|
456
|
+
}
|
|
457
|
+
interface ICustomerContactPersonResponse {
|
|
458
|
+
status: boolean;
|
|
459
|
+
message: string;
|
|
460
|
+
contact_person: ICustomerContactPerson;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
interface IGetCustomerRequest {
|
|
464
|
+
email?: string;
|
|
465
|
+
customerId?: string;
|
|
466
|
+
}
|
|
467
|
+
interface IAddCustomerRequest {
|
|
468
|
+
first_name?: string | null;
|
|
469
|
+
last_name?: string | null;
|
|
470
|
+
email?: string | null;
|
|
471
|
+
}
|
|
472
|
+
interface IUpdateCustomerRequest {
|
|
473
|
+
first_name?: string | null;
|
|
474
|
+
last_name?: string | null;
|
|
475
|
+
}
|
|
476
|
+
interface ICustomer {
|
|
477
|
+
id?: string;
|
|
478
|
+
}
|
|
479
|
+
interface ICustomerStatusResponse {
|
|
480
|
+
status?: boolean;
|
|
481
|
+
message?: string;
|
|
482
|
+
}
|
|
483
|
+
interface ICustomerLastCheckIn {
|
|
484
|
+
checked_in_at: string;
|
|
485
|
+
method: string;
|
|
486
|
+
}
|
|
487
|
+
interface IAdminCredentials {
|
|
488
|
+
grantType: string;
|
|
489
|
+
scope: string;
|
|
490
|
+
username: string;
|
|
491
|
+
password: string;
|
|
492
|
+
clientId: string;
|
|
493
|
+
clientSecret: string;
|
|
494
|
+
apiKey: string;
|
|
495
|
+
}
|
|
496
|
+
interface IConfiguration {
|
|
497
|
+
baseUrl: string;
|
|
498
|
+
siteId: string;
|
|
499
|
+
identityServerUrl: string;
|
|
500
|
+
roleIds: string[];
|
|
501
|
+
accessGroupIds?: string[];
|
|
502
|
+
credentials: IAdminCredentials;
|
|
503
|
+
}
|
|
504
|
+
interface IListUsersInput {
|
|
505
|
+
include_pod_info?: boolean;
|
|
506
|
+
member_of_pods?: any;
|
|
507
|
+
filter?: string;
|
|
508
|
+
orderBy?: string;
|
|
509
|
+
skip?: number;
|
|
510
|
+
top?: number;
|
|
511
|
+
count?: number;
|
|
512
|
+
}
|
|
513
|
+
interface IListUsersResponse<T> {
|
|
514
|
+
items: T[];
|
|
515
|
+
}
|
|
516
|
+
interface IAddUpdateAccessGroupRequest {
|
|
517
|
+
access: string;
|
|
518
|
+
}
|
|
519
|
+
interface IUserAccessGroup {
|
|
520
|
+
id: string;
|
|
521
|
+
first_name: string;
|
|
522
|
+
last_name: string;
|
|
523
|
+
}
|
|
524
|
+
interface IGetCustomerAccessGroupsInput {
|
|
525
|
+
customerId: string;
|
|
526
|
+
}
|
|
527
|
+
interface IGetCustomerAccessGroupsResponse {
|
|
528
|
+
count: number;
|
|
529
|
+
next_page_link: string;
|
|
530
|
+
}
|
|
531
|
+
interface ICustomerAddionalDetails {
|
|
532
|
+
email: string;
|
|
533
|
+
image_url: string;
|
|
534
|
+
tag_number: string;
|
|
535
|
+
is_managed_by_current_site: boolean;
|
|
536
|
+
has_profile: boolean;
|
|
537
|
+
id: string;
|
|
538
|
+
first_name: string;
|
|
539
|
+
last_name: string;
|
|
540
|
+
site_user_id?: string;
|
|
541
|
+
}
|
|
542
|
+
interface ICustomerRole {
|
|
543
|
+
id: string;
|
|
544
|
+
customer_reference: string;
|
|
545
|
+
code: string;
|
|
546
|
+
parent_id: string;
|
|
547
|
+
is_hierarchical: boolean;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
declare enum CREDIT_TYPE_ENUM {
|
|
551
|
+
COUPON = "COUPON",
|
|
552
|
+
AMOUNT = "AMOUNT"
|
|
553
|
+
}
|
|
554
|
+
declare enum CREDIT_STATUS_ENUM {
|
|
555
|
+
ACTIVE = "ACTIVE",
|
|
556
|
+
REDEEMED = "REDEEMED",
|
|
557
|
+
EXPIRED = "EXPIRED",
|
|
558
|
+
REVOKED = "REVOKED"
|
|
559
|
+
}
|
|
560
|
+
declare enum CREDIT_FILTER_BY_ENUM {
|
|
561
|
+
TYPE = "TYPE",
|
|
562
|
+
STATUS = "STATUS"
|
|
563
|
+
}
|
|
564
|
+
interface ICredit {
|
|
565
|
+
id?: bigint;
|
|
566
|
+
name: string;
|
|
567
|
+
description?: string;
|
|
568
|
+
type: CREDIT_TYPE_ENUM;
|
|
569
|
+
status: CREDIT_STATUS_ENUM;
|
|
570
|
+
projectId?: number;
|
|
571
|
+
propertyId?: number;
|
|
572
|
+
externalId?: string;
|
|
573
|
+
expiresAt?: Date;
|
|
574
|
+
expiresDate?: string;
|
|
575
|
+
startsAt?: Date;
|
|
576
|
+
startDate?: string;
|
|
577
|
+
value?: string;
|
|
578
|
+
capabilityIntegrationId?: bigint;
|
|
579
|
+
quantity?: number;
|
|
580
|
+
meta?: Record<string, unknown>;
|
|
581
|
+
}
|
|
582
|
+
interface IGetCustomerCreditsRequestFilters {
|
|
583
|
+
by: CREDIT_FILTER_BY_ENUM;
|
|
584
|
+
values: string[];
|
|
585
|
+
}
|
|
586
|
+
interface IGetCustomerCreditsRequestOptions {
|
|
587
|
+
filters?: IGetCustomerCreditsRequestFilters[];
|
|
588
|
+
page?: number;
|
|
589
|
+
count?: number;
|
|
590
|
+
}
|
|
591
|
+
interface IGetCustomerCreditsRequest {
|
|
592
|
+
customerId: string;
|
|
593
|
+
options?: IGetCustomerCreditsRequestOptions;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
interface IAddResourceToIntegrationInput {
|
|
597
|
+
projectId: number;
|
|
598
|
+
offeringId: bigint;
|
|
599
|
+
capabilityIntegrationId: bigint;
|
|
600
|
+
config?: Record<string, unknown>;
|
|
601
|
+
}
|
|
602
|
+
interface IAddResourceToIntegrationResponse {
|
|
603
|
+
status: boolean;
|
|
604
|
+
ids: bigint[];
|
|
605
|
+
}
|
|
606
|
+
interface IRemoveResourceFromIntegrationRequest {
|
|
607
|
+
offeringId: bigint;
|
|
608
|
+
capabilityIntegrationId: bigint;
|
|
609
|
+
}
|
|
610
|
+
interface IRemoveResourceFromIntegrationResponse {
|
|
611
|
+
status: boolean;
|
|
612
|
+
}
|
|
613
|
+
interface IUpdateOfferingIntegrationResourceConfigurationInput {
|
|
614
|
+
id: bigint;
|
|
615
|
+
config: Record<string, unknown>;
|
|
616
|
+
}
|
|
617
|
+
interface IUpdateOfferingIntegrationResourceConfigurationResponse {
|
|
618
|
+
status: boolean;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare enum BOOKABLE_ITEM_TYPE_ENUM {
|
|
622
|
+
APPOINTMENT = "APPOINTMENT",
|
|
623
|
+
SESSION = "SESSION",
|
|
624
|
+
COURSE = "COURSE"
|
|
625
|
+
}
|
|
626
|
+
declare enum BOOKABLE_ITEM_STATUS_ENUM {
|
|
627
|
+
ACTIVE = "ACTIVE",
|
|
628
|
+
INACTIVE = "INACTIVE"
|
|
629
|
+
}
|
|
630
|
+
interface IBookableItemPriceMeta {
|
|
631
|
+
id?: bigint;
|
|
632
|
+
externalId?: string;
|
|
633
|
+
status?: BOOKABLE_ITEM_STATUS_ENUM;
|
|
634
|
+
price: number;
|
|
635
|
+
currency: string;
|
|
636
|
+
configuredForDays?: DAY_OF_WEEK[];
|
|
637
|
+
config?: Record<string, unknown>;
|
|
638
|
+
}
|
|
639
|
+
interface IBookableItemPrice {
|
|
640
|
+
id?: bigint;
|
|
641
|
+
label?: string;
|
|
642
|
+
currency: string;
|
|
643
|
+
price: number;
|
|
644
|
+
externalResourceId?: string;
|
|
645
|
+
durationInMinute?: number;
|
|
646
|
+
configuredForDays?: DAY_OF_WEEK[];
|
|
647
|
+
pricesMeta?: IBookableItemPriceMeta[];
|
|
648
|
+
config?: Record<string, unknown>;
|
|
649
|
+
}
|
|
650
|
+
interface IBookableItemMedia {
|
|
651
|
+
id?: string;
|
|
652
|
+
url?: string;
|
|
653
|
+
originalUrl?: string;
|
|
654
|
+
fileName?: string;
|
|
655
|
+
mimeType?: string;
|
|
656
|
+
thumbnailUrl?: string;
|
|
657
|
+
}
|
|
658
|
+
interface IBookableItem {
|
|
659
|
+
id?: bigint;
|
|
660
|
+
externalId: string;
|
|
661
|
+
name: string;
|
|
662
|
+
description?: string;
|
|
663
|
+
type: BOOKABLE_ITEM_TYPE_ENUM;
|
|
664
|
+
status?: BOOKABLE_ITEM_STATUS_ENUM;
|
|
665
|
+
icon?: IBookableItemMedia;
|
|
666
|
+
primaryAsset?: IBookableItemMedia;
|
|
667
|
+
prices?: IBookableItemPrice[];
|
|
668
|
+
linkedBookableItems?: IBookableItem[];
|
|
669
|
+
updatedAt?: Date;
|
|
670
|
+
createdAt?: Date;
|
|
671
|
+
meta?: Record<string, unknown>;
|
|
672
|
+
}
|
|
673
|
+
interface IBookableItemCategory {
|
|
674
|
+
id?: bigint;
|
|
675
|
+
externalId: string;
|
|
676
|
+
name: string;
|
|
677
|
+
description?: string;
|
|
678
|
+
meta?: Record<string, unknown>;
|
|
679
|
+
}
|
|
680
|
+
interface IWellnessManagementRequestOptions {
|
|
681
|
+
page?: number;
|
|
682
|
+
count?: number;
|
|
683
|
+
}
|
|
684
|
+
interface IGetAppointmentsRequest {
|
|
685
|
+
shouldFetchAllAppointments: boolean;
|
|
686
|
+
practitionerIds?: string[];
|
|
687
|
+
options?: IWellnessManagementRequestOptions;
|
|
688
|
+
}
|
|
689
|
+
interface IGetSessionsRequest {
|
|
690
|
+
shouldFetchAllSessions: boolean;
|
|
691
|
+
practitionerIds?: string[];
|
|
692
|
+
options?: IWellnessManagementRequestOptions;
|
|
693
|
+
}
|
|
694
|
+
interface IGetCoursesRequest {
|
|
695
|
+
shouldFetchAllCourses: boolean;
|
|
696
|
+
options?: IWellnessManagementRequestOptions;
|
|
697
|
+
}
|
|
698
|
+
interface IGetCategoriesRequest {
|
|
699
|
+
shouldFetchAllCategories: boolean;
|
|
700
|
+
options?: IWellnessManagementRequestOptions;
|
|
701
|
+
}
|
|
702
|
+
interface IGetBookableItemsFromCreditRequest {
|
|
703
|
+
couponCodeId: string;
|
|
704
|
+
options?: IWellnessManagementRequestOptions;
|
|
705
|
+
}
|
|
706
|
+
interface IFetchOfferingAvailabilityRequest {
|
|
707
|
+
externalOfferingBookableItemId: string;
|
|
708
|
+
dateTimeFrom: Date;
|
|
709
|
+
dateTimeTo: Date;
|
|
710
|
+
}
|
|
711
|
+
interface IAvailableTimeSlot {
|
|
712
|
+
fromTime: string;
|
|
713
|
+
toTime: string;
|
|
714
|
+
meta?: unknown;
|
|
715
|
+
}
|
|
716
|
+
interface IAvailableDateWithSlots {
|
|
717
|
+
date: Date;
|
|
718
|
+
meta?: unknown;
|
|
719
|
+
time: IAvailableTimeSlot[];
|
|
720
|
+
}
|
|
721
|
+
interface IGetAvailableDatesAndTimeSlotsResponse {
|
|
722
|
+
dates: IAvailableDateWithSlots[];
|
|
723
|
+
}
|
|
724
|
+
interface IOrderGuest {
|
|
725
|
+
id: string;
|
|
726
|
+
name?: string;
|
|
727
|
+
}
|
|
728
|
+
interface IGetOrderResponse {
|
|
729
|
+
orderId: string;
|
|
730
|
+
guests: IOrderGuest[];
|
|
731
|
+
}
|
|
732
|
+
interface ICreateOrderRequest {
|
|
733
|
+
bookingStartTime: Date;
|
|
734
|
+
durationInMinutes?: number;
|
|
735
|
+
meta?: Record<string, unknown>;
|
|
736
|
+
bookableItems: Pick<IBookableItem, 'externalId' | 'type'>[];
|
|
737
|
+
offeringResources: Pick<IOfferingResource, 'externalId'>[];
|
|
738
|
+
currencyMultiplier: number;
|
|
739
|
+
customerId: string;
|
|
740
|
+
customerCreditId?: string;
|
|
741
|
+
}
|
|
742
|
+
interface ICreateOrderResponse {
|
|
743
|
+
externalBookingId: string;
|
|
744
|
+
items: (Pick<IBookableItem, 'externalId' | 'type' | 'name'> & {
|
|
745
|
+
totalPrice?: number;
|
|
746
|
+
primaryAsset?: IMedia;
|
|
747
|
+
meta: {
|
|
748
|
+
basketItemId: string;
|
|
749
|
+
};
|
|
750
|
+
})[];
|
|
751
|
+
}
|
|
752
|
+
interface IAddItemToOrderItemConfig {
|
|
753
|
+
offeringId: string;
|
|
754
|
+
offeringType: BOOKABLE_ITEM_TYPE_ENUM;
|
|
755
|
+
guestIds: string[];
|
|
756
|
+
practitionerIds: string[];
|
|
757
|
+
durationMinutes?: number;
|
|
758
|
+
timeIso?: string;
|
|
759
|
+
sessionId?: string;
|
|
760
|
+
}
|
|
761
|
+
interface IAddItemToOrderRequest {
|
|
762
|
+
orderId: string;
|
|
763
|
+
item: IAddItemToOrderItemConfig;
|
|
764
|
+
}
|
|
765
|
+
interface IAddItemToOrderResponse {
|
|
766
|
+
name?: string;
|
|
767
|
+
netTotal?: number;
|
|
768
|
+
}
|
|
769
|
+
interface IAddPaymentToOrderRequest {
|
|
770
|
+
orderId: string;
|
|
771
|
+
amount: number;
|
|
772
|
+
paymentTypeId: string;
|
|
773
|
+
}
|
|
774
|
+
interface IOfferingResourceMedia {
|
|
775
|
+
meta?: Record<string, unknown>;
|
|
776
|
+
provider?: string;
|
|
777
|
+
}
|
|
778
|
+
interface IOfferingResource {
|
|
779
|
+
id?: bigint;
|
|
780
|
+
externalId: string;
|
|
781
|
+
name: string;
|
|
782
|
+
description?: string;
|
|
783
|
+
type: OFFERING_RESOURCE_TYPE;
|
|
784
|
+
status: STATUS;
|
|
785
|
+
media?: IOfferingResourceMedia;
|
|
786
|
+
meta?: Record<string, unknown>;
|
|
787
|
+
bookableItems?: unknown[];
|
|
788
|
+
createdAt?: Date;
|
|
789
|
+
createdBy?: bigint;
|
|
790
|
+
deletedAt?: Date;
|
|
791
|
+
deletedBy?: bigint;
|
|
792
|
+
isCurrentlyUnavailable?: boolean;
|
|
793
|
+
occurrences?: unknown[];
|
|
794
|
+
offeringId?: bigint;
|
|
795
|
+
priceSummary?: string;
|
|
796
|
+
projectId?: number;
|
|
797
|
+
quantity?: number;
|
|
798
|
+
unavailability?: unknown[];
|
|
799
|
+
updatedAt?: Date;
|
|
800
|
+
updatedBy?: bigint;
|
|
801
|
+
}
|
|
802
|
+
interface IGetPractitionersRequest {
|
|
803
|
+
shouldFetchAllPractitioners: boolean;
|
|
804
|
+
options?: IWellnessManagementRequestOptions;
|
|
805
|
+
}
|
|
806
|
+
interface IUpdateOrderRequest {
|
|
807
|
+
orderId: string;
|
|
808
|
+
timezone: string;
|
|
809
|
+
item: {
|
|
810
|
+
externalId: string;
|
|
811
|
+
type: BOOKABLE_ITEM_TYPE_ENUM;
|
|
812
|
+
};
|
|
813
|
+
sessionId?: string;
|
|
814
|
+
durationInMinutes?: number;
|
|
815
|
+
bookingStartDateLabel?: string;
|
|
816
|
+
bookingStartTimeLabel?: string;
|
|
817
|
+
}
|
|
818
|
+
interface IUpdateOrderResponse {
|
|
819
|
+
success: boolean;
|
|
820
|
+
data?: {
|
|
821
|
+
id: string;
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
interface ISystemResponse<T> {
|
|
826
|
+
totalCount: number;
|
|
827
|
+
records: T[];
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
interface IRegisterDeviceInput {
|
|
831
|
+
device_name?: string;
|
|
832
|
+
device_uid: string;
|
|
833
|
+
public_key: string;
|
|
834
|
+
}
|
|
835
|
+
interface IKey {
|
|
836
|
+
id: string;
|
|
837
|
+
key_id: string;
|
|
838
|
+
expiry_date: string;
|
|
839
|
+
registration_date: string;
|
|
840
|
+
}
|
|
841
|
+
interface IRegisterDeviceResponse {
|
|
842
|
+
certificate?: string;
|
|
843
|
+
id: string;
|
|
844
|
+
device_name: string;
|
|
845
|
+
device_uid: string;
|
|
846
|
+
mkey: IKey;
|
|
847
|
+
}
|
|
848
|
+
interface IDeleteDeviceInput {
|
|
849
|
+
deviceKey: string;
|
|
850
|
+
userId: string;
|
|
851
|
+
}
|
|
852
|
+
interface IDeleteDeviceResponse {
|
|
853
|
+
id: string;
|
|
854
|
+
key_identifier: string;
|
|
855
|
+
key_id: string;
|
|
856
|
+
type: string;
|
|
857
|
+
expiry_date: string;
|
|
858
|
+
registration_date: string;
|
|
859
|
+
blocked: boolean;
|
|
860
|
+
offline_access: boolean;
|
|
861
|
+
key_uid: string;
|
|
862
|
+
}
|
|
863
|
+
interface IGetDevicesInput {
|
|
864
|
+
filter?: string;
|
|
865
|
+
orderby?: string;
|
|
866
|
+
skip?: number;
|
|
867
|
+
top?: number;
|
|
868
|
+
count?: boolean;
|
|
869
|
+
}
|
|
870
|
+
interface IGetDevicesResponse {
|
|
871
|
+
items: IRegisterDeviceResponse[];
|
|
872
|
+
count: number;
|
|
873
|
+
}
|
|
874
|
+
interface IUpdateDeviceCertificateInput {
|
|
875
|
+
publicKey: string;
|
|
876
|
+
deviceId: string;
|
|
877
|
+
}
|
|
878
|
+
type IUpdateDeviceCertificateResponse = IRegisterDeviceResponse;
|
|
879
|
+
interface IGetDeviceKeyInput {
|
|
880
|
+
deviceId: string;
|
|
881
|
+
}
|
|
882
|
+
interface IGetDeviceKeyResponse {
|
|
883
|
+
mkey_data: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
interface IAccessProfile {
|
|
887
|
+
id: string;
|
|
888
|
+
customer_reference?: string;
|
|
889
|
+
lock_count?: number;
|
|
890
|
+
user_count?: number;
|
|
891
|
+
floor_count?: number;
|
|
892
|
+
}
|
|
893
|
+
type IAccessProfiles = IAccessProfile[];
|
|
894
|
+
interface IGetAccessProfilesResponse {
|
|
895
|
+
count?: number | null;
|
|
896
|
+
next_page_link?: string | null;
|
|
897
|
+
items?: IAccessProfiles;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
interface IAccounts {
|
|
901
|
+
id: string;
|
|
902
|
+
name: string;
|
|
903
|
+
type: string;
|
|
904
|
+
}
|
|
905
|
+
interface IAvailableTaxes {
|
|
906
|
+
id: string;
|
|
907
|
+
name: string;
|
|
908
|
+
percentage: number;
|
|
909
|
+
}
|
|
910
|
+
interface ITransactionNumberSeriesItem {
|
|
911
|
+
id?: string;
|
|
912
|
+
prefixString: string;
|
|
913
|
+
entityType: string;
|
|
914
|
+
}
|
|
915
|
+
interface ITransactionNumberSeries {
|
|
916
|
+
id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
numberSeries: ITransactionNumberSeriesItem[];
|
|
919
|
+
}
|
|
920
|
+
declare enum DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_FILTER_BY_ENUM {
|
|
921
|
+
STATUS = "STATUS"
|
|
922
|
+
}
|
|
923
|
+
declare enum DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_STATUS_ENUM {
|
|
924
|
+
ALL = "ALL"
|
|
925
|
+
}
|
|
926
|
+
interface IDownloadCustomerAccountingStatementRequest {
|
|
927
|
+
customerId: string;
|
|
928
|
+
fromDate: string;
|
|
929
|
+
toDate: string;
|
|
930
|
+
filters?: Array<{
|
|
931
|
+
by: DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_FILTER_BY_ENUM;
|
|
932
|
+
values: DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_STATUS_ENUM[];
|
|
933
|
+
}>;
|
|
934
|
+
}
|
|
935
|
+
interface CustomerActivity {
|
|
936
|
+
id: string;
|
|
937
|
+
createdAt?: Date;
|
|
938
|
+
createdBy?: string;
|
|
939
|
+
updatedAt?: Date;
|
|
940
|
+
updatedBy?: string;
|
|
941
|
+
deletedAt?: Date;
|
|
942
|
+
deletedBy?: string;
|
|
943
|
+
recordedAt?: Date;
|
|
944
|
+
initiatorId?: string;
|
|
945
|
+
initiatorType?: string;
|
|
946
|
+
actionType?: string;
|
|
947
|
+
actionTitle?: string;
|
|
948
|
+
actionSublabel1?: string;
|
|
949
|
+
actionSublabel2?: string;
|
|
950
|
+
actionSublabel3?: string;
|
|
951
|
+
actionNotes?: string;
|
|
952
|
+
projectId: string;
|
|
953
|
+
resourceType?: string;
|
|
954
|
+
resourceTypeId?: string;
|
|
955
|
+
additionalInfo?: Record<string, unknown>;
|
|
956
|
+
author?: ActivityLogAuthor;
|
|
957
|
+
ownerType?: string;
|
|
958
|
+
ownerTypeId?: string;
|
|
959
|
+
note?: Note;
|
|
960
|
+
isInternal?: boolean;
|
|
961
|
+
}
|
|
962
|
+
interface ActivityLogAuthor {
|
|
963
|
+
id?: string;
|
|
964
|
+
title?: string;
|
|
965
|
+
firstName?: string;
|
|
966
|
+
middleName?: string;
|
|
967
|
+
lastName?: string;
|
|
968
|
+
fullName?: string;
|
|
969
|
+
profileImage?: string;
|
|
970
|
+
}
|
|
971
|
+
interface Note {
|
|
972
|
+
id?: string;
|
|
973
|
+
createdAt?: Date;
|
|
974
|
+
createdBy?: string;
|
|
975
|
+
updatedAt?: Date;
|
|
976
|
+
updatedBy?: string;
|
|
977
|
+
deletedAt?: Date;
|
|
978
|
+
deletedBy?: string;
|
|
979
|
+
title?: string;
|
|
980
|
+
description?: string;
|
|
981
|
+
noteCreatorBehaviourType?: string;
|
|
982
|
+
noteCreatorBehaviourId?: string;
|
|
983
|
+
propertyId?: string;
|
|
984
|
+
resourceType?: string;
|
|
985
|
+
resourceId?: string;
|
|
986
|
+
resources?: NoteResource[];
|
|
987
|
+
isPinned?: boolean;
|
|
988
|
+
createdByUser?: UserIdentity;
|
|
989
|
+
updatedByUser?: UserIdentity;
|
|
990
|
+
digitalAssets?: DigitalAsset[];
|
|
991
|
+
projectId?: string;
|
|
992
|
+
attachments?: NoteAttachment[];
|
|
993
|
+
hasAttachment?: boolean;
|
|
994
|
+
noteChangelogs?: NoteChangelog[];
|
|
995
|
+
pinnedAt?: string;
|
|
996
|
+
isRead?: boolean;
|
|
997
|
+
isInternal?: boolean;
|
|
998
|
+
}
|
|
999
|
+
interface NoteResource {
|
|
1000
|
+
resourceType?: string;
|
|
1001
|
+
resourceId?: string;
|
|
1002
|
+
resourceReferenceId?: string;
|
|
1003
|
+
}
|
|
1004
|
+
interface DigitalAsset {
|
|
1005
|
+
id?: string;
|
|
1006
|
+
createdAt?: Date;
|
|
1007
|
+
createdBy?: string;
|
|
1008
|
+
updatedAt?: Date;
|
|
1009
|
+
updatedBy?: string;
|
|
1010
|
+
deletedAt?: Date;
|
|
1011
|
+
deletedBy?: string;
|
|
1012
|
+
name?: string;
|
|
1013
|
+
type?: string;
|
|
1014
|
+
fileName?: string;
|
|
1015
|
+
fileSize?: string;
|
|
1016
|
+
description?: string;
|
|
1017
|
+
projectId?: string;
|
|
1018
|
+
propertyId?: string;
|
|
1019
|
+
thumbnailUrl?: string;
|
|
1020
|
+
mediaOriginalUrl?: string;
|
|
1021
|
+
meta?: Record<string, unknown>;
|
|
1022
|
+
scope?: string;
|
|
1023
|
+
status?: string;
|
|
1024
|
+
resourceAssetMaps?: ResourceAssetMapping[];
|
|
1025
|
+
}
|
|
1026
|
+
interface ResourceAssetMapping {
|
|
1027
|
+
id?: string;
|
|
1028
|
+
createdAt?: Date;
|
|
1029
|
+
createdBy?: string;
|
|
1030
|
+
updatedAt?: Date;
|
|
1031
|
+
updatedBy?: string;
|
|
1032
|
+
deletedAt?: Date;
|
|
1033
|
+
deletedBy?: string;
|
|
1034
|
+
resource?: string;
|
|
1035
|
+
resourceId?: string;
|
|
1036
|
+
digitalAssetId?: string;
|
|
1037
|
+
projectId?: string;
|
|
1038
|
+
propertyId?: string;
|
|
1039
|
+
}
|
|
1040
|
+
interface NoteAttachment {
|
|
1041
|
+
id?: string;
|
|
1042
|
+
name: string;
|
|
1043
|
+
fileName: string;
|
|
1044
|
+
fileSize: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
thumbnailUrl?: string;
|
|
1047
|
+
mediaOriginalUrl?: string;
|
|
1048
|
+
meta?: Record<string, unknown>;
|
|
1049
|
+
scope?: string;
|
|
1050
|
+
status?: string;
|
|
1051
|
+
type?: string;
|
|
1052
|
+
}
|
|
1053
|
+
interface NoteChangelogRecord {
|
|
1054
|
+
id: string;
|
|
1055
|
+
title: string;
|
|
1056
|
+
noteId: string;
|
|
1057
|
+
projectId: string;
|
|
1058
|
+
propertyId?: string;
|
|
1059
|
+
resourceId: string;
|
|
1060
|
+
description: string;
|
|
1061
|
+
resourceType: string;
|
|
1062
|
+
noteChangelog: string;
|
|
1063
|
+
noteEditorBehaviourId: string;
|
|
1064
|
+
noteEditorBehaviourType: string;
|
|
1065
|
+
createdAt?: Date;
|
|
1066
|
+
updatedAt?: Date;
|
|
1067
|
+
deletedAt?: Date;
|
|
1068
|
+
createdBy?: string;
|
|
1069
|
+
updatedBy?: string;
|
|
1070
|
+
deletedBy?: string;
|
|
1071
|
+
createdByUser?: NoteUserIdentity | undefined;
|
|
1072
|
+
}
|
|
1073
|
+
interface NoteUserIdentity {
|
|
1074
|
+
title?: string;
|
|
1075
|
+
fname?: string;
|
|
1076
|
+
mname?: string;
|
|
1077
|
+
lname?: string;
|
|
1078
|
+
fullName?: string;
|
|
1079
|
+
gender?: string;
|
|
1080
|
+
seedSource?: string;
|
|
1081
|
+
idIntegration?: string;
|
|
1082
|
+
identityReference?: string;
|
|
1083
|
+
userId?: string;
|
|
1084
|
+
metaInfo?: Record<string, unknown>;
|
|
1085
|
+
email?: string;
|
|
1086
|
+
contactPhone?: string;
|
|
1087
|
+
profileImage?: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface UserIdentity {
|
|
1090
|
+
id?: string;
|
|
1091
|
+
createdAt?: Date;
|
|
1092
|
+
createdBy?: string;
|
|
1093
|
+
updatedAt?: Date;
|
|
1094
|
+
updatedBy?: string;
|
|
1095
|
+
deletedAt?: Date;
|
|
1096
|
+
deletedBy?: string;
|
|
1097
|
+
title?: string;
|
|
1098
|
+
fname?: string;
|
|
1099
|
+
mname?: string;
|
|
1100
|
+
lname?: string;
|
|
1101
|
+
fullName?: string;
|
|
1102
|
+
gender?: string;
|
|
1103
|
+
seedSource?: string;
|
|
1104
|
+
idIntegration?: number;
|
|
1105
|
+
identityReference?: string;
|
|
1106
|
+
userId?: string;
|
|
1107
|
+
metaInfo?: Record<string, unknown>;
|
|
1108
|
+
email?: string;
|
|
1109
|
+
contactPhone?: string;
|
|
1110
|
+
profileImage?: string;
|
|
1111
|
+
}
|
|
1112
|
+
interface NoteChangelog {
|
|
1113
|
+
id?: string;
|
|
1114
|
+
createdAt?: Date;
|
|
1115
|
+
createdBy?: string;
|
|
1116
|
+
updatedAt?: Date;
|
|
1117
|
+
updatedBy?: string;
|
|
1118
|
+
deletedAt?: Date;
|
|
1119
|
+
deletedBy?: string;
|
|
1120
|
+
title?: string;
|
|
1121
|
+
noteId?: string;
|
|
1122
|
+
projectId?: string;
|
|
1123
|
+
propertyId?: string;
|
|
1124
|
+
resourceId?: string;
|
|
1125
|
+
description?: string;
|
|
1126
|
+
resourceType?: string;
|
|
1127
|
+
noteChangelog?: string;
|
|
1128
|
+
noteEditorBehaviourId?: string;
|
|
1129
|
+
noteEditorBehaviourType?: string;
|
|
1130
|
+
createdByUser?: UserIdentity;
|
|
1131
|
+
}
|
|
1132
|
+
interface IGetCustomerActivities {
|
|
1133
|
+
records: CustomerActivity[];
|
|
1134
|
+
hasMorePage: boolean;
|
|
1135
|
+
}
|
|
1136
|
+
interface GetFolioActivitiesOptionsInput {
|
|
1137
|
+
count?: number;
|
|
1138
|
+
page?: number;
|
|
1139
|
+
}
|
|
1140
|
+
interface GetCustomerActivitiesInput {
|
|
1141
|
+
customerId: string;
|
|
1142
|
+
projectId: string;
|
|
1143
|
+
options?: GetFolioActivitiesOptionsInput;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
interface IGetCustomerPaymentsRequest {
|
|
1147
|
+
getCustomerPaymentsOptionsInput?: IGetCustomerPaymentsOptions;
|
|
1148
|
+
}
|
|
1149
|
+
interface IGetCustomerPaymentsOptions {
|
|
1150
|
+
count?: number;
|
|
1151
|
+
page?: number;
|
|
1152
|
+
search?: string;
|
|
1153
|
+
customerId: string;
|
|
1154
|
+
sorting?: IGetCustomerPaymentsSorting;
|
|
1155
|
+
}
|
|
1156
|
+
declare enum GET_PAYMENTS_FILTER_BY_ENUM {
|
|
1157
|
+
PAYMENT_MODE = "PAYMENT_MODE"
|
|
1158
|
+
}
|
|
1159
|
+
declare enum GET_PAYMENTS_FILTER_VALUE_ENUM {
|
|
1160
|
+
ALL = "ALL",
|
|
1161
|
+
CHECK = "CHECK",
|
|
1162
|
+
CASH = "CASH",
|
|
1163
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
1164
|
+
PAYPAL = "PAYPAL",
|
|
1165
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
1166
|
+
GOOGLE_CHECKOUT = "GOOGLE_CHECKOUT",
|
|
1167
|
+
CREDIT = "CREDIT",
|
|
1168
|
+
AUTHORIZENET = "AUTHORIZENET",
|
|
1169
|
+
STRIPE = "STRIPE",
|
|
1170
|
+
PAY_FLOW_PRO = "PAY_FLOW_PRO",
|
|
1171
|
+
BRAIN_TREE = "BRAIN_TREE",
|
|
1172
|
+
TWO_CHECK_OUT = "TWO_CHECK_OUT",
|
|
1173
|
+
BANK_REMITTANCE = "BANK_REMITTANCE"
|
|
1174
|
+
}
|
|
1175
|
+
declare enum GET_PAYMENTS_SORTING_ENUM {
|
|
1176
|
+
CUSTOMER_NAME = "CUSTOMER_NAME",
|
|
1177
|
+
DATE = "DATE",
|
|
1178
|
+
AMOUNT = "AMOUNT",
|
|
1179
|
+
NOTES = "NOTES",
|
|
1180
|
+
PAYMENT_MODE = "PAYMENT_MODE"
|
|
1181
|
+
}
|
|
1182
|
+
interface IGetCustomerPaymentsSorting {
|
|
1183
|
+
by: GET_PAYMENTS_SORTING_ENUM;
|
|
1184
|
+
order: SORTING_ORDER_ENUM;
|
|
1185
|
+
}
|
|
1186
|
+
interface IGetCustomerPaymentsFilter {
|
|
1187
|
+
by: GET_PAYMENTS_FILTER_BY_ENUM;
|
|
1188
|
+
values: GET_PAYMENTS_FILTER_VALUE_ENUM[];
|
|
1189
|
+
}
|
|
1190
|
+
interface IGetCustomerPayments {
|
|
1191
|
+
records: ICustomerPaymentRecord[];
|
|
1192
|
+
hasMorePage: boolean;
|
|
1193
|
+
}
|
|
1194
|
+
interface ICustomerPaymentRecord {
|
|
1195
|
+
customerId: string;
|
|
1196
|
+
date: string;
|
|
1197
|
+
dueInExcess: number;
|
|
1198
|
+
invoiceNumbers: string;
|
|
1199
|
+
mode: string;
|
|
1200
|
+
operator: string;
|
|
1201
|
+
paymentId: string;
|
|
1202
|
+
paymentNumber: string;
|
|
1203
|
+
referenceId: string;
|
|
1204
|
+
remark: string;
|
|
1205
|
+
totalAmountReceived: number;
|
|
1206
|
+
createdAt: Date;
|
|
1207
|
+
updatedAt?: Date;
|
|
1208
|
+
refundedAmount: number;
|
|
1209
|
+
currency: ICurrency;
|
|
1210
|
+
}
|
|
1211
|
+
interface IGetCustomerPaymentRequest {
|
|
1212
|
+
paymentId: string;
|
|
1213
|
+
}
|
|
1214
|
+
interface IGetCustomerPayment {
|
|
1215
|
+
payment: ICustomerPaymentDetails;
|
|
1216
|
+
}
|
|
1217
|
+
interface ICustomerPaymentDetails {
|
|
1218
|
+
date: Date;
|
|
1219
|
+
customerName: string;
|
|
1220
|
+
paymentId: string;
|
|
1221
|
+
customerId: string;
|
|
1222
|
+
totalAmount: number;
|
|
1223
|
+
remainingAmount: number;
|
|
1224
|
+
createdAt: Date;
|
|
1225
|
+
updatedAt: Date;
|
|
1226
|
+
paymentMode: string;
|
|
1227
|
+
accountId: string;
|
|
1228
|
+
accountName?: string;
|
|
1229
|
+
accountType?: string;
|
|
1230
|
+
referenceNumber?: string;
|
|
1231
|
+
currency: ICurrency;
|
|
1232
|
+
customFields?: Array<{
|
|
1233
|
+
apiName: string;
|
|
1234
|
+
value: string | number | boolean;
|
|
1235
|
+
label?: string;
|
|
1236
|
+
customfieldId?: string;
|
|
1237
|
+
}>;
|
|
1238
|
+
custom_field_hash?: Record<string, string | number | boolean>;
|
|
1239
|
+
}
|
|
1240
|
+
interface ICurrency {
|
|
1241
|
+
id: string;
|
|
1242
|
+
symbol: string;
|
|
1243
|
+
code: string;
|
|
1244
|
+
}
|
|
1245
|
+
interface IRefundCustomerPayment {
|
|
1246
|
+
paymentId: string;
|
|
1247
|
+
amount: number;
|
|
1248
|
+
description?: string;
|
|
1249
|
+
fromAccountId: string;
|
|
1250
|
+
date: string;
|
|
1251
|
+
}
|
|
1252
|
+
interface IGetRefundCustomerPayment {
|
|
1253
|
+
paymentRefund: IGetCustomerPaymentRefundInfo;
|
|
1254
|
+
}
|
|
1255
|
+
interface IGetCustomerPaymentRefundInfo {
|
|
1256
|
+
paymentRefundId: string;
|
|
1257
|
+
paymentId: string;
|
|
1258
|
+
date: Date;
|
|
1259
|
+
refundMode: string;
|
|
1260
|
+
referenceNumber: string;
|
|
1261
|
+
amount: number;
|
|
1262
|
+
exchangeRate: number;
|
|
1263
|
+
fromAccountId: string;
|
|
1264
|
+
fromAccountName: string;
|
|
1265
|
+
description: string;
|
|
1266
|
+
htmlString: string;
|
|
1267
|
+
}
|
|
1268
|
+
interface ICreateCustomerPaymentRequest {
|
|
1269
|
+
customerId: string;
|
|
1270
|
+
totalAmount: number;
|
|
1271
|
+
date: string;
|
|
1272
|
+
paymentMode: string;
|
|
1273
|
+
accountId?: string;
|
|
1274
|
+
invoices?: Array<{
|
|
1275
|
+
invoiceId: string;
|
|
1276
|
+
amountApplied: number;
|
|
1277
|
+
}>;
|
|
1278
|
+
referenceNumber?: string;
|
|
1279
|
+
description?: string;
|
|
1280
|
+
bankCharges?: number;
|
|
1281
|
+
customFields?: Array<{
|
|
1282
|
+
apiName: string;
|
|
1283
|
+
value: string;
|
|
1284
|
+
}>;
|
|
1285
|
+
}
|
|
1286
|
+
interface IUpdateCustomerPaymentRequest {
|
|
1287
|
+
paymentId: string;
|
|
1288
|
+
customerId: string;
|
|
1289
|
+
invoices?: Array<{
|
|
1290
|
+
invoiceId: string;
|
|
1291
|
+
amountApplied: number;
|
|
1292
|
+
}>;
|
|
1293
|
+
description?: string;
|
|
1294
|
+
referenceNumber?: string;
|
|
1295
|
+
amount?: number;
|
|
1296
|
+
date?: string;
|
|
1297
|
+
paymentMethod?: string;
|
|
1298
|
+
customFields?: Array<{
|
|
1299
|
+
apiName: string;
|
|
1300
|
+
value: string;
|
|
1301
|
+
}>;
|
|
1302
|
+
}
|
|
1303
|
+
interface IGetCreateCustomerPayment {
|
|
1304
|
+
payment: IGetCreateCustomerPaymentInfo;
|
|
1305
|
+
}
|
|
1306
|
+
interface IGetCreateCustomerPaymentInfo {
|
|
1307
|
+
date: Date;
|
|
1308
|
+
customerName: string;
|
|
1309
|
+
paymentId: string;
|
|
1310
|
+
customerId: string;
|
|
1311
|
+
totalAmount: number;
|
|
1312
|
+
createdAt: Date;
|
|
1313
|
+
updatedAt: Date;
|
|
1314
|
+
paymentMode: string;
|
|
1315
|
+
accountId: string;
|
|
1316
|
+
currency: ICurrency;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
interface InvoiceAccessDetails {
|
|
1320
|
+
expiryAt?: string;
|
|
1321
|
+
accessToken?: string;
|
|
1322
|
+
tokenType?: string;
|
|
1323
|
+
}
|
|
1324
|
+
interface AccountConfig {
|
|
1325
|
+
availablePaymentMethods?: unknown[];
|
|
1326
|
+
isTaxInclusive?: boolean;
|
|
1327
|
+
transactionNumberSeries?: ITransactionNumberSeries[];
|
|
1328
|
+
}
|
|
1329
|
+
interface IIntegrationConfig {
|
|
1330
|
+
clientId: string;
|
|
1331
|
+
clientSecret: string;
|
|
1332
|
+
organizationId: string;
|
|
1333
|
+
refreshToken: string;
|
|
1334
|
+
}
|
|
1335
|
+
interface IInvoiceCapabilityIntegrationConfig extends ICapabilityIntegrationConfig {
|
|
1336
|
+
accessDetails?: InvoiceAccessDetails;
|
|
1337
|
+
accountConfig?: AccountConfig;
|
|
1338
|
+
integrationConfig?: IIntegrationConfig;
|
|
1339
|
+
}
|
|
1340
|
+
type IInvoiceCapabilityIntegration = Omit<ICapabilityIntegration, 'id' | 'providerId' | 'capabilityId' | 'projectId' | 'config'> & typeof schema.capabilityIntegration.$inferSelect & {
|
|
1341
|
+
config?: IInvoiceCapabilityIntegrationConfig;
|
|
1342
|
+
};
|
|
1343
|
+
interface IInvoiceIntegrationRequest {
|
|
1344
|
+
capabilityIntegration: IInvoiceCapabilityIntegration;
|
|
1345
|
+
loggedInUserId: bigint;
|
|
1346
|
+
}
|
|
1347
|
+
interface IAccountingAPIResponse {
|
|
1348
|
+
code: number;
|
|
1349
|
+
message: string;
|
|
1350
|
+
}
|
|
1351
|
+
interface IInvoiceResponse {
|
|
1352
|
+
invoice: IInvoice;
|
|
1353
|
+
}
|
|
1354
|
+
interface IInvoice {
|
|
1355
|
+
is_inclusive_tax?: boolean;
|
|
1356
|
+
invoice_id: string;
|
|
1357
|
+
invoice_number: string;
|
|
1358
|
+
date: Date;
|
|
1359
|
+
due_date: string;
|
|
1360
|
+
customer_id: string;
|
|
1361
|
+
customer_name?: string;
|
|
1362
|
+
salesperson_name?: string;
|
|
1363
|
+
email?: string;
|
|
1364
|
+
currency_id?: string;
|
|
1365
|
+
currency_code: string;
|
|
1366
|
+
currency_symbol?: string;
|
|
1367
|
+
currency_name_formatted?: string;
|
|
1368
|
+
status: string;
|
|
1369
|
+
credits_applied?: number;
|
|
1370
|
+
payment_terms?: number;
|
|
1371
|
+
payment_terms_label?: string;
|
|
1372
|
+
payment_reminder_enabled?: boolean;
|
|
1373
|
+
payment_made?: number;
|
|
1374
|
+
reference_number?: string;
|
|
1375
|
+
sub_total?: number;
|
|
1376
|
+
tax_total?: number;
|
|
1377
|
+
total?: number;
|
|
1378
|
+
balance?: number;
|
|
1379
|
+
invoice_url?: string;
|
|
1380
|
+
created_time?: Date;
|
|
1381
|
+
last_modified_time?: Date;
|
|
1382
|
+
discount_type?: string;
|
|
1383
|
+
discount?: number | string;
|
|
1384
|
+
place_of_supply?: string;
|
|
1385
|
+
recurring_invoice_id?: string;
|
|
1386
|
+
}
|
|
1387
|
+
interface ICreateRefundRequest {
|
|
1388
|
+
refund_mode: string;
|
|
1389
|
+
amount: number;
|
|
1390
|
+
date: string;
|
|
1391
|
+
reference_number?: string;
|
|
1392
|
+
description?: string;
|
|
1393
|
+
from_account_id: string;
|
|
1394
|
+
}
|
|
1395
|
+
interface IApplyCreditNoteForInvoicesRequest {
|
|
1396
|
+
invoices: Array<{
|
|
1397
|
+
invoice_id: string;
|
|
1398
|
+
amount_applied: number;
|
|
1399
|
+
}>;
|
|
1400
|
+
}
|
|
1401
|
+
interface ICreateCreditNoteForInvoiceRequest {
|
|
1402
|
+
customer_id: string;
|
|
1403
|
+
date: string;
|
|
1404
|
+
is_draft: boolean;
|
|
1405
|
+
reference_number?: string;
|
|
1406
|
+
notes?: string;
|
|
1407
|
+
is_inclusive_tax: boolean;
|
|
1408
|
+
salesperson_name?: string;
|
|
1409
|
+
place_of_supply?: string;
|
|
1410
|
+
}
|
|
1411
|
+
interface IAccountingListAPIPageContext {
|
|
1412
|
+
page: number;
|
|
1413
|
+
per_page: number;
|
|
1414
|
+
has_more_page: boolean;
|
|
1415
|
+
report_name: string;
|
|
1416
|
+
applied_filter: string;
|
|
1417
|
+
sort_column: string;
|
|
1418
|
+
sort_order: string;
|
|
1419
|
+
search_criteria: IAccountingListAPISearchCriteria[];
|
|
1420
|
+
}
|
|
1421
|
+
interface IAccountingListAPISearchCriteria {
|
|
1422
|
+
column_name: string;
|
|
1423
|
+
search_text: string;
|
|
1424
|
+
search_text_formatted: string;
|
|
1425
|
+
comparator: string;
|
|
1426
|
+
}
|
|
1427
|
+
interface IAccountingListAPIResponse {
|
|
1428
|
+
code: number;
|
|
1429
|
+
message: string;
|
|
1430
|
+
pageContext: IAccountingListAPIPageContext;
|
|
1431
|
+
}
|
|
1432
|
+
declare enum GET_CUSTOMER_CREDIT_NOTES_FILTER_BY {
|
|
1433
|
+
STATUS = "STATUS",
|
|
1434
|
+
REFERENCE_NUMBER = "REFERENCE_NUMBER"
|
|
1435
|
+
}
|
|
1436
|
+
declare enum GET_CUSTOMER_CREDIT_NOTES_SORT_BY {
|
|
1437
|
+
CREATED_TIME = "CREATED_TIME",
|
|
1438
|
+
CUSTOMER_NAME = "CUSTOMER_NAME",
|
|
1439
|
+
CREDITNOTE_NUMBER = "CREDITNOTE_NUMBER",
|
|
1440
|
+
BALANCE = "BALANCE",
|
|
1441
|
+
TOTAL = "TOTAL",
|
|
1442
|
+
DATE = "DATE"
|
|
1443
|
+
}
|
|
1444
|
+
interface IGetCustomerCreditNotesRequest {
|
|
1445
|
+
customerId: string;
|
|
1446
|
+
options?: {
|
|
1447
|
+
filters?: {
|
|
1448
|
+
by: GET_CUSTOMER_CREDIT_NOTES_FILTER_BY;
|
|
1449
|
+
values: string[];
|
|
1450
|
+
}[];
|
|
1451
|
+
page?: number;
|
|
1452
|
+
count?: number;
|
|
1453
|
+
search?: string;
|
|
1454
|
+
sort?: {
|
|
1455
|
+
by: GET_CUSTOMER_CREDIT_NOTES_SORT_BY;
|
|
1456
|
+
order: SORTING_ORDER_ENUM;
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
declare enum CREDIT_NOTE_STATUS {
|
|
1461
|
+
OPEN = "OPEN",
|
|
1462
|
+
CLOSED = "CLOSED",
|
|
1463
|
+
VOID = "VOID",
|
|
1464
|
+
DRAFT = "DRAFT"
|
|
1465
|
+
}
|
|
1466
|
+
interface ICustomerCreditNote {
|
|
1467
|
+
creditNoteId: string;
|
|
1468
|
+
date: string;
|
|
1469
|
+
charge: string;
|
|
1470
|
+
operator: string;
|
|
1471
|
+
totalAmount: number;
|
|
1472
|
+
availableCredit: number;
|
|
1473
|
+
status: CREDIT_NOTE_STATUS;
|
|
1474
|
+
createdAt: Date;
|
|
1475
|
+
updatedAt?: Date;
|
|
1476
|
+
}
|
|
1477
|
+
interface IGetCustomerCreditNotesResponse {
|
|
1478
|
+
creditNotes: ICustomerCreditNote[];
|
|
1479
|
+
hasMorePage: boolean;
|
|
1480
|
+
}
|
|
1481
|
+
interface IInvoicesResponse {
|
|
1482
|
+
invoices: IAccountingInvoice[];
|
|
1483
|
+
hasMorePage: boolean;
|
|
1484
|
+
}
|
|
1485
|
+
interface IAccountingInvoice {
|
|
1486
|
+
id: string;
|
|
1487
|
+
date: Date;
|
|
1488
|
+
chargeId: string;
|
|
1489
|
+
category: string;
|
|
1490
|
+
status: INVOICE_STATUS_ENUM;
|
|
1491
|
+
operator: string;
|
|
1492
|
+
totalAmount: number;
|
|
1493
|
+
amountDue: number;
|
|
1494
|
+
createdAt: Date;
|
|
1495
|
+
updatedAt?: Date;
|
|
1496
|
+
currency: ICurrency;
|
|
1497
|
+
}
|
|
1498
|
+
declare enum GET_INVOICES_SORT_BY_ENUM {
|
|
1499
|
+
CUSTOMER_NAME = "CUSTOMER_NAME",
|
|
1500
|
+
INVOICE_NUMBER = "INVOICE_NUMBER",
|
|
1501
|
+
DATE = "DATE",
|
|
1502
|
+
DUE_DATE = "DUE_DATE",
|
|
1503
|
+
TOTAL = "TOTAL",
|
|
1504
|
+
BALANCE = "BALANCE",
|
|
1505
|
+
CREATED_TIME = "CREATED_TIME"
|
|
1506
|
+
}
|
|
1507
|
+
declare enum GET_RECURRING_INVOICES_SORT_BY_ENUM {
|
|
1508
|
+
TOTAL = "TOTAL",
|
|
1509
|
+
CREATED_TIME = "CREATED_TIME"
|
|
1510
|
+
}
|
|
1511
|
+
declare enum GET_INVOICES_FILTER_BY_ENUM {
|
|
1512
|
+
STATUS = "STATUS",
|
|
1513
|
+
CATEGORY = "CATEGORY",
|
|
1514
|
+
ITEM = "ITEM",
|
|
1515
|
+
RESIDENT = "RESIDENT"
|
|
1516
|
+
}
|
|
1517
|
+
declare enum INVOICE_STATUS_ENUM {
|
|
1518
|
+
SENT = "SENT",
|
|
1519
|
+
DRAFT = "DRAFT",
|
|
1520
|
+
OVERDUE = "OVERDUE",
|
|
1521
|
+
PAID = "PAID",
|
|
1522
|
+
VOID = "VOID",
|
|
1523
|
+
UNPAID = "UNPAID",
|
|
1524
|
+
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
1525
|
+
VIEWED = "VIEWED",
|
|
1526
|
+
ACTIVE = "ACTIVE"
|
|
1527
|
+
}
|
|
1528
|
+
interface IGetInvoicesRequest {
|
|
1529
|
+
getInvoicesInput?: IGetInvoicesOptions;
|
|
1530
|
+
}
|
|
1531
|
+
interface IGetInvoicesOptions {
|
|
1532
|
+
count?: number;
|
|
1533
|
+
page?: number;
|
|
1534
|
+
search?: string;
|
|
1535
|
+
customerId: string;
|
|
1536
|
+
sorting?: {
|
|
1537
|
+
by: GET_INVOICES_SORT_BY_ENUM;
|
|
1538
|
+
order: SORTING_ORDER_ENUM;
|
|
1539
|
+
};
|
|
1540
|
+
filters?: {
|
|
1541
|
+
by: GET_INVOICES_FILTER_BY_ENUM;
|
|
1542
|
+
values: string[];
|
|
1543
|
+
}[];
|
|
1544
|
+
}
|
|
1545
|
+
interface IGetRecurringInvoicesOptions {
|
|
1546
|
+
count?: number;
|
|
1547
|
+
page?: number;
|
|
1548
|
+
search?: string;
|
|
1549
|
+
customerId: string;
|
|
1550
|
+
sorting?: {
|
|
1551
|
+
by: GET_RECURRING_INVOICES_SORT_BY_ENUM;
|
|
1552
|
+
order: SORTING_ORDER_ENUM;
|
|
1553
|
+
};
|
|
1554
|
+
filters?: {
|
|
1555
|
+
by: GET_INVOICES_FILTER_BY_ENUM;
|
|
1556
|
+
values: string[];
|
|
1557
|
+
}[];
|
|
1558
|
+
}
|
|
1559
|
+
interface IGetRecurringInvoicesRequest {
|
|
1560
|
+
getRecurringInvoicesInput?: IGetRecurringInvoicesOptions;
|
|
1561
|
+
}
|
|
1562
|
+
declare enum RECURRING_INVOICE_STATUS {
|
|
1563
|
+
ACTIVE = "ACTIVE",
|
|
1564
|
+
STOPPED = "STOPPED",
|
|
1565
|
+
EXPIRED = "EXPIRED"
|
|
1566
|
+
}
|
|
1567
|
+
interface IRecurringInvoices {
|
|
1568
|
+
date: string;
|
|
1569
|
+
items: string;
|
|
1570
|
+
itemDescription: string;
|
|
1571
|
+
description: string;
|
|
1572
|
+
operator: string;
|
|
1573
|
+
totalAmount: number;
|
|
1574
|
+
amountDue: number;
|
|
1575
|
+
status: RECURRING_INVOICE_STATUS;
|
|
1576
|
+
currencyCode: string;
|
|
1577
|
+
customerId: string;
|
|
1578
|
+
orderNumber: string;
|
|
1579
|
+
invoiceId: string;
|
|
1580
|
+
recurrenceFrequency: string;
|
|
1581
|
+
startDate: string | null;
|
|
1582
|
+
endDate: string | null;
|
|
1583
|
+
nextInvoiceDate: string | null;
|
|
1584
|
+
lastSentDate: string | null;
|
|
1585
|
+
repeatEvery: string;
|
|
1586
|
+
remark: string;
|
|
1587
|
+
createdAt: string;
|
|
1588
|
+
}
|
|
1589
|
+
interface IRecurringInvoicesResponse {
|
|
1590
|
+
recurringInvoices: IRecurringInvoices[];
|
|
1591
|
+
hasMorePage: boolean;
|
|
1592
|
+
}
|
|
1593
|
+
interface ICreateRecurringInvoiceLineItem {
|
|
1594
|
+
id?: string;
|
|
1595
|
+
label: string;
|
|
1596
|
+
remark?: string;
|
|
1597
|
+
amount: number;
|
|
1598
|
+
taxId: string;
|
|
1599
|
+
quantity: number;
|
|
1600
|
+
}
|
|
1601
|
+
interface ICreateRecurringInvoiceRequest {
|
|
1602
|
+
customerId: string;
|
|
1603
|
+
items: ICreateRecurringInvoiceLineItem[];
|
|
1604
|
+
recurrenceName?: string;
|
|
1605
|
+
recurrenceFrequency?: string;
|
|
1606
|
+
startDate?: string;
|
|
1607
|
+
endDate?: string;
|
|
1608
|
+
repeatEvery?: number;
|
|
1609
|
+
date?: string;
|
|
1610
|
+
isInclusiveTax?: boolean;
|
|
1611
|
+
allowPartialPayments?: boolean;
|
|
1612
|
+
autoNumberGenerationGroupId?: string;
|
|
1613
|
+
operator?: string;
|
|
1614
|
+
sendEmail?: boolean;
|
|
1615
|
+
contactPersonsAssociated?: Array<{
|
|
1616
|
+
contactPersonId: string;
|
|
1617
|
+
}>;
|
|
1618
|
+
customFields?: Array<{
|
|
1619
|
+
name: string;
|
|
1620
|
+
value: string;
|
|
1621
|
+
}>;
|
|
1622
|
+
}
|
|
1623
|
+
interface ICreateRecurringInvoiceResponse {
|
|
1624
|
+
recurringInvoiceId: string;
|
|
1625
|
+
}
|
|
1626
|
+
interface IUpdateRecurringInvoiceRequest extends ICreateRecurringInvoiceRequest {
|
|
1627
|
+
invoiceId: string;
|
|
1628
|
+
}
|
|
1629
|
+
interface IUpdateRecurringInvoiceResponse {
|
|
1630
|
+
status: boolean;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
interface ICalendarResource {
|
|
1634
|
+
id: string;
|
|
1635
|
+
displayName?: string;
|
|
1636
|
+
capacity?: number;
|
|
1637
|
+
building?: string;
|
|
1638
|
+
floorLabel?: string;
|
|
1639
|
+
metadata?: Record<string, unknown>;
|
|
1640
|
+
}
|
|
1641
|
+
interface IGetCalendarResourcesRequest {
|
|
1642
|
+
search?: string;
|
|
1643
|
+
}
|
|
1644
|
+
interface IGetCalendarResourcesResponse {
|
|
1645
|
+
resources: ICalendarResource[];
|
|
1646
|
+
}
|
|
1647
|
+
interface ICalendarResourceManagementContext {
|
|
1648
|
+
integration: ICapabilityIntegration;
|
|
1649
|
+
loggedInUserId: bigint;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
interface ICalendarDateTime {
|
|
1653
|
+
dateTime: string;
|
|
1654
|
+
timeZone: string;
|
|
1655
|
+
}
|
|
1656
|
+
interface ICalendarRecurrencePattern {
|
|
1657
|
+
type: string;
|
|
1658
|
+
interval: number;
|
|
1659
|
+
daysOfWeek?: string[];
|
|
1660
|
+
firstDayOfWeek?: string;
|
|
1661
|
+
dayOfMonth?: number;
|
|
1662
|
+
month?: number;
|
|
1663
|
+
}
|
|
1664
|
+
interface ICalendarRecurrenceRange {
|
|
1665
|
+
type: string;
|
|
1666
|
+
startDate: string;
|
|
1667
|
+
endDate?: string;
|
|
1668
|
+
numberOfOccurrences?: number;
|
|
1669
|
+
recurrenceTimeZone?: string;
|
|
1670
|
+
}
|
|
1671
|
+
interface ICalendarRecurrence {
|
|
1672
|
+
pattern: ICalendarRecurrencePattern;
|
|
1673
|
+
range: ICalendarRecurrenceRange;
|
|
1674
|
+
}
|
|
1675
|
+
interface ICalendarEventSyncMetadata {
|
|
1676
|
+
createdBy?: 'DVSS' | 'PROVIDER';
|
|
1677
|
+
syncVersion?: number;
|
|
1678
|
+
lastSyncTimestamp?: string;
|
|
1679
|
+
externalEventId?: string;
|
|
1680
|
+
}
|
|
1681
|
+
interface ICalendarAttendee {
|
|
1682
|
+
email: string;
|
|
1683
|
+
name?: string;
|
|
1684
|
+
type?: string;
|
|
1685
|
+
}
|
|
1686
|
+
interface ICalendarEvent {
|
|
1687
|
+
id?: string;
|
|
1688
|
+
subject: string;
|
|
1689
|
+
body?: string;
|
|
1690
|
+
start: ICalendarDateTime;
|
|
1691
|
+
end: ICalendarDateTime;
|
|
1692
|
+
location?: string;
|
|
1693
|
+
resourceEmail?: string;
|
|
1694
|
+
recurrence?: ICalendarRecurrence;
|
|
1695
|
+
attendees?: ICalendarAttendee[];
|
|
1696
|
+
organizerEmail?: string;
|
|
1697
|
+
showAs?: string;
|
|
1698
|
+
isCancelled?: boolean;
|
|
1699
|
+
syncMetadata?: ICalendarEventSyncMetadata;
|
|
1700
|
+
providerPayload?: Record<string, unknown>;
|
|
1701
|
+
}
|
|
1702
|
+
interface ICreateCalendarEventRequest {
|
|
1703
|
+
event: ICalendarEvent;
|
|
1704
|
+
resourceEmail: string;
|
|
1705
|
+
}
|
|
1706
|
+
interface IUpdateCalendarEventRequest {
|
|
1707
|
+
eventId: string;
|
|
1708
|
+
resourceEmail: string;
|
|
1709
|
+
event: Partial<ICalendarEvent>;
|
|
1710
|
+
}
|
|
1711
|
+
interface ICancelCalendarEventRequest {
|
|
1712
|
+
eventId: string;
|
|
1713
|
+
resourceEmail: string;
|
|
1714
|
+
}
|
|
1715
|
+
interface IDeleteCalendarEventRequest {
|
|
1716
|
+
eventId: string;
|
|
1717
|
+
resourceEmail: string;
|
|
1718
|
+
}
|
|
1719
|
+
interface IGetCalendarEventRequest {
|
|
1720
|
+
eventId: string;
|
|
1721
|
+
resourceEmail: string;
|
|
1722
|
+
}
|
|
1723
|
+
interface IGetCalendarEventsRequest {
|
|
1724
|
+
resourceEmail: string;
|
|
1725
|
+
start?: ICalendarDateTime;
|
|
1726
|
+
end?: ICalendarDateTime;
|
|
1727
|
+
syncToken?: string;
|
|
1728
|
+
}
|
|
1729
|
+
interface IGetCalendarEventsResponse {
|
|
1730
|
+
events: ICalendarEvent[];
|
|
1731
|
+
nextSyncToken?: string;
|
|
1732
|
+
}
|
|
1733
|
+
interface ISyncCalendarEventsRequest {
|
|
1734
|
+
resourceEmail: string;
|
|
1735
|
+
syncToken?: string;
|
|
1736
|
+
}
|
|
1737
|
+
interface ISyncCalendarEventsResponse {
|
|
1738
|
+
events: ICalendarEvent[];
|
|
1739
|
+
nextSyncToken?: string;
|
|
1740
|
+
}
|
|
1741
|
+
interface IGetRoomAvailabilityRequest {
|
|
1742
|
+
resourceEmails: string[];
|
|
1743
|
+
start: ICalendarDateTime;
|
|
1744
|
+
end: ICalendarDateTime;
|
|
1745
|
+
}
|
|
1746
|
+
interface IRoomAvailabilitySlot {
|
|
1747
|
+
resourceEmail: string;
|
|
1748
|
+
start: ICalendarDateTime;
|
|
1749
|
+
end: ICalendarDateTime;
|
|
1750
|
+
status: 'free' | 'busy' | 'tentative' | 'oof' | 'unknown';
|
|
1751
|
+
}
|
|
1752
|
+
interface IGetRoomAvailabilityResponse {
|
|
1753
|
+
slots: IRoomAvailabilitySlot[];
|
|
1754
|
+
}
|
|
1755
|
+
interface ICalendarBookingManagementContext {
|
|
1756
|
+
integration: ICapabilityIntegration;
|
|
1757
|
+
loggedInUserId: bigint;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
interface ICalendarWebhookSubscription {
|
|
1761
|
+
id?: string;
|
|
1762
|
+
resource: string;
|
|
1763
|
+
changeTypes: string[];
|
|
1764
|
+
notificationUrl: string;
|
|
1765
|
+
expirationDateTime: string;
|
|
1766
|
+
clientState?: string;
|
|
1767
|
+
metadata?: Record<string, unknown>;
|
|
1768
|
+
}
|
|
1769
|
+
interface IRegisterCalendarWebhookRequest {
|
|
1770
|
+
resource: string;
|
|
1771
|
+
changeTypes: string[];
|
|
1772
|
+
notificationUrl: string;
|
|
1773
|
+
expirationDateTime: string;
|
|
1774
|
+
clientState?: string;
|
|
1775
|
+
}
|
|
1776
|
+
interface IRegisterCalendarWebhookResponse {
|
|
1777
|
+
subscription: ICalendarWebhookSubscription;
|
|
1778
|
+
}
|
|
1779
|
+
interface IRefreshCalendarWebhookRequest {
|
|
1780
|
+
subscriptionId: string;
|
|
1781
|
+
expirationDateTime: string;
|
|
1782
|
+
}
|
|
1783
|
+
interface IRefreshCalendarWebhookResponse {
|
|
1784
|
+
subscription: ICalendarWebhookSubscription;
|
|
1785
|
+
}
|
|
1786
|
+
interface IDeleteCalendarWebhookRequest {
|
|
1787
|
+
subscriptionId: string;
|
|
1788
|
+
}
|
|
1789
|
+
interface ICalendarWebhookManagementContext {
|
|
1790
|
+
integration: ICapabilityIntegration;
|
|
1791
|
+
loggedInUserId: bigint;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
interface IIntegrationConfigFieldMetadata {
|
|
1795
|
+
sensitive: boolean;
|
|
1796
|
+
maskStrategy?: MASK_STRATEGY_ENUM | string;
|
|
1797
|
+
}
|
|
1798
|
+
type IIntegrationConfigFieldMetadataMap = Record<string, IIntegrationConfigFieldMetadata>;
|
|
1799
|
+
interface IIntegrationConfigStructureMetadata {
|
|
1800
|
+
[sectionKey: string]: IIntegrationConfigFieldMetadataMap | IIntegrationConfigStructureMetadata;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
interface ISensitiveStoredField {
|
|
1804
|
+
encrypted: string;
|
|
1805
|
+
masked: string;
|
|
1806
|
+
isSensitive: true;
|
|
1807
|
+
}
|
|
1808
|
+
interface INonSensitiveStoredField {
|
|
1809
|
+
value: unknown;
|
|
1810
|
+
isSensitive: false;
|
|
1811
|
+
}
|
|
1812
|
+
type IStoredConfigField = ISensitiveStoredField | INonSensitiveStoredField;
|
|
1813
|
+
type IIntegrationConfigJson = Record<string, unknown>;
|
|
1814
|
+
|
|
1815
|
+
declare class IntegrationConfigSecureStorageService {
|
|
1816
|
+
private readonly secretProvider;
|
|
1817
|
+
private readonly logger;
|
|
1818
|
+
private readonly fileName;
|
|
1819
|
+
constructor(secretProvider: SecretProvider, logger: LoggerService);
|
|
1820
|
+
prepareForWrite(rawConfig: IIntegrationConfigJson, fieldMetadata: IIntegrationConfigStructureMetadata, keyId: string, loggedInUserId?: bigint): Promise<IIntegrationConfigJson>;
|
|
1821
|
+
prepareForRead(storedConfig: IIntegrationConfigJson): IIntegrationConfigJson;
|
|
1822
|
+
prepareForBackend(storedConfig: IIntegrationConfigJson, keyId: string, loggedInUserId?: bigint): Promise<IIntegrationConfigJson>;
|
|
1823
|
+
isMaskedUnchanged(incomingValue: string | undefined | null, storedMasked: string | undefined | null): boolean;
|
|
1824
|
+
prepareForUpdate(incomingConfig: IIntegrationConfigJson, existingStoredConfig: IIntegrationConfigJson, fieldMetadata: IIntegrationConfigStructureMetadata, keyId: string, loggedInUserId?: bigint): Promise<IIntegrationConfigJson>;
|
|
1825
|
+
private transformSectionForWrite;
|
|
1826
|
+
private writeFields;
|
|
1827
|
+
private transformSectionForRead;
|
|
1828
|
+
private transformSectionForBackend;
|
|
1829
|
+
private transformSectionForUpdate;
|
|
1830
|
+
private updateFields;
|
|
1831
|
+
private looksLikeFieldMap;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
interface IApiCallRequest<TBody = unknown> {
|
|
1835
|
+
apiMethod: HTTP_METHOD;
|
|
1836
|
+
url: string;
|
|
1837
|
+
baseUrl: string;
|
|
1838
|
+
headers?: Record<string, string>;
|
|
1839
|
+
body?: TBody;
|
|
1840
|
+
responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
|
|
1841
|
+
headerType?: 'json' | 'xml';
|
|
1842
|
+
}
|
|
1843
|
+
interface IIntegrationRequestContext {
|
|
1844
|
+
projectId?: bigint;
|
|
1845
|
+
propertyId?: bigint;
|
|
1846
|
+
capabilityId?: bigint;
|
|
1847
|
+
[key: string]: unknown;
|
|
1848
|
+
}
|
|
1849
|
+
declare class TrafficGatewayService {
|
|
1850
|
+
private readonly httpService;
|
|
1851
|
+
private readonly requestLogger;
|
|
1852
|
+
private readonly rateLimiter;
|
|
1853
|
+
constructor(httpService: HttpService, requestLogger: IntegrationRequestLoggerService, rateLimiter: RateLimiterService);
|
|
1854
|
+
executeIntegrationRequest<TResponse = unknown, TRequestBody = unknown>(request: IApiCallRequest<TRequestBody>, integration: IValidatedCapabilityIntegration, loggedInUserId?: bigint, _context?: IIntegrationRequestContext): Promise<TResponse>;
|
|
1855
|
+
private prepareHeaders;
|
|
1856
|
+
private prepareRequestConfig;
|
|
1857
|
+
private constructFullUrl;
|
|
1858
|
+
private executeHttpRequest;
|
|
1859
|
+
private extractErrorDetails;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
declare abstract class BaseAuth {
|
|
1863
|
+
abstract validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
1864
|
+
abstract testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
1865
|
+
abstract fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
declare abstract class BaseWellnessManagement {
|
|
1869
|
+
abstract fetchAppointments(request: IGetAppointmentsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IBookableItem>>;
|
|
1870
|
+
abstract fetchSessions(request: IGetSessionsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IBookableItem>>;
|
|
1871
|
+
abstract fetchCourses(request: IGetCoursesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IBookableItem>>;
|
|
1872
|
+
abstract fetchCategories(request: IGetCategoriesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IBookableItemCategory>>;
|
|
1873
|
+
abstract fetchBookableItemsFromCredit(request: IGetBookableItemsFromCreditRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IBookableItem>>;
|
|
1874
|
+
abstract fetchSessionAvailabilityForOffering(request: IFetchOfferingAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetAvailableDatesAndTimeSlotsResponse>;
|
|
1875
|
+
abstract fetchAppointmentAvailabilityForOffering(request: IFetchOfferingAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetAvailableDatesAndTimeSlotsResponse>;
|
|
1876
|
+
abstract fetchPractitioners(request: IGetPractitionersRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<IOfferingResource>>;
|
|
1877
|
+
abstract createOrder(request: ICreateOrderRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICreateOrderResponse>;
|
|
1878
|
+
abstract getOrder(orderId: string, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetOrderResponse>;
|
|
1879
|
+
abstract cancelOrder(orderId: string, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
1880
|
+
abstract updateOrder(request: IUpdateOrderRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IUpdateOrderResponse>;
|
|
1881
|
+
abstract fetchWellnessAppointmentSession(): Promise<void>;
|
|
1882
|
+
abstract checkWellnessAppointmentSessionAvailability(): Promise<void>;
|
|
1883
|
+
abstract createWellnessAppointmentSessionOrder(): Promise<void>;
|
|
1884
|
+
abstract addWellnessAppointmentSessionOrderItems(): Promise<void>;
|
|
1885
|
+
abstract confirmWellnessAppointmentSessionOrder(): Promise<void>;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
declare abstract class BaseCreditBooking {
|
|
1889
|
+
abstract fetchCustomerCredits(request: IGetCustomerCreditsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISystemResponse<ICredit>>;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
declare abstract class BaseCustomerManagement {
|
|
1893
|
+
abstract createCustomer(request: IAddCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomer>;
|
|
1894
|
+
abstract searchCustomer(request: IGetCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomer | undefined>;
|
|
1895
|
+
abstract updateCustomer(customerId: string, request: IUpdateCustomerRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomer>;
|
|
1896
|
+
abstract deleteCustomer(customerId: string, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IDeleteAPIResponse>;
|
|
1897
|
+
abstract init(configuration: IConfiguration, credentials?: IAdminCredentials): Promise<void>;
|
|
1898
|
+
abstract fetchPage(url: string, loggedInUserId: bigint, items: ICustomer[]): Promise<ICustomer[]>;
|
|
1899
|
+
abstract listCustomers(request: IListUsersInput, loggedInUserId: bigint): Promise<IListUsersResponse<ICustomer>>;
|
|
1900
|
+
abstract getCustomer(request: ICustomer, userId: string, loggedInUserId: bigint): Promise<ICustomer>;
|
|
1901
|
+
abstract getCustomerByEmail(request: IGetCustomerRequest, loggedInUserId: bigint): Promise<ICustomerAddionalDetails>;
|
|
1902
|
+
abstract addCustomerToAccessGroup(request: IAddUpdateAccessGroupRequest, userId: string, loggedInUserId: bigint): Promise<IUserAccessGroup>;
|
|
1903
|
+
abstract removeCustomerFromAccessGroup(request: IAddUpdateAccessGroupRequest, userId: string, loggedInUserId: bigint): Promise<IUserAccessGroup>;
|
|
1904
|
+
abstract resendInviteToCustomer(request: ICustomer, loggedInUserId: bigint): Promise<boolean>;
|
|
1905
|
+
abstract addCustomerToExistingSite(request: ICustomer, loggedInUserId: bigint): Promise<ICustomer>;
|
|
1906
|
+
abstract getCustomerAccessGroups(request: IGetCustomerAccessGroupsInput, loggedInUserId: bigint): Promise<IGetCustomerAccessGroupsResponse>;
|
|
1907
|
+
abstract activateCustomer(customerId: string, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomerStatusResponse>;
|
|
1908
|
+
abstract deactivateCustomer(customerId: string, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomerStatusResponse>;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
declare abstract class BasePackageManagement {
|
|
1912
|
+
abstract fetchCourseTypes(): Promise<void>;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
declare abstract class BaseAccountingContactPersonManagement {
|
|
1916
|
+
abstract createContactPerson(request: IAddCustomerContactPersonRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomerContactPersonResponse>;
|
|
1917
|
+
abstract updateContactPerson(request: IUpdateCustomerContactPersonRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<ICustomerContactPersonResponse>;
|
|
1918
|
+
abstract deleteContactPerson(request: IDeleteCustomerContactPersonRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IAPIResponse>;
|
|
1919
|
+
abstract markContactPersonPrimary(request: IMarkCustomerContactPersonPrimaryRequest, integration: IValidatedCapabilityIntegration, loggedInUserId: bigint): Promise<IAPIResponse>;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
declare abstract class BaseAccountingCreditNoteManagement {
|
|
1923
|
+
abstract applyCreditNoteForInvoices(creditNoteId: string, rebateRequest: IApplyCreditNoteForInvoicesRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1924
|
+
abstract createCreditNoteRefund(creditNoteId: string, refundRequest: ICreateRefundRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1925
|
+
abstract createCreditNoteForInvoice(request: ICreateCreditNoteForInvoiceRequest, externalInvoiceId: string, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1926
|
+
abstract getCustomerCreditNotes(request: IGetCustomerCreditNotesRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCustomerCreditNotesResponse>;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
declare abstract class BaseAccountingCustomerPaymentManagement {
|
|
1930
|
+
abstract createCustomerPayment(request: ICreateCustomerPaymentRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCreateCustomerPayment>;
|
|
1931
|
+
abstract updateCustomerPayment(request: IUpdateCustomerPaymentRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCreateCustomerPayment>;
|
|
1932
|
+
abstract getCustomerPayments(request: IGetCustomerPaymentsRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCustomerPayments>;
|
|
1933
|
+
abstract getCustomerPayment(request: IGetCustomerPaymentRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCustomerPayment>;
|
|
1934
|
+
abstract downloadCustomerPayment(request: IGetCustomerPaymentRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ArrayBuffer>;
|
|
1935
|
+
abstract refundCustomerPayment(request: IRefundCustomerPayment, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRefundCustomerPayment>;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
declare abstract class BaseAccountingInvoiceManagement {
|
|
1939
|
+
abstract createInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1940
|
+
abstract createRecurringInvoice(request: ICreateRecurringInvoiceRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICreateRecurringInvoiceResponse>;
|
|
1941
|
+
abstract updateInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IInvoiceResponse>;
|
|
1942
|
+
abstract deleteInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1943
|
+
abstract downloadInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<ArrayBuffer>;
|
|
1944
|
+
abstract getInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IInvoiceResponse>;
|
|
1945
|
+
abstract markInvoiceAsPaid(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1946
|
+
abstract updateInvoiceStatus(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1947
|
+
abstract getInvoices(request: IGetInvoicesRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IInvoicesResponse>;
|
|
1948
|
+
abstract getRecurringInvoices(request: IGetRecurringInvoicesRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRecurringInvoicesResponse>;
|
|
1949
|
+
abstract updateRecurringInvoice(request: IUpdateRecurringInvoiceRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IUpdateRecurringInvoiceResponse>;
|
|
1950
|
+
abstract markInvoiceAsSent(invoiceId: string, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
declare abstract class BaseAccountingLOAManagement {
|
|
1954
|
+
abstract listAccountingChartOfAccounts(): Promise<void>;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
declare abstract class BaseAccountingTaxManagement {
|
|
1958
|
+
abstract listAccountingTaxes(): Promise<void>;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
declare abstract class BasePayment {
|
|
1962
|
+
abstract createPaymentSetupIntent(): Promise<void>;
|
|
1963
|
+
abstract confirmPaymentSetupIntent(): Promise<void>;
|
|
1964
|
+
abstract cancelPaymentSetupIntent(): Promise<void>;
|
|
1965
|
+
abstract createPaymentEphemeralKey(): Promise<void>;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
declare abstract class BasePaymentMethodManagement {
|
|
1969
|
+
abstract createPaymentMethod(): Promise<void>;
|
|
1970
|
+
abstract attachPaymentMethodToCustomer(): Promise<void>;
|
|
1971
|
+
abstract listPaymentMethodForCustomer(): Promise<void>;
|
|
1972
|
+
abstract detachPaymentMethodFromCustomer(): Promise<void>;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
declare abstract class BasePaymentUserManagement {
|
|
1976
|
+
abstract listPaymentCustomers(): Promise<void>;
|
|
1977
|
+
abstract createPaymentCustomer(): Promise<void>;
|
|
1978
|
+
abstract updatePaymentCustomer(): Promise<void>;
|
|
1979
|
+
abstract deletePaymentCustomer(): Promise<void>;
|
|
1980
|
+
abstract searchPaymentCustomers(): Promise<void>;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
declare abstract class BaseMembershipCustomerManagement {
|
|
1984
|
+
abstract getMembershipAllCustomers(): Promise<void>;
|
|
1985
|
+
abstract getMembershipCustomer(): Promise<void>;
|
|
1986
|
+
abstract createMembershipCustomer(): Promise<void>;
|
|
1987
|
+
abstract updateMembershipCustomer(): Promise<void>;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
declare abstract class BaseMembershipManagement {
|
|
1991
|
+
abstract getMembershipTypes(): Promise<void>;
|
|
1992
|
+
abstract getMembership(): Promise<void>;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
interface ISecureStorageWriteOptions {
|
|
1996
|
+
useSecureStorage?: boolean;
|
|
1997
|
+
kmsKeyId?: string;
|
|
1998
|
+
}
|
|
1999
|
+
declare class BaseIntegrationConfiguration {
|
|
2000
|
+
protected readonly integrationConfigurationDao: IntegrationConfigurationDao;
|
|
2001
|
+
protected readonly commonValidationDatabaseService: CommonValidationDatabaseService;
|
|
2002
|
+
protected readonly logger: LoggerService;
|
|
2003
|
+
protected readonly secureStorage?: IntegrationConfigSecureStorageService | undefined;
|
|
2004
|
+
protected readonly secretProvider?: SecretProvider | undefined;
|
|
2005
|
+
protected readonly fileName: string;
|
|
2006
|
+
constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService, logger: LoggerService, secureStorage?: IntegrationConfigSecureStorageService | undefined, secretProvider?: SecretProvider | undefined);
|
|
2007
|
+
private validateAddCapabilityIntegrationInput;
|
|
2008
|
+
addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext, options?: ISecureStorageWriteOptions): Promise<AddAPIResponse>;
|
|
2009
|
+
updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration?: ICapabilityIntegration, loggedInUserId?: bigint, options?: ISecureStorageWriteOptions): Promise<IUpdateCapabilityIntegrationResponse>;
|
|
2010
|
+
protected validateIconAndNickName(updateData: IUpdateCapabilityIntegrationRequest['updateData'], loggedInUserId: bigint): void;
|
|
2011
|
+
getCapabilityIntegrations(request: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
|
|
2012
|
+
getCapabilityIntegration(input: IGetCapabilityIntegrationInput, context: GraphQLContext): Promise<IGetCapabilityIntegrationResult>;
|
|
2013
|
+
protected applySecureStorageForWrite(config: Record<string, unknown> | undefined, configStructure: unknown, options: ISecureStorageWriteOptions, loggedInUserId: bigint): Promise<Record<string, unknown> | undefined>;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
declare abstract class BaseIntegrationResourceManagement {
|
|
2017
|
+
protected readonly integrationResourceManagementDao: IntegrationResourceManagementDao;
|
|
2018
|
+
protected readonly logger: LoggerService;
|
|
2019
|
+
private readonly fileName;
|
|
2020
|
+
constructor(integrationResourceManagementDao: IntegrationResourceManagementDao, logger: LoggerService);
|
|
2021
|
+
addResourceToIntegration(input: IAddResourceToIntegrationInput, context: GraphQLContext): Promise<IAddResourceToIntegrationResponse>;
|
|
2022
|
+
removeResourceFromIntegration(request: IRemoveResourceFromIntegrationRequest, context: GraphQLContext): Promise<IRemoveResourceFromIntegrationResponse>;
|
|
2023
|
+
updateOfferingIntegrationResourceConfiguration(input: IUpdateOfferingIntegrationResourceConfigurationInput, context: GraphQLContext): Promise<IUpdateOfferingIntegrationResourceConfigurationResponse>;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
declare abstract class BaseDeviceManagement {
|
|
2027
|
+
abstract init(configuration: IConfiguration, credentials?: IAdminCredentials): Promise<void>;
|
|
2028
|
+
abstract registerAcsDevice(request: IRegisterDeviceInput, loggedInUserId: bigint): Promise<IRegisterDeviceResponse>;
|
|
2029
|
+
abstract deregisterAcsDevice(request: IDeleteDeviceInput, loggedInUserId: bigint): Promise<IDeleteDeviceResponse>;
|
|
2030
|
+
abstract getDevices(request: IGetDevicesInput, loggedInUserId: bigint): Promise<IGetDevicesResponse>;
|
|
2031
|
+
abstract updateDeviceCertificate(request: IUpdateDeviceCertificateInput, loggedInUserId: bigint): Promise<IUpdateDeviceCertificateResponse>;
|
|
2032
|
+
abstract getDeviceKey(request: IGetDeviceKeyInput, loggedInUserId: bigint): Promise<IGetDeviceKeyResponse>;
|
|
2033
|
+
abstract getDevice(request: IGetDeviceKeyInput, loggedInUserId: bigint): Promise<IRegisterDeviceResponse>;
|
|
2034
|
+
abstract getSiteUserDeviceKeys(request: {
|
|
2035
|
+
userId: string;
|
|
2036
|
+
}, loggedInUserId: bigint): Promise<Array<{
|
|
2037
|
+
id: string;
|
|
2038
|
+
key_uid: string;
|
|
2039
|
+
}>>;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
declare abstract class BaseAccessManagement {
|
|
2043
|
+
abstract init(configuration: IConfiguration, credentials?: IAdminCredentials): Promise<void>;
|
|
2044
|
+
abstract getAccessProfiles(request?: IGetDevicesInput, loggedInUserId?: bigint): Promise<IGetAccessProfilesResponse>;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
declare abstract class BaseAccountingMiscellaneousManagement {
|
|
2048
|
+
abstract getAccounts(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccounts[]>;
|
|
2049
|
+
abstract getTaxes(integration: ICapabilityIntegration, loggedInUserId: bigint, page?: number, limit?: number): Promise<IAvailableTaxes[]>;
|
|
2050
|
+
abstract getTransactionNumberSeries(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ITransactionNumberSeries[]>;
|
|
2051
|
+
abstract downloadCustomerAccountingStatement(request: IDownloadCustomerAccountingStatementRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ArrayBuffer>;
|
|
2052
|
+
abstract listItems(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
|
|
2053
|
+
abstract getCustomerActivities(input: GetCustomerActivitiesInput, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCustomerActivities>;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
declare abstract class BaseCalendarResourceManagement {
|
|
2057
|
+
abstract getResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
declare abstract class BaseCalendarBookingManagement {
|
|
2061
|
+
abstract createEvent(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2062
|
+
abstract updateEvent(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2063
|
+
abstract cancelEvent(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2064
|
+
abstract deleteEvent(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2065
|
+
abstract getEvent(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2066
|
+
abstract getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2067
|
+
abstract syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2068
|
+
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
declare abstract class BaseCalendarWebhookManagement {
|
|
2072
|
+
abstract registerWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
|
|
2073
|
+
abstract refreshSubscription(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
|
|
2074
|
+
abstract deleteSubscription(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
declare class AppModule {
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
interface IMicrosoftPlatformConfig {
|
|
2081
|
+
authUrl: string;
|
|
2082
|
+
baseUrl: string;
|
|
2083
|
+
}
|
|
2084
|
+
interface IMicrosoftIntegrationConfig {
|
|
2085
|
+
tenantId: string;
|
|
2086
|
+
clientId: string;
|
|
2087
|
+
clientSecret: string;
|
|
2088
|
+
}
|
|
2089
|
+
interface IMicrosoftAccessDetails {
|
|
2090
|
+
accessToken?: string;
|
|
2091
|
+
expiryAt?: string;
|
|
2092
|
+
tokenType?: string;
|
|
2093
|
+
}
|
|
2094
|
+
interface IMicrosoftConfig {
|
|
2095
|
+
platformConfig: IMicrosoftPlatformConfig;
|
|
2096
|
+
integrationConfig: IMicrosoftIntegrationConfig;
|
|
2097
|
+
accessDetails?: IMicrosoftAccessDetails;
|
|
2098
|
+
}
|
|
2099
|
+
interface IMicrosoftTokenResponse {
|
|
2100
|
+
access_token: string;
|
|
2101
|
+
token_type?: string;
|
|
2102
|
+
expires_in?: number;
|
|
2103
|
+
}
|
|
2104
|
+
interface IMicrosoftAccessToken {
|
|
2105
|
+
accessToken: string;
|
|
2106
|
+
tokenType: string;
|
|
2107
|
+
expiresIn: number;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
interface IMicrosoftGraphRoom {
|
|
2111
|
+
id?: string;
|
|
2112
|
+
emailAddress?: string;
|
|
2113
|
+
displayName?: string;
|
|
2114
|
+
capacity?: number;
|
|
2115
|
+
building?: string;
|
|
2116
|
+
floorLabel?: string;
|
|
2117
|
+
}
|
|
2118
|
+
interface IMicrosoftGraphRoomsResponse {
|
|
2119
|
+
value?: IMicrosoftGraphRoom[];
|
|
2120
|
+
}
|
|
2121
|
+
interface IMicrosoftGraphDateTimeTimeZone {
|
|
2122
|
+
dateTime: string;
|
|
2123
|
+
timeZone: string;
|
|
2124
|
+
}
|
|
2125
|
+
interface IMicrosoftGraphRecurrencePattern {
|
|
2126
|
+
type?: string;
|
|
2127
|
+
interval?: number;
|
|
2128
|
+
daysOfWeek?: string[];
|
|
2129
|
+
firstDayOfWeek?: string;
|
|
2130
|
+
dayOfMonth?: number;
|
|
2131
|
+
month?: number;
|
|
2132
|
+
}
|
|
2133
|
+
interface IMicrosoftGraphRecurrenceRange {
|
|
2134
|
+
type?: string;
|
|
2135
|
+
startDate?: string;
|
|
2136
|
+
endDate?: string;
|
|
2137
|
+
numberOfOccurrences?: number;
|
|
2138
|
+
recurrenceTimeZone?: string;
|
|
2139
|
+
}
|
|
2140
|
+
interface IMicrosoftGraphRecurrence {
|
|
2141
|
+
pattern?: IMicrosoftGraphRecurrencePattern;
|
|
2142
|
+
range?: IMicrosoftGraphRecurrenceRange;
|
|
2143
|
+
}
|
|
2144
|
+
interface IMicrosoftGraphAttendee {
|
|
2145
|
+
emailAddress?: {
|
|
2146
|
+
address?: string;
|
|
2147
|
+
name?: string;
|
|
2148
|
+
};
|
|
2149
|
+
type?: string;
|
|
2150
|
+
}
|
|
2151
|
+
interface IMicrosoftGraphEvent {
|
|
2152
|
+
id?: string;
|
|
2153
|
+
subject?: string;
|
|
2154
|
+
body?: {
|
|
2155
|
+
contentType?: string;
|
|
2156
|
+
content?: string;
|
|
2157
|
+
};
|
|
2158
|
+
start?: IMicrosoftGraphDateTimeTimeZone;
|
|
2159
|
+
end?: IMicrosoftGraphDateTimeTimeZone;
|
|
2160
|
+
location?: {
|
|
2161
|
+
displayName?: string;
|
|
2162
|
+
};
|
|
2163
|
+
showAs?: string;
|
|
2164
|
+
isCancelled?: boolean;
|
|
2165
|
+
recurrence?: IMicrosoftGraphRecurrence;
|
|
2166
|
+
attendees?: IMicrosoftGraphAttendee[];
|
|
2167
|
+
organizer?: {
|
|
2168
|
+
emailAddress?: {
|
|
2169
|
+
address?: string;
|
|
2170
|
+
name?: string;
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
interface IMicrosoftGraphEventsResponse {
|
|
2175
|
+
value?: IMicrosoftGraphEvent[];
|
|
2176
|
+
}
|
|
2177
|
+
interface IMicrosoftGraphErrorBody {
|
|
2178
|
+
error?: {
|
|
2179
|
+
code?: string;
|
|
2180
|
+
message?: string;
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
interface IMicrosoftGraphSubscription {
|
|
2184
|
+
id?: string;
|
|
2185
|
+
resource?: string;
|
|
2186
|
+
changeType?: string;
|
|
2187
|
+
notificationUrl?: string;
|
|
2188
|
+
expirationDateTime?: string;
|
|
2189
|
+
clientState?: string;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
declare class MicrosoftAuthService implements BaseAuth {
|
|
2193
|
+
private readonly logger;
|
|
2194
|
+
private readonly trafficGatewayService;
|
|
2195
|
+
private readonly integrationConfigurationDao;
|
|
2196
|
+
private readonly secureStorage?;
|
|
2197
|
+
private readonly fileName;
|
|
2198
|
+
constructor(logger: LoggerService, trafficGatewayService: TrafficGatewayService, integrationConfigurationDao: IntegrationConfigurationDao, secureStorage?: IntegrationConfigSecureStorageService | undefined);
|
|
2199
|
+
validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
2200
|
+
parseAndValidateConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): IMicrosoftConfig;
|
|
2201
|
+
resolvePlaintextConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): Promise<IMicrosoftConfig>;
|
|
2202
|
+
getAccessToken(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint, forceRefresh?: boolean): Promise<IMicrosoftAccessToken>;
|
|
2203
|
+
fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
2204
|
+
testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
2205
|
+
private getCachedToken;
|
|
2206
|
+
private requestAccessToken;
|
|
2207
|
+
private persistAccessDetails;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
interface IMicrosoftApiCallRequest<TBody = unknown> {
|
|
2211
|
+
apiMethod: HTTP_METHOD;
|
|
2212
|
+
url: string;
|
|
2213
|
+
body?: TBody;
|
|
2214
|
+
headers?: Record<string, string>;
|
|
2215
|
+
responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
|
|
2216
|
+
}
|
|
2217
|
+
declare class MicrosoftApiClientService {
|
|
2218
|
+
private readonly logger;
|
|
2219
|
+
private readonly authService;
|
|
2220
|
+
private readonly trafficGatewayService;
|
|
2221
|
+
private readonly fileName;
|
|
2222
|
+
private readonly maxAuthRetryCount;
|
|
2223
|
+
constructor(logger: LoggerService, authService: MicrosoftAuthService, trafficGatewayService: TrafficGatewayService);
|
|
2224
|
+
apiCall<TResponse = unknown, TBody = unknown>(request: IMicrosoftApiCallRequest<TBody>, integration: ICapabilityIntegration, loggedInUserId?: bigint): Promise<TResponse>;
|
|
2225
|
+
private executeWithRetry;
|
|
2226
|
+
private isUnauthorizedError;
|
|
2227
|
+
private clearCachedAccessDetails;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
declare class MicrosoftIntegrationConfigurationService extends BaseIntegrationConfiguration {
|
|
2231
|
+
private readonly microsoftAuthService;
|
|
2232
|
+
constructor(integrationConfigurationDao: IntegrationConfigurationDao, commonValidationDatabaseService: CommonValidationDatabaseService, logger: LoggerService, microsoftAuthService: MicrosoftAuthService, secureStorage?: IntegrationConfigSecureStorageService, secretProvider?: SecretProvider);
|
|
2233
|
+
addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext): Promise<AddAPIResponse>;
|
|
2234
|
+
updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration?: ICapabilityIntegration, loggedInUserId?: bigint): Promise<IUpdateCapabilityIntegrationResponse>;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
declare class MicrosoftCalendarResourceService extends BaseCalendarResourceManagement {
|
|
2238
|
+
private readonly logger;
|
|
2239
|
+
private readonly microsoftApiClient;
|
|
2240
|
+
private readonly fileName;
|
|
2241
|
+
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2242
|
+
getResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
|
|
2243
|
+
private mapRoom;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
declare class MicrosoftCalendarBookingService extends BaseCalendarBookingManagement {
|
|
2247
|
+
private readonly logger;
|
|
2248
|
+
private readonly microsoftApiClient;
|
|
2249
|
+
private readonly fileName;
|
|
2250
|
+
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2251
|
+
createEvent(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2252
|
+
updateEvent(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2253
|
+
cancelEvent(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2254
|
+
deleteEvent(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2255
|
+
getEvent(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2256
|
+
getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2257
|
+
syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2258
|
+
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2259
|
+
private deleteGraphEvent;
|
|
2260
|
+
private assertResourceEmail;
|
|
2261
|
+
private assertEventId;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
declare class MicrosoftCalendarWebhookService extends BaseCalendarWebhookManagement {
|
|
2265
|
+
private readonly logger;
|
|
2266
|
+
private readonly microsoftApiClient;
|
|
2267
|
+
private readonly fileName;
|
|
2268
|
+
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2269
|
+
registerWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
|
|
2270
|
+
refreshSubscription(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
|
|
2271
|
+
deleteSubscription(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2272
|
+
private toGraphSubscription;
|
|
2273
|
+
private fromGraphSubscription;
|
|
2274
|
+
private collectUnknownGraphFields;
|
|
2275
|
+
private assertRequired;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
declare const MICROSOFT_CLIENT_CREDENTIALS_GRANT_TYPE = "client_credentials";
|
|
2279
|
+
declare const MICROSOFT_DEFAULT_GRAPH_SCOPE = "https://graph.microsoft.com/.default";
|
|
2280
|
+
declare const MICROSOFT_DEFAULT_ACCESS_TOKEN_TYPE = "Bearer";
|
|
2281
|
+
declare const MICROSOFT_DEFAULT_HEADERS: {
|
|
2282
|
+
Accept: string;
|
|
2283
|
+
'Content-Type': string;
|
|
2284
|
+
};
|
|
2285
|
+
declare const MICROSOFT_TOKEN_HEADERS: {
|
|
2286
|
+
Accept: string;
|
|
2287
|
+
'Content-Type': string;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
declare const MICROSOFT_GRAPH_PATHS: {
|
|
2291
|
+
readonly rooms: "/places/microsoft.graph.room";
|
|
2292
|
+
readonly userCalendarEvents: (roomEmail: string) => string;
|
|
2293
|
+
readonly userCalendarEvent: (roomEmail: string, eventId: string) => string;
|
|
2294
|
+
readonly userCalendarView: (roomEmail: string, startDateTime: string, endDateTime: string) => string;
|
|
2295
|
+
readonly subscriptions: "/subscriptions";
|
|
2296
|
+
readonly subscription: (subscriptionId: string) => string;
|
|
2297
|
+
};
|
|
2298
|
+
declare const MICROSOFT_DEFAULT_GRAPH_BASE_URL = "https://graph.microsoft.com/v1.0";
|
|
2299
|
+
declare const MICROSOFT_DEFAULT_AUTH_URL = "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token";
|
|
2300
|
+
|
|
2301
|
+
type MicrosoftIntegrationConfigInput = Pick<IMicrosoftIntegrationConfig, 'tenantId' | 'clientId' | 'clientSecret'>;
|
|
2302
|
+
declare function buildMicrosoftIntegrationConfig(integrationConfig: MicrosoftIntegrationConfigInput, existing?: Partial<IMicrosoftConfig>): IMicrosoftConfig;
|
|
2303
|
+
|
|
2304
|
+
declare const MICROSOFT_SECURE_STORAGE = "MICROSOFT_INTEGRATION_CONFIG_SECURE_STORAGE";
|
|
2305
|
+
declare function getMicrosoftKmsKeyId(): string;
|
|
2306
|
+
declare function looksLikeStoredSecureConfig(config: Record<string, unknown>): boolean;
|
|
2307
|
+
|
|
2308
|
+
declare enum CALENDAR_PROVIDER_ENUM {
|
|
2309
|
+
MICROSOFT_365 = "MICROSOFT_365"
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
declare abstract class AdapterFactoryService<TProvider extends string | number | symbol, TAdapter> {
|
|
2313
|
+
abstract readonly adapterMap: Partial<Record<TProvider, TAdapter>>;
|
|
2314
|
+
getAdapter(provider: TProvider): TAdapter;
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
declare abstract class ICalendarBookingHandler {
|
|
2318
|
+
abstract addCalendarBooking(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2319
|
+
abstract updateCalendarBooking(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2320
|
+
abstract cancelCalendarBooking(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2321
|
+
abstract deleteCalendarBooking(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2322
|
+
abstract getCalendarBooking(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2323
|
+
abstract getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2324
|
+
abstract syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2325
|
+
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
declare abstract class ICalendarResourceHandler {
|
|
2329
|
+
abstract getCalendarResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
declare abstract class ICalendarWebhookHandler {
|
|
2333
|
+
abstract registerCalendarWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
|
|
2334
|
+
abstract refreshCalendarWebhook(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
|
|
2335
|
+
abstract deleteCalendarWebhook(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
declare abstract class ICalendarAuthHandler {
|
|
2339
|
+
abstract validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
2340
|
+
abstract testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
2341
|
+
abstract fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
declare abstract class ICalendarIntegrationConfigurationHandler {
|
|
2345
|
+
abstract addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext): Promise<AddAPIResponse>;
|
|
2346
|
+
abstract updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IUpdateCapabilityIntegrationResponse>;
|
|
2347
|
+
abstract getCapabilityIntegrations(request: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
|
|
2348
|
+
abstract getCapabilityIntegration(input: IGetCapabilityIntegrationInput, context: GraphQLContext): Promise<IGetCapabilityIntegrationResult>;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
declare class MicrosoftCalendarBookingHandler extends ICalendarBookingHandler {
|
|
2352
|
+
private readonly microsoftCalendarBookingService;
|
|
2353
|
+
constructor(microsoftCalendarBookingService: MicrosoftCalendarBookingService);
|
|
2354
|
+
addCalendarBooking(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2355
|
+
updateCalendarBooking(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2356
|
+
cancelCalendarBooking(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2357
|
+
deleteCalendarBooking(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2358
|
+
getCalendarBooking(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
|
|
2359
|
+
getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2360
|
+
syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2361
|
+
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
declare class MicrosoftCalendarResourceHandler extends ICalendarResourceHandler {
|
|
2365
|
+
private readonly microsoftCalendarResourceService;
|
|
2366
|
+
constructor(microsoftCalendarResourceService: MicrosoftCalendarResourceService);
|
|
2367
|
+
getCalendarResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
declare class MicrosoftCalendarWebhookHandler extends ICalendarWebhookHandler {
|
|
2371
|
+
private readonly microsoftCalendarWebhookService;
|
|
2372
|
+
constructor(microsoftCalendarWebhookService: MicrosoftCalendarWebhookService);
|
|
2373
|
+
registerCalendarWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
|
|
2374
|
+
refreshCalendarWebhook(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
|
|
2375
|
+
deleteCalendarWebhook(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
declare class MicrosoftCalendarAuthHandler extends ICalendarAuthHandler {
|
|
2379
|
+
private readonly microsoftAuthService;
|
|
2380
|
+
constructor(microsoftAuthService: MicrosoftAuthService);
|
|
2381
|
+
validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
2382
|
+
testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
2383
|
+
fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
declare class MicrosoftCalendarIntegrationConfigurationHandler extends ICalendarIntegrationConfigurationHandler {
|
|
2387
|
+
private readonly microsoftIntegrationConfigurationService;
|
|
2388
|
+
constructor(microsoftIntegrationConfigurationService: MicrosoftIntegrationConfigurationService);
|
|
2389
|
+
addCapabilityIntegration(input: IAddCapabilityIntegrationInput, context: GraphQLContext): Promise<AddAPIResponse>;
|
|
2390
|
+
updateCapabilityIntegration(request: IUpdateCapabilityIntegrationRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IUpdateCapabilityIntegrationResponse>;
|
|
2391
|
+
getCapabilityIntegrations(request: IGetCapabilityIntegrationsRequest, loggedInUserId: bigint): Promise<IGetCapabilityIntegrationsResponse>;
|
|
2392
|
+
getCapabilityIntegration(input: IGetCapabilityIntegrationInput, context: GraphQLContext): Promise<IGetCapabilityIntegrationResult>;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
declare class CalendarBookingAdapterFactory extends AdapterFactoryService<CALENDAR_PROVIDER_ENUM, ICalendarBookingHandler> {
|
|
2396
|
+
readonly adapterMap: Partial<Record<CALENDAR_PROVIDER_ENUM, ICalendarBookingHandler>>;
|
|
2397
|
+
constructor(microsoftCalendarBookingHandler: MicrosoftCalendarBookingHandler);
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
declare class CalendarResourceAdapterFactory extends AdapterFactoryService<CALENDAR_PROVIDER_ENUM, ICalendarResourceHandler> {
|
|
2401
|
+
readonly adapterMap: Partial<Record<CALENDAR_PROVIDER_ENUM, ICalendarResourceHandler>>;
|
|
2402
|
+
constructor(microsoftCalendarResourceHandler: MicrosoftCalendarResourceHandler);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
declare class CalendarWebhookAdapterFactory extends AdapterFactoryService<CALENDAR_PROVIDER_ENUM, ICalendarWebhookHandler> {
|
|
2406
|
+
readonly adapterMap: Partial<Record<CALENDAR_PROVIDER_ENUM, ICalendarWebhookHandler>>;
|
|
2407
|
+
constructor(microsoftCalendarWebhookHandler: MicrosoftCalendarWebhookHandler);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
declare class CalendarAuthAdapterFactory extends AdapterFactoryService<CALENDAR_PROVIDER_ENUM, ICalendarAuthHandler> {
|
|
2411
|
+
readonly adapterMap: Partial<Record<CALENDAR_PROVIDER_ENUM, ICalendarAuthHandler>>;
|
|
2412
|
+
constructor(microsoftCalendarAuthHandler: MicrosoftCalendarAuthHandler);
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
declare class CalendarIntegrationConfigurationAdapterFactory extends AdapterFactoryService<CALENDAR_PROVIDER_ENUM, ICalendarIntegrationConfigurationHandler> {
|
|
2416
|
+
readonly adapterMap: Partial<Record<CALENDAR_PROVIDER_ENUM, ICalendarIntegrationConfigurationHandler>>;
|
|
2417
|
+
constructor(microsoftCalendarIntegrationConfigurationHandler: MicrosoftCalendarIntegrationConfigurationHandler);
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
export { type AccountConfig, type ActivityLogAuthor, AdapterFactoryService, BOOKABLE_ITEM_STATUS_ENUM, BOOKABLE_ITEM_TYPE_ENUM, BaseAccessManagement, BaseAccountingContactPersonManagement, BaseAccountingCreditNoteManagement, BaseAccountingCustomerPaymentManagement, BaseAccountingInvoiceManagement, BaseAccountingLOAManagement, BaseAccountingMiscellaneousManagement, BaseAccountingTaxManagement, BaseAuth, BaseCalendarBookingManagement, BaseCalendarResourceManagement, BaseCalendarWebhookManagement, BaseCreditBooking, BaseCustomerManagement, BaseDeviceManagement, BaseIntegrationConfiguration, BaseIntegrationResourceManagement, BaseMembershipCustomerManagement, BaseMembershipManagement, BasePackageManagement, BasePayment, BasePaymentMethodManagement, BasePaymentUserManagement, BaseWellnessManagement, CALENDAR_PROVIDER_ENUM, CREDIT_FILTER_BY_ENUM, CREDIT_NOTE_STATUS, CREDIT_STATUS_ENUM, CREDIT_TYPE_ENUM, CalendarAuthAdapterFactory, CalendarBookingAdapterFactory, CalendarIntegrationConfigurationAdapterFactory, AppModule$2 as CalendarIntegrationManager, CalendarResourceAdapterFactory, CalendarWebhookAdapterFactory, type CapabilityIntegrationCategory, type CustomerActivity, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_FILTER_BY_ENUM, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_STATUS_ENUM, type DigitalAsset, GET_CUSTOMER_CREDIT_NOTES_FILTER_BY, GET_CUSTOMER_CREDIT_NOTES_SORT_BY, GET_INVOICES_FILTER_BY_ENUM, GET_INVOICES_SORT_BY_ENUM, GET_PAYMENTS_FILTER_BY_ENUM, GET_PAYMENTS_FILTER_VALUE_ENUM, GET_PAYMENTS_SORTING_ENUM, GET_RECURRING_INVOICES_SORT_BY_ENUM, type GetCustomerActivitiesInput, type GetFolioActivitiesOptionsInput, HTTP_METHOD, type IAPIResponse, type IAccessProfile, type IAccessProfiles, type IAccountingAPIResponse, type IAccountingInvoice, type IAccountingListAPIPageContext, type IAccountingListAPIResponse, type IAccountingListAPISearchCriteria, type IAccounts, type IAddCapIntegResourceMapping, type IAddCapabilityIntegration, type IAddCapabilityIntegrationConfig, type IAddCapabilityIntegrationConfiguredFor, type IAddCapabilityIntegrationInput, type IAddCapabilityIntegrationMappingResponse, type IAddCustomerContactPersonRequest, type IAddCustomerRequest, type IAddItemToOrderItemConfig, type IAddItemToOrderRequest, type IAddItemToOrderResponse, type IAddPaymentToOrderRequest, type IAddResourceToIntegrationInput, type IAddResourceToIntegrationResponse, type IAddUpdateAccessGroupRequest, type IAdminCredentials, type IApiCallRequest, type IApplyCreditNoteForInvoicesRequest, type IAvailableDateWithSlots, type IAvailableTaxes, type IAvailableTimeSlot, type IBookableItem, type IBookableItemCategory, type IBookableItemMedia, type IBookableItemPrice, type IBookableItemPriceMeta, type ICalendarAttendee, ICalendarAuthHandler, ICalendarBookingHandler, type ICalendarBookingManagementContext, type ICalendarDateTime, type ICalendarEvent, type ICalendarEventSyncMetadata, ICalendarIntegrationConfigurationHandler, type ICalendarRecurrence, type ICalendarRecurrencePattern, type ICalendarRecurrenceRange, type ICalendarResource, ICalendarResourceHandler, type ICalendarResourceManagementContext, ICalendarWebhookHandler, type ICalendarWebhookManagementContext, type ICalendarWebhookSubscription, type ICancelCalendarEventRequest, type ICapabilityIntegration, type ICapabilityIntegrationConfig, type ICapabilityIntegrationResourceMapping, type ICapabilityIntegrationResourceMappingRow, type IConfiguration, type ICreateCalendarEventRequest, type ICreateCreditNoteForInvoiceRequest, type ICreateCustomerPaymentRequest, type ICreateOrderRequest, type ICreateOrderResponse, type ICreateRecurringInvoiceLineItem, type ICreateRecurringInvoiceRequest, type ICreateRecurringInvoiceResponse, type ICreateRefundRequest, type ICredit, type ICurrency, type ICustomer, type ICustomerAddionalDetails, type ICustomerContactPerson, type ICustomerContactPersonResponse, type ICustomerCreditNote, type ICustomerLastCheckIn, type ICustomerPaymentDetails, type ICustomerPaymentRecord, type ICustomerRole, type ICustomerStatusResponse, type IDeleteAPIResponse, type IDeleteCalendarEventRequest, type IDeleteCalendarWebhookRequest, type IDeleteCustomerContactPersonRequest, type IDeleteDeviceInput, type IDeleteDeviceResponse, type IDownloadCustomerAccountingStatementRequest, type IFetchOfferingAvailabilityRequest, type IGetAccessProfilesResponse, type IGetAppointmentsRequest, type IGetAvailableDatesAndTimeSlotsResponse, type IGetBookableItemsFromCreditRequest, type IGetCalendarEventRequest, type IGetCalendarEventsRequest, type IGetCalendarEventsResponse, type IGetCalendarResourcesRequest, type IGetCalendarResourcesResponse, type IGetCapabilityIntegrationInput, type IGetCapabilityIntegrationResult, type IGetCapabilityIntegrationsFilterInput, type IGetCapabilityIntegrationsOptionsInput, type IGetCapabilityIntegrationsRequest, type IGetCapabilityIntegrationsResponse, type IGetCapabilityIntegrationsSortingInput, type IGetCategoriesRequest, type IGetCoursesRequest, type IGetCreateCustomerPayment, type IGetCreateCustomerPaymentInfo, type IGetCustomerAccessGroupsInput, type IGetCustomerAccessGroupsResponse, type IGetCustomerActivities, type IGetCustomerCreditNotesRequest, type IGetCustomerCreditNotesResponse, type IGetCustomerCreditsRequest, type IGetCustomerCreditsRequestFilters, type IGetCustomerCreditsRequestOptions, type IGetCustomerPayment, type IGetCustomerPaymentRefundInfo, type IGetCustomerPaymentRequest, type IGetCustomerPayments, type IGetCustomerPaymentsFilter, type IGetCustomerPaymentsOptions, type IGetCustomerPaymentsRequest, type IGetCustomerPaymentsSorting, type IGetCustomerRequest, type IGetDeviceKeyInput, type IGetDeviceKeyResponse, type IGetDevicesInput, type IGetDevicesResponse, type IGetInvoicesOptions, type IGetInvoicesRequest, type IGetOrderResponse, type IGetPractitionersRequest, type IGetRecurringInvoicesOptions, type IGetRecurringInvoicesRequest, type IGetRefundCustomerPayment, type IGetRoomAvailabilityRequest, type IGetRoomAvailabilityResponse, type IGetSessionsRequest, type IIcon, type IIntegrationConfigFieldMetadata, type IIntegrationConfigFieldMetadataMap, type IIntegrationConfigJson, type IIntegrationConfigStructureMetadata, type IIntegrationRequestContext, type IIntegrationRequestLog, type IInvoice, type IInvoiceCapabilityIntegration, type IInvoiceCapabilityIntegrationConfig, type IInvoiceIntegrationRequest, type IInvoiceResponse, type IInvoicesResponse, type IKey, type IListUsersInput, type IListUsersResponse, type IMarkCustomerContactPersonPrimaryRequest, type IMicrosoftAccessDetails, type IMicrosoftAccessToken, type IMicrosoftApiCallRequest, type IMicrosoftConfig, type IMicrosoftGraphAttendee, type IMicrosoftGraphDateTimeTimeZone, type IMicrosoftGraphErrorBody, type IMicrosoftGraphEvent, type IMicrosoftGraphEventsResponse, type IMicrosoftGraphRecurrence, type IMicrosoftGraphRecurrencePattern, type IMicrosoftGraphRecurrenceRange, type IMicrosoftGraphRoom, type IMicrosoftGraphRoomsResponse, type IMicrosoftGraphSubscription, type IMicrosoftIntegrationConfig, type IMicrosoftPlatformConfig, type IMicrosoftTokenResponse, INVOICE_STATUS_ENUM, type INonSensitiveStoredField, type IOfferingBookingOccurrence, type IOfferingResource, type IOfferingResourceMedia, type IOrderGuest, type IRecurringInvoices, type IRecurringInvoicesResponse, type IRefreshCalendarWebhookRequest, type IRefreshCalendarWebhookResponse, type IRefundCustomerPayment, type IRegisterCalendarWebhookRequest, type IRegisterCalendarWebhookResponse, type IRegisterDeviceInput, type IRegisterDeviceResponse, type IRemoveCapabilityIntegrationMappingInput, type IRemoveResourceFromIntegrationRequest, type IRemoveResourceFromIntegrationResponse, type IRoomAvailabilitySlot, type ISecureStorageWriteOptions, type ISensitiveStoredField, type IStoredConfigField, type ISyncCalendarEventsRequest, type ISyncCalendarEventsResponse, type ISystemResponse, type ITransactionNumberSeries, type ITransactionNumberSeriesItem, type IUpdateAPIResponse, type IUpdateCalendarEventRequest, type IUpdateCapabilityIntegration, type IUpdateCapabilityIntegrationRequest, type IUpdateCapabilityIntegrationResponse, type IUpdateCapabilityIntegrationUpdateData, type IUpdateCustomerContactPersonRequest, type IUpdateCustomerPaymentRequest, type IUpdateCustomerRequest, type IUpdateDeviceCertificateInput, type IUpdateDeviceCertificateResponse, type IUpdateOfferingIntegrationResourceConfigurationInput, type IUpdateOfferingIntegrationResourceConfigurationResponse, type IUpdateOrderRequest, type IUpdateOrderResponse, type IUpdateRecurringInvoiceRequest, type IUpdateRecurringInvoiceResponse, type IUserAccessGroup, type IValidatedCapabilityIntegration, type IValidatedCapabilityIntegrationConfig, type IWellnessManagementRequestOptions, IntegrationBookingDao, IntegrationCommonDao, IntegrationConfigSecureStorageService, IntegrationConfigurationDao, AppModule$1 as IntegrationLibsModule, AppModule as IntegrationMicrosoftModule, IntegrationOnpremDeploymentDao, IntegrationRequestLoggerService, IntegrationResourceManagementDao, IntegrationServiceCommunicationTopicDao, IntegrationSubcapabilityDao, IntegrationUserManagementDao, IntegrationVisitorCredentialMappingDao, type InvoiceAccessDetails, MICROSOFT_CLIENT_CREDENTIALS_GRANT_TYPE, MICROSOFT_DEFAULT_ACCESS_TOKEN_TYPE, MICROSOFT_DEFAULT_AUTH_URL, MICROSOFT_DEFAULT_GRAPH_BASE_URL, MICROSOFT_DEFAULT_GRAPH_SCOPE, MICROSOFT_DEFAULT_HEADERS, MICROSOFT_GRAPH_PATHS, MICROSOFT_SECURE_STORAGE, MICROSOFT_TOKEN_HEADERS, MicrosoftApiClientService, MicrosoftAuthService, MicrosoftCalendarAuthHandler, MicrosoftCalendarBookingHandler, MicrosoftCalendarBookingService, MicrosoftCalendarIntegrationConfigurationHandler, MicrosoftCalendarResourceHandler, MicrosoftCalendarResourceService, MicrosoftCalendarWebhookHandler, MicrosoftCalendarWebhookService, type MicrosoftIntegrationConfigInput, MicrosoftIntegrationConfigurationService, type Note, type NoteAttachment, type NoteChangelog, type NoteChangelogRecord, type NoteResource, type NoteUserIdentity, RECURRING_INVOICE_STATUS, RateLimiterService, type ResourceAssetMapping, TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY, TrafficGatewayService, type UserIdentity, buildMicrosoftIntegrationConfig, getMicrosoftKmsKeyId, looksLikeStoredSecureConfig };
|