@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
@@ -1,96 +1,13 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
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
59
- */
60
-
61
- /**
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.
4
+ * @typedef ProxyResponse
5
+ * @property {Object} [data]
6
+ * @property {Object} [support]
90
7
  */
91
8
 
92
9
  /**
93
- * @typedef FailedBrowseFilesResult
10
+ * @typedef FailedResponse
94
11
  * @property {string} message
95
12
  */
96
13
 
@@ -108,7 +25,7 @@ const Joi = require("joi");
108
25
  */
109
26
 
110
27
  /**
111
- * @typedef FileUpload
28
+ * @typedef StartResponse
112
29
  * @property {string} file_name
113
30
  * @property {string} file_path
114
31
  * @property {string} content_type
@@ -117,11 +34,17 @@ const Joi = require("joi");
117
34
  * @property {string} operation
118
35
  * @property {number} size
119
36
  * @property {Upload} upload
37
+ * @property {CDN} cdn
120
38
  * @property {string[]} [tags]
121
39
  */
122
40
 
123
41
  /**
124
- * @typedef FileUploadStart
42
+ * @typedef Params
43
+ * @property {string} [subpath] - The subpath for the file.
44
+ */
45
+
46
+ /**
47
+ * @typedef StartRequest
125
48
  * @property {string} file_name
126
49
  * @property {string} content_type
127
50
  * @property {number} size
@@ -135,7 +58,7 @@ const Joi = require("joi");
135
58
  */
136
59
 
137
60
  /**
138
- * @typedef FileUploadComplete
61
+ * @typedef CompleteResponse
139
62
  * @property {string} _id
140
63
  * @property {string} file_name
141
64
  * @property {string} file_path
@@ -153,12 +76,6 @@ const Joi = require("joi");
153
76
  * @property {CreatedBy} [created_by]
154
77
  */
155
78
 
156
- /**
157
- * @typedef ProxyFileAccess
158
- * @property {Object} [data]
159
- * @property {Object} [support]
160
- */
161
-
162
79
  /**
163
80
  * @typedef DestinationNamespace
164
81
  * @property {string} [namespace]
@@ -178,18 +95,18 @@ const Joi = require("joi");
178
95
  */
179
96
 
180
97
  /**
181
- * @typedef SignUrlResult
98
+ * @typedef SignUrlResponse
182
99
  * @property {Urls[]} urls
183
100
  */
184
101
 
185
102
  /**
186
- * @typedef SignUrl
103
+ * @typedef SignUrlRequest
187
104
  * @property {number} expiry
188
105
  * @property {string[]} urls
189
106
  */
190
107
 
191
108
  /**
192
- * @typedef InvoiceTypesData
109
+ * @typedef InvoiceTypesDataResponse
193
110
  * @property {boolean} [status]
194
111
  * @property {string} _id
195
112
  * @property {number} pdf_type_id
@@ -197,13 +114,12 @@ const Joi = require("joi");
197
114
  * @property {string[]} format
198
115
  * @property {number} __v
199
116
  * @property {boolean} visibility
200
- * @property {boolean} store_os
201
117
  * @property {string} country_code
202
118
  */
203
119
 
204
120
  /**
205
- * @typedef InvoiceTypes
206
- * @property {InvoiceTypesData[]} data
121
+ * @typedef InvoiceTypesResponse
122
+ * @property {InvoiceTypesDataResponse[]} data
207
123
  * @property {boolean} success
208
124
  */
209
125
 
@@ -516,7 +432,7 @@ const Joi = require("joi");
516
432
  */
517
433
 
518
434
  /**
519
- * @typedef PdfPayloadDetails
435
+ * @typedef DummyTemplateDataPayload
520
436
  * @property {boolean} [is_export]
521
437
  * @property {boolean} [is_export_shipment]
522
438
  * @property {string} [app_domain_name]
@@ -550,6 +466,8 @@ const Joi = require("joi");
550
466
  * @property {boolean} [is_self_ship]
551
467
  * @property {string} [mode]
552
468
  * @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
553
471
  * @property {string} [platform_name]
554
472
  * @property {number} [amount_to_be_collected]
555
473
  * @property {number} [amount_paid]
@@ -569,29 +487,13 @@ const Joi = require("joi");
569
487
  * @property {string} [_id] - This field contains the unique identifier for the
570
488
  * PDF payload.
571
489
  * @property {number} [pdf_type_id] - This is invoice unique id
572
- * @property {PdfPayloadDetails} payload
490
+ * @property {DummyTemplateDataPayload} payload
573
491
  * @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]
590
492
  * @property {number} [__v] - This field holds the version number.
591
493
  */
592
494
 
593
495
  /**
594
- * @typedef PdfDataItemsDetails
496
+ * @typedef DummyTemplateDataItems
595
497
  * @property {DummyTemplateData[]} data
596
498
  * @property {boolean} success
597
499
  */
@@ -599,37 +501,22 @@ const Joi = require("joi");
599
501
  /**
600
502
  * @typedef PdfConfig
601
503
  * @property {string} [format] - This is invoice document format such as A4, A6, POS
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.
504
+ * @property {string} [template] - This is html template string
505
+ * @property {number} [pdf_type_id]
607
506
  */
608
507
 
609
508
  /**
610
509
  * @typedef PdfConfigSuccessData
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.
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]
623
517
  * @property {string} [country_code]
624
518
  */
625
519
 
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
-
633
520
  /**
634
521
  * @typedef PdfConfigSuccess
635
522
  * @property {PdfConfigSuccessData[]} [data]
@@ -653,6 +540,12 @@ const Joi = require("joi");
653
540
  * @property {boolean} [success]
654
541
  */
655
542
 
543
+ /**
544
+ * @typedef PdfDefaultTemplateSuccess
545
+ * @property {Document[]} [data]
546
+ * @property {boolean} [success] - Indicates if the request was successful.
547
+ */
548
+
656
549
  /**
657
550
  * @typedef Document
658
551
  * @property {string} [_id]
@@ -743,117 +636,16 @@ const Joi = require("joi");
743
636
  */
744
637
 
745
638
  class FileStoragePlatformModel {
746
- /** @returns {UpdatePdfType} */
747
- static UpdatePdfType() {
639
+ /** @returns {ProxyResponse} */
640
+ static ProxyResponse() {
748
641
  return Joi.object({
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(""),
756
- });
757
- }
758
-
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(),
642
+ data: Joi.object().pattern(/\S/, Joi.any()),
643
+ support: Joi.object().pattern(/\S/, Joi.any()),
852
644
  });
853
645
  }
854
646
 
855
- /** @returns {FailedBrowseFilesResult} */
856
- static FailedBrowseFilesResult() {
647
+ /** @returns {FailedResponse} */
648
+ static FailedResponse() {
857
649
  return Joi.object({
858
650
  message: Joi.string().allow("").required(),
859
651
  });
@@ -876,8 +668,8 @@ class FileStoragePlatformModel {
876
668
  });
877
669
  }
878
670
 
879
- /** @returns {FileUpload} */
880
- static FileUpload() {
671
+ /** @returns {StartResponse} */
672
+ static StartResponse() {
881
673
  return Joi.object({
882
674
  file_name: Joi.string().allow("").required(),
883
675
  file_path: Joi.string().allow("").required(),
@@ -887,12 +679,20 @@ class FileStoragePlatformModel {
887
679
  operation: Joi.string().allow("").required(),
888
680
  size: Joi.number().required(),
889
681
  upload: FileStoragePlatformModel.Upload().required(),
682
+ cdn: FileStoragePlatformModel.CDN().required(),
890
683
  tags: Joi.array().items(Joi.string().allow("")),
891
684
  });
892
685
  }
893
686
 
894
- /** @returns {FileUploadStart} */
895
- static FileUploadStart() {
687
+ /** @returns {Params} */
688
+ static Params() {
689
+ return Joi.object({
690
+ subpath: Joi.string().allow(""),
691
+ });
692
+ }
693
+
694
+ /** @returns {StartRequest} */
695
+ static StartRequest() {
896
696
  return Joi.object({
897
697
  file_name: Joi.string().allow("").required(),
898
698
  content_type: Joi.string().allow("").required(),
@@ -909,8 +709,8 @@ class FileStoragePlatformModel {
909
709
  });
910
710
  }
911
711
 
912
- /** @returns {FileUploadComplete} */
913
- static FileUploadComplete() {
712
+ /** @returns {CompleteResponse} */
713
+ static CompleteResponse() {
914
714
  return Joi.object({
915
715
  _id: Joi.string().allow("").required(),
916
716
  file_name: Joi.string().allow("").required(),
@@ -930,14 +730,6 @@ class FileStoragePlatformModel {
930
730
  });
931
731
  }
932
732
 
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
-
941
733
  /** @returns {DestinationNamespace} */
942
734
  static DestinationNamespace() {
943
735
  return Joi.object({
@@ -962,23 +754,23 @@ class FileStoragePlatformModel {
962
754
  });
963
755
  }
964
756
 
965
- /** @returns {SignUrlResult} */
966
- static SignUrlResult() {
757
+ /** @returns {SignUrlResponse} */
758
+ static SignUrlResponse() {
967
759
  return Joi.object({
968
760
  urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
969
761
  });
970
762
  }
971
763
 
972
- /** @returns {SignUrl} */
973
- static SignUrl() {
764
+ /** @returns {SignUrlRequest} */
765
+ static SignUrlRequest() {
974
766
  return Joi.object({
975
767
  expiry: Joi.number().required(),
976
768
  urls: Joi.array().items(Joi.string().allow("")).required(),
977
769
  });
978
770
  }
979
771
 
980
- /** @returns {InvoiceTypesData} */
981
- static InvoiceTypesData() {
772
+ /** @returns {InvoiceTypesDataResponse} */
773
+ static InvoiceTypesDataResponse() {
982
774
  return Joi.object({
983
775
  status: Joi.boolean(),
984
776
  _id: Joi.string().allow("").required(),
@@ -987,16 +779,15 @@ class FileStoragePlatformModel {
987
779
  format: Joi.array().items(Joi.string().allow("")).required(),
988
780
  __v: Joi.number().required(),
989
781
  visibility: Joi.boolean().required(),
990
- store_os: Joi.boolean().required(),
991
782
  country_code: Joi.string().allow("").required(),
992
783
  });
993
784
  }
994
785
 
995
- /** @returns {InvoiceTypes} */
996
- static InvoiceTypes() {
786
+ /** @returns {InvoiceTypesResponse} */
787
+ static InvoiceTypesResponse() {
997
788
  return Joi.object({
998
789
  data: Joi.array()
999
- .items(FileStoragePlatformModel.InvoiceTypesData())
790
+ .items(FileStoragePlatformModel.InvoiceTypesDataResponse())
1000
791
  .required(),
1001
792
  success: Joi.boolean().required(),
1002
793
  });
@@ -1367,8 +1158,8 @@ class FileStoragePlatformModel {
1367
1158
  });
1368
1159
  }
1369
1160
 
1370
- /** @returns {PdfPayloadDetails} */
1371
- static PdfPayloadDetails() {
1161
+ /** @returns {DummyTemplateDataPayload} */
1162
+ static DummyTemplateDataPayload() {
1372
1163
  return Joi.object({
1373
1164
  is_export: Joi.boolean(),
1374
1165
  is_export_shipment: Joi.boolean(),
@@ -1403,6 +1194,8 @@ class FileStoragePlatformModel {
1403
1194
  is_self_ship: Joi.boolean(),
1404
1195
  mode: Joi.string().allow(""),
1405
1196
  is_self_pickup: Joi.boolean(),
1197
+ shipment_meta: Joi.object().pattern(/\S/, Joi.any()),
1198
+ order_meta: Joi.object().pattern(/\S/, Joi.any()),
1406
1199
  platform_name: Joi.string().allow(""),
1407
1200
  amount_to_be_collected: Joi.number(),
1408
1201
  amount_paid: Joi.number(),
@@ -1423,34 +1216,14 @@ class FileStoragePlatformModel {
1423
1216
  return Joi.object({
1424
1217
  _id: Joi.string().allow(""),
1425
1218
  pdf_type_id: Joi.number(),
1426
- payload: FileStoragePlatformModel.PdfPayloadDetails().required(),
1219
+ payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
1427
1220
  country_code: Joi.string().allow(""),
1428
1221
  __v: Joi.number(),
1429
1222
  });
1430
1223
  }
1431
1224
 
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() {
1225
+ /** @returns {DummyTemplateDataItems} */
1226
+ static DummyTemplateDataItems() {
1454
1227
  return Joi.object({
1455
1228
  data: Joi.array()
1456
1229
  .items(FileStoragePlatformModel.DummyTemplateData())
@@ -1465,8 +1238,6 @@ class FileStoragePlatformModel {
1465
1238
  format: Joi.string().allow(""),
1466
1239
  template: Joi.string().allow(""),
1467
1240
  pdf_type_id: Joi.number(),
1468
- country_code: Joi.string().allow(""),
1469
- default_template: Joi.boolean(),
1470
1241
  });
1471
1242
  }
1472
1243
 
@@ -1484,14 +1255,6 @@ class FileStoragePlatformModel {
1484
1255
  });
1485
1256
  }
1486
1257
 
1487
- /** @returns {DeleteMapperById} */
1488
- static DeleteMapperById() {
1489
- return Joi.object({
1490
- message: Joi.string().allow(""),
1491
- default_template: Joi.boolean(),
1492
- });
1493
- }
1494
-
1495
1258
  /** @returns {PdfConfigSuccess} */
1496
1259
  static PdfConfigSuccess() {
1497
1260
  return Joi.object({
@@ -1521,6 +1284,14 @@ class FileStoragePlatformModel {
1521
1284
  });
1522
1285
  }
1523
1286
 
1287
+ /** @returns {PdfDefaultTemplateSuccess} */
1288
+ static PdfDefaultTemplateSuccess() {
1289
+ return Joi.object({
1290
+ data: Joi.array().items(FileStoragePlatformModel.Document()),
1291
+ success: Joi.boolean(),
1292
+ });
1293
+ }
1294
+
1524
1295
  /** @returns {Document} */
1525
1296
  static Document() {
1526
1297
  return Joi.object({
@@ -1614,7 +1385,7 @@ class FileStoragePlatformModel {
1614
1385
  return Joi.object({
1615
1386
  job_type: Joi.string().allow(""),
1616
1387
  action: Joi.string().allow(""),
1617
- event: Joi.object().pattern(/\S/, Joi.any()),
1388
+ event: Joi.any(),
1618
1389
  organizaton_id: Joi.string().allow(""),
1619
1390
  company_id: Joi.number(),
1620
1391
  application_id: Joi.array().items(Joi.string().allow("")),
@@ -1622,7 +1393,7 @@ class FileStoragePlatformModel {
1622
1393
  trace_id: Joi.array().items(Joi.string().allow("")),
1623
1394
  created_timestamp: Joi.number(),
1624
1395
  service: FileStoragePlatformModel.PaymentReceiptService(),
1625
- event_trace_info: Joi.object().pattern(/\S/, Joi.any()),
1396
+ event_trace_info: Joi.any(),
1626
1397
  trace: Joi.string().allow(""),
1627
1398
  });
1628
1399
  }
@@ -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.FileUpload} body
17
+ * @property {FileStoragePlatformModel.StartResponse} 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.SignUrl} body
26
+ * @property {FileStoragePlatformModel.SignUrlRequest} 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.FileUploadStart} body
38
+ * @property {FileStoragePlatformModel.StartRequest} 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.FileUpload;
82
+ body: FileStoragePlatformModel.StartResponse;
83
83
  };
84
84
  type CopyFilesParam = {
85
85
  sync?: boolean;
86
86
  body: FileStoragePlatformModel.CopyFiles;
87
87
  };
88
88
  type GetSignUrlsParam = {
89
- body: FileStoragePlatformModel.SignUrl;
89
+ body: FileStoragePlatformModel.SignUrlRequest;
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.FileUploadStart;
105
+ body: FileStoragePlatformModel.StartRequest;
106
106
  };
107
107
  import FileStoragePlatformModel = require("./FileStoragePlatformModel");