@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
  6. package/sdk/application/Cart/CartApplicationClient.js +53 -130
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
  8. package/sdk/application/Cart/CartApplicationModel.js +159 -380
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
  10. package/sdk/application/Cart/CartApplicationValidator.js +18 -34
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
  16. package/sdk/application/Common/CommonApplicationClient.js +5 -6
  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 +27 -34
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
  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 +33 -23
  26. package/sdk/application/Content/ContentApplicationClient.js +75 -54
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
  28. package/sdk/application/Content/ContentApplicationModel.js +32 -83
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
  30. package/sdk/application/Content/ContentApplicationValidator.js +10 -15
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
  38. package/sdk/application/Lead/LeadApplicationClient.js +3 -2
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  40. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
  43. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
  44. package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
  45. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
  46. package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
  47. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
  48. package/sdk/application/Order/OrderApplicationClient.js +13 -96
  49. package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
  50. package/sdk/application/Order/OrderApplicationModel.js +81 -279
  51. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
  52. package/sdk/application/Order/OrderApplicationValidator.js +2 -15
  53. package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
  54. package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
  55. package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
  56. package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
  57. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  58. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  59. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
  60. package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
  61. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  62. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  63. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  64. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  65. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  66. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  67. package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
  68. package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
  69. package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
  70. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
  71. package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
  72. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  73. package/sdk/application/User/UserApplicationClient.js +10 -10
  74. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  75. package/sdk/application/User/UserApplicationModel.js +16 -16
  76. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  77. package/sdk/application/User/UserApplicationValidator.js +2 -2
  78. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  79. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  80. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
  81. package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
  82. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  83. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  84. package/sdk/application/index.d.ts +0 -1
  85. package/sdk/application/index.js +0 -2
  86. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  87. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  88. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  89. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  90. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  91. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  92. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  93. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  95. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  96. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  97. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  98. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  99. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  100. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  101. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  102. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  103. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  104. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  105. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  107. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  108. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  109. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  110. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  111. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  112. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  115. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  117. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  123. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  124. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  125. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  126. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  127. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  128. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  129. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  131. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  133. package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
  134. package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  139. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  140. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  141. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
  142. package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
  143. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  145. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  146. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  147. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  148. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  149. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  150. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  151. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  153. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  154. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  157. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  158. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  159. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  160. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  163. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  164. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  165. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  166. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  167. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
  168. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
  169. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  170. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  171. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  172. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  173. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  174. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  175. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  176. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  177. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  178. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  179. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  180. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  181. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  182. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  183. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  184. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  185. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  186. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  187. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  188. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  189. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  191. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  192. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  193. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  194. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  195. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  196. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  197. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  198. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  199. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  200. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  201. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  202. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  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 +4 -15
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
  212. package/sdk/platform/Order/OrderPlatformClient.js +245 -597
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
  214. package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
  216. package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  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 +106 -94
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  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 +507 -386
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  231. package/sdk/platform/PlatformClient.d.ts +2 -0
  232. package/sdk/platform/PlatformClient.js +4 -0
  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 +35 -45
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  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 +5 -36
  252. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  258. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  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 +78 -25
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  271. package/sdk/platform/index.d.ts +1 -0
  272. package/sdk/platform/index.js +2 -0
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  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 +2 -112
  278. package/sdk/public/Content/ContentPublicClient.js +5 -791
  279. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  280. package/sdk/public/Content/ContentPublicModel.js +3 -649
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  282. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  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/application/Finance/FinanceApplicationClient.d.ts +0 -36
  290. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  291. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  292. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  293. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  294. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
@@ -26,12 +26,6 @@ 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
-
35
29
  /**
36
30
  * @typedef SeoSchema
37
31
  * @property {string} [app] - Application ID - Identifier for a Sales channel.
@@ -117,7 +111,7 @@ const Joi = require("joi");
117
111
  */
118
112
 
119
113
  /**
120
- * @typedef BlogGetDetails
114
+ * @typedef BlogGetResponse
121
115
  * @property {BlogSchema[]} [items] - List of blogs with details.
122
116
  * @property {Page} [page]
123
117
  * @property {BlogFilters} [filters]
@@ -420,7 +414,7 @@ const Joi = require("joi");
420
414
  */
421
415
 
422
416
  /**
423
- * @typedef NavigationGetDetails
417
+ * @typedef NavigationGetResponse
424
418
  * @property {NavigationSchema[]} [items] - List of navigation items.
425
419
  * @property {Page} [page]
426
420
  */
@@ -452,7 +446,7 @@ const Joi = require("joi");
452
446
  */
453
447
 
454
448
  /**
455
- * @typedef PageGetDetails
449
+ * @typedef PageGetResponse
456
450
  * @property {PageSchema[]} [items] - List of details of custom pages.
457
451
  * @property {Page} [page]
458
452
  */
@@ -493,7 +487,7 @@ const Joi = require("joi");
493
487
  */
494
488
 
495
489
  /**
496
- * @typedef SlideshowGetDetails
490
+ * @typedef SlideshowGetResponse
497
491
  * @property {SlideshowSchema[]} [items] - Details related to slideshow/screensaver.
498
492
  * @property {Page} [page]
499
493
  */
@@ -598,7 +592,7 @@ const Joi = require("joi");
598
592
  /**
599
593
  * @typedef CustomObjectFieldSchema
600
594
  * @property {string} [_id] - Unique identifier of an entry.
601
- * @property {string} [slug] - Slug of custom field inside custom object.
595
+ * @property {string} [key] - Key of custom field inside custom object.
602
596
  * @property {CustomObjectFieldValue[]} [value] - Value of custom field inside
603
597
  * custom object.
604
598
  * @property {string} [type] - Data type of custom field inside custom object.
@@ -608,7 +602,7 @@ const Joi = require("joi");
608
602
 
609
603
  /**
610
604
  * @typedef CustomObjectByIdSchema
611
- * @property {string} [id] - Unique identifier of an entry.
605
+ * @property {string} [_id] - Unique identifier of an entry.
612
606
  * @property {string} [status] - String denoting whether custom object is active
613
607
  * or inactive.
614
608
  * @property {string} [display_name] - Unique Display name of a custom object
@@ -629,8 +623,10 @@ const Joi = require("joi");
629
623
  * @typedef CustomFieldSchema
630
624
  * @property {string} [_id] - Unique identifier of an entry.
631
625
  * @property {string} [namespace] - Namespace under which custom field is present.
632
- * @property {string} [slug] - Unique identifier for a custom field in a given namespace.
626
+ * @property {string} [key] - Unique identifier for a custom field.
633
627
  * @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.
634
630
  * @property {CustomFieldValue[]} [value] - Array containing values of custom field.
635
631
  * @property {string} [resource_id] - Unique identifier for the entity under
636
632
  * which custom field is defined.
@@ -643,6 +639,7 @@ const Joi = require("joi");
643
639
  * @property {boolean} [has_invalid_values] - Whether the custom field has invalid values.
644
640
  * @property {Object[]} [invalid_value_errors] - Array denoting if there's a
645
641
  * validation failure on a custom field inside a custom object.
642
+ * @property {string} [created_by] - Details of the owner of custom field creator.
646
643
  * @property {boolean} [is_deleted] - Whether the custom field definition is deleted.
647
644
  * @property {string} [created_at] - Timestamp which represent the time when
648
645
  * data was created.
@@ -655,25 +652,6 @@ const Joi = require("joi");
655
652
  * @property {CustomFieldSchema[]} [items] - List of custom fields against a resource.
656
653
  */
657
654
 
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
-
677
655
  /**
678
656
  * @typedef ActionPage
679
657
  * @property {Object} [params] - Parameters that should be considered in path.
@@ -764,14 +742,6 @@ class ContentApplicationModel {
764
742
  });
765
743
  }
766
744
 
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
-
775
745
  /** @returns {SeoSchema} */
776
746
  static SeoSchema() {
777
747
  return Joi.object({
@@ -867,8 +837,8 @@ class ContentApplicationModel {
867
837
  });
868
838
  }
869
839
 
870
- /** @returns {BlogGetDetails} */
871
- static BlogGetDetails() {
840
+ /** @returns {BlogGetResponse} */
841
+ static BlogGetResponse() {
872
842
  return Joi.object({
873
843
  items: Joi.array().items(ContentApplicationModel.BlogSchema()),
874
844
  page: ContentApplicationModel.Page(),
@@ -913,7 +883,7 @@ class ContentApplicationModel {
913
883
  static BlogSchema() {
914
884
  return Joi.object({
915
885
  _id: Joi.string().allow(""),
916
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
886
+ _custom_json: Joi.any(),
917
887
  application: Joi.string().allow(""),
918
888
  archived: Joi.boolean(),
919
889
  author: ContentApplicationModel.Author(),
@@ -1112,7 +1082,7 @@ class ContentApplicationModel {
1112
1082
  info: Joi.string().allow(""),
1113
1083
  request_id: Joi.string().allow(""),
1114
1084
  stack_trace: Joi.string().allow(""),
1115
- meta: Joi.object().pattern(/\S/, Joi.any()),
1085
+ meta: Joi.any(),
1116
1086
  });
1117
1087
  }
1118
1088
 
@@ -1134,7 +1104,7 @@ class ContentApplicationModel {
1134
1104
  slug: Joi.string().allow(""),
1135
1105
  application: Joi.string().allow(""),
1136
1106
  icon_url: Joi.string().allow(""),
1137
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1107
+ _custom_json: Joi.any(),
1138
1108
  });
1139
1109
  }
1140
1110
 
@@ -1160,7 +1130,7 @@ class ContentApplicationModel {
1160
1130
  slug: Joi.string().allow(""),
1161
1131
  application: Joi.string().allow(""),
1162
1132
  icon_url: Joi.string().allow(""),
1163
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1133
+ _custom_json: Joi.any(),
1164
1134
  });
1165
1135
  }
1166
1136
 
@@ -1221,12 +1191,12 @@ class ContentApplicationModel {
1221
1191
  _id: Joi.string().allow(""),
1222
1192
  application: Joi.string().allow(""),
1223
1193
  archived: Joi.boolean(),
1224
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1194
+ _custom_json: Joi.any(),
1225
1195
  });
1226
1196
  }
1227
1197
 
1228
- /** @returns {NavigationGetDetails} */
1229
- static NavigationGetDetails() {
1198
+ /** @returns {NavigationGetResponse} */
1199
+ static NavigationGetResponse() {
1230
1200
  return Joi.object({
1231
1201
  items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
1232
1202
  page: ContentApplicationModel.Page(),
@@ -1260,8 +1230,8 @@ class ContentApplicationModel {
1260
1230
  });
1261
1231
  }
1262
1232
 
1263
- /** @returns {PageGetDetails} */
1264
- static PageGetDetails() {
1233
+ /** @returns {PageGetResponse} */
1234
+ static PageGetResponse() {
1265
1235
  return Joi.object({
1266
1236
  items: Joi.array().items(ContentApplicationModel.PageSchema()),
1267
1237
  page: ContentApplicationModel.Page(),
@@ -1282,7 +1252,7 @@ class ContentApplicationModel {
1282
1252
  feature_image: ContentApplicationModel.Asset(),
1283
1253
  page_meta: Joi.array().items(Joi.any()),
1284
1254
  _schedule: ContentApplicationModel.ScheduleSchema(),
1285
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1255
+ _custom_json: Joi.any(),
1286
1256
  orientation: Joi.string().allow(""),
1287
1257
  platform: Joi.string().allow(""),
1288
1258
  published: Joi.boolean(),
@@ -1291,7 +1261,7 @@ class ContentApplicationModel {
1291
1261
  title: Joi.string().allow(""),
1292
1262
  type: Joi.string().allow(""),
1293
1263
  seo: ContentApplicationModel.SEO(),
1294
- visibility: Joi.object().pattern(/\S/, Joi.any()),
1264
+ visibility: Joi.any(),
1295
1265
  archived: Joi.boolean(),
1296
1266
  });
1297
1267
  }
@@ -1303,8 +1273,8 @@ class ContentApplicationModel {
1303
1273
  });
1304
1274
  }
1305
1275
 
1306
- /** @returns {SlideshowGetDetails} */
1307
- static SlideshowGetDetails() {
1276
+ /** @returns {SlideshowGetResponse} */
1277
+ static SlideshowGetResponse() {
1308
1278
  return Joi.object({
1309
1279
  items: Joi.array().items(ContentApplicationModel.SlideshowSchema()),
1310
1280
  page: ContentApplicationModel.Page(),
@@ -1323,7 +1293,7 @@ class ContentApplicationModel {
1323
1293
  media: Joi.array().items(ContentApplicationModel.SlideshowMedia()),
1324
1294
  active: Joi.boolean(),
1325
1295
  archived: Joi.boolean(),
1326
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1296
+ _custom_json: Joi.any(),
1327
1297
  });
1328
1298
  }
1329
1299
 
@@ -1399,7 +1369,7 @@ class ContentApplicationModel {
1399
1369
  sub_type: Joi.string().allow(""),
1400
1370
  _id: Joi.string().allow(""),
1401
1371
  position: Joi.string().allow(""),
1402
- attributes: Joi.object().pattern(/\S/, Joi.any()),
1372
+ attributes: Joi.any(),
1403
1373
  content: Joi.string().allow(""),
1404
1374
  pages: Joi.array().items(Joi.any()),
1405
1375
  __source: ContentApplicationModel.TagSourceSchema(),
@@ -1434,7 +1404,7 @@ class ContentApplicationModel {
1434
1404
  static CustomObjectFieldSchema() {
1435
1405
  return Joi.object({
1436
1406
  _id: Joi.string().allow(""),
1437
- slug: Joi.string().allow(""),
1407
+ key: Joi.string().allow(""),
1438
1408
  value: Joi.array().items(
1439
1409
  ContentApplicationModel.CustomObjectFieldValue()
1440
1410
  ),
@@ -1446,7 +1416,7 @@ class ContentApplicationModel {
1446
1416
  /** @returns {CustomObjectByIdSchema} */
1447
1417
  static CustomObjectByIdSchema() {
1448
1418
  return Joi.object({
1449
- id: Joi.string().allow(""),
1419
+ _id: Joi.string().allow(""),
1450
1420
  status: Joi.string().allow(""),
1451
1421
  display_name: Joi.string().allow(""),
1452
1422
  definition: ContentApplicationModel.CustomObjectListItemDefinationSchema(),
@@ -1469,8 +1439,9 @@ class ContentApplicationModel {
1469
1439
  return Joi.object({
1470
1440
  _id: Joi.string().allow(""),
1471
1441
  namespace: Joi.string().allow(""),
1472
- slug: Joi.string().allow(""),
1442
+ key: Joi.string().allow(""),
1473
1443
  resource: Joi.string().allow(""),
1444
+ creator: Joi.string().allow(""),
1474
1445
  value: Joi.array().items(ContentApplicationModel.CustomFieldValue()),
1475
1446
  resource_id: Joi.string().allow(""),
1476
1447
  type: Joi.string().allow(""),
@@ -1480,6 +1451,7 @@ class ContentApplicationModel {
1480
1451
  definition_id: Joi.string().allow(""),
1481
1452
  has_invalid_values: Joi.boolean(),
1482
1453
  invalid_value_errors: Joi.array().items(Joi.any()),
1454
+ created_by: Joi.string().allow(""),
1483
1455
  is_deleted: Joi.boolean(),
1484
1456
  created_at: Joi.string().allow(""),
1485
1457
  updated_at: Joi.string().allow(""),
@@ -1493,29 +1465,6 @@ class ContentApplicationModel {
1493
1465
  });
1494
1466
  }
1495
1467
 
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
-
1519
1468
  /** @returns {ActionPage} */
1520
1469
  static ActionPage() {
1521
1470
  return Joi.object({
@@ -6,7 +6,6 @@ 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.
10
9
  */
11
10
  /**
12
11
  * @typedef GetBlogsParam
@@ -17,16 +16,14 @@ export = ContentApplicationValidator;
17
16
  * @property {string} [search] - Blogs retrieve based on the title.
18
17
  */
19
18
  /**
20
- * @typedef GetCustomFieldsByResourceIdParam
19
+ * @typedef GetCustomFieldsParam
21
20
  * @property {string} resource - This is the name of resource for which you want
22
21
  * to fetch custom fields eg. product, collection, customer etc.
23
- * @property {string} resourceSlug - This is the resource id for which custom
24
- * fields created
22
+ * @property {string} resourceId - This is the resource id for which custom fields created
25
23
  */
26
24
  /**
27
- * @typedef GetCustomObjectBySlugParam
28
- * @property {string} definitionSlug
29
- * @property {string} slug
25
+ * @typedef GetCustomObjectParam
26
+ * @property {string} metaobjectId - This is meta object id
30
27
  */
31
28
  /** @typedef GetDataLoadersParam */
32
29
  /**
@@ -98,10 +95,10 @@ declare class ContentApplicationValidator {
98
95
  static getBlog(): GetBlogParam;
99
96
  /** @returns {GetBlogsParam} */
100
97
  static getBlogs(): GetBlogsParam;
101
- /** @returns {GetCustomFieldsByResourceIdParam} */
102
- static getCustomFieldsByResourceId(): GetCustomFieldsByResourceIdParam;
103
- /** @returns {GetCustomObjectBySlugParam} */
104
- static getCustomObjectBySlug(): GetCustomObjectBySlugParam;
98
+ /** @returns {GetCustomFieldsParam} */
99
+ static getCustomFields(): GetCustomFieldsParam;
100
+ /** @returns {GetCustomObjectParam} */
101
+ static getCustomObject(): GetCustomObjectParam;
105
102
  /** @returns {GetDataLoadersParam} */
106
103
  static getDataLoaders(): any;
107
104
  /** @returns {GetFaqBySlugParam} */
@@ -138,7 +135,7 @@ declare class ContentApplicationValidator {
138
135
  static getTags(): any;
139
136
  }
140
137
  declare namespace ContentApplicationValidator {
141
- export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsByResourceIdParam, GetCustomObjectBySlugParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
138
+ export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsParam, GetCustomObjectParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
142
139
  }
143
140
  type GetBlogParam = {
144
141
  /**
@@ -151,10 +148,6 @@ type GetBlogParam = {
151
148
  * - ID given to the HTML element.
152
149
  */
153
150
  rootId?: string;
154
- /**
155
- * - Boolean value to get the preview for the blogs.
156
- */
157
- preview?: boolean;
158
151
  };
159
152
  type GetBlogsParam = {
160
153
  /**
@@ -175,21 +168,22 @@ type GetBlogsParam = {
175
168
  */
176
169
  search?: string;
177
170
  };
178
- type GetCustomFieldsByResourceIdParam = {
171
+ type GetCustomFieldsParam = {
179
172
  /**
180
173
  * - This is the name of resource for which you want
181
174
  * to fetch custom fields eg. product, collection, customer etc.
182
175
  */
183
176
  resource: string;
184
177
  /**
185
- * - This is the resource id for which custom
186
- * fields created
178
+ * - This is the resource id for which custom fields created
187
179
  */
188
- resourceSlug: string;
180
+ resourceId: string;
189
181
  };
190
- type GetCustomObjectBySlugParam = {
191
- definitionSlug: string;
192
- slug: string;
182
+ type GetCustomObjectParam = {
183
+ /**
184
+ * - This is meta object id
185
+ */
186
+ metaobjectId: string;
193
187
  };
194
188
  type GetFaqBySlugParam = {
195
189
  /**
@@ -10,7 +10,6 @@ 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.
14
13
  */
15
14
 
16
15
  /**
@@ -23,17 +22,15 @@ const ContentApplicationModel = require("./ContentApplicationModel");
23
22
  */
24
23
 
25
24
  /**
26
- * @typedef GetCustomFieldsByResourceIdParam
25
+ * @typedef GetCustomFieldsParam
27
26
  * @property {string} resource - This is the name of resource for which you want
28
27
  * to fetch custom fields eg. product, collection, customer etc.
29
- * @property {string} resourceSlug - This is the resource id for which custom
30
- * fields created
28
+ * @property {string} resourceId - This is the resource id for which custom fields created
31
29
  */
32
30
 
33
31
  /**
34
- * @typedef GetCustomObjectBySlugParam
35
- * @property {string} definitionSlug
36
- * @property {string} slug
32
+ * @typedef GetCustomObjectParam
33
+ * @property {string} metaobjectId - This is meta object id
37
34
  */
38
35
 
39
36
  /** @typedef GetDataLoadersParam */
@@ -127,7 +124,6 @@ class ContentApplicationValidator {
127
124
  return Joi.object({
128
125
  slug: Joi.string().allow("").required(),
129
126
  rootId: Joi.string().allow(""),
130
- preview: Joi.boolean(),
131
127
  }).required();
132
128
  }
133
129
 
@@ -141,19 +137,18 @@ class ContentApplicationValidator {
141
137
  });
142
138
  }
143
139
 
144
- /** @returns {GetCustomFieldsByResourceIdParam} */
145
- static getCustomFieldsByResourceId() {
140
+ /** @returns {GetCustomFieldsParam} */
141
+ static getCustomFields() {
146
142
  return Joi.object({
147
143
  resource: Joi.string().allow("").required(),
148
- resourceSlug: Joi.string().allow("").required(),
144
+ resourceId: Joi.string().allow("").required(),
149
145
  }).required();
150
146
  }
151
147
 
152
- /** @returns {GetCustomObjectBySlugParam} */
153
- static getCustomObjectBySlug() {
148
+ /** @returns {GetCustomObjectParam} */
149
+ static getCustomObject() {
154
150
  return Joi.object({
155
- definitionSlug: Joi.string().allow("").required(),
156
- slug: Joi.string().allow("").required(),
151
+ metaobjectId: Joi.string().allow("").required(),
157
152
  }).required();
158
153
  }
159
154
 
@@ -13,33 +13,32 @@ 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.FileUploadComplete>} -
17
- * Success response
16
+ * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
18
17
  * @name completeUpload
19
- * @summary: Finalizes upload process.
18
+ * @summary: Complete file upload
20
19
  * @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/).
21
20
  */
22
- completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.FileUploadComplete>;
21
+ completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.CompleteResponse>;
23
22
  /**
24
23
  * @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
25
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
26
25
  * @param {import("../ApplicationAPIClient").Options} - Options
27
- * @returns {Promise<FileStorageApplicationModel.SignUrlResult>} - Success response
26
+ * @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
28
27
  * @name signUrls
29
- * @summary: Signs file URLs.
28
+ * @summary: Get signed URLs
30
29
  * @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/).
31
30
  */
32
- signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.SignUrlResult>;
31
+ signUrls({ body, requestHeaders }?: FileStorageApplicationValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.SignUrlResponse>;
33
32
  /**
34
33
  * @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
35
34
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
35
  * @param {import("../ApplicationAPIClient").Options} - Options
37
- * @returns {Promise<FileStorageApplicationModel.FileUpload>} - Success response
36
+ * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
38
37
  * @name startUpload
39
38
  * @summary: Initiates file upload
40
39
  * @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/).
41
40
  */
42
- startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.FileUpload>;
41
+ startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.StartResponse>;
43
42
  /**
44
43
  * @param data
45
44
  * @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/v2.0/namespaces/{namespace}/upload/complete",
19
+ "/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
20
20
  signUrls: "/service/application/assets/v1.0/sign-urls",
21
21
  startUpload:
22
- "/service/application/assets/v2.0/namespaces/{namespace}/upload/start",
22
+ "/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
23
23
  };
24
24
  this._urls = Object.entries(this._relativeUrls).reduce(
25
25
  (urls, [method, relativeUrl]) => {
@@ -41,10 +41,9 @@ 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.FileUploadComplete>} -
45
- * Success response
44
+ * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
46
45
  * @name completeUpload
47
- * @summary: Finalizes upload process.
46
+ * @summary: Complete file upload
48
47
  * @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/).
49
48
  */
50
49
  async completeUpload(
@@ -97,10 +96,10 @@ class FileStorage {
97
96
 
98
97
  const {
99
98
  error: res_error,
100
- } = FileStorageApplicationModel.FileUploadComplete().validate(
101
- responseData,
102
- { abortEarly: false, allowUnknown: true }
103
- );
99
+ } = FileStorageApplicationModel.CompleteResponse().validate(responseData, {
100
+ abortEarly: false,
101
+ allowUnknown: true,
102
+ });
104
103
 
105
104
  if (res_error) {
106
105
  if (this._conf.options.strictResponseCheck === true) {
@@ -120,9 +119,9 @@ class FileStorage {
120
119
  * @param {FileStorageApplicationValidator.SignUrlsParam} arg - Arg object.
121
120
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
122
121
  * @param {import("../ApplicationAPIClient").Options} - Options
123
- * @returns {Promise<FileStorageApplicationModel.SignUrlResult>} - Success response
122
+ * @returns {Promise<FileStorageApplicationModel.SignUrlResponse>} - Success response
124
123
  * @name signUrls
125
- * @summary: Signs file URLs.
124
+ * @summary: Get signed URLs
126
125
  * @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/).
127
126
  */
128
127
  async signUrls(
@@ -175,7 +174,7 @@ class FileStorage {
175
174
 
176
175
  const {
177
176
  error: res_error,
178
- } = FileStorageApplicationModel.SignUrlResult().validate(responseData, {
177
+ } = FileStorageApplicationModel.SignUrlResponse().validate(responseData, {
179
178
  abortEarly: false,
180
179
  allowUnknown: true,
181
180
  });
@@ -198,7 +197,7 @@ class FileStorage {
198
197
  * @param {FileStorageApplicationValidator.StartUploadParam} arg - Arg object.
199
198
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
200
199
  * @param {import("../ApplicationAPIClient").Options} - Options
201
- * @returns {Promise<FileStorageApplicationModel.FileUpload>} - Success response
200
+ * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
202
201
  * @name startUpload
203
202
  * @summary: Initiates file upload
204
203
  * @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/).
@@ -253,7 +252,7 @@ class FileStorage {
253
252
 
254
253
  const {
255
254
  error: res_error,
256
- } = FileStorageApplicationModel.FileUpload().validate(responseData, {
255
+ } = FileStorageApplicationModel.StartResponse().validate(responseData, {
257
256
  abortEarly: false,
258
257
  allowUnknown: true,
259
258
  });