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

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 (326) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,1391 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef GetStoreResult
5
- * @property {StoreItemResult[]} [items] - List of locations, each containing
6
- * detailed information about individual location.
7
- * @property {Page} [page]
8
- */
9
-
10
- /**
11
- * @typedef StoreItemResult
12
- * @property {number} [id] - A unique identifier for the location.
13
- * @property {string} [store_type] - The type of store, indicating the nature of
14
- * the store, such as retail or warehouse.
15
- * @property {string} [fulfillment_type] - The method of fulfillment used by the
16
- * store, such as shipping, pickup, or delivery.
17
- * @property {number} [processing_time] - The average time taken by the store to
18
- * process orders, measured in minutes.
19
- * @property {string[]} [tags] - List of tags associated with the store for
20
- * categorization and search purposes.
21
- * @property {number} [company_id] - The unique identifier of the company that
22
- * owns the store.
23
- * @property {number} [latitude] - The geographical latitude coordinate of the
24
- * store location.
25
- * @property {number} [longitude] - The geographical longitude coordinate of the
26
- * store location.
27
- */
28
-
29
- /**
30
- * @typedef ValidateAddressDetails
31
- * @property {string} [address] - Complete address, combining address line 1,
32
- * address line 2, area, landmark, sector, city, state, and pincode.
33
- * @property {string} [address1] - First line of the address, typically
34
- * containing street or building information.
35
- * @property {string} [address2] - Second line of the address, which can be used
36
- * for additional address details if needed.
37
- * @property {string} [area] - Locality or area associated with the address.
38
- * @property {string} [landmark] - Prominent nearby landmark that aids in
39
- * locating the address.
40
- * @property {string} [pincode] - Postal code or PIN code of the address area.
41
- * @property {string} [sector] - Specifies the sector or district of the address
42
- * if applicable.
43
- * @property {string} [city] - Denote the city or municipality of the address.
44
- * @property {string} [state] - Indicates the state or province of the address.
45
- * @property {string} [name] - Recipient's name associated with the address.
46
- * @property {string} [phone] - Recipient's contact phone number.
47
- * @property {string} [email] - Recipient's email address.
48
- */
49
-
50
- /**
51
- * @typedef PincodeParentsResult
52
- * @property {string} [sub_type] - Specific type of locality hierarchy the
53
- * pincode belongs to (e.g., city, state, country).
54
- * @property {string} [display_name] - User-friendly version of the geographical
55
- * data, which may be more descriptive or formatted differently.
56
- * @property {string} [name] - The actual geographical data, such as country
57
- * names (India), state names (Maharashtra), pin codes (400603), city names
58
- * (Dubai), or local sectors (Deira).
59
- * @property {string} [uid] - Unique identifier for the locality.
60
- */
61
-
62
- /**
63
- * @typedef PincodeMetaResult
64
- * @property {string} [zone] - Geographical region to which the pincode belongs,
65
- * often used to categorize or group pincodes for regional management or
66
- * postal purposes.
67
- * @property {number} [internal_zone_id] - A unique identifier used within the
68
- * system to track or reference the specific zone associated with the pincode.
69
- */
70
-
71
- /**
72
- * @typedef PincodeErrorSchemaResult
73
- * @property {string} [message] - A user-readable description of the error,
74
- * explaining what went wrong.
75
- * @property {string} [value] - A specific code or identifier related to the
76
- * error, used for referencing or categorizing the error.
77
- * @property {string} [type] - The classification of the error, indicating the
78
- * kind of issue.
79
- */
80
-
81
- /**
82
- * @typedef CountryMetaResult
83
- * @property {string} [country_code] - The ISO 3166-1 alpha-2 code representing
84
- * the country (e.g., "IN" for India, "US" for the United States).
85
- * @property {string} [isd_code] - The International Subscriber Dialing (ISD)
86
- * code, also known as the country dialing code, used for making international
87
- * phone calls to the country (e.g., "+91" for India, "+1" for the United States).
88
- */
89
-
90
- /**
91
- * @typedef PincodeLatLongData
92
- * @property {string} [type] - Specifies the type of geographical feature or
93
- * data, typically "Point" for coordinates in geographic data systems.
94
- * @property {string[]} [coordinates] - Contains the latitude and longitude
95
- * values representing the precise location. The format is usually an array
96
- * with two values: [longitude, latitude].
97
- */
98
-
99
- /**
100
- * @typedef PincodeDataResult
101
- * @property {PincodeParentsResult[]} [parents] - List of object representing a
102
- * collection of geographical locations, each associated with specific
103
- * hierarchical data such as cities, states, or countries.
104
- * @property {PincodeMetaResult} [meta]
105
- * @property {string} [display_name] - User-friendly version of the geographical
106
- * data, which may be more descriptive or formatted differently.
107
- * @property {PincodeErrorSchemaResult} error
108
- * @property {CountryMetaResult} [meta_code]
109
- * @property {PincodeLatLongData} [lat_long]
110
- * @property {string} [sub_type] - Indicates the specific type of locality
111
- * hierarchy the pincode belongs to (e.g., city, state, country).
112
- * @property {string} [name] - The actual geographical data, such as country
113
- * names (India), state names (Maharashtra), pin codes (400603), city names
114
- * (Dubai), or local sectors (Deira).
115
- * @property {string} [uid] - This field stands for "Unique Identifier," a
116
- * unique value assigned to each instance to ensure differentiation and reference.
117
- */
118
-
119
- /**
120
- * @typedef PincodeDetails
121
- * @property {boolean} success - Indicates whether the API request was
122
- * successful (true) or failed (false).
123
- * @property {PincodeDataResult[]} [data] - Contains the actual response data
124
- * when the request is successful, providing details like pincode information
125
- * or related data.
126
- * @property {PincodeErrorSchemaResult} error
127
- */
128
-
129
- /**
130
- * @typedef TATCategoryDetails
131
- * @property {string} [level] - Specifies the hierarchical level of the category
132
- * (e.g., country, state, city).
133
- * @property {number} [id] - Represents the unique identifier for the category
134
- * at the specified level.
135
- */
136
-
137
- /**
138
- * @typedef TATArticlesDetails
139
- * @property {TATCategoryDetails} [category]
140
- * @property {string} [manufacturing_time_unit] - The unit of measurement for
141
- * the manufacturing time, such as hours or days.
142
- * @property {number} [manufacturing_time] - The amount of time required to
143
- * manufacture the article, specified in the unit given by `manufacturing_time_unit`.
144
- */
145
-
146
- /**
147
- * @typedef TATLocationDetailsDetails
148
- * @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
149
- * @property {string} [from_pincode] - The postal code of the location from
150
- * which the fulfillment originates.
151
- * @property {TATArticlesDetails[]} [articles] - List of articles included in
152
- * the fulfillment request, which provides details about the items to be
153
- * processed or shipped.
154
- */
155
-
156
- /**
157
- * @typedef TATViewDetails
158
- * @property {string} [to_pincode] - The postal code of the destination location
159
- * where the fulfillment or shipment is headed.
160
- * @property {string} [source] - The origin or source of the request, indicating
161
- * where the data or action is coming from.
162
- * @property {string} [action] - The specific operation or request being made,
163
- * such as viewing, updating, or managing data.
164
- * @property {string} [identifier] - A unique ID used to reference or track the
165
- * specific request or item within the system.
166
- * @property {TATLocationDetailsDetails[]} [location_details] - Locations
167
- * involved in the request, including details about both the source and destination.
168
- * @property {string} [journey] - Indicates the direction of the request or
169
- * shipment. It can either be "forward" (from the source to the destination)
170
- * or "return" (from the destination back to the source).
171
- */
172
-
173
- /**
174
- * @typedef TATErrorSchemaResult
175
- * @property {string} [message] - A user-readable description of the error,
176
- * explaining what went wrong.
177
- * @property {string} [value] - A specific code or identifier related to the
178
- * error, used for referencing or categorizing the error.
179
- * @property {string} [type] - The classification of the error, indicating the
180
- * kind of issue.
181
- */
182
-
183
- /**
184
- * @typedef TATTimestampResult
185
- * @property {number} [min] - The earliest possible timestamp.
186
- * @property {number} [max] - The latest possible timestamp.
187
- */
188
-
189
- /**
190
- * @typedef TATFormattedResult
191
- * @property {string} [min] - The earliest possible timestamp.
192
- * @property {string} [max] - The latest possible timestamp.
193
- */
194
-
195
- /**
196
- * @typedef TATPromiseResult
197
- * @property {TATTimestampResult} [timestamp]
198
- * @property {TATFormattedResult} [formatted]
199
- */
200
-
201
- /**
202
- * @typedef TATArticlesResult
203
- * @property {string} [manufacturing_time_unit] - The unit of measurement for
204
- * the manufacturing time such as hours or days.
205
- * @property {TATErrorSchemaResult} [error]
206
- * @property {boolean} [is_cod_available] - Indicates whether Cash on Delivery
207
- * (COD) is available for the articles.
208
- * @property {TATPromiseResult} [promise]
209
- * @property {number} [manufacturing_time] - The time required to manufacture
210
- * the articles, measured in the unit specified by manufacturing_time_unit.
211
- * @property {TATCategoryDetails} [category]
212
- * @property {number} [_manufacturing_time_seconds] - The manufacturing time
213
- * converted into seconds.
214
- */
215
-
216
- /**
217
- * @typedef TATLocationDetailsResult
218
- * @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
219
- * @property {string} [from_pincode] - The postal code of the location from
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.
224
- */
225
-
226
- /**
227
- * @typedef TATViewResult
228
- * @property {string} [to_pincode] - The postal code of the destination location
229
- * where the fulfillment or shipment is headed.
230
- * @property {string} [request_uuid] - A unique identifier for the request.
231
- * @property {string} [payment_mode] - The mode of payment used for the transaction.
232
- * @property {boolean} [success] - Whether the request was successful (true/false).
233
- * @property {TATErrorSchemaResult} [error]
234
- * @property {boolean} [is_cod_available] - Whether Cash on Delivery (COD) is
235
- * available for the request.
236
- * @property {string} [source] - The origin or source of the request.
237
- * @property {string} [action] - The action performed or requested (e.g.,
238
- * forward, return).
239
- * @property {string} [stormbreaker_uuid] - A unique identifier related to the
240
- * stormbreaker process.
241
- * @property {string} [to_city] - The city corresponding to the destination pincode.
242
- * @property {string} [identifier] - A unique identifier for the request or transaction.
243
- * @property {TATLocationDetailsResult[]} [location_details] - Location involved
244
- * in the request.
245
- * @property {string} [journey] - Type of journey, either forward or return.
246
- */
247
-
248
- /**
249
- * @typedef DP
250
- * @property {number} fm_priority - First Mile Priority; focuses on the initial
251
- * segment of the logistics process, from the point of origin to the first
252
- * distribution center.
253
- * @property {number} lm_priority - Last Mile Priority; deals with the final
254
- * stage of the delivery process, where goods are delivered from the
255
- * distribution center to the final destination.
256
- * @property {number} rvp_priority - Reverse Pickup Priority; pertains to the
257
- * process of collecting goods from the customer for return or exchange.
258
- * @property {string} payment_mode - The method of payment used for
259
- * transactions, such as credit card, debit card, cash on delivery, etc.
260
- * @property {string[]} operations - Refers to the various activities and
261
- * processes involved in managing and executing the delivery and logistics operations.
262
- * @property {string} [area_code] - A code that identifies a specific geographic
263
- * area, often used for sorting and routing deliveries.
264
- * @property {boolean} [assign_dp_from_sb] - Indicates whether the delivery
265
- * partner (DP) is assigned from stormbreaker service.
266
- * @property {string} [internal_account_id] - An identifier used internally to
267
- * track accounts or entities within the organization's system.
268
- * @property {string} [external_account_id] - An identifier used to reference
269
- * accounts or entities outside the organization's system, such as partner accounts.
270
- * @property {string} [transport_mode] - The method of transportation used for
271
- * delivering goods, such as road, rail, air, or sea.
272
- */
273
-
274
- /**
275
- * @typedef LogisticsResult
276
- * @property {DP} [dp]
277
- */
278
-
279
- /**
280
- * @typedef CountryEntityResult
281
- * @property {CountryMetaResult} [meta]
282
- * @property {LogisticsResult} [logistics]
283
- * @property {string} [display_name] - User-friendly version of the geographical
284
- * data, which may be more descriptive or formatted differently.
285
- * @property {string} [type] - Specifies the type of geographical feature or
286
- * data, typically "Point" for coordinates in geographic data systems.
287
- * @property {boolean} [is_active] - Whether the country entity is currently
288
- * active or not.
289
- * @property {string} [parent_id] - Identifier for the parent of the current locality.
290
- * @property {string} [sub_type] - Specific type of locality hierarchy the
291
- * pincode belongs to (e.g., city, state, country).
292
- * @property {string} [name] - Country name.
293
- * @property {string} [uid] - Unique identifier for the country.
294
- */
295
-
296
- /**
297
- * @typedef CountryListResult
298
- * @property {CountryEntityResult[]} [results] - A list of country entities,
299
- * each containing details about individual countries.
300
- */
301
-
302
- /**
303
- * @typedef GetZoneFromPincodeViewDetails
304
- * @property {string} pincode - The postal code or ZIP code used to pinpoint a
305
- * specific geographic area or location.
306
- * @property {string} country - The country where the pincode is located.
307
- */
308
-
309
- /**
310
- * @typedef GetZoneFromPincodeViewResult
311
- * @property {string} serviceability_type - Specifies the type of serviceability
312
- * for the given pincode, indicating whether it's deliverable or serviceable
313
- * under certain conditions.
314
- * @property {string[]} zones - Lists the zones associated with the pincode,
315
- * detailing the geographical or logistical zones for service.
316
- */
317
-
318
- /**
319
- * @typedef ReAssignStoreDetails
320
- * @property {Object} configuration - Specifies the configuration settings or
321
- * parameters for the store reassignment.
322
- * @property {string} to_pincode - The postal code of the destination location
323
- * where the fulfillment or shipment is headed.
324
- * @property {number[]} ignored_locations - Locations that should be excluded
325
- * from the reassignment process.
326
- * @property {string} identifier - A unique identifier for the reassignment request.
327
- * @property {Object[]} articles - List of articles or items involved in the
328
- * store reassignment.
329
- */
330
-
331
- /**
332
- * @typedef ReAssignStoreResult
333
- * @property {string} to_pincode - The postal code of the destination location
334
- * where the fulfillment or shipment is headed.
335
- * @property {string} pystormbreaker_uuid - A unique identifier for tracking the
336
- * reassignment operation.
337
- * @property {boolean} success - Whether the reassignment was successful or not.
338
- * @property {Object} error - Details about any errors encountered during the
339
- * reassignment.
340
- * @property {Object[]} [assigned_stores] - List of stores that have been
341
- * successfully reassigned.
342
- */
343
-
344
- /**
345
- * @typedef CountryHierarchy
346
- * @property {string} [name] - It represent a country name.
347
- * @property {string} [slug] - A URL-friendly version of the name, often used
348
- * for referencing or querying purposes.
349
- */
350
-
351
- /**
352
- * @typedef CurrencyObject
353
- * @property {string} [code] - The currency code, typically a three-letter ISO
354
- * code (e.g., "USD" for US Dollar).
355
- * @property {string} [name] - It represent a country name.
356
- * @property {string} [symbol] - The symbol used to represent the currency
357
- * (e.g., "$" for US Dollar).
358
- */
359
-
360
- /**
361
- * @typedef CountryObject
362
- * @property {string} [id] - Unique identifier for the country.
363
- * @property {string} [name] - It represent a country name.
364
- * @property {string} [display_name] - User-friendly version of the geographical
365
- * data, which may be more descriptive or formatted differently.
366
- * @property {string} [iso2] - Two-letter ISO code representing the country.
367
- * @property {string} [iso3] - Three-letter ISO code representing the country.
368
- * @property {string[]} [timezones] - List of time zones used in the country
369
- * (e.g., ["America/New_York", "America/Los_Angeles"]).
370
- * @property {CountryHierarchy[]} [hierarchy] - Levels within the country (e.g.,
371
- * states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
372
- * {"name": "City", "slug": "city"}]).
373
- * @property {string} [phone_code] - International dialing code for the country
374
- * (e.g., "+1").
375
- * @property {string} [latitude] - Geographical latitude of the country (e.g., "37.0902").
376
- * @property {string} [longitude] - Geographical longitude of the country (e.g.,
377
- * "-95.7129").
378
- * @property {CurrencyObject} [currency]
379
- * @property {string} [type] - Indicates the type of object (e.g., "country").
380
- */
381
-
382
- /**
383
- * @typedef GetCountries
384
- * @property {CountryObject[]} [items] - List of countries, each containing
385
- * detailed information about individual country.
386
- * @property {Page} [page]
387
- */
388
-
389
- /**
390
- * @typedef GetOneOrAllPath
391
- * @property {string} [locality_type] - Specifies the type of locality to be
392
- * retrieved, such as city, state, or pincode (e.g., "city", "state", "pincode").
393
- * @property {string} [locality_value] - The specific value of the locality
394
- * being queried, such as the name of the city or the pincode (e.g., "Mumbai",
395
- * "400093").
396
- */
397
-
398
- /**
399
- * @typedef GetOneOrAllQuery
400
- * @property {string} [country] - The name of the country to filter the results.
401
- * @property {string} [state] - The name of the state within the specified country.
402
- * @property {string} [city] - The name of the city within the specified state.
403
- * @property {string} [sector] - The name of the sector or area within the specified city.
404
- */
405
-
406
- /**
407
- * @typedef GetOneOrAllParams
408
- * @property {GetOneOrAllPath} [path]
409
- * @property {GetOneOrAllQuery} [query]
410
- */
411
-
412
- /**
413
- * @typedef GetOneOrAll
414
- * @property {string} [operation_id] - Identifier for the specific operation or
415
- * query being performed.
416
- * @property {GetOneOrAllParams} [params]
417
- */
418
-
419
- /**
420
- * @typedef LengthValidation
421
- * @property {number} [min] - The minimum number of characters or digits allowed.
422
- * @property {number} [max] - The maximum number of characters or digits allowed.
423
- */
424
-
425
- /**
426
- * @typedef FieldValidationRegex
427
- * @property {string} [value] - Regular expression pattern used to validate the field.
428
- * @property {LengthValidation} [length]
429
- */
430
-
431
- /**
432
- * @typedef FieldValidation
433
- * @property {string} [type] - Specifies the validation method, such as regex
434
- * for regular expression validation.
435
- * @property {FieldValidationRegex} [regex]
436
- */
437
-
438
- /**
439
- * @typedef GetCountryFieldsAddressValues
440
- * @property {GetOneOrAll} [get_one]
441
- * @property {GetOneOrAll} [get_all]
442
- */
443
-
444
- /**
445
- * @typedef GetCountryFieldsAddress
446
- * @property {string} display_name - User-friendly version of the geographical
447
- * data, which may be more descriptive or formatted differently.
448
- * @property {string} slug - URL-friendly version of the name, often used for
449
- * referencing or querying purposes.
450
- * @property {boolean} required - Indicates whether the field is mandatory for
451
- * the user to fill out.
452
- * @property {boolean} [edit] - Specifies if the field can be edited by the user.
453
- * @property {string} input - Defines the type of input control used for the
454
- * field (e.g., textbox).
455
- * @property {FieldValidation} [validation]
456
- * @property {GetCountryFieldsAddressValues} [values]
457
- * @property {string} [error_text] - The message shown to the user if the input
458
- * does not meet the validation criteria.
459
- */
460
-
461
- /**
462
- * @typedef GetCountryFieldsAddressTemplate
463
- * @property {string} checkout_form - The format used to display or collect
464
- * address information during checkout.
465
- * @property {string} store_os_form - The format used for address entry or
466
- * display in the store's operating system.
467
- * @property {string} default_display - The general format for displaying
468
- * address information.
469
- */
470
-
471
- /**
472
- * @typedef GetCountryFields
473
- * @property {GetCountryFieldsAddress[]} address - Specifies the fields and
474
- * attributes related to address information, including display names, input
475
- * types, and validation rules. This section defines the details needed for
476
- * address collection and formatting.
477
- * @property {string[]} serviceability_fields - Lists the specific address
478
- * fields used to determine whether a location is serviceable. These fields
479
- * are crucial for validating service coverage and availability.
480
- * @property {GetCountryFieldsAddressTemplate} address_template
481
- */
482
-
483
- /**
484
- * @typedef GetCountry
485
- * @property {string} [id] - Unique identifier for the country.
486
- * @property {string} [name] - It represent a country name.
487
- * @property {string} [display_name] - User-friendly version of the geographical
488
- * data, which may be more descriptive or formatted differently.
489
- * @property {string} [iso2] - Two-letter ISO code representing the country.
490
- * @property {string} [iso3] - Three-letter ISO code representing the country.
491
- * @property {string[]} [timezones] - List of time zones used in the country
492
- * (e.g., ["America/New_York", "America/Los_Angeles"]).
493
- * @property {CountryHierarchy[]} [hierarchy] - Levels within the country (e.g.,
494
- * states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
495
- * {"name": "City", "slug": "city"}]).
496
- * @property {string} [phone_code] - International dialing code for the country
497
- * (e.g., "+1").
498
- * @property {string} [latitude] - Geographical latitude of the country (e.g., "37.0902").
499
- * @property {string} [longitude] - Geographical longitude of the country (e.g.,
500
- * "-95.7129").
501
- * @property {CurrencyObject} [currency]
502
- * @property {string} [type] - Indicates the type of object (e.g., "country").
503
- * @property {GetCountryFields} [fields]
504
- */
505
-
506
- /**
507
- * @typedef Page
508
- * @property {number} [item_total] - The total number of items on the page.
509
- * @property {string} [next_id] - The identifier for the next page.
510
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
511
- * @property {boolean} [has_next] - Indicates whether there is a next page.
512
- * @property {number} [current] - The current page number.
513
- * @property {string} type - The type of the page, such as 'PageType'.
514
- * @property {number} [size] - The number of items per page.
515
- */
516
-
517
- /**
518
- * @typedef Localities
519
- * @property {string} [id] - A unique identifier for the locality.
520
- * @property {string} [name] - The actual geographical data, such as country
521
- * names (India), state names (Maharashtra), pin codes (400603), city names
522
- * (Dubai), or local sectors (Deira).
523
- * @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
524
- * @property {string} [display_name] - User-friendly version of the geographical
525
- * data, which may be more descriptive or formatted differently.
526
- * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
527
- * @property {string} [type] - Specifies the category of the address component,
528
- * such as pincode, state, city, country, or sector.
529
- * @property {LocalityParent[]} [localities] - Representing the localities that
530
- * are associated with or contained within the current locality. It provides
531
- * detailed information about the parent localities, including their names,
532
- * identifiers, and hierarchical relationships.
533
- */
534
-
535
- /**
536
- * @typedef LocalityParent
537
- * @property {string} [id] - A unique identifier for the locality.
538
- * @property {string} [name] - The actual geographical data, such as country
539
- * names (India), state names (Maharashtra), pin codes (400603), city names
540
- * (Dubai), or local sectors (Deira).
541
- * @property {string} [display_name] - User-friendly version of the geographical
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
- * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
547
- * @property {string} [type] - Specifies the category of the address component,
548
- * such as pincode, state, city, country, or sector.
549
- */
550
-
551
- /**
552
- * @typedef GetLocalities
553
- * @property {Localities[]} [items] - List of localities, each containing
554
- * detailed information about individual locality.
555
- * @property {Page} [page]
556
- */
557
-
558
- /**
559
- * @typedef GetLocality
560
- * @property {string} [id] - A unique identifier for the locality.
561
- * @property {string} [name] - The actual geographical data, such as country
562
- * names (India), state names (Maharashtra), pin codes (400603), city names
563
- * (Dubai), or local sectors (Deira).
564
- * @property {string} [display_name] - User-friendly version of the geographical
565
- * data, which may be more descriptive or formatted differently.
566
- * @property {string} [code] - Code assigned to a locality, which is unique to
567
- * its immediate parent.
568
- * @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
569
- * @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
570
- * @property {string} [type] - Specifies the category of the address component,
571
- * such as pincode, state, city, country, or sector.
572
- * @property {LocalityParent[]} [localities] - Representing the localities that
573
- * are associated with or contained within the current locality. It provides
574
- * detailed information about the parent localities, including their names,
575
- * identifiers, and hierarchical relationships.
576
- */
577
-
578
- /**
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
681
- * @property {string} [error] - Error code identifying the type of error.
682
- * @property {string} [message] - User-friendly explanation of what went wrong.
683
- */
684
-
685
- /**
686
- * @typedef ValidationError
687
- * @property {string} message - A brief description of the error encountered.
688
- * @property {string} field - The field in the request that caused the error.
689
- */
690
-
691
- /**
692
- * @typedef StandardError
693
- * @property {string} message - A brief description of the error.
694
- */
695
-
696
- class LogisticApplicationModel {
697
- /** @returns {GetStoreResult} */
698
- static GetStoreResult() {
699
- return Joi.object({
700
- items: Joi.array().items(LogisticApplicationModel.StoreItemResult()),
701
- page: LogisticApplicationModel.Page(),
702
- });
703
- }
704
-
705
- /** @returns {StoreItemResult} */
706
- static StoreItemResult() {
707
- return Joi.object({
708
- id: Joi.number(),
709
- store_type: Joi.string().allow(""),
710
- fulfillment_type: Joi.string().allow(""),
711
- processing_time: Joi.number(),
712
- tags: Joi.array().items(Joi.string().allow("")),
713
- company_id: Joi.number(),
714
- latitude: Joi.number(),
715
- longitude: Joi.number(),
716
- });
717
- }
718
-
719
- /** @returns {ValidateAddressDetails} */
720
- static ValidateAddressDetails() {
721
- return Joi.object({
722
- address: Joi.string().allow(""),
723
- address1: Joi.string().allow(""),
724
- address2: Joi.string().allow(""),
725
- area: Joi.string().allow(""),
726
- landmark: Joi.string().allow(""),
727
- pincode: Joi.string().allow(""),
728
- sector: Joi.string().allow(""),
729
- city: Joi.string().allow(""),
730
- state: Joi.string().allow(""),
731
- name: Joi.string().allow(""),
732
- phone: Joi.string().allow(""),
733
- email: Joi.string().allow(""),
734
- });
735
- }
736
-
737
- /** @returns {PincodeParentsResult} */
738
- static PincodeParentsResult() {
739
- return Joi.object({
740
- sub_type: Joi.string().allow(""),
741
- display_name: Joi.string().allow(""),
742
- name: Joi.string().allow(""),
743
- uid: Joi.string().allow(""),
744
- });
745
- }
746
-
747
- /** @returns {PincodeMetaResult} */
748
- static PincodeMetaResult() {
749
- return Joi.object({
750
- zone: Joi.string().allow(""),
751
- internal_zone_id: Joi.number(),
752
- });
753
- }
754
-
755
- /** @returns {PincodeErrorSchemaResult} */
756
- static PincodeErrorSchemaResult() {
757
- return Joi.object({
758
- message: Joi.string().allow("").allow(null),
759
- value: Joi.string().allow("").allow(null),
760
- type: Joi.string().allow("").allow(null),
761
- });
762
- }
763
-
764
- /** @returns {CountryMetaResult} */
765
- static CountryMetaResult() {
766
- return Joi.object({
767
- country_code: Joi.string().allow(""),
768
- isd_code: Joi.string().allow(""),
769
- });
770
- }
771
-
772
- /** @returns {PincodeLatLongData} */
773
- static PincodeLatLongData() {
774
- return Joi.object({
775
- type: Joi.string().allow(""),
776
- coordinates: Joi.array().items(Joi.string().allow("")),
777
- });
778
- }
779
-
780
- /** @returns {PincodeDataResult} */
781
- static PincodeDataResult() {
782
- return Joi.object({
783
- parents: Joi.array().items(
784
- LogisticApplicationModel.PincodeParentsResult()
785
- ),
786
- meta: LogisticApplicationModel.PincodeMetaResult(),
787
- display_name: Joi.string().allow(""),
788
- error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
789
- meta_code: LogisticApplicationModel.CountryMetaResult(),
790
- lat_long: LogisticApplicationModel.PincodeLatLongData(),
791
- sub_type: Joi.string().allow(""),
792
- name: Joi.string().allow(""),
793
- uid: Joi.string().allow(""),
794
- });
795
- }
796
-
797
- /** @returns {PincodeDetails} */
798
- static PincodeDetails() {
799
- return Joi.object({
800
- success: Joi.boolean().required(),
801
- data: Joi.array().items(LogisticApplicationModel.PincodeDataResult()),
802
- error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
803
- });
804
- }
805
-
806
- /** @returns {TATCategoryDetails} */
807
- static TATCategoryDetails() {
808
- return Joi.object({
809
- level: Joi.string().allow(""),
810
- id: Joi.number(),
811
- });
812
- }
813
-
814
- /** @returns {TATArticlesDetails} */
815
- static TATArticlesDetails() {
816
- return Joi.object({
817
- category: LogisticApplicationModel.TATCategoryDetails(),
818
- manufacturing_time_unit: Joi.string().allow(""),
819
- manufacturing_time: Joi.number(),
820
- });
821
- }
822
-
823
- /** @returns {TATLocationDetailsDetails} */
824
- static TATLocationDetailsDetails() {
825
- return Joi.object({
826
- fulfillment_id: Joi.number(),
827
- from_pincode: Joi.string().allow(""),
828
- articles: Joi.array().items(
829
- LogisticApplicationModel.TATArticlesDetails()
830
- ),
831
- });
832
- }
833
-
834
- /** @returns {TATViewDetails} */
835
- static TATViewDetails() {
836
- return Joi.object({
837
- to_pincode: Joi.string().allow(""),
838
- source: Joi.string().allow(""),
839
- action: Joi.string().allow(""),
840
- identifier: Joi.string().allow(""),
841
- location_details: Joi.array().items(
842
- LogisticApplicationModel.TATLocationDetailsDetails()
843
- ),
844
- journey: Joi.string().allow(""),
845
- });
846
- }
847
-
848
- /** @returns {TATErrorSchemaResult} */
849
- static TATErrorSchemaResult() {
850
- return Joi.object({
851
- message: Joi.string().allow("").allow(null),
852
- value: Joi.string().allow("").allow(null),
853
- type: Joi.string().allow("").allow(null),
854
- });
855
- }
856
-
857
- /** @returns {TATTimestampResult} */
858
- static TATTimestampResult() {
859
- return Joi.object({
860
- min: Joi.number(),
861
- max: Joi.number(),
862
- });
863
- }
864
-
865
- /** @returns {TATFormattedResult} */
866
- static TATFormattedResult() {
867
- return Joi.object({
868
- min: Joi.string().allow(""),
869
- max: Joi.string().allow(""),
870
- });
871
- }
872
-
873
- /** @returns {TATPromiseResult} */
874
- static TATPromiseResult() {
875
- return Joi.object({
876
- timestamp: LogisticApplicationModel.TATTimestampResult(),
877
- formatted: LogisticApplicationModel.TATFormattedResult(),
878
- });
879
- }
880
-
881
- /** @returns {TATArticlesResult} */
882
- static TATArticlesResult() {
883
- return Joi.object({
884
- manufacturing_time_unit: Joi.string().allow(""),
885
- error: LogisticApplicationModel.TATErrorSchemaResult(),
886
- is_cod_available: Joi.boolean(),
887
- promise: LogisticApplicationModel.TATPromiseResult(),
888
- manufacturing_time: Joi.number(),
889
- category: LogisticApplicationModel.TATCategoryDetails(),
890
- _manufacturing_time_seconds: Joi.number(),
891
- });
892
- }
893
-
894
- /** @returns {TATLocationDetailsResult} */
895
- static TATLocationDetailsResult() {
896
- return Joi.object({
897
- fulfillment_id: Joi.number(),
898
- from_pincode: Joi.string().allow(""),
899
- articles: Joi.array().items(LogisticApplicationModel.TATArticlesResult()),
900
- });
901
- }
902
-
903
- /** @returns {TATViewResult} */
904
- static TATViewResult() {
905
- return Joi.object({
906
- to_pincode: Joi.string().allow(""),
907
- request_uuid: Joi.string().allow(""),
908
- payment_mode: Joi.string().allow(""),
909
- success: Joi.boolean(),
910
- error: LogisticApplicationModel.TATErrorSchemaResult(),
911
- is_cod_available: Joi.boolean(),
912
- source: Joi.string().allow(""),
913
- action: Joi.string().allow(""),
914
- stormbreaker_uuid: Joi.string().allow(""),
915
- to_city: Joi.string().allow(""),
916
- identifier: Joi.string().allow(""),
917
- location_details: Joi.array().items(
918
- LogisticApplicationModel.TATLocationDetailsResult()
919
- ),
920
- journey: Joi.string().allow(""),
921
- });
922
- }
923
-
924
- /** @returns {DP} */
925
- static DP() {
926
- return Joi.object({
927
- fm_priority: Joi.number().required(),
928
- lm_priority: Joi.number().required(),
929
- rvp_priority: Joi.number().required(),
930
- payment_mode: Joi.string().allow("").required(),
931
- operations: Joi.array().items(Joi.string().allow("")).required(),
932
- area_code: Joi.string().allow("").allow(null),
933
- assign_dp_from_sb: Joi.boolean(),
934
- internal_account_id: Joi.string().allow(""),
935
- external_account_id: Joi.string().allow("").allow(null),
936
- transport_mode: Joi.string().allow(""),
937
- });
938
- }
939
-
940
- /** @returns {LogisticsResult} */
941
- static LogisticsResult() {
942
- return Joi.object({
943
- dp: LogisticApplicationModel.DP(),
944
- });
945
- }
946
-
947
- /** @returns {CountryEntityResult} */
948
- static CountryEntityResult() {
949
- return Joi.object({
950
- meta: LogisticApplicationModel.CountryMetaResult(),
951
- logistics: LogisticApplicationModel.LogisticsResult(),
952
- display_name: Joi.string().allow(""),
953
- type: Joi.string().allow(""),
954
- is_active: Joi.boolean(),
955
- parent_id: Joi.string().allow(""),
956
- sub_type: Joi.string().allow(""),
957
- name: Joi.string().allow(""),
958
- uid: Joi.string().allow(""),
959
- });
960
- }
961
-
962
- /** @returns {CountryListResult} */
963
- static CountryListResult() {
964
- return Joi.object({
965
- results: Joi.array().items(
966
- LogisticApplicationModel.CountryEntityResult()
967
- ),
968
- });
969
- }
970
-
971
- /** @returns {GetZoneFromPincodeViewDetails} */
972
- static GetZoneFromPincodeViewDetails() {
973
- return Joi.object({
974
- pincode: Joi.string().allow("").required(),
975
- country: Joi.string().allow("").required(),
976
- });
977
- }
978
-
979
- /** @returns {GetZoneFromPincodeViewResult} */
980
- static GetZoneFromPincodeViewResult() {
981
- return Joi.object({
982
- serviceability_type: Joi.string().allow("").required(),
983
- zones: Joi.array().items(Joi.string().allow("")).required(),
984
- });
985
- }
986
-
987
- /** @returns {ReAssignStoreDetails} */
988
- static ReAssignStoreDetails() {
989
- return Joi.object({
990
- configuration: Joi.object().pattern(/\S/, Joi.any()).required(),
991
- to_pincode: Joi.string().allow("").required(),
992
- ignored_locations: Joi.array().items(Joi.number()).required(),
993
- identifier: Joi.string().allow("").required(),
994
- articles: Joi.array()
995
- .items(Joi.object().pattern(/\S/, Joi.any()))
996
- .required(),
997
- });
998
- }
999
-
1000
- /** @returns {ReAssignStoreResult} */
1001
- static ReAssignStoreResult() {
1002
- return Joi.object({
1003
- to_pincode: Joi.string().allow("").required(),
1004
- pystormbreaker_uuid: Joi.string().allow("").required(),
1005
- 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())),
1008
- });
1009
- }
1010
-
1011
- /** @returns {CountryHierarchy} */
1012
- static CountryHierarchy() {
1013
- return Joi.object({
1014
- name: Joi.string().allow(""),
1015
- slug: Joi.string().allow(""),
1016
- });
1017
- }
1018
-
1019
- /** @returns {CurrencyObject} */
1020
- static CurrencyObject() {
1021
- return Joi.object({
1022
- code: Joi.string().allow(""),
1023
- name: Joi.string().allow(""),
1024
- symbol: Joi.string().allow(""),
1025
- });
1026
- }
1027
-
1028
- /** @returns {CountryObject} */
1029
- static CountryObject() {
1030
- return Joi.object({
1031
- id: Joi.string().allow(""),
1032
- name: Joi.string().allow(""),
1033
- display_name: Joi.string().allow(""),
1034
- iso2: Joi.string().allow(""),
1035
- iso3: Joi.string().allow(""),
1036
- timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
1037
- hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
1038
- phone_code: Joi.string().allow(""),
1039
- latitude: Joi.string().allow(""),
1040
- longitude: Joi.string().allow(""),
1041
- currency: LogisticApplicationModel.CurrencyObject(),
1042
- type: Joi.string().allow(""),
1043
- });
1044
- }
1045
-
1046
- /** @returns {GetCountries} */
1047
- static GetCountries() {
1048
- return Joi.object({
1049
- items: Joi.array().items(LogisticApplicationModel.CountryObject()),
1050
- page: LogisticApplicationModel.Page(),
1051
- });
1052
- }
1053
-
1054
- /** @returns {GetOneOrAllPath} */
1055
- static GetOneOrAllPath() {
1056
- return Joi.object({
1057
- locality_type: Joi.string().allow(""),
1058
- locality_value: Joi.string().allow(""),
1059
- });
1060
- }
1061
-
1062
- /** @returns {GetOneOrAllQuery} */
1063
- static GetOneOrAllQuery() {
1064
- return Joi.object({
1065
- country: Joi.string().allow("").allow(null),
1066
- state: Joi.string().allow("").allow(null),
1067
- city: Joi.string().allow("").allow(null),
1068
- sector: Joi.string().allow("").allow(null),
1069
- });
1070
- }
1071
-
1072
- /** @returns {GetOneOrAllParams} */
1073
- static GetOneOrAllParams() {
1074
- return Joi.object({
1075
- path: LogisticApplicationModel.GetOneOrAllPath(),
1076
- query: LogisticApplicationModel.GetOneOrAllQuery(),
1077
- });
1078
- }
1079
-
1080
- /** @returns {GetOneOrAll} */
1081
- static GetOneOrAll() {
1082
- return Joi.object({
1083
- operation_id: Joi.string().allow(""),
1084
- params: LogisticApplicationModel.GetOneOrAllParams(),
1085
- }).allow(null);
1086
- }
1087
-
1088
- /** @returns {LengthValidation} */
1089
- static LengthValidation() {
1090
- return Joi.object({
1091
- min: Joi.number().allow(null),
1092
- max: Joi.number().allow(null),
1093
- });
1094
- }
1095
-
1096
- /** @returns {FieldValidationRegex} */
1097
- static FieldValidationRegex() {
1098
- return Joi.object({
1099
- value: Joi.string().allow(""),
1100
- length: LogisticApplicationModel.LengthValidation(),
1101
- });
1102
- }
1103
-
1104
- /** @returns {FieldValidation} */
1105
- static FieldValidation() {
1106
- return Joi.object({
1107
- type: Joi.string().allow(""),
1108
- regex: LogisticApplicationModel.FieldValidationRegex(),
1109
- }).allow(null);
1110
- }
1111
-
1112
- /** @returns {GetCountryFieldsAddressValues} */
1113
- static GetCountryFieldsAddressValues() {
1114
- return Joi.object({
1115
- get_one: LogisticApplicationModel.GetOneOrAll(),
1116
- get_all: LogisticApplicationModel.GetOneOrAll(),
1117
- }).allow(null);
1118
- }
1119
-
1120
- /** @returns {GetCountryFieldsAddress} */
1121
- static GetCountryFieldsAddress() {
1122
- return Joi.object({
1123
- display_name: Joi.string().allow("").required(),
1124
- slug: Joi.string().allow("").required(),
1125
- required: Joi.boolean().required(),
1126
- edit: Joi.boolean(),
1127
- input: Joi.string().allow("").required(),
1128
- validation: LogisticApplicationModel.FieldValidation(),
1129
- values: LogisticApplicationModel.GetCountryFieldsAddressValues(),
1130
- error_text: Joi.string().allow("").allow(null),
1131
- });
1132
- }
1133
-
1134
- /** @returns {GetCountryFieldsAddressTemplate} */
1135
- static GetCountryFieldsAddressTemplate() {
1136
- return Joi.object({
1137
- checkout_form: Joi.string().allow("").required(),
1138
- store_os_form: Joi.string().allow("").required(),
1139
- default_display: Joi.string().allow("").required(),
1140
- });
1141
- }
1142
-
1143
- /** @returns {GetCountryFields} */
1144
- static GetCountryFields() {
1145
- return Joi.object({
1146
- address: Joi.array()
1147
- .items(LogisticApplicationModel.GetCountryFieldsAddress())
1148
- .required(),
1149
- serviceability_fields: Joi.array()
1150
- .items(Joi.string().allow(""))
1151
- .required(),
1152
- address_template: LogisticApplicationModel.GetCountryFieldsAddressTemplate().required(),
1153
- });
1154
- }
1155
-
1156
- /** @returns {GetCountry} */
1157
- static GetCountry() {
1158
- return Joi.object({
1159
- id: Joi.string().allow(""),
1160
- name: Joi.string().allow(""),
1161
- display_name: Joi.string().allow(""),
1162
- iso2: Joi.string().allow(""),
1163
- iso3: Joi.string().allow(""),
1164
- timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
1165
- hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
1166
- phone_code: Joi.string().allow(""),
1167
- latitude: Joi.string().allow(""),
1168
- longitude: Joi.string().allow(""),
1169
- currency: LogisticApplicationModel.CurrencyObject(),
1170
- type: Joi.string().allow(""),
1171
- fields: LogisticApplicationModel.GetCountryFields(),
1172
- });
1173
- }
1174
-
1175
- /** @returns {Page} */
1176
- static Page() {
1177
- return Joi.object({
1178
- item_total: Joi.number(),
1179
- next_id: Joi.string().allow(""),
1180
- has_previous: Joi.boolean(),
1181
- has_next: Joi.boolean(),
1182
- current: Joi.number(),
1183
- type: Joi.string().allow("").required(),
1184
- size: Joi.number(),
1185
- });
1186
- }
1187
-
1188
- /** @returns {Localities} */
1189
- static Localities() {
1190
- return Joi.object({
1191
- id: Joi.string().allow(""),
1192
- name: Joi.string().allow(""),
1193
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1194
- display_name: Joi.string().allow(""),
1195
- parent_ids: Joi.array().items(Joi.string().allow("")),
1196
- type: Joi.string().allow(""),
1197
- localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
1198
- });
1199
- }
1200
-
1201
- /** @returns {LocalityParent} */
1202
- static LocalityParent() {
1203
- return Joi.object({
1204
- id: Joi.string().allow(""),
1205
- name: Joi.string().allow(""),
1206
- display_name: Joi.string().allow(""),
1207
- code: Joi.string().allow(""),
1208
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1209
- parent_ids: Joi.array().items(Joi.string().allow("")),
1210
- type: Joi.string().allow(""),
1211
- });
1212
- }
1213
-
1214
- /** @returns {GetLocalities} */
1215
- static GetLocalities() {
1216
- return Joi.object({
1217
- items: Joi.array().items(LogisticApplicationModel.Localities()),
1218
- page: LogisticApplicationModel.Page(),
1219
- });
1220
- }
1221
-
1222
- /** @returns {GetLocality} */
1223
- static GetLocality() {
1224
- return Joi.object({
1225
- id: Joi.string().allow(""),
1226
- name: Joi.string().allow(""),
1227
- display_name: Joi.string().allow(""),
1228
- code: Joi.string().allow(""),
1229
- custom_meta: Joi.object().pattern(/\S/, Joi.any()),
1230
- parent_ids: Joi.array().items(Joi.string().allow("")),
1231
- type: Joi.string().allow(""),
1232
- localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
1233
- });
1234
- }
1235
-
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() {
1370
- return Joi.object({
1371
- error: Joi.string().allow(""),
1372
- message: Joi.string().allow(""),
1373
- });
1374
- }
1375
-
1376
- /** @returns {ValidationError} */
1377
- static ValidationError() {
1378
- return Joi.object({
1379
- message: Joi.string().allow("").required(),
1380
- field: Joi.string().allow("").required(),
1381
- });
1382
- }
1383
-
1384
- /** @returns {StandardError} */
1385
- static StandardError() {
1386
- return Joi.object({
1387
- message: Joi.string().allow("").required(),
1388
- });
1389
- }
1390
- }
1391
- module.exports = LogisticApplicationModel;