@gofynd/fdk-client-javascript 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
  28. package/sdk/application/Content/ContentApplicationModel.js +83 -32
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
  75. package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  93. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  94. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  95. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  96. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  97. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  98. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  99. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  100. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  101. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  102. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  103. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  104. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  105. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  106. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  107. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  108. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  109. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  110. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  111. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  112. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  113. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  114. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  115. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  116. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  117. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  118. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  119. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  120. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  121. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  122. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  129. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  130. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  131. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  132. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  133. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  134. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  135. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  136. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  137. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  138. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  139. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  140. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
  142. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
  143. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
  145. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
  146. package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
  147. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
  148. package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
  149. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  150. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  151. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  152. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  153. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  154. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  161. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  167. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  171. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  173. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  175. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  177. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  179. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  181. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  182. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  183. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  184. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  185. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  186. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  187. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  188. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  189. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  190. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  191. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  192. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  194. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  195. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  198. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  199. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  200. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  201. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  202. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
  212. package/sdk/platform/Order/OrderPlatformClient.js +589 -229
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
  214. package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
  216. package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  231. package/sdk/platform/PlatformClient.d.ts +0 -2
  232. package/sdk/platform/PlatformClient.js +0 -4
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  252. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  258. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  271. package/sdk/platform/index.d.ts +0 -1
  272. package/sdk/platform/index.js +0 -2
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  278. package/sdk/public/Content/ContentPublicClient.js +791 -5
  279. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  280. package/sdk/public/Content/ContentPublicModel.js +649 -3
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  282. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  290. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  291. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  292. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  293. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  294. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,13 +1,96 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef ProxyResponse
5
- * @property {Object} [data]
6
- * @property {Object} [support]
4
+ * @typedef UpdatePdfType
5
+ * @property {number} [pdf_type_id]
6
+ * @property {string} [name]
7
+ * @property {string[]} [format]
8
+ * @property {boolean} [visibility]
9
+ * @property {Object} [schema]
10
+ * @property {boolean} [store_os]
11
+ * @property {string} [country_code]
12
+ */
13
+
14
+ /**
15
+ * @typedef PdfTypeByIdDetails
16
+ * @property {boolean} [store_os]
17
+ * @property {string} [country_code]
18
+ * @property {number} [pdf_type_id]
19
+ * @property {number} [__v]
20
+ * @property {string} [_id]
21
+ * @property {string[]} [format]
22
+ * @property {string} [name]
23
+ * @property {boolean} [visibility]
24
+ */
25
+
26
+ /**
27
+ * @typedef PdfConfigurationData
28
+ * @property {string} [_id]
29
+ * @property {number} [pdf_type_id]
30
+ * @property {string} [format]
31
+ * @property {string} [template]
32
+ * @property {string} [country_code]
33
+ * @property {number} [__v]
34
+ */
35
+
36
+ /**
37
+ * @typedef UpdatedDefaultTemplateById
38
+ * @property {PdfConfigurationData} [data]
39
+ * @property {boolean} [success]
40
+ */
41
+
42
+ /**
43
+ * @typedef UpdateTemplate
44
+ * @property {number} [pdf_type_id]
45
+ * @property {string} [format] - This is invoice document format such as A4, A6, POS, A5
46
+ * @property {string} [country_code] - This is iso code of a country
47
+ * @property {string} [template] - This is html template string
48
+ * @property {boolean} [store_os] - This flag is to identify store-os
49
+ */
50
+
51
+ /**
52
+ * @typedef PdfDefaultTemplateById
53
+ * @property {string} [_id] - The ID of the PDF default template
54
+ * @property {string} [country_code] - The country code associated with the template
55
+ * @property {string} [format] - The format of the template (e.g., "A4")
56
+ * @property {number} [pdf_type_id] - The ID of the PDF type
57
+ * @property {number} [__v] - Version number
58
+ * @property {string} [template] - The HTML template content
7
59
  */
8
60
 
9
61
  /**
10
- * @typedef FailedResponse
62
+ * @typedef PdfTemplateCreateSuccess
63
+ * @property {number} [code]
64
+ * @property {boolean} [success]
65
+ * @property {PdfTemplateCreateSuccessData} [data]
66
+ */
67
+
68
+ /**
69
+ * @typedef PdfTemplateCreateSuccessData
70
+ * @property {string} [_id]
71
+ * @property {number} [pdf_type_id]
72
+ * @property {string} [format]
73
+ * @property {string} [template]
74
+ * @property {string} [country_code]
75
+ * @property {number} [__v]
76
+ */
77
+
78
+ /**
79
+ * @typedef CreateTemplate
80
+ * @property {number} pdf_type_id
81
+ * @property {string} format - This is invoice document format such as A4, A6, POS, A5
82
+ * @property {string} country_code - This is iso code of a country
83
+ * @property {string} [template] - This is html template string
84
+ */
85
+
86
+ /**
87
+ * @typedef PdfDefaultTemplateSuccess
88
+ * @property {Document[]} [data]
89
+ * @property {boolean} [success] - Indicates if the request was successful.
90
+ */
91
+
92
+ /**
93
+ * @typedef FailedBrowseFilesResult
11
94
  * @property {string} message
12
95
  */
13
96
 
@@ -25,7 +108,7 @@ const Joi = require("joi");
25
108
  */
26
109
 
27
110
  /**
28
- * @typedef StartResponse
111
+ * @typedef FileUpload
29
112
  * @property {string} file_name
30
113
  * @property {string} file_path
31
114
  * @property {string} content_type
@@ -34,17 +117,11 @@ const Joi = require("joi");
34
117
  * @property {string} operation
35
118
  * @property {number} size
36
119
  * @property {Upload} upload
37
- * @property {CDN} cdn
38
120
  * @property {string[]} [tags]
39
121
  */
40
122
 
41
123
  /**
42
- * @typedef Params
43
- * @property {string} [subpath] - The subpath for the file.
44
- */
45
-
46
- /**
47
- * @typedef StartRequest
124
+ * @typedef FileUploadStart
48
125
  * @property {string} file_name
49
126
  * @property {string} content_type
50
127
  * @property {number} size
@@ -58,7 +135,7 @@ const Joi = require("joi");
58
135
  */
59
136
 
60
137
  /**
61
- * @typedef CompleteResponse
138
+ * @typedef FileUploadComplete
62
139
  * @property {string} _id
63
140
  * @property {string} file_name
64
141
  * @property {string} file_path
@@ -76,6 +153,12 @@ const Joi = require("joi");
76
153
  * @property {CreatedBy} [created_by]
77
154
  */
78
155
 
156
+ /**
157
+ * @typedef ProxyFileAccess
158
+ * @property {Object} [data]
159
+ * @property {Object} [support]
160
+ */
161
+
79
162
  /**
80
163
  * @typedef DestinationNamespace
81
164
  * @property {string} [namespace]
@@ -95,18 +178,18 @@ const Joi = require("joi");
95
178
  */
96
179
 
97
180
  /**
98
- * @typedef SignUrlResponse
181
+ * @typedef SignUrlResult
99
182
  * @property {Urls[]} urls
100
183
  */
101
184
 
102
185
  /**
103
- * @typedef SignUrlRequest
186
+ * @typedef SignUrl
104
187
  * @property {number} expiry
105
188
  * @property {string[]} urls
106
189
  */
107
190
 
108
191
  /**
109
- * @typedef InvoiceTypesDataResponse
192
+ * @typedef InvoiceTypesData
110
193
  * @property {boolean} [status]
111
194
  * @property {string} _id
112
195
  * @property {number} pdf_type_id
@@ -114,12 +197,13 @@ const Joi = require("joi");
114
197
  * @property {string[]} format
115
198
  * @property {number} __v
116
199
  * @property {boolean} visibility
200
+ * @property {boolean} store_os
117
201
  * @property {string} country_code
118
202
  */
119
203
 
120
204
  /**
121
- * @typedef InvoiceTypesResponse
122
- * @property {InvoiceTypesDataResponse[]} data
205
+ * @typedef InvoiceTypes
206
+ * @property {InvoiceTypesData[]} data
123
207
  * @property {boolean} success
124
208
  */
125
209
 
@@ -432,7 +516,7 @@ const Joi = require("joi");
432
516
  */
433
517
 
434
518
  /**
435
- * @typedef DummyTemplateDataPayload
519
+ * @typedef PdfPayloadDetails
436
520
  * @property {boolean} [is_export]
437
521
  * @property {boolean} [is_export_shipment]
438
522
  * @property {string} [app_domain_name]
@@ -466,8 +550,6 @@ const Joi = require("joi");
466
550
  * @property {boolean} [is_self_ship]
467
551
  * @property {string} [mode]
468
552
  * @property {boolean} [is_self_pickup]
469
- * @property {Object} [shipment_meta] - This field represents the shipment meta details
470
- * @property {Object} [order_meta] - This field represents the order meta details
471
553
  * @property {string} [platform_name]
472
554
  * @property {number} [amount_to_be_collected]
473
555
  * @property {number} [amount_paid]
@@ -487,13 +569,29 @@ const Joi = require("joi");
487
569
  * @property {string} [_id] - This field contains the unique identifier for the
488
570
  * PDF payload.
489
571
  * @property {number} [pdf_type_id] - This is invoice unique id
490
- * @property {DummyTemplateDataPayload} payload
572
+ * @property {PdfPayloadDetails} payload
491
573
  * @property {string} [country_code] - This field represents the country code.
574
+ * @property {number} [__v]
575
+ */
576
+
577
+ /**
578
+ * @typedef savePdfPayload
579
+ * @property {number} [pdf_type_id]
580
+ * @property {PdfPayloadDetails} [payload]
581
+ * @property {string} [country_code]
582
+ */
583
+
584
+ /**
585
+ * @typedef MapperDetails
586
+ * @property {string} [_id]
587
+ * @property {number} [pdf_type_id]
588
+ * @property {PdfPayloadDetails} [payload]
589
+ * @property {string} [country_code]
492
590
  * @property {number} [__v] - This field holds the version number.
493
591
  */
494
592
 
495
593
  /**
496
- * @typedef DummyTemplateDataItems
594
+ * @typedef PdfDataItemsDetails
497
595
  * @property {DummyTemplateData[]} data
498
596
  * @property {boolean} success
499
597
  */
@@ -501,22 +599,37 @@ const Joi = require("joi");
501
599
  /**
502
600
  * @typedef PdfConfig
503
601
  * @property {string} [format] - This is invoice document format such as A4, A6, POS
504
- * @property {string} [template] - This is html template string
505
- * @property {number} [pdf_type_id]
602
+ * @property {string} [template] - This is html template string.
603
+ * @property {number} [pdf_type_id] - This field holds an identifier for the type of PDF.
604
+ * @property {string} [country_code] - This field contains the country code.
605
+ * @property {boolean} [default_template] - This field indicates whether the
606
+ * fetched HTML template is the default template.
506
607
  */
507
608
 
508
609
  /**
509
610
  * @typedef PdfConfigSuccessData
510
- * @property {string} [_id]
511
- * @property {number} [company_id]
512
- * @property {string} [application_id]
513
- * @property {number} [pdf_type_id]
514
- * @property {string} [format]
515
- * @property {string} [template]
516
- * @property {number} [__v]
611
+ * @property {string} [_id] - This field contains the unique identifier for the
612
+ * PDF configuration.
613
+ * @property {number} [company_id] - This field holds the identifier for the
614
+ * company associated with the PDF configuration.
615
+ * @property {string} [application_id] - This field contains the identifier for
616
+ * the application that uses this PDF configuration.
617
+ * @property {number} [pdf_type_id] - This field holds an identifier for the type of PDF.
618
+ * @property {string} [format] - This field specifies the format of the invoice document.
619
+ * @property {string} [template] - This field contains the HTML template string
620
+ * for the PDF document.
621
+ * @property {number} [__v] - This field holds the version number of the PDF
622
+ * configuration document.
517
623
  * @property {string} [country_code]
518
624
  */
519
625
 
626
+ /**
627
+ * @typedef DeleteMapperById
628
+ * @property {string} [message] - This field represents the country code.
629
+ * @property {boolean} [default_template] - This field indicates whether the
630
+ * HTML template is the default template.
631
+ */
632
+
520
633
  /**
521
634
  * @typedef PdfConfigSuccess
522
635
  * @property {PdfConfigSuccessData[]} [data]
@@ -540,12 +653,6 @@ const Joi = require("joi");
540
653
  * @property {boolean} [success]
541
654
  */
542
655
 
543
- /**
544
- * @typedef PdfDefaultTemplateSuccess
545
- * @property {Document[]} [data]
546
- * @property {boolean} [success] - Indicates if the request was successful.
547
- */
548
-
549
656
  /**
550
657
  * @typedef Document
551
658
  * @property {string} [_id]
@@ -636,16 +743,117 @@ const Joi = require("joi");
636
743
  */
637
744
 
638
745
  class FileStoragePlatformModel {
639
- /** @returns {ProxyResponse} */
640
- static ProxyResponse() {
746
+ /** @returns {UpdatePdfType} */
747
+ static UpdatePdfType() {
641
748
  return Joi.object({
642
- data: Joi.object().pattern(/\S/, Joi.any()),
643
- support: Joi.object().pattern(/\S/, Joi.any()),
749
+ pdf_type_id: Joi.number(),
750
+ name: Joi.string().allow(""),
751
+ format: Joi.array().items(Joi.string().allow("")),
752
+ visibility: Joi.boolean(),
753
+ schema: Joi.object().pattern(/\S/, Joi.any()),
754
+ store_os: Joi.boolean(),
755
+ country_code: Joi.string().allow(""),
644
756
  });
645
757
  }
646
758
 
647
- /** @returns {FailedResponse} */
648
- static FailedResponse() {
759
+ /** @returns {PdfTypeByIdDetails} */
760
+ static PdfTypeByIdDetails() {
761
+ return Joi.object({
762
+ store_os: Joi.boolean(),
763
+ country_code: Joi.string().allow(""),
764
+ pdf_type_id: Joi.number(),
765
+ __v: Joi.number(),
766
+ _id: Joi.string().allow(""),
767
+ format: Joi.array().items(Joi.string().allow("")),
768
+ name: Joi.string().allow(""),
769
+ visibility: Joi.boolean(),
770
+ });
771
+ }
772
+
773
+ /** @returns {PdfConfigurationData} */
774
+ static PdfConfigurationData() {
775
+ return Joi.object({
776
+ _id: Joi.string().allow(""),
777
+ pdf_type_id: Joi.number(),
778
+ format: Joi.string().allow(""),
779
+ template: Joi.string().allow(""),
780
+ country_code: Joi.string().allow(""),
781
+ __v: Joi.number(),
782
+ });
783
+ }
784
+
785
+ /** @returns {UpdatedDefaultTemplateById} */
786
+ static UpdatedDefaultTemplateById() {
787
+ return Joi.object({
788
+ data: FileStoragePlatformModel.PdfConfigurationData(),
789
+ success: Joi.boolean(),
790
+ });
791
+ }
792
+
793
+ /** @returns {UpdateTemplate} */
794
+ static UpdateTemplate() {
795
+ return Joi.object({
796
+ pdf_type_id: Joi.number(),
797
+ format: Joi.string().allow(""),
798
+ country_code: Joi.string().allow(""),
799
+ template: Joi.string().allow(""),
800
+ store_os: Joi.boolean(),
801
+ });
802
+ }
803
+
804
+ /** @returns {PdfDefaultTemplateById} */
805
+ static PdfDefaultTemplateById() {
806
+ return Joi.object({
807
+ _id: Joi.string().allow(""),
808
+ country_code: Joi.string().allow(""),
809
+ format: Joi.string().allow(""),
810
+ pdf_type_id: Joi.number(),
811
+ __v: Joi.number(),
812
+ template: Joi.string().allow(""),
813
+ });
814
+ }
815
+
816
+ /** @returns {PdfTemplateCreateSuccess} */
817
+ static PdfTemplateCreateSuccess() {
818
+ return Joi.object({
819
+ code: Joi.number(),
820
+ success: Joi.boolean(),
821
+ data: FileStoragePlatformModel.PdfTemplateCreateSuccessData(),
822
+ });
823
+ }
824
+
825
+ /** @returns {PdfTemplateCreateSuccessData} */
826
+ static PdfTemplateCreateSuccessData() {
827
+ return Joi.object({
828
+ _id: Joi.string().allow(""),
829
+ pdf_type_id: Joi.number(),
830
+ format: Joi.string().allow(""),
831
+ template: Joi.string().allow(""),
832
+ country_code: Joi.string().allow(""),
833
+ __v: Joi.number(),
834
+ });
835
+ }
836
+
837
+ /** @returns {CreateTemplate} */
838
+ static CreateTemplate() {
839
+ return Joi.object({
840
+ pdf_type_id: Joi.number().required(),
841
+ format: Joi.string().allow("").required(),
842
+ country_code: Joi.string().allow("").required(),
843
+ template: Joi.string().allow(""),
844
+ });
845
+ }
846
+
847
+ /** @returns {PdfDefaultTemplateSuccess} */
848
+ static PdfDefaultTemplateSuccess() {
849
+ return Joi.object({
850
+ data: Joi.array().items(FileStoragePlatformModel.Document()),
851
+ success: Joi.boolean(),
852
+ });
853
+ }
854
+
855
+ /** @returns {FailedBrowseFilesResult} */
856
+ static FailedBrowseFilesResult() {
649
857
  return Joi.object({
650
858
  message: Joi.string().allow("").required(),
651
859
  });
@@ -668,8 +876,8 @@ class FileStoragePlatformModel {
668
876
  });
669
877
  }
670
878
 
671
- /** @returns {StartResponse} */
672
- static StartResponse() {
879
+ /** @returns {FileUpload} */
880
+ static FileUpload() {
673
881
  return Joi.object({
674
882
  file_name: Joi.string().allow("").required(),
675
883
  file_path: Joi.string().allow("").required(),
@@ -679,20 +887,12 @@ class FileStoragePlatformModel {
679
887
  operation: Joi.string().allow("").required(),
680
888
  size: Joi.number().required(),
681
889
  upload: FileStoragePlatformModel.Upload().required(),
682
- cdn: FileStoragePlatformModel.CDN().required(),
683
890
  tags: Joi.array().items(Joi.string().allow("")),
684
891
  });
685
892
  }
686
893
 
687
- /** @returns {Params} */
688
- static Params() {
689
- return Joi.object({
690
- subpath: Joi.string().allow(""),
691
- });
692
- }
693
-
694
- /** @returns {StartRequest} */
695
- static StartRequest() {
894
+ /** @returns {FileUploadStart} */
895
+ static FileUploadStart() {
696
896
  return Joi.object({
697
897
  file_name: Joi.string().allow("").required(),
698
898
  content_type: Joi.string().allow("").required(),
@@ -709,8 +909,8 @@ class FileStoragePlatformModel {
709
909
  });
710
910
  }
711
911
 
712
- /** @returns {CompleteResponse} */
713
- static CompleteResponse() {
912
+ /** @returns {FileUploadComplete} */
913
+ static FileUploadComplete() {
714
914
  return Joi.object({
715
915
  _id: Joi.string().allow("").required(),
716
916
  file_name: Joi.string().allow("").required(),
@@ -730,6 +930,14 @@ class FileStoragePlatformModel {
730
930
  });
731
931
  }
732
932
 
933
+ /** @returns {ProxyFileAccess} */
934
+ static ProxyFileAccess() {
935
+ return Joi.object({
936
+ data: Joi.object().pattern(/\S/, Joi.any()),
937
+ support: Joi.object().pattern(/\S/, Joi.any()),
938
+ });
939
+ }
940
+
733
941
  /** @returns {DestinationNamespace} */
734
942
  static DestinationNamespace() {
735
943
  return Joi.object({
@@ -754,23 +962,23 @@ class FileStoragePlatformModel {
754
962
  });
755
963
  }
756
964
 
757
- /** @returns {SignUrlResponse} */
758
- static SignUrlResponse() {
965
+ /** @returns {SignUrlResult} */
966
+ static SignUrlResult() {
759
967
  return Joi.object({
760
968
  urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
761
969
  });
762
970
  }
763
971
 
764
- /** @returns {SignUrlRequest} */
765
- static SignUrlRequest() {
972
+ /** @returns {SignUrl} */
973
+ static SignUrl() {
766
974
  return Joi.object({
767
975
  expiry: Joi.number().required(),
768
976
  urls: Joi.array().items(Joi.string().allow("")).required(),
769
977
  });
770
978
  }
771
979
 
772
- /** @returns {InvoiceTypesDataResponse} */
773
- static InvoiceTypesDataResponse() {
980
+ /** @returns {InvoiceTypesData} */
981
+ static InvoiceTypesData() {
774
982
  return Joi.object({
775
983
  status: Joi.boolean(),
776
984
  _id: Joi.string().allow("").required(),
@@ -779,15 +987,16 @@ class FileStoragePlatformModel {
779
987
  format: Joi.array().items(Joi.string().allow("")).required(),
780
988
  __v: Joi.number().required(),
781
989
  visibility: Joi.boolean().required(),
990
+ store_os: Joi.boolean().required(),
782
991
  country_code: Joi.string().allow("").required(),
783
992
  });
784
993
  }
785
994
 
786
- /** @returns {InvoiceTypesResponse} */
787
- static InvoiceTypesResponse() {
995
+ /** @returns {InvoiceTypes} */
996
+ static InvoiceTypes() {
788
997
  return Joi.object({
789
998
  data: Joi.array()
790
- .items(FileStoragePlatformModel.InvoiceTypesDataResponse())
999
+ .items(FileStoragePlatformModel.InvoiceTypesData())
791
1000
  .required(),
792
1001
  success: Joi.boolean().required(),
793
1002
  });
@@ -1158,8 +1367,8 @@ class FileStoragePlatformModel {
1158
1367
  });
1159
1368
  }
1160
1369
 
1161
- /** @returns {DummyTemplateDataPayload} */
1162
- static DummyTemplateDataPayload() {
1370
+ /** @returns {PdfPayloadDetails} */
1371
+ static PdfPayloadDetails() {
1163
1372
  return Joi.object({
1164
1373
  is_export: Joi.boolean(),
1165
1374
  is_export_shipment: Joi.boolean(),
@@ -1194,8 +1403,6 @@ class FileStoragePlatformModel {
1194
1403
  is_self_ship: Joi.boolean(),
1195
1404
  mode: Joi.string().allow(""),
1196
1405
  is_self_pickup: Joi.boolean(),
1197
- shipment_meta: Joi.object().pattern(/\S/, Joi.any()),
1198
- order_meta: Joi.object().pattern(/\S/, Joi.any()),
1199
1406
  platform_name: Joi.string().allow(""),
1200
1407
  amount_to_be_collected: Joi.number(),
1201
1408
  amount_paid: Joi.number(),
@@ -1216,14 +1423,34 @@ class FileStoragePlatformModel {
1216
1423
  return Joi.object({
1217
1424
  _id: Joi.string().allow(""),
1218
1425
  pdf_type_id: Joi.number(),
1219
- payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
1426
+ payload: FileStoragePlatformModel.PdfPayloadDetails().required(),
1220
1427
  country_code: Joi.string().allow(""),
1221
1428
  __v: Joi.number(),
1222
1429
  });
1223
1430
  }
1224
1431
 
1225
- /** @returns {DummyTemplateDataItems} */
1226
- static DummyTemplateDataItems() {
1432
+ /** @returns {savePdfPayload} */
1433
+ static savePdfPayload() {
1434
+ return Joi.object({
1435
+ pdf_type_id: Joi.number(),
1436
+ payload: FileStoragePlatformModel.PdfPayloadDetails(),
1437
+ country_code: Joi.string().allow(""),
1438
+ });
1439
+ }
1440
+
1441
+ /** @returns {MapperDetails} */
1442
+ static MapperDetails() {
1443
+ return Joi.object({
1444
+ _id: Joi.string().allow(""),
1445
+ pdf_type_id: Joi.number(),
1446
+ payload: FileStoragePlatformModel.PdfPayloadDetails(),
1447
+ country_code: Joi.string().allow(""),
1448
+ __v: Joi.number(),
1449
+ });
1450
+ }
1451
+
1452
+ /** @returns {PdfDataItemsDetails} */
1453
+ static PdfDataItemsDetails() {
1227
1454
  return Joi.object({
1228
1455
  data: Joi.array()
1229
1456
  .items(FileStoragePlatformModel.DummyTemplateData())
@@ -1238,6 +1465,8 @@ class FileStoragePlatformModel {
1238
1465
  format: Joi.string().allow(""),
1239
1466
  template: Joi.string().allow(""),
1240
1467
  pdf_type_id: Joi.number(),
1468
+ country_code: Joi.string().allow(""),
1469
+ default_template: Joi.boolean(),
1241
1470
  });
1242
1471
  }
1243
1472
 
@@ -1255,6 +1484,14 @@ class FileStoragePlatformModel {
1255
1484
  });
1256
1485
  }
1257
1486
 
1487
+ /** @returns {DeleteMapperById} */
1488
+ static DeleteMapperById() {
1489
+ return Joi.object({
1490
+ message: Joi.string().allow(""),
1491
+ default_template: Joi.boolean(),
1492
+ });
1493
+ }
1494
+
1258
1495
  /** @returns {PdfConfigSuccess} */
1259
1496
  static PdfConfigSuccess() {
1260
1497
  return Joi.object({
@@ -1284,14 +1521,6 @@ class FileStoragePlatformModel {
1284
1521
  });
1285
1522
  }
1286
1523
 
1287
- /** @returns {PdfDefaultTemplateSuccess} */
1288
- static PdfDefaultTemplateSuccess() {
1289
- return Joi.object({
1290
- data: Joi.array().items(FileStoragePlatformModel.Document()),
1291
- success: Joi.boolean(),
1292
- });
1293
- }
1294
-
1295
1524
  /** @returns {Document} */
1296
1525
  static Document() {
1297
1526
  return Joi.object({
@@ -1385,7 +1614,7 @@ class FileStoragePlatformModel {
1385
1614
  return Joi.object({
1386
1615
  job_type: Joi.string().allow(""),
1387
1616
  action: Joi.string().allow(""),
1388
- event: Joi.any(),
1617
+ event: Joi.object().pattern(/\S/, Joi.any()),
1389
1618
  organizaton_id: Joi.string().allow(""),
1390
1619
  company_id: Joi.number(),
1391
1620
  application_id: Joi.array().items(Joi.string().allow("")),
@@ -1393,7 +1622,7 @@ class FileStoragePlatformModel {
1393
1622
  trace_id: Joi.array().items(Joi.string().allow("")),
1394
1623
  created_timestamp: Joi.number(),
1395
1624
  service: FileStoragePlatformModel.PaymentReceiptService(),
1396
- event_trace_info: Joi.any(),
1625
+ event_trace_info: Joi.object().pattern(/\S/, Joi.any()),
1397
1626
  trace: Joi.string().allow(""),
1398
1627
  });
1399
1628
  }
@@ -14,7 +14,7 @@ export = FileStoragePlatformValidator;
14
14
  * files(products, orders, logistics etc), Required for validating the data of
15
15
  * the file being uploaded, decides where exactly the file will be stored
16
16
  * inside the storage bucket.
17
- * @property {FileStoragePlatformModel.StartResponse} body
17
+ * @property {FileStoragePlatformModel.FileUpload} body
18
18
  */
19
19
  /**
20
20
  * @typedef CopyFilesParam
@@ -23,7 +23,7 @@ export = FileStoragePlatformValidator;
23
23
  */
24
24
  /**
25
25
  * @typedef GetSignUrlsParam
26
- * @property {FileStoragePlatformModel.SignUrlRequest} body
26
+ * @property {FileStoragePlatformModel.SignUrl} body
27
27
  */
28
28
  /**
29
29
  * @typedef ProxyParam
@@ -35,7 +35,7 @@ export = FileStoragePlatformValidator;
35
35
  * files(products, orders, logistics etc), Required for validating the data of
36
36
  * the file being uploaded, decides where exactly the file will be stored
37
37
  * inside the storage bucket.
38
- * @property {FileStoragePlatformModel.StartRequest} body
38
+ * @property {FileStoragePlatformModel.FileUploadStart} body
39
39
  */
40
40
  declare class FileStoragePlatformValidator {
41
41
  /** @returns {BrowseParam} */
@@ -79,14 +79,14 @@ type CompleteUploadParam = {
79
79
  * inside the storage bucket.
80
80
  */
81
81
  namespace: string;
82
- body: FileStoragePlatformModel.StartResponse;
82
+ body: FileStoragePlatformModel.FileUpload;
83
83
  };
84
84
  type CopyFilesParam = {
85
85
  sync?: boolean;
86
86
  body: FileStoragePlatformModel.CopyFiles;
87
87
  };
88
88
  type GetSignUrlsParam = {
89
- body: FileStoragePlatformModel.SignUrlRequest;
89
+ body: FileStoragePlatformModel.SignUrl;
90
90
  };
91
91
  type ProxyParam = {
92
92
  /**
@@ -102,6 +102,6 @@ type StartUploadParam = {
102
102
  * inside the storage bucket.
103
103
  */
104
104
  namespace: string;
105
- body: FileStoragePlatformModel.StartRequest;
105
+ body: FileStoragePlatformModel.FileUploadStart;
106
106
  };
107
107
  import FileStoragePlatformModel = require("./FileStoragePlatformModel");