@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -11,8 +11,7 @@ const Joi = require("joi");
11
11
  * @property {string} name
12
12
  * @property {number} company_id
13
13
  * @property {boolean} is_active
14
- * @property {string[]} app_ids
15
- * @property {string[]} [extension_ids]
14
+ * @property {string} app_id
16
15
  * @property {string} job_type
17
16
  * @property {string} discount_type
18
17
  * @property {string} discount_level
@@ -20,7 +19,7 @@ const Joi = require("joi");
20
19
  * @property {string} [file_path]
21
20
  * @property {number[]} [brand_ids]
22
21
  * @property {number[]} [store_ids]
23
- * @property {string[]} [zone_ids]
22
+ * @property {string[]} [factory_type_ids]
24
23
  * @property {ValidityObject} validity
25
24
  * @property {DiscountMeta} [discount_meta]
26
25
  */
@@ -41,15 +40,15 @@ const Joi = require("joi");
41
40
  * @property {string} name
42
41
  * @property {number} company_id
43
42
  * @property {boolean} is_active
44
- * @property {string[]} [app_ids]
45
- * @property {string} [job_type]
43
+ * @property {string} app_id
44
+ * @property {string} job_type
46
45
  * @property {string} [discount_type]
47
- * @property {string} [discount_level]
46
+ * @property {string} discount_level
48
47
  * @property {number} [value]
49
48
  * @property {string} [file_path]
50
49
  * @property {number[]} [brand_ids]
51
50
  * @property {number[]} [store_ids]
52
- * @property {string[]} [zone_ids]
51
+ * @property {string[]} [factory_type_ids]
53
52
  * @property {DiscountMeta} [discount_meta]
54
53
  * @property {ValidityObject} validity
55
54
  * @property {string} created_on
@@ -64,7 +63,7 @@ const Joi = require("joi");
64
63
  * @property {string} [name]
65
64
  * @property {number} [company_id]
66
65
  * @property {boolean} [is_active]
67
- * @property {string[]} [app_ids]
66
+ * @property {string} [app_id]
68
67
  * @property {string} [job_type]
69
68
  * @property {string} [discount_type]
70
69
  * @property {string} [discount_level]
@@ -72,8 +71,7 @@ const Joi = require("joi");
72
71
  * @property {string} [file_path]
73
72
  * @property {number[]} [brand_ids]
74
73
  * @property {number[]} [store_ids]
75
- * @property {string[]} [extension_ids]
76
- * @property {string[]} [zone_ids]
74
+ * @property {string[]} [factory_type_ids]
77
75
  * @property {DiscountMeta} [discount_meta]
78
76
  * @property {ValidityObject} [validity]
79
77
  * @property {string} [created_on]
@@ -94,6 +92,8 @@ const Joi = require("joi");
94
92
  * @property {string} [item_code]
95
93
  * @property {string} [brand_name]
96
94
  * @property {string} [seller_identifier]
95
+ * @property {string} [store_code]
96
+ * @property {string} [price_zone]
97
97
  * @property {string} discount_type
98
98
  * @property {number} value
99
99
  * @property {DiscountMeta} [discount_meta]
@@ -106,7 +106,7 @@ const Joi = require("joi");
106
106
  */
107
107
 
108
108
  /**
109
- * @typedef FileJobResponseSchema
109
+ * @typedef FileJobResponse
110
110
  * @property {string} stage
111
111
  * @property {number} total
112
112
  * @property {number} failed
@@ -117,22 +117,20 @@ const Joi = require("joi");
117
117
  * @property {string} _id - A unique identifier to distinguish and identify a job.
118
118
  * @property {string} [file_path]
119
119
  * @property {number} [progress]
120
- * @property {string[]} [extension_ids]
121
- * @property {string[]} [zone_ids]
122
120
  * @property {string} [created_on]
123
121
  * @property {string} [modified_on]
124
122
  * @property {UserDetails} [created_by]
125
123
  */
126
124
 
127
125
  /**
128
- * @typedef FileJobRequestSchema
126
+ * @typedef FileJobRequest
129
127
  * @property {string} name
130
128
  * @property {boolean} is_active
131
129
  * @property {number} company_id
132
- * @property {string[]} [app_ids]
133
- * @property {string} [job_type]
130
+ * @property {string} app_id
131
+ * @property {string} job_type
134
132
  * @property {string} [discount_type]
135
- * @property {string} [discount_level]
133
+ * @property {string} discount_level
136
134
  * @property {string} [file_path]
137
135
  * @property {number[]} [brand_ids]
138
136
  * @property {number[]} [store_ids]
@@ -142,12 +140,11 @@ const Joi = require("joi");
142
140
 
143
141
  /**
144
142
  * @typedef DownloadFileJob
145
- * @property {number[]} [brand_ids]
146
- * @property {number[]} [store_ids]
143
+ * @property {string} app_id
147
144
  */
148
145
 
149
146
  /**
150
- * @typedef CancelJobResponseSchema
147
+ * @typedef CancelJobResponse
151
148
  * @property {boolean} success
152
149
  */
153
150
 
@@ -160,6 +157,7 @@ const Joi = require("joi");
160
157
  * @property {number} [current] - The current page number.
161
158
  * @property {string} type - The type of the page, such as 'PageType'.
162
159
  * @property {number} [size] - The number of items per page.
160
+ * @property {number} [total] - Total number of items.
163
161
  */
164
162
 
165
163
  /**
@@ -200,8 +198,7 @@ class DiscountPlatformModel {
200
198
  name: Joi.string().allow("").required(),
201
199
  company_id: Joi.number().required(),
202
200
  is_active: Joi.boolean().required(),
203
- app_ids: Joi.array().items(Joi.string().allow("")).required(),
204
- extension_ids: Joi.array().items(Joi.string().allow("")),
201
+ app_id: Joi.string().allow("").required(),
205
202
  job_type: Joi.string().allow("").required(),
206
203
  discount_type: Joi.string().allow("").required(),
207
204
  discount_level: Joi.string().allow("").required(),
@@ -209,7 +206,7 @@ class DiscountPlatformModel {
209
206
  file_path: Joi.string().allow(""),
210
207
  brand_ids: Joi.array().items(Joi.number()),
211
208
  store_ids: Joi.array().items(Joi.number()),
212
- zone_ids: Joi.array().items(Joi.string().allow("")),
209
+ factory_type_ids: Joi.array().items(Joi.string().allow("")),
213
210
  validity: DiscountPlatformModel.ValidityObject().required(),
214
211
  discount_meta: DiscountPlatformModel.DiscountMeta(),
215
212
  });
@@ -231,22 +228,22 @@ class DiscountPlatformModel {
231
228
  name: Joi.string().allow("").required(),
232
229
  company_id: Joi.number().required(),
233
230
  is_active: Joi.boolean().required(),
234
- app_ids: Joi.array().items(Joi.string().allow("")),
235
- job_type: Joi.string().allow(""),
231
+ app_id: Joi.string().allow("").required(),
232
+ job_type: Joi.string().allow("").required(),
236
233
  discount_type: Joi.string().allow(""),
237
- discount_level: Joi.string().allow(""),
234
+ discount_level: Joi.string().allow("").required(),
238
235
  value: Joi.number(),
239
236
  file_path: Joi.string().allow(""),
240
237
  brand_ids: Joi.array().items(Joi.number()),
241
238
  store_ids: Joi.array().items(Joi.number()),
242
- zone_ids: Joi.array().items(Joi.string().allow("")),
239
+ factory_type_ids: Joi.array().items(Joi.string().allow("")),
243
240
  discount_meta: DiscountPlatformModel.DiscountMeta(),
244
241
  validity: DiscountPlatformModel.ValidityObject().required(),
245
242
  created_on: Joi.string().allow("").required(),
246
243
  modified_on: Joi.string().allow("").required(),
247
244
  created_by: DiscountPlatformModel.UserDetails().required(),
248
245
  modified_by: DiscountPlatformModel.UserDetails().required(),
249
- meta: Joi.object().pattern(/\S/, Joi.any()),
246
+ meta: Joi.any(),
250
247
  });
251
248
  }
252
249
 
@@ -256,7 +253,7 @@ class DiscountPlatformModel {
256
253
  name: Joi.string().allow(""),
257
254
  company_id: Joi.number(),
258
255
  is_active: Joi.boolean(),
259
- app_ids: Joi.array().items(Joi.string().allow("")),
256
+ app_id: Joi.string().allow(""),
260
257
  job_type: Joi.string().allow(""),
261
258
  discount_type: Joi.string().allow(""),
262
259
  discount_level: Joi.string().allow(""),
@@ -264,15 +261,14 @@ class DiscountPlatformModel {
264
261
  file_path: Joi.string().allow(""),
265
262
  brand_ids: Joi.array().items(Joi.number()),
266
263
  store_ids: Joi.array().items(Joi.number()),
267
- extension_ids: Joi.array().items(Joi.string().allow("")),
268
- zone_ids: Joi.array().items(Joi.string().allow("")),
264
+ factory_type_ids: Joi.array().items(Joi.string().allow("")),
269
265
  discount_meta: DiscountPlatformModel.DiscountMeta(),
270
266
  validity: DiscountPlatformModel.ValidityObject(),
271
267
  created_on: Joi.string().allow(""),
272
268
  modified_on: Joi.string().allow(""),
273
269
  created_by: DiscountPlatformModel.UserDetails(),
274
270
  modified_by: DiscountPlatformModel.UserDetails(),
275
- meta: Joi.object().pattern(/\S/, Joi.any()),
271
+ meta: Joi.any(),
276
272
  });
277
273
  }
278
274
 
@@ -290,6 +286,8 @@ class DiscountPlatformModel {
290
286
  item_code: Joi.string().allow(""),
291
287
  brand_name: Joi.string().allow(""),
292
288
  seller_identifier: Joi.string().allow(""),
289
+ store_code: Joi.string().allow(""),
290
+ price_zone: Joi.string().allow(""),
293
291
  discount_type: Joi.string().allow("").required(),
294
292
  value: Joi.number().required(),
295
293
  discount_meta: DiscountPlatformModel.DiscountMeta(),
@@ -306,8 +304,8 @@ class DiscountPlatformModel {
306
304
  });
307
305
  }
308
306
 
309
- /** @returns {FileJobResponseSchema} */
310
- static FileJobResponseSchema() {
307
+ /** @returns {FileJobResponse} */
308
+ static FileJobResponse() {
311
309
  return Joi.object({
312
310
  stage: Joi.string().allow("").required(),
313
311
  total: Joi.number().required(),
@@ -319,42 +317,39 @@ class DiscountPlatformModel {
319
317
  _id: Joi.string().allow("").required(),
320
318
  file_path: Joi.string().allow(""),
321
319
  progress: Joi.number(),
322
- extension_ids: Joi.array().items(Joi.string().allow("")),
323
- zone_ids: Joi.array().items(Joi.string().allow("")),
324
320
  created_on: Joi.string().allow(""),
325
321
  modified_on: Joi.string().allow(""),
326
322
  created_by: DiscountPlatformModel.UserDetails(),
327
323
  });
328
324
  }
329
325
 
330
- /** @returns {FileJobRequestSchema} */
331
- static FileJobRequestSchema() {
326
+ /** @returns {FileJobRequest} */
327
+ static FileJobRequest() {
332
328
  return Joi.object({
333
329
  name: Joi.string().allow("").required(),
334
330
  is_active: Joi.boolean().required(),
335
331
  company_id: Joi.number().required(),
336
- app_ids: Joi.array().items(Joi.string().allow("")),
337
- job_type: Joi.string().allow(""),
332
+ app_id: Joi.string().allow("").required(),
333
+ job_type: Joi.string().allow("").required(),
338
334
  discount_type: Joi.string().allow(""),
339
- discount_level: Joi.string().allow(""),
335
+ discount_level: Joi.string().allow("").required(),
340
336
  file_path: Joi.string().allow(""),
341
337
  brand_ids: Joi.array().items(Joi.number()),
342
338
  store_ids: Joi.array().items(Joi.number()),
343
339
  validity: DiscountPlatformModel.ValidityObject().required(),
344
- meta: Joi.object().pattern(/\S/, Joi.any()),
340
+ meta: Joi.any(),
345
341
  });
346
342
  }
347
343
 
348
344
  /** @returns {DownloadFileJob} */
349
345
  static DownloadFileJob() {
350
346
  return Joi.object({
351
- brand_ids: Joi.array().items(Joi.number()),
352
- store_ids: Joi.array().items(Joi.number()),
347
+ app_id: Joi.string().allow("").required(),
353
348
  });
354
349
  }
355
350
 
356
- /** @returns {CancelJobResponseSchema} */
357
- static CancelJobResponseSchema() {
351
+ /** @returns {CancelJobResponse} */
352
+ static CancelJobResponse() {
358
353
  return Joi.object({
359
354
  success: Joi.boolean().required(),
360
355
  });
@@ -370,6 +365,7 @@ class DiscountPlatformModel {
370
365
  current: Joi.number(),
371
366
  type: Joi.string().allow("").required(),
372
367
  size: Joi.number(),
368
+ total: Joi.number(),
373
369
  });
374
370
  }
375
371
 
@@ -54,7 +54,7 @@ export = DiscountPlatformValidator;
54
54
  /**
55
55
  * @typedef ValidateDiscountFileParam
56
56
  * @property {string} [discount] - Discount
57
- * @property {DiscountPlatformModel.FileJobRequestSchema} body
57
+ * @property {DiscountPlatformModel.FileJobRequest} body
58
58
  */
59
59
  declare class DiscountPlatformValidator {
60
60
  /** @returns {CancelDownloadJobParam} */
@@ -181,6 +181,6 @@ type ValidateDiscountFileParam = {
181
181
  * - Discount
182
182
  */
183
183
  discount?: string;
184
- body: DiscountPlatformModel.FileJobRequestSchema;
184
+ body: DiscountPlatformModel.FileJobRequest;
185
185
  };
186
186
  import DiscountPlatformModel = require("./DiscountPlatformModel");
@@ -67,7 +67,7 @@ const DiscountPlatformModel = require("./DiscountPlatformModel");
67
67
  /**
68
68
  * @typedef ValidateDiscountFileParam
69
69
  * @property {string} [discount] - Discount
70
- * @property {DiscountPlatformModel.FileJobRequestSchema} body
70
+ * @property {DiscountPlatformModel.FileJobRequest} body
71
71
  */
72
72
 
73
73
  class DiscountPlatformValidator {
@@ -156,7 +156,7 @@ class DiscountPlatformValidator {
156
156
  static validateDiscountFile() {
157
157
  return Joi.object({
158
158
  discount: Joi.string().allow(""),
159
- body: DiscountPlatformModel.FileJobRequestSchema().required(),
159
+ body: DiscountPlatformModel.FileJobRequest().required(),
160
160
  }).required();
161
161
  }
162
162
  }
@@ -9,12 +9,12 @@ declare class FileStorage {
9
9
  *
10
10
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
11
11
  * @param {import("../PlatformAPIClient").Options} - Options
12
- * @returns {Promise<FileStoragePlatformModel.FileUploadComplete>} - Success response
12
+ * @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
13
13
  * @name appCompleteUpload
14
14
  * @summary: Application complete upload.
15
15
  * @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
16
16
  */
17
- appCompleteUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.FileUploadComplete>;
17
+ appCompleteUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.CompleteResponse>;
18
18
  /**
19
19
  * @param {FileStoragePlatformApplicationValidator.AppCopyFilesParam} arg - Arg object
20
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -31,12 +31,12 @@ declare class FileStorage {
31
31
  *
32
32
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
33
33
  * @param {import("../PlatformAPIClient").Options} - Options
34
- * @returns {Promise<FileStoragePlatformModel.FileUpload>} - Success response
34
+ * @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
35
35
  * @name appStartUpload
36
36
  * @summary: Application start upload.
37
37
  * @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
38
38
  */
39
- appStartUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppStartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.FileUpload>;
39
+ appStartUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppStartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.StartResponse>;
40
40
  /**
41
41
  * @param {FileStoragePlatformApplicationValidator.AppbrowseParam} arg - Arg object
42
42
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -75,25 +75,26 @@ declare class FileStorage {
75
75
  *
76
76
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
77
77
  * @param {import("../PlatformAPIClient").Options} - Options
78
- * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateById>} -
79
- * Success response
78
+ * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>}
79
+ * - Success response
80
+ *
80
81
  * @name fetchPdfDefaultTemplateById
81
82
  * @summary: get default html template for invoice or label
82
83
  * @description: get default html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfDefaultTemplateById/).
83
84
  */
84
- fetchPdfDefaultTemplateById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateById>;
85
+ fetchPdfDefaultTemplateById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>;
85
86
  /**
86
87
  * @param {FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam} arg
87
88
  * - Arg object
88
89
  *
89
90
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
90
91
  * @param {import("../PlatformAPIClient").Options} - Options
91
- * @returns {Promise<FileStoragePlatformModel.PdfTypeByIdDetails>} - Success response
92
+ * @returns {Promise<FileStoragePlatformModel.PdfTypeIdResponse>} - Success response
92
93
  * @name fetchPdfTypeById
93
94
  * @summary: Get the pdf types of by id
94
95
  * @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
95
96
  */
96
- fetchPdfTypeById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfTypeByIdDetails>;
97
+ fetchPdfTypeById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfTypeIdResponse>;
97
98
  /**
98
99
  * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
99
100
  * - Arg object
@@ -124,12 +125,13 @@ declare class FileStorage {
124
125
  *
125
126
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
126
127
  * @param {import("../PlatformAPIClient").Options} - Options
127
- * @returns {Promise<FileStoragePlatformModel.PdfDataItemsDetails>} - Success response
128
+ * @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
129
+ * Success response
128
130
  * @name getDefaultPdfData
129
131
  * @summary: Get default PDF data.
130
132
  * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
131
133
  */
132
- getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDataItemsDetails>;
134
+ getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
133
135
  /**
134
136
  * @param {FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam} arg
135
137
  * - Arg object
@@ -161,22 +163,23 @@ declare class FileStorage {
161
163
  *
162
164
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
163
165
  * @param {import("../PlatformAPIClient").Options} - Options
164
- * @returns {Promise<FileStoragePlatformModel.MapperDetails>} - Success response
166
+ * @returns {Promise<FileStoragePlatformModel.DummyPayloadById>} - Success response
165
167
  * @name getPdfPayloadById
166
168
  * @summary: Get default PDF data.
167
169
  * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
168
170
  */
169
- getPdfPayloadById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.MapperDetails>;
171
+ getPdfPayloadById({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyPayloadById>;
170
172
  /**
171
173
  * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
172
174
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
173
175
  * @param {import("../PlatformAPIClient").Options} - Options
174
- * @returns {Promise<FileStoragePlatformModel.InvoiceTypes>} - Success response
176
+ * @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
177
+ * Success response
175
178
  * @name getPdfTypes
176
179
  * @summary: Get all the supported invoice pdf types
177
180
  * @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
178
181
  */
179
- getPdfTypes({ storeOs, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypes>;
182
+ getPdfTypes({ storeOs, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
180
183
  /**
181
184
  * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg
182
185
  * - Arg object
@@ -23,7 +23,7 @@ class FileStorage {
23
23
  *
24
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
25
25
  * @param {import("../PlatformAPIClient").Options} - Options
26
- * @returns {Promise<FileStoragePlatformModel.FileUploadComplete>} - Success response
26
+ * @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
27
27
  * @name appCompleteUpload
28
28
  * @summary: Application complete upload.
29
29
  * @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
@@ -83,7 +83,7 @@ class FileStorage {
83
83
 
84
84
  const {
85
85
  error: res_error,
86
- } = FileStoragePlatformModel.FileUploadComplete().validate(responseData, {
86
+ } = FileStoragePlatformModel.CompleteResponse().validate(responseData, {
87
87
  abortEarly: false,
88
88
  allowUnknown: true,
89
89
  });
@@ -188,7 +188,7 @@ class FileStorage {
188
188
  *
189
189
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
190
190
  * @param {import("../PlatformAPIClient").Options} - Options
191
- * @returns {Promise<FileStoragePlatformModel.FileUpload>} - Success response
191
+ * @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
192
192
  * @name appStartUpload
193
193
  * @summary: Application start upload.
194
194
  * @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
@@ -248,7 +248,7 @@ class FileStorage {
248
248
 
249
249
  const {
250
250
  error: res_error,
251
- } = FileStoragePlatformModel.FileUpload().validate(responseData, {
251
+ } = FileStoragePlatformModel.StartResponse().validate(responseData, {
252
252
  abortEarly: false,
253
253
  allowUnknown: true,
254
254
  });
@@ -532,8 +532,9 @@ class FileStorage {
532
532
  *
533
533
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
534
534
  * @param {import("../PlatformAPIClient").Options} - Options
535
- * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateById>} -
536
- * Success response
535
+ * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateResponse>}
536
+ * - Success response
537
+ *
537
538
  * @name fetchPdfDefaultTemplateById
538
539
  * @summary: get default html template for invoice or label
539
540
  * @description: get default html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfDefaultTemplateById/).
@@ -589,7 +590,7 @@ class FileStorage {
589
590
 
590
591
  const {
591
592
  error: res_error,
592
- } = FileStoragePlatformModel.PdfDefaultTemplateById().validate(
593
+ } = FileStoragePlatformModel.PdfDefaultTemplateResponse().validate(
593
594
  responseData,
594
595
  { abortEarly: false, allowUnknown: true }
595
596
  );
@@ -614,7 +615,7 @@ class FileStorage {
614
615
  *
615
616
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
616
617
  * @param {import("../PlatformAPIClient").Options} - Options
617
- * @returns {Promise<FileStoragePlatformModel.PdfTypeByIdDetails>} - Success response
618
+ * @returns {Promise<FileStoragePlatformModel.PdfTypeIdResponse>} - Success response
618
619
  * @name fetchPdfTypeById
619
620
  * @summary: Get the pdf types of by id
620
621
  * @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
@@ -670,7 +671,7 @@ class FileStorage {
670
671
 
671
672
  const {
672
673
  error: res_error,
673
- } = FileStoragePlatformModel.PdfTypeByIdDetails().validate(responseData, {
674
+ } = FileStoragePlatformModel.PdfTypeIdResponse().validate(responseData, {
674
675
  abortEarly: false,
675
676
  allowUnknown: true,
676
677
  });
@@ -828,10 +829,9 @@ class FileStorage {
828
829
  responseData = response[0];
829
830
  }
830
831
 
831
- const { error: res_error } = Joi.any().validate(responseData, {
832
- abortEarly: false,
833
- allowUnknown: true,
834
- });
832
+ const { error: res_error } = Joi.object()
833
+ .pattern(/\S/, Joi.any())
834
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
835
835
 
836
836
  if (res_error) {
837
837
  if (this.config.options.strictResponseCheck === true) {
@@ -853,7 +853,8 @@ class FileStorage {
853
853
  *
854
854
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
855
855
  * @param {import("../PlatformAPIClient").Options} - Options
856
- * @returns {Promise<FileStoragePlatformModel.PdfDataItemsDetails>} - Success response
856
+ * @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
857
+ * Success response
857
858
  * @name getDefaultPdfData
858
859
  * @summary: Get default PDF data.
859
860
  * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
@@ -913,10 +914,10 @@ class FileStorage {
913
914
 
914
915
  const {
915
916
  error: res_error,
916
- } = FileStoragePlatformModel.PdfDataItemsDetails().validate(responseData, {
917
- abortEarly: false,
918
- allowUnknown: true,
919
- });
917
+ } = FileStoragePlatformModel.DummyTemplateDataItems().validate(
918
+ responseData,
919
+ { abortEarly: false, allowUnknown: true }
920
+ );
920
921
 
921
922
  if (res_error) {
922
923
  if (this.config.options.strictResponseCheck === true) {
@@ -1115,7 +1116,7 @@ class FileStorage {
1115
1116
  *
1116
1117
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1117
1118
  * @param {import("../PlatformAPIClient").Options} - Options
1118
- * @returns {Promise<FileStoragePlatformModel.MapperDetails>} - Success response
1119
+ * @returns {Promise<FileStoragePlatformModel.DummyPayloadById>} - Success response
1119
1120
  * @name getPdfPayloadById
1120
1121
  * @summary: Get default PDF data.
1121
1122
  * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
@@ -1171,7 +1172,7 @@ class FileStorage {
1171
1172
 
1172
1173
  const {
1173
1174
  error: res_error,
1174
- } = FileStoragePlatformModel.MapperDetails().validate(responseData, {
1175
+ } = FileStoragePlatformModel.DummyPayloadById().validate(responseData, {
1175
1176
  abortEarly: false,
1176
1177
  allowUnknown: true,
1177
1178
  });
@@ -1194,7 +1195,8 @@ class FileStorage {
1194
1195
  * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
1195
1196
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1196
1197
  * @param {import("../PlatformAPIClient").Options} - Options
1197
- * @returns {Promise<FileStoragePlatformModel.InvoiceTypes>} - Success response
1198
+ * @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
1199
+ * Success response
1198
1200
  * @name getPdfTypes
1199
1201
  * @summary: Get all the supported invoice pdf types
1200
1202
  * @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
@@ -1254,7 +1256,7 @@ class FileStorage {
1254
1256
 
1255
1257
  const {
1256
1258
  error: res_error,
1257
- } = FileStoragePlatformModel.InvoiceTypes().validate(responseData, {
1259
+ } = FileStoragePlatformModel.InvoiceTypesResponse().validate(responseData, {
1258
1260
  abortEarly: false,
1259
1261
  allowUnknown: true,
1260
1262
  });
@@ -5,7 +5,7 @@ export = FileStoragePlatformApplicationValidator;
5
5
  * files(products, orders, logistics etc), Required for validating the data of
6
6
  * the file being uploaded, decides where exactly the file will be stored
7
7
  * inside the storage bucket.
8
- * @property {FileStoragePlatformModel.FileUpload} body
8
+ * @property {FileStoragePlatformModel.StartResponse} body
9
9
  */
10
10
  /**
11
11
  * @typedef AppCopyFilesParam
@@ -18,7 +18,7 @@ export = FileStoragePlatformApplicationValidator;
18
18
  * files(products, orders, logistics etc), Required for validating the data of
19
19
  * the file being uploaded, decides where exactly the file will be stored
20
20
  * inside the storage bucket.
21
- * @property {FileStoragePlatformModel.FileUploadStart} body
21
+ * @property {FileStoragePlatformModel.StartRequest} body
22
22
  */
23
23
  /**
24
24
  * @typedef AppbrowseParam
@@ -143,7 +143,7 @@ type AppCompleteUploadParam = {
143
143
  * inside the storage bucket.
144
144
  */
145
145
  namespace: string;
146
- body: FileStoragePlatformModel.FileUpload;
146
+ body: FileStoragePlatformModel.StartResponse;
147
147
  };
148
148
  type AppCopyFilesParam = {
149
149
  /**
@@ -160,7 +160,7 @@ type AppStartUploadParam = {
160
160
  * inside the storage bucket.
161
161
  */
162
162
  namespace: string;
163
- body: FileStoragePlatformModel.FileUploadStart;
163
+ body: FileStoragePlatformModel.StartRequest;
164
164
  };
165
165
  type AppbrowseParam = {
166
166
  /**
@@ -8,7 +8,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
8
8
  * files(products, orders, logistics etc), Required for validating the data of
9
9
  * the file being uploaded, decides where exactly the file will be stored
10
10
  * inside the storage bucket.
11
- * @property {FileStoragePlatformModel.FileUpload} body
11
+ * @property {FileStoragePlatformModel.StartResponse} body
12
12
  */
13
13
 
14
14
  /**
@@ -23,7 +23,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
23
23
  * files(products, orders, logistics etc), Required for validating the data of
24
24
  * the file being uploaded, decides where exactly the file will be stored
25
25
  * inside the storage bucket.
26
- * @property {FileStoragePlatformModel.FileUploadStart} body
26
+ * @property {FileStoragePlatformModel.StartRequest} body
27
27
  */
28
28
 
29
29
  /**
@@ -122,7 +122,7 @@ class FileStoragePlatformApplicationValidator {
122
122
  return Joi.object({
123
123
  namespace: Joi.string().allow("").required(),
124
124
 
125
- body: FileStoragePlatformModel.FileUpload().required(),
125
+ body: FileStoragePlatformModel.StartResponse().required(),
126
126
  }).required();
127
127
  }
128
128
 
@@ -140,7 +140,7 @@ class FileStoragePlatformApplicationValidator {
140
140
  return Joi.object({
141
141
  namespace: Joi.string().allow("").required(),
142
142
 
143
- body: FileStoragePlatformModel.FileUploadStart().required(),
143
+ body: FileStoragePlatformModel.StartRequest().required(),
144
144
  }).required();
145
145
  }
146
146