@skedulo/pulse-solution-services 0.0.11 → 0.0.13

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/README.md +47 -3
  3. package/dist/clients/artifact-client.js +1 -1
  4. package/dist/clients/availability-api-client.js +1 -1
  5. package/dist/clients/base-client.js +1 -1
  6. package/dist/clients/config-features-client.js +1 -1
  7. package/dist/clients/config-template-client.js +1 -1
  8. package/dist/clients/config-var-client.js +1 -1
  9. package/dist/clients/files-api-client.js +1 -0
  10. package/dist/clients/geo-api-client.js +1 -1
  11. package/dist/clients/graphql-client.js +1 -1
  12. package/dist/clients/index.js +1 -1
  13. package/dist/clients/metadata-client.js +1 -1
  14. package/dist/clients/mobile-notification-client.js +1 -1
  15. package/dist/clients/org-preference-client.js +1 -1
  16. package/dist/clients/vocabulary-client.js +1 -1
  17. package/dist/constants/tenant-endpoints.js +1 -1
  18. package/dist/core/execution-context.js +1 -1
  19. package/dist/index.d.ts +552 -530
  20. package/dist/interfaces/files.js +1 -0
  21. package/dist/interfaces/index.js +1 -1
  22. package/dist/monitoring/index.js +1 -0
  23. package/dist/services/index.js +1 -1
  24. package/dist/services/resource-availability/builder/resource-availability-service.d.ts +1 -1
  25. package/dist/services/resource-availability/validator/index.d.ts +1 -0
  26. package/dist/services/resource-availability/validator/index.js +1 -1
  27. package/dist/services/resource-availability/validator/resource-job-validation.d.ts +1 -1
  28. package/dist/services/resource-availability/validator/resource-validator.d.ts +1 -1
  29. package/dist/services/resource-availability/validator/validation-result.d.ts +1 -1
  30. package/package.json +6 -2
  31. package/yarn.lock +234 -8
package/dist/index.d.ts CHANGED
@@ -1,60 +1,122 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- /**
4
- * Interface representing the structure of metadata for an object.
5
- */
6
- export interface Metadata {
7
- label: string;
8
- labelPlural: string | null;
9
- mapping: string;
10
- name: string;
3
+ export declare enum ArtifactType {
4
+ CUSTOM_OBJECT = "custom-object",
5
+ CUSTOM_FIELD = "custom-field",
6
+ FUNCTION = "function",
7
+ MOBILE_EXTENSION = "mobile-extension",
8
+ PUBLIC_PAGE = "public-page",
9
+ TRIGGERED_ACTION = "triggered-action",
10
+ USER_ROLE = "user-role",
11
+ WEBHOOK = "webhook",
12
+ HORIZON_CUSTOM_RESOURCE = "horizon-custom-resource",
13
+ HORIZON_PAGE = "horizon-page",
14
+ HORIZON_TEMPLATE = "horizon-template",
15
+ HORIZON_TENANT_CONFIG = "horizon-tenant-config",
16
+ HORIZON_COMPONENT_BUNDLE = "horizon-component-bundle",
17
+ HORIZON_VIEW_TYPE = "horizon-view-type",
18
+ HORIZON_CUSTOM_ACTION = "horizon-custom-action",
19
+ HORIZON_VIEW_STATE = "horizon-view-state",
20
+ HORIZON_DATA_FIELD_OVERLAY = "horizon-data-field-overlay",
21
+ HORIZON_DATA_RELATIONSHIP_OVERLAY = "horizon-data-relationship-overlay",
22
+ HORIZON_LIST_CONFIG = "horizon-list-config",
23
+ HORIZON_LIST_VIEW_STATE = "horizon-list-view-state"
11
24
  }
12
- /**
13
- * Interface representing the metadata for a specific object, extending the base Metadata interface.
14
- */
15
- export interface ObjectMetadata extends Metadata {
16
- relationships: any[];
17
- fields: any[];
25
+ export declare enum ConfigVariableType {
26
+ PLAIN_TEXT = "plain-text",
27
+ SECRET = "secret"
18
28
  }
19
- /**
20
- * Interface representing the structure of a relationship.
21
- */
22
- export interface RelationshipMapping {
23
- schemaMapping: string;
24
- mapping: string;
25
- fieldMapping: string;
29
+ export declare enum ConfigVariableStatus {
30
+ ACTIVE = "active",
31
+ INACTIVE = "inactive",
32
+ EXPIRED = "expired"
26
33
  }
27
- /**
28
- * Interface representing the structure of a field.
29
- */
30
- export interface FieldMetadata {
31
- label: string;
32
- mapping: string;
33
- type: string;
34
- nillable: boolean;
35
- length: number;
36
- maxLength: number | null;
37
- precision: number | null;
38
- scale: number | null;
39
- upsertKey: boolean;
40
- unique: boolean;
41
- readOnly: boolean;
42
- accessMode: "read_only" | "read_write";
43
- relationship: RelationshipMapping | null;
44
- values: Array<PicklistValue>;
45
- name: string;
34
+ export declare enum GraphqlOperations {
35
+ INSERT = "insert",
36
+ UPDATE = "update",
37
+ DELETE = "delete",
38
+ UPSERT = "upsert"
46
39
  }
47
- export interface PicklistValue {
48
- label: string;
49
- value: string;
50
- active: boolean;
51
- defaultValue: boolean;
40
+ export declare enum HttpMethod {
41
+ GET = "GET",
42
+ POST = "POST",
43
+ PUT = "PUT",
44
+ DELETE = "DELETE",
45
+ PATCH = "PATCH"
52
46
  }
53
- export interface BaseConfig {
54
- apiServer: string;
55
- apiToken: string;
56
- internalApiToken?: string;
47
+ export declare enum NotificationTemplate {
48
+ JOB_DISPATCH = "job_dispatch",
49
+ JOB_REMINDER = "job_reminder",
50
+ JOB_CANCELLED = "job_cancelled",
51
+ JOB_OFFER = "job_offer"
52
+ }
53
+ export declare enum NotificationType {
54
+ SMS = "sms",
55
+ PUSH = "push"
57
56
  }
57
+ export declare const TENANT_ENDPOINTS: {
58
+ readonly CONFIG_VAR: {
59
+ readonly CREATE: "configuration/extension";
60
+ readonly GET: (key: string) => string;
61
+ readonly UPDATE: (key: string) => string;
62
+ readonly DELETE: (key: string) => string;
63
+ readonly SEARCH: "configuration/extension/search";
64
+ };
65
+ readonly GRAPHQL: {
66
+ readonly SINGLE: "graphql/graphql";
67
+ readonly BATCH: "graphql/graphql/batch";
68
+ };
69
+ readonly METADATA: {
70
+ readonly ALL: "custom/metadata";
71
+ readonly OBJECT: (objectMapping: string) => string;
72
+ };
73
+ readonly ORG_PREFERENCE: {
74
+ readonly GET: "config/org_preference";
75
+ readonly UPDATE: "config/org_preference";
76
+ };
77
+ readonly CONFIG_TEMPLATE: {
78
+ readonly GET_TEMPLATES: (objectName: string) => string;
79
+ readonly GET_VALUES: (templateId: string) => string;
80
+ readonly UPDATE_VALUES: (templateId: string) => string;
81
+ readonly CREATE: "config/template";
82
+ readonly DELETE: (templateId: string) => string;
83
+ };
84
+ readonly CONFIG_FEATURES: {
85
+ readonly GET: "config/features";
86
+ readonly UPDATE: (tenantId: string) => string;
87
+ };
88
+ readonly VOCABULARY: {
89
+ readonly GET_ITEMS: (schemaName: string, fieldName: string) => string;
90
+ readonly ADD_ITEM: (schemaName: string, fieldName: string) => string;
91
+ readonly UPDATE_ITEM: (schemaName: string, fieldName: string, value: string) => string;
92
+ };
93
+ readonly NOTIFICATIONS: {
94
+ readonly GET_TEMPLATES: "notifications/v2/templates";
95
+ readonly DELETE_TEMPLATE: (template: string, templateType: string) => string;
96
+ readonly SET_TEMPLATE: (type: string, protocol: string) => string;
97
+ readonly DISPATCH: "notifications/dispatch";
98
+ readonly NOTIFY: "notifications/notify";
99
+ readonly NOTIFY_CANCEL: "notifications/notify_cancel";
100
+ readonly ONE_OFF: "notifications/oneoff";
101
+ readonly SEND_SMS: "notifications/sms";
102
+ readonly SMS_CONFIRMATION_REQUEST: "notifications/sms/confirmation_request";
103
+ };
104
+ readonly GEOSERVICES: {
105
+ readonly DISTANCE_MATRIX: "geoservices/distanceMatrix";
106
+ readonly DIRECTIONS: "geoservices/directions";
107
+ readonly GEOCODE: "geoservices/geocode";
108
+ readonly AUTOCOMPLETE: "geoservices/autocomplete";
109
+ readonly PLACE: "geoservices/place";
110
+ readonly TIMEZONE: "geoservices/timezone";
111
+ };
112
+ readonly AVAILABILITY: {
113
+ readonly SIMPLE: "availability/simple";
114
+ };
115
+ readonly FILES: {
116
+ readonly AVATAR: "files/avatar";
117
+ readonly ATTACHMENTS: (parentId: string) => string;
118
+ };
119
+ };
58
120
  /**
59
121
  * Represents execution options for GraphQL requests.
60
122
  * This class encapsulates metadata and execution settings
@@ -79,6 +141,11 @@ export declare class ExecutionOptions {
79
141
  */
80
142
  constructor(initialValues?: Partial<ExecutionOptions>);
81
143
  }
144
+ export interface BaseConfig {
145
+ apiServer: string;
146
+ apiToken: string;
147
+ internalApiToken?: string;
148
+ }
82
149
  export interface RequestParams {
83
150
  method?: string;
84
151
  endpoint: string;
@@ -111,6 +178,7 @@ export declare class BaseClient {
111
178
  * @throws {Error} - If the request fails or the response is not OK.
112
179
  */
113
180
  performRequest<T = any>({ method, endpoint, headers, body, queryParams }: RequestParams, executionOptions?: Partial<ExecutionOptions>): Promise<T>;
181
+ protected _performRequest<T = any>({ method, endpoint, headers, body, queryParams }: RequestParams, executionOptions?: Partial<ExecutionOptions>): Promise<T>;
114
182
  protected handleResponseData(response: Response): void;
115
183
  /**
116
184
  * Constructs the headers for API requests.
@@ -130,43 +198,95 @@ export declare class BaseClient {
130
198
  */
131
199
  protected handleException(error: any): void;
132
200
  }
201
+ export type ArtifactParams = {
202
+ objectName?: string;
203
+ viewTypeName?: string;
204
+ name?: string;
205
+ scope?: string;
206
+ };
207
+ export declare class ArtifactClient extends BaseClient {
208
+ private artifactType;
209
+ private baseEndpoint;
210
+ constructor(config: any, artifactType: ArtifactType, executionOptions?: Partial<ExecutionOptions>);
211
+ list<T>(): Promise<T[]>;
212
+ get<T>(params?: ArtifactParams): Promise<T>;
213
+ create<T>(params: ArtifactParams, artifactData: Partial<T>): Promise<T>;
214
+ update<T>(params: ArtifactParams, artifactData: Partial<T>): Promise<T>;
215
+ delete(params: ArtifactParams): Promise<void>;
216
+ private buildEndpoint;
217
+ }
218
+ export interface AvailabilityRequestParams {
219
+ /**
220
+ * Array of resource IDs for which availability is requested.
221
+ * Must contain at least one and at most 200 resource IDs.
222
+ */
223
+ resourceIds: string[];
224
+ /**
225
+ * The UTC datetime from which to start fetching availability (ISO 8601 format).
226
+ */
227
+ start: string;
228
+ /**
229
+ * The UTC datetime until which to fetch availability (ISO 8601 format).
230
+ * Must be after start and within 375 days.
231
+ */
232
+ end: string;
233
+ /**
234
+ * If true, merged availability time intervals are returned in the response.
235
+ * Defaults to false.
236
+ */
237
+ mergedAvailabilities?: boolean;
238
+ /**
239
+ * If true (or omitted), a list of availability entries is returned.
240
+ * Defaults to true.
241
+ */
242
+ entries?: boolean;
243
+ }
244
+ export interface AvailabilityResult {
245
+ resourceId: string;
246
+ mergedAvailabilities?: {
247
+ start: string;
248
+ end: string;
249
+ }[];
250
+ entries?: AvailabilityEntry[];
251
+ }
252
+ export interface AvailabilityEntry {
253
+ type: "template" | "pattern" | "override" | "holiday";
254
+ start: string;
255
+ end: string;
256
+ available: boolean;
257
+ templateEntryId?: string;
258
+ name?: string;
259
+ patternId?: string;
260
+ patternRecordId?: string;
261
+ }
133
262
  /**
134
- * MetadataClient class to handle API requests related to metadata.
263
+ * AvailabilityClient class to handle API requests related to availability.
135
264
  * Extends BaseClient to perform API operations.
136
265
  */
137
- export declare class MetadataClient extends BaseClient {
138
- /**
139
- * Fetches all metadata mappings from the metadata endpoint.
140
- * @returns {Promise<Metadata[]>} - A promise resolving to an object containing an array of Metadata.
141
- */
142
- fetchAllMetadata(): Promise<Metadata[]>;
266
+ export declare class AvailabilityAPIClient extends BaseClient {
143
267
  /**
144
- * Fetches metadata for a specific object using its mapping.
145
- * @param {string} mapping - The API mapping for the object.
146
- * @returns {Promise<ObjectMetadata>} - A promise resolving to an object containing the metadata of the requested object.
268
+ * Fetches resource availability based on the given request parameters.
269
+ * @param {AvailabilityRequestParams} params - The request parameters for availability.
270
+ * @returns {Promise<AvailabilityResult[]>} - The availability data for the requested resources.
147
271
  */
148
- fetchObjectMetadata(mapping: string): Promise<ObjectMetadata>;
272
+ fetchAvailability(params: AvailabilityRequestParams): Promise<AvailabilityResult[]>;
149
273
  }
150
274
  /**
151
- * MetadataService class to process and filter metadata.
275
+ * ConfigFeatureClient class to handle API requests related to feature flags.
276
+ * Extends BaseClient to perform API operations.
152
277
  */
153
- export declare class MetadataService {
154
- private client;
155
- constructor(client: MetadataClient);
278
+ export declare class ConfigFeaturesClient extends BaseClient {
156
279
  /**
157
- * Retrieves metadata for specific objects.
158
- *
159
- * @param objectNames - The names of the objects.
160
- * @returns A promise that resolves to metadata records.
280
+ * Fetches feature flags configuration.
281
+ * @returns {Promise<Record<string, any>>} - A promise resolving to the sorted feature flags in JSON string format.
161
282
  */
162
- getObjectMetadata(objectNames: string[]): Promise<Record<string, ObjectMetadata>>;
283
+ get(): Promise<Record<string, any>>;
163
284
  /**
164
- * Extracts picklist values from the object metadata.
165
- *
166
- * @param metadata - The metadata of the object.
167
- * @returns An object containing the picklist values for each picklist field.
285
+ * Deploys feature flags configuration.
286
+ * @param {string} newConfig - The new configuration to be deployed.
287
+ * @returns {Promise<Record<string, any>>} - A promise resolving when the configuration is successfully deployed.
168
288
  */
169
- getPicklistValues(metadata: ObjectMetadata): Record<string, string[]>;
289
+ update(tenantId: string, newConfig: Record<string, any>): Promise<Record<string, any>>;
170
290
  }
171
291
  export interface ConfigTemplate {
172
292
  id?: string;
@@ -193,264 +313,117 @@ export declare class ConfigTemplateClient extends BaseClient {
193
313
  get(objectName: string): Promise<ConfigTemplate[]>;
194
314
  /**
195
315
  * Fetches configuration template values by template ID.
196
- * @param {string} templateId - The template ID.
197
- * @returns {Promise<any[]>} - A promise resolving to an array of configuration values.
198
- */
199
- getTemmplateValues(templateId: string): Promise<any[]>;
200
- /**
201
- * Updates or Inserts configuration template values.
202
- * @param {string} templateId - The template ID.
203
- * @param {ConfigTemplateValue[]} values - The values to update.
204
- * @returns {Promise<any>} - A promise resolving when the update is complete.
205
- */
206
- upsertTemplateValues(templateId: string, values: ConfigTemplateValue[]): Promise<any>;
207
- /**
208
- * Deletes a configuration template.
209
- * @param {string} templateId - The template ID.
210
- * @returns {Promise<any>} - A promise resolving when the deletion is complete.
211
- */
212
- delete(templateId: string): Promise<any>;
213
- /**
214
- * Deploys a configuration template.
215
- * @param {ConfigTemplate} template - The template to deploy.
216
- * @returns {Promise<any>} - A promise resolving when the deployment is complete.
217
- */
218
- create(template: ConfigTemplate): Promise<any>;
219
- }
220
- export interface ConfigVar {
221
- key?: string;
222
- configType: string;
223
- value: string;
224
- description?: string;
225
- status?: "active" | "inactive" | "expired";
226
- expiryDate?: string;
227
- updatedBy?: string;
228
- createdBy?: string;
229
- createdAt?: string;
230
- updatedAt?: string;
231
- }
232
- /**
233
- * Client for managing configuration variables through API requests.
234
- * Provides methods to create, retrieve, update, search, and delete configuration variables.
235
- */
236
- export declare class ConfigVarClient extends BaseClient {
237
- /**
238
- * Creates a new configuration variable.
239
- */
240
- create(configVar: ConfigVar): Promise<ConfigVar>;
241
- /**
242
- * Retrieves a configuration variable by key.
243
- */
244
- get(key: string): Promise<ConfigVar>;
245
- /**
246
- * Updates an existing configuration variable.
247
- */
248
- update(configVar: ConfigVar): Promise<ConfigVar>;
249
- /**
250
- * Upsert a configuration variable. If the configuration variable does not exist, it will be created.
251
- */
252
- upsert(configVar: ConfigVar): Promise<ConfigVar>;
253
- /**
254
- * Searches for configuration variables with pagination.
255
- */
256
- search(pageSize?: number): Promise<ConfigVar[]>;
257
- /**
258
- * Deletes a configuration variable by key.
259
- */
260
- delete(key: string): Promise<string>;
261
- }
262
- export declare enum ArtifactType {
263
- CUSTOM_OBJECT = "custom-object",
264
- CUSTOM_FIELD = "custom-field",
265
- FUNCTION = "function",
266
- MOBILE_EXTENSION = "mobile-extension",
267
- PUBLIC_PAGE = "public-page",
268
- TRIGGERED_ACTION = "triggered-action",
269
- USER_ROLE = "user-role",
270
- WEBHOOK = "webhook",
271
- HORIZON_CUSTOM_RESOURCE = "horizon-custom-resource",
272
- HORIZON_PAGE = "horizon-page",
273
- HORIZON_TEMPLATE = "horizon-template",
274
- HORIZON_TENANT_CONFIG = "horizon-tenant-config",
275
- HORIZON_COMPONENT_BUNDLE = "horizon-component-bundle",
276
- HORIZON_VIEW_TYPE = "horizon-view-type",
277
- HORIZON_CUSTOM_ACTION = "horizon-custom-action",
278
- HORIZON_VIEW_STATE = "horizon-view-state",
279
- HORIZON_DATA_FIELD_OVERLAY = "horizon-data-field-overlay",
280
- HORIZON_DATA_RELATIONSHIP_OVERLAY = "horizon-data-relationship-overlay",
281
- HORIZON_LIST_CONFIG = "horizon-list-config",
282
- HORIZON_LIST_VIEW_STATE = "horizon-list-view-state"
283
- }
284
- export declare enum ConfigVariableType {
285
- PLAIN_TEXT = "plain-text",
286
- SECRET = "secret"
287
- }
288
- export declare enum ConfigVariableStatus {
289
- ACTIVE = "active",
290
- INACTIVE = "inactive",
291
- EXPIRED = "expired"
292
- }
293
- export declare enum GraphqlOperations {
294
- INSERT = "insert",
295
- UPDATE = "update",
296
- DELETE = "delete",
297
- UPSERT = "upsert"
298
- }
299
- export declare enum HttpMethod {
300
- GET = "GET",
301
- POST = "POST",
302
- PUT = "PUT",
303
- DELETE = "DELETE",
304
- PATCH = "PATCH"
305
- }
306
- export declare enum NotificationTemplate {
307
- JOB_DISPATCH = "job_dispatch",
308
- JOB_REMINDER = "job_reminder",
309
- JOB_CANCELLED = "job_cancelled",
310
- JOB_OFFER = "job_offer"
311
- }
312
- export declare enum NotificationType {
313
- SMS = "sms",
314
- PUSH = "push"
315
- }
316
- export declare const TENANT_ENDPOINTS: {
317
- readonly CONFIG_VAR: {
318
- readonly CREATE: "configuration/extension";
319
- readonly GET: (key: string) => string;
320
- readonly UPDATE: (key: string) => string;
321
- readonly DELETE: (key: string) => string;
322
- readonly SEARCH: "configuration/extension/search";
323
- };
324
- readonly GRAPHQL: {
325
- readonly SINGLE: "graphql/graphql";
326
- readonly BATCH: "graphql/graphql/batch";
327
- };
328
- readonly METADATA: {
329
- readonly ALL: "custom/metadata";
330
- readonly OBJECT: (objectMapping: string) => string;
331
- };
332
- readonly ORG_PREFERENCE: {
333
- readonly GET: "config/org_preference";
334
- readonly UPDATE: "config/org_preference";
335
- };
336
- readonly CONFIG_TEMPLATE: {
337
- readonly GET_TEMPLATES: (objectName: string) => string;
338
- readonly GET_VALUES: (templateId: string) => string;
339
- readonly UPDATE_VALUES: (templateId: string) => string;
340
- readonly CREATE: "config/template";
341
- readonly DELETE: (templateId: string) => string;
342
- };
343
- readonly CONFIG_FEATURES: {
344
- readonly GET: "config/features";
345
- readonly UPDATE: (tenantId: string) => string;
346
- };
347
- readonly VOCABULARY: {
348
- readonly GET_ITEMS: (schemaName: string, fieldName: string) => string;
349
- readonly ADD_ITEM: (schemaName: string, fieldName: string) => string;
350
- readonly UPDATE_ITEM: (schemaName: string, fieldName: string, value: string) => string;
351
- };
352
- readonly NOTIFICATIONS: {
353
- readonly GET_TEMPLATES: "notifications/v2/templates";
354
- readonly DELETE_TEMPLATE: (template: string, templateType: string) => string;
355
- readonly SET_TEMPLATE: (type: string, protocol: string) => string;
356
- readonly DISPATCH: "notifications/dispatch";
357
- readonly NOTIFY: "notifications/notify";
358
- readonly NOTIFY_CANCEL: "notifications/notify_cancel";
359
- readonly ONE_OFF: "notifications/oneoff";
360
- readonly SEND_SMS: "notifications/sms";
361
- readonly SMS_CONFIRMATION_REQUEST: "notifications/sms/confirmation_request";
362
- };
363
- readonly GEOSERVICES: {
364
- readonly DISTANCE_MATRIX: "geoservices/distanceMatrix";
365
- readonly DIRECTIONS: "geoservices/directions";
366
- readonly GEOCODE: "geoservices/geocode";
367
- readonly AUTOCOMPLETE: "geoservices/autocomplete";
368
- readonly PLACE: "geoservices/place";
369
- readonly TIMEZONE: "geoservices/timezone";
370
- };
371
- readonly AVAILABILITY: {
372
- readonly SIMPLE: "availability/simple";
373
- };
374
- };
375
- export interface HasId {
376
- UID?: string;
377
- [key: string]: any;
378
- }
379
- export interface GraphQlResponse<T = any> {
380
- data: T;
381
- errors?: object[];
382
- }
383
- export interface GraphqlParams {
384
- objectName: string;
385
- operationName: string;
386
- }
387
- export interface GraphqlMurationParams extends GraphqlParams {
388
- records: HasId[];
389
- operation: GraphqlOperations;
390
- bulkOperation?: boolean;
391
- }
392
- export interface GraphqlQueryParams extends GraphqlParams {
393
- first?: number;
394
- offset?: number;
395
- orderBy?: string;
396
- filter?: string;
397
- after?: string;
398
- fields?: string;
399
- readOnly?: boolean;
400
- }
401
- export interface QueryResult {
402
- records: HasId[];
403
- totalCount: number;
404
- pageInfo: any;
405
- endCursor: string;
406
- endOffset: number;
316
+ * @param {string} templateId - The template ID.
317
+ * @returns {Promise<any[]>} - A promise resolving to an array of configuration values.
318
+ */
319
+ getTemmplateValues(templateId: string): Promise<any[]>;
320
+ /**
321
+ * Updates or Inserts configuration template values.
322
+ * @param {string} templateId - The template ID.
323
+ * @param {ConfigTemplateValue[]} values - The values to update.
324
+ * @returns {Promise<any>} - A promise resolving when the update is complete.
325
+ */
326
+ upsertTemplateValues(templateId: string, values: ConfigTemplateValue[]): Promise<any>;
327
+ /**
328
+ * Deletes a configuration template.
329
+ * @param {string} templateId - The template ID.
330
+ * @returns {Promise<any>} - A promise resolving when the deletion is complete.
331
+ */
332
+ delete(templateId: string): Promise<any>;
333
+ /**
334
+ * Deploys a configuration template.
335
+ * @param {ConfigTemplate} template - The template to deploy.
336
+ * @returns {Promise<any>} - A promise resolving when the deployment is complete.
337
+ */
338
+ create(template: ConfigTemplate): Promise<any>;
407
339
  }
408
- export interface MutationResult {
409
- data: {
410
- schema: {
411
- [alias: string]: string;
412
- };
413
- };
340
+ export interface ConfigVar {
341
+ key?: string;
342
+ configType: string;
343
+ value: string;
344
+ description?: string;
345
+ status?: "active" | "inactive" | "expired";
346
+ expiryDate?: string;
347
+ updatedBy?: string;
348
+ createdBy?: string;
349
+ createdAt?: string;
350
+ updatedAt?: string;
414
351
  }
415
352
  /**
416
- * A client for executing GraphQL queries and mutations.
417
- * Extends the BaseClient to interact with the GraphQL API.
353
+ * Client for managing configuration variables through API requests.
354
+ * Provides methods to create, retrieve, update, search, and delete configuration variables.
418
355
  */
419
- export declare class GraphQLClient extends BaseClient {
356
+ export declare class ConfigVarClient extends BaseClient {
420
357
  /**
421
- * Executes a GraphQL query or mutation.
422
- * @param {string} graphqlQuery - The GraphQL query or mutation string.
423
- * @param {Record<string, string>} headers - Additional headers to include in the request.
424
- * @returns {Promise<GraphQlResponse>} - The response from the GraphQL API.
425
- * @throws {Error} - If the request fails or if there are errors in the response.
358
+ * Creates a new configuration variable.
426
359
  */
427
- execute(graphqlQuery: string, headers?: Record<string, string>): Promise<GraphQlResponse>;
360
+ create(configVar: ConfigVar): Promise<ConfigVar>;
428
361
  /**
429
- * Executes a GraphQL query or mutation.
430
- * @param {string} graphqlQuery - The GraphQL queries and/or mutations.
431
- * @param {Record<string, string>} headers - Additional headers to include in the request.
432
- * @returns {Promise<GraphQlResponse>} - The response from the GraphQL API.
433
- * @throws {Error} - If the request fails or if there are errors in the response.
362
+ * Retrieves a configuration variable by key.
434
363
  */
435
- executeBatch(graphqlQuery: string, headers?: Record<string, string>): Promise<GraphQlResponse>;
436
- protected handleResponseData(responseData: any): void;
364
+ get(key: string): Promise<ConfigVar>;
365
+ /**
366
+ * Updates an existing configuration variable.
367
+ */
368
+ update(configVar: ConfigVar): Promise<ConfigVar>;
369
+ /**
370
+ * Upsert a configuration variable. If the configuration variable does not exist, it will be created.
371
+ */
372
+ upsert(configVar: ConfigVar): Promise<ConfigVar>;
373
+ /**
374
+ * Searches for configuration variables with pagination.
375
+ */
376
+ search(pageSize?: number): Promise<ConfigVar[]>;
377
+ /**
378
+ * Deletes a configuration variable by key.
379
+ */
380
+ delete(key: string): Promise<string>;
437
381
  }
438
382
  /**
439
- * OrgPreferencesClient class to handle API requests related to organization preferences.
440
- * Extends BaseClient to perform API operations.
383
+ * Request parameters for fetching avatars.
384
+ * - `userIds`: comma-separated user IDs
385
+ * - `sizeHint`: optional size hint (e.g., "small", "thumbnail")
441
386
  */
442
- export declare class OrgPreferenceClient extends BaseClient {
387
+ export interface GetAvatarParams {
388
+ userIds: string[];
389
+ sizeHint?: string;
390
+ }
391
+ /**
392
+ * Response shape for fetching avatars.
393
+ * The API returns a map from userId -> avatar URL.
394
+ */
395
+ export type GetAvatarResponse = Record<string, string>;
396
+ /**
397
+ * Represents a single attachment record.
398
+ */
399
+ export interface Attachment {
400
+ id: string;
401
+ contentType: string;
402
+ fileName: string;
403
+ uploadedDate: string;
404
+ parentId: string;
405
+ createdBy: string;
406
+ size: number;
407
+ description: string;
408
+ downloadUrl: string;
409
+ }
410
+ /**
411
+ * Response shape for fetching attachments.
412
+ */
413
+ export interface GetAttachmentsResponse {
414
+ list: Attachment[];
415
+ }
416
+ export declare class FilesAPIClient extends BaseClient {
443
417
  /**
444
- * Fetches the organization preferences configuration.
445
- * @returns {Promise<Record<string, any>>} - A promise resolving to the sorted organization preferences.
418
+ * Fetch a map of userId -> avatar URL.
419
+ * Example request: GET /avatar?user_ids=abc,def&size_hint=thumbnail
446
420
  */
447
- get(): Promise<Record<string, any>>;
421
+ getAvatar(params: GetAvatarParams): Promise<GetAvatarResponse>;
448
422
  /**
449
- * Deploys the organization preferences configuration.
450
- * @param {Record<string, any>} newConfig - The new configuration to be deployed.
451
- * @returns {Promise<Record<string, any>>} - A promise resolving when the configuration is successfully deployed.
423
+ * Find attachments that belong to the specified parent record.
424
+ * Example request: GET /attachments/{parentId}
452
425
  */
453
- deploy(newConfig: Record<string, any>): Promise<Record<string, any>>;
426
+ getAttachments(parentId: string): Promise<GetAttachmentsResponse>;
454
427
  }
455
428
  export interface LatLng {
456
429
  lat: number;
@@ -545,168 +518,18 @@ export interface PlaceResponse {
545
518
  geometry: LatLng;
546
519
  }
547
520
  export interface TimezoneRequest {
548
- location: [
549
- number,
550
- number
551
- ];
552
- timestamp: number;
553
- }
554
- export interface TimezoneResponse {
555
- dstOffset: number;
556
- rawOffset: number;
557
- timeZoneId: string;
558
- }
559
- export interface BaseObject {
560
- id: string;
561
- name: string;
562
- propertyMap?: Record<string, any>;
563
- }
564
- export interface BaseEvent extends BaseObject {
565
- start: Date;
566
- finish: Date;
567
- eventType?: string;
568
- description?: string;
569
- geoLocation?: LatLng;
570
- }
571
- export interface Resource extends BaseObject {
572
- category?: string;
573
- employmentType?: string;
574
- resourceType?: string;
575
- userId?: string;
576
- regionId?: string;
577
- timezone: string;
578
- tags: Tag[];
579
- availabilities: BaseEvent[];
580
- events: BaseEvent[];
581
- }
582
- export interface Tag extends BaseObject {
583
- }
584
- export interface Availability extends BaseEvent {
585
- resourceId: string;
586
- isAvailable: boolean;
587
- status: string;
588
- availabilityType: string;
589
- }
590
- export interface Activity extends BaseEvent {
591
- resourceId: string;
592
- activityType: string;
593
- }
594
- export interface JobAllocation extends BaseEvent {
595
- jobId: string;
596
- resourceId: string;
597
- status: string;
598
- }
599
- export interface Job extends BaseEvent {
600
- address: string;
601
- contactId: string;
602
- jobStatus: string;
603
- regionId: string;
604
- tags: Tag[];
605
- }
606
- export interface ResourceShift extends BaseEvent {
607
- resourceId: string;
608
- shift: Shift;
609
- }
610
- export interface Shift extends BaseEvent {
611
- regionId: string;
612
- displayName: string;
613
- isDraft: boolean;
614
- }
615
- export declare class EntityFactory {
616
- static createBaseObject(data: Record<string, string>): BaseObject;
617
- static createBaseEvent(data: Record<string, string>): BaseEvent;
618
- static createTag(data: Record<string, any>): Tag;
619
- static createResource(data: Record<string, any>): Resource;
620
- static createJob(data: Record<string, any>): Job;
621
- static createAvailability(data: Record<string, any>): Availability;
622
- static createActivity(data: Record<string, any>): Activity;
623
- static createJobAllocation(data: Record<string, any>): JobAllocation;
624
- static createResourceShift(data: Record<string, any>): ResourceShift;
625
- static createShift(data: Record<string, any>): Shift;
626
- }
627
- export type ArtifactParams = {
628
- objectName?: string;
629
- viewTypeName?: string;
630
- name?: string;
631
- scope?: string;
632
- };
633
- declare class ArtifactClient extends BaseClient {
634
- private artifactType;
635
- private baseEndpoint;
636
- constructor(config: any, artifactType: ArtifactType, executionOptions?: Partial<ExecutionOptions>);
637
- list<T>(): Promise<T[]>;
638
- get<T>(params?: ArtifactParams): Promise<T>;
639
- create<T>(params: ArtifactParams, artifactData: Partial<T>): Promise<T>;
640
- update<T>(params: ArtifactParams, artifactData: Partial<T>): Promise<T>;
641
- delete(params: ArtifactParams): Promise<void>;
642
- private buildEndpoint;
643
- }
644
- export interface AvailabilityRequestParams {
645
- /**
646
- * Array of resource IDs for which availability is requested.
647
- * Must contain at least one and at most 200 resource IDs.
648
- */
649
- resourceIds: string[];
650
- /**
651
- * The UTC datetime from which to start fetching availability (ISO 8601 format).
652
- */
653
- start: string;
654
- /**
655
- * The UTC datetime until which to fetch availability (ISO 8601 format).
656
- * Must be after start and within 375 days.
657
- */
658
- end: string;
659
- /**
660
- * If true, merged availability time intervals are returned in the response.
661
- * Defaults to false.
662
- */
663
- mergedAvailabilities?: boolean;
664
- /**
665
- * If true (or omitted), a list of availability entries is returned.
666
- * Defaults to true.
667
- */
668
- entries?: boolean;
669
- }
670
- export interface AvailabilityResult {
671
- resourceId: string;
672
- mergedAvailabilities?: {
673
- start: string;
674
- end: string;
675
- }[];
676
- entries?: AvailabilityEntry[];
677
- }
678
- export interface AvailabilityEntry {
679
- type: "template" | "pattern" | "override" | "holiday";
680
- start: string;
681
- end: string;
682
- available: boolean;
683
- templateEntryId?: string;
684
- name?: string;
685
- patternId?: string;
686
- patternRecordId?: string;
687
- }
688
- declare class AvailabilityAPIClient extends BaseClient {
689
- /**
690
- * Fetches resource availability based on the given request parameters.
691
- * @param {AvailabilityRequestParams} params - The request parameters for availability.
692
- * @returns {Promise<AvailabilityResult[]>} - The availability data for the requested resources.
693
- */
694
- fetchAvailability(params: AvailabilityRequestParams): Promise<AvailabilityResult[]>;
695
- }
696
- declare class ConfigFeaturesClient extends BaseClient {
697
- /**
698
- * Fetches feature flags configuration.
699
- * @returns {Promise<Record<string, any>>} - A promise resolving to the sorted feature flags in JSON string format.
700
- */
701
- get(): Promise<Record<string, any>>;
702
- /**
703
- * Deploys feature flags configuration.
704
- * @param {string} newConfig - The new configuration to be deployed.
705
- * @returns {Promise<Record<string, any>>} - A promise resolving when the configuration is successfully deployed.
706
- */
707
- update(tenantId: string, newConfig: Record<string, any>): Promise<Record<string, any>>;
521
+ location: [
522
+ number,
523
+ number
524
+ ];
525
+ timestamp: number;
526
+ }
527
+ export interface TimezoneResponse {
528
+ dstOffset: number;
529
+ rawOffset: number;
530
+ timeZoneId: string;
708
531
  }
709
- declare class GeoAPIClient extends BaseClient {
532
+ export declare class GeoAPIClient extends BaseClient {
710
533
  /**
711
534
  * Computes travel distance and time for all combinations of origin and destination locations.
712
535
  */
@@ -732,6 +555,136 @@ declare class GeoAPIClient extends BaseClient {
732
555
  */
733
556
  getTimezone(data: TimezoneRequest): Promise<TimezoneResponse>;
734
557
  }
558
+ export interface HasId {
559
+ UID?: string;
560
+ [key: string]: any;
561
+ }
562
+ export interface GraphQlResponse<T = any> {
563
+ data: T;
564
+ errors?: object[];
565
+ }
566
+ export interface GraphqlParams {
567
+ objectName: string;
568
+ operationName: string;
569
+ }
570
+ export interface GraphqlMurationParams extends GraphqlParams {
571
+ records: HasId[];
572
+ operation: GraphqlOperations;
573
+ bulkOperation?: boolean;
574
+ }
575
+ export interface GraphqlQueryParams extends GraphqlParams {
576
+ first?: number;
577
+ offset?: number;
578
+ orderBy?: string;
579
+ filter?: string;
580
+ after?: string;
581
+ fields?: string;
582
+ readOnly?: boolean;
583
+ }
584
+ export interface QueryResult {
585
+ records: HasId[];
586
+ totalCount: number;
587
+ pageInfo: any;
588
+ endCursor: string;
589
+ endOffset: number;
590
+ }
591
+ export interface MutationResult {
592
+ data: {
593
+ schema: {
594
+ [alias: string]: string;
595
+ };
596
+ };
597
+ }
598
+ /**
599
+ * A client for executing GraphQL queries and mutations.
600
+ * Extends the BaseClient to interact with the GraphQL API.
601
+ */
602
+ export declare class GraphQLClient extends BaseClient {
603
+ /**
604
+ * Executes a GraphQL query or mutation.
605
+ * @param {string} graphqlQuery - The GraphQL query or mutation string.
606
+ * @param {Record<string, string>} headers - Additional headers to include in the request.
607
+ * @returns {Promise<GraphQlResponse>} - The response from the GraphQL API.
608
+ * @throws {Error} - If the request fails or if there are errors in the response.
609
+ */
610
+ execute(graphqlQuery: string, headers?: Record<string, string>): Promise<GraphQlResponse>;
611
+ /**
612
+ * Executes a GraphQL query or mutation.
613
+ * @param {string} graphqlQuery - The GraphQL queries and/or mutations.
614
+ * @param {Record<string, string>} headers - Additional headers to include in the request.
615
+ * @returns {Promise<GraphQlResponse>} - The response from the GraphQL API.
616
+ * @throws {Error} - If the request fails or if there are errors in the response.
617
+ */
618
+ executeBatch(graphqlQuery: string, headers?: Record<string, string>): Promise<GraphQlResponse>;
619
+ protected handleResponseData(responseData: any): void;
620
+ }
621
+ /**
622
+ * Interface representing the structure of metadata for an object.
623
+ */
624
+ export interface Metadata {
625
+ label: string;
626
+ labelPlural: string | null;
627
+ mapping: string;
628
+ name: string;
629
+ }
630
+ /**
631
+ * Interface representing the metadata for a specific object, extending the base Metadata interface.
632
+ */
633
+ export interface ObjectMetadata extends Metadata {
634
+ relationships: any[];
635
+ fields: any[];
636
+ }
637
+ /**
638
+ * Interface representing the structure of a relationship.
639
+ */
640
+ export interface RelationshipMapping {
641
+ schemaMapping: string;
642
+ mapping: string;
643
+ fieldMapping: string;
644
+ }
645
+ /**
646
+ * Interface representing the structure of a field.
647
+ */
648
+ export interface FieldMetadata {
649
+ label: string;
650
+ mapping: string;
651
+ type: string;
652
+ nillable: boolean;
653
+ length: number;
654
+ maxLength: number | null;
655
+ precision: number | null;
656
+ scale: number | null;
657
+ upsertKey: boolean;
658
+ unique: boolean;
659
+ readOnly: boolean;
660
+ accessMode: "read_only" | "read_write";
661
+ relationship: RelationshipMapping | null;
662
+ values: Array<PicklistValue>;
663
+ name: string;
664
+ }
665
+ export interface PicklistValue {
666
+ label: string;
667
+ value: string;
668
+ active: boolean;
669
+ defaultValue: boolean;
670
+ }
671
+ /**
672
+ * MetadataClient class to handle API requests related to metadata.
673
+ * Extends BaseClient to perform API operations.
674
+ */
675
+ export declare class MetadataClient extends BaseClient {
676
+ /**
677
+ * Fetches all metadata mappings from the metadata endpoint.
678
+ * @returns {Promise<Metadata[]>} - A promise resolving to an object containing an array of Metadata.
679
+ */
680
+ fetchAllMetadata(): Promise<Metadata[]>;
681
+ /**
682
+ * Fetches metadata for a specific object using its mapping.
683
+ * @param {string} mapping - The API mapping for the object.
684
+ * @returns {Promise<ObjectMetadata>} - A promise resolving to an object containing the metadata of the requested object.
685
+ */
686
+ fetchObjectMetadata(mapping: string): Promise<ObjectMetadata>;
687
+ }
735
688
  export interface JobRequest {
736
689
  jobId: string;
737
690
  }
@@ -776,7 +729,11 @@ export interface SmsConfirmationRequest extends JobRequest {
776
729
  export interface SmsResponse {
777
730
  success: boolean;
778
731
  }
779
- declare class MobileNotificationClient extends BaseClient {
732
+ /**
733
+ * Client for handling mobile notifications API operations.
734
+ * Extends BaseClient to provide request methods.
735
+ */
736
+ export declare class MobileNotificationClient extends BaseClient {
780
737
  /**
781
738
  * Fetches all mobile notification templates from the API.
782
739
  * @returns {Promise<any>} - An array of mobile notification templates.
@@ -832,6 +789,23 @@ declare class MobileNotificationClient extends BaseClient {
832
789
  */
833
790
  requestSmsConfirmation(request: SmsConfirmationRequest): Promise<SmsResponse>;
834
791
  }
792
+ /**
793
+ * OrgPreferencesClient class to handle API requests related to organization preferences.
794
+ * Extends BaseClient to perform API operations.
795
+ */
796
+ export declare class OrgPreferenceClient extends BaseClient {
797
+ /**
798
+ * Fetches the organization preferences configuration.
799
+ * @returns {Promise<Record<string, any>>} - A promise resolving to the sorted organization preferences.
800
+ */
801
+ get(): Promise<Record<string, any>>;
802
+ /**
803
+ * Deploys the organization preferences configuration.
804
+ * @param {Record<string, any>} newConfig - The new configuration to be deployed.
805
+ * @returns {Promise<Record<string, any>>} - A promise resolving when the configuration is successfully deployed.
806
+ */
807
+ deploy(newConfig: Record<string, any>): Promise<Record<string, any>>;
808
+ }
835
809
  export interface VocabularyItem {
836
810
  value: string;
837
811
  label: string;
@@ -841,7 +815,11 @@ export interface VocabularyItem {
841
815
  createdAt?: string;
842
816
  updatedAt?: string;
843
817
  }
844
- declare class VocabularyClient extends BaseClient {
818
+ /**
819
+ * VocabularyClient handles API requests related to vocabulary fields.
820
+ * Extends BaseClient to perform API operations.
821
+ */
822
+ export declare class VocabularyClient extends BaseClient {
845
823
  /**
846
824
  * Fetches vocabulary items for a specific field in a schema.
847
825
  * @param {string} schemaName - The schema name.
@@ -867,6 +845,74 @@ declare class VocabularyClient extends BaseClient {
867
845
  */
868
846
  updateVocabularyItem(schemaName: string, fieldName: string, value: string, item: VocabularyItem): Promise<VocabularyItem>;
869
847
  }
848
+ export interface BaseObject {
849
+ id: string;
850
+ name: string;
851
+ propertyMap?: Record<string, any>;
852
+ }
853
+ export interface BaseEvent extends BaseObject {
854
+ start: Date;
855
+ finish: Date;
856
+ eventType?: string;
857
+ description?: string;
858
+ geoLocation?: LatLng;
859
+ }
860
+ export interface Resource extends BaseObject {
861
+ category?: string;
862
+ employmentType?: string;
863
+ resourceType?: string;
864
+ userId?: string;
865
+ regionId?: string;
866
+ timezone: string;
867
+ tags: Tag[];
868
+ availabilities: BaseEvent[];
869
+ events: BaseEvent[];
870
+ }
871
+ export interface Tag extends BaseObject {
872
+ }
873
+ export interface Availability extends BaseEvent {
874
+ resourceId: string;
875
+ isAvailable: boolean;
876
+ status: string;
877
+ availabilityType: string;
878
+ }
879
+ export interface Activity extends BaseEvent {
880
+ resourceId: string;
881
+ activityType: string;
882
+ }
883
+ export interface JobAllocation extends BaseEvent {
884
+ jobId: string;
885
+ resourceId: string;
886
+ status: string;
887
+ }
888
+ export interface Job extends BaseEvent {
889
+ address: string;
890
+ contactId: string;
891
+ jobStatus: string;
892
+ regionId: string;
893
+ tags: Tag[];
894
+ }
895
+ export interface ResourceShift extends BaseEvent {
896
+ resourceId: string;
897
+ shift: Shift;
898
+ }
899
+ export interface Shift extends BaseEvent {
900
+ regionId: string;
901
+ displayName: string;
902
+ isDraft: boolean;
903
+ }
904
+ export declare class EntityFactory {
905
+ static createBaseObject(data: Record<string, string>): BaseObject;
906
+ static createBaseEvent(data: Record<string, string>): BaseEvent;
907
+ static createTag(data: Record<string, any>): Tag;
908
+ static createResource(data: Record<string, any>): Resource;
909
+ static createJob(data: Record<string, any>): Job;
910
+ static createAvailability(data: Record<string, any>): Availability;
911
+ static createActivity(data: Record<string, any>): Activity;
912
+ static createJobAllocation(data: Record<string, any>): JobAllocation;
913
+ static createResourceShift(data: Record<string, any>): ResourceShift;
914
+ static createShift(data: Record<string, any>): Shift;
915
+ }
870
916
  export interface LockInfo {
871
917
  name: string;
872
918
  ttl: number;
@@ -950,7 +996,7 @@ export interface CacheOptions<T> {
950
996
  ttl?: number;
951
997
  useSecondaryCache?: boolean;
952
998
  }
953
- declare class GeoService {
999
+ export declare class GeoService {
954
1000
  private geoAPIClient;
955
1001
  private sessionId;
956
1002
  constructor(geoAPIClient: GeoAPIClient);
@@ -1114,12 +1160,33 @@ export declare class GraphQLQueryBuilder {
1114
1160
  */
1115
1161
  toString(): string;
1116
1162
  }
1117
- declare class LockService {
1163
+ export declare class LockService {
1118
1164
  private configVarClient;
1119
1165
  constructor(configVarClient: ConfigVarClient);
1120
1166
  acquireLock(lockInfo: LockInfo): Promise<boolean>;
1121
1167
  releaseLock(name: string): Promise<void>;
1122
1168
  }
1169
+ /**
1170
+ * MetadataService class to process and filter metadata.
1171
+ */
1172
+ export declare class MetadataService {
1173
+ private client;
1174
+ constructor(client: MetadataClient);
1175
+ /**
1176
+ * Retrieves metadata for specific objects.
1177
+ *
1178
+ * @param objectNames - The names of the objects.
1179
+ * @returns A promise that resolves to metadata records.
1180
+ */
1181
+ getObjectMetadata(objectNames: string[]): Promise<Record<string, ObjectMetadata>>;
1182
+ /**
1183
+ * Extracts picklist values from the object metadata.
1184
+ *
1185
+ * @param metadata - The metadata of the object.
1186
+ * @returns An object containing the picklist values for each picklist field.
1187
+ */
1188
+ getPicklistValues(metadata: ObjectMetadata): Record<string, string[]>;
1189
+ }
1123
1190
  export declare class ResourceQueryParam {
1124
1191
  resourceIds?: Set<string>;
1125
1192
  regionIds?: Set<string>;
@@ -1220,6 +1287,7 @@ export declare class DateTimeUtils {
1220
1287
  static mergeEvents(events: BaseEvent[]): BaseEvent[];
1221
1288
  }
1222
1289
  export declare class ExecutionContext {
1290
+ private static instance;
1223
1291
  skedContext: any;
1224
1292
  contextData: any;
1225
1293
  private baseConfig;
@@ -1229,6 +1297,7 @@ export declare class ExecutionContext {
1229
1297
  protected constructor(skedContext: any, executionOptions: Partial<ExecutionOptions> | undefined, threshholds: ThresholdConfig);
1230
1298
  static fromContext(skedContext: any, executionOptions?: Partial<ExecutionOptions>, threshholds?: ThresholdConfig): ExecutionContext;
1231
1299
  static fromCredentials(config: BaseConfig, executionOptions?: Partial<ExecutionOptions>, threshholds?: ThresholdConfig): ExecutionContext;
1300
+ private updateConfig;
1232
1301
  set executionOptions(executionOptions: Partial<ExecutionOptions>);
1233
1302
  get executionOptions(): Partial<ExecutionOptions>;
1234
1303
  /**
@@ -1249,6 +1318,7 @@ export declare class ExecutionContext {
1249
1318
  get mobileNotificationClient(): MobileNotificationClient;
1250
1319
  get geoAPIClient(): GeoAPIClient;
1251
1320
  get availabilityAPIClient(): AvailabilityAPIClient;
1321
+ get filesAPIClient(): FilesAPIClient;
1252
1322
  get geoService(): GeoService;
1253
1323
  get lockService(): LockService;
1254
1324
  get configVarCache(): CacheService<any>;
@@ -1327,54 +1397,6 @@ export declare const TenantObjects: {
1327
1397
  * Uses Winston logger but retains ANSI colors for console logs.
1328
1398
  */
1329
1399
  export declare function LogMethod(namespace?: string): (target: any, propertyKey: any, descriptor: any) => any;
1330
- export interface BatchJobSchemaData extends HasId {
1331
- StatusDetails?: string;
1332
- MaximumBatches?: number;
1333
- Status?: string;
1334
- ProcessedBatches?: number;
1335
- ObjectName?: string;
1336
- JobType?: string;
1337
- BatchProcessor?: string;
1338
- CreatedDate?: string;
1339
- FilterCondition?: string;
1340
- OrderBy?: string;
1341
- Fields?: string;
1342
- JobHandler?: string;
1343
- State?: string;
1344
- DelaySeconds?: number;
1345
- CallbackURL?: string;
1346
- ProcessingAt?: string;
1347
- CompletedAt?: string;
1348
- FailedBatches?: number;
1349
- FetchingStrategy?: string;
1350
- }
1351
- export interface BatchOrchestratorConfig {
1352
- isAsyncProcessing?: boolean;
1353
- }
1354
- export interface BatchState {
1355
- processor?: {
1356
- cursor?: string;
1357
- allCursors?: string[];
1358
- batchNumber?: number;
1359
- };
1360
- worker?: any;
1361
- }
1362
- export declare class BatchOrchestrator {
1363
- protected context: ExecutionContext;
1364
- protected config: BatchOrchestratorConfig;
1365
- constructor(context: ExecutionContext, config?: BatchOrchestratorConfig);
1366
- processBatchJob(): Promise<void>;
1367
- protected validateJob(): void;
1368
- protected prepareData(): Promise<void>;
1369
- protected sendWorkerStateToCallbackUrl(): Promise<void>;
1370
- protected getWorkerState(): object;
1371
- protected delay(ms: number): Promise<void>;
1372
- protected processWorker(): Promise<void>;
1373
- protected processNextBatch(): Promise<void>;
1374
- protected postProcess(): Promise<void>;
1375
- protected updateJobStatus(): Promise<void>;
1376
- private isCompleted;
1377
- }
1378
1400
  export declare enum PaginationStrategy {
1379
1401
  CURSOR = "cursor",
1380
1402
  OFFSET = "offset",