@gofynd/fdk-client-javascript 1.4.13 → 1.4.14

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 (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
  28. package/sdk/application/Content/ContentApplicationModel.js +83 -32
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
  75. package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  93. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  94. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  95. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  96. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  97. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  98. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  99. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  100. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  101. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  102. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  103. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  104. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  105. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  106. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  107. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  108. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  109. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  110. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  111. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  112. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  113. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  114. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  115. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  116. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  117. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  118. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  119. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  120. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  121. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  122. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  129. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  130. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  131. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  132. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  133. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  134. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  135. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  136. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  137. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  138. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  139. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  140. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
  142. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
  143. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
  145. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
  146. package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
  147. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
  148. package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
  149. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  150. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  151. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  152. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  153. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  154. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  161. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  167. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  171. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  173. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  175. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  177. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  179. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  181. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  182. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  183. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  184. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  185. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  186. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  187. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  188. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  189. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  190. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  191. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  192. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  194. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  195. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  198. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  199. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  200. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  201. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  202. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
  212. package/sdk/platform/Order/OrderPlatformClient.js +589 -229
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
  214. package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
  216. package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  231. package/sdk/platform/PlatformClient.d.ts +0 -2
  232. package/sdk/platform/PlatformClient.js +0 -4
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  252. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  258. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  271. package/sdk/platform/index.d.ts +0 -1
  272. package/sdk/platform/index.js +0 -2
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  278. package/sdk/public/Content/ContentPublicClient.js +791 -5
  279. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  280. package/sdk/public/Content/ContentPublicModel.js +649 -3
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  282. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  290. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  291. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  292. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  293. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  294. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,6 +1,6 @@
1
1
  export = UserApplicationModel;
2
2
  /**
3
- * @typedef UpdateUserAttributesRequest
3
+ * @typedef UpdateUserAttributes
4
4
  * @property {Object} [attributes] - Describes the request structure to update
5
5
  * the user attribute.
6
6
  */
@@ -181,12 +181,12 @@ export = UserApplicationModel;
181
181
  * @property {UserSchema} [user]
182
182
  */
183
183
  /**
184
- * @typedef UserExistsResponse
184
+ * @typedef UserExistsDetails
185
185
  * @property {boolean} [user_exists] - Boolean which specifies if user is
186
186
  * registered or not.
187
187
  */
188
188
  /**
189
- * @typedef SendOtpResponse
189
+ * @typedef SendOtp
190
190
  * @property {number} [resend_timer] - Time after which opt can be resent.
191
191
  * @property {string} [resend_token] - Unique token to identify the OTP send
192
192
  * request and resend the token.
@@ -293,7 +293,7 @@ export = UserApplicationModel;
293
293
  * @property {boolean} [success] - Whether the user deletion operation was successful.
294
294
  */
295
295
  /**
296
- * @typedef OtpSuccess
296
+ * @typedef SendOtpSuccess
297
297
  * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
298
298
  * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
299
299
  * @property {string} [register_token] - A token used for completing the
@@ -563,11 +563,11 @@ export = UserApplicationModel;
563
563
  declare class UserApplicationModel {
564
564
  }
565
565
  declare namespace UserApplicationModel {
566
- export { UpdateUserAttributesRequest, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsResponse, SendOtpResponse, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, OtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
566
+ export { UpdateUserAttributes, UserAttributes, DeleteApplicationUserRequestSchema, EditEmailRequestSchema, SendVerificationLinkMobileRequestSchema, EditMobileRequestSchema, EditProfileRequestSchema, EditProfileMobileSchema, SendEmailOtpRequestSchema, SendEmailForgotOtpRequestSchema, VerifyEmailOtpRequestSchema, VerifyEmailForgotOtpRequestSchema, VerifyOtpRequestSchema, VerifyMobileForgotOtpRequestSchema, SendMobileOtpRequestSchema, SendMobileForgotOtpRequestSchema, UpdatePasswordRequestSchema, FormRegisterRequestSchema, TokenRequestBodySchema, ForgotPasswordRequestSchema, CodeRequestBodySchema, SendResetPasswordEmailRequestSchema, SendResetPasswordMobileRequestSchema, PasswordLoginRequestSchema, SendOtpRequestSchema, OAuthRequestSchema, OAuthRequestAppleSchema, UserObjectSchema, AuthSuccess, UserExistsDetails, SendOtp, ProfileEditSuccess, LoginSuccess, ResetForgotPasswordSuccess, VerifyOtpSuccess, VerifyForgotOtpSuccess, ResetPasswordSuccess, RegisterFormSuccess, VerifyEmailSuccess, HasPasswordSuccess, LogoutSuccess, DeleteUserSuccess, SendOtpSuccess, EmailOtpSuccess, SessionListSuccess, VerifyMobileOTPSuccess, VerifyEmailOTPSuccess, SendMobileVerifyLinkSuccess, SendEmailVerifyLinkSuccess, APIError, FormRegisterRequestSchemaPhone, OAuthRequestSchemaOauth2, OAuthRequestSchemaProfile, OAuthRequestAppleSchemaOauth, OAuthRequestAppleSchemaProfile, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UserSchema, PhoneNumber, Email };
567
567
  }
568
- /** @returns {UpdateUserAttributesRequest} */
569
- declare function UpdateUserAttributesRequest(): UpdateUserAttributesRequest;
570
- type UpdateUserAttributesRequest = {
568
+ /** @returns {UpdateUserAttributes} */
569
+ declare function UpdateUserAttributes(): UpdateUserAttributes;
570
+ type UpdateUserAttributes = {
571
571
  /**
572
572
  * - Describes the request structure to update
573
573
  * the user attribute.
@@ -1024,18 +1024,18 @@ type AuthSuccess = {
1024
1024
  user_exists?: boolean;
1025
1025
  user?: UserSchema;
1026
1026
  };
1027
- /** @returns {UserExistsResponse} */
1028
- declare function UserExistsResponse(): UserExistsResponse;
1029
- type UserExistsResponse = {
1027
+ /** @returns {UserExistsDetails} */
1028
+ declare function UserExistsDetails(): UserExistsDetails;
1029
+ type UserExistsDetails = {
1030
1030
  /**
1031
1031
  * - Boolean which specifies if user is
1032
1032
  * registered or not.
1033
1033
  */
1034
1034
  user_exists?: boolean;
1035
1035
  };
1036
- /** @returns {SendOtpResponse} */
1037
- declare function SendOtpResponse(): SendOtpResponse;
1038
- type SendOtpResponse = {
1036
+ /** @returns {SendOtp} */
1037
+ declare function SendOtp(): SendOtp;
1038
+ type SendOtp = {
1039
1039
  /**
1040
1040
  * - Time after which opt can be resent.
1041
1041
  */
@@ -1308,9 +1308,9 @@ type DeleteUserSuccess = {
1308
1308
  */
1309
1309
  success?: boolean;
1310
1310
  };
1311
- /** @returns {OtpSuccess} */
1312
- declare function OtpSuccess(): OtpSuccess;
1313
- type OtpSuccess = {
1311
+ /** @returns {SendOtpSuccess} */
1312
+ declare function SendOtpSuccess(): SendOtpSuccess;
1313
+ type SendOtpSuccess = {
1314
1314
  /**
1315
1315
  * - The time in seconds before an OTP can be resent.
1316
1316
  */
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef UpdateUserAttributesRequest
4
+ * @typedef UpdateUserAttributes
5
5
  * @property {Object} [attributes] - Describes the request structure to update
6
6
  * the user attribute.
7
7
  */
@@ -211,13 +211,13 @@ const Joi = require("joi");
211
211
  */
212
212
 
213
213
  /**
214
- * @typedef UserExistsResponse
214
+ * @typedef UserExistsDetails
215
215
  * @property {boolean} [user_exists] - Boolean which specifies if user is
216
216
  * registered or not.
217
217
  */
218
218
 
219
219
  /**
220
- * @typedef SendOtpResponse
220
+ * @typedef SendOtp
221
221
  * @property {number} [resend_timer] - Time after which opt can be resent.
222
222
  * @property {string} [resend_token] - Unique token to identify the OTP send
223
223
  * request and resend the token.
@@ -336,7 +336,7 @@ const Joi = require("joi");
336
336
  */
337
337
 
338
338
  /**
339
- * @typedef OtpSuccess
339
+ * @typedef SendOtpSuccess
340
340
  * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
341
341
  * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
342
342
  * @property {string} [register_token] - A token used for completing the
@@ -639,17 +639,17 @@ const Joi = require("joi");
639
639
  */
640
640
 
641
641
  class UserApplicationModel {
642
- /** @returns {UpdateUserAttributesRequest} */
643
- static UpdateUserAttributesRequest() {
642
+ /** @returns {UpdateUserAttributes} */
643
+ static UpdateUserAttributes() {
644
644
  return Joi.object({
645
- attributes: Joi.any(),
645
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
646
646
  });
647
647
  }
648
648
 
649
649
  /** @returns {UserAttributes} */
650
650
  static UserAttributes() {
651
651
  return Joi.object({
652
- attributes: Joi.any(),
652
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
653
653
  });
654
654
  }
655
655
 
@@ -904,15 +904,15 @@ class UserApplicationModel {
904
904
  });
905
905
  }
906
906
 
907
- /** @returns {UserExistsResponse} */
908
- static UserExistsResponse() {
907
+ /** @returns {UserExistsDetails} */
908
+ static UserExistsDetails() {
909
909
  return Joi.object({
910
910
  user_exists: Joi.boolean(),
911
911
  });
912
912
  }
913
913
 
914
- /** @returns {SendOtpResponse} */
915
- static SendOtpResponse() {
914
+ /** @returns {SendOtp} */
915
+ static SendOtp() {
916
916
  return Joi.object({
917
917
  resend_timer: Joi.number(),
918
918
  resend_token: Joi.string().allow(""),
@@ -1038,8 +1038,8 @@ class UserApplicationModel {
1038
1038
  });
1039
1039
  }
1040
1040
 
1041
- /** @returns {OtpSuccess} */
1042
- static OtpSuccess() {
1041
+ /** @returns {SendOtpSuccess} */
1042
+ static SendOtpSuccess() {
1043
1043
  return Joi.object({
1044
1044
  resend_timer: Joi.number(),
1045
1045
  resend_token: Joi.string().allow(""),
@@ -1105,7 +1105,7 @@ class UserApplicationModel {
1105
1105
  info: Joi.string().allow(""),
1106
1106
  request_id: Joi.string().allow(""),
1107
1107
  error: Joi.string().allow(""),
1108
- meta: Joi.any(),
1108
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1109
1109
  authenticated: Joi.boolean(),
1110
1110
  });
1111
1111
  }
@@ -1340,7 +1340,7 @@ class UserApplicationModel {
1340
1340
  application_id: Joi.string().allow(""),
1341
1341
  user_id: Joi.string().allow(""),
1342
1342
  first_name: Joi.string().allow(""),
1343
- meta: Joi.any(),
1343
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1344
1344
  last_name: Joi.string().allow(""),
1345
1345
  phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
1346
1346
  emails: Joi.array().items(UserApplicationModel.Email()),
@@ -164,7 +164,7 @@ export = UserApplicationValidator;
164
164
  */
165
165
  /**
166
166
  * @typedef UpdateUserAttributesParam
167
- * @property {UserApplicationModel.UpdateUserAttributesRequest} body
167
+ * @property {UserApplicationModel.UpdateUserAttributes} body
168
168
  */
169
169
  /**
170
170
  * @typedef UserExistsParam
@@ -511,7 +511,7 @@ type UpdateProfileParam = {
511
511
  body: UserApplicationModel.EditProfileRequestSchema;
512
512
  };
513
513
  type UpdateUserAttributesParam = {
514
- body: UserApplicationModel.UpdateUserAttributesRequest;
514
+ body: UserApplicationModel.UpdateUserAttributes;
515
515
  };
516
516
  type UserExistsParam = {
517
517
  /**
@@ -202,7 +202,7 @@ const UserApplicationModel = require("./UserApplicationModel");
202
202
 
203
203
  /**
204
204
  * @typedef UpdateUserAttributesParam
205
- * @property {UserApplicationModel.UpdateUserAttributesRequest} body
205
+ * @property {UserApplicationModel.UpdateUserAttributes} body
206
206
  */
207
207
 
208
208
  /**
@@ -512,7 +512,7 @@ class UserApplicationValidator {
512
512
  /** @returns {UpdateUserAttributesParam} */
513
513
  static updateUserAttributes() {
514
514
  return Joi.object({
515
- body: UserApplicationModel.UpdateUserAttributesRequest().required(),
515
+ body: UserApplicationModel.UpdateUserAttributes().required(),
516
516
  }).required();
517
517
  }
518
518
 
@@ -11,12 +11,12 @@ declare class Webhook {
11
11
  * @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
12
12
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
13
  * @param {import("../ApplicationAPIClient").Options} - Options
14
- * @returns {Promise<WebhookApplicationModel.ClickEventResponse>} - Success response
14
+ * @returns {Promise<WebhookApplicationModel.ClickEventDetails>} - Success response
15
15
  * @name saveClickEvent
16
- * @summary: Endpoint to capture click events from sales channels and persist them in database.
17
- * @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
16
+ * @summary: Capture and save click events from various sales channels
17
+ * @description: Send click events from various sales channels to enable insightful data collection and analysis. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
18
18
  */
19
- saveClickEvent({ body, requestHeaders }?: WebhookApplicationValidator.SaveClickEventParam, { responseHeaders }?: object): Promise<WebhookApplicationModel.ClickEventResponse>;
19
+ saveClickEvent({ body, requestHeaders }?: WebhookApplicationValidator.SaveClickEventParam, { responseHeaders }?: object): Promise<WebhookApplicationModel.ClickEventDetails>;
20
20
  }
21
21
  import WebhookApplicationValidator = require("./WebhookApplicationValidator");
22
22
  import WebhookApplicationModel = require("./WebhookApplicationModel");
@@ -37,10 +37,10 @@ class Webhook {
37
37
  * @param {WebhookApplicationValidator.SaveClickEventParam} arg - Arg object.
38
38
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
39
39
  * @param {import("../ApplicationAPIClient").Options} - Options
40
- * @returns {Promise<WebhookApplicationModel.ClickEventResponse>} - Success response
40
+ * @returns {Promise<WebhookApplicationModel.ClickEventDetails>} - Success response
41
41
  * @name saveClickEvent
42
- * @summary: Endpoint to capture click events from sales channels and persist them in database.
43
- * @description: Send click events from sales channels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
42
+ * @summary: Capture and save click events from various sales channels
43
+ * @description: Send click events from various sales channels to enable insightful data collection and analysis. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/webhook/saveClickEvent/).
44
44
  */
45
45
  async saveClickEvent(
46
46
  { body, requestHeaders } = { requestHeaders: {} },
@@ -92,7 +92,7 @@ class Webhook {
92
92
 
93
93
  const {
94
94
  error: res_error,
95
- } = WebhookApplicationModel.ClickEventResponse().validate(responseData, {
95
+ } = WebhookApplicationModel.ClickEventDetails().validate(responseData, {
96
96
  abortEarly: false,
97
97
  allowUnknown: true,
98
98
  });
@@ -4,11 +4,12 @@ export = WebhookApplicationModel;
4
4
  * @property {string} [event_name] - Name of click event.
5
5
  */
6
6
  /**
7
- * @typedef ClickEventRequest
7
+ * @typedef ClickEventPayload
8
8
  * @property {ClickEventBatch[]} [batch] - List of click events captured.
9
+ * @property {string} [sent_at]
9
10
  */
10
11
  /**
11
- * @typedef ClickEventResponse
12
+ * @typedef ClickEventDetails
12
13
  * @property {number} [success_count] - Count of valid events.
13
14
  * @property {number} [failed_count] - Count of events failed in schema validation.
14
15
  * @property {ClickEventBatch[]} [failed_events] - List of failed events with error.
@@ -16,7 +17,7 @@ export = WebhookApplicationModel;
16
17
  declare class WebhookApplicationModel {
17
18
  }
18
19
  declare namespace WebhookApplicationModel {
19
- export { ClickEventBatch, ClickEventRequest, ClickEventResponse };
20
+ export { ClickEventBatch, ClickEventPayload, ClickEventDetails };
20
21
  }
21
22
  /** @returns {ClickEventBatch} */
22
23
  declare function ClickEventBatch(): ClickEventBatch;
@@ -26,17 +27,18 @@ type ClickEventBatch = {
26
27
  */
27
28
  event_name?: string;
28
29
  };
29
- /** @returns {ClickEventRequest} */
30
- declare function ClickEventRequest(): ClickEventRequest;
31
- type ClickEventRequest = {
30
+ /** @returns {ClickEventPayload} */
31
+ declare function ClickEventPayload(): ClickEventPayload;
32
+ type ClickEventPayload = {
32
33
  /**
33
34
  * - List of click events captured.
34
35
  */
35
36
  batch?: ClickEventBatch[];
37
+ sent_at?: string;
36
38
  };
37
- /** @returns {ClickEventResponse} */
38
- declare function ClickEventResponse(): ClickEventResponse;
39
- type ClickEventResponse = {
39
+ /** @returns {ClickEventDetails} */
40
+ declare function ClickEventDetails(): ClickEventDetails;
41
+ type ClickEventDetails = {
40
42
  /**
41
43
  * - Count of valid events.
42
44
  */
@@ -6,12 +6,13 @@ const Joi = require("joi");
6
6
  */
7
7
 
8
8
  /**
9
- * @typedef ClickEventRequest
9
+ * @typedef ClickEventPayload
10
10
  * @property {ClickEventBatch[]} [batch] - List of click events captured.
11
+ * @property {string} [sent_at]
11
12
  */
12
13
 
13
14
  /**
14
- * @typedef ClickEventResponse
15
+ * @typedef ClickEventDetails
15
16
  * @property {number} [success_count] - Count of valid events.
16
17
  * @property {number} [failed_count] - Count of events failed in schema validation.
17
18
  * @property {ClickEventBatch[]} [failed_events] - List of failed events with error.
@@ -25,15 +26,16 @@ class WebhookApplicationModel {
25
26
  });
26
27
  }
27
28
 
28
- /** @returns {ClickEventRequest} */
29
- static ClickEventRequest() {
29
+ /** @returns {ClickEventPayload} */
30
+ static ClickEventPayload() {
30
31
  return Joi.object({
31
32
  batch: Joi.array().items(WebhookApplicationModel.ClickEventBatch()),
33
+ sent_at: Joi.string().allow(""),
32
34
  });
33
35
  }
34
36
 
35
- /** @returns {ClickEventResponse} */
36
- static ClickEventResponse() {
37
+ /** @returns {ClickEventDetails} */
38
+ static ClickEventDetails() {
37
39
  return Joi.object({
38
40
  success_count: Joi.number(),
39
41
  failed_count: Joi.number(),
@@ -1,7 +1,7 @@
1
1
  export = WebhookApplicationValidator;
2
2
  /**
3
3
  * @typedef SaveClickEventParam
4
- * @property {WebhookApplicationModel.ClickEventRequest} body
4
+ * @property {WebhookApplicationModel.ClickEventPayload} body
5
5
  */
6
6
  declare class WebhookApplicationValidator {
7
7
  /** @returns {SaveClickEventParam} */
@@ -11,6 +11,6 @@ declare namespace WebhookApplicationValidator {
11
11
  export { SaveClickEventParam };
12
12
  }
13
13
  type SaveClickEventParam = {
14
- body: WebhookApplicationModel.ClickEventRequest;
14
+ body: WebhookApplicationModel.ClickEventPayload;
15
15
  };
16
16
  import WebhookApplicationModel = require("./WebhookApplicationModel");
@@ -4,14 +4,14 @@ const WebhookApplicationModel = require("./WebhookApplicationModel");
4
4
 
5
5
  /**
6
6
  * @typedef SaveClickEventParam
7
- * @property {WebhookApplicationModel.ClickEventRequest} body
7
+ * @property {WebhookApplicationModel.ClickEventPayload} body
8
8
  */
9
9
 
10
10
  class WebhookApplicationValidator {
11
11
  /** @returns {SaveClickEventParam} */
12
12
  static saveClickEvent() {
13
13
  return Joi.object({
14
- body: WebhookApplicationModel.ClickEventRequest().required(),
14
+ body: WebhookApplicationModel.ClickEventPayload().required(),
15
15
  }).required();
16
16
  }
17
17
  }
@@ -8,6 +8,7 @@ export namespace ApplicationModel {
8
8
  const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel");
9
9
  const ContentApplicationModel: typeof import("./Content/ContentApplicationModel");
10
10
  const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel");
11
+ const FinanceApplicationModel: typeof import("./Finance/FinanceApplicationModel");
11
12
  const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel");
12
13
  const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel");
13
14
  const OrderApplicationModel: typeof import("./Order/OrderApplicationModel");
@@ -16,6 +16,8 @@ module.exports = {
16
16
 
17
17
  FileStorageApplicationModel: require("./FileStorage/FileStorageApplicationModel"),
18
18
 
19
+ FinanceApplicationModel: require("./Finance/FinanceApplicationModel"),
20
+
19
21
  LeadApplicationModel: require("./Lead/LeadApplicationModel"),
20
22
 
21
23
  LogisticApplicationModel: require("./Logistic/LogisticApplicationModel"),
@@ -3,12 +3,32 @@ declare class FileStorage {
3
3
  constructor(config: any);
4
4
  config: any;
5
5
  /**
6
- * @param {FileStoragePartnerValidator.StartUploadParam} arg - Arg object.
6
+ * @param {FileStoragePartnerValidator.GetAllNamespaceDetailsParam} arg - Arg object.
7
7
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
8
  * @param {import("../PartnerAPIClient").Options} - Options
9
- * @returns {Promise<FileStoragePartnerModel.StartResponse>} - Success response
10
- * @name startUpload
11
- * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob
9
+ * @returns {Promise<FileStoragePartnerModel.AllNamespaceDetails>} - Success response
10
+ * @name getAllNamespaceDetails
11
+ * @summary: Get details of all namespaces
12
+ * @description: Retrieve information about all available namespaces - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getAllNamespaceDetails/).
13
+ */
14
+ getAllNamespaceDetails({ requestHeaders }?: FileStoragePartnerValidator.GetAllNamespaceDetailsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.AllNamespaceDetails>;
15
+ /**
16
+ * @param {FileStoragePartnerValidator.GetNamespaceDetailParam} arg - Arg object.
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
+ * @param {import("../PartnerAPIClient").Options} - Options
19
+ * @returns {Promise<FileStoragePartnerModel.NamespaceDetails>} - Success response
20
+ * @name getNamespaceDetail
21
+ * @summary: Get details of a namespace
22
+ * @description: Retrieve information about a specific namespace - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getNamespaceDetail/).
23
+ */
24
+ getNamespaceDetail({ namespace, requestHeaders }?: FileStoragePartnerValidator.GetNamespaceDetailParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.NamespaceDetails>;
25
+ /**
26
+ * @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
27
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
+ * @param {import("../PartnerAPIClient").Options} - Options
29
+ * @returns {Promise<FileStoragePartnerModel.FileUploadComplete>} - Success response
30
+ * @name completeUpload
31
+ * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process.
12
32
  * @description: Uploads an arbitrarily sized buffer or blob.
13
33
  *
14
34
  * It has three Major Steps:
@@ -27,16 +47,16 @@ declare class FileStorage {
27
47
  * ### Complete
28
48
  * After successfully upload, call `completeUpload` api to complete the upload process.
29
49
  * This operation will return the url for the uploaded file.
30
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/startUpload/).
50
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/completeUpload/).
31
51
  */
32
- startUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.StartResponse>;
52
+ completeUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FileUploadComplete>;
33
53
  /**
34
- * @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
54
+ * @param {FileStoragePartnerValidator.StartUploadParam} arg - Arg object.
35
55
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
56
  * @param {import("../PartnerAPIClient").Options} - Options
37
- * @returns {Promise<FileStoragePartnerModel.CompleteResponse>} - Success response
38
- * @name completeUpload
39
- * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process
57
+ * @returns {Promise<FileStoragePartnerModel.FileUpload>} - Success response
58
+ * @name startUpload
59
+ * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob.
40
60
  * @description: Uploads an arbitrarily sized buffer or blob.
41
61
  *
42
62
  * It has three Major Steps:
@@ -55,9 +75,9 @@ declare class FileStorage {
55
75
  * ### Complete
56
76
  * After successfully upload, call `completeUpload` api to complete the upload process.
57
77
  * This operation will return the url for the uploaded file.
58
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/completeUpload/).
78
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/startUpload/).
59
79
  */
60
- completeUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.CompleteResponse>;
80
+ startUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FileUpload>;
61
81
  /**
62
82
  * @param {FileStoragePartnerValidator.BrowseParam} arg - Arg object.
63
83
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -68,5 +88,59 @@ declare class FileStorage {
68
88
  * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browse/).
69
89
  */
70
90
  browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
91
+ /**
92
+ * @param {FileStoragePartnerValidator.BrowseFilesParam} arg - Arg object.
93
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
94
+ * @param {import("../PartnerAPIClient").Options} - Options
95
+ * @returns {Promise<Object>} - Success response
96
+ * @name browseFiles
97
+ * @summary: Browse Files
98
+ * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browseFiles/).
99
+ */
100
+ browseFiles({ namespace, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseFilesParam, { responseHeaders }?: object): Promise<any>;
101
+ /**
102
+ * @param {FileStoragePartnerValidator.OrganizationLevelFetchProxyParam} arg
103
+ * - Arg object.
104
+ *
105
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
106
+ * @param {import("../PartnerAPIClient").Options} - Options
107
+ * @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
108
+ * @name organizationLevelFetchProxy
109
+ * @summary: Proxy
110
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/organizationLevelFetchProxy/).
111
+ */
112
+ organizationLevelFetchProxy({ applicationId, companyId, url, requestHeaders }?: FileStoragePartnerValidator.OrganizationLevelFetchProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FetchProxyDetails>;
113
+ /**
114
+ * @param {FileStoragePartnerValidator.SaveOrganizationLevelProxyParam} arg
115
+ * - Arg object.
116
+ *
117
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
118
+ * @param {import("../PartnerAPIClient").Options} - Options
119
+ * @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
120
+ * @name saveOrganizationLevelProxy
121
+ * @summary: Proxy
122
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveOrganizationLevelProxy/).
123
+ */
124
+ saveOrganizationLevelProxy({ applicationId, companyId, body, requestHeaders }?: FileStoragePartnerValidator.SaveOrganizationLevelProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SaveProxy>;
125
+ /**
126
+ * @param {FileStoragePartnerValidator.FetchProxyParam} arg - Arg object.
127
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
128
+ * @param {import("../PartnerAPIClient").Options} - Options
129
+ * @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
130
+ * @name fetchProxy
131
+ * @summary: Proxy
132
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/fetchProxy/).
133
+ */
134
+ fetchProxy({ url, requestHeaders }?: FileStoragePartnerValidator.FetchProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FetchProxyDetails>;
135
+ /**
136
+ * @param {FileStoragePartnerValidator.SaveProxyDetailsParam} arg - Arg object.
137
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
138
+ * @param {import("../PartnerAPIClient").Options} - Options
139
+ * @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
140
+ * @name saveProxyDetails
141
+ * @summary: Proxy
142
+ * @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveProxyDetails/).
143
+ */
144
+ saveProxyDetails({ body, requestHeaders }?: FileStoragePartnerValidator.SaveProxyDetailsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SaveProxy>;
71
145
  }
72
146
  import FileStoragePartnerModel = require("./FileStoragePartnerModel");