@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8-beta.3

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/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Content/ContentApplicationModel.d.ts +2 -0
  4. package/sdk/application/Content/ContentApplicationModel.js +2 -0
  5. package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
  6. package/sdk/application/Order/OrderApplicationModel.js +2 -0
  7. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +47 -1
  8. package/sdk/partner/Logistics/LogisticsPartnerModel.js +52 -0
  9. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  10. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  14. package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -0
  15. package/sdk/platform/Content/ContentPlatformModel.js +2 -0
  16. package/sdk/platform/Finance/FinancePlatformClient.d.ts +2 -2
  17. package/sdk/platform/Finance/FinancePlatformClient.js +2 -2
  18. package/sdk/platform/Finance/FinancePlatformModel.d.ts +26 -9
  19. package/sdk/platform/Finance/FinancePlatformModel.js +32 -8
  20. package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -0
  21. package/sdk/platform/Order/OrderPlatformModel.js +8 -0
  22. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  23. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  24. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +20 -1
  25. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +22 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  28. package/sdk/platform/User/UserPlatformModel.d.ts +0 -2
  29. package/sdk/platform/User/UserPlatformModel.js +0 -2
  30. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +26 -26
  31. package/sdk/platform/Webhook/WebhookPlatformModel.js +26 -26
@@ -10,12 +10,12 @@ const Joi = require("joi");
10
10
 
11
11
  /**
12
12
  * @typedef EventProcessRequest
13
- * @property {string} search_text
13
+ * @property {string} [search_text]
14
14
  * @property {string} end_date
15
15
  * @property {string} start_date
16
- * @property {number[]} subscriber_ids
17
- * @property {string} status
18
- * @property {Event[]} event
16
+ * @property {number[]} [subscriber_ids]
17
+ * @property {string} [status]
18
+ * @property {Event[]} [event]
19
19
  */
20
20
 
21
21
  /**
@@ -228,7 +228,7 @@ const Joi = require("joi");
228
228
 
229
229
  /**
230
230
  * @typedef SubscriberConfigPostRequestV2
231
- * @property {string} [name]
231
+ * @property {string} name
232
232
  * @property {string} [webhook_url]
233
233
  * @property {string} provider
234
234
  * @property {Association} association
@@ -236,7 +236,7 @@ const Joi = require("joi");
236
236
  * @property {SubscriberStatus} status
237
237
  * @property {string} email_id
238
238
  * @property {AuthMeta} [auth_meta]
239
- * @property {Events[]} [events]
239
+ * @property {Events[]} events
240
240
  */
241
241
 
242
242
  /**
@@ -245,17 +245,17 @@ const Joi = require("joi");
245
245
  * @property {string} [name]
246
246
  * @property {string} [webhook_url]
247
247
  * @property {string} provider
248
- * @property {Association} association
248
+ * @property {Association} [association]
249
249
  * @property {Object} [custom_headers]
250
250
  * @property {SubscriberStatus} status
251
- * @property {string} email_id
251
+ * @property {string} [email_id]
252
252
  * @property {AuthMeta} [auth_meta]
253
253
  * @property {Events[]} [events]
254
254
  */
255
255
 
256
256
  /**
257
257
  * @typedef SubscriberConfigPost
258
- * @property {string} [name]
258
+ * @property {string} name
259
259
  * @property {string} webhook_url
260
260
  * @property {Association} association
261
261
  * @property {Object} [custom_headers]
@@ -269,11 +269,11 @@ const Joi = require("joi");
269
269
  * @typedef SubscriberConfigUpdate
270
270
  * @property {number} id
271
271
  * @property {string} [name]
272
- * @property {string} webhook_url
273
- * @property {Association} association
272
+ * @property {string} [webhook_url]
273
+ * @property {Association} [association]
274
274
  * @property {Object} [custom_headers]
275
- * @property {SubscriberStatus} status
276
- * @property {string} email_id
275
+ * @property {SubscriberStatus} [status]
276
+ * @property {string} [email_id]
277
277
  * @property {AuthMeta} [auth_meta]
278
278
  * @property {number[]} event_id
279
279
  */
@@ -318,12 +318,12 @@ class WebhookPlatformModel {
318
318
  /** @returns {EventProcessRequest} */
319
319
  static EventProcessRequest() {
320
320
  return Joi.object({
321
- search_text: Joi.string().allow("").required(),
321
+ search_text: Joi.string().allow(""),
322
322
  end_date: Joi.string().allow("").required(),
323
323
  start_date: Joi.string().allow("").required(),
324
- subscriber_ids: Joi.array().items(Joi.number()).required(),
325
- status: Joi.string().allow("").required(),
326
- event: Joi.array().items(WebhookPlatformModel.Event()).required(),
324
+ subscriber_ids: Joi.array().items(Joi.number()),
325
+ status: Joi.string().allow(""),
326
+ event: Joi.array().items(WebhookPlatformModel.Event()),
327
327
  });
328
328
  }
329
329
 
@@ -582,7 +582,7 @@ class WebhookPlatformModel {
582
582
  /** @returns {SubscriberConfigPostRequestV2} */
583
583
  static SubscriberConfigPostRequestV2() {
584
584
  return Joi.object({
585
- name: Joi.string().allow(""),
585
+ name: Joi.string().allow("").required(),
586
586
  webhook_url: Joi.string().allow(""),
587
587
  provider: Joi.string().allow("").required(),
588
588
  association: WebhookPlatformModel.Association().required(),
@@ -590,7 +590,7 @@ class WebhookPlatformModel {
590
590
  status: WebhookPlatformModel.SubscriberStatus().required(),
591
591
  email_id: Joi.string().allow("").required(),
592
592
  auth_meta: WebhookPlatformModel.AuthMeta(),
593
- events: Joi.array().items(WebhookPlatformModel.Events()),
593
+ events: Joi.array().items(WebhookPlatformModel.Events()).required(),
594
594
  });
595
595
  }
596
596
 
@@ -601,10 +601,10 @@ class WebhookPlatformModel {
601
601
  name: Joi.string().allow(""),
602
602
  webhook_url: Joi.string().allow(""),
603
603
  provider: Joi.string().allow("").required(),
604
- association: WebhookPlatformModel.Association().required(),
604
+ association: WebhookPlatformModel.Association(),
605
605
  custom_headers: Joi.any(),
606
606
  status: WebhookPlatformModel.SubscriberStatus().required(),
607
- email_id: Joi.string().allow("").required(),
607
+ email_id: Joi.string().allow(""),
608
608
  auth_meta: WebhookPlatformModel.AuthMeta(),
609
609
  events: Joi.array().items(WebhookPlatformModel.Events()),
610
610
  });
@@ -613,7 +613,7 @@ class WebhookPlatformModel {
613
613
  /** @returns {SubscriberConfigPost} */
614
614
  static SubscriberConfigPost() {
615
615
  return Joi.object({
616
- name: Joi.string().allow(""),
616
+ name: Joi.string().allow("").required(),
617
617
  webhook_url: Joi.string().allow("").required(),
618
618
  association: WebhookPlatformModel.Association().required(),
619
619
  custom_headers: Joi.any(),
@@ -629,11 +629,11 @@ class WebhookPlatformModel {
629
629
  return Joi.object({
630
630
  id: Joi.number().required(),
631
631
  name: Joi.string().allow(""),
632
- webhook_url: Joi.string().allow("").required(),
633
- association: WebhookPlatformModel.Association().required(),
632
+ webhook_url: Joi.string().allow(""),
633
+ association: WebhookPlatformModel.Association(),
634
634
  custom_headers: Joi.any(),
635
- status: WebhookPlatformModel.SubscriberStatus().required(),
636
- email_id: Joi.string().allow("").required(),
635
+ status: WebhookPlatformModel.SubscriberStatus(),
636
+ email_id: Joi.string().allow(""),
637
637
  auth_meta: WebhookPlatformModel.AuthMeta(),
638
638
  event_id: Joi.array().items(Joi.number()).required(),
639
639
  });