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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
  6. package/sdk/application/Cart/CartApplicationClient.js +53 -130
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
  8. package/sdk/application/Cart/CartApplicationModel.js +159 -380
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
  10. package/sdk/application/Cart/CartApplicationValidator.js +18 -34
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
  16. package/sdk/application/Common/CommonApplicationClient.js +5 -6
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
  26. package/sdk/application/Content/ContentApplicationClient.js +75 -54
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
  28. package/sdk/application/Content/ContentApplicationModel.js +32 -83
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
  30. package/sdk/application/Content/ContentApplicationValidator.js +10 -15
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
  38. package/sdk/application/Lead/LeadApplicationClient.js +3 -2
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  40. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
  43. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
  44. package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
  45. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
  46. package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
  47. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
  48. package/sdk/application/Order/OrderApplicationClient.js +13 -96
  49. package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
  50. package/sdk/application/Order/OrderApplicationModel.js +81 -279
  51. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
  52. package/sdk/application/Order/OrderApplicationValidator.js +2 -15
  53. package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
  54. package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
  55. package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
  56. package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
  57. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  58. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  59. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
  60. package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
  61. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  62. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  63. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  64. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  65. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  66. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  67. package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
  68. package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
  69. package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
  70. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
  71. package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
  72. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  73. package/sdk/application/User/UserApplicationClient.js +10 -10
  74. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  75. package/sdk/application/User/UserApplicationModel.js +16 -16
  76. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  77. package/sdk/application/User/UserApplicationValidator.js +2 -2
  78. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  79. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  80. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
  81. package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
  82. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  83. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  84. package/sdk/application/index.d.ts +0 -1
  85. package/sdk/application/index.js +0 -2
  86. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  87. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  88. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  89. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  90. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  91. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  92. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  93. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  95. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  96. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  97. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  98. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  99. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  100. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  101. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  102. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  103. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  104. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  105. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  107. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  108. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  109. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  110. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  111. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  112. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  115. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  117. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  123. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  124. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  125. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  126. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  127. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  128. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  129. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  131. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  133. package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
  134. package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  139. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  140. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  141. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
  142. package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
  143. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  145. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  146. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  147. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  148. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  149. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  150. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  151. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  153. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  154. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  157. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  158. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  159. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  160. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  163. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  164. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  165. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  166. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  167. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
  168. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
  169. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  170. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  171. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  172. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  173. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  174. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  175. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  176. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  177. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  178. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  179. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  180. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  181. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  182. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  183. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  184. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  185. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  186. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  187. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  188. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  189. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  191. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  192. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  193. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  194. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  195. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  196. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  197. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  198. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  199. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  200. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  201. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  202. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
  212. package/sdk/platform/Order/OrderPlatformClient.js +245 -597
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
  214. package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
  216. package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  231. package/sdk/platform/PlatformClient.d.ts +2 -0
  232. package/sdk/platform/PlatformClient.js +4 -0
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  252. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  258. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  271. package/sdk/platform/index.d.ts +1 -0
  272. package/sdk/platform/index.js +2 -0
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  278. package/sdk/public/Content/ContentPublicClient.js +5 -791
  279. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  280. package/sdk/public/Content/ContentPublicModel.js +3 -649
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  282. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  290. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  291. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  292. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  293. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  294. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
@@ -1,14 +1,14 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef BulkRegionServiceabilityTatDetails
4
+ * @typedef BulkRegionServiceabilityTatRequest
5
5
  * @property {string} country
6
6
  * @property {string} region
7
7
  * @property {string} type
8
8
  */
9
9
 
10
10
  /**
11
- * @typedef BulkRegionServiceabilityTatResultItemData
11
+ * @typedef BulkRegionServiceabilityTatResponseItemData
12
12
  * @property {string} [country]
13
13
  * @property {string} [region]
14
14
  * @property {string} [type]
@@ -19,21 +19,21 @@ const Joi = require("joi");
19
19
  */
20
20
 
21
21
  /**
22
- * @typedef ErrorResult
22
+ * @typedef ErrorResponse
23
23
  * @property {string} value
24
24
  * @property {string} message
25
25
  * @property {string} type
26
26
  */
27
27
 
28
28
  /**
29
- * @typedef FailureResult
29
+ * @typedef FailureResponse
30
30
  * @property {boolean} success
31
- * @property {ErrorResult[]} error
31
+ * @property {ErrorResponse[]} error
32
32
  */
33
33
 
34
34
  /**
35
- * @typedef BulkRegionServiceabilityTatResult
36
- * @property {BulkRegionServiceabilityTatResultItemData[]} [items]
35
+ * @typedef BulkRegionServiceabilityTatResponse
36
+ * @property {BulkRegionServiceabilityTatResponseItemData[]} [items]
37
37
  * @property {Page} [page]
38
38
  */
39
39
 
@@ -49,180 +49,7 @@ const Joi = require("joi");
49
49
  */
50
50
 
51
51
  /**
52
- * @typedef RegionTatItemResult
53
- * @property {RegionTatResult[]} items
54
- * @property {Page} page
55
- */
56
-
57
- /**
58
- * @typedef RegionServiceabilityItemResult
59
- * @property {RegionServiceabilityResult[]} items
60
- * @property {Page} page
61
- */
62
-
63
- /**
64
- * @typedef ServiceabilityDetailsResult
65
- * @property {boolean} [first_mile] - Boolean value indicating whether
66
- * first-mile service is available or not.
67
- * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
68
- * service is available or not.
69
- * @property {number} [cod_limit] - Limit on the amount of cash on delivery
70
- * (COD) payments allowed in the specified region.
71
- * @property {boolean} [doorstep_return] - Indicates if doorstep return service
72
- * is available. This refers to the ability to return items directly from the
73
- * customer's doorstep.
74
- * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
75
- * service is available. This refers to the ability to perform quality checks
76
- * on items at the customer's doorstep.
77
- * @property {string} [pickup_cutoff] - Time of day by which pickups must be
78
- * scheduled to be processed on the same day.
79
- * @property {boolean} [installation] - Boolean value indicating whether
80
- * installation services are available in the specified region or not.
81
- * @property {string} [id] - Unique identifier for the serviceability record.
82
- */
83
-
84
- /**
85
- * @typedef ServiceabilityDetails
86
- * @property {boolean} [first_mile] - Boolean value indicating whether
87
- * first-mile service is available or not.
88
- * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
89
- * service is available or not.
90
- * @property {number} [cod_limit] - Limit on the amount of cash on delivery
91
- * (COD) payments allowed in the specified region.
92
- * @property {boolean} [doorstep_return] - Indicates if doorstep return service
93
- * is available. This refers to the ability to return items directly from the
94
- * customer's doorstep.
95
- * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
96
- * service is available. This refers to the ability to perform quality checks
97
- * on items at the customer's doorstep.
98
- * @property {string} [pickup_cutoff] - Time of day by which pickups must be
99
- * scheduled to be processed on the same day.
100
- * @property {boolean} [installation] - Boolean value indicating whether
101
- * installation services are available in the specified region or not.
102
- */
103
-
104
- /**
105
- * @typedef RegionServiceabilityResult
106
- * @property {string} country_code - ISO2 code representing the country where
107
- * the serviceability is being specified.
108
- * @property {string} [state_code] - Code representing the state or province
109
- * within the country where the serviceability is being specified.
110
- * @property {string} [city_code] - Code representing the city within the state
111
- * where the serviceability is being specified.
112
- * @property {string} [sector_code] - Code representing a specific sector or
113
- * district within the city where the serviceability is being specified.
114
- * @property {string} [pincode] - Postal or ZIP code for the specific area
115
- * within the city where the serviceability is being specified.
116
- * @property {boolean} [first_mile] - Boolean value indicating whether
117
- * first-mile service is available or not.
118
- * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
119
- * service is available or not.
120
- * @property {number} [cod_limit] - Limit on the amount of cash on delivery
121
- * (COD) payments allowed in the specified region.
122
- * @property {boolean} [doorstep_return] - Indicates if doorstep return service
123
- * is available. This refers to the ability to return items directly from the
124
- * customer's doorstep.
125
- * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
126
- * service is available. This refers to the ability to perform quality checks
127
- * on items at the customer's doorstep.
128
- * @property {string} [pickup_cutoff] - Time of day by which pickups must be
129
- * scheduled to be processed on the same day.
130
- * @property {boolean} [installation] - Boolean value indicating whether
131
- * installation services are available in the specified region or not.
132
- * @property {string} id - Unique identifier for the serviceability record.
133
- */
134
-
135
- /**
136
- * @typedef RegionServiceabilityDetails
137
- * @property {string} country_code - ISO2 code representing the country where
138
- * the serviceability is being specified.
139
- * @property {string} [state_code] - Code representing the state or province
140
- * within the country where the serviceability is being specified.
141
- * @property {string} [city_code] - Code representing the city within the state
142
- * where the serviceability is being specified.
143
- * @property {string} [sector_code] - Code representing a specific sector or
144
- * district within the city where the serviceability is being specified.
145
- * @property {string} [pincode] - Postal or ZIP code for the specific area
146
- * within the city where the serviceability is being specified.
147
- * @property {boolean} [first_mile] - Boolean value indicating whether
148
- * first-mile service is available or not.
149
- * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
150
- * service is available or not.
151
- * @property {number} [cod_limit] - Limit on the amount of cash on delivery
152
- * (COD) payments allowed in the specified region.
153
- * @property {boolean} [doorstep_return] - Indicates if doorstep return service
154
- * is available. This refers to the ability to return items directly from the
155
- * customer's doorstep.
156
- * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
157
- * service is available. This refers to the ability to perform quality checks
158
- * on items at the customer's doorstep.
159
- * @property {string} [pickup_cutoff] - Time of day by which pickups must be
160
- * scheduled to be processed on the same day.
161
- * @property {boolean} [installation] - Boolean value indicating whether
162
- * installation services are available in the specified region or not.
163
- */
164
-
165
- /**
166
- * @typedef RegionTatDetails
167
- * @property {string} from_country_code - ISO2 code representing the country of
168
- * origin for the delivery.
169
- * @property {string} [from_state_code] - Code representing the state or
170
- * province of origin within the country.
171
- * @property {string} [from_city_code] - Code representing the city of origin
172
- * within the state.
173
- * @property {string} [from_sector_code] - Code representing a specific sector
174
- * or district within the city of origin.
175
- * @property {string} [from_pincode] - Postal or ZIP code of the origin area.
176
- * @property {string} to_country_code - ISO2 code representing the destination country.
177
- * @property {string} [to_state_code] - Code representing the state or province
178
- * of the destination within the country.
179
- * @property {string} [to_city_code] - Code representing the city of destination
180
- * within the state.
181
- * @property {string} [to_sector_code] - Code representing a specific sector or
182
- * district within the city of destination.
183
- * @property {string} [to_pincode] - Postal or ZIP code of the destination area.
184
- * @property {number} [max_delivery_time] - Maximum time required for delivery
185
- * from the origin to the destination in seconds.
186
- * @property {number} [min_delivery_time] - Minimum time required for delivery
187
- * from the origin to the destination in seconds.
188
- */
189
-
190
- /**
191
- * @typedef RegionTatUpdateDetails
192
- * @property {number} [max_delivery_time] - Maximum time required for delivery
193
- * from the origin to the destination in seconds.
194
- * @property {number} [min_delivery_time] - Minimum time required for delivery
195
- * from the origin to the destination in seconds.
196
- */
197
-
198
- /**
199
- * @typedef RegionTatResult
200
- * @property {string} from_country_code - ISO2 code representing the country of
201
- * origin for the delivery.
202
- * @property {string} [from_state_code] - Code representing the state or
203
- * province of origin within the country.
204
- * @property {string} [from_city_code] - Code representing the city of origin
205
- * within the state.
206
- * @property {string} [from_sector_code] - Code representing a specific sector
207
- * or district within the city of origin.
208
- * @property {string} [from_pincode] - Postal or ZIP code of the origin area.
209
- * @property {string} to_country_code - ISO2 code representing the destination country.
210
- * @property {string} [to_state_code] - Code representing the state or province
211
- * of the destination within the country.
212
- * @property {string} [to_city_code] - Code representing the city of destination
213
- * within the state.
214
- * @property {string} [to_sector_code] - Code representing a specific sector or
215
- * district within the city of destination.
216
- * @property {string} [to_pincode] - Postal or ZIP code of the destination area.
217
- * @property {number} [max_delivery_time] - Maximum time required for delivery
218
- * from the origin to the destination in seconds.
219
- * @property {number} [min_delivery_time] - Minimum time required for delivery
220
- * from the origin to the destination in seconds.
221
- * @property {string} id - Unique identifier for the delivery time record.
222
- */
223
-
224
- /**
225
- * @typedef BulkRegionJobDetails
52
+ * @typedef BulkRegionJobSerializer
226
53
  * @property {string} [file_path]
227
54
  * @property {string} country
228
55
  * @property {string} action
@@ -230,7 +57,7 @@ const Joi = require("joi");
230
57
  */
231
58
 
232
59
  /**
233
- * @typedef BulkRegionResultItemData
60
+ * @typedef BulkRegionResponseItemData
234
61
  * @property {string} file_path
235
62
  * @property {number} [failed]
236
63
  * @property {Object[]} [failed_records]
@@ -245,8 +72,8 @@ const Joi = require("joi");
245
72
  */
246
73
 
247
74
  /**
248
- * @typedef BulkRegionResult
249
- * @property {BulkRegionResultItemData[]} items
75
+ * @typedef BulkRegionResponse
76
+ * @property {BulkRegionResponseItemData[]} items
250
77
  * @property {Page} page
251
78
  */
252
79
 
@@ -261,7 +88,7 @@ const Joi = require("joi");
261
88
  */
262
89
 
263
90
  /**
264
- * @typedef CourierAccountDetailsBody
91
+ * @typedef CourierAccountRequestBody
265
92
  * @property {string} extension_id
266
93
  * @property {string} [account_id]
267
94
  * @property {string} scheme_id
@@ -271,19 +98,19 @@ const Joi = require("joi");
271
98
  */
272
99
 
273
100
  /**
274
- * @typedef CourierPartnerAccountFailureResult
101
+ * @typedef CourierPartnerAccountFailureResponse
275
102
  * @property {boolean} success
276
- * @property {ErrorResult[]} error
103
+ * @property {ErrorResponse[]} error
277
104
  */
278
105
 
279
106
  /**
280
- * @typedef CompanyCourierPartnerAccountListResult
281
- * @property {CourierAccountResult[]} items
107
+ * @typedef CompanyCourierPartnerAccountListResponse
108
+ * @property {CourierAccountResponse[]} items
282
109
  * @property {Page} page
283
110
  */
284
111
 
285
112
  /**
286
- * @typedef CourierAccountResult
113
+ * @typedef CourierAccountResponse
287
114
  * @property {string} account_id
288
115
  * @property {string} scheme_id
289
116
  * @property {boolean} is_self_ship
@@ -307,7 +134,7 @@ const Joi = require("joi");
307
134
  */
308
135
 
309
136
  /**
310
- * @typedef CourierPartnerSchemeDetailsModel
137
+ * @typedef CourierPartnerSchemeRequestModel
311
138
  * @property {string} extension_id
312
139
  * @property {string} [scheme_id]
313
140
  * @property {string} name
@@ -322,47 +149,24 @@ const Joi = require("joi");
322
149
 
323
150
  /**
324
151
  * @typedef CourierPartnerSchemeFeatures
325
- * @property {boolean} [doorstep_qc] - Indicates if the courier partner offers
326
- * doorstep quality check services.
327
- * @property {boolean} [qr] - Specifies whether the courier partner supports QR
328
- * code-based operations.
329
- * @property {boolean} [mps] - Denotes if the courier partner supports
330
- * multi-part shipment services.
331
- * @property {boolean} [ndr] - Indicates if the Non-Delivery Report (NDR)
332
- * feature is supported by the courier partner.
333
- * @property {number} [ndr_attempts] - Number of attempts allowed for resolving
334
- * Non-Delivery Reports (NDR).
335
- * @property {boolean} [dangerous_goods] - Specifies if the courier partner
336
- * handles the transportation of dangerous goods.
337
- * @property {boolean} [fragile_goods] - Indicates whether the courier partner
338
- * manages the shipment of fragile goods.
339
- * @property {boolean} [restricted_goods] - Indicates if the courier partner
340
- * handles restricted goods, as per regulatory guidelines.
341
- * @property {boolean} [cold_storage_goods] - Denotes if the courier partner
342
- * provides cold storage facilities for goods.
343
- * @property {boolean} [doorstep_exchange] - Indicates if the courier partner
344
- * supports doorstep exchange services.
345
- * @property {boolean} [doorstep_return] - Specifies if the courier partner
346
- * offers doorstep return services.
347
- * @property {boolean} [product_installation] - Indicates if the courier partner
348
- * provides product installation services upon delivery.
349
- * @property {boolean} [openbox_delivery] - Specifies whether the courier
350
- * partner supports open-box delivery, allowing customers to inspect goods
351
- * before accepting.
352
- * @property {string} [status_updates] - Describes the type of status updates
353
- * provided by the courier partner (e.g., real-time, periodic).
354
- * @property {boolean} [multi_pick_single_drop] - Indicates if the courier
355
- * partner supports multiple pickups to a single drop location.
356
- * @property {boolean} [single_pick_multi_drop] - Indicates whether the courier
357
- * partner supports single pickup to multiple drop locations.
358
- * @property {boolean} [multi_pick_multi_drop] - Denotes if the courier partner
359
- * offers services for multiple pickups to multiple drop locations.
360
- * @property {boolean} [ewaybill] - Specifies if the courier partner requires or
361
- * supports the generation of e-waybills for shipments.
362
- * @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
363
- * of items allowed in a quality check shipment.
364
- * @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
365
- * quantity of items allowed in a non-quality check shipment.
152
+ * @property {boolean} [doorstep_qc]
153
+ * @property {boolean} [qr]
154
+ * @property {boolean} [mps]
155
+ * @property {boolean} [ndr]
156
+ * @property {number} [ndr_attempts]
157
+ * @property {boolean} [dangerous_goods]
158
+ * @property {boolean} [fragile_goods]
159
+ * @property {boolean} [restricted_goods]
160
+ * @property {boolean} [cold_storage_goods]
161
+ * @property {boolean} [doorstep_exchange]
162
+ * @property {boolean} [doorstep_return]
163
+ * @property {boolean} [product_installation]
164
+ * @property {boolean} [openbox_delivery]
165
+ * @property {string} [status_updates]
166
+ * @property {boolean} [multi_pick_single_drop]
167
+ * @property {boolean} [single_pick_multi_drop]
168
+ * @property {boolean} [multi_pick_multi_drop]
169
+ * @property {boolean} [ewaybill]
366
170
  */
367
171
 
368
172
  /**
@@ -374,7 +178,7 @@ const Joi = require("joi");
374
178
  */
375
179
 
376
180
  /**
377
- * @typedef CourierPartnerSchemeUpdateDetails
181
+ * @typedef CourierPartnerSchemeUpdateRequest
378
182
  * @property {string} name
379
183
  * @property {ArithmeticOperations} weight
380
184
  * @property {string} transport_type
@@ -405,9 +209,6 @@ const Joi = require("joi");
405
209
  * @property {string} [latitude]
406
210
  * @property {string} [longitude]
407
211
  * @property {string} [display_name]
408
- * @property {boolean} [has_next_hierarchy] - More detailed hierarchical data is
409
- * available, meaning states, cities, or other regions within the country have
410
- * been populated in the system.
411
212
  */
412
213
 
413
214
  /**
@@ -416,20 +217,9 @@ const Joi = require("joi");
416
217
  * @property {string} [slug]
417
218
  */
418
219
 
419
- /**
420
- * @typedef ValidationError
421
- * @property {string} message - A brief description of the error encountered.
422
- * @property {string} field - The field in the request that caused the error.
423
- */
424
-
425
- /**
426
- * @typedef StandardError
427
- * @property {string} message - A brief description of the error.
428
- */
429
-
430
220
  class LogisticsPartnerModel {
431
- /** @returns {BulkRegionServiceabilityTatDetails} */
432
- static BulkRegionServiceabilityTatDetails() {
221
+ /** @returns {BulkRegionServiceabilityTatRequest} */
222
+ static BulkRegionServiceabilityTatRequest() {
433
223
  return Joi.object({
434
224
  country: Joi.string().allow("").required(),
435
225
  region: Joi.string().allow("").required(),
@@ -437,21 +227,21 @@ class LogisticsPartnerModel {
437
227
  });
438
228
  }
439
229
 
440
- /** @returns {BulkRegionServiceabilityTatResultItemData} */
441
- static BulkRegionServiceabilityTatResultItemData() {
230
+ /** @returns {BulkRegionServiceabilityTatResponseItemData} */
231
+ static BulkRegionServiceabilityTatResponseItemData() {
442
232
  return Joi.object({
443
233
  country: Joi.string().allow(""),
444
234
  region: Joi.string().allow(""),
445
235
  type: Joi.string().allow(""),
446
236
  batch_id: Joi.string().allow(""),
447
237
  status: Joi.string().allow(""),
448
- failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
238
+ failed_records: Joi.array().items(Joi.any()),
449
239
  file_path: Joi.string().allow(""),
450
240
  });
451
241
  }
452
242
 
453
- /** @returns {ErrorResult} */
454
- static ErrorResult() {
243
+ /** @returns {ErrorResponse} */
244
+ static ErrorResponse() {
455
245
  return Joi.object({
456
246
  value: Joi.string().allow("").required(),
457
247
  message: Joi.string().allow("").required(),
@@ -459,19 +249,21 @@ class LogisticsPartnerModel {
459
249
  });
460
250
  }
461
251
 
462
- /** @returns {FailureResult} */
463
- static FailureResult() {
252
+ /** @returns {FailureResponse} */
253
+ static FailureResponse() {
464
254
  return Joi.object({
465
255
  success: Joi.boolean().required(),
466
- error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
256
+ error: Joi.array()
257
+ .items(LogisticsPartnerModel.ErrorResponse())
258
+ .required(),
467
259
  });
468
260
  }
469
261
 
470
- /** @returns {BulkRegionServiceabilityTatResult} */
471
- static BulkRegionServiceabilityTatResult() {
262
+ /** @returns {BulkRegionServiceabilityTatResponse} */
263
+ static BulkRegionServiceabilityTatResponse() {
472
264
  return Joi.object({
473
265
  items: Joi.array().items(
474
- LogisticsPartnerModel.BulkRegionServiceabilityTatResultItemData()
266
+ LogisticsPartnerModel.BulkRegionServiceabilityTatResponseItemData()
475
267
  ),
476
268
  page: LogisticsPartnerModel.Page(),
477
269
  });
@@ -490,137 +282,8 @@ class LogisticsPartnerModel {
490
282
  });
491
283
  }
492
284
 
493
- /** @returns {RegionTatItemResult} */
494
- static RegionTatItemResult() {
495
- return Joi.object({
496
- items: Joi.array()
497
- .items(LogisticsPartnerModel.RegionTatResult())
498
- .required(),
499
- page: LogisticsPartnerModel.Page().required(),
500
- });
501
- }
502
-
503
- /** @returns {RegionServiceabilityItemResult} */
504
- static RegionServiceabilityItemResult() {
505
- return Joi.object({
506
- items: Joi.array()
507
- .items(LogisticsPartnerModel.RegionServiceabilityResult())
508
- .required(),
509
- page: LogisticsPartnerModel.Page().required(),
510
- });
511
- }
512
-
513
- /** @returns {ServiceabilityDetailsResult} */
514
- static ServiceabilityDetailsResult() {
515
- return Joi.object({
516
- first_mile: Joi.boolean(),
517
- last_mile: Joi.boolean(),
518
- cod_limit: Joi.number(),
519
- doorstep_return: Joi.boolean(),
520
- doorstep_qc: Joi.boolean(),
521
- pickup_cutoff: Joi.string().allow(""),
522
- installation: Joi.boolean(),
523
- id: Joi.string().allow(""),
524
- });
525
- }
526
-
527
- /** @returns {ServiceabilityDetails} */
528
- static ServiceabilityDetails() {
529
- return Joi.object({
530
- first_mile: Joi.boolean(),
531
- last_mile: Joi.boolean(),
532
- cod_limit: Joi.number(),
533
- doorstep_return: Joi.boolean(),
534
- doorstep_qc: Joi.boolean(),
535
- pickup_cutoff: Joi.string().allow(""),
536
- installation: Joi.boolean(),
537
- });
538
- }
539
-
540
- /** @returns {RegionServiceabilityResult} */
541
- static RegionServiceabilityResult() {
542
- return Joi.object({
543
- country_code: Joi.string().allow("").required(),
544
- state_code: Joi.string().allow(""),
545
- city_code: Joi.string().allow(""),
546
- sector_code: Joi.string().allow(""),
547
- pincode: Joi.string().allow(""),
548
- first_mile: Joi.boolean(),
549
- last_mile: Joi.boolean(),
550
- cod_limit: Joi.number(),
551
- doorstep_return: Joi.boolean(),
552
- doorstep_qc: Joi.boolean(),
553
- pickup_cutoff: Joi.string().allow(""),
554
- installation: Joi.boolean(),
555
- id: Joi.string().allow("").required(),
556
- });
557
- }
558
-
559
- /** @returns {RegionServiceabilityDetails} */
560
- static RegionServiceabilityDetails() {
561
- return Joi.object({
562
- country_code: Joi.string().allow("").required(),
563
- state_code: Joi.string().allow(""),
564
- city_code: Joi.string().allow(""),
565
- sector_code: Joi.string().allow(""),
566
- pincode: Joi.string().allow(""),
567
- first_mile: Joi.boolean(),
568
- last_mile: Joi.boolean(),
569
- cod_limit: Joi.number(),
570
- doorstep_return: Joi.boolean(),
571
- doorstep_qc: Joi.boolean(),
572
- pickup_cutoff: Joi.string().allow(""),
573
- installation: Joi.boolean(),
574
- });
575
- }
576
-
577
- /** @returns {RegionTatDetails} */
578
- static RegionTatDetails() {
579
- return Joi.object({
580
- from_country_code: Joi.string().allow("").required(),
581
- from_state_code: Joi.string().allow(""),
582
- from_city_code: Joi.string().allow(""),
583
- from_sector_code: Joi.string().allow(""),
584
- from_pincode: Joi.string().allow(""),
585
- to_country_code: Joi.string().allow("").required(),
586
- to_state_code: Joi.string().allow(""),
587
- to_city_code: Joi.string().allow(""),
588
- to_sector_code: Joi.string().allow(""),
589
- to_pincode: Joi.string().allow(""),
590
- max_delivery_time: Joi.number(),
591
- min_delivery_time: Joi.number(),
592
- });
593
- }
594
-
595
- /** @returns {RegionTatUpdateDetails} */
596
- static RegionTatUpdateDetails() {
597
- return Joi.object({
598
- max_delivery_time: Joi.number(),
599
- min_delivery_time: Joi.number(),
600
- });
601
- }
602
-
603
- /** @returns {RegionTatResult} */
604
- static RegionTatResult() {
605
- return Joi.object({
606
- from_country_code: Joi.string().allow("").required(),
607
- from_state_code: Joi.string().allow(""),
608
- from_city_code: Joi.string().allow(""),
609
- from_sector_code: Joi.string().allow(""),
610
- from_pincode: Joi.string().allow(""),
611
- to_country_code: Joi.string().allow("").required(),
612
- to_state_code: Joi.string().allow(""),
613
- to_city_code: Joi.string().allow(""),
614
- to_sector_code: Joi.string().allow(""),
615
- to_pincode: Joi.string().allow(""),
616
- max_delivery_time: Joi.number(),
617
- min_delivery_time: Joi.number(),
618
- id: Joi.string().allow("").required(),
619
- });
620
- }
621
-
622
- /** @returns {BulkRegionJobDetails} */
623
- static BulkRegionJobDetails() {
285
+ /** @returns {BulkRegionJobSerializer} */
286
+ static BulkRegionJobSerializer() {
624
287
  return Joi.object({
625
288
  file_path: Joi.string().allow(""),
626
289
  country: Joi.string().allow("").required(),
@@ -629,12 +292,12 @@ class LogisticsPartnerModel {
629
292
  });
630
293
  }
631
294
 
632
- /** @returns {BulkRegionResultItemData} */
633
- static BulkRegionResultItemData() {
295
+ /** @returns {BulkRegionResponseItemData} */
296
+ static BulkRegionResponseItemData() {
634
297
  return Joi.object({
635
298
  file_path: Joi.string().allow("").required(),
636
299
  failed: Joi.number(),
637
- failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
300
+ failed_records: Joi.array().items(Joi.any()),
638
301
  action: Joi.string().allow("").required(),
639
302
  batch_id: Joi.string().allow("").required(),
640
303
  country: Joi.string().allow("").required(),
@@ -646,11 +309,11 @@ class LogisticsPartnerModel {
646
309
  });
647
310
  }
648
311
 
649
- /** @returns {BulkRegionResult} */
650
- static BulkRegionResult() {
312
+ /** @returns {BulkRegionResponse} */
313
+ static BulkRegionResponse() {
651
314
  return Joi.object({
652
315
  items: Joi.array()
653
- .items(LogisticsPartnerModel.BulkRegionResultItemData())
316
+ .items(LogisticsPartnerModel.BulkRegionResponseItemData())
654
317
  .required(),
655
318
  page: LogisticsPartnerModel.Page().required(),
656
319
  });
@@ -668,8 +331,8 @@ class LogisticsPartnerModel {
668
331
  });
669
332
  }
670
333
 
671
- /** @returns {CourierAccountDetailsBody} */
672
- static CourierAccountDetailsBody() {
334
+ /** @returns {CourierAccountRequestBody} */
335
+ static CourierAccountRequestBody() {
673
336
  return Joi.object({
674
337
  extension_id: Joi.string().allow("").required(),
675
338
  account_id: Joi.string().allow(""),
@@ -680,26 +343,28 @@ class LogisticsPartnerModel {
680
343
  });
681
344
  }
682
345
 
683
- /** @returns {CourierPartnerAccountFailureResult} */
684
- static CourierPartnerAccountFailureResult() {
346
+ /** @returns {CourierPartnerAccountFailureResponse} */
347
+ static CourierPartnerAccountFailureResponse() {
685
348
  return Joi.object({
686
349
  success: Joi.boolean().required(),
687
- error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
350
+ error: Joi.array()
351
+ .items(LogisticsPartnerModel.ErrorResponse())
352
+ .required(),
688
353
  });
689
354
  }
690
355
 
691
- /** @returns {CompanyCourierPartnerAccountListResult} */
692
- static CompanyCourierPartnerAccountListResult() {
356
+ /** @returns {CompanyCourierPartnerAccountListResponse} */
357
+ static CompanyCourierPartnerAccountListResponse() {
693
358
  return Joi.object({
694
359
  items: Joi.array()
695
- .items(LogisticsPartnerModel.CourierAccountResult())
360
+ .items(LogisticsPartnerModel.CourierAccountResponse())
696
361
  .required(),
697
362
  page: LogisticsPartnerModel.Page().required(),
698
363
  });
699
364
  }
700
365
 
701
- /** @returns {CourierAccountResult} */
702
- static CourierAccountResult() {
366
+ /** @returns {CourierAccountResponse} */
367
+ static CourierAccountResponse() {
703
368
  return Joi.object({
704
369
  account_id: Joi.string().allow("").required(),
705
370
  scheme_id: Joi.string().allow("").required(),
@@ -726,8 +391,8 @@ class LogisticsPartnerModel {
726
391
  });
727
392
  }
728
393
 
729
- /** @returns {CourierPartnerSchemeDetailsModel} */
730
- static CourierPartnerSchemeDetailsModel() {
394
+ /** @returns {CourierPartnerSchemeRequestModel} */
395
+ static CourierPartnerSchemeRequestModel() {
731
396
  return Joi.object({
732
397
  extension_id: Joi.string().allow("").required(),
733
398
  scheme_id: Joi.string().allow(""),
@@ -763,8 +428,6 @@ class LogisticsPartnerModel {
763
428
  single_pick_multi_drop: Joi.boolean(),
764
429
  multi_pick_multi_drop: Joi.boolean(),
765
430
  ewaybill: Joi.boolean(),
766
- qc_shipment_item_quantity: Joi.number().allow(null),
767
- non_qc_shipment_item_quantity: Joi.number().allow(null),
768
431
  });
769
432
  }
770
433
 
@@ -778,8 +441,8 @@ class LogisticsPartnerModel {
778
441
  });
779
442
  }
780
443
 
781
- /** @returns {CourierPartnerSchemeUpdateDetails} */
782
- static CourierPartnerSchemeUpdateDetails() {
444
+ /** @returns {CourierPartnerSchemeUpdateRequest} */
445
+ static CourierPartnerSchemeUpdateRequest() {
783
446
  return Joi.object({
784
447
  name: Joi.string().allow("").required(),
785
448
  weight: LogisticsPartnerModel.ArithmeticOperations().required(),
@@ -817,7 +480,6 @@ class LogisticsPartnerModel {
817
480
  latitude: Joi.string().allow(""),
818
481
  longitude: Joi.string().allow(""),
819
482
  display_name: Joi.string().allow(""),
820
- has_next_hierarchy: Joi.boolean(),
821
483
  });
822
484
  }
823
485
 
@@ -828,20 +490,5 @@ class LogisticsPartnerModel {
828
490
  slug: Joi.string().allow(""),
829
491
  });
830
492
  }
831
-
832
- /** @returns {ValidationError} */
833
- static ValidationError() {
834
- return Joi.object({
835
- message: Joi.string().allow("").required(),
836
- field: Joi.string().allow("").required(),
837
- });
838
- }
839
-
840
- /** @returns {StandardError} */
841
- static StandardError() {
842
- return Joi.object({
843
- message: Joi.string().allow("").required(),
844
- });
845
- }
846
493
  }
847
494
  module.exports = LogisticsPartnerModel;