@gofynd/fdk-client-javascript 1.1.0 → 1.1.2

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 (102) hide show
  1. package/README.md +0 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +11 -0
  4. package/sdk/application/Cart/CartApplicationClient.js +65 -0
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +6 -0
  6. package/sdk/application/Cart/CartApplicationModel.js +72 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +6 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +19 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +27 -6
  11. package/sdk/application/Catalog/CatalogApplicationValidator.js +4 -0
  12. package/sdk/application/Content/ContentApplicationModel.js +1 -4
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -2
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.js +2 -2
  16. package/sdk/application/Lead/LeadApplicationModel.js +1 -0
  17. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +4 -0
  18. package/sdk/application/PosCart/PosCartApplicationModel.js +50 -0
  19. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +8 -8
  20. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -8
  21. package/sdk/common/AxiosHelper.js +1 -1
  22. package/sdk/common/Constant.d.ts +0 -18
  23. package/sdk/common/Constant.js +0 -22
  24. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +51 -0
  25. package/sdk/platform/Cart/CartPlatformApplicationClient.js +308 -0
  26. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +5 -0
  27. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +30 -0
  28. package/sdk/platform/Cart/CartPlatformModel.d.ts +13 -0
  29. package/sdk/platform/Cart/CartPlatformModel.js +154 -0
  30. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -1
  31. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +5 -0
  32. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  33. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  34. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  35. package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -7
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +0 -183
  37. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +0 -417
  38. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +0 -10
  39. package/sdk/platform/Communication/CommunicationPlatformClient.js +0 -26
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +4 -0
  41. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -22
  42. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +0 -56
  43. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +12 -1
  44. package/sdk/platform/Content/ContentPlatformApplicationClient.js +62 -2
  45. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
  46. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +6 -0
  47. package/sdk/platform/Content/ContentPlatformModel.js +1 -4
  48. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  49. package/sdk/platform/Discount/DiscountPlatformClient.js +1 -1
  50. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +1 -0
  51. package/sdk/platform/Discount/DiscountPlatformModel.js +15 -0
  52. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -1
  53. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +10 -4
  54. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +15 -9
  55. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  56. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  57. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -2
  58. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +9 -3
  59. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
  60. package/sdk/platform/Lead/LeadPlatformModel.js +1 -0
  61. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -47
  62. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -201
  63. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -3
  64. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -26
  65. package/sdk/platform/Order/OrderPlatformClient.d.ts +54 -186
  66. package/sdk/platform/Order/OrderPlatformClient.js +246 -934
  67. package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -20
  68. package/sdk/platform/Order/OrderPlatformModel.js +40 -182
  69. package/sdk/platform/Order/OrderPlatformValidator.d.ts +3 -12
  70. package/sdk/platform/Order/OrderPlatformValidator.js +20 -96
  71. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +24 -10
  72. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +111 -44
  73. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +2 -1
  74. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +13 -5
  75. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -0
  76. package/sdk/platform/Payment/PaymentPlatformModel.js +12 -0
  77. package/sdk/platform/PlatformApplicationClient.d.ts +20 -41
  78. package/sdk/platform/PlatformApplicationClient.js +22 -45
  79. package/sdk/platform/PlatformClient.d.ts +190 -266
  80. package/sdk/platform/PlatformClient.js +223 -318
  81. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -26
  82. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +14 -74
  83. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -1
  84. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -7
  85. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -0
  86. package/sdk/platform/Share/SharePlatformApplicationClient.js +61 -0
  87. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -0
  88. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -0
  89. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
  90. package/sdk/platform/Share/SharePlatformModel.js +11 -0
  91. package/sdk/platform/index.d.ts +0 -1
  92. package/sdk/platform/index.js +0 -2
  93. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -109
  94. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -558
  95. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -11
  96. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -56
  97. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +0 -88
  98. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +0 -361
  99. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -23
  100. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -169
  101. package/sdk/platform/Analytics/AnalyticsPlatformValidator.d.ts +0 -7
  102. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +0 -38
@@ -52,6 +52,20 @@ class CartModel {
52
52
  product_slug: Joi.array().items(Joi.string().allow("")),
53
53
  });
54
54
  }
55
+ static ActivePromosResponse() {
56
+ return Joi.object({
57
+ created_on: Joi.string().allow(""),
58
+ description: Joi.string().allow(""),
59
+ entity_slug: Joi.string().allow(""),
60
+ entity_type: Joi.string().allow(""),
61
+ example: Joi.string().allow(""),
62
+ is_hidden: Joi.boolean(),
63
+ modified_on: Joi.string().allow(""),
64
+ subtitle: Joi.string().allow(""),
65
+ title: Joi.string().allow(""),
66
+ type: Joi.string().allow(""),
67
+ });
68
+ }
55
69
  static AddCartDetailResponse() {
56
70
  return Joi.object({
57
71
  cart: CartModel.CartDetailResponse(),
@@ -84,14 +98,27 @@ class CartModel {
84
98
  store_id: Joi.number(),
85
99
  });
86
100
  }
101
+ static AppliedFreeArticles() {
102
+ return Joi.object({
103
+ article_id: Joi.string().allow(""),
104
+ free_gift_item_details: CartModel.FreeGiftItem(),
105
+ parent_item_identifier: Joi.string().allow(""),
106
+ quantity: Joi.number(),
107
+ });
108
+ }
87
109
  static AppliedPromotion() {
88
110
  return Joi.object({
89
111
  amount: Joi.number(),
112
+ applied_free_articles: Joi.array().items(CartModel.AppliedFreeArticles()),
90
113
  article_quantity: Joi.number(),
114
+ buy_rules: Joi.array().items(CartModel.BuyRules()),
115
+ discount_rules: Joi.array().items(CartModel.DiscountRulesApp()),
91
116
  mrp_promotion: Joi.boolean(),
92
117
  offer_text: Joi.string().allow(""),
93
118
  ownership: CartModel.Ownership2(),
94
119
  promo_id: Joi.string().allow(""),
120
+ promotion_group: Joi.string().allow(""),
121
+ promotion_name: Joi.string().allow(""),
95
122
  promotion_type: Joi.string().allow(""),
96
123
  });
97
124
  }
@@ -120,6 +147,12 @@ class CartModel {
120
147
  multi_store_allowed: Joi.boolean().required(),
121
148
  });
122
149
  }
150
+ static BuyRules() {
151
+ return Joi.object({
152
+ cart_conditions: Joi.any(),
153
+ item_criteria: Joi.any(),
154
+ });
155
+ }
123
156
  static CartBreakup() {
124
157
  return Joi.object({
125
158
  coupon: CartModel.CouponBreakup(),
@@ -168,6 +201,30 @@ class CartModel {
168
201
  primary_item: Joi.boolean(),
169
202
  });
170
203
  }
204
+ static CartMetaConfigAdd() {
205
+ return Joi.object({
206
+ bulk_coupons: Joi.boolean(),
207
+ delivery_charges: CartModel.DeliveryCharges(),
208
+ enabled: Joi.boolean(),
209
+ gift_display_text: Joi.string().allow(""),
210
+ gift_pricing: Joi.number(),
211
+ max_cart_items: Joi.number(),
212
+ min_cart_value: Joi.number(),
213
+ revenue_engine_coupon: Joi.boolean(),
214
+ });
215
+ }
216
+ static CartMetaConfigUpdate() {
217
+ return Joi.object({
218
+ bulk_coupons: Joi.boolean(),
219
+ delivery_charges: CartModel.DeliveryCharges(),
220
+ enabled: Joi.boolean(),
221
+ gift_display_text: Joi.string().allow(""),
222
+ gift_pricing: Joi.number(),
223
+ max_cart_items: Joi.number(),
224
+ min_cart_value: Joi.number(),
225
+ revenue_engine_coupon: Joi.boolean(),
226
+ });
227
+ }
171
228
  static CartProduct() {
172
229
  return Joi.object({
173
230
  action: CartModel.ProductAction(),
@@ -213,6 +270,12 @@ class CartModel {
213
270
  uid: Joi.number(),
214
271
  });
215
272
  }
273
+ static Charges() {
274
+ return Joi.object({
275
+ charges: Joi.number(),
276
+ threshold: Joi.number(),
277
+ });
278
+ }
216
279
  static CompareObject() {
217
280
  return Joi.object({
218
281
  equals: Joi.number(),
@@ -257,8 +320,15 @@ class CartModel {
257
320
  static CouponBreakup() {
258
321
  return Joi.object({
259
322
  code: Joi.string().allow(""),
323
+ coupon_type: Joi.string().allow("").allow(null),
324
+ coupon_value: Joi.number(),
325
+ description: Joi.string().allow("").allow(null),
260
326
  is_applied: Joi.boolean(),
327
+ max_discount_value: Joi.number(),
261
328
  message: Joi.string().allow(""),
329
+ minimum_cart_value: Joi.number(),
330
+ sub_title: Joi.string().allow("").allow(null),
331
+ title: Joi.string().allow("").allow(null),
262
332
  type: Joi.string().allow(""),
263
333
  uid: Joi.string().allow(""),
264
334
  value: Joi.number(),
@@ -311,15 +381,24 @@ class CartModel {
311
381
  validity: CartModel.Validity().required(),
312
382
  });
313
383
  }
384
+ static DeliveryCharges() {
385
+ return Joi.object({
386
+ charges: Joi.array().items(CartModel.Charges()),
387
+ enabled: Joi.boolean(),
388
+ });
389
+ }
314
390
  static DiscountOffer() {
315
391
  return Joi.object({
392
+ apportion_discount: Joi.boolean(),
316
393
  code: Joi.string().allow(""),
317
394
  discount_amount: Joi.number(),
318
395
  discount_percentage: Joi.number(),
319
396
  discount_price: Joi.number(),
320
397
  max_discount_amount: Joi.number(),
321
398
  max_offer_quantity: Joi.number(),
399
+ max_usage_per_transaction: Joi.number(),
322
400
  min_offer_quantity: Joi.number(),
401
+ partial_can_ret: Joi.boolean(),
323
402
  });
324
403
  }
325
404
  static DiscountRule() {
@@ -330,6 +409,14 @@ class CartModel {
330
409
  offer: CartModel.DiscountOffer().required(),
331
410
  });
332
411
  }
412
+ static DiscountRulesApp() {
413
+ return Joi.object({
414
+ item_criteria: Joi.any(),
415
+ matched_buy_rules: Joi.array().items(Joi.string().allow("")),
416
+ offer: Joi.any(),
417
+ raw_offer: Joi.any(),
418
+ });
419
+ }
333
420
  static DisplayBreakup() {
334
421
  return Joi.object({
335
422
  currency_code: Joi.string().allow(""),
@@ -363,6 +450,16 @@ class CartModel {
363
450
  title: Joi.string().allow(""),
364
451
  });
365
452
  }
453
+ static FreeGiftItem() {
454
+ return Joi.object({
455
+ item_brand_name: Joi.string().allow(""),
456
+ item_id: Joi.number(),
457
+ item_images_url: Joi.array().items(Joi.string().allow("")),
458
+ item_name: Joi.string().allow(""),
459
+ item_price_details: Joi.any(),
460
+ item_slug: Joi.string().allow(""),
461
+ });
462
+ }
366
463
  static Identifier() {
367
464
  return Joi.object({
368
465
  article_id: Joi.array().items(Joi.string().allow("")),
@@ -379,15 +476,19 @@ class CartModel {
379
476
  static ItemCriteria() {
380
477
  return Joi.object({
381
478
  all_items: Joi.boolean(),
479
+ available_zones: Joi.array().items(Joi.string().allow("")),
382
480
  buy_rules: Joi.array().items(Joi.string().allow("")),
383
481
  cart_quantity: CartModel.CompareObject(),
384
482
  cart_total: CartModel.CompareObject(),
483
+ cart_unique_item_amount: CartModel.CompareObject(),
484
+ cart_unique_item_quantity: CartModel.CompareObject(),
385
485
  item_brand: Joi.array().items(Joi.number()),
386
486
  item_category: Joi.array().items(Joi.number()),
387
487
  item_company: Joi.array().items(Joi.number()),
388
488
  item_exclude_brand: Joi.array().items(Joi.number()),
389
489
  item_exclude_category: Joi.array().items(Joi.number()),
390
490
  item_exclude_company: Joi.array().items(Joi.number()),
491
+ item_exclude_id: Joi.array().items(Joi.number()),
391
492
  item_exclude_sku: Joi.array().items(Joi.string().allow("")),
392
493
  item_exclude_store: Joi.array().items(Joi.number()),
393
494
  item_id: Joi.array().items(Joi.number()),
@@ -525,6 +626,53 @@ class CartModel {
525
626
  success: Joi.boolean(),
526
627
  });
527
628
  }
629
+ static OverrideCartItem() {
630
+ return Joi.object({
631
+ amount_paid: Joi.number().required(),
632
+ discount: Joi.number().required(),
633
+ extra_meta: Joi.any(),
634
+ item_id: Joi.number().required(),
635
+ price_effective: Joi.number().required(),
636
+ price_marked: Joi.number().required(),
637
+ promo_list: Joi.array().items(CartModel.OverrideCartItemPromo()),
638
+ quantity: Joi.number(),
639
+ seller_identifier: Joi.string().allow(""),
640
+ size: Joi.string().allow("").required(),
641
+ });
642
+ }
643
+ static OverrideCartItemPromo() {
644
+ return Joi.object({
645
+ item_list: Joi.array().items(Joi.any().allow(null)),
646
+ promo_amount: Joi.string().allow("").required(),
647
+ promo_desc: Joi.string().allow(""),
648
+ promo_id: Joi.string().allow("").required(),
649
+ rwrd_tndr: Joi.string().allow(""),
650
+ });
651
+ }
652
+ static OverrideCheckoutReq() {
653
+ return Joi.object({
654
+ aggregator: Joi.string().allow("").required(),
655
+ billing_address: Joi.any(),
656
+ cart_id: Joi.string().allow("").required(),
657
+ cart_items: Joi.array().items(CartModel.OverrideCartItem()).required(),
658
+ currency_code: Joi.string().allow("").required(),
659
+ merchant_code: Joi.string().allow("").required(),
660
+ order_type: Joi.string().allow("").required(),
661
+ ordering_store: Joi.number().allow(null),
662
+ payment_identifier: Joi.string().allow("").allow(null).required(),
663
+ payment_mode: Joi.string().allow("").required(),
664
+ shipping_address: Joi.any(),
665
+ });
666
+ }
667
+ static OverrideCheckoutResponse() {
668
+ return Joi.object({
669
+ cart: Joi.any().required(),
670
+ data: Joi.any().required(),
671
+ message: Joi.string().allow("").required(),
672
+ order_id: Joi.string().allow("").required(),
673
+ success: Joi.string().allow("").required(),
674
+ });
675
+ }
528
676
  static Ownership() {
529
677
  return Joi.object({
530
678
  payable_by: Joi.string().allow("").required(),
@@ -608,11 +756,13 @@ class CartModel {
608
756
  return Joi.object({
609
757
  _custom_json: Joi.any(),
610
758
  extra_meta: Joi.any(),
759
+ identifier: Joi.any(),
611
760
  parent_item_identifiers: Joi.any(),
612
761
  price: CartModel.ArticlePriceInfo(),
613
762
  product_group_tags: Joi.array().items(Joi.string().allow("")),
614
763
  quantity: Joi.number(),
615
764
  seller: CartModel.BaseInfo(),
765
+ seller_identifier: Joi.string().allow(""),
616
766
  size: Joi.string().allow(""),
617
767
  store: CartModel.BaseInfo(),
618
768
  type: Joi.string().allow(""),
@@ -694,6 +844,7 @@ class CartModel {
694
844
  buy_rules: Joi.object()
695
845
  .pattern(/\S/, CartModel.ItemCriteria())
696
846
  .required(),
847
+ calculate_on: Joi.string().allow(""),
697
848
  code: Joi.string().allow(""),
698
849
  currency: Joi.string().allow(""),
699
850
  date_meta: CartModel.PromotionDateMeta(),
@@ -733,6 +884,7 @@ class CartModel {
733
884
  buy_rules: Joi.object()
734
885
  .pattern(/\S/, CartModel.ItemCriteria())
735
886
  .required(),
887
+ calculate_on: Joi.string().allow(""),
736
888
  code: Joi.string().allow(""),
737
889
  currency: Joi.string().allow(""),
738
890
  date_meta: CartModel.PromotionDateMeta(),
@@ -789,6 +941,7 @@ class CartModel {
789
941
  buy_rules: Joi.object()
790
942
  .pattern(/\S/, CartModel.ItemCriteria())
791
943
  .required(),
944
+ calculate_on: Joi.string().allow(""),
792
945
  code: Joi.string().allow(""),
793
946
  currency: Joi.string().allow(""),
794
947
  date_meta: CartModel.PromotionDateMeta(),
@@ -837,6 +990,7 @@ class CartModel {
837
990
  return Joi.object({
838
991
  anonymous_users: Joi.boolean(),
839
992
  order_quantity: Joi.number(),
993
+ ordering_stores: Joi.array().items(Joi.number()),
840
994
  payments: Joi.array().items(CartModel.PromotionPaymentModes()),
841
995
  platforms: Joi.array().items(Joi.string().allow("")),
842
996
  post_order: CartModel.PostOrder1(),
@@ -278,6 +278,7 @@ declare class Catalog {
278
278
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
279
279
  * Department Ids
280
280
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
281
+ * @param {number[]} [arg.itemIds] - Get multiple products filtered by Item Ids
281
282
  * @param {number} [arg.pageNo] - The page number to navigate through the
282
283
  * given set of results
283
284
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -287,11 +288,12 @@ declare class Catalog {
287
288
  * @summary: Get applicationwise products
288
289
  * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered`
289
290
  */
290
- getAppProducts({ brandIds, categoryIds, departmentIds, tags, pageNo, pageSize, q, }?: {
291
+ getAppProducts({ brandIds, categoryIds, departmentIds, tags, itemIds, pageNo, pageSize, q, }?: {
291
292
  brandIds?: number[];
292
293
  categoryIds?: number[];
293
294
  departmentIds?: number[];
294
295
  tags?: string[];
296
+ itemIds?: number[];
295
297
  pageNo?: number;
296
298
  pageSize?: number;
297
299
  q?: string;
@@ -1313,6 +1313,7 @@ class Catalog {
1313
1313
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
1314
1314
  * Department Ids
1315
1315
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
1316
+ * @param {number[]} [arg.itemIds] - Get multiple products filtered by Item Ids
1316
1317
  * @param {number} [arg.pageNo] - The page number to navigate through the
1317
1318
  * given set of results
1318
1319
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -1327,6 +1328,7 @@ class Catalog {
1327
1328
  categoryIds,
1328
1329
  departmentIds,
1329
1330
  tags,
1331
+ itemIds,
1330
1332
  pageNo,
1331
1333
  pageSize,
1332
1334
  q,
@@ -1337,6 +1339,7 @@ class Catalog {
1337
1339
  categoryIds,
1338
1340
  departmentIds,
1339
1341
  tags,
1342
+ itemIds,
1340
1343
  pageNo,
1341
1344
  pageSize,
1342
1345
  q,
@@ -1354,6 +1357,7 @@ class Catalog {
1354
1357
  categoryIds,
1355
1358
  departmentIds,
1356
1359
  tags,
1360
+ itemIds,
1357
1361
  pageNo,
1358
1362
  pageSize,
1359
1363
  q,
@@ -1373,6 +1377,7 @@ class Catalog {
1373
1377
  query_params["category_ids"] = categoryIds;
1374
1378
  query_params["department_ids"] = departmentIds;
1375
1379
  query_params["tags"] = tags;
1380
+ query_params["item_ids"] = itemIds;
1376
1381
  query_params["page_no"] = pageNo;
1377
1382
  query_params["page_size"] = pageSize;
1378
1383
  query_params["q"] = q;
@@ -137,6 +137,7 @@ class CatalogValidator {
137
137
  categoryIds: Joi.array().items(Joi.number()),
138
138
  departmentIds: Joi.array().items(Joi.number()),
139
139
  tags: Joi.array().items(Joi.string().allow("")),
140
+ itemIds: Joi.array().items(Joi.number()),
140
141
  pageNo: Joi.number(),
141
142
  pageSize: Joi.number(),
142
143
  q: Joi.string().allow(""),
@@ -872,7 +872,7 @@ declare class Catalog {
872
872
  * @param {CategoryRequestBody} arg.body
873
873
  * @returns {Promise<CategoryUpdateResponse>} - Success response
874
874
  * @summary: Update product categories
875
- * @description: Update a product category using this apu
875
+ * @description: Update a product category using this api
876
876
  */
877
877
  updateCategory({ uid, body }?: {
878
878
  uid: string;
@@ -4754,7 +4754,7 @@ class Catalog {
4754
4754
  * @param {CategoryRequestBody} arg.body
4755
4755
  * @returns {Promise<CategoryUpdateResponse>} - Success response
4756
4756
  * @summary: Update product categories
4757
- * @description: Update a product category using this apu
4757
+ * @description: Update a product category using this api
4758
4758
  */
4759
4759
  async updateCategory({ uid, body } = {}) {
4760
4760
  const { error } = CatalogValidator.updateCategory().validate(
@@ -971,7 +971,7 @@ class CatalogModel {
971
971
  created_by: CatalogModel.UserDetail(),
972
972
  created_on: Joi.string().allow("").required(),
973
973
  is_active: Joi.boolean(),
974
- logo: Joi.string().allow("").required(),
974
+ logo: Joi.any().required(),
975
975
  modified_by: CatalogModel.UserDetail(),
976
976
  modified_on: Joi.string().allow("").required(),
977
977
  name: Joi.any().required(),
@@ -2288,7 +2288,7 @@ class CatalogModel {
2288
2288
  net_quantity: CatalogModel.NetQuantity(),
2289
2289
  no_of_boxes: Joi.number(),
2290
2290
  product_group_tag: Joi.array().items(Joi.string().allow("")),
2291
- product_publish: CatalogModel.ProductPublish1(),
2291
+ product_publish: CatalogModel.ProductPublish(),
2292
2292
  requester: Joi.string().allow(""),
2293
2293
  return_config: CatalogModel.ReturnConfig().required(),
2294
2294
  short_description: Joi.string().allow(""),
@@ -2504,7 +2504,7 @@ class CatalogModel {
2504
2504
  pending: Joi.string().allow(""),
2505
2505
  primary_color: Joi.string().allow(""),
2506
2506
  product_group_tag: Joi.array().items(Joi.string().allow("")),
2507
- product_publish: CatalogModel.ProductPublish(),
2507
+ product_publish: CatalogModel.ProductPublish1(),
2508
2508
  return_config: CatalogModel.ReturnConfigResponse(),
2509
2509
  short_description: Joi.string().allow(""),
2510
2510
  size_guide: Joi.string().allow(""),
@@ -3134,10 +3134,6 @@ class CatalogModel {
3134
3134
 
3135
3135
  "product",
3136
3136
 
3137
- "product-reviews",
3138
-
3139
- "add-product-review",
3140
-
3141
3137
  "product-request",
3142
3138
 
3143
3139
  "products",
@@ -107,21 +107,6 @@ declare class Communication {
107
107
  pageSize?: number;
108
108
  sort?: any;
109
109
  }): Promise<Audiences>;
110
- /**
111
- * @param {Object} arg - Arg object.
112
- * @param {string} arg.companyId - Company id
113
- * @param {string} arg.applicationId - Application id
114
- * @param {number} [arg.pageSize] - Current request items count
115
- * @param {Object} [arg.sort] - To sort based on created_at
116
- * @summary: Get audiences
117
- * @description: Get audiences
118
- */
119
- getAudiencesPaginator({ companyId, applicationId, pageSize, sort }?: {
120
- companyId: string;
121
- applicationId: string;
122
- pageSize?: number;
123
- sort?: any;
124
- }): Paginator;
125
110
  /**
126
111
  * @param {Object} arg - Arg object.
127
112
  * @param {BigqueryHeadersReq} arg.body
@@ -156,21 +141,6 @@ declare class Communication {
156
141
  pageSize?: number;
157
142
  sort?: any;
158
143
  }): Promise<Campaigns>;
159
- /**
160
- * @param {Object} arg - Arg object.
161
- * @param {string} arg.companyId - Company id
162
- * @param {string} arg.applicationId - Application id
163
- * @param {number} [arg.pageSize] - Current request items count
164
- * @param {Object} [arg.sort] - To sort based on created_at
165
- * @summary: Get campaigns
166
- * @description: Get campaigns
167
- */
168
- getCampaignsPaginator({ companyId, applicationId, pageSize, sort }?: {
169
- companyId: string;
170
- applicationId: string;
171
- pageSize?: number;
172
- sort?: any;
173
- }): Paginator;
174
144
  /**
175
145
  * @param {Object} arg - Arg object.
176
146
  * @param {string} [arg.pageId] - Current page no
@@ -187,23 +157,6 @@ declare class Communication {
187
157
  sort?: any;
188
158
  query?: any;
189
159
  }): Promise<Logs>;
190
- /**
191
- * @param {Object} arg - Arg object.
192
- * @param {string} arg.companyId - Company id
193
- * @param {string} arg.applicationId - Application id
194
- * @param {number} [arg.pageSize] - Current request items count
195
- * @param {Object} [arg.sort] - To sort based on _id
196
- * @param {Object} [arg.query] -
197
- * @summary: Get communication logs
198
- * @description: Get communication logs
199
- */
200
- getCommunicationLogsPaginator({ companyId, applicationId, pageSize, sort, query, }?: {
201
- companyId: string;
202
- applicationId: string;
203
- pageSize?: number;
204
- sort?: any;
205
- query?: any;
206
- }): Paginator;
207
160
  /**
208
161
  * @param {Object} arg - Arg object.
209
162
  * @param {string} arg.id - Email provider id
@@ -228,21 +181,6 @@ declare class Communication {
228
181
  pageSize?: number;
229
182
  sort?: any;
230
183
  }): Promise<EmailProviders>;
231
- /**
232
- * @param {Object} arg - Arg object.
233
- * @param {string} arg.companyId - Company id
234
- * @param {string} arg.applicationId - Application id
235
- * @param {number} [arg.pageSize] - Current request items count
236
- * @param {Object} [arg.sort] - To sort based on created_at
237
- * @summary: Get email providers
238
- * @description: Get email providers
239
- */
240
- getEmailProvidersPaginator({ companyId, applicationId, pageSize, sort, }?: {
241
- companyId: string;
242
- applicationId: string;
243
- pageSize?: number;
244
- sort?: any;
245
- }): Paginator;
246
184
  /**
247
185
  * @param {Object} arg - Arg object.
248
186
  * @param {string} arg.id - Email template id
@@ -267,21 +205,6 @@ declare class Communication {
267
205
  pageSize?: number;
268
206
  sort?: any;
269
207
  }): Promise<EmailTemplates>;
270
- /**
271
- * @param {Object} arg - Arg object.
272
- * @param {string} arg.companyId - Company id
273
- * @param {string} arg.applicationId - Application id
274
- * @param {number} [arg.pageSize] - Current request items count
275
- * @param {Object} [arg.sort] - To sort based on created_at
276
- * @summary: Get email templates
277
- * @description: Get email templates
278
- */
279
- getEmailTemplatesPaginator({ companyId, applicationId, pageSize, sort, }?: {
280
- companyId: string;
281
- applicationId: string;
282
- pageSize?: number;
283
- sort?: any;
284
- }): Paginator;
285
208
  /**
286
209
  * @param {Object} arg - Arg object.
287
210
  * @param {number} [arg.pageNo] - Current page no
@@ -296,21 +219,6 @@ declare class Communication {
296
219
  pageSize?: number;
297
220
  populate?: string;
298
221
  }): Promise<EventSubscriptions>;
299
- /**
300
- * @param {Object} arg - Arg object.
301
- * @param {string} arg.companyId - Company id
302
- * @param {string} arg.applicationId - Application id
303
- * @param {number} [arg.pageSize] - Current request items count
304
- * @param {string} [arg.populate] - Populate fields
305
- * @summary: Get event subscriptions
306
- * @description: Get event subscriptions
307
- */
308
- getEventSubscriptionsPaginator({ companyId, applicationId, pageSize, populate, }?: {
309
- companyId: string;
310
- applicationId: string;
311
- pageSize?: number;
312
- populate?: string;
313
- }): Paginator;
314
222
  /**
315
223
  * @param {Object} arg - Arg object.
316
224
  * @param {number} [arg.pageNo] - Current page no
@@ -325,21 +233,6 @@ declare class Communication {
325
233
  pageSize?: number;
326
234
  sort?: any;
327
235
  }): Promise<JobLogs>;
328
- /**
329
- * @param {Object} arg - Arg object.
330
- * @param {string} arg.companyId - Company id
331
- * @param {string} arg.applicationId - Application id
332
- * @param {number} [arg.pageSize] - Current request items count
333
- * @param {Object} [arg.sort] - To sort based on created_at
334
- * @summary: Get job logs
335
- * @description: Get job logs
336
- */
337
- getJobLogsPaginator({ companyId, applicationId, pageSize, sort }?: {
338
- companyId: string;
339
- applicationId: string;
340
- pageSize?: number;
341
- sort?: any;
342
- }): Paginator;
343
236
  /**
344
237
  * @param {Object} arg - Arg object.
345
238
  * @param {number} [arg.pageNo] - Current page no
@@ -354,21 +247,6 @@ declare class Communication {
354
247
  pageSize?: number;
355
248
  sort?: any;
356
249
  }): Promise<Jobs>;
357
- /**
358
- * @param {Object} arg - Arg object.
359
- * @param {string} arg.companyId - Company id
360
- * @param {string} arg.applicationId - Application id
361
- * @param {number} [arg.pageSize] - Current request items count
362
- * @param {Object} [arg.sort] - To sort based on created_at
363
- * @summary: Get jobs
364
- * @description: Get jobs
365
- */
366
- getJobsPaginator({ companyId, applicationId, pageSize, sort }?: {
367
- companyId: string;
368
- applicationId: string;
369
- pageSize?: number;
370
- sort?: any;
371
- }): Paginator;
372
250
  /**
373
251
  * @param {Object} arg - Arg object.
374
252
  * @param {GetNRecordsCsvReq} arg.body
@@ -403,21 +281,6 @@ declare class Communication {
403
281
  pageSize?: number;
404
282
  sort?: any;
405
283
  }): Promise<SmsProviders>;
406
- /**
407
- * @param {Object} arg - Arg object.
408
- * @param {string} arg.companyId - Company id
409
- * @param {string} arg.applicationId - Application id
410
- * @param {number} [arg.pageSize] - Current request items count
411
- * @param {Object} [arg.sort] - To sort based on created_at
412
- * @summary: Get sms providers
413
- * @description: Get sms providers
414
- */
415
- getSmsProvidersPaginator({ companyId, applicationId, pageSize, sort }?: {
416
- companyId: string;
417
- applicationId: string;
418
- pageSize?: number;
419
- sort?: any;
420
- }): Paginator;
421
284
  /**
422
285
  * @param {Object} arg - Arg object.
423
286
  * @param {string} arg.id - Sms template id
@@ -442,21 +305,6 @@ declare class Communication {
442
305
  pageSize?: number;
443
306
  sort?: any;
444
307
  }): Promise<SmsTemplates>;
445
- /**
446
- * @param {Object} arg - Arg object.
447
- * @param {string} arg.companyId - Company id
448
- * @param {string} arg.applicationId - Application id
449
- * @param {number} [arg.pageSize] - Current request items count
450
- * @param {Object} [arg.sort] - To sort based on created_at
451
- * @summary: Get sms templates
452
- * @description: Get sms templates
453
- */
454
- getSmsTemplatesPaginator({ companyId, applicationId, pageSize, sort }?: {
455
- companyId: string;
456
- applicationId: string;
457
- pageSize?: number;
458
- sort?: any;
459
- }): Paginator;
460
308
  /**
461
309
  * @param {Object} arg - Arg object.
462
310
  * @param {string} arg.id - Campaign id
@@ -481,21 +329,6 @@ declare class Communication {
481
329
  pageSize?: number;
482
330
  sort?: any;
483
331
  }): Promise<SystemEmailTemplates>;
484
- /**
485
- * @param {Object} arg - Arg object.
486
- * @param {string} arg.companyId - Company id
487
- * @param {string} arg.applicationId - Application id
488
- * @param {number} [arg.pageSize] - Current request items count
489
- * @param {Object} [arg.sort] - To sort based on created_at
490
- * @summary: Get system email templates
491
- * @description: Get system email templates
492
- */
493
- getSystemEmailTemplatesPaginator({ companyId, applicationId, pageSize, sort, }?: {
494
- companyId: string;
495
- applicationId: string;
496
- pageSize?: number;
497
- sort?: any;
498
- }): Paginator;
499
332
  /**
500
333
  * @param {Object} arg - Arg object.
501
334
  * @param {number} [arg.pageNo] - Current page no
@@ -510,21 +343,6 @@ declare class Communication {
510
343
  pageSize?: number;
511
344
  sort?: any;
512
345
  }): Promise<SystemSmsTemplates>;
513
- /**
514
- * @param {Object} arg - Arg object.
515
- * @param {string} arg.companyId - Company id
516
- * @param {string} arg.applicationId - Application id
517
- * @param {number} [arg.pageSize] - Current request items count
518
- * @param {Object} [arg.sort] - To sort based on created_at
519
- * @summary: Get system sms templates
520
- * @description: Get system sms templates
521
- */
522
- getSystemSystemTemplatesPaginator({ companyId, applicationId, pageSize, sort, }?: {
523
- companyId: string;
524
- applicationId: string;
525
- pageSize?: number;
526
- sort?: any;
527
- }): Paginator;
528
346
  /**
529
347
  * @param {Object} arg - Arg object.
530
348
  * @param {EngineRequest} arg.body
@@ -648,4 +466,3 @@ declare class Communication {
648
466
  body: VerifyOtpCommsReq;
649
467
  }): Promise<VerifyOtpCommsSuccessRes>;
650
468
  }
651
- import Paginator = require("../../common/Paginator");