@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +6 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -82,24 +82,6 @@ const Joi = require("joi");
82
82
  * @property {string} [message] - Failure message (in a string format)
83
83
  */
84
84
 
85
- /**
86
- * @typedef Currency
87
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
88
- * of the current sales channel supported currency
89
- * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
90
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
91
- * currency creation
92
- * @property {number} [decimal_digits] - Acceptable decimal limits for a given
93
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
94
- * value of a currency.
95
- * @property {boolean} [is_active] - Shows currency is enabled or not in current
96
- * sales channel
97
- * @property {string} [name] - Name of the currency, e.g. Indian Rupee
98
- * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
99
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
100
- * currency updation
101
- */
102
-
103
85
  /**
104
86
  * @typedef Domain
105
87
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -149,7 +131,7 @@ const Joi = require("joi");
149
131
 
150
132
  /**
151
133
  * @typedef Locations
152
- * @property {Object[]} [items]
134
+ * @property {LocationCountry[]} [items]
153
135
  */
154
136
 
155
137
  /**
@@ -157,17 +139,6 @@ const Joi = require("joi");
157
139
  * @property {string} [message] - Response message for not found
158
140
  */
159
141
 
160
- /**
161
- * @typedef Page
162
- * @property {number} [current]
163
- * @property {boolean} [has_next]
164
- * @property {boolean} [has_previous]
165
- * @property {number} [item_total]
166
- * @property {string} [next_id]
167
- * @property {number} [size]
168
- * @property {string} type
169
- */
170
-
171
142
  /**
172
143
  * @typedef SecureUrl
173
144
  * @property {string} [secure_url] - Hosted URL of the image
@@ -260,20 +231,6 @@ class CommonApplicationModel {
260
231
  });
261
232
  }
262
233
 
263
- /** @returns {Currency} */
264
- static Currency() {
265
- return Joi.object({
266
- _id: Joi.string().allow(""),
267
- code: Joi.string().allow(""),
268
- created_at: Joi.string().allow(""),
269
- decimal_digits: Joi.number(),
270
- is_active: Joi.boolean(),
271
- name: Joi.string().allow(""),
272
- symbol: Joi.string().allow(""),
273
- updated_at: Joi.string().allow(""),
274
- });
275
- }
276
-
277
234
  /** @returns {Domain} */
278
235
  static Domain() {
279
236
  return Joi.object({
@@ -329,7 +286,7 @@ class CommonApplicationModel {
329
286
  /** @returns {Locations} */
330
287
  static Locations() {
331
288
  return Joi.object({
332
- items: Joi.array().items(Joi.any()),
289
+ items: Joi.array().items(CommonApplicationModel.LocationCountry()),
333
290
  });
334
291
  }
335
292
 
@@ -340,19 +297,6 @@ class CommonApplicationModel {
340
297
  });
341
298
  }
342
299
 
343
- /** @returns {Page} */
344
- static Page() {
345
- return Joi.object({
346
- current: Joi.number(),
347
- has_next: Joi.boolean(),
348
- has_previous: Joi.boolean(),
349
- item_total: Joi.number(),
350
- next_id: Joi.string().allow(""),
351
- size: Joi.number(),
352
- type: Joi.string().allow("").required(),
353
- });
354
- }
355
-
356
300
  /** @returns {SecureUrl} */
357
301
  static SecureUrl() {
358
302
  return Joi.object({
@@ -10,6 +10,10 @@ declare class Communication {
10
10
  _urls: {};
11
11
  updateUrls(urls: any): void;
12
12
  /**
13
+ * @param {CommunicationApplicationValidator.GetCommunicationConsentParam} arg
14
+ * - Arg object.
15
+ *
16
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
17
  * @param {import("../ApplicationAPIClient").Options} - Options
14
18
  * @returns {Promise<CommunicationApplicationModel.CommunicationConsent>} -
15
19
  * Success response
@@ -17,21 +21,23 @@ declare class Communication {
17
21
  * @summary: Get communication consent
18
22
  * @description: Use this API to retrieve the consent provided by the user for receiving communication messages over Email/SMS/WhatsApp. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
19
23
  */
20
- getCommunicationConsent({ headers }?: import("../ApplicationAPIClient").Options): Promise<CommunicationApplicationModel.CommunicationConsent>;
24
+ getCommunicationConsent({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsent>;
21
25
  /**
22
26
  * @param {CommunicationApplicationValidator.UpsertAppPushtokenParam} arg -
23
27
  * Arg object.
28
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
24
29
  * @param {import("../ApplicationAPIClient").Options} - Options
25
30
  * @returns {Promise<CommunicationApplicationModel.PushtokenRes>} - Success response
26
31
  * @name upsertAppPushtoken
27
32
  * @summary: Upsert push token of a user
28
33
  * @description: Use this API to update and insert the push token of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertAppPushtoken/).
29
34
  */
30
- upsertAppPushtoken({ body }?: CommunicationApplicationValidator.UpsertAppPushtokenParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<CommunicationApplicationModel.PushtokenRes>;
35
+ upsertAppPushtoken({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertAppPushtokenParam, { responseHeaders }?: object): Promise<CommunicationApplicationModel.PushtokenRes>;
31
36
  /**
32
37
  * @param {CommunicationApplicationValidator.UpsertCommunicationConsentParam} arg
33
38
  * - Arg object.
34
39
  *
40
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
35
41
  * @param {import("../ApplicationAPIClient").Options} - Options
36
42
  * @returns {Promise<CommunicationApplicationModel.CommunicationConsentRes>}
37
43
  * - Success response
@@ -40,7 +46,7 @@ declare class Communication {
40
46
  * @summary: Upsert communication consent
41
47
  * @description: Use this API to update and insert the consent provided by the user for receiving communication messages over Email/SMS/WhatsApp. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
42
48
  */
43
- upsertCommunicationConsent({ body }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<CommunicationApplicationModel.CommunicationConsentRes>;
49
+ upsertCommunicationConsent({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsentRes>;
44
50
  }
45
51
  import CommunicationApplicationModel = require("./CommunicationApplicationModel");
46
52
  import CommunicationApplicationValidator = require("./CommunicationApplicationValidator");
@@ -34,6 +34,10 @@ class Communication {
34
34
  }
35
35
 
36
36
  /**
37
+ * @param {CommunicationApplicationValidator.GetCommunicationConsentParam} arg
38
+ * - Arg object.
39
+ *
40
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
37
41
  * @param {import("../ApplicationAPIClient").Options} - Options
38
42
  * @returns {Promise<CommunicationApplicationModel.CommunicationConsent>} -
39
43
  * Success response
@@ -41,7 +45,10 @@ class Communication {
41
45
  * @summary: Get communication consent
42
46
  * @description: Use this API to retrieve the consent provided by the user for receiving communication messages over Email/SMS/WhatsApp. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/getCommunicationConsent/).
43
47
  */
44
- async getCommunicationConsent({ headers } = { headers: false }) {
48
+ async getCommunicationConsent(
49
+ { requestHeaders } = { requestHeaders: {} },
50
+ { responseHeaders } = { responseHeaders: false }
51
+ ) {
45
52
  const {
46
53
  error,
47
54
  } = CommunicationApplicationValidator.getCommunicationConsent().validate(
@@ -79,12 +86,12 @@ class Communication {
79
86
  }),
80
87
  query_params,
81
88
  undefined,
82
- xHeaders,
83
- { headers }
89
+ { ...xHeaders, ...requestHeaders },
90
+ { responseHeaders }
84
91
  );
85
92
 
86
93
  let responseData = response;
87
- if (headers) {
94
+ if (responseHeaders) {
88
95
  responseData = response[0];
89
96
  }
90
97
 
@@ -108,13 +115,17 @@ class Communication {
108
115
  /**
109
116
  * @param {CommunicationApplicationValidator.UpsertAppPushtokenParam} arg -
110
117
  * Arg object.
118
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
119
  * @param {import("../ApplicationAPIClient").Options} - Options
112
120
  * @returns {Promise<CommunicationApplicationModel.PushtokenRes>} - Success response
113
121
  * @name upsertAppPushtoken
114
122
  * @summary: Upsert push token of a user
115
123
  * @description: Use this API to update and insert the push token of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertAppPushtoken/).
116
124
  */
117
- async upsertAppPushtoken({ body } = {}, { headers } = { headers: false }) {
125
+ async upsertAppPushtoken(
126
+ { body, requestHeaders } = { requestHeaders: {} },
127
+ { responseHeaders } = { responseHeaders: false }
128
+ ) {
118
129
  const {
119
130
  error,
120
131
  } = CommunicationApplicationValidator.upsertAppPushtoken().validate(
@@ -152,12 +163,12 @@ class Communication {
152
163
  }),
153
164
  query_params,
154
165
  body,
155
- xHeaders,
156
- { headers }
166
+ { ...xHeaders, ...requestHeaders },
167
+ { responseHeaders }
157
168
  );
158
169
 
159
170
  let responseData = response;
160
- if (headers) {
171
+ if (responseHeaders) {
161
172
  responseData = response[0];
162
173
  }
163
174
 
@@ -182,6 +193,7 @@ class Communication {
182
193
  * @param {CommunicationApplicationValidator.UpsertCommunicationConsentParam} arg
183
194
  * - Arg object.
184
195
  *
196
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
185
197
  * @param {import("../ApplicationAPIClient").Options} - Options
186
198
  * @returns {Promise<CommunicationApplicationModel.CommunicationConsentRes>}
187
199
  * - Success response
@@ -191,8 +203,8 @@ class Communication {
191
203
  * @description: Use this API to update and insert the consent provided by the user for receiving communication messages over Email/SMS/WhatsApp. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/communication/upsertCommunicationConsent/).
192
204
  */
193
205
  async upsertCommunicationConsent(
194
- { body } = {},
195
- { headers } = { headers: false }
206
+ { body, requestHeaders } = { requestHeaders: {} },
207
+ { responseHeaders } = { responseHeaders: false }
196
208
  ) {
197
209
  const {
198
210
  error,
@@ -231,12 +243,12 @@ class Communication {
231
243
  }),
232
244
  query_params,
233
245
  body,
234
- xHeaders,
235
- { headers }
246
+ { ...xHeaders, ...requestHeaders },
247
+ { responseHeaders }
236
248
  );
237
249
 
238
250
  let responseData = response;
239
- if (headers) {
251
+ if (responseHeaders) {
240
252
  responseData = response[0];
241
253
  }
242
254
 
@@ -45,20 +45,6 @@ export = CommunicationApplicationModel;
45
45
  * @property {CommunicationConsentChannels} [channels]
46
46
  * @property {string} [user_id]
47
47
  */
48
- /**
49
- * @typedef NotFound
50
- * @property {string} [message] - Failure message.
51
- */
52
- /**
53
- * @typedef Page
54
- * @property {number} [current]
55
- * @property {boolean} [has_next]
56
- * @property {boolean} [has_previous]
57
- * @property {number} [item_total]
58
- * @property {string} [next_id]
59
- * @property {number} [size]
60
- * @property {string} type
61
- */
62
48
  /**
63
49
  * @typedef PushtokenReq
64
50
  * @property {string} [action]
@@ -84,7 +70,7 @@ export = CommunicationApplicationModel;
84
70
  declare class CommunicationApplicationModel {
85
71
  }
86
72
  declare namespace CommunicationApplicationModel {
87
- export { BadRequestSchema, CommunicationConsent, CommunicationConsentChannels, CommunicationConsentChannelsEmail, CommunicationConsentChannelsSms, CommunicationConsentChannelsWhatsapp, CommunicationConsentReq, CommunicationConsentRes, NotFound, Page, PushtokenReq, PushtokenRes };
73
+ export { BadRequestSchema, CommunicationConsent, CommunicationConsentChannels, CommunicationConsentChannelsEmail, CommunicationConsentChannelsSms, CommunicationConsentChannelsWhatsapp, CommunicationConsentReq, CommunicationConsentRes, PushtokenReq, PushtokenRes };
88
74
  }
89
75
  /** @returns {BadRequestSchema} */
90
76
  declare function BadRequestSchema(): BadRequestSchema;
@@ -146,25 +132,6 @@ type CommunicationConsentRes = {
146
132
  channels?: CommunicationConsentChannels;
147
133
  user_id?: string;
148
134
  };
149
- /** @returns {NotFound} */
150
- declare function NotFound(): NotFound;
151
- type NotFound = {
152
- /**
153
- * - Failure message.
154
- */
155
- message?: string;
156
- };
157
- /** @returns {Page} */
158
- declare function Page(): Page;
159
- type Page = {
160
- current?: number;
161
- has_next?: boolean;
162
- has_previous?: boolean;
163
- item_total?: number;
164
- next_id?: string;
165
- size?: number;
166
- type: string;
167
- };
168
135
  /** @returns {PushtokenReq} */
169
136
  declare function PushtokenReq(): PushtokenReq;
170
137
  type PushtokenReq = {
@@ -54,22 +54,6 @@ const Joi = require("joi");
54
54
  * @property {string} [user_id]
55
55
  */
56
56
 
57
- /**
58
- * @typedef NotFound
59
- * @property {string} [message] - Failure message.
60
- */
61
-
62
- /**
63
- * @typedef Page
64
- * @property {number} [current]
65
- * @property {boolean} [has_next]
66
- * @property {boolean} [has_previous]
67
- * @property {number} [item_total]
68
- * @property {string} [next_id]
69
- * @property {number} [size]
70
- * @property {string} type
71
- */
72
-
73
57
  /**
74
58
  * @typedef PushtokenReq
75
59
  * @property {string} [action]
@@ -165,26 +149,6 @@ class CommunicationApplicationModel {
165
149
  });
166
150
  }
167
151
 
168
- /** @returns {NotFound} */
169
- static NotFound() {
170
- return Joi.object({
171
- message: Joi.string().allow(""),
172
- });
173
- }
174
-
175
- /** @returns {Page} */
176
- static Page() {
177
- return Joi.object({
178
- current: Joi.number(),
179
- has_next: Joi.boolean(),
180
- has_previous: Joi.boolean(),
181
- item_total: Joi.number(),
182
- next_id: Joi.string().allow(""),
183
- size: Joi.number(),
184
- type: Joi.string().allow("").required(),
185
- });
186
- }
187
-
188
152
  /** @returns {PushtokenReq} */
189
153
  static PushtokenReq() {
190
154
  return Joi.object({
@@ -23,6 +23,8 @@ declare class Configuration {
23
23
  _urls: {};
24
24
  updateUrls(urls: any): void;
25
25
  /**
26
+ * @param {ConfigurationApplicationValidator.GetAppCurrenciesParam} arg - Arg object.
27
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
26
28
  * @param {import("../ApplicationAPIClient").Options} - Options
27
29
  * @returns {Promise<ConfigurationApplicationModel.AppCurrencyResponse>} -
28
30
  * Success response
@@ -30,9 +32,10 @@ declare class Configuration {
30
32
  * @summary: Get currencies enabled in the application
31
33
  * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
32
34
  */
33
- getAppCurrencies({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.AppCurrencyResponse>;
35
+ getAppCurrencies({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.AppCurrencyResponse>;
34
36
  /**
35
37
  * @param {ConfigurationApplicationValidator.GetAppStaffListParam} arg - Arg object.
38
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
39
  * @param {import("../ApplicationAPIClient").Options} - Options
37
40
  * @returns {Promise<ConfigurationApplicationModel.AppStaffListResponse>} -
38
41
  * Success response
@@ -40,7 +43,7 @@ declare class Configuration {
40
43
  * @summary: Get a list of staff.
41
44
  * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
42
45
  */
43
- getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName }?: ConfigurationApplicationValidator.GetAppStaffListParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.AppStaffListResponse>;
46
+ getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName, requestHeaders, }?: ConfigurationApplicationValidator.GetAppStaffListParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.AppStaffListResponse>;
44
47
  /**
45
48
  * @param {Object} arg - Arg object.
46
49
  * @param {number} [arg.pageSize] -
@@ -64,6 +67,7 @@ declare class Configuration {
64
67
  }): Paginator<ConfigurationApplicationModel.AppStaffListResponse>;
65
68
  /**
66
69
  * @param {ConfigurationApplicationValidator.GetAppStaffsParam} arg - Arg object.
70
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
67
71
  * @param {import("../ApplicationAPIClient").Options} - Options
68
72
  * @returns {Promise<ConfigurationApplicationModel.AppStaffResponse>} -
69
73
  * Success response
@@ -71,16 +75,20 @@ declare class Configuration {
71
75
  * @summary: Get a list of staff.
72
76
  * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
73
77
  */
74
- getAppStaffs({ orderIncent, orderingStore, user }?: ConfigurationApplicationValidator.GetAppStaffsParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.AppStaffResponse>;
78
+ getAppStaffs({ orderIncent, orderingStore, user, requestHeaders }?: ConfigurationApplicationValidator.GetAppStaffsParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.AppStaffResponse>;
75
79
  /**
80
+ * @param {ConfigurationApplicationValidator.GetApplicationParam} arg - Arg object.
81
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
76
82
  * @param {import("../ApplicationAPIClient").Options} - Options
77
83
  * @returns {Promise<ConfigurationApplicationModel.Application>} - Success response
78
84
  * @name getApplication
79
85
  * @summary: Get current sales channel details
80
86
  * @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getApplication/).
81
87
  */
82
- getApplication({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.Application>;
88
+ getApplication({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.Application>;
83
89
  /**
90
+ * @param {ConfigurationApplicationValidator.GetBasicDetailsParam} arg - Arg object.
91
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
84
92
  * @param {import("../ApplicationAPIClient").Options} - Options
85
93
  * @returns {Promise<ConfigurationApplicationModel.ApplicationDetail>} -
86
94
  * Success response
@@ -88,8 +96,10 @@ declare class Configuration {
88
96
  * @summary: Get basic details of the application
89
97
  * @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getBasicDetails/).
90
98
  */
91
- getBasicDetails({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.ApplicationDetail>;
99
+ getBasicDetails({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.ApplicationDetail>;
92
100
  /**
101
+ * @param {ConfigurationApplicationValidator.GetContactInfoParam} arg - Arg object.
102
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
93
103
  * @param {import("../ApplicationAPIClient").Options} - Options
94
104
  * @returns {Promise<ConfigurationApplicationModel.ApplicationInformation>}
95
105
  * - Success response
@@ -98,8 +108,10 @@ declare class Configuration {
98
108
  * @summary: Get application information
99
109
  * @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getContactInfo/).
100
110
  */
101
- getContactInfo({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.ApplicationInformation>;
111
+ getContactInfo({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.ApplicationInformation>;
102
112
  /**
113
+ * @param {ConfigurationApplicationValidator.GetCurrenciesParam} arg - Arg object.
114
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
103
115
  * @param {import("../ApplicationAPIClient").Options} - Options
104
116
  * @returns {Promise<ConfigurationApplicationModel.CurrenciesResponse>} -
105
117
  * Success response
@@ -107,17 +119,20 @@ declare class Configuration {
107
119
  * @summary: Get all currencies list
108
120
  * @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
109
121
  */
110
- getCurrencies({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.CurrenciesResponse>;
122
+ getCurrencies({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.CurrenciesResponse>;
111
123
  /**
112
124
  * @param {ConfigurationApplicationValidator.GetCurrencyByIdParam} arg - Arg object.
125
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
113
126
  * @param {import("../ApplicationAPIClient").Options} - Options
114
127
  * @returns {Promise<ConfigurationApplicationModel.Currency>} - Success response
115
128
  * @name getCurrencyById
116
129
  * @summary: Get currency by its ID
117
130
  * @description: Use this API to retrieve a currency using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencyById/).
118
131
  */
119
- getCurrencyById({ id }?: ConfigurationApplicationValidator.GetCurrencyByIdParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.Currency>;
132
+ getCurrencyById({ id, requestHeaders }?: ConfigurationApplicationValidator.GetCurrencyByIdParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.Currency>;
120
133
  /**
134
+ * @param {ConfigurationApplicationValidator.GetFeaturesParam} arg - Arg object.
135
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
121
136
  * @param {import("../ApplicationAPIClient").Options} - Options
122
137
  * @returns {Promise<ConfigurationApplicationModel.AppFeatureResponse>} -
123
138
  * Success response
@@ -125,8 +140,12 @@ declare class Configuration {
125
140
  * @summary: Get features of application
126
141
  * @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
127
142
  */
128
- getFeatures({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.AppFeatureResponse>;
143
+ getFeatures({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.AppFeatureResponse>;
129
144
  /**
145
+ * @param {ConfigurationApplicationValidator.GetIntegrationTokensParam} arg
146
+ * - Arg object.
147
+ *
148
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
130
149
  * @param {import("../ApplicationAPIClient").Options} - Options
131
150
  * @returns {Promise<ConfigurationApplicationModel.AppTokenResponse>} -
132
151
  * Success response
@@ -134,8 +153,10 @@ declare class Configuration {
134
153
  * @summary: Get integration tokens
135
154
  * @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
136
155
  */
137
- getIntegrationTokens({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.AppTokenResponse>;
156
+ getIntegrationTokens({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.AppTokenResponse>;
138
157
  /**
158
+ * @param {ConfigurationApplicationValidator.GetLanguagesParam} arg - Arg object.
159
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
139
160
  * @param {import("../ApplicationAPIClient").Options} - Options
140
161
  * @returns {Promise<ConfigurationApplicationModel.LanguageResponse>} -
141
162
  * Success response
@@ -143,11 +164,12 @@ declare class Configuration {
143
164
  * @summary: Get list of languages
144
165
  * @description: Use this API to get a list of languages supported in the application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
145
166
  */
146
- getLanguages({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.LanguageResponse>;
167
+ getLanguages({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.LanguageResponse>;
147
168
  /**
148
169
  * @param {ConfigurationApplicationValidator.GetOrderingStoreCookieParam} arg
149
170
  * - Arg object.
150
171
  *
172
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
151
173
  * @param {import("../ApplicationAPIClient").Options} - Options
152
174
  * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
153
175
  * - Success response
@@ -156,16 +178,17 @@ declare class Configuration {
156
178
  * @summary: Get an Ordering Store signed cookie on selection of ordering store.
157
179
  * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
158
180
  */
159
- getOrderingStoreCookie({ body }?: ConfigurationApplicationValidator.GetOrderingStoreCookieParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
181
+ getOrderingStoreCookie({ body, requestHeaders }?: ConfigurationApplicationValidator.GetOrderingStoreCookieParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
160
182
  /**
161
183
  * @param {ConfigurationApplicationValidator.GetOrderingStoresParam} arg - Arg object.
184
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
162
185
  * @param {import("../ApplicationAPIClient").Options} - Options
163
186
  * @returns {Promise<ConfigurationApplicationModel.OrderingStores>} - Success response
164
187
  * @name getOrderingStores
165
188
  * @summary: Get all deployment stores
166
189
  * @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStores/).
167
190
  */
168
- getOrderingStores({ pageNo, pageSize, q }?: ConfigurationApplicationValidator.GetOrderingStoresParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.OrderingStores>;
191
+ getOrderingStores({ pageNo, pageSize, q, requestHeaders }?: ConfigurationApplicationValidator.GetOrderingStoresParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.OrderingStores>;
169
192
  /**
170
193
  * @param {Object} arg - Arg object.
171
194
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
@@ -180,6 +203,8 @@ declare class Configuration {
180
203
  q?: string;
181
204
  }): Paginator<ConfigurationApplicationModel.OrderingStores>;
182
205
  /**
206
+ * @param {ConfigurationApplicationValidator.GetOwnerInfoParam} arg - Arg object.
207
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
183
208
  * @param {import("../ApplicationAPIClient").Options} - Options
184
209
  * @returns {Promise<ConfigurationApplicationModel.ApplicationAboutResponse>}
185
210
  * - Success response
@@ -188,18 +213,23 @@ declare class Configuration {
188
213
  * @summary: Get sales channel, owner and seller information
189
214
  * @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
190
215
  */
191
- getOwnerInfo({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.ApplicationAboutResponse>;
216
+ getOwnerInfo({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.ApplicationAboutResponse>;
192
217
  /**
193
218
  * @param {ConfigurationApplicationValidator.GetStoreDetailByIdParam} arg -
194
219
  * Arg object.
220
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
195
221
  * @param {import("../ApplicationAPIClient").Options} - Options
196
222
  * @returns {Promise<ConfigurationApplicationModel.OrderingStore>} - Success response
197
223
  * @name getStoreDetailById
198
224
  * @summary: Get ordering store details
199
225
  * @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getStoreDetailById/).
200
226
  */
201
- getStoreDetailById({ storeId }?: ConfigurationApplicationValidator.GetStoreDetailByIdParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.OrderingStore>;
227
+ getStoreDetailById({ storeId, requestHeaders }?: ConfigurationApplicationValidator.GetStoreDetailByIdParam, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.OrderingStore>;
202
228
  /**
229
+ * @param {ConfigurationApplicationValidator.RemoveOrderingStoreCookieParam} arg
230
+ * - Arg object.
231
+ *
232
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
203
233
  * @param {import("../ApplicationAPIClient").Options} - Options
204
234
  * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
205
235
  * - Success response
@@ -208,7 +238,7 @@ declare class Configuration {
208
238
  * @summary: Unset the Ordering Store signed cookie.
209
239
  * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
210
240
  */
211
- removeOrderingStoreCookie({ headers }?: import("../ApplicationAPIClient").Options): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
241
+ removeOrderingStoreCookie({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
212
242
  }
213
243
  import ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
214
244
  import ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");