@gofynd/fdk-client-javascript 1.5.2 → 1.6.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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.js +293 -0
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +408 -0
  5. package/sdk/application/Common/CommonApplicationClient.js +21 -0
  6. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  7. package/sdk/application/Configuration/ConfigurationApplicationClient.js +147 -0
  8. package/sdk/application/Content/ContentApplicationClient.js +226 -0
  9. package/sdk/application/FileStorage/FileStorageApplicationClient.js +43 -0
  10. package/sdk/application/Finance/FinanceApplicationClient.js +21 -0
  11. package/sdk/application/Lead/LeadApplicationClient.js +73 -0
  12. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
  13. package/sdk/application/Logistic/LogisticApplicationClient.js +192 -3
  14. package/sdk/application/Order/OrderApplicationClient.js +202 -0
  15. package/sdk/application/Payment/PaymentApplicationClient.js +454 -0
  16. package/sdk/application/Rewards/RewardsApplicationClient.js +68 -0
  17. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  18. package/sdk/application/Theme/ThemeApplicationClient.js +64 -0
  19. package/sdk/application/User/UserApplicationClient.js +412 -0
  20. package/sdk/application/Webhook/WebhookApplicationClient.js +13 -0
  21. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -0
  22. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +75 -0
  23. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  24. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  25. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -0
  26. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +6 -0
  27. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +16 -3
  28. package/sdk/partner/Webhook/WebhookPartnerModel.js +5 -3
  29. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  30. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  31. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +46 -23
  32. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -23
  33. package/sdk/platform/Cart/CartPlatformModel.d.ts +90 -1
  34. package/sdk/platform/Cart/CartPlatformModel.js +51 -0
  35. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
  36. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
  37. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
  38. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
  39. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -0
  40. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +82 -0
  41. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +10 -1
  42. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +12 -0
  43. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +108 -1
  44. package/sdk/platform/Payment/PaymentPlatformModel.js +77 -0
  45. package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
  46. package/sdk/platform/User/UserPlatformModel.js +2 -2
  47. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -14
  48. package/sdk/platform/Webhook/WebhookPlatformModel.js +15 -14
  49. package/sdk/public/Catalog/CatalogPublicClient.js +15 -0
  50. package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
  51. package/sdk/public/Content/ContentPublicClient.js +116 -0
  52. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  53. package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
  54. package/sdk/public/Webhook/WebhookPublicModel.d.ts +194 -46
  55. package/sdk/public/Webhook/WebhookPublicModel.js +51 -46
@@ -58,6 +58,14 @@ class Content {
58
58
  { requestHeaders } = { requestHeaders: {} },
59
59
  { responseHeaders } = { responseHeaders: false }
60
60
  ) {
61
+ let invalidInput = [];
62
+ if (invalidInput.length) {
63
+ const error = new Error();
64
+ error.message = "Missing required field";
65
+ error.details = invalidInput;
66
+ return Promise.reject(new FDKClientValidationError(error));
67
+ }
68
+
61
69
  const { error } = ContentPublicValidator.getAllTags().validate(
62
70
  {},
63
71
  { abortEarly: false, allowUnknown: true }
@@ -134,6 +142,14 @@ class Content {
134
142
  { requestHeaders } = { requestHeaders: {} },
135
143
  { responseHeaders } = { responseHeaders: false }
136
144
  ) {
145
+ let invalidInput = [];
146
+ if (invalidInput.length) {
147
+ const error = new Error();
148
+ error.message = "Missing required field";
149
+ error.details = invalidInput;
150
+ return Promise.reject(new FDKClientValidationError(error));
151
+ }
152
+
137
153
  const { error } = ContentPublicValidator.getAnalyticsTags().validate(
138
154
  {},
139
155
  { abortEarly: false, allowUnknown: true }
@@ -212,6 +228,14 @@ class Content {
212
228
  { requestHeaders } = { requestHeaders: {} },
213
229
  { responseHeaders } = { responseHeaders: false }
214
230
  ) {
231
+ let invalidInput = [];
232
+ if (invalidInput.length) {
233
+ const error = new Error();
234
+ error.message = "Missing required field";
235
+ error.details = invalidInput;
236
+ return Promise.reject(new FDKClientValidationError(error));
237
+ }
238
+
215
239
  const { error } = ContentPublicValidator.getBasicDetails().validate(
216
240
  {},
217
241
  { abortEarly: false, allowUnknown: true }
@@ -290,6 +314,21 @@ class Content {
290
314
  { entityType, requestHeaders } = { requestHeaders: {} },
291
315
  { responseHeaders } = { responseHeaders: false }
292
316
  ) {
317
+ let invalidInput = [];
318
+
319
+ if (!entityType) {
320
+ invalidInput.push({
321
+ message: `The 'entityType' field is required.`,
322
+ path: ["entityType"],
323
+ });
324
+ }
325
+ if (invalidInput.length) {
326
+ const error = new Error();
327
+ error.message = "Missing required field";
328
+ error.details = invalidInput;
329
+ return Promise.reject(new FDKClientValidationError(error));
330
+ }
331
+
293
332
  const { error } = ContentPublicValidator.getCredentialsByEntity().validate(
294
333
  { entityType },
295
334
  { abortEarly: false, allowUnknown: true }
@@ -368,6 +407,21 @@ class Content {
368
407
  { slug, requestHeaders } = { requestHeaders: {} },
369
408
  { responseHeaders } = { responseHeaders: false }
370
409
  ) {
410
+ let invalidInput = [];
411
+
412
+ if (!slug) {
413
+ invalidInput.push({
414
+ message: `The 'slug' field is required.`,
415
+ path: ["slug"],
416
+ });
417
+ }
418
+ if (invalidInput.length) {
419
+ const error = new Error();
420
+ error.message = "Missing required field";
421
+ error.details = invalidInput;
422
+ return Promise.reject(new FDKClientValidationError(error));
423
+ }
424
+
371
425
  const { error } = ContentPublicValidator.getCustomPage().validate(
372
426
  { slug },
373
427
  { abortEarly: false, allowUnknown: true }
@@ -444,6 +498,14 @@ class Content {
444
498
  { requestHeaders } = { requestHeaders: {} },
445
499
  { responseHeaders } = { responseHeaders: false }
446
500
  ) {
501
+ let invalidInput = [];
502
+ if (invalidInput.length) {
503
+ const error = new Error();
504
+ error.message = "Missing required field";
505
+ error.details = invalidInput;
506
+ return Promise.reject(new FDKClientValidationError(error));
507
+ }
508
+
447
509
  const { error } = ContentPublicValidator.getFooterContent().validate(
448
510
  {},
449
511
  { abortEarly: false, allowUnknown: true }
@@ -522,6 +584,21 @@ class Content {
522
584
  { pageType, requestHeaders } = { requestHeaders: {} },
523
585
  { responseHeaders } = { responseHeaders: false }
524
586
  ) {
587
+ let invalidInput = [];
588
+
589
+ if (!pageType) {
590
+ invalidInput.push({
591
+ message: `The 'pageType' field is required.`,
592
+ path: ["pageType"],
593
+ });
594
+ }
595
+ if (invalidInput.length) {
596
+ const error = new Error();
597
+ error.message = "Missing required field";
598
+ error.details = invalidInput;
599
+ return Promise.reject(new FDKClientValidationError(error));
600
+ }
601
+
525
602
  const { error } = ContentPublicValidator.getHomePageContent().validate(
526
603
  { pageType },
527
604
  { abortEarly: false, allowUnknown: true }
@@ -601,6 +678,14 @@ class Content {
601
678
  { requestHeaders } = { requestHeaders: {} },
602
679
  { responseHeaders } = { responseHeaders: false }
603
680
  ) {
681
+ let invalidInput = [];
682
+ if (invalidInput.length) {
683
+ const error = new Error();
684
+ error.message = "Missing required field";
685
+ error.details = invalidInput;
686
+ return Promise.reject(new FDKClientValidationError(error));
687
+ }
688
+
604
689
  const { error } = ContentPublicValidator.getMenuContent().validate(
605
690
  {},
606
691
  { abortEarly: false, allowUnknown: true }
@@ -679,6 +764,21 @@ class Content {
679
764
  { type, requestHeaders } = { requestHeaders: {} },
680
765
  { responseHeaders } = { responseHeaders: false }
681
766
  ) {
767
+ let invalidInput = [];
768
+
769
+ if (!type) {
770
+ invalidInput.push({
771
+ message: `The 'type' field is required.`,
772
+ path: ["type"],
773
+ });
774
+ }
775
+ if (invalidInput.length) {
776
+ const error = new Error();
777
+ error.message = "Missing required field";
778
+ error.details = invalidInput;
779
+ return Promise.reject(new FDKClientValidationError(error));
780
+ }
781
+
682
782
  const { error } = ContentPublicValidator.getMenuContentByType().validate(
683
783
  { type },
684
784
  { abortEarly: false, allowUnknown: true }
@@ -757,6 +857,14 @@ class Content {
757
857
  { requestHeaders } = { requestHeaders: {} },
758
858
  { responseHeaders } = { responseHeaders: false }
759
859
  ) {
860
+ let invalidInput = [];
861
+ if (invalidInput.length) {
862
+ const error = new Error();
863
+ error.message = "Missing required field";
864
+ error.details = invalidInput;
865
+ return Promise.reject(new FDKClientValidationError(error));
866
+ }
867
+
760
868
  const { error } = ContentPublicValidator.getNavbar().validate(
761
869
  {},
762
870
  { abortEarly: false, allowUnknown: true }
@@ -833,6 +941,14 @@ class Content {
833
941
  { requestHeaders } = { requestHeaders: {} },
834
942
  { responseHeaders } = { responseHeaders: false }
835
943
  ) {
944
+ let invalidInput = [];
945
+ if (invalidInput.length) {
946
+ const error = new Error();
947
+ error.message = "Missing required field";
948
+ error.details = invalidInput;
949
+ return Promise.reject(new FDKClientValidationError(error));
950
+ }
951
+
836
952
  const { error } = ContentPublicValidator.getPricingBanner().validate(
837
953
  {},
838
954
  { abortEarly: false, allowUnknown: true }
@@ -48,6 +48,21 @@ class Partner {
48
48
  { slug, requestHeaders } = { requestHeaders: {} },
49
49
  { responseHeaders } = { responseHeaders: false }
50
50
  ) {
51
+ let invalidInput = [];
52
+
53
+ if (!slug) {
54
+ invalidInput.push({
55
+ message: `The 'slug' field is required.`,
56
+ path: ["slug"],
57
+ });
58
+ }
59
+ if (invalidInput.length) {
60
+ const error = new Error();
61
+ error.message = "Missing required field";
62
+ error.details = invalidInput;
63
+ return Promise.reject(new FDKClientValidationError(error));
64
+ }
65
+
51
66
  const {
52
67
  error,
53
68
  } = PartnerPublicValidator.getPanelExtensionDetails().validate(
@@ -55,6 +55,14 @@ class Webhook {
55
55
  { requestHeaders } = { requestHeaders: {} },
56
56
  { responseHeaders } = { responseHeaders: false }
57
57
  ) {
58
+ let invalidInput = [];
59
+ if (invalidInput.length) {
60
+ const error = new Error();
61
+ error.message = "Missing required field";
62
+ error.details = invalidInput;
63
+ return Promise.reject(new FDKClientValidationError(error));
64
+ }
65
+
58
66
  const { error } = WebhookPublicValidator.fetchAllWebhookEvents().validate(
59
67
  {},
60
68
  { abortEarly: false, allowUnknown: true }
@@ -133,6 +141,14 @@ class Webhook {
133
141
  { requestHeaders } = { requestHeaders: {} },
134
142
  { responseHeaders } = { responseHeaders: false }
135
143
  ) {
144
+ let invalidInput = [];
145
+ if (invalidInput.length) {
146
+ const error = new Error();
147
+ error.message = "Missing required field";
148
+ error.details = invalidInput;
149
+ return Promise.reject(new FDKClientValidationError(error));
150
+ }
151
+
136
152
  const { error } = WebhookPublicValidator.notifyDepricatedEvent().validate(
137
153
  {},
138
154
  { abortEarly: false, allowUnknown: true }
@@ -211,6 +227,14 @@ class Webhook {
211
227
  { body, requestHeaders } = { requestHeaders: {} },
212
228
  { responseHeaders } = { responseHeaders: false }
213
229
  ) {
230
+ let invalidInput = [];
231
+ if (invalidInput.length) {
232
+ const error = new Error();
233
+ error.message = "Missing required field";
234
+ error.details = invalidInput;
235
+ return Promise.reject(new FDKClientValidationError(error));
236
+ }
237
+
214
238
  const {
215
239
  error,
216
240
  } = WebhookPublicValidator.queryWebhookEventDetails().validate(
@@ -291,6 +315,14 @@ class Webhook {
291
315
  { body, requestHeaders } = { requestHeaders: {} },
292
316
  { responseHeaders } = { responseHeaders: false }
293
317
  ) {
318
+ let invalidInput = [];
319
+ if (invalidInput.length) {
320
+ const error = new Error();
321
+ error.message = "Missing required field";
322
+ error.details = invalidInput;
323
+ return Promise.reject(new FDKClientValidationError(error));
324
+ }
325
+
294
326
  const {
295
327
  error,
296
328
  } = WebhookPublicValidator.testHandlerTransformation().validate(
@@ -371,6 +403,14 @@ class Webhook {
371
403
  { body, requestHeaders } = { requestHeaders: {} },
372
404
  { responseHeaders } = { responseHeaders: false }
373
405
  ) {
406
+ let invalidInput = [];
407
+ if (invalidInput.length) {
408
+ const error = new Error();
409
+ error.message = "Missing required field";
410
+ error.details = invalidInput;
411
+ return Promise.reject(new FDKClientValidationError(error));
412
+ }
413
+
374
414
  const { error } = WebhookPublicValidator.validateSchema().validate(
375
415
  { body },
376
416
  { abortEarly: false, allowUnknown: true }
@@ -1,92 +1,97 @@
1
1
  export = WebhookPublicModel;
2
2
  /**
3
3
  * @typedef EventConfig
4
- * @property {number} [id]
5
- * @property {string} [event_name]
6
- * @property {string} [event_type]
7
- * @property {string} [event_category]
8
- * @property {Object} [event_schema]
9
- * @property {string} [version]
10
- * @property {string} [display_name]
11
- * @property {string} [description]
12
- * @property {string} [created_on]
13
- * @property {string} [updated_on]
14
- * @property {string} [group]
4
+ * @property {number} [id] - The unique identifier for the event configuration.
5
+ * @property {string} [event_name] - The name of the event.
6
+ * @property {string} [event_type] - The type of the event.
7
+ * @property {string} [event_category] - The category of the event.
8
+ * @property {Object} [event_schema] - The schema defining the event data structure.
9
+ * @property {string} [version] - The version of the event configuration.
10
+ * @property {string} [display_name] - A user-friendly name for the event.
11
+ * @property {string} [description] - A detailed description of the event.
12
+ * @property {string} [created_on] - The timestamp when the event configuration
13
+ * was created.
14
+ * @property {string} [updated_on] - The timestamp when the event configuration
15
+ * was last updated.
16
+ * @property {string} [group] - The group to which the event belongs.
15
17
  */
16
18
  /**
17
19
  * @typedef EventDetails
18
- * @property {EventConfig[]} [event_configs]
20
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
19
21
  */
20
22
  /**
21
23
  * @typedef EventConfigBase
22
- * @property {string} [event_name]
23
- * @property {string} [event_type]
24
- * @property {string} [event_category]
25
- * @property {string} [version]
24
+ * @property {string} [event_name] - The name of the event.
25
+ * @property {string} [event_type] - The type of the event.
26
+ * @property {string} [event_category] - The category of the event.
27
+ * @property {string} [version] - The version of the event configuration.
26
28
  */
27
29
  /**
28
30
  * @typedef EventNotifier
29
- * @property {string} [message]
30
- * @property {string[]} [emails]
31
+ * @property {string} [message] - The message to be sent in the notification.
32
+ * @property {string[]} [emails] - List of email addresses to notify.
31
33
  */
32
34
  /**
33
35
  * @typedef EventSchema
34
- * @property {Object} [payload]
35
- * @property {Object} [meta]
36
+ * @property {Object} [payload] - The event data payload.
37
+ * @property {Object} [meta] - Metadata related to the event.
36
38
  */
37
39
  /**
38
40
  * @typedef InternalTransformEvent
39
- * @property {string[]} [trace_id]
40
- * @property {string} [name]
41
- * @property {string} [type]
42
- * @property {string} [version]
43
- * @property {number} [created_timestamp]
41
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
42
+ * @property {string} [name] - The name of the transformation event.
43
+ * @property {string} [type] - The type of the transformation event.
44
+ * @property {string} [version] - The version of the transformation event.
45
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
44
46
  */
45
47
  /**
46
48
  * @typedef TransformEventData
47
49
  * @property {InternalTransformEvent} [event]
48
- * @property {number} [company_id]
49
- * @property {string[]} [contains]
50
- * @property {Object} [payload]
50
+ * @property {number} [company_id] - The company ID associated with the event.
51
+ * @property {string[]} [contains] - List of strings related to the event.
52
+ * @property {Object} [payload] - Event data payload.
51
53
  */
52
54
  /**
53
55
  * @typedef TransformEventServiceMeta
54
- * @property {string} [name]
56
+ * @property {string} [name] - The name of the transformation service.
55
57
  */
56
58
  /**
57
59
  * @typedef TransformEventAssociation
58
- * @property {number} [company_id]
60
+ * @property {number} [company_id] - The company ID associated with the event.
59
61
  */
60
62
  /**
61
63
  * @typedef TransformEventPayload
62
- * @property {string} event_name
63
- * @property {string} event_type
64
- * @property {string} event_category
65
- * @property {string} event_version
64
+ * @property {string} event_name - The name of the event.
65
+ * @property {string} event_type - The type of the event.
66
+ * @property {string} event_category - The category of the event.
67
+ * @property {string} event_version - The version of the event.
66
68
  * @property {EventSchema} event
67
69
  */
68
70
  /**
69
71
  * @typedef ValidateSchemaPayload
70
- * @property {string} event_name
71
- * @property {string} event_type
72
- * @property {string} event_category
73
- * @property {string} event_version
72
+ * @property {string} event_name - The name of the event to validate.
73
+ * @property {string} event_type - The type of the event.
74
+ * @property {string} event_category - The category of the event.
75
+ * @property {string} event_version - The version of the event to validate.
74
76
  * @property {EventSchema} event
75
- * @property {Object} event_schema
77
+ * @property {Object} event_schema - The schema defining the structure of the event.
76
78
  */
77
79
  /**
78
80
  * @typedef ValidateSchemaResult
79
- * @property {boolean} [status]
80
- * @property {string} [message]
81
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
82
+ * or invalid (false).
83
+ * @property {string} [message] - A message providing additional details about
84
+ * the validation result.
81
85
  */
82
86
  /**
83
87
  * @typedef TransformEventResult
84
- * @property {string[]} [event_trace_id]
88
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
89
+ * transformation event.
85
90
  * @property {TransformEventData} [data]
86
- * @property {string} [event_name]
87
- * @property {string} [version]
88
- * @property {boolean} [status]
89
- * @property {string} [event_type]
91
+ * @property {string} [event_name] - The name of the transformation event.
92
+ * @property {string} [version] - The version of the transformation event.
93
+ * @property {boolean} [status] - The status of the event processing.
94
+ * @property {string} [event_type] - The type of the transformation event.
90
95
  * @property {TransformEventServiceMeta} [service_meta]
91
96
  * @property {TransformEventAssociation} [association]
92
97
  */
@@ -98,103 +103,246 @@ declare namespace WebhookPublicModel {
98
103
  /** @returns {EventConfig} */
99
104
  declare function EventConfig(): EventConfig;
100
105
  type EventConfig = {
106
+ /**
107
+ * - The unique identifier for the event configuration.
108
+ */
101
109
  id?: number;
110
+ /**
111
+ * - The name of the event.
112
+ */
102
113
  event_name?: string;
114
+ /**
115
+ * - The type of the event.
116
+ */
103
117
  event_type?: string;
118
+ /**
119
+ * - The category of the event.
120
+ */
104
121
  event_category?: string;
122
+ /**
123
+ * - The schema defining the event data structure.
124
+ */
105
125
  event_schema?: any;
126
+ /**
127
+ * - The version of the event configuration.
128
+ */
106
129
  version?: string;
130
+ /**
131
+ * - A user-friendly name for the event.
132
+ */
107
133
  display_name?: string;
134
+ /**
135
+ * - A detailed description of the event.
136
+ */
108
137
  description?: string;
138
+ /**
139
+ * - The timestamp when the event configuration
140
+ * was created.
141
+ */
109
142
  created_on?: string;
143
+ /**
144
+ * - The timestamp when the event configuration
145
+ * was last updated.
146
+ */
110
147
  updated_on?: string;
148
+ /**
149
+ * - The group to which the event belongs.
150
+ */
111
151
  group?: string;
112
152
  };
113
153
  /** @returns {EventDetails} */
114
154
  declare function EventDetails(): EventDetails;
115
155
  type EventDetails = {
156
+ /**
157
+ * - A list of event configuration details.
158
+ */
116
159
  event_configs?: EventConfig[];
117
160
  };
118
161
  /** @returns {EventConfigBase} */
119
162
  declare function EventConfigBase(): EventConfigBase;
120
163
  type EventConfigBase = {
164
+ /**
165
+ * - The name of the event.
166
+ */
121
167
  event_name?: string;
168
+ /**
169
+ * - The type of the event.
170
+ */
122
171
  event_type?: string;
172
+ /**
173
+ * - The category of the event.
174
+ */
123
175
  event_category?: string;
176
+ /**
177
+ * - The version of the event configuration.
178
+ */
124
179
  version?: string;
125
180
  };
126
181
  /** @returns {EventNotifier} */
127
182
  declare function EventNotifier(): EventNotifier;
128
183
  type EventNotifier = {
184
+ /**
185
+ * - The message to be sent in the notification.
186
+ */
129
187
  message?: string;
188
+ /**
189
+ * - List of email addresses to notify.
190
+ */
130
191
  emails?: string[];
131
192
  };
132
193
  /** @returns {EventSchema} */
133
194
  declare function EventSchema(): EventSchema;
134
195
  type EventSchema = {
196
+ /**
197
+ * - The event data payload.
198
+ */
135
199
  payload?: any;
200
+ /**
201
+ * - Metadata related to the event.
202
+ */
136
203
  meta?: any;
137
204
  };
138
205
  /** @returns {InternalTransformEvent} */
139
206
  declare function InternalTransformEvent(): InternalTransformEvent;
140
207
  type InternalTransformEvent = {
208
+ /**
209
+ * - List of trace IDs related to the event.
210
+ */
141
211
  trace_id?: string[];
212
+ /**
213
+ * - The name of the transformation event.
214
+ */
142
215
  name?: string;
216
+ /**
217
+ * - The type of the transformation event.
218
+ */
143
219
  type?: string;
220
+ /**
221
+ * - The version of the transformation event.
222
+ */
144
223
  version?: string;
224
+ /**
225
+ * - The timestamp when the event was created.
226
+ */
145
227
  created_timestamp?: number;
146
228
  };
147
229
  /** @returns {TransformEventData} */
148
230
  declare function TransformEventData(): TransformEventData;
149
231
  type TransformEventData = {
150
232
  event?: InternalTransformEvent;
233
+ /**
234
+ * - The company ID associated with the event.
235
+ */
151
236
  company_id?: number;
237
+ /**
238
+ * - List of strings related to the event.
239
+ */
152
240
  contains?: string[];
241
+ /**
242
+ * - Event data payload.
243
+ */
153
244
  payload?: any;
154
245
  };
155
246
  /** @returns {TransformEventServiceMeta} */
156
247
  declare function TransformEventServiceMeta(): TransformEventServiceMeta;
157
248
  type TransformEventServiceMeta = {
249
+ /**
250
+ * - The name of the transformation service.
251
+ */
158
252
  name?: string;
159
253
  };
160
254
  /** @returns {TransformEventAssociation} */
161
255
  declare function TransformEventAssociation(): TransformEventAssociation;
162
256
  type TransformEventAssociation = {
257
+ /**
258
+ * - The company ID associated with the event.
259
+ */
163
260
  company_id?: number;
164
261
  };
165
262
  /** @returns {TransformEventPayload} */
166
263
  declare function TransformEventPayload(): TransformEventPayload;
167
264
  type TransformEventPayload = {
265
+ /**
266
+ * - The name of the event.
267
+ */
168
268
  event_name: string;
269
+ /**
270
+ * - The type of the event.
271
+ */
169
272
  event_type: string;
273
+ /**
274
+ * - The category of the event.
275
+ */
170
276
  event_category: string;
277
+ /**
278
+ * - The version of the event.
279
+ */
171
280
  event_version: string;
172
281
  event: EventSchema;
173
282
  };
174
283
  /** @returns {ValidateSchemaPayload} */
175
284
  declare function ValidateSchemaPayload(): ValidateSchemaPayload;
176
285
  type ValidateSchemaPayload = {
286
+ /**
287
+ * - The name of the event to validate.
288
+ */
177
289
  event_name: string;
290
+ /**
291
+ * - The type of the event.
292
+ */
178
293
  event_type: string;
294
+ /**
295
+ * - The category of the event.
296
+ */
179
297
  event_category: string;
298
+ /**
299
+ * - The version of the event to validate.
300
+ */
180
301
  event_version: string;
181
302
  event: EventSchema;
303
+ /**
304
+ * - The schema defining the structure of the event.
305
+ */
182
306
  event_schema: any;
183
307
  };
184
308
  /** @returns {ValidateSchemaResult} */
185
309
  declare function ValidateSchemaResult(): ValidateSchemaResult;
186
310
  type ValidateSchemaResult = {
311
+ /**
312
+ * - Indicates whether the schema is valid (true)
313
+ * or invalid (false).
314
+ */
187
315
  status?: boolean;
316
+ /**
317
+ * - A message providing additional details about
318
+ * the validation result.
319
+ */
188
320
  message?: string;
189
321
  };
190
322
  /** @returns {TransformEventResult} */
191
323
  declare function TransformEventResult(): TransformEventResult;
192
324
  type TransformEventResult = {
325
+ /**
326
+ * - List of trace IDs related to the
327
+ * transformation event.
328
+ */
193
329
  event_trace_id?: string[];
194
330
  data?: TransformEventData;
331
+ /**
332
+ * - The name of the transformation event.
333
+ */
195
334
  event_name?: string;
335
+ /**
336
+ * - The version of the transformation event.
337
+ */
196
338
  version?: string;
339
+ /**
340
+ * - The status of the event processing.
341
+ */
197
342
  status?: boolean;
343
+ /**
344
+ * - The type of the transformation event.
345
+ */
198
346
  event_type?: string;
199
347
  service_meta?: TransformEventServiceMeta;
200
348
  association?: TransformEventAssociation;