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

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  111. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  113. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  175. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  176. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  177. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  178. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  179. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  180. package/sdk/public/PublicClient.d.ts +0 -2
  181. package/sdk/public/PublicClient.js +0 -4
  182. package/sdk/public/index.d.ts +0 -1
  183. package/sdk/public/index.js +0 -2
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -26,6 +26,12 @@ export = BillingPlatformValidator;
26
26
  * @property {string} extensionId - Extension _id
27
27
  * @property {BillingPlatformModel.CreateOneTimeCharge} body
28
28
  */
29
+ /**
30
+ * @typedef CreateSubscriptionChargeParam
31
+ * @property {string} extensionId - Extension Id for which we need to crete new
32
+ * subscription
33
+ * @property {BillingPlatformModel.CreateSubscriptionCharge} body
34
+ */
29
35
  /**
30
36
  * @typedef CreditTransactionParam
31
37
  * @property {number} uniqueId - Unique ID of the company
@@ -43,6 +49,11 @@ export = BillingPlatformValidator;
43
49
  * @property {string} [productSuite]
44
50
  * @property {string} [type]
45
51
  */
52
+ /**
53
+ * @typedef CurrentLimitParam
54
+ * @property {string} [productSuite]
55
+ * @property {string} [type]
56
+ */
46
57
  /** @typedef GetBankListParam */
47
58
  /**
48
59
  * @typedef GetChargeDetailsParam
@@ -51,11 +62,6 @@ export = BillingPlatformValidator;
51
62
  */
52
63
  /** @typedef GetCustomerDetailParam */
53
64
  /** @typedef GetEnterprisePlansParam */
54
- /**
55
- * @typedef GetFeatureLimitConfigParam
56
- * @property {string} [productSuite]
57
- * @property {string} [type]
58
- */
59
65
  /**
60
66
  * @typedef GetInvoiceByIdParam
61
67
  * @property {string} invoiceId - Invoice id
@@ -99,7 +105,7 @@ export = BillingPlatformValidator;
99
105
  */
100
106
  /**
101
107
  * @typedef PaymentInitiateParam
102
- * @property {BillingPlatformModel.SunscribePlan} body
108
+ * @property {BillingPlatformModel.SubscribePlan} body
103
109
  */
104
110
  /**
105
111
  * @typedef PaymentOptionsParam
@@ -194,10 +200,14 @@ declare class BillingPlatformValidator {
194
200
  static checkCouponValidity(): CheckCouponValidityParam;
195
201
  /** @returns {CreateOneTimeChargeParam} */
196
202
  static createOneTimeCharge(): CreateOneTimeChargeParam;
203
+ /** @returns {CreateSubscriptionChargeParam} */
204
+ static createSubscriptionCharge(): CreateSubscriptionChargeParam;
197
205
  /** @returns {CreditTransactionParam} */
198
206
  static creditTransaction(): CreditTransactionParam;
199
207
  /** @returns {CurrentAppLimitParam} */
200
208
  static currentAppLimit(): CurrentAppLimitParam;
209
+ /** @returns {CurrentLimitParam} */
210
+ static currentLimit(): CurrentLimitParam;
201
211
  /** @returns {GetBankListParam} */
202
212
  static getBankList(): any;
203
213
  /** @returns {GetChargeDetailsParam} */
@@ -206,8 +216,6 @@ declare class BillingPlatformValidator {
206
216
  static getCustomerDetail(): any;
207
217
  /** @returns {GetEnterprisePlansParam} */
208
218
  static getEnterprisePlans(): any;
209
- /** @returns {GetFeatureLimitConfigParam} */
210
- static getFeatureLimitConfig(): GetFeatureLimitConfigParam;
211
219
  /** @returns {GetInvoiceByIdParam} */
212
220
  static getInvoiceById(): GetInvoiceByIdParam;
213
221
  /** @returns {GetInvoicesParam} */
@@ -272,7 +280,7 @@ declare class BillingPlatformValidator {
272
280
  static verifyPayment(): VerifyPaymentParam;
273
281
  }
274
282
  declare namespace BillingPlatformValidator {
275
- export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreditTransactionParam, CurrentAppLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetFeatureLimitConfigParam, GetInvoiceByIdParam, GetInvoicesParam, GetPaymentOptionsParam, GetPaymentTransactionParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, GlobalSettingsParam, MethodDefaultParam, PaymentCollectParam, PaymentInitiateParam, PaymentOptionsParam, PaymentStatusParam, PlanDowngradeParam, PlanDowngradeGetParam, PlanStatusUpdateParam, SetupIntentParam, SetupMandateParam, SetupPaymentParam, SubscriptionConfigsParam, SubscriptionMethodsParam, SubscriptionMethodsDeleteParam, SubscriptionPlanChangeParam, SubscriptionRenewParam, TopupCancelCreditParam, TopupCreditParam, UpdateConsentParam, UpdateSetupIntentParam, UpgradePlanParam, UpsertCustomerDetailParam, VerifyPaymentParam };
283
+ export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, CreditTransactionParam, CurrentAppLimitParam, CurrentLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetInvoiceByIdParam, GetInvoicesParam, GetPaymentOptionsParam, GetPaymentTransactionParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, GlobalSettingsParam, MethodDefaultParam, PaymentCollectParam, PaymentInitiateParam, PaymentOptionsParam, PaymentStatusParam, PlanDowngradeParam, PlanDowngradeGetParam, PlanStatusUpdateParam, SetupIntentParam, SetupMandateParam, SetupPaymentParam, SubscriptionConfigsParam, SubscriptionMethodsParam, SubscriptionMethodsDeleteParam, SubscriptionPlanChangeParam, SubscriptionRenewParam, TopupCancelCreditParam, TopupCreditParam, UpdateConsentParam, UpdateSetupIntentParam, UpgradePlanParam, UpsertCustomerDetailParam, VerifyPaymentParam };
276
284
  }
277
285
  type ActivateSubscriptionPlanParam = {
278
286
  body: BillingPlatformModel.SubscriptionActivateReq;
@@ -310,6 +318,14 @@ type CreateOneTimeChargeParam = {
310
318
  extensionId: string;
311
319
  body: BillingPlatformModel.CreateOneTimeCharge;
312
320
  };
321
+ type CreateSubscriptionChargeParam = {
322
+ /**
323
+ * - Extension Id for which we need to crete new
324
+ * subscription
325
+ */
326
+ extensionId: string;
327
+ body: BillingPlatformModel.CreateSubscriptionCharge;
328
+ };
313
329
  type CreditTransactionParam = {
314
330
  /**
315
331
  * - Unique ID of the company
@@ -352,6 +368,10 @@ type CurrentAppLimitParam = {
352
368
  productSuite?: string;
353
369
  type?: string;
354
370
  };
371
+ type CurrentLimitParam = {
372
+ productSuite?: string;
373
+ type?: string;
374
+ };
355
375
  type GetChargeDetailsParam = {
356
376
  /**
357
377
  * - Extension _id
@@ -362,10 +382,6 @@ type GetChargeDetailsParam = {
362
382
  */
363
383
  chargeId: string;
364
384
  };
365
- type GetFeatureLimitConfigParam = {
366
- productSuite?: string;
367
- type?: string;
368
- };
369
385
  type GetInvoiceByIdParam = {
370
386
  /**
371
387
  * - Invoice id
@@ -437,7 +453,7 @@ type PaymentCollectParam = {
437
453
  body: BillingPlatformModel.PaymentCollectReq;
438
454
  };
439
455
  type PaymentInitiateParam = {
440
- body: BillingPlatformModel.SunscribePlan;
456
+ body: BillingPlatformModel.SubscribePlan;
441
457
  };
442
458
  type PaymentOptionsParam = {
443
459
  /**
@@ -35,6 +35,13 @@ const BillingPlatformModel = require("./BillingPlatformModel");
35
35
  * @property {BillingPlatformModel.CreateOneTimeCharge} body
36
36
  */
37
37
 
38
+ /**
39
+ * @typedef CreateSubscriptionChargeParam
40
+ * @property {string} extensionId - Extension Id for which we need to crete new
41
+ * subscription
42
+ * @property {BillingPlatformModel.CreateSubscriptionCharge} body
43
+ */
44
+
38
45
  /**
39
46
  * @typedef CreditTransactionParam
40
47
  * @property {number} uniqueId - Unique ID of the company
@@ -54,6 +61,12 @@ const BillingPlatformModel = require("./BillingPlatformModel");
54
61
  * @property {string} [type]
55
62
  */
56
63
 
64
+ /**
65
+ * @typedef CurrentLimitParam
66
+ * @property {string} [productSuite]
67
+ * @property {string} [type]
68
+ */
69
+
57
70
  /** @typedef GetBankListParam */
58
71
 
59
72
  /**
@@ -66,12 +79,6 @@ const BillingPlatformModel = require("./BillingPlatformModel");
66
79
 
67
80
  /** @typedef GetEnterprisePlansParam */
68
81
 
69
- /**
70
- * @typedef GetFeatureLimitConfigParam
71
- * @property {string} [productSuite]
72
- * @property {string} [type]
73
- */
74
-
75
82
  /**
76
83
  * @typedef GetInvoiceByIdParam
77
84
  * @property {string} invoiceId - Invoice id
@@ -125,7 +132,7 @@ const BillingPlatformModel = require("./BillingPlatformModel");
125
132
 
126
133
  /**
127
134
  * @typedef PaymentInitiateParam
128
- * @property {BillingPlatformModel.SunscribePlan} body
135
+ * @property {BillingPlatformModel.SubscribePlan} body
129
136
  */
130
137
 
131
138
  /**
@@ -274,6 +281,14 @@ class BillingPlatformValidator {
274
281
  }).required();
275
282
  }
276
283
 
284
+ /** @returns {CreateSubscriptionChargeParam} */
285
+ static createSubscriptionCharge() {
286
+ return Joi.object({
287
+ extensionId: Joi.string().allow("").required(),
288
+ body: BillingPlatformModel.CreateSubscriptionCharge().required(),
289
+ }).required();
290
+ }
291
+
277
292
  /** @returns {CreditTransactionParam} */
278
293
  static creditTransaction() {
279
294
  return Joi.object({
@@ -297,6 +312,14 @@ class BillingPlatformValidator {
297
312
  }).required();
298
313
  }
299
314
 
315
+ /** @returns {CurrentLimitParam} */
316
+ static currentLimit() {
317
+ return Joi.object({
318
+ productSuite: Joi.string().allow(""),
319
+ type: Joi.string().allow(""),
320
+ }).required();
321
+ }
322
+
300
323
  /** @returns {GetBankListParam} */
301
324
  static getBankList() {
302
325
  return Joi.object({}).required();
@@ -320,14 +343,6 @@ class BillingPlatformValidator {
320
343
  return Joi.object({}).required();
321
344
  }
322
345
 
323
- /** @returns {GetFeatureLimitConfigParam} */
324
- static getFeatureLimitConfig() {
325
- return Joi.object({
326
- productSuite: Joi.string().allow(""),
327
- type: Joi.string().allow(""),
328
- }).required();
329
- }
330
-
331
346
  /** @returns {GetInvoiceByIdParam} */
332
347
  static getInvoiceById() {
333
348
  return Joi.object({
@@ -404,7 +419,7 @@ class BillingPlatformValidator {
404
419
  /** @returns {PaymentInitiateParam} */
405
420
  static paymentInitiate() {
406
421
  return Joi.object({
407
- body: BillingPlatformModel.SunscribePlan().required(),
422
+ body: BillingPlatformModel.SubscribePlan().required(),
408
423
  }).required();
409
424
  }
410
425
 
@@ -161,13 +161,13 @@ export = CartPlatformModel;
161
161
  */
162
162
  /**
163
163
  * @typedef Page
164
- * @property {number} [item_total]
165
- * @property {string} [next_id]
166
- * @property {boolean} [has_previous]
167
- * @property {boolean} [has_next]
168
- * @property {number} [current]
169
- * @property {string} type
170
- * @property {number} [size]
164
+ * @property {number} [item_total] - The total number of items on the page.
165
+ * @property {string} [next_id] - The identifier for the next page.
166
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
167
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
168
+ * @property {number} [current] - The current page number.
169
+ * @property {string} type - The type of the page, such as 'PageType'.
170
+ * @property {number} [size] - The number of items per page.
171
171
  */
172
172
  /**
173
173
  * @typedef CouponsResponse
@@ -1982,12 +1982,33 @@ type CouponAdd = {
1982
1982
  /** @returns {Page} */
1983
1983
  declare function Page(): Page;
1984
1984
  type Page = {
1985
+ /**
1986
+ * - The total number of items on the page.
1987
+ */
1985
1988
  item_total?: number;
1989
+ /**
1990
+ * - The identifier for the next page.
1991
+ */
1986
1992
  next_id?: string;
1993
+ /**
1994
+ * - Indicates whether there is a previous page.
1995
+ */
1987
1996
  has_previous?: boolean;
1997
+ /**
1998
+ * - Indicates whether there is a next page.
1999
+ */
1988
2000
  has_next?: boolean;
2001
+ /**
2002
+ * - The current page number.
2003
+ */
1989
2004
  current?: number;
2005
+ /**
2006
+ * - The type of the page, such as 'PageType'.
2007
+ */
1990
2008
  type: string;
2009
+ /**
2010
+ * - The number of items per page.
2011
+ */
1991
2012
  size?: number;
1992
2013
  };
1993
2014
  /** @returns {CouponsResponse} */
@@ -184,13 +184,13 @@ const Joi = require("joi");
184
184
 
185
185
  /**
186
186
  * @typedef Page
187
- * @property {number} [item_total]
188
- * @property {string} [next_id]
189
- * @property {boolean} [has_previous]
190
- * @property {boolean} [has_next]
191
- * @property {number} [current]
192
- * @property {string} type
193
- * @property {number} [size]
187
+ * @property {number} [item_total] - The total number of items on the page.
188
+ * @property {string} [next_id] - The identifier for the next page.
189
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
190
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
191
+ * @property {number} [current] - The current page number.
192
+ * @property {string} type - The type of the page, such as 'PageType'.
193
+ * @property {number} [size] - The number of items per page.
194
194
  */
195
195
 
196
196
  /**
@@ -2412,7 +2412,7 @@ class CartPlatformModel {
2412
2412
  /** @returns {Restrictions1} */
2413
2413
  static Restrictions1() {
2414
2414
  return Joi.object({
2415
- payments: Joi.any(),
2415
+ payments: Joi.object().pattern(/\S/, CartPlatformModel.PaymentModes()),
2416
2416
  user_registered: CartPlatformModel.UserRegistered(),
2417
2417
  platforms: Joi.array().items(Joi.string().allow("")),
2418
2418
  post_order: CartPlatformModel.PostOrder1(),
@@ -681,7 +681,7 @@ declare class Catalog {
681
681
  * @summary: List products
682
682
  * @description: Retrieve a list of available products - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProducts/).
683
683
  */
684
- getProducts({ brandIds, categoryIds, itemIds, departmentIds, itemCode, q, tags, pageNo, pageSize, requestHeaders, }?: CatalogPlatformValidator.GetProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductListingResponseV2>;
684
+ getProducts({ brandIds, categoryIds, itemIds, departmentIds, itemCode, name, slug, allIdentifiers, q, tags, pageNo, pageSize, pageType, sortOn, pageId, requestHeaders, }?: CatalogPlatformValidator.GetProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductListingResponseV2>;
685
685
  /**
686
686
  * @param {Object} arg - Arg object.
687
687
  * @param {number[]} [arg.brandIds] - Get multiple products filtered by Brand Ids
@@ -691,23 +691,33 @@ declare class Catalog {
691
691
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
692
692
  * Department Ids
693
693
  * @param {string[]} [arg.itemCode] - Get multiple products filtered by Item Code
694
+ * @param {string} [arg.name] - Get multiple products filtered by Name (Pattern Match)
695
+ * @param {string} [arg.slug] - Get multiple products filtered by Slug
696
+ * @param {string[]} [arg.allIdentifiers] - Get multiple products filtered
697
+ * by All Identifiers
694
698
  * @param {string} [arg.q] - Get multiple products filtered by q string
695
699
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
696
700
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
697
701
  * page. Default is 10.
702
+ * @param {string} [arg.sortOn] - Field which is to be used for sorting,
703
+ * default is latest. Value can be latest (modified_on) or created (record id)
698
704
  * @returns {Paginator<CatalogPlatformModel.ProductListingResponseV2>}
699
705
  * @summary: List products
700
706
  * @description: Retrieve a list of available products
701
707
  */
702
- getProductsPaginator({ brandIds, categoryIds, itemIds, departmentIds, itemCode, q, tags, pageSize, }?: {
708
+ getProductsPaginator({ brandIds, categoryIds, itemIds, departmentIds, itemCode, name, slug, allIdentifiers, q, tags, pageSize, sortOn, }?: {
703
709
  brandIds?: number[];
704
710
  categoryIds?: number[];
705
711
  itemIds?: number[];
706
712
  departmentIds?: number[];
707
713
  itemCode?: string[];
714
+ name?: string;
715
+ slug?: string;
716
+ allIdentifiers?: string[];
708
717
  q?: string;
709
718
  tags?: string[];
710
719
  pageSize?: number;
720
+ sortOn?: string;
711
721
  }): Paginator<CatalogPlatformModel.ProductListingResponseV2>;
712
722
  /**
713
723
  * @param {CatalogPlatformValidator.GetSellerInsightsParam} arg - Arg object
@@ -4617,10 +4617,16 @@ class Catalog {
4617
4617
  itemIds,
4618
4618
  departmentIds,
4619
4619
  itemCode,
4620
+ name,
4621
+ slug,
4622
+ allIdentifiers,
4620
4623
  q,
4621
4624
  tags,
4622
4625
  pageNo,
4623
4626
  pageSize,
4627
+ pageType,
4628
+ sortOn,
4629
+ pageId,
4624
4630
  requestHeaders,
4625
4631
  } = { requestHeaders: {} },
4626
4632
  { responseHeaders } = { responseHeaders: false }
@@ -4632,10 +4638,16 @@ class Catalog {
4632
4638
  itemIds,
4633
4639
  departmentIds,
4634
4640
  itemCode,
4641
+ name,
4642
+ slug,
4643
+ allIdentifiers,
4635
4644
  q,
4636
4645
  tags,
4637
4646
  pageNo,
4638
4647
  pageSize,
4648
+ pageType,
4649
+ sortOn,
4650
+ pageId,
4639
4651
  },
4640
4652
  { abortEarly: false, allowUnknown: true }
4641
4653
  );
@@ -4651,10 +4663,16 @@ class Catalog {
4651
4663
  itemIds,
4652
4664
  departmentIds,
4653
4665
  itemCode,
4666
+ name,
4667
+ slug,
4668
+ allIdentifiers,
4654
4669
  q,
4655
4670
  tags,
4656
4671
  pageNo,
4657
4672
  pageSize,
4673
+ pageType,
4674
+ sortOn,
4675
+ pageId,
4658
4676
  },
4659
4677
  { abortEarly: false, allowUnknown: false }
4660
4678
  );
@@ -4671,10 +4689,16 @@ class Catalog {
4671
4689
  query_params["item_ids"] = itemIds;
4672
4690
  query_params["department_ids"] = departmentIds;
4673
4691
  query_params["item_code"] = itemCode;
4692
+ query_params["name"] = name;
4693
+ query_params["slug"] = slug;
4694
+ query_params["all_identifiers"] = allIdentifiers;
4674
4695
  query_params["q"] = q;
4675
4696
  query_params["tags"] = tags;
4676
4697
  query_params["page_no"] = pageNo;
4677
4698
  query_params["page_size"] = pageSize;
4699
+ query_params["page_type"] = pageType;
4700
+ query_params["sort_on"] = sortOn;
4701
+ query_params["page_id"] = pageId;
4678
4702
 
4679
4703
  const xHeaders = {};
4680
4704
 
@@ -4723,10 +4747,16 @@ class Catalog {
4723
4747
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
4724
4748
  * Department Ids
4725
4749
  * @param {string[]} [arg.itemCode] - Get multiple products filtered by Item Code
4750
+ * @param {string} [arg.name] - Get multiple products filtered by Name (Pattern Match)
4751
+ * @param {string} [arg.slug] - Get multiple products filtered by Slug
4752
+ * @param {string[]} [arg.allIdentifiers] - Get multiple products filtered
4753
+ * by All Identifiers
4726
4754
  * @param {string} [arg.q] - Get multiple products filtered by q string
4727
4755
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
4728
4756
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
4729
4757
  * page. Default is 10.
4758
+ * @param {string} [arg.sortOn] - Field which is to be used for sorting,
4759
+ * default is latest. Value can be latest (modified_on) or created (record id)
4730
4760
  * @returns {Paginator<CatalogPlatformModel.ProductListingResponseV2>}
4731
4761
  * @summary: List products
4732
4762
  * @description: Retrieve a list of available products
@@ -4737,25 +4767,35 @@ class Catalog {
4737
4767
  itemIds,
4738
4768
  departmentIds,
4739
4769
  itemCode,
4770
+ name,
4771
+ slug,
4772
+ allIdentifiers,
4740
4773
  q,
4741
4774
  tags,
4742
4775
  pageSize,
4776
+ sortOn,
4743
4777
  } = {}) {
4744
4778
  const paginator = new Paginator();
4745
4779
  const callback = async () => {
4746
4780
  const pageId = paginator.nextId;
4747
4781
  const pageNo = paginator.pageNo;
4748
- const pageType = "number";
4782
+ const pageType = "cursor";
4749
4783
  const data = await this.getProducts({
4750
4784
  brandIds: brandIds,
4751
4785
  categoryIds: categoryIds,
4752
4786
  itemIds: itemIds,
4753
4787
  departmentIds: departmentIds,
4754
4788
  itemCode: itemCode,
4789
+ name: name,
4790
+ slug: slug,
4791
+ allIdentifiers: allIdentifiers,
4755
4792
  q: q,
4756
4793
  tags: tags,
4757
4794
  pageNo: pageNo,
4758
4795
  pageSize: pageSize,
4796
+ pageType: pageType,
4797
+ sortOn: sortOn,
4798
+ pageId: pageId,
4759
4799
  });
4760
4800
  paginator.setPaginator({
4761
4801
  hasNext: data.page.has_next ? true : false,
@@ -1,7 +1,7 @@
1
1
  export = CatalogPlatformModel;
2
2
  /**
3
3
  * @typedef Action
4
- * @property {string} [type]
4
+ * @property {string} [type] - Type of action to be taken e.g, page.
5
5
  * @property {ActionPage} [page]
6
6
  * @property {ActionPage} [popup]
7
7
  */
@@ -2171,13 +2171,13 @@ export = CatalogPlatformModel;
2171
2171
  */
2172
2172
  /**
2173
2173
  * @typedef Page
2174
- * @property {number} [item_total]
2175
- * @property {string} [next_id]
2176
- * @property {boolean} [has_previous]
2177
- * @property {boolean} [has_next]
2178
- * @property {number} [current]
2179
- * @property {string} type
2180
- * @property {number} [size]
2174
+ * @property {number} [item_total] - The total number of items on the page.
2175
+ * @property {string} [next_id] - The identifier for the next page.
2176
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
2177
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
2178
+ * @property {number} [current] - The current page number.
2179
+ * @property {string} type - The type of the page, such as 'PageType'.
2180
+ * @property {number} [size] - The number of items per page.
2181
2181
  */
2182
2182
  /**
2183
2183
  * @typedef PageResponse
@@ -3285,9 +3285,9 @@ export = CatalogPlatformModel;
3285
3285
  */
3286
3286
  /**
3287
3287
  * @typedef ActionPage
3288
- * @property {Object} [params]
3289
- * @property {Object} [query]
3290
- * @property {string} [url]
3288
+ * @property {Object} [params] - Parameters that should be considered in path.
3289
+ * @property {Object} [query] - Query parameter if any to be added to the action.
3290
+ * @property {string} [url] - The URL for the action.
3291
3291
  * @property {PageType} type
3292
3292
  */
3293
3293
  /**
@@ -3302,6 +3302,7 @@ export = CatalogPlatformModel;
3302
3302
  * | "category"
3303
3303
  * | "collection"
3304
3304
  * | "collections"
3305
+ * | "custom"
3305
3306
  * | "contact-us"
3306
3307
  * | "external"
3307
3308
  * | "faq"
@@ -3346,6 +3347,9 @@ declare namespace CatalogPlatformModel {
3346
3347
  /** @returns {Action} */
3347
3348
  declare function Action(): Action;
3348
3349
  type Action = {
3350
+ /**
3351
+ * - Type of action to be taken e.g, page.
3352
+ */
3349
3353
  type?: string;
3350
3354
  page?: ActionPage;
3351
3355
  popup?: ActionPage;
@@ -6644,12 +6648,33 @@ type PTErrorResponse = {
6644
6648
  /** @returns {Page} */
6645
6649
  declare function Page(): Page;
6646
6650
  type Page = {
6651
+ /**
6652
+ * - The total number of items on the page.
6653
+ */
6647
6654
  item_total?: number;
6655
+ /**
6656
+ * - The identifier for the next page.
6657
+ */
6648
6658
  next_id?: string;
6659
+ /**
6660
+ * - Indicates whether there is a previous page.
6661
+ */
6649
6662
  has_previous?: boolean;
6663
+ /**
6664
+ * - Indicates whether there is a next page.
6665
+ */
6650
6666
  has_next?: boolean;
6667
+ /**
6668
+ * - The current page number.
6669
+ */
6651
6670
  current?: number;
6671
+ /**
6672
+ * - The type of the page, such as 'PageType'.
6673
+ */
6652
6674
  type: string;
6675
+ /**
6676
+ * - The number of items per page.
6677
+ */
6653
6678
  size?: number;
6654
6679
  };
6655
6680
  /** @returns {PageResponse} */
@@ -8065,8 +8090,17 @@ type UpdateMarketplaceOptinResponse = {
8065
8090
  /** @returns {ActionPage} */
8066
8091
  declare function ActionPage(): ActionPage;
8067
8092
  type ActionPage = {
8093
+ /**
8094
+ * - Parameters that should be considered in path.
8095
+ */
8068
8096
  params?: any;
8097
+ /**
8098
+ * - Query parameter if any to be added to the action.
8099
+ */
8069
8100
  query?: any;
8101
+ /**
8102
+ * - The URL for the action.
8103
+ */
8070
8104
  url?: string;
8071
8105
  type: PageType;
8072
8106
  };
@@ -8076,4 +8110,4 @@ type ActionPage = {
8076
8110
  * @returns {PageType}
8077
8111
  */
8078
8112
  declare function PageType(): PageType;
8079
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
8113
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
@@ -2,7 +2,7 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef Action
5
- * @property {string} [type]
5
+ * @property {string} [type] - Type of action to be taken e.g, page.
6
6
  * @property {ActionPage} [page]
7
7
  * @property {ActionPage} [popup]
8
8
  */
@@ -2427,13 +2427,13 @@ const Joi = require("joi");
2427
2427
 
2428
2428
  /**
2429
2429
  * @typedef Page
2430
- * @property {number} [item_total]
2431
- * @property {string} [next_id]
2432
- * @property {boolean} [has_previous]
2433
- * @property {boolean} [has_next]
2434
- * @property {number} [current]
2435
- * @property {string} type
2436
- * @property {number} [size]
2430
+ * @property {number} [item_total] - The total number of items on the page.
2431
+ * @property {string} [next_id] - The identifier for the next page.
2432
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
2433
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
2434
+ * @property {number} [current] - The current page number.
2435
+ * @property {string} type - The type of the page, such as 'PageType'.
2436
+ * @property {number} [size] - The number of items per page.
2437
2437
  */
2438
2438
 
2439
2439
  /**
@@ -3659,9 +3659,9 @@ const Joi = require("joi");
3659
3659
 
3660
3660
  /**
3661
3661
  * @typedef ActionPage
3662
- * @property {Object} [params]
3663
- * @property {Object} [query]
3664
- * @property {string} [url]
3662
+ * @property {Object} [params] - Parameters that should be considered in path.
3663
+ * @property {Object} [query] - Query parameter if any to be added to the action.
3664
+ * @property {string} [url] - The URL for the action.
3665
3665
  * @property {PageType} type
3666
3666
  */
3667
3667
 
@@ -3677,6 +3677,7 @@ const Joi = require("joi");
3677
3677
  * | "category"
3678
3678
  * | "collection"
3679
3679
  * | "collections"
3680
+ * | "custom"
3680
3681
  * | "contact-us"
3681
3682
  * | "external"
3682
3683
  * | "faq"
@@ -8150,6 +8151,8 @@ class CatalogPlatformModel {
8150
8151
 
8151
8152
  "collections",
8152
8153
 
8154
+ "custom",
8155
+
8153
8156
  "contact-us",
8154
8157
 
8155
8158
  "external",