@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1304 -4979
  134. package/sdk/platform/Cart/CartPlatformModel.js +1217 -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 +341 -602
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
  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,14 +1,14 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef GetStoreResult
5
- * @property {StoreItemResult[]} [items] - List of locations, each containing
4
+ * @typedef GetStoreResponse
5
+ * @property {StoreItemResponse[]} [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 StoreItemResult
11
+ * @typedef StoreItemResponse
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 ValidateAddressDetails
30
+ * @typedef ValidateAddressRequest
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 PincodeParentsResult
51
+ * @typedef PincodeParentsResponse
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 PincodeMetaResult
63
+ * @typedef PincodeMetaResponse
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 PincodeErrorSchemaResult
72
+ * @typedef PincodeErrorSchemaResponse
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 CountryMetaResult
82
+ * @typedef CountryMetaResponse
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 PincodeDataResult
101
- * @property {PincodeParentsResult[]} [parents] - List of object representing a
102
- * collection of geographical locations, each associated with specific
100
+ * @typedef PincodeDataResponse
101
+ * @property {PincodeParentsResponse[]} [parents] - List of object representing
102
+ * a collection of geographical locations, each associated with specific
103
103
  * hierarchical data such as cities, states, or countries.
104
- * @property {PincodeMetaResult} [meta]
104
+ * @property {PincodeMetaResponse} [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 {PincodeErrorSchemaResult} error
108
- * @property {CountryMetaResult} [meta_code]
107
+ * @property {PincodeErrorSchemaResponse} error
108
+ * @property {CountryMetaResponse} [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 PincodeDetails
120
+ * @typedef PincodeApiResponse
121
121
  * @property {boolean} success - Indicates whether the API request was
122
122
  * successful (true) or failed (false).
123
- * @property {PincodeDataResult[]} [data] - Contains the actual response data
123
+ * @property {PincodeDataResponse[]} [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 {PincodeErrorSchemaResult} error
126
+ * @property {PincodeErrorSchemaResponse} error
127
127
  */
128
128
 
129
129
  /**
130
- * @typedef TATCategoryDetails
130
+ * @typedef TATCategoryRequest
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 TATArticlesDetails
139
- * @property {TATCategoryDetails} [category]
138
+ * @typedef TATArticlesRequest
139
+ * @property {TATCategoryRequest} [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 TATLocationDetailsDetails
147
+ * @typedef TATLocationDetailsRequest
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 {TATArticlesDetails[]} [articles] - List of articles included in
151
+ * @property {TATArticlesRequest[]} [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 TATViewDetails
157
+ * @typedef TATViewRequest
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 {TATLocationDetailsDetails[]} [location_details] - Locations
166
+ * @property {TATLocationDetailsRequest[]} [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 TATErrorSchemaResult
174
+ * @typedef TATErrorSchemaResponse
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 TATTimestampResult
184
+ * @typedef TATTimestampResponse
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 TATFormattedResult
190
+ * @typedef TATFormattedResponse
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 TATPromiseResult
197
- * @property {TATTimestampResult} [timestamp]
198
- * @property {TATFormattedResult} [formatted]
196
+ * @typedef TATPromiseResponse
197
+ * @property {TATTimestampResponse} [timestamp]
198
+ * @property {TATFormattedResponse} [formatted]
199
199
  */
200
200
 
201
201
  /**
202
- * @typedef TATArticlesResult
202
+ * @typedef TATArticlesResponse
203
203
  * @property {string} [manufacturing_time_unit] - The unit of measurement for
204
204
  * the manufacturing time such as hours or days.
205
- * @property {TATErrorSchemaResult} [error]
205
+ * @property {TATErrorSchemaResponse} [error]
206
206
  * @property {boolean} [is_cod_available] - Indicates whether Cash on Delivery
207
207
  * (COD) is available for the articles.
208
- * @property {TATPromiseResult} [promise]
208
+ * @property {TATPromiseResponse} [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 {TATCategoryDetails} [category]
211
+ * @property {TATCategoryRequest} [category]
212
212
  * @property {number} [_manufacturing_time_seconds] - The manufacturing time
213
213
  * converted into seconds.
214
214
  */
215
215
 
216
216
  /**
217
- * @typedef TATLocationDetailsResult
217
+ * @typedef TATLocationDetailsResponse
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 {TATArticlesResult[]} [articles] - List of articles included in the
222
- * fulfillment request, which provides details about the items to be processed
223
- * or shipped.
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.
224
224
  */
225
225
 
226
226
  /**
227
- * @typedef TATViewResult
227
+ * @typedef TATViewResponse
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 {TATErrorSchemaResult} [error]
233
+ * @property {TATErrorSchemaResponse} [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 {TATLocationDetailsResult[]} [location_details] - Location involved
244
- * in the request.
243
+ * @property {TATLocationDetailsResponse[]} [location_details] - Location
244
+ * involved in the request.
245
245
  * @property {string} [journey] - Type of journey, either forward or return.
246
246
  */
247
247
 
@@ -272,14 +272,15 @@ const Joi = require("joi");
272
272
  */
273
273
 
274
274
  /**
275
- * @typedef LogisticsResult
276
- * @property {DP} [dp]
275
+ * @typedef LogisticsResponse
276
+ * @property {Object} [dp] - Provide entity responsible for handling the
277
+ * delivery of goods.
277
278
  */
278
279
 
279
280
  /**
280
- * @typedef CountryEntityResult
281
- * @property {CountryMetaResult} [meta]
282
- * @property {LogisticsResult} [logistics]
281
+ * @typedef CountryEntityResponse
282
+ * @property {CountryMetaResponse} [meta]
283
+ * @property {LogisticsResponse} [logistics]
283
284
  * @property {string} [display_name] - User-friendly version of the geographical
284
285
  * data, which may be more descriptive or formatted differently.
285
286
  * @property {string} [type] - Specifies the type of geographical feature or
@@ -294,20 +295,20 @@ const Joi = require("joi");
294
295
  */
295
296
 
296
297
  /**
297
- * @typedef CountryListResult
298
- * @property {CountryEntityResult[]} [results] - A list of country entities,
298
+ * @typedef CountryListResponse
299
+ * @property {CountryEntityResponse[]} [results] - A list of country entities,
299
300
  * each containing details about individual countries.
300
301
  */
301
302
 
302
303
  /**
303
- * @typedef GetZoneFromPincodeViewDetails
304
+ * @typedef GetZoneFromPincodeViewRequest
304
305
  * @property {string} pincode - The postal code or ZIP code used to pinpoint a
305
306
  * specific geographic area or location.
306
307
  * @property {string} country - The country where the pincode is located.
307
308
  */
308
309
 
309
310
  /**
310
- * @typedef GetZoneFromPincodeViewResult
311
+ * @typedef GetZoneFromPincodeViewResponse
311
312
  * @property {string} serviceability_type - Specifies the type of serviceability
312
313
  * for the given pincode, indicating whether it's deliverable or serviceable
313
314
  * under certain conditions.
@@ -316,7 +317,7 @@ const Joi = require("joi");
316
317
  */
317
318
 
318
319
  /**
319
- * @typedef ReAssignStoreDetails
320
+ * @typedef ReAssignStoreRequest
320
321
  * @property {Object} configuration - Specifies the configuration settings or
321
322
  * parameters for the store reassignment.
322
323
  * @property {string} to_pincode - The postal code of the destination location
@@ -329,7 +330,7 @@ const Joi = require("joi");
329
330
  */
330
331
 
331
332
  /**
332
- * @typedef ReAssignStoreResult
333
+ * @typedef ReAssignStoreResponse
333
334
  * @property {string} to_pincode - The postal code of the destination location
334
335
  * where the fulfillment or shipment is headed.
335
336
  * @property {string} pystormbreaker_uuid - A unique identifier for tracking the
@@ -520,7 +521,6 @@ const Joi = require("joi");
520
521
  * @property {string} [name] - The actual geographical data, such as country
521
522
  * names (India), state names (Maharashtra), pin codes (400603), city names
522
523
  * (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,9 +540,6 @@ 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.
546
543
  * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
547
544
  * @property {string} [type] - Specifies the category of the address component,
548
545
  * such as pincode, state, city, country, or sector.
@@ -563,9 +560,6 @@ const Joi = require("joi");
563
560
  * (Dubai), or local sectors (Deira).
564
561
  * @property {string} [display_name] - User-friendly version of the geographical
565
562
  * 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.
569
563
  * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
570
564
  * @property {string} [type] - Specifies the category of the address component,
571
565
  * such as pincode, state, city, country, or sector.
@@ -576,134 +570,22 @@ const Joi = require("joi");
576
570
  */
577
571
 
578
572
  /**
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
573
+ * @typedef ErrorResponse
681
574
  * @property {string} [error] - Error code identifying the type of error.
682
575
  * @property {string} [message] - User-friendly explanation of what went wrong.
683
576
  */
684
577
 
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
-
696
578
  class LogisticApplicationModel {
697
- /** @returns {GetStoreResult} */
698
- static GetStoreResult() {
579
+ /** @returns {GetStoreResponse} */
580
+ static GetStoreResponse() {
699
581
  return Joi.object({
700
- items: Joi.array().items(LogisticApplicationModel.StoreItemResult()),
582
+ items: Joi.array().items(LogisticApplicationModel.StoreItemResponse()),
701
583
  page: LogisticApplicationModel.Page(),
702
584
  });
703
585
  }
704
586
 
705
- /** @returns {StoreItemResult} */
706
- static StoreItemResult() {
587
+ /** @returns {StoreItemResponse} */
588
+ static StoreItemResponse() {
707
589
  return Joi.object({
708
590
  id: Joi.number(),
709
591
  store_type: Joi.string().allow(""),
@@ -716,8 +598,8 @@ class LogisticApplicationModel {
716
598
  });
717
599
  }
718
600
 
719
- /** @returns {ValidateAddressDetails} */
720
- static ValidateAddressDetails() {
601
+ /** @returns {ValidateAddressRequest} */
602
+ static ValidateAddressRequest() {
721
603
  return Joi.object({
722
604
  address: Joi.string().allow(""),
723
605
  address1: Joi.string().allow(""),
@@ -734,8 +616,8 @@ class LogisticApplicationModel {
734
616
  });
735
617
  }
736
618
 
737
- /** @returns {PincodeParentsResult} */
738
- static PincodeParentsResult() {
619
+ /** @returns {PincodeParentsResponse} */
620
+ static PincodeParentsResponse() {
739
621
  return Joi.object({
740
622
  sub_type: Joi.string().allow(""),
741
623
  display_name: Joi.string().allow(""),
@@ -744,16 +626,16 @@ class LogisticApplicationModel {
744
626
  });
745
627
  }
746
628
 
747
- /** @returns {PincodeMetaResult} */
748
- static PincodeMetaResult() {
629
+ /** @returns {PincodeMetaResponse} */
630
+ static PincodeMetaResponse() {
749
631
  return Joi.object({
750
632
  zone: Joi.string().allow(""),
751
633
  internal_zone_id: Joi.number(),
752
634
  });
753
635
  }
754
636
 
755
- /** @returns {PincodeErrorSchemaResult} */
756
- static PincodeErrorSchemaResult() {
637
+ /** @returns {PincodeErrorSchemaResponse} */
638
+ static PincodeErrorSchemaResponse() {
757
639
  return Joi.object({
758
640
  message: Joi.string().allow("").allow(null),
759
641
  value: Joi.string().allow("").allow(null),
@@ -761,8 +643,8 @@ class LogisticApplicationModel {
761
643
  });
762
644
  }
763
645
 
764
- /** @returns {CountryMetaResult} */
765
- static CountryMetaResult() {
646
+ /** @returns {CountryMetaResponse} */
647
+ static CountryMetaResponse() {
766
648
  return Joi.object({
767
649
  country_code: Joi.string().allow(""),
768
650
  isd_code: Joi.string().allow(""),
@@ -777,16 +659,16 @@ class LogisticApplicationModel {
777
659
  });
778
660
  }
779
661
 
780
- /** @returns {PincodeDataResult} */
781
- static PincodeDataResult() {
662
+ /** @returns {PincodeDataResponse} */
663
+ static PincodeDataResponse() {
782
664
  return Joi.object({
783
665
  parents: Joi.array().items(
784
- LogisticApplicationModel.PincodeParentsResult()
666
+ LogisticApplicationModel.PincodeParentsResponse()
785
667
  ),
786
- meta: LogisticApplicationModel.PincodeMetaResult(),
668
+ meta: LogisticApplicationModel.PincodeMetaResponse(),
787
669
  display_name: Joi.string().allow(""),
788
- error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
789
- meta_code: LogisticApplicationModel.CountryMetaResult(),
670
+ error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
671
+ meta_code: LogisticApplicationModel.CountryMetaResponse(),
790
672
  lat_long: LogisticApplicationModel.PincodeLatLongData(),
791
673
  sub_type: Joi.string().allow(""),
792
674
  name: Joi.string().allow(""),
@@ -794,59 +676,59 @@ class LogisticApplicationModel {
794
676
  });
795
677
  }
796
678
 
797
- /** @returns {PincodeDetails} */
798
- static PincodeDetails() {
679
+ /** @returns {PincodeApiResponse} */
680
+ static PincodeApiResponse() {
799
681
  return Joi.object({
800
682
  success: Joi.boolean().required(),
801
- data: Joi.array().items(LogisticApplicationModel.PincodeDataResult()),
802
- error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
683
+ data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
684
+ error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
803
685
  });
804
686
  }
805
687
 
806
- /** @returns {TATCategoryDetails} */
807
- static TATCategoryDetails() {
688
+ /** @returns {TATCategoryRequest} */
689
+ static TATCategoryRequest() {
808
690
  return Joi.object({
809
691
  level: Joi.string().allow(""),
810
692
  id: Joi.number(),
811
693
  });
812
694
  }
813
695
 
814
- /** @returns {TATArticlesDetails} */
815
- static TATArticlesDetails() {
696
+ /** @returns {TATArticlesRequest} */
697
+ static TATArticlesRequest() {
816
698
  return Joi.object({
817
- category: LogisticApplicationModel.TATCategoryDetails(),
699
+ category: LogisticApplicationModel.TATCategoryRequest(),
818
700
  manufacturing_time_unit: Joi.string().allow(""),
819
701
  manufacturing_time: Joi.number(),
820
702
  });
821
703
  }
822
704
 
823
- /** @returns {TATLocationDetailsDetails} */
824
- static TATLocationDetailsDetails() {
705
+ /** @returns {TATLocationDetailsRequest} */
706
+ static TATLocationDetailsRequest() {
825
707
  return Joi.object({
826
708
  fulfillment_id: Joi.number(),
827
709
  from_pincode: Joi.string().allow(""),
828
710
  articles: Joi.array().items(
829
- LogisticApplicationModel.TATArticlesDetails()
711
+ LogisticApplicationModel.TATArticlesRequest()
830
712
  ),
831
713
  });
832
714
  }
833
715
 
834
- /** @returns {TATViewDetails} */
835
- static TATViewDetails() {
716
+ /** @returns {TATViewRequest} */
717
+ static TATViewRequest() {
836
718
  return Joi.object({
837
719
  to_pincode: Joi.string().allow(""),
838
720
  source: Joi.string().allow(""),
839
721
  action: Joi.string().allow(""),
840
722
  identifier: Joi.string().allow(""),
841
723
  location_details: Joi.array().items(
842
- LogisticApplicationModel.TATLocationDetailsDetails()
724
+ LogisticApplicationModel.TATLocationDetailsRequest()
843
725
  ),
844
726
  journey: Joi.string().allow(""),
845
727
  });
846
728
  }
847
729
 
848
- /** @returns {TATErrorSchemaResult} */
849
- static TATErrorSchemaResult() {
730
+ /** @returns {TATErrorSchemaResponse} */
731
+ static TATErrorSchemaResponse() {
850
732
  return Joi.object({
851
733
  message: Joi.string().allow("").allow(null),
852
734
  value: Joi.string().allow("").allow(null),
@@ -854,60 +736,62 @@ class LogisticApplicationModel {
854
736
  });
855
737
  }
856
738
 
857
- /** @returns {TATTimestampResult} */
858
- static TATTimestampResult() {
739
+ /** @returns {TATTimestampResponse} */
740
+ static TATTimestampResponse() {
859
741
  return Joi.object({
860
742
  min: Joi.number(),
861
743
  max: Joi.number(),
862
744
  });
863
745
  }
864
746
 
865
- /** @returns {TATFormattedResult} */
866
- static TATFormattedResult() {
747
+ /** @returns {TATFormattedResponse} */
748
+ static TATFormattedResponse() {
867
749
  return Joi.object({
868
750
  min: Joi.string().allow(""),
869
751
  max: Joi.string().allow(""),
870
752
  });
871
753
  }
872
754
 
873
- /** @returns {TATPromiseResult} */
874
- static TATPromiseResult() {
755
+ /** @returns {TATPromiseResponse} */
756
+ static TATPromiseResponse() {
875
757
  return Joi.object({
876
- timestamp: LogisticApplicationModel.TATTimestampResult(),
877
- formatted: LogisticApplicationModel.TATFormattedResult(),
758
+ timestamp: LogisticApplicationModel.TATTimestampResponse(),
759
+ formatted: LogisticApplicationModel.TATFormattedResponse(),
878
760
  });
879
761
  }
880
762
 
881
- /** @returns {TATArticlesResult} */
882
- static TATArticlesResult() {
763
+ /** @returns {TATArticlesResponse} */
764
+ static TATArticlesResponse() {
883
765
  return Joi.object({
884
766
  manufacturing_time_unit: Joi.string().allow(""),
885
- error: LogisticApplicationModel.TATErrorSchemaResult(),
767
+ error: LogisticApplicationModel.TATErrorSchemaResponse(),
886
768
  is_cod_available: Joi.boolean(),
887
- promise: LogisticApplicationModel.TATPromiseResult(),
769
+ promise: LogisticApplicationModel.TATPromiseResponse(),
888
770
  manufacturing_time: Joi.number(),
889
- category: LogisticApplicationModel.TATCategoryDetails(),
771
+ category: LogisticApplicationModel.TATCategoryRequest(),
890
772
  _manufacturing_time_seconds: Joi.number(),
891
773
  });
892
774
  }
893
775
 
894
- /** @returns {TATLocationDetailsResult} */
895
- static TATLocationDetailsResult() {
776
+ /** @returns {TATLocationDetailsResponse} */
777
+ static TATLocationDetailsResponse() {
896
778
  return Joi.object({
897
779
  fulfillment_id: Joi.number(),
898
780
  from_pincode: Joi.string().allow(""),
899
- articles: Joi.array().items(LogisticApplicationModel.TATArticlesResult()),
781
+ articles: Joi.array().items(
782
+ LogisticApplicationModel.TATArticlesResponse()
783
+ ),
900
784
  });
901
785
  }
902
786
 
903
- /** @returns {TATViewResult} */
904
- static TATViewResult() {
787
+ /** @returns {TATViewResponse} */
788
+ static TATViewResponse() {
905
789
  return Joi.object({
906
790
  to_pincode: Joi.string().allow(""),
907
791
  request_uuid: Joi.string().allow(""),
908
792
  payment_mode: Joi.string().allow(""),
909
793
  success: Joi.boolean(),
910
- error: LogisticApplicationModel.TATErrorSchemaResult(),
794
+ error: LogisticApplicationModel.TATErrorSchemaResponse(),
911
795
  is_cod_available: Joi.boolean(),
912
796
  source: Joi.string().allow(""),
913
797
  action: Joi.string().allow(""),
@@ -915,7 +799,7 @@ class LogisticApplicationModel {
915
799
  to_city: Joi.string().allow(""),
916
800
  identifier: Joi.string().allow(""),
917
801
  location_details: Joi.array().items(
918
- LogisticApplicationModel.TATLocationDetailsResult()
802
+ LogisticApplicationModel.TATLocationDetailsResponse()
919
803
  ),
920
804
  journey: Joi.string().allow(""),
921
805
  });
@@ -937,18 +821,18 @@ class LogisticApplicationModel {
937
821
  });
938
822
  }
939
823
 
940
- /** @returns {LogisticsResult} */
941
- static LogisticsResult() {
824
+ /** @returns {LogisticsResponse} */
825
+ static LogisticsResponse() {
942
826
  return Joi.object({
943
- dp: LogisticApplicationModel.DP(),
827
+ dp: Joi.object().pattern(/\S/, LogisticApplicationModel.DP()),
944
828
  });
945
829
  }
946
830
 
947
- /** @returns {CountryEntityResult} */
948
- static CountryEntityResult() {
831
+ /** @returns {CountryEntityResponse} */
832
+ static CountryEntityResponse() {
949
833
  return Joi.object({
950
- meta: LogisticApplicationModel.CountryMetaResult(),
951
- logistics: LogisticApplicationModel.LogisticsResult(),
834
+ meta: LogisticApplicationModel.CountryMetaResponse(),
835
+ logistics: LogisticApplicationModel.LogisticsResponse(),
952
836
  display_name: Joi.string().allow(""),
953
837
  type: Joi.string().allow(""),
954
838
  is_active: Joi.boolean(),
@@ -959,52 +843,50 @@ class LogisticApplicationModel {
959
843
  });
960
844
  }
961
845
 
962
- /** @returns {CountryListResult} */
963
- static CountryListResult() {
846
+ /** @returns {CountryListResponse} */
847
+ static CountryListResponse() {
964
848
  return Joi.object({
965
849
  results: Joi.array().items(
966
- LogisticApplicationModel.CountryEntityResult()
850
+ LogisticApplicationModel.CountryEntityResponse()
967
851
  ),
968
852
  });
969
853
  }
970
854
 
971
- /** @returns {GetZoneFromPincodeViewDetails} */
972
- static GetZoneFromPincodeViewDetails() {
855
+ /** @returns {GetZoneFromPincodeViewRequest} */
856
+ static GetZoneFromPincodeViewRequest() {
973
857
  return Joi.object({
974
858
  pincode: Joi.string().allow("").required(),
975
859
  country: Joi.string().allow("").required(),
976
860
  });
977
861
  }
978
862
 
979
- /** @returns {GetZoneFromPincodeViewResult} */
980
- static GetZoneFromPincodeViewResult() {
863
+ /** @returns {GetZoneFromPincodeViewResponse} */
864
+ static GetZoneFromPincodeViewResponse() {
981
865
  return Joi.object({
982
866
  serviceability_type: Joi.string().allow("").required(),
983
867
  zones: Joi.array().items(Joi.string().allow("")).required(),
984
868
  });
985
869
  }
986
870
 
987
- /** @returns {ReAssignStoreDetails} */
988
- static ReAssignStoreDetails() {
871
+ /** @returns {ReAssignStoreRequest} */
872
+ static ReAssignStoreRequest() {
989
873
  return Joi.object({
990
- configuration: Joi.object().pattern(/\S/, Joi.any()).required(),
874
+ configuration: Joi.any().required(),
991
875
  to_pincode: Joi.string().allow("").required(),
992
876
  ignored_locations: Joi.array().items(Joi.number()).required(),
993
877
  identifier: Joi.string().allow("").required(),
994
- articles: Joi.array()
995
- .items(Joi.object().pattern(/\S/, Joi.any()))
996
- .required(),
878
+ articles: Joi.array().items(Joi.any()).required(),
997
879
  });
998
880
  }
999
881
 
1000
- /** @returns {ReAssignStoreResult} */
1001
- static ReAssignStoreResult() {
882
+ /** @returns {ReAssignStoreResponse} */
883
+ static ReAssignStoreResponse() {
1002
884
  return Joi.object({
1003
885
  to_pincode: Joi.string().allow("").required(),
1004
886
  pystormbreaker_uuid: Joi.string().allow("").required(),
1005
887
  success: Joi.boolean().required(),
1006
- error: Joi.object().pattern(/\S/, Joi.any()).required(),
1007
- assigned_stores: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
888
+ error: Joi.any().required(),
889
+ assigned_stores: Joi.array().items(Joi.any()),
1008
890
  });
1009
891
  }
1010
892
 
@@ -1190,7 +1072,6 @@ class LogisticApplicationModel {
1190
1072
  return Joi.object({
1191
1073
  id: Joi.string().allow(""),
1192
1074
  name: Joi.string().allow(""),
1193
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1194
1075
  display_name: Joi.string().allow(""),
1195
1076
  parent_ids: Joi.array().items(Joi.string().allow("")),
1196
1077
  type: Joi.string().allow(""),
@@ -1204,8 +1085,6 @@ class LogisticApplicationModel {
1204
1085
  id: Joi.string().allow(""),
1205
1086
  name: Joi.string().allow(""),
1206
1087
  display_name: Joi.string().allow(""),
1207
- code: Joi.string().allow(""),
1208
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1209
1088
  parent_ids: Joi.array().items(Joi.string().allow("")),
1210
1089
  type: Joi.string().allow(""),
1211
1090
  });
@@ -1225,167 +1104,18 @@ class LogisticApplicationModel {
1225
1104
  id: Joi.string().allow(""),
1226
1105
  name: Joi.string().allow(""),
1227
1106
  display_name: Joi.string().allow(""),
1228
- code: Joi.string().allow(""),
1229
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1230
1107
  parent_ids: Joi.array().items(Joi.string().allow("")),
1231
1108
  type: Joi.string().allow(""),
1232
1109
  localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
1233
1110
  });
1234
1111
  }
1235
1112
 
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() {
1113
+ /** @returns {ErrorResponse} */
1114
+ static ErrorResponse() {
1370
1115
  return Joi.object({
1371
1116
  error: Joi.string().allow(""),
1372
1117
  message: Joi.string().allow(""),
1373
1118
  });
1374
1119
  }
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
- }
1390
1120
  }
1391
1121
  module.exports = LogisticApplicationModel;