@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
@@ -5,6 +5,7 @@ declare class PosCartModel {
5
5
  static AddCartRequest(): any;
6
6
  static AddProductCart(): any;
7
7
  static Address(): any;
8
+ static AppliedFreeArticles(): any;
8
9
  static AppliedPromotion(): any;
9
10
  static ApplyCouponRequest(): any;
10
11
  static ArticlePriceInfo(): any;
@@ -12,6 +13,7 @@ declare class PosCartModel {
12
13
  static BasePrice(): any;
13
14
  static BulkPriceOffer(): any;
14
15
  static BulkPriceResponse(): any;
16
+ static BuyRules(): any;
15
17
  static CartBreakup(): any;
16
18
  static CartCheckoutCustomMeta(): any;
17
19
  static CartCheckoutResponse(): any;
@@ -33,8 +35,10 @@ declare class PosCartModel {
33
35
  static CouponBreakup(): any;
34
36
  static CouponValidity(): any;
35
37
  static DeleteAddressResponse(): any;
38
+ static DiscountRulesApp(): any;
36
39
  static DisplayBreakup(): any;
37
40
  static Files(): any;
41
+ static FreeGiftItem(): any;
38
42
  static GeoLocation(): any;
39
43
  static GetAddressesResponse(): any;
40
44
  static GetCouponResponse(): any;
@@ -66,14 +66,29 @@ class PosCartModel {
66
66
  user_id: Joi.string().allow(""),
67
67
  });
68
68
  }
69
+ static AppliedFreeArticles() {
70
+ return Joi.object({
71
+ article_id: Joi.string().allow(""),
72
+ free_gift_item_details: PosCartModel.FreeGiftItem(),
73
+ parent_item_identifier: Joi.string().allow(""),
74
+ quantity: Joi.number(),
75
+ });
76
+ }
69
77
  static AppliedPromotion() {
70
78
  return Joi.object({
71
79
  amount: Joi.number(),
80
+ applied_free_articles: Joi.array().items(
81
+ PosCartModel.AppliedFreeArticles()
82
+ ),
72
83
  article_quantity: Joi.number(),
84
+ buy_rules: Joi.array().items(PosCartModel.BuyRules()),
85
+ discount_rules: Joi.array().items(PosCartModel.DiscountRulesApp()),
73
86
  mrp_promotion: Joi.boolean(),
74
87
  offer_text: Joi.string().allow(""),
75
88
  ownership: PosCartModel.Ownership(),
76
89
  promo_id: Joi.string().allow(""),
90
+ promotion_group: Joi.string().allow(""),
91
+ promotion_name: Joi.string().allow(""),
77
92
  promotion_type: Joi.string().allow(""),
78
93
  });
79
94
  }
@@ -113,6 +128,12 @@ class PosCartModel {
113
128
  data: Joi.array().items(PosCartModel.BulkPriceOffer()),
114
129
  });
115
130
  }
131
+ static BuyRules() {
132
+ return Joi.object({
133
+ cart_conditions: Joi.any(),
134
+ item_criteria: Joi.any(),
135
+ });
136
+ }
116
137
  static CartBreakup() {
117
138
  return Joi.object({
118
139
  coupon: PosCartModel.CouponBreakup(),
@@ -323,7 +344,9 @@ class PosCartModel {
323
344
  static Coupon() {
324
345
  return Joi.object({
325
346
  coupon_code: Joi.string().allow(""),
347
+ coupon_type: Joi.string().allow("").allow(null),
326
348
  coupon_value: Joi.number(),
349
+ description: Joi.string().allow("").allow(null),
327
350
  expires_on: Joi.string().allow(""),
328
351
  is_applicable: Joi.boolean(),
329
352
  is_applied: Joi.boolean(),
@@ -337,8 +360,15 @@ class PosCartModel {
337
360
  static CouponBreakup() {
338
361
  return Joi.object({
339
362
  code: Joi.string().allow(""),
363
+ coupon_type: Joi.string().allow("").allow(null),
364
+ coupon_value: Joi.number(),
365
+ description: Joi.string().allow("").allow(null),
340
366
  is_applied: Joi.boolean(),
367
+ max_discount_value: Joi.number(),
341
368
  message: Joi.string().allow(""),
369
+ minimum_cart_value: Joi.number(),
370
+ sub_title: Joi.string().allow("").allow(null),
371
+ title: Joi.string().allow("").allow(null),
342
372
  type: Joi.string().allow(""),
343
373
  uid: Joi.string().allow(""),
344
374
  value: Joi.number(),
@@ -359,6 +389,14 @@ class PosCartModel {
359
389
  is_deleted: Joi.boolean(),
360
390
  });
361
391
  }
392
+ static DiscountRulesApp() {
393
+ return Joi.object({
394
+ item_criteria: Joi.any(),
395
+ matched_buy_rules: Joi.array().items(Joi.string().allow("")),
396
+ offer: Joi.any(),
397
+ raw_offer: Joi.any(),
398
+ });
399
+ }
362
400
  static DisplayBreakup() {
363
401
  return Joi.object({
364
402
  currency_code: Joi.string().allow(""),
@@ -375,6 +413,16 @@ class PosCartModel {
375
413
  values: Joi.array().items(Joi.string().allow("")).required(),
376
414
  });
377
415
  }
416
+ static FreeGiftItem() {
417
+ return Joi.object({
418
+ item_brand_name: Joi.string().allow(""),
419
+ item_id: Joi.number(),
420
+ item_images_url: Joi.array().items(Joi.string().allow("")),
421
+ item_name: Joi.string().allow(""),
422
+ item_price_details: Joi.any(),
423
+ item_slug: Joi.string().allow(""),
424
+ });
425
+ }
378
426
  static GeoLocation() {
379
427
  return Joi.object({
380
428
  latitude: Joi.number(),
@@ -499,11 +547,13 @@ class PosCartModel {
499
547
  return Joi.object({
500
548
  _custom_json: Joi.any(),
501
549
  extra_meta: Joi.any(),
550
+ identifier: Joi.any(),
502
551
  parent_item_identifiers: Joi.any(),
503
552
  price: PosCartModel.ArticlePriceInfo(),
504
553
  product_group_tags: Joi.array().items(Joi.string().allow("")),
505
554
  quantity: Joi.number(),
506
555
  seller: PosCartModel.BaseInfo(),
556
+ seller_identifier: Joi.string().allow(""),
507
557
  size: Joi.string().allow(""),
508
558
  store: PosCartModel.BaseInfo(),
509
559
  type: Joi.string().allow(""),
@@ -28,7 +28,7 @@ declare class Rewards {
28
28
  * @param {string} arg.name - The name given to the offer.
29
29
  * @returns {Promise<Offer>} - Success response
30
30
  * @summary: Get offer by name
31
- * @description: Use this API to get the offer details and configuration by entering the name of the offer.
31
+ * @description: Use this API to get fetch the specific offer details and configuration by the name of the offer.
32
32
  */
33
33
  getOfferByName({ name }?: {
34
34
  name: string;
@@ -38,7 +38,7 @@ declare class Rewards {
38
38
  * @param {OrderDiscountRequest} arg.body
39
39
  * @returns {Promise<OrderDiscountResponse>} - Success response
40
40
  * @summary: Calculates the discount on order-amount
41
- * @description: Use this API to calculate the discount on order-amount based on all the amount range configured in order_discount.
41
+ * @description: Use this API to calculate the discount on the order amount, based on all the amount range configured in Order Discount offer.
42
42
  */
43
43
  getOrderDiscount({ body }?: {
44
44
  body: OrderDiscountRequest;
@@ -46,8 +46,8 @@ declare class Rewards {
46
46
  /**
47
47
  * @param {Object} arg - Arg object.
48
48
  * @returns {Promise<PointsResponse>} - Success response
49
- * @summary: Get referral details of a user
50
- * @description: Use this API to retrieve total available points of a user for current application
49
+ * @summary: Get total available points of a user
50
+ * @description: Use this API to retrieve total available points of a user for current application.
51
51
  */
52
52
  getUserPoints({}?: any): Promise<PointsResponse>;
53
53
  /**
@@ -57,7 +57,7 @@ declare class Rewards {
57
57
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
58
58
  * @returns {Promise<PointsHistoryResponse>} - Success response
59
59
  * @summary: Get all transactions of reward points
60
- * @description: Use this API to get a list of points transactions.
60
+ * @description: Use this API to fetch a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
61
61
  */
62
62
  getUserPointsHistory({ pageId, pageSize }?: {
63
63
  pageId?: string;
@@ -67,7 +67,7 @@ declare class Rewards {
67
67
  * @param {Object} arg - Arg object.
68
68
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
69
69
  * @summary: Get all transactions of reward points
70
- * @description: Use this API to get a list of points transactions.
70
+ * @description: Use this API to fetch a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
71
71
  */
72
72
  getUserPointsHistoryPaginator({ pageSize }?: {
73
73
  pageSize?: number;
@@ -76,14 +76,14 @@ declare class Rewards {
76
76
  * @param {Object} arg - Arg object.
77
77
  * @returns {Promise<ReferralDetailsResponse>} - Success response
78
78
  * @summary: Get referral details of a user
79
- * @description: Use this API to retrieve the referral details a user has configured in the application.
79
+ * @description: Use this API to retrieve the referral details like referral code of a user.
80
80
  */
81
81
  getUserReferralDetails({}?: any): Promise<ReferralDetailsResponse>;
82
82
  /**
83
83
  * @param {Object} arg - Arg object.
84
84
  * @param {RedeemReferralCodeRequest} arg.body
85
85
  * @returns {Promise<RedeemReferralCodeResponse>} - Success response
86
- * @summary: Redeems a referral code and credits reward points to users
86
+ * @summary: Redeems a referral code and credits reward points to referee and the referrer as per the configuration
87
87
  * @description: Use this API to enter a referral code following which, the configured points would be credited to a user's reward points account.
88
88
  */
89
89
  redeemReferralCode({ body }?: {
@@ -108,7 +108,7 @@ class Rewards {
108
108
  * @param {string} arg.name - The name given to the offer.
109
109
  * @returns {Promise<Offer>} - Success response
110
110
  * @summary: Get offer by name
111
- * @description: Use this API to get the offer details and configuration by entering the name of the offer.
111
+ * @description: Use this API to get fetch the specific offer details and configuration by the name of the offer.
112
112
  */
113
113
  async getOfferByName({ name } = {}) {
114
114
  const { error } = RewardsValidator.getOfferByName().validate(
@@ -169,7 +169,7 @@ class Rewards {
169
169
  * @param {OrderDiscountRequest} arg.body
170
170
  * @returns {Promise<OrderDiscountResponse>} - Success response
171
171
  * @summary: Calculates the discount on order-amount
172
- * @description: Use this API to calculate the discount on order-amount based on all the amount range configured in order_discount.
172
+ * @description: Use this API to calculate the discount on the order amount, based on all the amount range configured in Order Discount offer.
173
173
  */
174
174
  async getOrderDiscount({ body } = {}) {
175
175
  const { error } = RewardsValidator.getOrderDiscount().validate(
@@ -230,8 +230,8 @@ class Rewards {
230
230
  /**
231
231
  * @param {Object} arg - Arg object.
232
232
  * @returns {Promise<PointsResponse>} - Success response
233
- * @summary: Get referral details of a user
234
- * @description: Use this API to retrieve total available points of a user for current application
233
+ * @summary: Get total available points of a user
234
+ * @description: Use this API to retrieve total available points of a user for current application.
235
235
  */
236
236
  async getUserPoints({} = {}) {
237
237
  const { error } = RewardsValidator.getUserPoints().validate(
@@ -296,7 +296,7 @@ class Rewards {
296
296
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
297
297
  * @returns {Promise<PointsHistoryResponse>} - Success response
298
298
  * @summary: Get all transactions of reward points
299
- * @description: Use this API to get a list of points transactions.
299
+ * @description: Use this API to fetch a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
300
300
  */
301
301
  async getUserPointsHistory({ pageId, pageSize } = {}) {
302
302
  const { error } = RewardsValidator.getUserPointsHistory().validate(
@@ -362,7 +362,7 @@ class Rewards {
362
362
  * @param {Object} arg - Arg object.
363
363
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
364
364
  * @summary: Get all transactions of reward points
365
- * @description: Use this API to get a list of points transactions.
365
+ * @description: Use this API to fetch a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
366
366
  */
367
367
  getUserPointsHistoryPaginator({ pageSize } = {}) {
368
368
  const paginator = new Paginator();
@@ -388,7 +388,7 @@ class Rewards {
388
388
  * @param {Object} arg - Arg object.
389
389
  * @returns {Promise<ReferralDetailsResponse>} - Success response
390
390
  * @summary: Get referral details of a user
391
- * @description: Use this API to retrieve the referral details a user has configured in the application.
391
+ * @description: Use this API to retrieve the referral details like referral code of a user.
392
392
  */
393
393
  async getUserReferralDetails({} = {}) {
394
394
  const { error } = RewardsValidator.getUserReferralDetails().validate(
@@ -452,7 +452,7 @@ class Rewards {
452
452
  * @param {Object} arg - Arg object.
453
453
  * @param {RedeemReferralCodeRequest} arg.body
454
454
  * @returns {Promise<RedeemReferralCodeResponse>} - Success response
455
- * @summary: Redeems a referral code and credits reward points to users
455
+ * @summary: Redeems a referral code and credits reward points to referee and the referrer as per the configuration
456
456
  * @description: Use this API to enter a referral code following which, the configured points would be credited to a user's reward points account.
457
457
  */
458
458
  async redeemReferralCode({ body } = {}) {
@@ -38,7 +38,7 @@ function requestInterceptorFn() {
38
38
  }
39
39
  const { host, pathname, search } = new URL(url);
40
40
  const { data, headers, method, params } = config;
41
- headers["x-fp-sdk-version"] = "1.0.3";
41
+ headers["x-fp-sdk-version"] = "1.1.2";
42
42
  let querySearchObj = querystring.parse(search);
43
43
  querySearchObj = { ...querySearchObj, ...params };
44
44
  let queryParam = "";
@@ -20,8 +20,6 @@ export namespace AVAILABLE_PAGE_TYPE {
20
20
  const PAGE: string;
21
21
  const POLICY: string;
22
22
  const PRODUCT: string;
23
- const PRODUCT_REVIEWS: string;
24
- const ADD_PRODUCT_REVIEW: string;
25
23
  const PRODUCT_REQUEST: string;
26
24
  const PRODUCTS: string;
27
25
  const PROFILE: string;
@@ -168,22 +166,6 @@ export const NAVIGATORS: {
168
166
  required: boolean;
169
167
  }[];
170
168
  };
171
- "product-reviews": {
172
- name: string;
173
- link: string;
174
- params: {
175
- key: string;
176
- required: boolean;
177
- }[];
178
- };
179
- "add-product-review": {
180
- name: string;
181
- link: string;
182
- params: {
183
- key: string;
184
- required: boolean;
185
- }[];
186
- };
187
169
  "product-request": {
188
170
  name: string;
189
171
  link: string;
@@ -20,8 +20,6 @@ const AVAILABLE_PAGE_TYPE = {
20
20
  PAGE: "page",
21
21
  POLICY: "policy",
22
22
  PRODUCT: "product",
23
- PRODUCT_REVIEWS: "product-reviews",
24
- ADD_PRODUCT_REVIEW: "add-product-review",
25
23
  PRODUCT_REQUEST: "product-request",
26
24
  PRODUCTS: "products",
27
25
  PROFILE: "profile",
@@ -189,26 +187,6 @@ const NAVIGATORS = {
189
187
  },
190
188
  ],
191
189
  },
192
- "product-reviews": {
193
- name: "Product Reviews",
194
- link: "/product/:slug/reviews",
195
- params: [
196
- {
197
- key: "slug",
198
- required: true,
199
- },
200
- ],
201
- },
202
- "add-product-review": {
203
- name: "Add Product review",
204
- link: "/product/:slug/add-review",
205
- params: [
206
- {
207
- key: "slug",
208
- required: true,
209
- },
210
- ],
211
- },
212
190
  "product-request": {
213
191
  name: "Product Request",
214
192
  link: "/product-request/",
@@ -37,6 +37,16 @@ declare class Cart {
37
37
  checkoutCart({ body }?: {
38
38
  body: OpenApiPlatformCheckoutReq;
39
39
  }): Promise<OpenApiCheckoutResponse>;
40
+ /**
41
+ * @param {Object} arg - Arg object.
42
+ * @param {CartMetaConfigAdd} arg.body
43
+ * @returns {Promise<CartMetaConfigAdd>} - Success response
44
+ * @summary: Create new cart meta configuration
45
+ * @description: Create new cart meta configuration
46
+ */
47
+ createCartMetaConfig({ body }?: {
48
+ body: CartMetaConfigAdd;
49
+ }): Promise<CartMetaConfigAdd>;
40
50
  /**
41
51
  * @param {Object} arg - Arg object.
42
52
  * @param {CouponAdd} arg.body
@@ -67,6 +77,13 @@ declare class Cart {
67
77
  fetchAndvalidateCartItems({ body }?: {
68
78
  body: OpenapiCartDetailsRequest;
69
79
  }): Promise<OpenapiCartDetailsResponse>;
80
+ /**
81
+ * @param {Object} arg - Arg object.
82
+ * @returns {Promise<CartMetaConfigAdd>} - Success response
83
+ * @summary: Fetch cart meta configuration
84
+ * @description: Fetch cart meta configuration
85
+ */
86
+ fetchCartMetaConfig({}?: any): Promise<CartMetaConfigAdd>;
70
87
  /**
71
88
  * @param {Object} arg - Arg object.
72
89
  * @param {number} [arg.pageNo] -
@@ -202,6 +219,18 @@ declare class Cart {
202
219
  typeSlug?: string;
203
220
  code?: string;
204
221
  }): Paginator;
222
+ /**
223
+ * @param {Object} arg - Arg object.
224
+ * @param {string} [arg.entityType] - Entity_type as coupon or promotion
225
+ * @param {boolean} [arg.isHidden] - Show Promo Coupon Config or not
226
+ * @returns {Promise<ActivePromosResponse>} - Success response
227
+ * @summary: Fetch all promos that are set as active
228
+ * @description: Use this API to get list of all the active promos/coupons.
229
+ */
230
+ getPromosCouponConfig({ entityType, isHidden }?: {
231
+ entityType?: string;
232
+ isHidden?: boolean;
233
+ }): Promise<ActivePromosResponse>;
205
234
  /**
206
235
  * @param {Object} arg - Arg object.
207
236
  * @param {string} arg.id -
@@ -271,6 +300,16 @@ declare class Cart {
271
300
  fpPanel?: string;
272
301
  promotionId?: string;
273
302
  }): Paginator;
303
+ /**
304
+ * @param {Object} arg - Arg object.
305
+ * @param {OverrideCheckoutReq} arg.body
306
+ * @returns {Promise<OverrideCheckoutResponse>} - Success response
307
+ * @summary: Create Fynd order with overriding cart details
308
+ * @description: Generate Fynd order while overriding cart details sent with provided `cart_items`
309
+ */
310
+ overrideCart({ body }?: {
311
+ body: OverrideCheckoutReq;
312
+ }): Promise<OverrideCheckoutResponse>;
274
313
  /**
275
314
  * @param {Object} arg - Arg object.
276
315
  * @param {string} arg.cartId - Current Cart _id
@@ -285,6 +324,18 @@ declare class Cart {
285
324
  b?: boolean;
286
325
  body: UpdateCartRequest;
287
326
  }): Promise<UpdateCartDetailResponse>;
327
+ /**
328
+ * @param {Object} arg - Arg object.
329
+ * @param {string} arg.cartMetaId -
330
+ * @param {CartMetaConfigUpdate} arg.body
331
+ * @returns {Promise<CartMetaConfigUpdate>} - Success response
332
+ * @summary: Update cart meta configuration
333
+ * @description: Update cart meta configuration
334
+ */
335
+ updateCartMetaConfig({ cartMetaId, body }?: {
336
+ cartMetaId: string;
337
+ body: CartMetaConfigUpdate;
338
+ }): Promise<CartMetaConfigUpdate>;
288
339
  /**
289
340
  * @param {Object} arg - Arg object.
290
341
  * @param {string} arg.id -