@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,27 +1,24 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef CountryEntityResponse
4
+ * @typedef PincodeParentsResponse
5
+ * @property {string} [sub_type]
5
6
  * @property {string} [display_name]
6
- * @property {boolean} [is_active]
7
- * @property {LogisticsResponse} [logistics]
8
- * @property {CountryMetaResponse} [meta]
9
7
  * @property {string} [name]
10
- * @property {string} [parent_id]
11
- * @property {string} [sub_type]
12
- * @property {string} [type]
13
8
  * @property {string} [uid]
14
9
  */
15
10
 
16
11
  /**
17
- * @typedef CountryHierarchy
18
- * @property {string} [name]
19
- * @property {string} [slug]
12
+ * @typedef PincodeMetaResponse
13
+ * @property {string} [zone]
14
+ * @property {number} [internal_zone_id]
20
15
  */
21
16
 
22
17
  /**
23
- * @typedef CountryListResponse
24
- * @property {CountryEntityResponse[]} [results]
18
+ * @typedef PincodeErrorSchemaResponse
19
+ * @property {string} [message]
20
+ * @property {string} [value]
21
+ * @property {string} [type]
25
22
  */
26
23
 
27
24
  /**
@@ -31,196 +28,133 @@ const Joi = require("joi");
31
28
  */
32
29
 
33
30
  /**
34
- * @typedef CountryObject
35
- * @property {CurrencyObject} [currency]
36
- * @property {string} [display_name]
37
- * @property {CountryHierarchy[]} [hierarchy]
38
- * @property {string} [id]
39
- * @property {string} [iso2]
40
- * @property {string} [iso3]
41
- * @property {string} [latitude]
42
- * @property {string} [longitude]
43
- * @property {string} [name]
44
- * @property {string} [phone_code]
45
- * @property {string[]} [timezones]
46
- * @property {string} [type]
47
- */
48
-
49
- /**
50
- * @typedef CurrencyObject
51
- * @property {string} [code]
52
- * @property {string} [name]
53
- * @property {string} [symbol]
54
- */
55
-
56
- /**
57
- * @typedef DP
58
- * @property {string} [area_code]
59
- * @property {boolean} [assign_dp_from_sb]
60
- * @property {string} [external_account_id]
61
- * @property {number} fm_priority
62
- * @property {string} [internal_account_id]
63
- * @property {number} lm_priority
64
- * @property {string[]} operations
65
- * @property {string} payment_mode
66
- * @property {number} rvp_priority
67
- * @property {string} [transport_mode]
68
- */
69
-
70
- /**
71
- * @typedef ErrorResponse
72
- * @property {string} [error]
73
- */
74
-
75
- /**
76
- * @typedef FieldValidation
77
- * @property {FieldValidationRegex} [regex]
31
+ * @typedef PincodeLatLongData
78
32
  * @property {string} [type]
33
+ * @property {string[]} [coordinates]
79
34
  */
80
35
 
81
36
  /**
82
- * @typedef FieldValidationRegex
83
- * @property {LengthValidation} [length]
84
- * @property {string} [value]
85
- */
86
-
87
- /**
88
- * @typedef GetCountries
89
- * @property {CountryObject[]} [items]
90
- * @property {Page} [page]
91
- */
92
-
93
- /**
94
- * @typedef GetCountry
95
- * @property {CurrencyObject} [currency]
37
+ * @typedef PincodeDataResponse
38
+ * @property {PincodeParentsResponse[]} [parents]
39
+ * @property {PincodeMetaResponse} [meta]
96
40
  * @property {string} [display_name]
97
- * @property {GetCountryFields} [fields]
98
- * @property {CountryHierarchy[]} [hierarchy]
99
- * @property {string} [id]
100
- * @property {string} [iso2]
101
- * @property {string} [iso3]
102
- * @property {string} [latitude]
103
- * @property {string} [longitude]
41
+ * @property {PincodeErrorSchemaResponse} error
42
+ * @property {CountryMetaResponse} [meta_code]
43
+ * @property {PincodeLatLongData} [lat_long]
44
+ * @property {string} [sub_type]
104
45
  * @property {string} [name]
105
- * @property {string} [phone_code]
106
- * @property {string[]} [timezones]
107
- * @property {string} [type]
46
+ * @property {string} [uid]
108
47
  */
109
48
 
110
49
  /**
111
- * @typedef GetCountryFields
112
- * @property {GetCountryFieldsAddress[]} address
113
- * @property {GetCountryFieldsAddressTemplate} address_template
114
- * @property {string[]} serviceability_fields
50
+ * @typedef PincodeApiResponse
51
+ * @property {boolean} success
52
+ * @property {PincodeDataResponse[]} [data]
53
+ * @property {PincodeErrorSchemaResponse} error
115
54
  */
116
55
 
117
56
  /**
118
- * @typedef GetCountryFieldsAddress
119
- * @property {string} display_name
120
- * @property {boolean} [edit]
121
- * @property {string} [error_text]
122
- * @property {string} input
123
- * @property {boolean} required
124
- * @property {string} slug
125
- * @property {FieldValidation} [validation]
126
- * @property {GetCountryFieldsAddressValues} [values]
57
+ * @typedef TATCategoryRequest
58
+ * @property {string} [level]
59
+ * @property {number} [id]
127
60
  */
128
61
 
129
62
  /**
130
- * @typedef GetCountryFieldsAddressTemplate
131
- * @property {string} checkout_form
132
- * @property {string} default_display
133
- * @property {string} store_os_form
63
+ * @typedef TATArticlesRequest
64
+ * @property {TATCategoryRequest} [category]
65
+ * @property {string} [manufacturing_time_unit]
66
+ * @property {number} [manufacturing_time]
134
67
  */
135
68
 
136
69
  /**
137
- * @typedef GetCountryFieldsAddressValues
138
- * @property {GetOneOrAll} [get_all]
139
- * @property {GetOneOrAll} [get_one]
70
+ * @typedef TATLocationDetailsRequest
71
+ * @property {number} [fulfillment_id]
72
+ * @property {string} [from_pincode]
73
+ * @property {TATArticlesRequest[]} [articles]
140
74
  */
141
75
 
142
76
  /**
143
- * @typedef GetLocalities
144
- * @property {Localities[]} [items]
145
- * @property {Page} [page]
77
+ * @typedef TATViewRequest
78
+ * @property {string} [to_pincode]
79
+ * @property {string} [source]
80
+ * @property {string} [action]
81
+ * @property {string} [identifier]
82
+ * @property {TATLocationDetailsRequest[]} [location_details]
83
+ * @property {string} [journey]
146
84
  */
147
85
 
148
86
  /**
149
- * @typedef GetLocality
150
- * @property {string} [display_name]
151
- * @property {string} [id]
152
- * @property {LocalityParent[]} [localities]
153
- * @property {string} [name]
154
- * @property {string[]} [parent_ids]
87
+ * @typedef TATErrorSchemaResponse
88
+ * @property {string} [message]
89
+ * @property {string} [value]
155
90
  * @property {string} [type]
156
91
  */
157
92
 
158
93
  /**
159
- * @typedef GetOneOrAll
160
- * @property {string} [operation_id]
161
- * @property {GetOneOrAllParams} [params]
162
- */
163
-
164
- /**
165
- * @typedef GetOneOrAllParams
166
- * @property {GetOneOrAllPath} [path]
167
- * @property {GetOneOrAllQuery} [query]
168
- */
169
-
170
- /**
171
- * @typedef GetOneOrAllPath
172
- * @property {string} [locality_type]
173
- * @property {string} [locality_value]
174
- */
175
-
176
- /**
177
- * @typedef GetOneOrAllQuery
178
- * @property {string} [city]
179
- * @property {string} [country]
180
- * @property {string} [sector]
181
- * @property {string} [state]
94
+ * @typedef TATTimestampResponse
95
+ * @property {number} [min]
96
+ * @property {number} [max]
182
97
  */
183
98
 
184
99
  /**
185
- * @typedef GetStoreResponse
186
- * @property {StoreItemResponse[]} [items]
187
- * @property {Page} [page]
100
+ * @typedef TATFormattedResponse
101
+ * @property {string} [min]
102
+ * @property {string} [max]
188
103
  */
189
104
 
190
105
  /**
191
- * @typedef GetZoneFromPincodeViewRequest
192
- * @property {string} country
193
- * @property {string} pincode
106
+ * @typedef TATPromiseResponse
107
+ * @property {TATTimestampResponse} [timestamp]
108
+ * @property {TATFormattedResponse} [formatted]
194
109
  */
195
110
 
196
111
  /**
197
- * @typedef GetZoneFromPincodeViewResponse
198
- * @property {string} serviceability_type
199
- * @property {string[]} zones
112
+ * @typedef TATArticlesResponse
113
+ * @property {string} [manufacturing_time_unit]
114
+ * @property {TATErrorSchemaResponse} [error]
115
+ * @property {boolean} [is_cod_available]
116
+ * @property {TATPromiseResponse} [promise]
117
+ * @property {number} [manufacturing_time]
118
+ * @property {TATCategoryRequest} [category]
119
+ * @property {number} [_manufacturing_time_seconds]
200
120
  */
201
121
 
202
122
  /**
203
- * @typedef LengthValidation
204
- * @property {number} [max]
205
- * @property {number} [min]
123
+ * @typedef TATLocationDetailsResponse
124
+ * @property {number} [fulfillment_id]
125
+ * @property {string} [from_pincode]
126
+ * @property {TATArticlesResponse[]} [articles]
206
127
  */
207
128
 
208
129
  /**
209
- * @typedef Localities
210
- * @property {string} [display_name]
211
- * @property {string} [id]
212
- * @property {string} [name]
213
- * @property {string[]} [parent_ids]
214
- * @property {string} [type]
130
+ * @typedef TATViewResponse
131
+ * @property {string} [to_pincode]
132
+ * @property {string} [request_uuid]
133
+ * @property {string} [payment_mode]
134
+ * @property {boolean} [success]
135
+ * @property {TATErrorSchemaResponse} [error]
136
+ * @property {boolean} [is_cod_available]
137
+ * @property {string} [source]
138
+ * @property {string} [action]
139
+ * @property {string} [stormbreaker_uuid]
140
+ * @property {string} [to_city]
141
+ * @property {string} [identifier]
142
+ * @property {TATLocationDetailsResponse[]} [location_details]
143
+ * @property {string} [journey]
215
144
  */
216
145
 
217
146
  /**
218
- * @typedef LocalityParent
219
- * @property {string} [display_name]
220
- * @property {string} [id]
221
- * @property {string} [name]
222
- * @property {string[]} [parent_ids]
223
- * @property {string} [type]
147
+ * @typedef DP
148
+ * @property {number} fm_priority
149
+ * @property {number} lm_priority
150
+ * @property {number} rvp_priority
151
+ * @property {string} payment_mode
152
+ * @property {string[]} operations
153
+ * @property {string} [area_code]
154
+ * @property {boolean} [assign_dp_from_sb]
155
+ * @property {string} [internal_account_id]
156
+ * @property {string} [external_account_id]
157
+ * @property {string} [transport_mode]
224
158
  */
225
159
 
226
160
  /**
@@ -229,239 +163,78 @@ const Joi = require("joi");
229
163
  */
230
164
 
231
165
  /**
232
- * @typedef Page
233
- * @property {number} [current]
234
- * @property {boolean} [has_next]
235
- * @property {boolean} [has_previous]
236
- * @property {number} [item_total]
237
- * @property {string} [next_id]
238
- * @property {number} [size]
239
- * @property {string} type
240
- */
241
-
242
- /**
243
- * @typedef PincodeApiResponse
244
- * @property {PincodeDataResponse[]} [data]
245
- * @property {PincodeErrorSchemaResponse} error
246
- * @property {boolean} success
247
- */
248
-
249
- /**
250
- * @typedef PincodeDataResponse
166
+ * @typedef CountryEntityResponse
167
+ * @property {CountryMetaResponse} [meta]
168
+ * @property {LogisticsResponse} [logistics]
251
169
  * @property {string} [display_name]
252
- * @property {PincodeErrorSchemaResponse} error
253
- * @property {PincodeLatLongData} [lat_long]
254
- * @property {PincodeMetaResponse} [meta]
255
- * @property {CountryMetaResponse} [meta_code]
256
- * @property {string} [name]
257
- * @property {PincodeParentsResponse[]} [parents]
170
+ * @property {string} [type]
171
+ * @property {boolean} [is_active]
172
+ * @property {string} [parent_id]
258
173
  * @property {string} [sub_type]
174
+ * @property {string} [name]
259
175
  * @property {string} [uid]
260
176
  */
261
177
 
262
178
  /**
263
- * @typedef PincodeErrorSchemaResponse
264
- * @property {string} [message]
265
- * @property {string} [type]
266
- * @property {string} [value]
267
- */
268
-
269
- /**
270
- * @typedef PincodeLatLongData
271
- * @property {string[]} [coordinates]
272
- * @property {string} [type]
179
+ * @typedef CountryListResponse
180
+ * @property {CountryEntityResponse[]} [results]
273
181
  */
274
182
 
275
183
  /**
276
- * @typedef PincodeMetaResponse
277
- * @property {number} [internal_zone_id]
278
- * @property {string} [zone]
184
+ * @typedef GetZoneFromPincodeViewRequest
185
+ * @property {string} pincode
186
+ * @property {string} country
279
187
  */
280
188
 
281
189
  /**
282
- * @typedef PincodeParentsResponse
283
- * @property {string} [display_name]
284
- * @property {string} [name]
285
- * @property {string} [sub_type]
286
- * @property {string} [uid]
190
+ * @typedef GetZoneFromPincodeViewResponse
191
+ * @property {string} serviceability_type
192
+ * @property {string[]} zones
287
193
  */
288
194
 
289
195
  /**
290
196
  * @typedef ReAssignStoreRequest
291
- * @property {Object[]} articles
292
197
  * @property {Object} configuration
293
- * @property {string} identifier
294
- * @property {number[]} ignored_locations
295
198
  * @property {string} to_pincode
199
+ * @property {number[]} ignored_locations
200
+ * @property {string} identifier
201
+ * @property {Object[]} articles
296
202
  */
297
203
 
298
204
  /**
299
205
  * @typedef ReAssignStoreResponse
300
- * @property {Object[]} [assigned_stores]
301
- * @property {Object} error
206
+ * @property {string} to_pincode
302
207
  * @property {string} pystormbreaker_uuid
303
208
  * @property {boolean} success
304
- * @property {string} to_pincode
209
+ * @property {Object} error
210
+ * @property {Object[]} [assigned_stores]
305
211
  */
306
212
 
307
- /**
308
- * @typedef StoreItemResponse
309
- * @property {number} [company_id]
310
- * @property {string} [fulfillment_type]
311
- * @property {number} [id]
312
- * @property {number} [latitude]
313
- * @property {number} [longitude]
314
- * @property {number} [processing_time]
315
- * @property {string} [store_type]
316
- * @property {string[]} [tags]
317
- */
213
+ class LogisticApplicationModel {
214
+ /** @returns {PincodeParentsResponse} */
215
+ static PincodeParentsResponse() {
216
+ return Joi.object({
217
+ sub_type: Joi.string().allow(""),
218
+ display_name: Joi.string().allow(""),
219
+ name: Joi.string().allow(""),
220
+ uid: Joi.string().allow(""),
221
+ });
222
+ }
318
223
 
319
- /**
320
- * @typedef TATArticlesRequest
321
- * @property {TATCategoryRequest} [category]
322
- * @property {number} [manufacturing_time]
323
- * @property {string} [manufacturing_time_unit]
324
- */
224
+ /** @returns {PincodeMetaResponse} */
225
+ static PincodeMetaResponse() {
226
+ return Joi.object({
227
+ zone: Joi.string().allow(""),
228
+ internal_zone_id: Joi.number(),
229
+ });
230
+ }
325
231
 
326
- /**
327
- * @typedef TATArticlesResponse
328
- * @property {number} [_manufacturing_time_seconds]
329
- * @property {TATCategoryRequest} [category]
330
- * @property {TATErrorSchemaResponse} [error]
331
- * @property {boolean} [is_cod_available]
332
- * @property {number} [manufacturing_time]
333
- * @property {string} [manufacturing_time_unit]
334
- * @property {TATPromiseResponse} [promise]
335
- */
336
-
337
- /**
338
- * @typedef TATCategoryRequest
339
- * @property {number} [id]
340
- * @property {string} [level]
341
- */
342
-
343
- /**
344
- * @typedef TATErrorSchemaResponse
345
- * @property {string} [message]
346
- * @property {string} [type]
347
- * @property {string} [value]
348
- */
349
-
350
- /**
351
- * @typedef TATFormattedResponse
352
- * @property {string} [max]
353
- * @property {string} [min]
354
- */
355
-
356
- /**
357
- * @typedef TATLocationDetailsRequest
358
- * @property {TATArticlesRequest[]} [articles]
359
- * @property {string} [from_pincode]
360
- * @property {number} [fulfillment_id]
361
- */
362
-
363
- /**
364
- * @typedef TATLocationDetailsResponse
365
- * @property {TATArticlesResponse[]} [articles]
366
- * @property {string} [from_pincode]
367
- * @property {number} [fulfillment_id]
368
- */
369
-
370
- /**
371
- * @typedef TATPromiseResponse
372
- * @property {TATFormattedResponse} [formatted]
373
- * @property {TATTimestampResponse} [timestamp]
374
- */
375
-
376
- /**
377
- * @typedef TATTimestampResponse
378
- * @property {number} [max]
379
- * @property {number} [min]
380
- */
381
-
382
- /**
383
- * @typedef TATViewRequest
384
- * @property {string} [action]
385
- * @property {string} [identifier]
386
- * @property {string} [journey]
387
- * @property {TATLocationDetailsRequest[]} [location_details]
388
- * @property {string} [source]
389
- * @property {string} [to_pincode]
390
- */
391
-
392
- /**
393
- * @typedef TATViewResponse
394
- * @property {string} [action]
395
- * @property {TATErrorSchemaResponse} [error]
396
- * @property {string} [identifier]
397
- * @property {boolean} [is_cod_available]
398
- * @property {string} [journey]
399
- * @property {TATLocationDetailsResponse[]} [location_details]
400
- * @property {string} [payment_mode]
401
- * @property {string} [request_uuid]
402
- * @property {string} [source]
403
- * @property {string} [stormbreaker_uuid]
404
- * @property {boolean} [success]
405
- * @property {string} [to_city]
406
- * @property {string} [to_pincode]
407
- */
408
-
409
- /**
410
- * @typedef ValidateAddressRequest
411
- * @property {string} [address] - A string representing the complete address,
412
- * combining address line 1, address line 2, area, landmark, sector, city,
413
- * state, and pincode. This provides a comprehensive view of the address details.
414
- * @property {string} [address1] - A string representing the first line of the
415
- * address, typically containing street or building information.
416
- * @property {string} [address2] - A string representing the second line of the
417
- * address, which can be used for additional address details if needed.
418
- * @property {string} [area] - A string specifying the locality or area
419
- * associated with the address.
420
- * @property {string} [city] - A string denoting the city or municipality of the address.
421
- * @property {string} [email] - A string containing the recipient's email address.
422
- * @property {string} [landmark] - A string representing a prominent nearby
423
- * landmark that aids in locating the address.
424
- * @property {string} [name] - A string representing the recipient's name or the
425
- * organization name associated with the address.
426
- * @property {string} [phone] - An integer representing the recipient's contact
427
- * phone number.
428
- * @property {string} [pincode] - A string indicating the postal code or PIN
429
- * code of the address area.
430
- * @property {string} [sector] - A string specifying the sector or district of
431
- * the address if applicable.
432
- * @property {string} [state] - A string indicating the state or province of the address.
433
- */
434
-
435
- class LogisticApplicationModel {
436
- /** @returns {CountryEntityResponse} */
437
- static CountryEntityResponse() {
438
- return Joi.object({
439
- display_name: Joi.string().allow(""),
440
- is_active: Joi.boolean(),
441
- logistics: LogisticApplicationModel.LogisticsResponse(),
442
- meta: LogisticApplicationModel.CountryMetaResponse(),
443
- name: Joi.string().allow(""),
444
- parent_id: Joi.string().allow(""),
445
- sub_type: Joi.string().allow(""),
446
- type: Joi.string().allow(""),
447
- uid: Joi.string().allow(""),
448
- });
449
- }
450
-
451
- /** @returns {CountryHierarchy} */
452
- static CountryHierarchy() {
453
- return Joi.object({
454
- name: Joi.string().allow(""),
455
- slug: Joi.string().allow(""),
456
- });
457
- }
458
-
459
- /** @returns {CountryListResponse} */
460
- static CountryListResponse() {
232
+ /** @returns {PincodeErrorSchemaResponse} */
233
+ static PincodeErrorSchemaResponse() {
461
234
  return Joi.object({
462
- results: Joi.array().items(
463
- LogisticApplicationModel.CountryEntityResponse()
464
- ),
235
+ message: Joi.string().allow("").allow(null),
236
+ value: Joi.string().allow("").allow(null),
237
+ type: Joi.string().allow("").allow(null),
465
238
  });
466
239
  }
467
240
 
@@ -473,248 +246,173 @@ class LogisticApplicationModel {
473
246
  });
474
247
  }
475
248
 
476
- /** @returns {CountryObject} */
477
- static CountryObject() {
478
- return Joi.object({
479
- currency: LogisticApplicationModel.CurrencyObject(),
480
- display_name: Joi.string().allow(""),
481
- hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
482
- id: Joi.string().allow(""),
483
- iso2: Joi.string().allow(""),
484
- iso3: Joi.string().allow(""),
485
- latitude: Joi.string().allow(""),
486
- longitude: Joi.string().allow(""),
487
- name: Joi.string().allow(""),
488
- phone_code: Joi.string().allow(""),
489
- timezones: Joi.array().items(Joi.string().allow("")),
490
- type: Joi.string().allow(""),
491
- });
492
- }
493
-
494
- /** @returns {CurrencyObject} */
495
- static CurrencyObject() {
496
- return Joi.object({
497
- code: Joi.string().allow(""),
498
- name: Joi.string().allow(""),
499
- symbol: Joi.string().allow(""),
500
- });
501
- }
502
-
503
- /** @returns {DP} */
504
- static DP() {
505
- return Joi.object({
506
- area_code: Joi.string().allow("").allow(null),
507
- assign_dp_from_sb: Joi.boolean(),
508
- external_account_id: Joi.string().allow("").allow(null),
509
- fm_priority: Joi.number().required(),
510
- internal_account_id: Joi.string().allow(""),
511
- lm_priority: Joi.number().required(),
512
- operations: Joi.array().items(Joi.string().allow("")).required(),
513
- payment_mode: Joi.string().allow("").required(),
514
- rvp_priority: Joi.number().required(),
515
- transport_mode: Joi.string().allow(""),
516
- });
517
- }
518
-
519
- /** @returns {ErrorResponse} */
520
- static ErrorResponse() {
521
- return Joi.object({
522
- error: Joi.string().allow(""),
523
- });
524
- }
525
-
526
- /** @returns {FieldValidation} */
527
- static FieldValidation() {
249
+ /** @returns {PincodeLatLongData} */
250
+ static PincodeLatLongData() {
528
251
  return Joi.object({
529
- regex: LogisticApplicationModel.FieldValidationRegex(),
530
252
  type: Joi.string().allow(""),
253
+ coordinates: Joi.array().items(Joi.string().allow("")),
531
254
  });
532
255
  }
533
256
 
534
- /** @returns {FieldValidationRegex} */
535
- static FieldValidationRegex() {
536
- return Joi.object({
537
- length: LogisticApplicationModel.LengthValidation(),
538
- value: Joi.string().allow(""),
539
- });
540
- }
541
-
542
- /** @returns {GetCountries} */
543
- static GetCountries() {
544
- return Joi.object({
545
- items: Joi.array().items(LogisticApplicationModel.CountryObject()),
546
- page: LogisticApplicationModel.Page(),
547
- });
548
- }
549
-
550
- /** @returns {GetCountry} */
551
- static GetCountry() {
257
+ /** @returns {PincodeDataResponse} */
258
+ static PincodeDataResponse() {
552
259
  return Joi.object({
553
- currency: LogisticApplicationModel.CurrencyObject(),
260
+ parents: Joi.array().items(
261
+ LogisticApplicationModel.PincodeParentsResponse()
262
+ ),
263
+ meta: LogisticApplicationModel.PincodeMetaResponse(),
554
264
  display_name: Joi.string().allow(""),
555
- fields: LogisticApplicationModel.GetCountryFields(),
556
- hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
557
- id: Joi.string().allow(""),
558
- iso2: Joi.string().allow(""),
559
- iso3: Joi.string().allow(""),
560
- latitude: Joi.string().allow(""),
561
- longitude: Joi.string().allow(""),
265
+ error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
266
+ meta_code: LogisticApplicationModel.CountryMetaResponse(),
267
+ lat_long: LogisticApplicationModel.PincodeLatLongData(),
268
+ sub_type: Joi.string().allow(""),
562
269
  name: Joi.string().allow(""),
563
- phone_code: Joi.string().allow(""),
564
- timezones: Joi.array().items(Joi.string().allow("")),
565
- type: Joi.string().allow(""),
566
- });
567
- }
568
-
569
- /** @returns {GetCountryFields} */
570
- static GetCountryFields() {
571
- return Joi.object({
572
- address: Joi.array()
573
- .items(LogisticApplicationModel.GetCountryFieldsAddress())
574
- .required(),
575
- address_template: LogisticApplicationModel.GetCountryFieldsAddressTemplate().required(),
576
- serviceability_fields: Joi.array()
577
- .items(Joi.string().allow(""))
578
- .required(),
579
- });
580
- }
581
-
582
- /** @returns {GetCountryFieldsAddress} */
583
- static GetCountryFieldsAddress() {
584
- return Joi.object({
585
- display_name: Joi.string().allow("").required(),
586
- edit: Joi.boolean(),
587
- error_text: Joi.string().allow("").allow(null),
588
- input: Joi.string().allow("").required(),
589
- required: Joi.boolean().required(),
590
- slug: Joi.string().allow("").required(),
591
- validation: LogisticApplicationModel.FieldValidation(),
592
- values: LogisticApplicationModel.GetCountryFieldsAddressValues(),
593
- });
594
- }
595
-
596
- /** @returns {GetCountryFieldsAddressTemplate} */
597
- static GetCountryFieldsAddressTemplate() {
598
- return Joi.object({
599
- checkout_form: Joi.string().allow("").required(),
600
- default_display: Joi.string().allow("").required(),
601
- store_os_form: Joi.string().allow("").required(),
270
+ uid: Joi.string().allow(""),
602
271
  });
603
272
  }
604
273
 
605
- /** @returns {GetCountryFieldsAddressValues} */
606
- static GetCountryFieldsAddressValues() {
274
+ /** @returns {PincodeApiResponse} */
275
+ static PincodeApiResponse() {
607
276
  return Joi.object({
608
- get_all: LogisticApplicationModel.GetOneOrAll(),
609
- get_one: LogisticApplicationModel.GetOneOrAll(),
277
+ success: Joi.boolean().required(),
278
+ data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
279
+ error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
610
280
  });
611
281
  }
612
282
 
613
- /** @returns {GetLocalities} */
614
- static GetLocalities() {
283
+ /** @returns {TATCategoryRequest} */
284
+ static TATCategoryRequest() {
615
285
  return Joi.object({
616
- items: Joi.array().items(LogisticApplicationModel.Localities()),
617
- page: LogisticApplicationModel.Page(),
286
+ level: Joi.string().allow(""),
287
+ id: Joi.number(),
618
288
  });
619
289
  }
620
290
 
621
- /** @returns {GetLocality} */
622
- static GetLocality() {
291
+ /** @returns {TATArticlesRequest} */
292
+ static TATArticlesRequest() {
623
293
  return Joi.object({
624
- display_name: Joi.string().allow(""),
625
- id: Joi.string().allow(""),
626
- localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
627
- name: Joi.string().allow(""),
628
- parent_ids: Joi.array().items(Joi.string().allow("")),
629
- type: Joi.string().allow(""),
294
+ category: LogisticApplicationModel.TATCategoryRequest(),
295
+ manufacturing_time_unit: Joi.string().allow(""),
296
+ manufacturing_time: Joi.number(),
630
297
  });
631
298
  }
632
299
 
633
- /** @returns {GetOneOrAll} */
634
- static GetOneOrAll() {
300
+ /** @returns {TATLocationDetailsRequest} */
301
+ static TATLocationDetailsRequest() {
635
302
  return Joi.object({
636
- operation_id: Joi.string().allow(""),
637
- params: LogisticApplicationModel.GetOneOrAllParams(),
303
+ fulfillment_id: Joi.number(),
304
+ from_pincode: Joi.string().allow(""),
305
+ articles: Joi.array().items(
306
+ LogisticApplicationModel.TATArticlesRequest()
307
+ ),
638
308
  });
639
309
  }
640
310
 
641
- /** @returns {GetOneOrAllParams} */
642
- static GetOneOrAllParams() {
311
+ /** @returns {TATViewRequest} */
312
+ static TATViewRequest() {
643
313
  return Joi.object({
644
- path: LogisticApplicationModel.GetOneOrAllPath(),
645
- query: LogisticApplicationModel.GetOneOrAllQuery(),
314
+ to_pincode: Joi.string().allow(""),
315
+ source: Joi.string().allow(""),
316
+ action: Joi.string().allow(""),
317
+ identifier: Joi.string().allow(""),
318
+ location_details: Joi.array().items(
319
+ LogisticApplicationModel.TATLocationDetailsRequest()
320
+ ),
321
+ journey: Joi.string().allow(""),
646
322
  });
647
323
  }
648
324
 
649
- /** @returns {GetOneOrAllPath} */
650
- static GetOneOrAllPath() {
325
+ /** @returns {TATErrorSchemaResponse} */
326
+ static TATErrorSchemaResponse() {
651
327
  return Joi.object({
652
- locality_type: Joi.string().allow(""),
653
- locality_value: Joi.string().allow(""),
328
+ message: Joi.string().allow("").allow(null),
329
+ value: Joi.string().allow("").allow(null),
330
+ type: Joi.string().allow("").allow(null),
654
331
  });
655
332
  }
656
333
 
657
- /** @returns {GetOneOrAllQuery} */
658
- static GetOneOrAllQuery() {
334
+ /** @returns {TATTimestampResponse} */
335
+ static TATTimestampResponse() {
659
336
  return Joi.object({
660
- city: Joi.string().allow("").allow(null),
661
- country: Joi.string().allow("").allow(null),
662
- sector: Joi.string().allow("").allow(null),
663
- state: Joi.string().allow("").allow(null),
337
+ min: Joi.number(),
338
+ max: Joi.number(),
664
339
  });
665
340
  }
666
341
 
667
- /** @returns {GetStoreResponse} */
668
- static GetStoreResponse() {
342
+ /** @returns {TATFormattedResponse} */
343
+ static TATFormattedResponse() {
669
344
  return Joi.object({
670
- items: Joi.array().items(LogisticApplicationModel.StoreItemResponse()),
671
- page: LogisticApplicationModel.Page(),
345
+ min: Joi.string().allow(""),
346
+ max: Joi.string().allow(""),
672
347
  });
673
348
  }
674
349
 
675
- /** @returns {GetZoneFromPincodeViewRequest} */
676
- static GetZoneFromPincodeViewRequest() {
350
+ /** @returns {TATPromiseResponse} */
351
+ static TATPromiseResponse() {
677
352
  return Joi.object({
678
- country: Joi.string().allow("").required(),
679
- pincode: Joi.string().allow("").required(),
353
+ timestamp: LogisticApplicationModel.TATTimestampResponse(),
354
+ formatted: LogisticApplicationModel.TATFormattedResponse(),
680
355
  });
681
356
  }
682
357
 
683
- /** @returns {GetZoneFromPincodeViewResponse} */
684
- static GetZoneFromPincodeViewResponse() {
358
+ /** @returns {TATArticlesResponse} */
359
+ static TATArticlesResponse() {
685
360
  return Joi.object({
686
- serviceability_type: Joi.string().allow("").required(),
687
- zones: Joi.array().items(Joi.string().allow("")).required(),
361
+ manufacturing_time_unit: Joi.string().allow(""),
362
+ error: LogisticApplicationModel.TATErrorSchemaResponse(),
363
+ is_cod_available: Joi.boolean(),
364
+ promise: LogisticApplicationModel.TATPromiseResponse(),
365
+ manufacturing_time: Joi.number(),
366
+ category: LogisticApplicationModel.TATCategoryRequest(),
367
+ _manufacturing_time_seconds: Joi.number(),
688
368
  });
689
369
  }
690
370
 
691
- /** @returns {LengthValidation} */
692
- static LengthValidation() {
371
+ /** @returns {TATLocationDetailsResponse} */
372
+ static TATLocationDetailsResponse() {
693
373
  return Joi.object({
694
- max: Joi.number().allow(null),
695
- min: Joi.number().allow(null),
374
+ fulfillment_id: Joi.number(),
375
+ from_pincode: Joi.string().allow(""),
376
+ articles: Joi.array().items(
377
+ LogisticApplicationModel.TATArticlesResponse()
378
+ ),
696
379
  });
697
380
  }
698
381
 
699
- /** @returns {Localities} */
700
- static Localities() {
382
+ /** @returns {TATViewResponse} */
383
+ static TATViewResponse() {
701
384
  return Joi.object({
702
- display_name: Joi.string().allow(""),
703
- id: Joi.string().allow(""),
704
- name: Joi.string().allow(""),
705
- parent_ids: Joi.array().items(Joi.string().allow("")),
706
- type: Joi.string().allow(""),
385
+ to_pincode: Joi.string().allow(""),
386
+ request_uuid: Joi.string().allow(""),
387
+ payment_mode: Joi.string().allow(""),
388
+ success: Joi.boolean(),
389
+ error: LogisticApplicationModel.TATErrorSchemaResponse(),
390
+ is_cod_available: Joi.boolean(),
391
+ source: Joi.string().allow(""),
392
+ action: Joi.string().allow(""),
393
+ stormbreaker_uuid: Joi.string().allow(""),
394
+ to_city: Joi.string().allow(""),
395
+ identifier: Joi.string().allow(""),
396
+ location_details: Joi.array().items(
397
+ LogisticApplicationModel.TATLocationDetailsResponse()
398
+ ),
399
+ journey: Joi.string().allow(""),
707
400
  });
708
401
  }
709
402
 
710
- /** @returns {LocalityParent} */
711
- static LocalityParent() {
403
+ /** @returns {DP} */
404
+ static DP() {
712
405
  return Joi.object({
713
- display_name: Joi.string().allow(""),
714
- id: Joi.string().allow(""),
715
- name: Joi.string().allow(""),
716
- parent_ids: Joi.array().items(Joi.string().allow("")),
717
- type: Joi.string().allow(""),
406
+ fm_priority: Joi.number().required(),
407
+ lm_priority: Joi.number().required(),
408
+ rvp_priority: Joi.number().required(),
409
+ payment_mode: Joi.string().allow("").required(),
410
+ operations: Joi.array().items(Joi.string().allow("")).required(),
411
+ area_code: Joi.string().allow("").allow(null),
412
+ assign_dp_from_sb: Joi.boolean(),
413
+ internal_account_id: Joi.string().allow(""),
414
+ external_account_id: Joi.string().allow("").allow(null),
415
+ transport_mode: Joi.string().allow(""),
718
416
  });
719
417
  }
720
418
 
@@ -725,251 +423,65 @@ class LogisticApplicationModel {
725
423
  });
726
424
  }
727
425
 
728
- /** @returns {Page} */
729
- static Page() {
730
- return Joi.object({
731
- current: Joi.number(),
732
- has_next: Joi.boolean(),
733
- has_previous: Joi.boolean(),
734
- item_total: Joi.number(),
735
- next_id: Joi.string().allow(""),
736
- size: Joi.number(),
737
- type: Joi.string().allow("").required(),
738
- });
739
- }
740
-
741
- /** @returns {PincodeApiResponse} */
742
- static PincodeApiResponse() {
743
- return Joi.object({
744
- data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
745
- error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
746
- success: Joi.boolean().required(),
747
- });
748
- }
749
-
750
- /** @returns {PincodeDataResponse} */
751
- static PincodeDataResponse() {
426
+ /** @returns {CountryEntityResponse} */
427
+ static CountryEntityResponse() {
752
428
  return Joi.object({
429
+ meta: LogisticApplicationModel.CountryMetaResponse(),
430
+ logistics: LogisticApplicationModel.LogisticsResponse(),
753
431
  display_name: Joi.string().allow(""),
754
- error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
755
- lat_long: LogisticApplicationModel.PincodeLatLongData(),
756
- meta: LogisticApplicationModel.PincodeMetaResponse(),
757
- meta_code: LogisticApplicationModel.CountryMetaResponse(),
758
- name: Joi.string().allow(""),
759
- parents: Joi.array().items(
760
- LogisticApplicationModel.PincodeParentsResponse()
761
- ),
432
+ type: Joi.string().allow(""),
433
+ is_active: Joi.boolean(),
434
+ parent_id: Joi.string().allow(""),
762
435
  sub_type: Joi.string().allow(""),
436
+ name: Joi.string().allow(""),
763
437
  uid: Joi.string().allow(""),
764
438
  });
765
439
  }
766
440
 
767
- /** @returns {PincodeErrorSchemaResponse} */
768
- static PincodeErrorSchemaResponse() {
769
- return Joi.object({
770
- message: Joi.string().allow("").allow(null),
771
- type: Joi.string().allow("").allow(null),
772
- value: Joi.string().allow("").allow(null),
773
- });
774
- }
775
-
776
- /** @returns {PincodeLatLongData} */
777
- static PincodeLatLongData() {
441
+ /** @returns {CountryListResponse} */
442
+ static CountryListResponse() {
778
443
  return Joi.object({
779
- coordinates: Joi.array().items(Joi.string().allow("")),
780
- type: Joi.string().allow(""),
444
+ results: Joi.array().items(
445
+ LogisticApplicationModel.CountryEntityResponse()
446
+ ),
781
447
  });
782
448
  }
783
449
 
784
- /** @returns {PincodeMetaResponse} */
785
- static PincodeMetaResponse() {
450
+ /** @returns {GetZoneFromPincodeViewRequest} */
451
+ static GetZoneFromPincodeViewRequest() {
786
452
  return Joi.object({
787
- internal_zone_id: Joi.number(),
788
- zone: Joi.string().allow(""),
453
+ pincode: Joi.string().allow("").required(),
454
+ country: Joi.string().allow("").required(),
789
455
  });
790
456
  }
791
457
 
792
- /** @returns {PincodeParentsResponse} */
793
- static PincodeParentsResponse() {
458
+ /** @returns {GetZoneFromPincodeViewResponse} */
459
+ static GetZoneFromPincodeViewResponse() {
794
460
  return Joi.object({
795
- display_name: Joi.string().allow(""),
796
- name: Joi.string().allow(""),
797
- sub_type: Joi.string().allow(""),
798
- uid: Joi.string().allow(""),
461
+ serviceability_type: Joi.string().allow("").required(),
462
+ zones: Joi.array().items(Joi.string().allow("")).required(),
799
463
  });
800
464
  }
801
465
 
802
466
  /** @returns {ReAssignStoreRequest} */
803
467
  static ReAssignStoreRequest() {
804
468
  return Joi.object({
805
- articles: Joi.array().items(Joi.any()).required(),
806
469
  configuration: Joi.any().required(),
807
- identifier: Joi.string().allow("").required(),
808
- ignored_locations: Joi.array().items(Joi.number()).required(),
809
470
  to_pincode: Joi.string().allow("").required(),
471
+ ignored_locations: Joi.array().items(Joi.number()).required(),
472
+ identifier: Joi.string().allow("").required(),
473
+ articles: Joi.array().items(Joi.any()).required(),
810
474
  });
811
475
  }
812
476
 
813
477
  /** @returns {ReAssignStoreResponse} */
814
478
  static ReAssignStoreResponse() {
815
479
  return Joi.object({
816
- assigned_stores: Joi.array().items(Joi.any()),
817
- error: Joi.any().required(),
480
+ to_pincode: Joi.string().allow("").required(),
818
481
  pystormbreaker_uuid: Joi.string().allow("").required(),
819
482
  success: Joi.boolean().required(),
820
- to_pincode: Joi.string().allow("").required(),
821
- });
822
- }
823
-
824
- /** @returns {StoreItemResponse} */
825
- static StoreItemResponse() {
826
- return Joi.object({
827
- company_id: Joi.number(),
828
- fulfillment_type: Joi.string().allow(""),
829
- id: Joi.number(),
830
- latitude: Joi.number(),
831
- longitude: Joi.number(),
832
- processing_time: Joi.number(),
833
- store_type: Joi.string().allow(""),
834
- tags: Joi.array().items(Joi.string().allow("")),
835
- });
836
- }
837
-
838
- /** @returns {TATArticlesRequest} */
839
- static TATArticlesRequest() {
840
- return Joi.object({
841
- category: LogisticApplicationModel.TATCategoryRequest(),
842
- manufacturing_time: Joi.number(),
843
- manufacturing_time_unit: Joi.string().allow(""),
844
- });
845
- }
846
-
847
- /** @returns {TATArticlesResponse} */
848
- static TATArticlesResponse() {
849
- return Joi.object({
850
- _manufacturing_time_seconds: Joi.number(),
851
- category: LogisticApplicationModel.TATCategoryRequest(),
852
- error: LogisticApplicationModel.TATErrorSchemaResponse(),
853
- is_cod_available: Joi.boolean(),
854
- manufacturing_time: Joi.number(),
855
- manufacturing_time_unit: Joi.string().allow(""),
856
- promise: LogisticApplicationModel.TATPromiseResponse(),
857
- });
858
- }
859
-
860
- /** @returns {TATCategoryRequest} */
861
- static TATCategoryRequest() {
862
- return Joi.object({
863
- id: Joi.number(),
864
- level: Joi.string().allow(""),
865
- });
866
- }
867
-
868
- /** @returns {TATErrorSchemaResponse} */
869
- static TATErrorSchemaResponse() {
870
- return Joi.object({
871
- message: Joi.string().allow("").allow(null),
872
- type: Joi.string().allow("").allow(null),
873
- value: Joi.string().allow("").allow(null),
874
- });
875
- }
876
-
877
- /** @returns {TATFormattedResponse} */
878
- static TATFormattedResponse() {
879
- return Joi.object({
880
- max: Joi.string().allow(""),
881
- min: Joi.string().allow(""),
882
- });
883
- }
884
-
885
- /** @returns {TATLocationDetailsRequest} */
886
- static TATLocationDetailsRequest() {
887
- return Joi.object({
888
- articles: Joi.array().items(
889
- LogisticApplicationModel.TATArticlesRequest()
890
- ),
891
- from_pincode: Joi.string().allow(""),
892
- fulfillment_id: Joi.number(),
893
- });
894
- }
895
-
896
- /** @returns {TATLocationDetailsResponse} */
897
- static TATLocationDetailsResponse() {
898
- return Joi.object({
899
- articles: Joi.array().items(
900
- LogisticApplicationModel.TATArticlesResponse()
901
- ),
902
- from_pincode: Joi.string().allow(""),
903
- fulfillment_id: Joi.number(),
904
- });
905
- }
906
-
907
- /** @returns {TATPromiseResponse} */
908
- static TATPromiseResponse() {
909
- return Joi.object({
910
- formatted: LogisticApplicationModel.TATFormattedResponse(),
911
- timestamp: LogisticApplicationModel.TATTimestampResponse(),
912
- });
913
- }
914
-
915
- /** @returns {TATTimestampResponse} */
916
- static TATTimestampResponse() {
917
- return Joi.object({
918
- max: Joi.number(),
919
- min: Joi.number(),
920
- });
921
- }
922
-
923
- /** @returns {TATViewRequest} */
924
- static TATViewRequest() {
925
- return Joi.object({
926
- action: Joi.string().allow(""),
927
- identifier: Joi.string().allow(""),
928
- journey: Joi.string().allow(""),
929
- location_details: Joi.array().items(
930
- LogisticApplicationModel.TATLocationDetailsRequest()
931
- ),
932
- source: Joi.string().allow(""),
933
- to_pincode: Joi.string().allow(""),
934
- });
935
- }
936
-
937
- /** @returns {TATViewResponse} */
938
- static TATViewResponse() {
939
- return Joi.object({
940
- action: Joi.string().allow(""),
941
- error: LogisticApplicationModel.TATErrorSchemaResponse(),
942
- identifier: Joi.string().allow(""),
943
- is_cod_available: Joi.boolean(),
944
- journey: Joi.string().allow(""),
945
- location_details: Joi.array().items(
946
- LogisticApplicationModel.TATLocationDetailsResponse()
947
- ),
948
- payment_mode: Joi.string().allow(""),
949
- request_uuid: Joi.string().allow(""),
950
- source: Joi.string().allow(""),
951
- stormbreaker_uuid: Joi.string().allow(""),
952
- success: Joi.boolean(),
953
- to_city: Joi.string().allow(""),
954
- to_pincode: Joi.string().allow(""),
955
- });
956
- }
957
-
958
- /** @returns {ValidateAddressRequest} */
959
- static ValidateAddressRequest() {
960
- return Joi.object({
961
- address: Joi.string().allow(""),
962
- address1: Joi.string().allow(""),
963
- address2: Joi.string().allow(""),
964
- area: Joi.string().allow(""),
965
- city: Joi.string().allow(""),
966
- email: Joi.string().allow(""),
967
- landmark: Joi.string().allow(""),
968
- name: Joi.string().allow(""),
969
- phone: Joi.string().allow(""),
970
- pincode: Joi.string().allow(""),
971
- sector: Joi.string().allow(""),
972
- state: Joi.string().allow(""),
483
+ error: Joi.any().required(),
484
+ assigned_stores: Joi.array().items(Joi.any()),
973
485
  });
974
486
  }
975
487
  }