@gofynd/fdk-client-javascript 1.5.1 → 1.6.0

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 (64) 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 +59 -1
  34. package/sdk/platform/Cart/CartPlatformModel.js +31 -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 +129 -1
  44. package/sdk/platform/Payment/PaymentPlatformModel.js +94 -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.d.ts +22 -0
  50. package/sdk/public/Catalog/CatalogPublicClient.js +138 -0
  51. package/sdk/public/Catalog/CatalogPublicModel.d.ts +155 -0
  52. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  53. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  54. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  55. package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
  56. package/sdk/public/Content/ContentPublicClient.js +116 -0
  57. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  58. package/sdk/public/PublicClient.d.ts +2 -0
  59. package/sdk/public/PublicClient.js +4 -0
  60. package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
  61. package/sdk/public/Webhook/WebhookPublicModel.d.ts +194 -46
  62. package/sdk/public/Webhook/WebhookPublicModel.js +51 -46
  63. package/sdk/public/index.d.ts +1 -0
  64. package/sdk/public/index.js +2 -0
@@ -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;
@@ -2,104 +2,109 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef EventConfig
5
- * @property {number} [id]
6
- * @property {string} [event_name]
7
- * @property {string} [event_type]
8
- * @property {string} [event_category]
9
- * @property {Object} [event_schema]
10
- * @property {string} [version]
11
- * @property {string} [display_name]
12
- * @property {string} [description]
13
- * @property {string} [created_on]
14
- * @property {string} [updated_on]
15
- * @property {string} [group]
5
+ * @property {number} [id] - The unique identifier for the event configuration.
6
+ * @property {string} [event_name] - The name of the event.
7
+ * @property {string} [event_type] - The type of the event.
8
+ * @property {string} [event_category] - The category of the event.
9
+ * @property {Object} [event_schema] - The schema defining the event data structure.
10
+ * @property {string} [version] - The version of the event configuration.
11
+ * @property {string} [display_name] - A user-friendly name for the event.
12
+ * @property {string} [description] - A detailed description of the event.
13
+ * @property {string} [created_on] - The timestamp when the event configuration
14
+ * was created.
15
+ * @property {string} [updated_on] - The timestamp when the event configuration
16
+ * was last updated.
17
+ * @property {string} [group] - The group to which the event belongs.
16
18
  */
17
19
 
18
20
  /**
19
21
  * @typedef EventDetails
20
- * @property {EventConfig[]} [event_configs]
22
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
21
23
  */
22
24
 
23
25
  /**
24
26
  * @typedef EventConfigBase
25
- * @property {string} [event_name]
26
- * @property {string} [event_type]
27
- * @property {string} [event_category]
28
- * @property {string} [version]
27
+ * @property {string} [event_name] - The name of the event.
28
+ * @property {string} [event_type] - The type of the event.
29
+ * @property {string} [event_category] - The category of the event.
30
+ * @property {string} [version] - The version of the event configuration.
29
31
  */
30
32
 
31
33
  /**
32
34
  * @typedef EventNotifier
33
- * @property {string} [message]
34
- * @property {string[]} [emails]
35
+ * @property {string} [message] - The message to be sent in the notification.
36
+ * @property {string[]} [emails] - List of email addresses to notify.
35
37
  */
36
38
 
37
39
  /**
38
40
  * @typedef EventSchema
39
- * @property {Object} [payload]
40
- * @property {Object} [meta]
41
+ * @property {Object} [payload] - The event data payload.
42
+ * @property {Object} [meta] - Metadata related to the event.
41
43
  */
42
44
 
43
45
  /**
44
46
  * @typedef InternalTransformEvent
45
- * @property {string[]} [trace_id]
46
- * @property {string} [name]
47
- * @property {string} [type]
48
- * @property {string} [version]
49
- * @property {number} [created_timestamp]
47
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
48
+ * @property {string} [name] - The name of the transformation event.
49
+ * @property {string} [type] - The type of the transformation event.
50
+ * @property {string} [version] - The version of the transformation event.
51
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
50
52
  */
51
53
 
52
54
  /**
53
55
  * @typedef TransformEventData
54
56
  * @property {InternalTransformEvent} [event]
55
- * @property {number} [company_id]
56
- * @property {string[]} [contains]
57
- * @property {Object} [payload]
57
+ * @property {number} [company_id] - The company ID associated with the event.
58
+ * @property {string[]} [contains] - List of strings related to the event.
59
+ * @property {Object} [payload] - Event data payload.
58
60
  */
59
61
 
60
62
  /**
61
63
  * @typedef TransformEventServiceMeta
62
- * @property {string} [name]
64
+ * @property {string} [name] - The name of the transformation service.
63
65
  */
64
66
 
65
67
  /**
66
68
  * @typedef TransformEventAssociation
67
- * @property {number} [company_id]
69
+ * @property {number} [company_id] - The company ID associated with the event.
68
70
  */
69
71
 
70
72
  /**
71
73
  * @typedef TransformEventPayload
72
- * @property {string} event_name
73
- * @property {string} event_type
74
- * @property {string} event_category
75
- * @property {string} event_version
74
+ * @property {string} event_name - The name of the event.
75
+ * @property {string} event_type - The type of the event.
76
+ * @property {string} event_category - The category of the event.
77
+ * @property {string} event_version - The version of the event.
76
78
  * @property {EventSchema} event
77
79
  */
78
80
 
79
81
  /**
80
82
  * @typedef ValidateSchemaPayload
81
- * @property {string} event_name
82
- * @property {string} event_type
83
- * @property {string} event_category
84
- * @property {string} event_version
83
+ * @property {string} event_name - The name of the event to validate.
84
+ * @property {string} event_type - The type of the event.
85
+ * @property {string} event_category - The category of the event.
86
+ * @property {string} event_version - The version of the event to validate.
85
87
  * @property {EventSchema} event
86
- * @property {Object} event_schema
88
+ * @property {Object} event_schema - The schema defining the structure of the event.
87
89
  */
88
90
 
89
91
  /**
90
92
  * @typedef ValidateSchemaResult
91
- * @property {boolean} [status]
92
- * @property {string} [message]
93
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
94
+ * or invalid (false).
95
+ * @property {string} [message] - A message providing additional details about
96
+ * the validation result.
93
97
  */
94
98
 
95
99
  /**
96
100
  * @typedef TransformEventResult
97
- * @property {string[]} [event_trace_id]
101
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
102
+ * transformation event.
98
103
  * @property {TransformEventData} [data]
99
- * @property {string} [event_name]
100
- * @property {string} [version]
101
- * @property {boolean} [status]
102
- * @property {string} [event_type]
104
+ * @property {string} [event_name] - The name of the transformation event.
105
+ * @property {string} [version] - The version of the transformation event.
106
+ * @property {boolean} [status] - The status of the event processing.
107
+ * @property {string} [event_type] - The type of the transformation event.
103
108
  * @property {TransformEventServiceMeta} [service_meta]
104
109
  * @property {TransformEventAssociation} [association]
105
110
  */
@@ -1,6 +1,7 @@
1
1
  export const PublicConfig: typeof import("./PublicConfig");
2
2
  export const PublicClient: typeof import("./PublicClient");
3
3
  export namespace PublicModel {
4
+ const CatalogPublicModel: typeof import("./Catalog/CatalogPublicModel");
4
5
  const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
5
6
  const ContentPublicModel: typeof import("./Content/ContentPublicModel");
6
7
  const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel");
@@ -2,6 +2,8 @@ module.exports = {
2
2
  PublicConfig: require("./PublicConfig"),
3
3
  PublicClient: require("./PublicClient"),
4
4
  PublicModel: {
5
+ CatalogPublicModel: require("./Catalog/CatalogPublicModel"),
6
+
5
7
  ConfigurationPublicModel: require("./Configuration/ConfigurationPublicModel"),
6
8
 
7
9
  ContentPublicModel: require("./Content/ContentPublicModel"),