@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
@@ -23,10 +23,10 @@ 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
- * @summary: Application complete upload.
29
- * @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
28
+ * @summary: Complete file upload for Application
29
+ * @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 on platform at application level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
30
30
  */
31
31
  async appCompleteUpload(
32
32
  { namespace, body, requestHeaders } = { requestHeaders: {} },
@@ -69,7 +69,7 @@ class FileStorage {
69
69
  const response = await PlatformAPIClient.execute(
70
70
  this.config,
71
71
  "post",
72
- `/service/platform/assets/v2.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/complete`,
72
+ `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/complete`,
73
73
  query_params,
74
74
  body,
75
75
  requestHeaders,
@@ -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
  });
@@ -108,8 +108,8 @@ class FileStorage {
108
108
  * @param {import("../PlatformAPIClient").Options} - Options
109
109
  * @returns {Promise<Object>} - Success response
110
110
  * @name appCopyFiles
111
- * @summary: Application copy files.
112
- * @description: Copy files from an application to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/).
111
+ * @summary: Copy files for Application
112
+ * @description: Handle multiple file uploads, updating progress and providing detailed status reports. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/).
113
113
  */
114
114
  async appCopyFiles(
115
115
  { body, sync, requestHeaders } = { requestHeaders: {} },
@@ -188,10 +188,10 @@ 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
- * @summary: Application start upload.
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/).
193
+ * @summary: Initiates file upload for Application
194
+ * @description: Inititates the process of uploading a file to storage location, and returns a storage link in response on platofrm at application level. Please refer group description for more details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
195
195
  */
196
196
  async appStartUpload(
197
197
  { namespace, body, requestHeaders } = { requestHeaders: {} },
@@ -234,7 +234,7 @@ class FileStorage {
234
234
  const response = await PlatformAPIClient.execute(
235
235
  this.config,
236
236
  "post",
237
- `/service/platform/assets/v2.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/start`,
237
+ `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/namespaces/${namespace}/upload/start`,
238
238
  query_params,
239
239
  body,
240
240
  requestHeaders,
@@ -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
  });
@@ -273,8 +273,8 @@ class FileStorage {
273
273
  * @param {import("../PlatformAPIClient").Options} - Options
274
274
  * @returns {Promise<Object>} - Success response
275
275
  * @name appbrowse
276
- * @summary: Application browse files.
277
- * @description: Browse files within an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
276
+ * @summary: Browse files for Application
277
+ * @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
278
278
  */
279
279
  async appbrowse(
280
280
  { namespace, page, limit, search, requestHeaders } = { requestHeaders: {} },
@@ -361,8 +361,8 @@ class FileStorage {
361
361
  * @param {import("../PlatformAPIClient").Options} - Options
362
362
  * @returns {Promise<Object>} - Success response
363
363
  * @name browsefiles
364
- * @summary: Browse Files
365
- * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
364
+ * @summary: Browse files for Application
365
+ * @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
366
366
  */
367
367
  async browsefiles(
368
368
  { namespace, body, page, limit, search, requestHeaders } = {
@@ -447,248 +447,6 @@ class FileStorage {
447
447
  return response;
448
448
  }
449
449
 
450
- /**
451
- * @param {FileStoragePlatformApplicationValidator.DeletePdfGeneratorConfigParam} arg
452
- * - Arg object
453
- *
454
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
455
- * @param {import("../PlatformAPIClient").Options} - Options
456
- * @returns {Promise<Object>} - Success response
457
- * @name deletePdfGeneratorConfig
458
- * @summary: Delete a PDF generator configuration
459
- * @description: Deletes a specific PDF generator configuration based on the provided id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfGeneratorConfig/).
460
- */
461
- async deletePdfGeneratorConfig(
462
- { id, requestHeaders } = { requestHeaders: {} },
463
- { responseHeaders } = { responseHeaders: false }
464
- ) {
465
- const {
466
- error,
467
- } = FileStoragePlatformApplicationValidator.deletePdfGeneratorConfig().validate(
468
- {
469
- id,
470
- },
471
- { abortEarly: false, allowUnknown: true }
472
- );
473
- if (error) {
474
- return Promise.reject(new FDKClientValidationError(error));
475
- }
476
-
477
- // Showing warrnings if extra unknown parameters are found
478
- const {
479
- error: warrning,
480
- } = FileStoragePlatformApplicationValidator.deletePdfGeneratorConfig().validate(
481
- {
482
- id,
483
- },
484
- { abortEarly: false, allowUnknown: false }
485
- );
486
- if (warrning) {
487
- Logger({
488
- level: "WARN",
489
- message: `Parameter Validation warrnings for platform > FileStorage > deletePdfGeneratorConfig \n ${warrning}`,
490
- });
491
- }
492
-
493
- const query_params = {};
494
-
495
- const response = await PlatformAPIClient.execute(
496
- this.config,
497
- "delete",
498
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config/${id}`,
499
- query_params,
500
- undefined,
501
- requestHeaders,
502
- { responseHeaders }
503
- );
504
-
505
- let responseData = response;
506
- if (responseHeaders) {
507
- responseData = response[0];
508
- }
509
-
510
- const { error: res_error } = Joi.any().validate(responseData, {
511
- abortEarly: false,
512
- allowUnknown: true,
513
- });
514
-
515
- if (res_error) {
516
- if (this.config.options.strictResponseCheck === true) {
517
- return Promise.reject(new FDKResponseValidationError(res_error));
518
- } else {
519
- Logger({
520
- level: "WARN",
521
- message: `Response Validation Warnings for platform > FileStorage > deletePdfGeneratorConfig \n ${res_error}`,
522
- });
523
- }
524
- }
525
-
526
- return response;
527
- }
528
-
529
- /**
530
- * @param {FileStoragePlatformApplicationValidator.FetchPdfDefaultTemplateByIdParam} arg
531
- * - Arg object
532
- *
533
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
534
- * @param {import("../PlatformAPIClient").Options} - Options
535
- * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateById>} -
536
- * Success response
537
- * @name fetchPdfDefaultTemplateById
538
- * @summary: get default html template for invoice or label
539
- * @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/).
540
- */
541
- async fetchPdfDefaultTemplateById(
542
- { id, requestHeaders } = { requestHeaders: {} },
543
- { responseHeaders } = { responseHeaders: false }
544
- ) {
545
- const {
546
- error,
547
- } = FileStoragePlatformApplicationValidator.fetchPdfDefaultTemplateById().validate(
548
- {
549
- id,
550
- },
551
- { abortEarly: false, allowUnknown: true }
552
- );
553
- if (error) {
554
- return Promise.reject(new FDKClientValidationError(error));
555
- }
556
-
557
- // Showing warrnings if extra unknown parameters are found
558
- const {
559
- error: warrning,
560
- } = FileStoragePlatformApplicationValidator.fetchPdfDefaultTemplateById().validate(
561
- {
562
- id,
563
- },
564
- { abortEarly: false, allowUnknown: false }
565
- );
566
- if (warrning) {
567
- Logger({
568
- level: "WARN",
569
- message: `Parameter Validation warrnings for platform > FileStorage > fetchPdfDefaultTemplateById \n ${warrning}`,
570
- });
571
- }
572
-
573
- const query_params = {};
574
-
575
- const response = await PlatformAPIClient.execute(
576
- this.config,
577
- "get",
578
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/default-template/${id}`,
579
- query_params,
580
- undefined,
581
- requestHeaders,
582
- { responseHeaders }
583
- );
584
-
585
- let responseData = response;
586
- if (responseHeaders) {
587
- responseData = response[0];
588
- }
589
-
590
- const {
591
- error: res_error,
592
- } = FileStoragePlatformModel.PdfDefaultTemplateById().validate(
593
- responseData,
594
- { abortEarly: false, allowUnknown: true }
595
- );
596
-
597
- if (res_error) {
598
- if (this.config.options.strictResponseCheck === true) {
599
- return Promise.reject(new FDKResponseValidationError(res_error));
600
- } else {
601
- Logger({
602
- level: "WARN",
603
- message: `Response Validation Warnings for platform > FileStorage > fetchPdfDefaultTemplateById \n ${res_error}`,
604
- });
605
- }
606
- }
607
-
608
- return response;
609
- }
610
-
611
- /**
612
- * @param {FileStoragePlatformApplicationValidator.FetchPdfTypeByIdParam} arg
613
- * - Arg object
614
- *
615
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
616
- * @param {import("../PlatformAPIClient").Options} - Options
617
- * @returns {Promise<FileStoragePlatformModel.PdfTypeByIdDetails>} - Success response
618
- * @name fetchPdfTypeById
619
- * @summary: Get the pdf types of by id
620
- * @description: Get the pdf types of PDF formats for filter - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/fetchPdfTypeById/).
621
- */
622
- async fetchPdfTypeById(
623
- { id, requestHeaders } = { requestHeaders: {} },
624
- { responseHeaders } = { responseHeaders: false }
625
- ) {
626
- const {
627
- error,
628
- } = FileStoragePlatformApplicationValidator.fetchPdfTypeById().validate(
629
- {
630
- id,
631
- },
632
- { abortEarly: false, allowUnknown: true }
633
- );
634
- if (error) {
635
- return Promise.reject(new FDKClientValidationError(error));
636
- }
637
-
638
- // Showing warrnings if extra unknown parameters are found
639
- const {
640
- error: warrning,
641
- } = FileStoragePlatformApplicationValidator.fetchPdfTypeById().validate(
642
- {
643
- id,
644
- },
645
- { abortEarly: false, allowUnknown: false }
646
- );
647
- if (warrning) {
648
- Logger({
649
- level: "WARN",
650
- message: `Parameter Validation warrnings for platform > FileStorage > fetchPdfTypeById \n ${warrning}`,
651
- });
652
- }
653
-
654
- const query_params = {};
655
-
656
- const response = await PlatformAPIClient.execute(
657
- this.config,
658
- "get",
659
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/types/${id}`,
660
- query_params,
661
- undefined,
662
- requestHeaders,
663
- { responseHeaders }
664
- );
665
-
666
- let responseData = response;
667
- if (responseHeaders) {
668
- responseData = response[0];
669
- }
670
-
671
- const {
672
- error: res_error,
673
- } = FileStoragePlatformModel.PdfTypeByIdDetails().validate(responseData, {
674
- abortEarly: false,
675
- allowUnknown: true,
676
- });
677
-
678
- if (res_error) {
679
- if (this.config.options.strictResponseCheck === true) {
680
- return Promise.reject(new FDKResponseValidationError(res_error));
681
- } else {
682
- Logger({
683
- level: "WARN",
684
- message: `Response Validation Warnings for platform > FileStorage > fetchPdfTypeById \n ${res_error}`,
685
- });
686
- }
687
- }
688
-
689
- return response;
690
- }
691
-
692
450
  /**
693
451
  * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
694
452
  * - Arg object
@@ -697,7 +455,7 @@ class FileStorage {
697
455
  * @param {import("../PlatformAPIClient").Options} - Options
698
456
  * @returns {Promise<Object>} - Success response
699
457
  * @name generatePaymentReceipt
700
- * @summary: Generate payment receipt.
458
+ * @summary: Generate payment receipt
701
459
  * @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/).
702
460
  */
703
461
  async generatePaymentReceipt(
@@ -769,25 +527,28 @@ class FileStorage {
769
527
  }
770
528
 
771
529
  /**
772
- * @param {FileStoragePlatformApplicationValidator.GetConfigHtmlTemplateByIdParam} arg
530
+ * @param {FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam} arg
773
531
  * - Arg object
774
532
  *
775
533
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
776
534
  * @param {import("../PlatformAPIClient").Options} - Options
777
- * @returns {Promise<Object>} - Success response
778
- * @name getConfigHtmlTemplateById
779
- * @summary: Update html template for invoice or label
780
- * @description: Update html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getConfigHtmlTemplateById/).
535
+ * @returns {Promise<FileStoragePlatformModel.PdfConfigSuccess>} - Success response
536
+ * @name getDefaultHtmlTemplate
537
+ * @summary: Get html template for Application
538
+ * @description: Get the saved html template for provided sales channel
539
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/).
781
540
  */
782
- async getConfigHtmlTemplateById(
783
- { id, requestHeaders } = { requestHeaders: {} },
541
+ async getDefaultHtmlTemplate(
542
+ { pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
784
543
  { responseHeaders } = { responseHeaders: false }
785
544
  ) {
786
545
  const {
787
546
  error,
788
- } = FileStoragePlatformApplicationValidator.getConfigHtmlTemplateById().validate(
547
+ } = FileStoragePlatformApplicationValidator.getDefaultHtmlTemplate().validate(
789
548
  {
790
- id,
549
+ pdfTypeId,
550
+ format,
551
+ countryCode,
791
552
  },
792
553
  { abortEarly: false, allowUnknown: true }
793
554
  );
@@ -798,25 +559,30 @@ class FileStorage {
798
559
  // Showing warrnings if extra unknown parameters are found
799
560
  const {
800
561
  error: warrning,
801
- } = FileStoragePlatformApplicationValidator.getConfigHtmlTemplateById().validate(
562
+ } = FileStoragePlatformApplicationValidator.getDefaultHtmlTemplate().validate(
802
563
  {
803
- id,
564
+ pdfTypeId,
565
+ format,
566
+ countryCode,
804
567
  },
805
568
  { abortEarly: false, allowUnknown: false }
806
569
  );
807
570
  if (warrning) {
808
571
  Logger({
809
572
  level: "WARN",
810
- message: `Parameter Validation warrnings for platform > FileStorage > getConfigHtmlTemplateById \n ${warrning}`,
573
+ message: `Parameter Validation warrnings for platform > FileStorage > getDefaultHtmlTemplate \n ${warrning}`,
811
574
  });
812
575
  }
813
576
 
814
577
  const query_params = {};
578
+ query_params["pdf_type_id"] = pdfTypeId;
579
+ query_params["format"] = format;
580
+ query_params["country_code"] = countryCode;
815
581
 
816
582
  const response = await PlatformAPIClient.execute(
817
583
  this.config,
818
584
  "get",
819
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config/${id}`,
585
+ `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`,
820
586
  query_params,
821
587
  undefined,
822
588
  requestHeaders,
@@ -828,7 +594,9 @@ class FileStorage {
828
594
  responseData = response[0];
829
595
  }
830
596
 
831
- const { error: res_error } = Joi.any().validate(responseData, {
597
+ const {
598
+ error: res_error,
599
+ } = FileStoragePlatformModel.PdfConfigSuccess().validate(responseData, {
832
600
  abortEarly: false,
833
601
  allowUnknown: true,
834
602
  });
@@ -839,7 +607,7 @@ class FileStorage {
839
607
  } else {
840
608
  Logger({
841
609
  level: "WARN",
842
- message: `Response Validation Warnings for platform > FileStorage > getConfigHtmlTemplateById \n ${res_error}`,
610
+ message: `Response Validation Warnings for platform > FileStorage > getDefaultHtmlTemplate \n ${res_error}`,
843
611
  });
844
612
  }
845
613
  }
@@ -853,10 +621,11 @@ class FileStorage {
853
621
  *
854
622
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
855
623
  * @param {import("../PlatformAPIClient").Options} - Options
856
- * @returns {Promise<FileStoragePlatformModel.PdfDataItemsDetails>} - Success response
624
+ * @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
625
+ * Success response
857
626
  * @name getDefaultPdfData
858
- * @summary: Get default PDF data.
859
- * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
627
+ * @summary: Get default PDF data
628
+ * @description: Retrieve default pdf payload data for invoice generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
860
629
  */
861
630
  async getDefaultPdfData(
862
631
  { pdfTypeId, countryCode, requestHeaders } = { requestHeaders: {} },
@@ -913,10 +682,10 @@ class FileStorage {
913
682
 
914
683
  const {
915
684
  error: res_error,
916
- } = FileStoragePlatformModel.PdfDataItemsDetails().validate(responseData, {
917
- abortEarly: false,
918
- allowUnknown: true,
919
- });
685
+ } = FileStoragePlatformModel.DummyTemplateDataItems().validate(
686
+ responseData,
687
+ { abortEarly: false, allowUnknown: true }
688
+ );
920
689
 
921
690
  if (res_error) {
922
691
  if (this.config.options.strictResponseCheck === true) {
@@ -941,8 +710,8 @@ class FileStorage {
941
710
  * @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>} -
942
711
  * Success response
943
712
  * @name getDefaultPdfTemplate
944
- * @summary: Get default PDF template.
945
- * @description: Retrieve the default PDF template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
713
+ * @summary: Get default PDF template
714
+ * @description: Retrieve to get the default Invoice template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
946
715
  */
947
716
  async getDefaultPdfTemplate(
948
717
  { pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
@@ -1021,193 +790,24 @@ class FileStorage {
1021
790
  return response;
1022
791
  }
1023
792
 
1024
- /**
1025
- * @param {FileStoragePlatformApplicationValidator.GetHtmlTemplateConfigParam} arg
1026
- * - Arg object
1027
- *
1028
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1029
- * @param {import("../PlatformAPIClient").Options} - Options
1030
- * @returns {Promise<FileStoragePlatformModel.PdfConfigSuccess>} - Success response
1031
- * @name getHtmlTemplateConfig
1032
- * @summary: Get html template for sales channel
1033
- * @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getHtmlTemplateConfig/).
1034
- */
1035
- async getHtmlTemplateConfig(
1036
- { pdfTypeId, format, countryCode, requestHeaders } = { requestHeaders: {} },
1037
- { responseHeaders } = { responseHeaders: false }
1038
- ) {
1039
- const {
1040
- error,
1041
- } = FileStoragePlatformApplicationValidator.getHtmlTemplateConfig().validate(
1042
- {
1043
- pdfTypeId,
1044
- format,
1045
- countryCode,
1046
- },
1047
- { abortEarly: false, allowUnknown: true }
1048
- );
1049
- if (error) {
1050
- return Promise.reject(new FDKClientValidationError(error));
1051
- }
1052
-
1053
- // Showing warrnings if extra unknown parameters are found
1054
- const {
1055
- error: warrning,
1056
- } = FileStoragePlatformApplicationValidator.getHtmlTemplateConfig().validate(
1057
- {
1058
- pdfTypeId,
1059
- format,
1060
- countryCode,
1061
- },
1062
- { abortEarly: false, allowUnknown: false }
1063
- );
1064
- if (warrning) {
1065
- Logger({
1066
- level: "WARN",
1067
- message: `Parameter Validation warrnings for platform > FileStorage > getHtmlTemplateConfig \n ${warrning}`,
1068
- });
1069
- }
1070
-
1071
- const query_params = {};
1072
- query_params["pdf_type_id"] = pdfTypeId;
1073
- query_params["format"] = format;
1074
- query_params["country_code"] = countryCode;
1075
-
1076
- const response = await PlatformAPIClient.execute(
1077
- this.config,
1078
- "get",
1079
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config`,
1080
- query_params,
1081
- undefined,
1082
- requestHeaders,
1083
- { responseHeaders }
1084
- );
1085
-
1086
- let responseData = response;
1087
- if (responseHeaders) {
1088
- responseData = response[0];
1089
- }
1090
-
1091
- const {
1092
- error: res_error,
1093
- } = FileStoragePlatformModel.PdfConfigSuccess().validate(responseData, {
1094
- abortEarly: false,
1095
- allowUnknown: true,
1096
- });
1097
-
1098
- if (res_error) {
1099
- if (this.config.options.strictResponseCheck === true) {
1100
- return Promise.reject(new FDKResponseValidationError(res_error));
1101
- } else {
1102
- Logger({
1103
- level: "WARN",
1104
- message: `Response Validation Warnings for platform > FileStorage > getHtmlTemplateConfig \n ${res_error}`,
1105
- });
1106
- }
1107
- }
1108
-
1109
- return response;
1110
- }
1111
-
1112
- /**
1113
- * @param {FileStoragePlatformApplicationValidator.GetPdfPayloadByIdParam} arg
1114
- * - Arg object
1115
- *
1116
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1117
- * @param {import("../PlatformAPIClient").Options} - Options
1118
- * @returns {Promise<FileStoragePlatformModel.MapperDetails>} - Success response
1119
- * @name getPdfPayloadById
1120
- * @summary: Get default PDF data.
1121
- * @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfPayloadById/).
1122
- */
1123
- async getPdfPayloadById(
1124
- { id, requestHeaders } = { requestHeaders: {} },
1125
- { responseHeaders } = { responseHeaders: false }
1126
- ) {
1127
- const {
1128
- error,
1129
- } = FileStoragePlatformApplicationValidator.getPdfPayloadById().validate(
1130
- {
1131
- id,
1132
- },
1133
- { abortEarly: false, allowUnknown: true }
1134
- );
1135
- if (error) {
1136
- return Promise.reject(new FDKClientValidationError(error));
1137
- }
1138
-
1139
- // Showing warrnings if extra unknown parameters are found
1140
- const {
1141
- error: warrning,
1142
- } = FileStoragePlatformApplicationValidator.getPdfPayloadById().validate(
1143
- {
1144
- id,
1145
- },
1146
- { abortEarly: false, allowUnknown: false }
1147
- );
1148
- if (warrning) {
1149
- Logger({
1150
- level: "WARN",
1151
- message: `Parameter Validation warrnings for platform > FileStorage > getPdfPayloadById \n ${warrning}`,
1152
- });
1153
- }
1154
-
1155
- const query_params = {};
1156
-
1157
- const response = await PlatformAPIClient.execute(
1158
- this.config,
1159
- "get",
1160
- `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/mapper/${id}`,
1161
- query_params,
1162
- undefined,
1163
- requestHeaders,
1164
- { responseHeaders }
1165
- );
1166
-
1167
- let responseData = response;
1168
- if (responseHeaders) {
1169
- responseData = response[0];
1170
- }
1171
-
1172
- const {
1173
- error: res_error,
1174
- } = FileStoragePlatformModel.MapperDetails().validate(responseData, {
1175
- abortEarly: false,
1176
- allowUnknown: true,
1177
- });
1178
-
1179
- if (res_error) {
1180
- if (this.config.options.strictResponseCheck === true) {
1181
- return Promise.reject(new FDKResponseValidationError(res_error));
1182
- } else {
1183
- Logger({
1184
- level: "WARN",
1185
- message: `Response Validation Warnings for platform > FileStorage > getPdfPayloadById \n ${res_error}`,
1186
- });
1187
- }
1188
- }
1189
-
1190
- return response;
1191
- }
1192
-
1193
793
  /**
1194
794
  * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
1195
795
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1196
796
  * @param {import("../PlatformAPIClient").Options} - Options
1197
- * @returns {Promise<FileStoragePlatformModel.InvoiceTypes>} - Success response
797
+ * @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
798
+ * Success response
1198
799
  * @name getPdfTypes
1199
- * @summary: Get all the supported invoice pdf types
1200
- * @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/).
800
+ * @summary: Get PDF types
801
+ * @description: Retrieve a list of available invoice types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
1201
802
  */
1202
803
  async getPdfTypes(
1203
- { storeOs, countryCode, requestHeaders } = { requestHeaders: {} },
804
+ { countryCode, requestHeaders } = { requestHeaders: {} },
1204
805
  { responseHeaders } = { responseHeaders: false }
1205
806
  ) {
1206
807
  const {
1207
808
  error,
1208
809
  } = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
1209
810
  {
1210
- storeOs,
1211
811
  countryCode,
1212
812
  },
1213
813
  { abortEarly: false, allowUnknown: true }
@@ -1221,7 +821,6 @@ class FileStorage {
1221
821
  error: warrning,
1222
822
  } = FileStoragePlatformApplicationValidator.getPdfTypes().validate(
1223
823
  {
1224
- storeOs,
1225
824
  countryCode,
1226
825
  },
1227
826
  { abortEarly: false, allowUnknown: false }
@@ -1235,7 +834,6 @@ class FileStorage {
1235
834
 
1236
835
  const query_params = {};
1237
836
  query_params["country_code"] = countryCode;
1238
- query_params["store_os"] = storeOs;
1239
837
 
1240
838
  const response = await PlatformAPIClient.execute(
1241
839
  this.config,
@@ -1254,7 +852,7 @@ class FileStorage {
1254
852
 
1255
853
  const {
1256
854
  error: res_error,
1257
- } = FileStoragePlatformModel.InvoiceTypes().validate(responseData, {
855
+ } = FileStoragePlatformModel.InvoiceTypesResponse().validate(responseData, {
1258
856
  abortEarly: false,
1259
857
  allowUnknown: true,
1260
858
  });
@@ -1282,8 +880,8 @@ class FileStorage {
1282
880
  * @returns {Promise<FileStoragePlatformModel.PdfConfigSaveSuccess>} -
1283
881
  * Success response
1284
882
  * @name saveHtmlTemplate
1285
- * @summary: Save HTML template.
1286
- * @description: Store an HTML template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/).
883
+ * @summary: Save PDF template
884
+ * @description: Save html template for provided sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/).
1287
885
  */
1288
886
  async saveHtmlTemplate(
1289
887
  { body, requestHeaders } = { requestHeaders: {} },