@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
@@ -26,6 +26,12 @@ const Joi = require("joi");
26
26
  * @property {SeoSchema} [seo]
27
27
  */
28
28
 
29
+ /**
30
+ * @typedef ValidationError
31
+ * @property {string} message - A brief description of the error encountered.
32
+ * @property {string} field - The field in the request that caused the error.
33
+ */
34
+
29
35
  /**
30
36
  * @typedef SeoSchema
31
37
  * @property {string} [app] - Application ID - Identifier for a Sales channel.
@@ -111,7 +117,7 @@ const Joi = require("joi");
111
117
  */
112
118
 
113
119
  /**
114
- * @typedef BlogGetResponse
120
+ * @typedef BlogGetDetails
115
121
  * @property {BlogSchema[]} [items] - List of blogs with details.
116
122
  * @property {Page} [page]
117
123
  * @property {BlogFilters} [filters]
@@ -414,7 +420,7 @@ const Joi = require("joi");
414
420
  */
415
421
 
416
422
  /**
417
- * @typedef NavigationGetResponse
423
+ * @typedef NavigationGetDetails
418
424
  * @property {NavigationSchema[]} [items] - List of navigation items.
419
425
  * @property {Page} [page]
420
426
  */
@@ -446,7 +452,7 @@ const Joi = require("joi");
446
452
  */
447
453
 
448
454
  /**
449
- * @typedef PageGetResponse
455
+ * @typedef PageGetDetails
450
456
  * @property {PageSchema[]} [items] - List of details of custom pages.
451
457
  * @property {Page} [page]
452
458
  */
@@ -487,7 +493,7 @@ const Joi = require("joi");
487
493
  */
488
494
 
489
495
  /**
490
- * @typedef SlideshowGetResponse
496
+ * @typedef SlideshowGetDetails
491
497
  * @property {SlideshowSchema[]} [items] - Details related to slideshow/screensaver.
492
498
  * @property {Page} [page]
493
499
  */
@@ -592,7 +598,7 @@ const Joi = require("joi");
592
598
  /**
593
599
  * @typedef CustomObjectFieldSchema
594
600
  * @property {string} [_id] - Unique identifier of an entry.
595
- * @property {string} [key] - Key of custom field inside custom object.
601
+ * @property {string} [slug] - Slug of custom field inside custom object.
596
602
  * @property {CustomObjectFieldValue[]} [value] - Value of custom field inside
597
603
  * custom object.
598
604
  * @property {string} [type] - Data type of custom field inside custom object.
@@ -602,7 +608,7 @@ const Joi = require("joi");
602
608
 
603
609
  /**
604
610
  * @typedef CustomObjectByIdSchema
605
- * @property {string} [_id] - Unique identifier of an entry.
611
+ * @property {string} [id] - Unique identifier of an entry.
606
612
  * @property {string} [status] - String denoting whether custom object is active
607
613
  * or inactive.
608
614
  * @property {string} [display_name] - Unique Display name of a custom object
@@ -623,10 +629,8 @@ const Joi = require("joi");
623
629
  * @typedef CustomFieldSchema
624
630
  * @property {string} [_id] - Unique identifier of an entry.
625
631
  * @property {string} [namespace] - Namespace under which custom field is present.
626
- * @property {string} [key] - Unique identifier for a custom field.
632
+ * @property {string} [slug] - Unique identifier for a custom field in a given namespace.
627
633
  * @property {string} [resource] - Type of an entity under which custom field is defined.
628
- * @property {string} [creator] - Denotes where the custom field has been
629
- * defined - within a company or within a sales channel.
630
634
  * @property {CustomFieldValue[]} [value] - Array containing values of custom field.
631
635
  * @property {string} [resource_id] - Unique identifier for the entity under
632
636
  * which custom field is defined.
@@ -639,7 +643,6 @@ const Joi = require("joi");
639
643
  * @property {boolean} [has_invalid_values] - Whether the custom field has invalid values.
640
644
  * @property {Object[]} [invalid_value_errors] - Array denoting if there's a
641
645
  * validation failure on a custom field inside a custom object.
642
- * @property {string} [created_by] - Details of the owner of custom field creator.
643
646
  * @property {boolean} [is_deleted] - Whether the custom field definition is deleted.
644
647
  * @property {string} [created_at] - Timestamp which represent the time when
645
648
  * data was created.
@@ -652,6 +655,25 @@ const Joi = require("joi");
652
655
  * @property {CustomFieldSchema[]} [items] - List of custom fields against a resource.
653
656
  */
654
657
 
658
+ /**
659
+ * @typedef CustomObjectListItemSchema
660
+ * @property {string} [_id] - Unique system generated if for a custom object
661
+ * @property {string} [definition_id] - Unique system generated id for a custom
662
+ * object definition
663
+ * @property {string} [status] - Flag to denote whether custom object is active or not
664
+ * @property {string} [updated_at] - Updation time of custom object entry
665
+ * @property {string} [display_name] - A custom field inside custom object used
666
+ * to display the entry of custom object in listing
667
+ * @property {CustomObjectListItemDefinationSchema} [definition]
668
+ * @property {number} [references]
669
+ */
670
+
671
+ /**
672
+ * @typedef CustomObjectsSchema
673
+ * @property {CustomObjectListItemSchema[]} [items]
674
+ * @property {Page} [page]
675
+ */
676
+
655
677
  /**
656
678
  * @typedef ActionPage
657
679
  * @property {Object} [params] - Parameters that should be considered in path.
@@ -742,6 +764,14 @@ class ContentApplicationModel {
742
764
  });
743
765
  }
744
766
 
767
+ /** @returns {ValidationError} */
768
+ static ValidationError() {
769
+ return Joi.object({
770
+ message: Joi.string().allow("").required(),
771
+ field: Joi.string().allow("").required(),
772
+ });
773
+ }
774
+
745
775
  /** @returns {SeoSchema} */
746
776
  static SeoSchema() {
747
777
  return Joi.object({
@@ -837,8 +867,8 @@ class ContentApplicationModel {
837
867
  });
838
868
  }
839
869
 
840
- /** @returns {BlogGetResponse} */
841
- static BlogGetResponse() {
870
+ /** @returns {BlogGetDetails} */
871
+ static BlogGetDetails() {
842
872
  return Joi.object({
843
873
  items: Joi.array().items(ContentApplicationModel.BlogSchema()),
844
874
  page: ContentApplicationModel.Page(),
@@ -883,7 +913,7 @@ class ContentApplicationModel {
883
913
  static BlogSchema() {
884
914
  return Joi.object({
885
915
  _id: Joi.string().allow(""),
886
- _custom_json: Joi.any(),
916
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
887
917
  application: Joi.string().allow(""),
888
918
  archived: Joi.boolean(),
889
919
  author: ContentApplicationModel.Author(),
@@ -1082,7 +1112,7 @@ class ContentApplicationModel {
1082
1112
  info: Joi.string().allow(""),
1083
1113
  request_id: Joi.string().allow(""),
1084
1114
  stack_trace: Joi.string().allow(""),
1085
- meta: Joi.any(),
1115
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1086
1116
  });
1087
1117
  }
1088
1118
 
@@ -1104,7 +1134,7 @@ class ContentApplicationModel {
1104
1134
  slug: Joi.string().allow(""),
1105
1135
  application: Joi.string().allow(""),
1106
1136
  icon_url: Joi.string().allow(""),
1107
- _custom_json: Joi.any(),
1137
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1108
1138
  });
1109
1139
  }
1110
1140
 
@@ -1130,7 +1160,7 @@ class ContentApplicationModel {
1130
1160
  slug: Joi.string().allow(""),
1131
1161
  application: Joi.string().allow(""),
1132
1162
  icon_url: Joi.string().allow(""),
1133
- _custom_json: Joi.any(),
1163
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1134
1164
  });
1135
1165
  }
1136
1166
 
@@ -1191,12 +1221,12 @@ class ContentApplicationModel {
1191
1221
  _id: Joi.string().allow(""),
1192
1222
  application: Joi.string().allow(""),
1193
1223
  archived: Joi.boolean(),
1194
- _custom_json: Joi.any(),
1224
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1195
1225
  });
1196
1226
  }
1197
1227
 
1198
- /** @returns {NavigationGetResponse} */
1199
- static NavigationGetResponse() {
1228
+ /** @returns {NavigationGetDetails} */
1229
+ static NavigationGetDetails() {
1200
1230
  return Joi.object({
1201
1231
  items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
1202
1232
  page: ContentApplicationModel.Page(),
@@ -1230,8 +1260,8 @@ class ContentApplicationModel {
1230
1260
  });
1231
1261
  }
1232
1262
 
1233
- /** @returns {PageGetResponse} */
1234
- static PageGetResponse() {
1263
+ /** @returns {PageGetDetails} */
1264
+ static PageGetDetails() {
1235
1265
  return Joi.object({
1236
1266
  items: Joi.array().items(ContentApplicationModel.PageSchema()),
1237
1267
  page: ContentApplicationModel.Page(),
@@ -1252,7 +1282,7 @@ class ContentApplicationModel {
1252
1282
  feature_image: ContentApplicationModel.Asset(),
1253
1283
  page_meta: Joi.array().items(Joi.any()),
1254
1284
  _schedule: ContentApplicationModel.ScheduleSchema(),
1255
- _custom_json: Joi.any(),
1285
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1256
1286
  orientation: Joi.string().allow(""),
1257
1287
  platform: Joi.string().allow(""),
1258
1288
  published: Joi.boolean(),
@@ -1261,7 +1291,7 @@ class ContentApplicationModel {
1261
1291
  title: Joi.string().allow(""),
1262
1292
  type: Joi.string().allow(""),
1263
1293
  seo: ContentApplicationModel.SEO(),
1264
- visibility: Joi.any(),
1294
+ visibility: Joi.object().pattern(/\S/, Joi.any()),
1265
1295
  archived: Joi.boolean(),
1266
1296
  });
1267
1297
  }
@@ -1273,8 +1303,8 @@ class ContentApplicationModel {
1273
1303
  });
1274
1304
  }
1275
1305
 
1276
- /** @returns {SlideshowGetResponse} */
1277
- static SlideshowGetResponse() {
1306
+ /** @returns {SlideshowGetDetails} */
1307
+ static SlideshowGetDetails() {
1278
1308
  return Joi.object({
1279
1309
  items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
1280
1310
  page: ContentApplicationModel.Page(),
@@ -1293,7 +1323,7 @@ class ContentApplicationModel {
1293
1323
  media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
1294
1324
  active: Joi.boolean(),
1295
1325
  archived: Joi.boolean(),
1296
- _custom_json: Joi.any(),
1326
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1297
1327
  });
1298
1328
  }
1299
1329
 
@@ -1369,7 +1399,7 @@ class ContentApplicationModel {
1369
1399
  sub_type: Joi.string().allow(""),
1370
1400
  _id: Joi.string().allow(""),
1371
1401
  position: Joi.string().allow(""),
1372
- attributes: Joi.any(),
1402
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
1373
1403
  content: Joi.string().allow(""),
1374
1404
  pages: Joi.array().items(Joi.any()),
1375
1405
  __source: ContentApplicationModel.TagSourceSchema(),
@@ -1404,7 +1434,7 @@ class ContentApplicationModel {
1404
1434
  static CustomObjectFieldSchema() {
1405
1435
  return Joi.object({
1406
1436
  _id: Joi.string().allow(""),
1407
- key: Joi.string().allow(""),
1437
+ slug: Joi.string().allow(""),
1408
1438
  value: Joi.array().items(
1409
1439
  ContentApplicationModel.CustomObjectFieldValue()
1410
1440
  ),
@@ -1416,7 +1446,7 @@ class ContentApplicationModel {
1416
1446
  /** @returns {CustomObjectByIdSchema} */
1417
1447
  static CustomObjectByIdSchema() {
1418
1448
  return Joi.object({
1419
- _id: Joi.string().allow(""),
1449
+ id: Joi.string().allow(""),
1420
1450
  status: Joi.string().allow(""),
1421
1451
  display_name: Joi.string().allow(""),
1422
1452
  definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
@@ -1439,9 +1469,8 @@ class ContentApplicationModel {
1439
1469
  return Joi.object({
1440
1470
  _id: Joi.string().allow(""),
1441
1471
  namespace: Joi.string().allow(""),
1442
- key: Joi.string().allow(""),
1472
+ slug: Joi.string().allow(""),
1443
1473
  resource: Joi.string().allow(""),
1444
- creator: Joi.string().allow(""),
1445
1474
  value: Joi.array().items(ContentApplicationModel.CustomFieldValue()),
1446
1475
  resource_id: Joi.string().allow(""),
1447
1476
  type: Joi.string().allow(""),
@@ -1451,7 +1480,6 @@ class ContentApplicationModel {
1451
1480
  definition_id: Joi.string().allow(""),
1452
1481
  has_invalid_values: Joi.boolean(),
1453
1482
  invalid_value_errors: Joi.array().items(Joi.any()),
1454
- created_by: Joi.string().allow(""),
1455
1483
  is_deleted: Joi.boolean(),
1456
1484
  created_at: Joi.string().allow(""),
1457
1485
  updated_at: Joi.string().allow(""),
@@ -1465,6 +1493,29 @@ class ContentApplicationModel {
1465
1493
  });
1466
1494
  }
1467
1495
 
1496
+ /** @returns {CustomObjectListItemSchema} */
1497
+ static CustomObjectListItemSchema() {
1498
+ return Joi.object({
1499
+ _id: Joi.string().allow(""),
1500
+ definition_id: Joi.string().allow(""),
1501
+ status: Joi.string().allow(""),
1502
+ updated_at: Joi.string().allow(""),
1503
+ display_name: Joi.string().allow(""),
1504
+ definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
1505
+ references: Joi.number(),
1506
+ });
1507
+ }
1508
+
1509
+ /** @returns {CustomObjectsSchema} */
1510
+ static CustomObjectsSchema() {
1511
+ return Joi.object({
1512
+ items: Joi.array().items(
1513
+ ContentApplicationModel.CustomObjectListItemSchema()
1514
+ ),
1515
+ page: ContentApplicationModel.Page(),
1516
+ });
1517
+ }
1518
+
1468
1519
  /** @returns {ActionPage} */
1469
1520
  static ActionPage() {
1470
1521
  return Joi.object({
@@ -6,6 +6,7 @@ export = ContentApplicationValidator;
6
6
  * a blog. You can get slug value from the endpoint
7
7
  * /service/application/content/v1.0/blogs/.
8
8
  * @property {string} [rootId] - ID given to the HTML element.
9
+ * @property {boolean} [preview] - Boolean value to get the preview for the blogs.
9
10
  */
10
11
  /**
11
12
  * @typedef GetBlogsParam
@@ -16,14 +17,16 @@ export = ContentApplicationValidator;
16
17
  * @property {string} [search] - Blogs retrieve based on the title.
17
18
  */
18
19
  /**
19
- * @typedef GetCustomFieldsParam
20
+ * @typedef GetCustomFieldsByResourceIdParam
20
21
  * @property {string} resource - This is the name of resource for which you want
21
22
  * to fetch custom fields eg. product, collection, customer etc.
22
- * @property {string} resourceId - This is the resource id for which custom fields created
23
+ * @property {string} resourceSlug - This is the resource id for which custom
24
+ * fields created
23
25
  */
24
26
  /**
25
- * @typedef GetCustomObjectParam
26
- * @property {string} metaobjectId - This is meta object id
27
+ * @typedef GetCustomObjectBySlugParam
28
+ * @property {string} definitionSlug
29
+ * @property {string} slug
27
30
  */
28
31
  /** @typedef GetDataLoadersParam */
29
32
  /**
@@ -95,10 +98,10 @@ declare class ContentApplicationValidator {
95
98
  static getBlog(): GetBlogParam;
96
99
  /** @returns {GetBlogsParam} */
97
100
  static getBlogs(): GetBlogsParam;
98
- /** @returns {GetCustomFieldsParam} */
99
- static getCustomFields(): GetCustomFieldsParam;
100
- /** @returns {GetCustomObjectParam} */
101
- static getCustomObject(): GetCustomObjectParam;
101
+ /** @returns {GetCustomFieldsByResourceIdParam} */
102
+ static getCustomFieldsByResourceId(): GetCustomFieldsByResourceIdParam;
103
+ /** @returns {GetCustomObjectBySlugParam} */
104
+ static getCustomObjectBySlug(): GetCustomObjectBySlugParam;
102
105
  /** @returns {GetDataLoadersParam} */
103
106
  static getDataLoaders(): any;
104
107
  /** @returns {GetFaqBySlugParam} */
@@ -135,7 +138,7 @@ declare class ContentApplicationValidator {
135
138
  static getTags(): any;
136
139
  }
137
140
  declare namespace ContentApplicationValidator {
138
- export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsParam, GetCustomObjectParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
141
+ export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsByResourceIdParam, GetCustomObjectBySlugParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
139
142
  }
140
143
  type GetBlogParam = {
141
144
  /**
@@ -148,6 +151,10 @@ type GetBlogParam = {
148
151
  * - ID given to the HTML element.
149
152
  */
150
153
  rootId?: string;
154
+ /**
155
+ * - Boolean value to get the preview for the blogs.
156
+ */
157
+ preview?: boolean;
151
158
  };
152
159
  type GetBlogsParam = {
153
160
  /**
@@ -168,22 +175,21 @@ type GetBlogsParam = {
168
175
  */
169
176
  search?: string;
170
177
  };
171
- type GetCustomFieldsParam = {
178
+ type GetCustomFieldsByResourceIdParam = {
172
179
  /**
173
180
  * - This is the name of resource for which you want
174
181
  * to fetch custom fields eg. product, collection, customer etc.
175
182
  */
176
183
  resource: string;
177
184
  /**
178
- * - This is the resource id for which custom fields created
185
+ * - This is the resource id for which custom
186
+ * fields created
179
187
  */
180
- resourceId: string;
188
+ resourceSlug: string;
181
189
  };
182
- type GetCustomObjectParam = {
183
- /**
184
- * - This is meta object id
185
- */
186
- metaobjectId: string;
190
+ type GetCustomObjectBySlugParam = {
191
+ definitionSlug: string;
192
+ slug: string;
187
193
  };
188
194
  type GetFaqBySlugParam = {
189
195
  /**
@@ -10,6 +10,7 @@ const ContentApplicationModel = require("./ContentApplicationModel");
10
10
  * a blog. You can get slug value from the endpoint
11
11
  * /service/application/content/v1.0/blogs/.
12
12
  * @property {string} [rootId] - ID given to the HTML element.
13
+ * @property {boolean} [preview] - Boolean value to get the preview for the blogs.
13
14
  */
14
15
 
15
16
  /**
@@ -22,15 +23,17 @@ const ContentApplicationModel = require("./ContentApplicationModel");
22
23
  */
23
24
 
24
25
  /**
25
- * @typedef GetCustomFieldsParam
26
+ * @typedef GetCustomFieldsByResourceIdParam
26
27
  * @property {string} resource - This is the name of resource for which you want
27
28
  * to fetch custom fields eg. product, collection, customer etc.
28
- * @property {string} resourceId - This is the resource id for which custom fields created
29
+ * @property {string} resourceSlug - This is the resource id for which custom
30
+ * fields created
29
31
  */
30
32
 
31
33
  /**
32
- * @typedef GetCustomObjectParam
33
- * @property {string} metaobjectId - This is meta object id
34
+ * @typedef GetCustomObjectBySlugParam
35
+ * @property {string} definitionSlug
36
+ * @property {string} slug
34
37
  */
35
38
 
36
39
  /** @typedef GetDataLoadersParam */
@@ -124,6 +127,7 @@ class ContentApplicationValidator {
124
127
  return Joi.object({
125
128
  slug: Joi.string().allow("").required(),
126
129
  rootId: Joi.string().allow(""),
130
+ preview: Joi.boolean(),
127
131
  }).required();
128
132
  }
129
133
 
@@ -137,18 +141,19 @@ class ContentApplicationValidator {
137
141
  });
138
142
  }
139
143
 
140
- /** @returns {GetCustomFieldsParam} */
141
- static getCustomFields() {
144
+ /** @returns {GetCustomFieldsByResourceIdParam} */
145
+ static getCustomFieldsByResourceId() {
142
146
  return Joi.object({
143
147
  resource: Joi.string().allow("").required(),
144
- resourceId: Joi.string().allow("").required(),
148
+ resourceSlug: Joi.string().allow("").required(),
145
149
  }).required();
146
150
  }
147
151
 
148
- /** @returns {GetCustomObjectParam} */
149
- static getCustomObject() {
152
+ /** @returns {GetCustomObjectBySlugParam} */
153
+ static getCustomObjectBySlug() {
150
154
  return Joi.object({
151
- metaobjectId: Joi.string().allow("").required(),
155
+ definitionSlug: Joi.string().allow("").required(),
156
+ slug: Joi.string().allow("").required(),
152
157
  }).required();
153
158
  }
154
159
 
@@ -13,32 +13,33 @@ declare class FileStorage {
13
13
  * @param {FileStorageApplicationValidator.CompleteUploadParam} arg - Arg object.
14
14
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
15
15
  * @param {import("../ApplicationAPIClient").Options} - Options
16
- * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
16
+ * @returns {Promise<FileStorageApplicationModel.FileUploadComplete>} -
17
+ * Success response
17
18
  * @name completeUpload
18
- * @summary: Complete file upload
19
+ * @summary: Finalizes upload process.
19
20
  * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
20
21
  */
21
- completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.CompleteResponse>;
22
+ completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.FileUploadComplete>;
22
23
  /**
23
24
  * @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
24
25
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
25
26
  * @param {import("../ApplicationAPIClient").Options} - Options
26
- * @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
27
+ * @returns {Promise<FileStorageApplicationModel.SignUrlResult>} - Success response
27
28
  * @name signUrls
28
- * @summary: Get signed URLs
29
+ * @summary: Signs file URLs.
29
30
  * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
30
31
  */
31
- signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.SignUrlResponse>;
32
+ signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.SignUrlResult>;
32
33
  /**
33
34
  * @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
34
35
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
35
36
  * @param {import("../ApplicationAPIClient").Options} - Options
36
- * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
37
+ * @returns {Promise<FileStorageApplicationModel.FileUpload>} - Success response
37
38
  * @name startUpload
38
39
  * @summary: Initiates file upload
39
40
  * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
40
41
  */
41
- startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.StartResponse>;
42
+ startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.FileUpload>;
42
43
  /**
43
44
  * @param data
44
45
  * @param {string} file_name
@@ -16,10 +16,10 @@ class FileStorage {
16
16
  this._conf = _conf;
17
17
  this._relativeUrls = {
18
18
  completeUpload:
19
- "/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
19
+ "/service/application/assets/v2.0/namespaces/{namespace}/upload/complete",
20
20
  signUrls: "/service/application/assets/v1.0/sign-urls",
21
21
  startUpload:
22
- "/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
22
+ "/service/application/assets/v2.0/namespaces/{namespace}/upload/start",
23
23
  };
24
24
  this._urls = Object.entries(this._relativeUrls).reduce(
25
25
  (urls, [method, relativeUrl]) => {
@@ -41,9 +41,10 @@ class FileStorage {
41
41
  * @param {FileStorageApplicationValidator.CompleteUploadParam} arg - Arg object.
42
42
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
43
43
  * @param {import("../ApplicationAPIClient").Options} - Options
44
- * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
44
+ * @returns {Promise<FileStorageApplicationModel.FileUploadComplete>} -
45
+ * Success response
45
46
  * @name completeUpload
46
- * @summary: Complete file upload
47
+ * @summary: Finalizes upload process.
47
48
  * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
48
49
  */
49
50
  async completeUpload(
@@ -96,10 +97,10 @@ class FileStorage {
96
97
 
97
98
  const {
98
99
  error: res_error,
99
- } = FileStorageApplicationModel.CompleteResponse().validate(responseData, {
100
- abortEarly: false,
101
- allowUnknown: true,
102
- });
100
+ } = FileStorageApplicationModel.FileUploadComplete().validate(
101
+ responseData,
102
+ { abortEarly: false, allowUnknown: true }
103
+ );
103
104
 
104
105
  if (res_error) {
105
106
  if (this._conf.options.strictResponseCheck === true) {
@@ -119,9 +120,9 @@ class FileStorage {
119
120
  * @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
120
121
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
121
122
  * @param {import("../ApplicationAPIClient").Options} - Options
122
- * @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
123
+ * @returns {Promise<FileStorageApplicationModel.SignUrlResult>} - Success response
123
124
  * @name signUrls
124
- * @summary: Get signed URLs
125
+ * @summary: Signs file URLs.
125
126
  * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
126
127
  */
127
128
  async signUrls(
@@ -174,7 +175,7 @@ class FileStorage {
174
175
 
175
176
  const {
176
177
  error: res_error,
177
- } = FileStorageApplicationModel.SignUrlResponse().validate(responseData, {
178
+ } = FileStorageApplicationModel.SignUrlResult().validate(responseData, {
178
179
  abortEarly: false,
179
180
  allowUnknown: true,
180
181
  });
@@ -197,7 +198,7 @@ class FileStorage {
197
198
  * @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
198
199
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
199
200
  * @param {import("../ApplicationAPIClient").Options} - Options
200
- * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
201
+ * @returns {Promise<FileStorageApplicationModel.FileUpload>} - Success response
201
202
  * @name startUpload
202
203
  * @summary: Initiates file upload
203
204
  * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
@@ -252,7 +253,7 @@ class FileStorage {
252
253
 
253
254
  const {
254
255
  error: res_error,
255
- } = FileStorageApplicationModel.StartResponse().validate(responseData, {
256
+ } = FileStorageApplicationModel.FileUpload().validate(responseData, {
256
257
  abortEarly: false,
257
258
  allowUnknown: true,
258
259
  });