@gofynd/fdk-client-javascript 1.4.12 → 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 (297) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  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 +96 -39
  28. package/sdk/application/Content/ContentApplicationModel.js +88 -34
  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 +51 -19
  75. package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
  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/common/Clickstream.js +12 -0
  93. package/sdk/common/Constant.d.ts +5 -0
  94. package/sdk/common/Constant.js +5 -0
  95. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  96. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  97. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  98. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  99. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  100. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  101. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  102. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  103. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  104. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  105. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  106. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  107. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  108. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  109. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  110. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  111. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  112. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  113. package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
  114. package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
  115. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  116. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  117. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  118. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  119. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  120. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  121. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  122. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  123. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  124. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  125. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  132. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  133. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  134. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  135. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  136. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  137. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  138. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  139. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  140. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  141. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  142. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  143. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
  145. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
  148. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
  149. package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
  150. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
  151. package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
  152. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  153. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  154. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  155. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  156. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  157. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  159. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  160. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  161. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  162. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  163. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  168. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  169. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  172. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  173. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  174. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  175. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  176. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  177. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  178. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  179. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  180. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  181. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  182. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  183. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  184. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  185. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  186. package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
  187. package/sdk/platform/Content/ContentPlatformModel.js +526 -392
  188. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  189. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  190. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  191. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  192. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  193. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  194. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  195. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  197. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  198. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  199. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  200. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  201. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  202. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  203. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  204. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  205. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  206. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  207. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  208. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  209. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  210. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  211. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  212. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  213. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  214. package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
  215. package/sdk/platform/Order/OrderPlatformClient.js +267 -203
  216. package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
  217. package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
  218. package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
  219. package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
  220. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  221. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  222. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  223. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  224. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  225. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  226. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  227. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  228. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  229. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  230. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  231. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  232. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  233. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  234. package/sdk/platform/PlatformClient.d.ts +0 -2
  235. package/sdk/platform/PlatformClient.js +0 -4
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  238. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  239. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  240. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  241. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  249. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  250. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  251. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  252. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  253. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  255. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
  261. package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  266. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  267. package/sdk/platform/User/UserPlatformModel.js +23 -23
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  274. package/sdk/platform/index.d.ts +0 -1
  275. package/sdk/platform/index.js +0 -2
  276. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  277. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  278. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  279. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  280. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  281. package/sdk/public/Content/ContentPublicClient.js +791 -5
  282. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  283. package/sdk/public/Content/ContentPublicModel.js +649 -3
  284. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  285. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  286. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  287. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  288. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  289. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  290. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  291. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  292. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  293. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  294. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  295. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  296. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  297. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,14 +1,14 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef GetStoreResponse
5
- * @property {StoreItemResponse[]} [items] - List of locations, each containing
4
+ * @typedef GetStoreResult
5
+ * @property {StoreItemResult[]} [items] - List of locations, each containing
6
6
  * detailed information about individual location.
7
7
  * @property {Page} [page]
8
8
  */
9
9
 
10
10
  /**
11
- * @typedef StoreItemResponse
11
+ * @typedef StoreItemResult
12
12
  * @property {number} [id] - A unique identifier for the location.
13
13
  * @property {string} [store_type] - The type of store, indicating the nature of
14
14
  * the store, such as retail or warehouse.
@@ -27,7 +27,7 @@ const Joi = require("joi");
27
27
  */
28
28
 
29
29
  /**
30
- * @typedef ValidateAddressRequest
30
+ * @typedef ValidateAddressDetails
31
31
  * @property {string} [address] - Complete address, combining address line 1,
32
32
  * address line 2, area, landmark, sector, city, state, and pincode.
33
33
  * @property {string} [address1] - First line of the address, typically
@@ -48,7 +48,7 @@ const Joi = require("joi");
48
48
  */
49
49
 
50
50
  /**
51
- * @typedef PincodeParentsResponse
51
+ * @typedef PincodeParentsResult
52
52
  * @property {string} [sub_type] - Specific type of locality hierarchy the
53
53
  * pincode belongs to (e.g., city, state, country).
54
54
  * @property {string} [display_name] - User-friendly version of the geographical
@@ -60,7 +60,7 @@ const Joi = require("joi");
60
60
  */
61
61
 
62
62
  /**
63
- * @typedef PincodeMetaResponse
63
+ * @typedef PincodeMetaResult
64
64
  * @property {string} [zone] - Geographical region to which the pincode belongs,
65
65
  * often used to categorize or group pincodes for regional management or
66
66
  * postal purposes.
@@ -69,7 +69,7 @@ const Joi = require("joi");
69
69
  */
70
70
 
71
71
  /**
72
- * @typedef PincodeErrorSchemaResponse
72
+ * @typedef PincodeErrorSchemaResult
73
73
  * @property {string} [message] - A user-readable description of the error,
74
74
  * explaining what went wrong.
75
75
  * @property {string} [value] - A specific code or identifier related to the
@@ -79,7 +79,7 @@ const Joi = require("joi");
79
79
  */
80
80
 
81
81
  /**
82
- * @typedef CountryMetaResponse
82
+ * @typedef CountryMetaResult
83
83
  * @property {string} [country_code] - The ISO 3166-1 alpha-2 code representing
84
84
  * the country (e.g., "IN" for India, "US" for the United States).
85
85
  * @property {string} [isd_code] - The International Subscriber Dialing (ISD)
@@ -97,15 +97,15 @@ const Joi = require("joi");
97
97
  */
98
98
 
99
99
  /**
100
- * @typedef PincodeDataResponse
101
- * @property {PincodeParentsResponse[]} [parents] - List of object representing
102
- * a collection of geographical locations, each associated with specific
100
+ * @typedef PincodeDataResult
101
+ * @property {PincodeParentsResult[]} [parents] - List of object representing a
102
+ * collection of geographical locations, each associated with specific
103
103
  * hierarchical data such as cities, states, or countries.
104
- * @property {PincodeMetaResponse} [meta]
104
+ * @property {PincodeMetaResult} [meta]
105
105
  * @property {string} [display_name] - User-friendly version of the geographical
106
106
  * data, which may be more descriptive or formatted differently.
107
- * @property {PincodeErrorSchemaResponse} error
108
- * @property {CountryMetaResponse} [meta_code]
107
+ * @property {PincodeErrorSchemaResult} error
108
+ * @property {CountryMetaResult} [meta_code]
109
109
  * @property {PincodeLatLongData} [lat_long]
110
110
  * @property {string} [sub_type] - Indicates the specific type of locality
111
111
  * hierarchy the pincode belongs to (e.g., city, state, country).
@@ -117,17 +117,17 @@ const Joi = require("joi");
117
117
  */
118
118
 
119
119
  /**
120
- * @typedef PincodeApiResponse
120
+ * @typedef PincodeDetails
121
121
  * @property {boolean} success - Indicates whether the API request was
122
122
  * successful (true) or failed (false).
123
- * @property {PincodeDataResponse[]} [data] - Contains the actual response data
123
+ * @property {PincodeDataResult[]} [data] - Contains the actual response data
124
124
  * when the request is successful, providing details like pincode information
125
125
  * or related data.
126
- * @property {PincodeErrorSchemaResponse} error
126
+ * @property {PincodeErrorSchemaResult} error
127
127
  */
128
128
 
129
129
  /**
130
- * @typedef TATCategoryRequest
130
+ * @typedef TATCategoryDetails
131
131
  * @property {string} [level] - Specifies the hierarchical level of the category
132
132
  * (e.g., country, state, city).
133
133
  * @property {number} [id] - Represents the unique identifier for the category
@@ -135,8 +135,8 @@ const Joi = require("joi");
135
135
  */
136
136
 
137
137
  /**
138
- * @typedef TATArticlesRequest
139
- * @property {TATCategoryRequest} [category]
138
+ * @typedef TATArticlesDetails
139
+ * @property {TATCategoryDetails} [category]
140
140
  * @property {string} [manufacturing_time_unit] - The unit of measurement for
141
141
  * the manufacturing time, such as hours or days.
142
142
  * @property {number} [manufacturing_time] - The amount of time required to
@@ -144,17 +144,17 @@ const Joi = require("joi");
144
144
  */
145
145
 
146
146
  /**
147
- * @typedef TATLocationDetailsRequest
147
+ * @typedef TATLocationDetailsDetails
148
148
  * @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
149
149
  * @property {string} [from_pincode] - The postal code of the location from
150
150
  * which the fulfillment originates.
151
- * @property {TATArticlesRequest[]} [articles] - List of articles included in
151
+ * @property {TATArticlesDetails[]} [articles] - List of articles included in
152
152
  * the fulfillment request, which provides details about the items to be
153
153
  * processed or shipped.
154
154
  */
155
155
 
156
156
  /**
157
- * @typedef TATViewRequest
157
+ * @typedef TATViewDetails
158
158
  * @property {string} [to_pincode] - The postal code of the destination location
159
159
  * where the fulfillment or shipment is headed.
160
160
  * @property {string} [source] - The origin or source of the request, indicating
@@ -163,7 +163,7 @@ const Joi = require("joi");
163
163
  * such as viewing, updating, or managing data.
164
164
  * @property {string} [identifier] - A unique ID used to reference or track the
165
165
  * specific request or item within the system.
166
- * @property {TATLocationDetailsRequest[]} [location_details] - Locations
166
+ * @property {TATLocationDetailsDetails[]} [location_details] - Locations
167
167
  * involved in the request, including details about both the source and destination.
168
168
  * @property {string} [journey] - Indicates the direction of the request or
169
169
  * shipment. It can either be "forward" (from the source to the destination)
@@ -171,7 +171,7 @@ const Joi = require("joi");
171
171
  */
172
172
 
173
173
  /**
174
- * @typedef TATErrorSchemaResponse
174
+ * @typedef TATErrorSchemaResult
175
175
  * @property {string} [message] - A user-readable description of the error,
176
176
  * explaining what went wrong.
177
177
  * @property {string} [value] - A specific code or identifier related to the
@@ -181,56 +181,56 @@ const Joi = require("joi");
181
181
  */
182
182
 
183
183
  /**
184
- * @typedef TATTimestampResponse
184
+ * @typedef TATTimestampResult
185
185
  * @property {number} [min] - The earliest possible timestamp.
186
186
  * @property {number} [max] - The latest possible timestamp.
187
187
  */
188
188
 
189
189
  /**
190
- * @typedef TATFormattedResponse
190
+ * @typedef TATFormattedResult
191
191
  * @property {string} [min] - The earliest possible timestamp.
192
192
  * @property {string} [max] - The latest possible timestamp.
193
193
  */
194
194
 
195
195
  /**
196
- * @typedef TATPromiseResponse
197
- * @property {TATTimestampResponse} [timestamp]
198
- * @property {TATFormattedResponse} [formatted]
196
+ * @typedef TATPromiseResult
197
+ * @property {TATTimestampResult} [timestamp]
198
+ * @property {TATFormattedResult} [formatted]
199
199
  */
200
200
 
201
201
  /**
202
- * @typedef TATArticlesResponse
202
+ * @typedef TATArticlesResult
203
203
  * @property {string} [manufacturing_time_unit] - The unit of measurement for
204
204
  * the manufacturing time such as hours or days.
205
- * @property {TATErrorSchemaResponse} [error]
205
+ * @property {TATErrorSchemaResult} [error]
206
206
  * @property {boolean} [is_cod_available] - Indicates whether Cash on Delivery
207
207
  * (COD) is available for the articles.
208
- * @property {TATPromiseResponse} [promise]
208
+ * @property {TATPromiseResult} [promise]
209
209
  * @property {number} [manufacturing_time] - The time required to manufacture
210
210
  * the articles, measured in the unit specified by manufacturing_time_unit.
211
- * @property {TATCategoryRequest} [category]
211
+ * @property {TATCategoryDetails} [category]
212
212
  * @property {number} [_manufacturing_time_seconds] - The manufacturing time
213
213
  * converted into seconds.
214
214
  */
215
215
 
216
216
  /**
217
- * @typedef TATLocationDetailsResponse
217
+ * @typedef TATLocationDetailsResult
218
218
  * @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
219
219
  * @property {string} [from_pincode] - The postal code of the location from
220
220
  * which the fulfillment originates.
221
- * @property {TATArticlesResponse[]} [articles] - List of articles included in
222
- * the fulfillment request, which provides details about the items to be
223
- * processed or shipped.
221
+ * @property {TATArticlesResult[]} [articles] - List of articles included in the
222
+ * fulfillment request, which provides details about the items to be processed
223
+ * or shipped.
224
224
  */
225
225
 
226
226
  /**
227
- * @typedef TATViewResponse
227
+ * @typedef TATViewResult
228
228
  * @property {string} [to_pincode] - The postal code of the destination location
229
229
  * where the fulfillment or shipment is headed.
230
230
  * @property {string} [request_uuid] - A unique identifier for the request.
231
231
  * @property {string} [payment_mode] - The mode of payment used for the transaction.
232
232
  * @property {boolean} [success] - Whether the request was successful (true/false).
233
- * @property {TATErrorSchemaResponse} [error]
233
+ * @property {TATErrorSchemaResult} [error]
234
234
  * @property {boolean} [is_cod_available] - Whether Cash on Delivery (COD) is
235
235
  * available for the request.
236
236
  * @property {string} [source] - The origin or source of the request.
@@ -240,8 +240,8 @@ const Joi = require("joi");
240
240
  * stormbreaker process.
241
241
  * @property {string} [to_city] - The city corresponding to the destination pincode.
242
242
  * @property {string} [identifier] - A unique identifier for the request or transaction.
243
- * @property {TATLocationDetailsResponse[]} [location_details] - Location
244
- * involved in the request.
243
+ * @property {TATLocationDetailsResult[]} [location_details] - Location involved
244
+ * in the request.
245
245
  * @property {string} [journey] - Type of journey, either forward or return.
246
246
  */
247
247
 
@@ -272,15 +272,14 @@ const Joi = require("joi");
272
272
  */
273
273
 
274
274
  /**
275
- * @typedef LogisticsResponse
276
- * @property {Object} [dp] - Provide entity responsible for handling the
277
- * delivery of goods.
275
+ * @typedef LogisticsResult
276
+ * @property {DP} [dp]
278
277
  */
279
278
 
280
279
  /**
281
- * @typedef CountryEntityResponse
282
- * @property {CountryMetaResponse} [meta]
283
- * @property {LogisticsResponse} [logistics]
280
+ * @typedef CountryEntityResult
281
+ * @property {CountryMetaResult} [meta]
282
+ * @property {LogisticsResult} [logistics]
284
283
  * @property {string} [display_name] - User-friendly version of the geographical
285
284
  * data, which may be more descriptive or formatted differently.
286
285
  * @property {string} [type] - Specifies the type of geographical feature or
@@ -295,20 +294,20 @@ const Joi = require("joi");
295
294
  */
296
295
 
297
296
  /**
298
- * @typedef CountryListResponse
299
- * @property {CountryEntityResponse[]} [results] - A list of country entities,
297
+ * @typedef CountryListResult
298
+ * @property {CountryEntityResult[]} [results] - A list of country entities,
300
299
  * each containing details about individual countries.
301
300
  */
302
301
 
303
302
  /**
304
- * @typedef GetZoneFromPincodeViewRequest
303
+ * @typedef GetZoneFromPincodeViewDetails
305
304
  * @property {string} pincode - The postal code or ZIP code used to pinpoint a
306
305
  * specific geographic area or location.
307
306
  * @property {string} country - The country where the pincode is located.
308
307
  */
309
308
 
310
309
  /**
311
- * @typedef GetZoneFromPincodeViewResponse
310
+ * @typedef GetZoneFromPincodeViewResult
312
311
  * @property {string} serviceability_type - Specifies the type of serviceability
313
312
  * for the given pincode, indicating whether it's deliverable or serviceable
314
313
  * under certain conditions.
@@ -317,7 +316,7 @@ const Joi = require("joi");
317
316
  */
318
317
 
319
318
  /**
320
- * @typedef ReAssignStoreRequest
319
+ * @typedef ReAssignStoreDetails
321
320
  * @property {Object} configuration - Specifies the configuration settings or
322
321
  * parameters for the store reassignment.
323
322
  * @property {string} to_pincode - The postal code of the destination location
@@ -330,7 +329,7 @@ const Joi = require("joi");
330
329
  */
331
330
 
332
331
  /**
333
- * @typedef ReAssignStoreResponse
332
+ * @typedef ReAssignStoreResult
334
333
  * @property {string} to_pincode - The postal code of the destination location
335
334
  * where the fulfillment or shipment is headed.
336
335
  * @property {string} pystormbreaker_uuid - A unique identifier for tracking the
@@ -521,6 +520,7 @@ const Joi = require("joi");
521
520
  * @property {string} [name] - The actual geographical data, such as country
522
521
  * names (India), state names (Maharashtra), pin codes (400603), city names
523
522
  * (Dubai), or local sectors (Deira).
523
+ * @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
524
524
  * @property {string} [display_name] - User-friendly version of the geographical
525
525
  * data, which may be more descriptive or formatted differently.
526
526
  * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
@@ -540,6 +540,9 @@ const Joi = require("joi");
540
540
  * (Dubai), or local sectors (Deira).
541
541
  * @property {string} [display_name] - User-friendly version of the geographical
542
542
  * data, which may be more descriptive or formatted differently.
543
+ * @property {string} [code] - Code assigned to a locality, which is unique to
544
+ * its immediate parent.
545
+ * @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
543
546
  * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
544
547
  * @property {string} [type] - Specifies the category of the address component,
545
548
  * such as pincode, state, city, country, or sector.
@@ -560,6 +563,9 @@ const Joi = require("joi");
560
563
  * (Dubai), or local sectors (Deira).
561
564
  * @property {string} [display_name] - User-friendly version of the geographical
562
565
  * data, which may be more descriptive or formatted differently.
566
+ * @property {string} [code] - Code assigned to a locality, which is unique to
567
+ * its immediate parent.
568
+ * @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
563
569
  * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
564
570
  * @property {string} [type] - Specifies the category of the address component,
565
571
  * such as pincode, state, city, country, or sector.
@@ -570,22 +576,134 @@ const Joi = require("joi");
570
576
  */
571
577
 
572
578
  /**
573
- * @typedef ErrorResponse
579
+ * @typedef ShipmentsArticles
580
+ * @property {number} [item_id] - Unique identifier of the item.
581
+ * @property {number} [category_id] - Unique identifier of the category.
582
+ * @property {number} [brand_id] - Unique identifier of the brand.
583
+ * @property {number} [department_id] - Unique identifier of the department.
584
+ * @property {string[]} [tags] - Tags associated with the item.
585
+ */
586
+
587
+ /**
588
+ * @typedef ShipmentDimension
589
+ * @property {number} height - Height of the shipment in centimeters.
590
+ * @property {number} length - Length of the shipment in centimeters.
591
+ * @property {number} width - Width of the shipment in centimeters.
592
+ */
593
+
594
+ /**
595
+ * @typedef Shipments
596
+ * @property {string} [id] - Unique identifier of the shipment.
597
+ * @property {number} [location_id] - Unique identifier of the selling location.
598
+ * @property {string[]} [location_tags] - Tags associated with the selling location.
599
+ * @property {number} [shipment_weight] - Weight of the shipment.
600
+ * @property {number} [shipment_volumetric_weight] - Volumetric weight of the shipment.
601
+ * @property {number} [shipment_cost] - Total Cost of the shipment.
602
+ * @property {ShipmentDimension} [shipment_dimension]
603
+ * @property {string[]} [courier_partner_schemes] - A List of courier schemes.
604
+ * @property {ShipmentsArticles[]} [articles] - List of articles in the shipment.
605
+ */
606
+
607
+ /**
608
+ * @typedef ShipmentCourierPartnerDetails
609
+ * @property {ShipmentsCourierPartnersServiceability} from_location
610
+ * @property {ShipmentsCourierPartnersServiceability} to_location
611
+ * @property {Shipments[]} [shipments] - List of shipments.
612
+ * @property {string} [journey] - Journey type of the shipment forward or return.
613
+ * @property {string} [payment_mode] - Payment mode opted for the shipment.
614
+ */
615
+
616
+ /**
617
+ * @typedef CourierPartnerPromise
618
+ * @property {string} min - The earliest possible timestamp.
619
+ * @property {string} max - The latest possible timestamp.
620
+ */
621
+
622
+ /**
623
+ * @typedef CourierPartners
624
+ * @property {string} [extension_id] - Unique identifier of courier partner extension.
625
+ * @property {string} [scheme_id] - Unique identifier of courier partner scheme.
626
+ * @property {string} [name] - Name of the courier partner.
627
+ * @property {CourierPartnerPromise} [delivery_promise]
628
+ */
629
+
630
+ /**
631
+ * @typedef ShipmentCourierPartners
632
+ * @property {string} [id] - Unique identifier of the shipment.
633
+ * @property {CourierPartners[]} [courier_partners] - Courier partners of the shipment.
634
+ */
635
+
636
+ /**
637
+ * @typedef ShipmentCourierPartnerResult
638
+ * @property {CourierPartners[]} [courier_partners]
639
+ * @property {ShipmentCourierPartners[]} [shipments]
640
+ */
641
+
642
+ /**
643
+ * @typedef ShipmentsCourierPartnersServiceability
644
+ * @property {string} [pincode] - Postal code or PIN code of the address area.
645
+ * @property {string} [sector_code] - Specifies the sector or district code of
646
+ * the address if applicable.
647
+ * @property {string} [state_code] - Indicates the state or province code of the address.
648
+ * @property {string} [city_code] - Denote the city or municipality code of the address.
649
+ * @property {string} country_code - ISO2 code for the country of the address.
650
+ */
651
+
652
+ /**
653
+ * @typedef ServiceabilityLocation
654
+ * @property {string} longitude - Geographical longitude coordinate of the location.
655
+ * @property {string} latitude - Geographical latitude coordinate of the location.
656
+ */
657
+
658
+ /**
659
+ * @typedef GetPromiseDetails
660
+ * @property {StorePromise[]} [items] - List of delivery promises for each store.
661
+ * @property {Promise} [delivery_promise]
662
+ * @property {Page} [page]
663
+ */
664
+
665
+ /**
666
+ * @typedef StorePromise
667
+ * @property {number} [uid] - Unique identifier of a store.
668
+ * @property {string} [code] - Code assigned to a store.
669
+ * @property {string} [name] - Name of a store.
670
+ * @property {Promise} [delivery_promise]
671
+ */
672
+
673
+ /**
674
+ * @typedef Promise
675
+ * @property {string} [min] - Earliest delivery time.
676
+ * @property {string} [max] - Latest delivery time.
677
+ */
678
+
679
+ /**
680
+ * @typedef ErrorResult
574
681
  * @property {string} [error] - Error code identifying the type of error.
575
682
  * @property {string} [message] - User-friendly explanation of what went wrong.
576
683
  */
577
684
 
685
+ /**
686
+ * @typedef ValidationError
687
+ * @property {string} message - A brief description of the error encountered.
688
+ * @property {string} field - The field in the request that caused the error.
689
+ */
690
+
691
+ /**
692
+ * @typedef StandardError
693
+ * @property {string} message - A brief description of the error.
694
+ */
695
+
578
696
  class LogisticApplicationModel {
579
- /** @returns {GetStoreResponse} */
580
- static GetStoreResponse() {
697
+ /** @returns {GetStoreResult} */
698
+ static GetStoreResult() {
581
699
  return Joi.object({
582
- items: Joi.array().items(LogisticApplicationModel.StoreItemResponse()),
700
+ items: Joi.array().items(LogisticApplicationModel.StoreItemResult()),
583
701
  page: LogisticApplicationModel.Page(),
584
702
  });
585
703
  }
586
704
 
587
- /** @returns {StoreItemResponse} */
588
- static StoreItemResponse() {
705
+ /** @returns {StoreItemResult} */
706
+ static StoreItemResult() {
589
707
  return Joi.object({
590
708
  id: Joi.number(),
591
709
  store_type: Joi.string().allow(""),
@@ -598,8 +716,8 @@ class LogisticApplicationModel {
598
716
  });
599
717
  }
600
718
 
601
- /** @returns {ValidateAddressRequest} */
602
- static ValidateAddressRequest() {
719
+ /** @returns {ValidateAddressDetails} */
720
+ static ValidateAddressDetails() {
603
721
  return Joi.object({
604
722
  address: Joi.string().allow(""),
605
723
  address1: Joi.string().allow(""),
@@ -616,8 +734,8 @@ class LogisticApplicationModel {
616
734
  });
617
735
  }
618
736
 
619
- /** @returns {PincodeParentsResponse} */
620
- static PincodeParentsResponse() {
737
+ /** @returns {PincodeParentsResult} */
738
+ static PincodeParentsResult() {
621
739
  return Joi.object({
622
740
  sub_type: Joi.string().allow(""),
623
741
  display_name: Joi.string().allow(""),
@@ -626,16 +744,16 @@ class LogisticApplicationModel {
626
744
  });
627
745
  }
628
746
 
629
- /** @returns {PincodeMetaResponse} */
630
- static PincodeMetaResponse() {
747
+ /** @returns {PincodeMetaResult} */
748
+ static PincodeMetaResult() {
631
749
  return Joi.object({
632
750
  zone: Joi.string().allow(""),
633
751
  internal_zone_id: Joi.number(),
634
752
  });
635
753
  }
636
754
 
637
- /** @returns {PincodeErrorSchemaResponse} */
638
- static PincodeErrorSchemaResponse() {
755
+ /** @returns {PincodeErrorSchemaResult} */
756
+ static PincodeErrorSchemaResult() {
639
757
  return Joi.object({
640
758
  message: Joi.string().allow("").allow(null),
641
759
  value: Joi.string().allow("").allow(null),
@@ -643,8 +761,8 @@ class LogisticApplicationModel {
643
761
  });
644
762
  }
645
763
 
646
- /** @returns {CountryMetaResponse} */
647
- static CountryMetaResponse() {
764
+ /** @returns {CountryMetaResult} */
765
+ static CountryMetaResult() {
648
766
  return Joi.object({
649
767
  country_code: Joi.string().allow(""),
650
768
  isd_code: Joi.string().allow(""),
@@ -659,16 +777,16 @@ class LogisticApplicationModel {
659
777
  });
660
778
  }
661
779
 
662
- /** @returns {PincodeDataResponse} */
663
- static PincodeDataResponse() {
780
+ /** @returns {PincodeDataResult} */
781
+ static PincodeDataResult() {
664
782
  return Joi.object({
665
783
  parents: Joi.array().items(
666
- LogisticApplicationModel.PincodeParentsResponse()
784
+ LogisticApplicationModel.PincodeParentsResult()
667
785
  ),
668
- meta: LogisticApplicationModel.PincodeMetaResponse(),
786
+ meta: LogisticApplicationModel.PincodeMetaResult(),
669
787
  display_name: Joi.string().allow(""),
670
- error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
671
- meta_code: LogisticApplicationModel.CountryMetaResponse(),
788
+ error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
789
+ meta_code: LogisticApplicationModel.CountryMetaResult(),
672
790
  lat_long: LogisticApplicationModel.PincodeLatLongData(),
673
791
  sub_type: Joi.string().allow(""),
674
792
  name: Joi.string().allow(""),
@@ -676,59 +794,59 @@ class LogisticApplicationModel {
676
794
  });
677
795
  }
678
796
 
679
- /** @returns {PincodeApiResponse} */
680
- static PincodeApiResponse() {
797
+ /** @returns {PincodeDetails} */
798
+ static PincodeDetails() {
681
799
  return Joi.object({
682
800
  success: Joi.boolean().required(),
683
- data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
684
- error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
801
+ data: Joi.array().items(LogisticApplicationModel.PincodeDataResult()),
802
+ error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
685
803
  });
686
804
  }
687
805
 
688
- /** @returns {TATCategoryRequest} */
689
- static TATCategoryRequest() {
806
+ /** @returns {TATCategoryDetails} */
807
+ static TATCategoryDetails() {
690
808
  return Joi.object({
691
809
  level: Joi.string().allow(""),
692
810
  id: Joi.number(),
693
811
  });
694
812
  }
695
813
 
696
- /** @returns {TATArticlesRequest} */
697
- static TATArticlesRequest() {
814
+ /** @returns {TATArticlesDetails} */
815
+ static TATArticlesDetails() {
698
816
  return Joi.object({
699
- category: LogisticApplicationModel.TATCategoryRequest(),
817
+ category: LogisticApplicationModel.TATCategoryDetails(),
700
818
  manufacturing_time_unit: Joi.string().allow(""),
701
819
  manufacturing_time: Joi.number(),
702
820
  });
703
821
  }
704
822
 
705
- /** @returns {TATLocationDetailsRequest} */
706
- static TATLocationDetailsRequest() {
823
+ /** @returns {TATLocationDetailsDetails} */
824
+ static TATLocationDetailsDetails() {
707
825
  return Joi.object({
708
826
  fulfillment_id: Joi.number(),
709
827
  from_pincode: Joi.string().allow(""),
710
828
  articles: Joi.array().items(
711
- LogisticApplicationModel.TATArticlesRequest()
829
+ LogisticApplicationModel.TATArticlesDetails()
712
830
  ),
713
831
  });
714
832
  }
715
833
 
716
- /** @returns {TATViewRequest} */
717
- static TATViewRequest() {
834
+ /** @returns {TATViewDetails} */
835
+ static TATViewDetails() {
718
836
  return Joi.object({
719
837
  to_pincode: Joi.string().allow(""),
720
838
  source: Joi.string().allow(""),
721
839
  action: Joi.string().allow(""),
722
840
  identifier: Joi.string().allow(""),
723
841
  location_details: Joi.array().items(
724
- LogisticApplicationModel.TATLocationDetailsRequest()
842
+ LogisticApplicationModel.TATLocationDetailsDetails()
725
843
  ),
726
844
  journey: Joi.string().allow(""),
727
845
  });
728
846
  }
729
847
 
730
- /** @returns {TATErrorSchemaResponse} */
731
- static TATErrorSchemaResponse() {
848
+ /** @returns {TATErrorSchemaResult} */
849
+ static TATErrorSchemaResult() {
732
850
  return Joi.object({
733
851
  message: Joi.string().allow("").allow(null),
734
852
  value: Joi.string().allow("").allow(null),
@@ -736,62 +854,60 @@ class LogisticApplicationModel {
736
854
  });
737
855
  }
738
856
 
739
- /** @returns {TATTimestampResponse} */
740
- static TATTimestampResponse() {
857
+ /** @returns {TATTimestampResult} */
858
+ static TATTimestampResult() {
741
859
  return Joi.object({
742
860
  min: Joi.number(),
743
861
  max: Joi.number(),
744
862
  });
745
863
  }
746
864
 
747
- /** @returns {TATFormattedResponse} */
748
- static TATFormattedResponse() {
865
+ /** @returns {TATFormattedResult} */
866
+ static TATFormattedResult() {
749
867
  return Joi.object({
750
868
  min: Joi.string().allow(""),
751
869
  max: Joi.string().allow(""),
752
870
  });
753
871
  }
754
872
 
755
- /** @returns {TATPromiseResponse} */
756
- static TATPromiseResponse() {
873
+ /** @returns {TATPromiseResult} */
874
+ static TATPromiseResult() {
757
875
  return Joi.object({
758
- timestamp: LogisticApplicationModel.TATTimestampResponse(),
759
- formatted: LogisticApplicationModel.TATFormattedResponse(),
876
+ timestamp: LogisticApplicationModel.TATTimestampResult(),
877
+ formatted: LogisticApplicationModel.TATFormattedResult(),
760
878
  });
761
879
  }
762
880
 
763
- /** @returns {TATArticlesResponse} */
764
- static TATArticlesResponse() {
881
+ /** @returns {TATArticlesResult} */
882
+ static TATArticlesResult() {
765
883
  return Joi.object({
766
884
  manufacturing_time_unit: Joi.string().allow(""),
767
- error: LogisticApplicationModel.TATErrorSchemaResponse(),
885
+ error: LogisticApplicationModel.TATErrorSchemaResult(),
768
886
  is_cod_available: Joi.boolean(),
769
- promise: LogisticApplicationModel.TATPromiseResponse(),
887
+ promise: LogisticApplicationModel.TATPromiseResult(),
770
888
  manufacturing_time: Joi.number(),
771
- category: LogisticApplicationModel.TATCategoryRequest(),
889
+ category: LogisticApplicationModel.TATCategoryDetails(),
772
890
  _manufacturing_time_seconds: Joi.number(),
773
891
  });
774
892
  }
775
893
 
776
- /** @returns {TATLocationDetailsResponse} */
777
- static TATLocationDetailsResponse() {
894
+ /** @returns {TATLocationDetailsResult} */
895
+ static TATLocationDetailsResult() {
778
896
  return Joi.object({
779
897
  fulfillment_id: Joi.number(),
780
898
  from_pincode: Joi.string().allow(""),
781
- articles: Joi.array().items(
782
- LogisticApplicationModel.TATArticlesResponse()
783
- ),
899
+ articles: Joi.array().items(LogisticApplicationModel.TATArticlesResult()),
784
900
  });
785
901
  }
786
902
 
787
- /** @returns {TATViewResponse} */
788
- static TATViewResponse() {
903
+ /** @returns {TATViewResult} */
904
+ static TATViewResult() {
789
905
  return Joi.object({
790
906
  to_pincode: Joi.string().allow(""),
791
907
  request_uuid: Joi.string().allow(""),
792
908
  payment_mode: Joi.string().allow(""),
793
909
  success: Joi.boolean(),
794
- error: LogisticApplicationModel.TATErrorSchemaResponse(),
910
+ error: LogisticApplicationModel.TATErrorSchemaResult(),
795
911
  is_cod_available: Joi.boolean(),
796
912
  source: Joi.string().allow(""),
797
913
  action: Joi.string().allow(""),
@@ -799,7 +915,7 @@ class LogisticApplicationModel {
799
915
  to_city: Joi.string().allow(""),
800
916
  identifier: Joi.string().allow(""),
801
917
  location_details: Joi.array().items(
802
- LogisticApplicationModel.TATLocationDetailsResponse()
918
+ LogisticApplicationModel.TATLocationDetailsResult()
803
919
  ),
804
920
  journey: Joi.string().allow(""),
805
921
  });
@@ -821,18 +937,18 @@ class LogisticApplicationModel {
821
937
  });
822
938
  }
823
939
 
824
- /** @returns {LogisticsResponse} */
825
- static LogisticsResponse() {
940
+ /** @returns {LogisticsResult} */
941
+ static LogisticsResult() {
826
942
  return Joi.object({
827
- dp: Joi.object().pattern(/\S/, LogisticApplicationModel.DP()),
943
+ dp: LogisticApplicationModel.DP(),
828
944
  });
829
945
  }
830
946
 
831
- /** @returns {CountryEntityResponse} */
832
- static CountryEntityResponse() {
947
+ /** @returns {CountryEntityResult} */
948
+ static CountryEntityResult() {
833
949
  return Joi.object({
834
- meta: LogisticApplicationModel.CountryMetaResponse(),
835
- logistics: LogisticApplicationModel.LogisticsResponse(),
950
+ meta: LogisticApplicationModel.CountryMetaResult(),
951
+ logistics: LogisticApplicationModel.LogisticsResult(),
836
952
  display_name: Joi.string().allow(""),
837
953
  type: Joi.string().allow(""),
838
954
  is_active: Joi.boolean(),
@@ -843,50 +959,52 @@ class LogisticApplicationModel {
843
959
  });
844
960
  }
845
961
 
846
- /** @returns {CountryListResponse} */
847
- static CountryListResponse() {
962
+ /** @returns {CountryListResult} */
963
+ static CountryListResult() {
848
964
  return Joi.object({
849
965
  results: Joi.array().items(
850
- LogisticApplicationModel.CountryEntityResponse()
966
+ LogisticApplicationModel.CountryEntityResult()
851
967
  ),
852
968
  });
853
969
  }
854
970
 
855
- /** @returns {GetZoneFromPincodeViewRequest} */
856
- static GetZoneFromPincodeViewRequest() {
971
+ /** @returns {GetZoneFromPincodeViewDetails} */
972
+ static GetZoneFromPincodeViewDetails() {
857
973
  return Joi.object({
858
974
  pincode: Joi.string().allow("").required(),
859
975
  country: Joi.string().allow("").required(),
860
976
  });
861
977
  }
862
978
 
863
- /** @returns {GetZoneFromPincodeViewResponse} */
864
- static GetZoneFromPincodeViewResponse() {
979
+ /** @returns {GetZoneFromPincodeViewResult} */
980
+ static GetZoneFromPincodeViewResult() {
865
981
  return Joi.object({
866
982
  serviceability_type: Joi.string().allow("").required(),
867
983
  zones: Joi.array().items(Joi.string().allow("")).required(),
868
984
  });
869
985
  }
870
986
 
871
- /** @returns {ReAssignStoreRequest} */
872
- static ReAssignStoreRequest() {
987
+ /** @returns {ReAssignStoreDetails} */
988
+ static ReAssignStoreDetails() {
873
989
  return Joi.object({
874
- configuration: Joi.any().required(),
990
+ configuration: Joi.object().pattern(/\S/, Joi.any()).required(),
875
991
  to_pincode: Joi.string().allow("").required(),
876
992
  ignored_locations: Joi.array().items(Joi.number()).required(),
877
993
  identifier: Joi.string().allow("").required(),
878
- articles: Joi.array().items(Joi.any()).required(),
994
+ articles: Joi.array()
995
+ .items(Joi.object().pattern(/\S/, Joi.any()))
996
+ .required(),
879
997
  });
880
998
  }
881
999
 
882
- /** @returns {ReAssignStoreResponse} */
883
- static ReAssignStoreResponse() {
1000
+ /** @returns {ReAssignStoreResult} */
1001
+ static ReAssignStoreResult() {
884
1002
  return Joi.object({
885
1003
  to_pincode: Joi.string().allow("").required(),
886
1004
  pystormbreaker_uuid: Joi.string().allow("").required(),
887
1005
  success: Joi.boolean().required(),
888
- error: Joi.any().required(),
889
- assigned_stores: Joi.array().items(Joi.any()),
1006
+ error: Joi.object().pattern(/\S/, Joi.any()).required(),
1007
+ assigned_stores: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
890
1008
  });
891
1009
  }
892
1010
 
@@ -1072,6 +1190,7 @@ class LogisticApplicationModel {
1072
1190
  return Joi.object({
1073
1191
  id: Joi.string().allow(""),
1074
1192
  name: Joi.string().allow(""),
1193
+ custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1075
1194
  display_name: Joi.string().allow(""),
1076
1195
  parent_ids: Joi.array().items(Joi.string().allow("")),
1077
1196
  type: Joi.string().allow(""),
@@ -1085,6 +1204,8 @@ class LogisticApplicationModel {
1085
1204
  id: Joi.string().allow(""),
1086
1205
  name: Joi.string().allow(""),
1087
1206
  display_name: Joi.string().allow(""),
1207
+ code: Joi.string().allow(""),
1208
+ custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1088
1209
  parent_ids: Joi.array().items(Joi.string().allow("")),
1089
1210
  type: Joi.string().allow(""),
1090
1211
  });
@@ -1104,18 +1225,167 @@ class LogisticApplicationModel {
1104
1225
  id: Joi.string().allow(""),
1105
1226
  name: Joi.string().allow(""),
1106
1227
  display_name: Joi.string().allow(""),
1228
+ code: Joi.string().allow(""),
1229
+ custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1107
1230
  parent_ids: Joi.array().items(Joi.string().allow("")),
1108
1231
  type: Joi.string().allow(""),
1109
1232
  localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
1110
1233
  });
1111
1234
  }
1112
1235
 
1113
- /** @returns {ErrorResponse} */
1114
- static ErrorResponse() {
1236
+ /** @returns {ShipmentsArticles} */
1237
+ static ShipmentsArticles() {
1238
+ return Joi.object({
1239
+ item_id: Joi.number(),
1240
+ category_id: Joi.number(),
1241
+ brand_id: Joi.number(),
1242
+ department_id: Joi.number(),
1243
+ tags: Joi.array().items(Joi.string().allow("")),
1244
+ });
1245
+ }
1246
+
1247
+ /** @returns {ShipmentDimension} */
1248
+ static ShipmentDimension() {
1249
+ return Joi.object({
1250
+ height: Joi.number().required(),
1251
+ length: Joi.number().required(),
1252
+ width: Joi.number().required(),
1253
+ });
1254
+ }
1255
+
1256
+ /** @returns {Shipments} */
1257
+ static Shipments() {
1258
+ return Joi.object({
1259
+ id: Joi.string().allow(""),
1260
+ location_id: Joi.number(),
1261
+ location_tags: Joi.array().items(Joi.string().allow("")),
1262
+ shipment_weight: Joi.number(),
1263
+ shipment_volumetric_weight: Joi.number(),
1264
+ shipment_cost: Joi.number(),
1265
+ shipment_dimension: LogisticApplicationModel.ShipmentDimension(),
1266
+ courier_partner_schemes: Joi.array().items(Joi.string().allow("")),
1267
+ articles: Joi.array().items(LogisticApplicationModel.ShipmentsArticles()),
1268
+ });
1269
+ }
1270
+
1271
+ /** @returns {ShipmentCourierPartnerDetails} */
1272
+ static ShipmentCourierPartnerDetails() {
1273
+ return Joi.object({
1274
+ from_location: LogisticApplicationModel.ShipmentsCourierPartnersServiceability().required(),
1275
+ to_location: LogisticApplicationModel.ShipmentsCourierPartnersServiceability().required(),
1276
+ shipments: Joi.array().items(LogisticApplicationModel.Shipments()),
1277
+ journey: Joi.string().allow(""),
1278
+ payment_mode: Joi.string().allow(""),
1279
+ });
1280
+ }
1281
+
1282
+ /** @returns {CourierPartnerPromise} */
1283
+ static CourierPartnerPromise() {
1284
+ return Joi.object({
1285
+ min: Joi.string().allow("").required(),
1286
+ max: Joi.string().allow("").required(),
1287
+ });
1288
+ }
1289
+
1290
+ /** @returns {CourierPartners} */
1291
+ static CourierPartners() {
1292
+ return Joi.object({
1293
+ extension_id: Joi.string().allow(""),
1294
+ scheme_id: Joi.string().allow(""),
1295
+ name: Joi.string().allow(""),
1296
+ delivery_promise: LogisticApplicationModel.CourierPartnerPromise(),
1297
+ });
1298
+ }
1299
+
1300
+ /** @returns {ShipmentCourierPartners} */
1301
+ static ShipmentCourierPartners() {
1302
+ return Joi.object({
1303
+ id: Joi.string().allow(""),
1304
+ courier_partners: Joi.array().items(
1305
+ LogisticApplicationModel.CourierPartners()
1306
+ ),
1307
+ });
1308
+ }
1309
+
1310
+ /** @returns {ShipmentCourierPartnerResult} */
1311
+ static ShipmentCourierPartnerResult() {
1312
+ return Joi.object({
1313
+ courier_partners: Joi.array().items(
1314
+ LogisticApplicationModel.CourierPartners()
1315
+ ),
1316
+ shipments: Joi.array().items(
1317
+ LogisticApplicationModel.ShipmentCourierPartners()
1318
+ ),
1319
+ });
1320
+ }
1321
+
1322
+ /** @returns {ShipmentsCourierPartnersServiceability} */
1323
+ static ShipmentsCourierPartnersServiceability() {
1324
+ return Joi.object({
1325
+ pincode: Joi.string().allow(""),
1326
+ sector_code: Joi.string().allow(""),
1327
+ state_code: Joi.string().allow(""),
1328
+ city_code: Joi.string().allow(""),
1329
+ country_code: Joi.string().allow("").required(),
1330
+ });
1331
+ }
1332
+
1333
+ /** @returns {ServiceabilityLocation} */
1334
+ static ServiceabilityLocation() {
1335
+ return Joi.object({
1336
+ longitude: Joi.string().allow("").required(),
1337
+ latitude: Joi.string().allow("").required(),
1338
+ });
1339
+ }
1340
+
1341
+ /** @returns {GetPromiseDetails} */
1342
+ static GetPromiseDetails() {
1343
+ return Joi.object({
1344
+ items: Joi.array().items(LogisticApplicationModel.StorePromise()),
1345
+ delivery_promise: LogisticApplicationModel.Promise(),
1346
+ page: LogisticApplicationModel.Page(),
1347
+ });
1348
+ }
1349
+
1350
+ /** @returns {StorePromise} */
1351
+ static StorePromise() {
1352
+ return Joi.object({
1353
+ uid: Joi.number(),
1354
+ code: Joi.string().allow(""),
1355
+ name: Joi.string().allow(""),
1356
+ delivery_promise: LogisticApplicationModel.Promise(),
1357
+ });
1358
+ }
1359
+
1360
+ /** @returns {Promise} */
1361
+ static Promise() {
1362
+ return Joi.object({
1363
+ min: Joi.string().allow(""),
1364
+ max: Joi.string().allow(""),
1365
+ });
1366
+ }
1367
+
1368
+ /** @returns {ErrorResult} */
1369
+ static ErrorResult() {
1115
1370
  return Joi.object({
1116
1371
  error: Joi.string().allow(""),
1117
1372
  message: Joi.string().allow(""),
1118
1373
  });
1119
1374
  }
1375
+
1376
+ /** @returns {ValidationError} */
1377
+ static ValidationError() {
1378
+ return Joi.object({
1379
+ message: Joi.string().allow("").required(),
1380
+ field: Joi.string().allow("").required(),
1381
+ });
1382
+ }
1383
+
1384
+ /** @returns {StandardError} */
1385
+ static StandardError() {
1386
+ return Joi.object({
1387
+ message: Joi.string().allow("").required(),
1388
+ });
1389
+ }
1120
1390
  }
1121
1391
  module.exports = LogisticApplicationModel;