@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.0-beta.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 (83) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
  4. package/sdk/application/Cart/CartApplicationClient.js +14 -14
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
  6. package/sdk/application/Content/ContentApplicationClient.js +53 -0
  7. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  8. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  9. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
  10. package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
  11. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
  12. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
  13. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
  14. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
  15. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
  16. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  17. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  18. package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
  19. package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
  20. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  21. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  22. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
  24. package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
  25. package/sdk/platform/Cart/CartPlatformModel.js +203 -31
  26. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
  27. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
  28. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
  30. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
  31. package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
  32. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
  33. package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
  34. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
  35. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
  37. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
  41. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
  42. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
  43. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
  44. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
  45. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
  46. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
  47. package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
  48. package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
  49. package/sdk/platform/Content/ContentPlatformModel.js +43 -13
  50. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  51. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  52. package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
  53. package/sdk/platform/Order/OrderPlatformClient.js +21 -21
  54. package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
  55. package/sdk/platform/Order/OrderPlatformModel.js +665 -70
  56. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
  57. package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
  58. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
  59. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
  60. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
  61. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
  62. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
  63. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
  66. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
  68. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  69. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  70. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
  71. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
  72. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
  73. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
  74. package/sdk/public/PublicClient.d.ts +0 -2
  75. package/sdk/public/PublicClient.js +0 -4
  76. package/sdk/public/index.d.ts +0 -1
  77. package/sdk/public/index.js +0 -2
  78. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  79. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  80. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  81. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  82. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  83. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -486,6 +486,8 @@ const Joi = require("joi");
486
486
  * @property {PromotionAuthor} [author]
487
487
  * @property {PromotionDateMeta} date_meta
488
488
  * @property {string} [_id] - Promotion id
489
+ * @property {boolean} [is_processed] - Flag to verify if promotion is ready to
490
+ * be applied on cart and ready to update promotion
489
491
  * @property {string} [code]
490
492
  * @property {string[]} [tags]
491
493
  */
@@ -526,34 +528,109 @@ const Joi = require("joi");
526
528
  * @property {string[]} [tags]
527
529
  */
528
530
 
531
+ /**
532
+ * @typedef PromotionAddResult
533
+ * @property {boolean} [stackable] - Boolean value set true to apply other promotions also
534
+ * @property {string} [calculate_on] - Article Price on which promotion
535
+ * calculated like effective price or marked price. Only available for
536
+ * Contract pricing and Ladder pricing promotion type
537
+ * @property {string} [apply_exclusive] - Promotion should apply on either
538
+ * article or cart.
539
+ * @property {string} promo_group - The type of promotion group
540
+ * @property {string} mode - Promotion mode, like coupon or promotion
541
+ * @property {boolean} [is_processed] - Flag to verify if promotion is ready to
542
+ * be applied on cart and ready to update promotion
543
+ * @property {boolean} [apply_all_discount] - True means to apply all discount offers
544
+ * @property {DisplayMeta1} [display_meta]
545
+ * @property {Ownership} [ownership]
546
+ * @property {string} promotion_type - Type of promotion
547
+ * @property {DiscountRule[]} [discount_rules] - List of discount offers and
548
+ * their applicable conditions
549
+ * @property {Restrictions1} [restrictions]
550
+ * @property {string} [currency] - Promotion Currency code like INR
551
+ * @property {string} [code] - Promotion unique code
552
+ * @property {PromotionSchedule} [_schedule]
553
+ * @property {PromotionAction} [post_order_action]
554
+ * @property {number} [apply_priority] - Promotion applicable priority
555
+ * @property {PromotionAuthor} [author]
556
+ * @property {Visibility} [visiblility]
557
+ * @property {string} application_id - Current application id of sales channel
558
+ * @property {Object} [buy_rules]
559
+ * @property {Object} [_custom_json] - Set extra properties in promotion
560
+ * @property {PromotionDateMeta} [date_meta]
561
+ * @property {PromoIndexedCriteria[]} [indexed_criteria]
562
+ * @property {string[]} [tags] - List of tags applicable for promotion
563
+ * @property {string} [_id] - Unique idenfier of promotion.
564
+ */
565
+
529
566
  /**
530
567
  * @typedef PromotionUpdate
531
- * @property {string} [_id]
532
- * @property {boolean} [stackable]
533
- * @property {string} [calculate_on] - Only available for Contract pricing and
534
- * Ladder pricing promotion type
535
- * @property {string} [apply_exclusive]
536
- * @property {string} promo_group
537
- * @property {string} mode
538
- * @property {boolean} [apply_all_discount]
539
- * @property {DisplayMeta1} display_meta
540
- * @property {Ownership} ownership
541
- * @property {string} promotion_type
542
- * @property {DiscountRule[]} discount_rules
568
+ * @property {boolean} [stackable] - Set true to apply other promotions in cart
569
+ * @property {string} [calculate_on] - Article Price on which promotion
570
+ * calculated like effective price or marked price. Only available for
571
+ * Contract pricing and Ladder pricing promotion type
572
+ * @property {string} [apply_exclusive] - Promotion should apply on either
573
+ * article or cart.
574
+ * @property {string} [reason] - Promotion rejection reason added by reviewer
575
+ * @property {string} promo_group - The type of promotion group
576
+ * @property {string} mode - Promotion mode
577
+ * @property {boolean} [apply_all_discount] - True means to apply all discount offers
578
+ * @property {DisplayMeta1} [display_meta]
579
+ * @property {Ownership} [ownership]
580
+ * @property {string} promotion_type - The Promotion type like amount, bogo and
581
+ * percentage etc.
582
+ * @property {DiscountRule[]} [discount_rules] - List of discount offers and
583
+ * their applicable conditions
543
584
  * @property {Restrictions1} [restrictions]
544
- * @property {string} [currency]
545
- * @property {string} [code]
585
+ * @property {string} [currency] - Promotion Currency code like INR
586
+ * @property {string} [code] - Promotion unique code
546
587
  * @property {PromotionSchedule} [_schedule]
547
588
  * @property {PromotionAction} [post_order_action]
548
- * @property {number} [apply_priority]
589
+ * @property {number} [apply_priority] - Promotion applicable priority
549
590
  * @property {PromotionAuthor} [author]
550
591
  * @property {Visibility} [visiblility]
551
- * @property {string} application_id
552
- * @property {Object} buy_rules
553
- * @property {Object} [_custom_json]
592
+ * @property {string} application_id - Current application id of sales channel
593
+ * @property {Object} [buy_rules]
594
+ * @property {Object} [_custom_json] - Set extra properties in promotion
595
+ * @property {PromotionDateMeta} [date_meta]
596
+ * @property {string[]} [tags] - List of tags applicable for promotion
597
+ */
598
+
599
+ /**
600
+ * @typedef PromotionUpdateResult
601
+ * @property {boolean} [stackable] - Set true to apply other promotions in cart
602
+ * @property {string} [calculate_on] - Article Price on which promotion
603
+ * calculated like effective price or marked price. Only available for
604
+ * Contract pricing and Ladder pricing promotion type
605
+ * @property {string} [apply_exclusive] - Promotion should apply on either
606
+ * article or cart.
607
+ * @property {string} [reason] - Promotion rejection reason added by reviewer
608
+ * @property {boolean} [is_processed] - Flag to verify if promotion is ready to
609
+ * be applied on cart and ready to update promotion
610
+ * @property {string} promo_group - The type of promotion group
611
+ * @property {string} mode - Promotion mode
612
+ * @property {boolean} [apply_all_discount] - True means to apply all discount offers
613
+ * @property {DisplayMeta1} [display_meta]
614
+ * @property {Ownership} [ownership]
615
+ * @property {string} promotion_type - The Promotion type like amount, bogo and
616
+ * percentage etc.
617
+ * @property {DiscountRule[]} [discount_rules] - List of discount offers and
618
+ * their applicable conditions
619
+ * @property {Restrictions1} [restrictions]
620
+ * @property {string} [currency] - Promotion Currency code like INR
621
+ * @property {string} [code] - Promotion unique code
622
+ * @property {PromotionSchedule} [_schedule]
623
+ * @property {PromotionAction} [post_order_action]
624
+ * @property {number} [apply_priority] - Promotion applicable priority
625
+ * @property {PromotionAuthor} [author]
626
+ * @property {Visibility} [visiblility]
627
+ * @property {string} application_id - Current application id of sales channel
628
+ * @property {Object} [buy_rules]
629
+ * @property {Object} [_custom_json] - Set extra properties in promotion
554
630
  * @property {PromotionDateMeta} [date_meta]
555
631
  * @property {PromoIndexedCriteria[]} [indexed_criteria]
556
- * @property {string[]} [tags]
632
+ * @property {string[]} [tags] - List of tags applicable for promotion
633
+ * @property {string} [_id] - Auto generated id of specific promotion
557
634
  */
558
635
 
559
636
  /**
@@ -1794,7 +1871,7 @@ const Joi = require("joi");
1794
1871
  * @property {Object} [_custom_json]
1795
1872
  * @property {string} [price_factory_type_id]
1796
1873
  * @property {number} [item_id]
1797
- * @property {number} [item_index]
1874
+ * @property {number} item_index
1798
1875
  * @property {CartProductIdentifer} identifiers
1799
1876
  * @property {string} [article_id]
1800
1877
  */
@@ -2114,10 +2191,17 @@ const Joi = require("joi");
2114
2191
  * @property {number} [meta_data_int]
2115
2192
  */
2116
2193
 
2194
+ /**
2195
+ * @typedef ValidationConfig
2196
+ * @property {number} address_max_limit - The maximum number of addresses a user can have.
2197
+ * @property {number} user_address_count - The total number of addresses saved by a user.
2198
+ */
2199
+
2117
2200
  /**
2118
2201
  * @typedef PlatformGetAddressesResponse
2119
2202
  * @property {PlatformAddress[]} [address]
2120
2203
  * @property {boolean} [pii_masking]
2204
+ * @property {ValidationConfig} [validation_config]
2121
2205
  */
2122
2206
 
2123
2207
  /**
@@ -2751,6 +2835,13 @@ const Joi = require("joi");
2751
2835
  * @typedef AllAddressForSelectAddress
2752
2836
  * @property {PlatformAddress[]} [address]
2753
2837
  * @property {boolean} [pii_masking]
2838
+ * @property {ValidationConfig} [validation_config]
2839
+ */
2840
+
2841
+ /**
2842
+ * @typedef ValidationError
2843
+ * @property {string} message - A brief description of the error encountered.
2844
+ * @property {string} field - The field in the request that caused the error.
2754
2845
  */
2755
2846
 
2756
2847
  class CartPlatformModel {
@@ -3341,6 +3432,7 @@ class CartPlatformModel {
3341
3432
  author: CartPlatformModel.PromotionAuthor(),
3342
3433
  date_meta: CartPlatformModel.PromotionDateMeta().required(),
3343
3434
  _id: Joi.string().allow(""),
3435
+ is_processed: Joi.boolean(),
3344
3436
  code: Joi.string().allow(""),
3345
3437
  tags: Joi.array().items(Joi.string().allow("")),
3346
3438
  });
@@ -3391,22 +3483,54 @@ class CartPlatformModel {
3391
3483
  });
3392
3484
  }
3393
3485
 
3486
+ /** @returns {PromotionAddResult} */
3487
+ static PromotionAddResult() {
3488
+ return Joi.object({
3489
+ stackable: Joi.boolean(),
3490
+ calculate_on: Joi.string().allow(""),
3491
+ apply_exclusive: Joi.string().allow("").allow(null),
3492
+ promo_group: Joi.string().allow("").required(),
3493
+ mode: Joi.string().allow("").required(),
3494
+ is_processed: Joi.boolean(),
3495
+ apply_all_discount: Joi.boolean(),
3496
+ display_meta: CartPlatformModel.DisplayMeta1(),
3497
+ ownership: CartPlatformModel.Ownership(),
3498
+ promotion_type: Joi.string().allow("").required(),
3499
+ discount_rules: Joi.array().items(CartPlatformModel.DiscountRule()),
3500
+ restrictions: CartPlatformModel.Restrictions1(),
3501
+ currency: Joi.string().allow(""),
3502
+ code: Joi.string().allow(""),
3503
+ _schedule: CartPlatformModel.PromotionSchedule(),
3504
+ post_order_action: CartPlatformModel.PromotionAction(),
3505
+ apply_priority: Joi.number(),
3506
+ author: CartPlatformModel.PromotionAuthor(),
3507
+ visiblility: CartPlatformModel.Visibility(),
3508
+ application_id: Joi.string().allow("").required(),
3509
+ buy_rules: Joi.object().pattern(/\S/, CartPlatformModel.ItemCriteria()),
3510
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
3511
+ date_meta: CartPlatformModel.PromotionDateMeta(),
3512
+ indexed_criteria: Joi.array().items(
3513
+ CartPlatformModel.PromoIndexedCriteria()
3514
+ ),
3515
+ tags: Joi.array().items(Joi.string().allow("")),
3516
+ _id: Joi.string().allow(""),
3517
+ });
3518
+ }
3519
+
3394
3520
  /** @returns {PromotionUpdate} */
3395
3521
  static PromotionUpdate() {
3396
3522
  return Joi.object({
3397
- _id: Joi.string().allow(""),
3398
3523
  stackable: Joi.boolean(),
3399
3524
  calculate_on: Joi.string().allow(""),
3400
3525
  apply_exclusive: Joi.string().allow("").allow(null),
3526
+ reason: Joi.string().allow("").allow(null),
3401
3527
  promo_group: Joi.string().allow("").required(),
3402
3528
  mode: Joi.string().allow("").required(),
3403
3529
  apply_all_discount: Joi.boolean(),
3404
- display_meta: CartPlatformModel.DisplayMeta1().required(),
3405
- ownership: CartPlatformModel.Ownership().required(),
3530
+ display_meta: CartPlatformModel.DisplayMeta1(),
3531
+ ownership: CartPlatformModel.Ownership(),
3406
3532
  promotion_type: Joi.string().allow("").required(),
3407
- discount_rules: Joi.array()
3408
- .items(CartPlatformModel.DiscountRule())
3409
- .required(),
3533
+ discount_rules: Joi.array().items(CartPlatformModel.DiscountRule()),
3410
3534
  restrictions: CartPlatformModel.Restrictions1(),
3411
3535
  currency: Joi.string().allow(""),
3412
3536
  code: Joi.string().allow(""),
@@ -3416,15 +3540,45 @@ class CartPlatformModel {
3416
3540
  author: CartPlatformModel.PromotionAuthor(),
3417
3541
  visiblility: CartPlatformModel.Visibility(),
3418
3542
  application_id: Joi.string().allow("").required(),
3419
- buy_rules: Joi.object()
3420
- .pattern(/\S/, CartPlatformModel.ItemCriteria())
3421
- .required(),
3422
- _custom_json: Joi.any(),
3543
+ buy_rules: Joi.object().pattern(/\S/, CartPlatformModel.ItemCriteria()),
3544
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
3545
+ date_meta: CartPlatformModel.PromotionDateMeta(),
3546
+ tags: Joi.array().items(Joi.string().allow("")),
3547
+ });
3548
+ }
3549
+
3550
+ /** @returns {PromotionUpdateResult} */
3551
+ static PromotionUpdateResult() {
3552
+ return Joi.object({
3553
+ stackable: Joi.boolean(),
3554
+ calculate_on: Joi.string().allow(""),
3555
+ apply_exclusive: Joi.string().allow("").allow(null),
3556
+ reason: Joi.string().allow("").allow(null),
3557
+ is_processed: Joi.boolean(),
3558
+ promo_group: Joi.string().allow("").required(),
3559
+ mode: Joi.string().allow("").required(),
3560
+ apply_all_discount: Joi.boolean(),
3561
+ display_meta: CartPlatformModel.DisplayMeta1(),
3562
+ ownership: CartPlatformModel.Ownership(),
3563
+ promotion_type: Joi.string().allow("").required(),
3564
+ discount_rules: Joi.array().items(CartPlatformModel.DiscountRule()),
3565
+ restrictions: CartPlatformModel.Restrictions1(),
3566
+ currency: Joi.string().allow(""),
3567
+ code: Joi.string().allow(""),
3568
+ _schedule: CartPlatformModel.PromotionSchedule(),
3569
+ post_order_action: CartPlatformModel.PromotionAction(),
3570
+ apply_priority: Joi.number(),
3571
+ author: CartPlatformModel.PromotionAuthor(),
3572
+ visiblility: CartPlatformModel.Visibility(),
3573
+ application_id: Joi.string().allow("").required(),
3574
+ buy_rules: Joi.object().pattern(/\S/, CartPlatformModel.ItemCriteria()),
3575
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
3423
3576
  date_meta: CartPlatformModel.PromotionDateMeta(),
3424
3577
  indexed_criteria: Joi.array().items(
3425
3578
  CartPlatformModel.PromoIndexedCriteria()
3426
3579
  ),
3427
3580
  tags: Joi.array().items(Joi.string().allow("")),
3581
+ _id: Joi.string().allow(""),
3428
3582
  });
3429
3583
  }
3430
3584
 
@@ -4793,7 +4947,7 @@ class CartPlatformModel {
4793
4947
  _custom_json: Joi.any(),
4794
4948
  price_factory_type_id: Joi.string().allow(""),
4795
4949
  item_id: Joi.number(),
4796
- item_index: Joi.number(),
4950
+ item_index: Joi.number().required(),
4797
4951
  identifiers: CartPlatformModel.CartProductIdentifer().required(),
4798
4952
  article_id: Joi.string().allow(""),
4799
4953
  });
@@ -5158,11 +5312,20 @@ class CartPlatformModel {
5158
5312
  });
5159
5313
  }
5160
5314
 
5315
+ /** @returns {ValidationConfig} */
5316
+ static ValidationConfig() {
5317
+ return Joi.object({
5318
+ address_max_limit: Joi.number().required(),
5319
+ user_address_count: Joi.number().required(),
5320
+ });
5321
+ }
5322
+
5161
5323
  /** @returns {PlatformGetAddressesResponse} */
5162
5324
  static PlatformGetAddressesResponse() {
5163
5325
  return Joi.object({
5164
5326
  address: Joi.array().items(CartPlatformModel.PlatformAddress()),
5165
5327
  pii_masking: Joi.boolean(),
5328
+ validation_config: CartPlatformModel.ValidationConfig(),
5166
5329
  });
5167
5330
  }
5168
5331
 
@@ -5897,6 +6060,15 @@ class CartPlatformModel {
5897
6060
  return Joi.object({
5898
6061
  address: Joi.array().items(CartPlatformModel.PlatformAddress()),
5899
6062
  pii_masking: Joi.boolean(),
6063
+ validation_config: CartPlatformModel.ValidationConfig(),
6064
+ });
6065
+ }
6066
+
6067
+ /** @returns {ValidationError} */
6068
+ static ValidationError() {
6069
+ return Joi.object({
6070
+ message: Joi.string().allow("").required(),
6071
+ field: Joi.string().allow("").required(),
5900
6072
  });
5901
6073
  }
5902
6074
  }
@@ -649,62 +649,6 @@ declare class Catalog {
649
649
  * @description: Get Product Return configuration set at an application level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppReturnConfiguration/).
650
650
  */
651
651
  getAppReturnConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.AppReturnConfigResponse>;
652
- /**
653
- * @param {CatalogPlatformApplicationValidator.GetAppicationProductsParam} arg
654
- * - Arg object
655
- *
656
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
657
- * @param {import("../PlatformAPIClient").Options} - Options
658
- * @returns {Promise<CatalogPlatformModel.ApplicationProductListingResponse>}
659
- * - Success response
660
- *
661
- * @name getAppicationProducts
662
- * @summary: Get application products.
663
- * @description: Retrieve products associated with the application. List all the products associated with a brand, collection or category in a requested sort order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppicationProducts/).
664
- */
665
- getAppicationProducts({ q, f, c, filters, isDependent, sortOn, pageId, pageSize, pageNo, pageType, itemIds, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppicationProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ApplicationProductListingResponse>;
666
- /**
667
- * @param {Object} arg - Arg object.
668
- * @param {number} arg.companyId - A `company_id` is a unique identifier for
669
- * a particular seller account.
670
- * @param {string} arg.applicationId - A `application_id` is a unique
671
- * identifier for a particular sale channel.
672
- * @param {string} [arg.q] - The search query. This can be a partial or
673
- * complete name of a either a product, brand or category
674
- * @param {string} [arg.f] - The search filter parameters. All the parameter
675
- * filtered from filter parameters will be passed in **f** parameter in
676
- * this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
677
- * @param {string} [arg.c] - The search filter parameters for collection
678
- * items. All the parameter filtered from filter parameters will be passed
679
- * in **c** parameter in this format.
680
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
681
- * @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the
682
- * filter details. This flag is used to fetch all filters
683
- * @param {boolean} [arg.isDependent] - This query parameter is used to get
684
- * the dependent products in the listing.
685
- * @param {string} [arg.sortOn] - The order to sort the list of products on.
686
- * The supported sort parameters are popularity, price, redemption and
687
- * discount in either ascending or descending order. See the supported
688
- * values below.
689
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
690
- * page. Default is 12.
691
- * @param {string[]} [arg.itemIds] - Item Ids of product
692
- * @returns {Paginator<CatalogPlatformModel.ApplicationProductListingResponse>}
693
- * @summary: Get application products.
694
- * @description: Retrieve products associated with the application. List all the products associated with a brand, collection or category in a requested sort order.
695
- */
696
- getAppicationProductsPaginator({ companyId, applicationId, q, f, c, filters, isDependent, sortOn, pageSize, itemIds, }?: {
697
- companyId: number;
698
- applicationId: string;
699
- q?: string;
700
- f?: string;
701
- c?: string;
702
- filters?: boolean;
703
- isDependent?: boolean;
704
- sortOn?: string;
705
- pageSize?: number;
706
- itemIds?: string[];
707
- }): Paginator<CatalogPlatformModel.ApplicationProductListingResponse>;
708
652
  /**
709
653
  * @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg
710
654
  * - Arg object
@@ -875,6 +819,62 @@ declare class Catalog {
875
819
  * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
876
820
  */
877
821
  getApplicationFilterValues({ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>;
822
+ /**
823
+ * @param {CatalogPlatformApplicationValidator.GetApplicationProductsParam} arg
824
+ * - Arg object
825
+ *
826
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
827
+ * @param {import("../PlatformAPIClient").Options} - Options
828
+ * @returns {Promise<CatalogPlatformModel.ApplicationProductListingResponse>}
829
+ * - Success response
830
+ *
831
+ * @name getApplicationProducts
832
+ * @summary: Get application products.
833
+ * @description: Retrieve products associated with the application. List all the products associated with a brand, collection or category in a requested sort order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationProducts/).
834
+ */
835
+ getApplicationProducts({ q, f, c, filters, isDependent, sortOn, pageId, pageSize, pageNo, pageType, itemIds, requestHeaders, }?: CatalogPlatformApplicationValidator.GetApplicationProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ApplicationProductListingResponse>;
836
+ /**
837
+ * @param {Object} arg - Arg object.
838
+ * @param {number} arg.companyId - A `company_id` is a unique identifier for
839
+ * a particular seller account.
840
+ * @param {string} arg.applicationId - A `application_id` is a unique
841
+ * identifier for a particular sale channel.
842
+ * @param {string} [arg.q] - The search query. This can be a partial or
843
+ * complete name of a either a product, brand or category
844
+ * @param {string} [arg.f] - The search filter parameters. All the parameter
845
+ * filtered from filter parameters will be passed in **f** parameter in
846
+ * this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
847
+ * @param {string} [arg.c] - The search filter parameters for collection
848
+ * items. All the parameter filtered from filter parameters will be passed
849
+ * in **c** parameter in this format.
850
+ * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
851
+ * @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the
852
+ * filter details. This flag is used to fetch all filters
853
+ * @param {boolean} [arg.isDependent] - This query parameter is used to get
854
+ * the dependent products in the listing.
855
+ * @param {string} [arg.sortOn] - The order to sort the list of products on.
856
+ * The supported sort parameters are popularity, price, redemption and
857
+ * discount in either ascending or descending order. See the supported
858
+ * values below.
859
+ * @param {number} [arg.pageSize] - Number of items to retrieve in each
860
+ * page. Default is 12.
861
+ * @param {string[]} [arg.itemIds] - Item Ids of product
862
+ * @returns {Paginator<CatalogPlatformModel.ApplicationProductListingResponse>}
863
+ * @summary: Get application products.
864
+ * @description: Retrieve products associated with the application. List all the products associated with a brand, collection or category in a requested sort order.
865
+ */
866
+ getApplicationProductsPaginator({ companyId, applicationId, q, f, c, filters, isDependent, sortOn, pageSize, itemIds, }?: {
867
+ companyId: number;
868
+ applicationId: string;
869
+ q?: string;
870
+ f?: string;
871
+ c?: string;
872
+ filters?: boolean;
873
+ isDependent?: boolean;
874
+ sortOn?: string;
875
+ pageSize?: number;
876
+ itemIds?: string[];
877
+ }): Paginator<CatalogPlatformModel.ApplicationProductListingResponse>;
878
878
  /**
879
879
  * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
880
880
  * - Arg object
@@ -1298,7 +1298,7 @@ declare class Catalog {
1298
1298
  * @summary: poll job for adding products in price factory
1299
1299
  * @description: This API allows to poll job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/pollPriceFactoryJobs/).
1300
1300
  */
1301
- pollPriceFactoryJobs({ id, requestHeaders }?: CatalogPlatformApplicationValidator.PollPriceFactoryJobsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CreateAppPriceFactoryProductExportJobPollResponse>;
1301
+ pollPriceFactoryJobs({ id, startDate, endDate, stage, isActive, q, type, requestHeaders }?: CatalogPlatformApplicationValidator.PollPriceFactoryJobsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CreateAppPriceFactoryProductExportJobPollResponse>;
1302
1302
  /**
1303
1303
  * @param {CatalogPlatformApplicationValidator.PollProductPriceFactoryBulkJobParam} arg
1304
1304
  * - Arg object