@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

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 (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,12 +1,595 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class OrderModel {
3
+ /**
4
+ * @typedef ApefaceApiError
5
+ * @property {string} [message]
6
+ * @property {boolean} [success]
7
+ */
8
+
9
+ /**
10
+ * @typedef AppliedFreeArticles
11
+ * @property {string} [article_id]
12
+ * @property {Object} [free_gift_item_details]
13
+ * @property {string} [parent_item_identifier]
14
+ * @property {number} [quantity]
15
+ */
16
+
17
+ /**
18
+ * @typedef AppliedPromos
19
+ * @property {number} [amount]
20
+ * @property {AppliedFreeArticles[]} [applied_free_articles]
21
+ * @property {number} [article_quantity]
22
+ * @property {boolean} [mrp_promotion]
23
+ * @property {string} [promo_id]
24
+ * @property {string} [promotion_name]
25
+ * @property {string} [promotion_type]
26
+ */
27
+
28
+ /**
29
+ * @typedef BagReasonMeta
30
+ * @property {boolean} [show_text_area]
31
+ */
32
+
33
+ /**
34
+ * @typedef BagReasons
35
+ * @property {string} [display_name]
36
+ * @property {number} [id]
37
+ * @property {BagReasonMeta} [meta]
38
+ * @property {string[]} [qc_type]
39
+ * @property {QuestionSet[]} [question_set]
40
+ * @property {BagReasons[]} [reasons]
41
+ */
42
+
43
+ /**
44
+ * @typedef Bags
45
+ * @property {AppliedPromos[]} [applied_promos]
46
+ * @property {boolean} [can_cancel]
47
+ * @property {boolean} [can_return]
48
+ * @property {string} [currency_code]
49
+ * @property {string} [currency_symbol]
50
+ * @property {CurrentStatus} [current_status]
51
+ * @property {string} [delivery_date]
52
+ * @property {FinancialBreakup[]} [financial_breakup]
53
+ * @property {number} [id]
54
+ * @property {Item} [item]
55
+ * @property {number} [line_number]
56
+ * @property {Object} [meta]
57
+ * @property {Object} [parent_promo_bags]
58
+ * @property {Prices} [prices]
59
+ * @property {number} [quantity]
60
+ * @property {string} [returnable_date]
61
+ * @property {string} [seller_identifier]
62
+ */
63
+
64
+ /**
65
+ * @typedef BagsForReorder
66
+ * @property {BagsForReorderArticleAssignment} [article_assignment]
67
+ * @property {number} [item_id]
68
+ * @property {string} [item_size]
69
+ * @property {number} [quantity]
70
+ * @property {number} [seller_id]
71
+ * @property {number} [store_id]
72
+ */
73
+
74
+ /**
75
+ * @typedef BagsForReorderArticleAssignment
76
+ * @property {string} [level]
77
+ * @property {string} [strategy]
78
+ */
79
+
80
+ /**
81
+ * @typedef BreakupValues
82
+ * @property {string} [currency_code]
83
+ * @property {string} [currency_symbol]
84
+ * @property {string} [display]
85
+ * @property {string} [name]
86
+ * @property {number} [value]
87
+ */
88
+
89
+ /**
90
+ * @typedef CurrentStatus
91
+ * @property {string} [journey_type]
92
+ * @property {string} [name]
93
+ * @property {string} [status]
94
+ * @property {string} [updated_at]
95
+ */
96
+
97
+ /**
98
+ * @typedef CustomerDetailsResponse
99
+ * @property {string} [country]
100
+ * @property {string} [name]
101
+ * @property {string} [order_id]
102
+ * @property {string} [phone]
103
+ * @property {string} [shipment_id]
104
+ */
105
+
106
+ /**
107
+ * @typedef DataUpdates
108
+ * @property {EntitiesDataUpdates[]} [entities]
109
+ * @property {ProductsDataUpdates[]} [products]
110
+ */
111
+
112
+ /**
113
+ * @typedef DeliveryAddress
114
+ * @property {string} [address]
115
+ * @property {string} [address_category]
116
+ * @property {string} [address_type]
117
+ * @property {string} [address1]
118
+ * @property {string} [address2]
119
+ * @property {string} [area]
120
+ * @property {string} [city]
121
+ * @property {string} [contact_person]
122
+ * @property {string} [country]
123
+ * @property {string} [country_iso_code]
124
+ * @property {string} [country_phone_code]
125
+ * @property {string} [created_at]
126
+ * @property {string} [email]
127
+ * @property {string} [landmark]
128
+ * @property {number} [latitude]
129
+ * @property {number} [longitude]
130
+ * @property {string} [name]
131
+ * @property {string} [phone]
132
+ * @property {string} [pincode]
133
+ * @property {string} [state]
134
+ * @property {string} [updated_at]
135
+ * @property {string} [version]
136
+ */
137
+
138
+ /**
139
+ * @typedef EntitiesDataUpdates
140
+ * @property {Object} [data]
141
+ * @property {Object[]} [filters]
142
+ */
143
+
144
+ /**
145
+ * @typedef EntitiesReasons
146
+ * @property {EntityReasonData} [data]
147
+ * @property {Object[]} [filters]
148
+ */
149
+
150
+ /**
151
+ * @typedef EntityReasonData
152
+ * @property {number} [reason_id]
153
+ * @property {string} [reason_text]
154
+ */
155
+
156
+ /**
157
+ * @typedef ErrorResponse
158
+ * @property {string} [code]
159
+ * @property {string} [exception]
160
+ * @property {string} [message]
161
+ * @property {string} [stack_trace]
162
+ * @property {number} [status]
163
+ */
164
+
165
+ /**
166
+ * @typedef FinancialBreakup
167
+ * @property {boolean} [added_to_fynd_cash]
168
+ * @property {number} [amount_paid]
169
+ * @property {number} [amount_paid_roundoff]
170
+ * @property {number} [brand_calculated_amount]
171
+ * @property {number} [cashback]
172
+ * @property {number} [cashback_applied]
173
+ * @property {number} [cod_charges]
174
+ * @property {number} [coupon_effective_discount]
175
+ * @property {number} [coupon_value]
176
+ * @property {number} [delivery_charge]
177
+ * @property {number} [discount]
178
+ * @property {number} [fynd_credits]
179
+ * @property {number} [gst_fee]
180
+ * @property {string} [gst_tag]
181
+ * @property {number} [gst_tax_percentage]
182
+ * @property {string} [hsn_code]
183
+ * @property {Identifiers} [identifiers]
184
+ * @property {string} [item_name]
185
+ * @property {number} [price_effective]
186
+ * @property {number} [price_marked]
187
+ * @property {number} [promotion_effective_discount]
188
+ * @property {number} [refund_amount]
189
+ * @property {number} [refund_credit]
190
+ * @property {string} [size]
191
+ * @property {number} [total_units]
192
+ * @property {number} [transfer_price]
193
+ * @property {number} [value_of_good]
194
+ */
195
+
196
+ /**
197
+ * @typedef FulfillingCompany
198
+ * @property {number} [id]
199
+ * @property {string} [name]
200
+ */
201
+
202
+ /**
203
+ * @typedef FulfillingStore
204
+ * @property {string} [code]
205
+ * @property {number} [company_id]
206
+ * @property {string} [company_name]
207
+ * @property {number} [id]
208
+ * @property {string} [name]
209
+ */
210
+
211
+ /**
212
+ * @typedef Identifiers
213
+ * @property {string} [ean]
214
+ * @property {string} [sku_code]
215
+ */
216
+
217
+ /**
218
+ * @typedef Invoice
219
+ * @property {string} [invoice_url]
220
+ * @property {string} [label_url]
221
+ * @property {string} [updated_date]
222
+ */
223
+
224
+ /**
225
+ * @typedef Item
226
+ * @property {ItemBrand} [brand]
227
+ * @property {string} [code]
228
+ * @property {number} [id]
229
+ * @property {string[]} [image]
230
+ * @property {string[]} [l1_categories]
231
+ * @property {string[]} [l2_categories]
232
+ * @property {string} [l3_category_name]
233
+ * @property {string} [name]
234
+ * @property {string} [seller_identifier]
235
+ * @property {string} [size]
236
+ * @property {string} [slug_key]
237
+ */
238
+
239
+ /**
240
+ * @typedef ItemBrand
241
+ * @property {string} [logo]
242
+ * @property {string} [name]
243
+ */
244
+
245
+ /**
246
+ * @typedef NestedTrackingDetails
247
+ * @property {boolean} [is_current]
248
+ * @property {boolean} [is_passed]
249
+ * @property {string} [status]
250
+ * @property {string} [time]
251
+ */
252
+
253
+ /**
254
+ * @typedef OrderById
255
+ * @property {OrderSchema} [order]
256
+ */
257
+
258
+ /**
259
+ * @typedef OrderFilters
260
+ * @property {OrderStatuses[]} [statuses]
261
+ */
262
+
263
+ /**
264
+ * @typedef OrderList
265
+ * @property {OrderFilters} [filters]
266
+ * @property {OrderSchema[]} [items]
267
+ * @property {OrderPage} [page]
268
+ */
269
+
270
+ /**
271
+ * @typedef OrderPage
272
+ * @property {number} [current]
273
+ * @property {boolean} [has_next]
274
+ * @property {number} [item_total]
275
+ * @property {number} [size]
276
+ * @property {string} [type]
277
+ */
278
+
279
+ /**
280
+ * @typedef OrderSchema
281
+ * @property {BagsForReorder[]} [bags_for_reorder]
282
+ * @property {BreakupValues[]} [breakup_values]
283
+ * @property {string} [order_created_time]
284
+ * @property {string} [order_id]
285
+ * @property {Shipments[]} [shipments]
286
+ * @property {number} [total_shipments_in_order]
287
+ * @property {UserInfo} [user_info]
288
+ */
289
+
290
+ /**
291
+ * @typedef OrderStatuses
292
+ * @property {string} [display]
293
+ * @property {boolean} [is_selected]
294
+ * @property {number} [value]
295
+ */
296
+
297
+ /**
298
+ * @typedef Prices
299
+ * @property {boolean} [added_to_fynd_cash]
300
+ * @property {number} [amount_paid]
301
+ * @property {number} [amount_paid_roundoff]
302
+ * @property {number} [brand_calculated_amount]
303
+ * @property {number} [cashback]
304
+ * @property {number} [cashback_applied]
305
+ * @property {number} [cod_charges]
306
+ * @property {number} [coupon_effective_discount]
307
+ * @property {number} [coupon_value]
308
+ * @property {string} [currency_code]
309
+ * @property {string} [currency_symbol]
310
+ * @property {number} [delivery_charge]
311
+ * @property {number} [discount]
312
+ * @property {number} [fynd_credits]
313
+ * @property {number} [gst_tax_percentage]
314
+ * @property {number} [price_effective]
315
+ * @property {number} [price_marked]
316
+ * @property {number} [promotion_effective_discount]
317
+ * @property {number} [refund_amount]
318
+ * @property {number} [refund_credit]
319
+ * @property {number} [transfer_price]
320
+ * @property {number} [value_of_good]
321
+ */
322
+
323
+ /**
324
+ * @typedef Products
325
+ * @property {string} [identifier]
326
+ * @property {number} [line_number]
327
+ * @property {number} [quantity]
328
+ */
329
+
330
+ /**
331
+ * @typedef ProductsDataUpdates
332
+ * @property {Object} [data]
333
+ * @property {ProductsDataUpdatesFilters[]} [filters]
334
+ */
335
+
336
+ /**
337
+ * @typedef ProductsDataUpdatesFilters
338
+ * @property {string} [identifier]
339
+ * @property {number} [line_number]
340
+ */
341
+
342
+ /**
343
+ * @typedef ProductsReasons
344
+ * @property {ProductsReasonsData} [data]
345
+ * @property {ProductsReasonsFilters[]} [filters]
346
+ */
347
+
348
+ /**
349
+ * @typedef ProductsReasonsData
350
+ * @property {number} [reason_id]
351
+ * @property {string} [reason_text]
352
+ */
353
+
354
+ /**
355
+ * @typedef ProductsReasonsFilters
356
+ * @property {string} [identifier]
357
+ * @property {number} [line_number]
358
+ * @property {number} [quantity]
359
+ */
360
+
361
+ /**
362
+ * @typedef Promise
363
+ * @property {boolean} [show_promise]
364
+ * @property {TimeStampData} [timestamp]
365
+ */
366
+
367
+ /**
368
+ * @typedef QuestionSet
369
+ * @property {string} [display_name]
370
+ * @property {number} [id]
371
+ */
372
+
373
+ /**
374
+ * @typedef ReasonsData
375
+ * @property {EntitiesReasons[]} [entities]
376
+ * @property {ProductsReasons[]} [products]
377
+ */
378
+
379
+ /**
380
+ * @typedef ResponseGetInvoiceShipment
381
+ * @property {string} presigned_type
382
+ * @property {string} presigned_url
383
+ * @property {string} shipment_id
384
+ * @property {boolean} success
385
+ */
386
+
387
+ /**
388
+ * @typedef SendOtpToCustomerResponse
389
+ * @property {string} [message]
390
+ * @property {string} [request_id]
391
+ * @property {number} [resend_timer]
392
+ * @property {boolean} [success]
393
+ */
394
+
395
+ /**
396
+ * @typedef ShipmentApplicationStatusResponse
397
+ * @property {StatusesBodyResponse[]} [statuses]
398
+ */
399
+
400
+ /**
401
+ * @typedef ShipmentBagReasons
402
+ * @property {BagReasons[]} [reasons]
403
+ * @property {boolean} [success]
404
+ */
405
+
406
+ /**
407
+ * @typedef ShipmentById
408
+ * @property {Shipments} [shipment]
409
+ */
410
+
411
+ /**
412
+ * @typedef ShipmentPayment
413
+ * @property {string} [display_name]
414
+ * @property {string} [logo]
415
+ * @property {string} [mode]
416
+ * @property {string} [mop]
417
+ * @property {string} [payment_mode]
418
+ * @property {string} [status]
419
+ */
420
+
421
+ /**
422
+ * @typedef ShipmentReason
423
+ * @property {string} [feedback_type]
424
+ * @property {string} [flow]
425
+ * @property {number} [priority]
426
+ * @property {number} [reason_id]
427
+ * @property {string} [reason_text]
428
+ * @property {boolean} [show_text_area]
429
+ */
430
+
431
+ /**
432
+ * @typedef ShipmentReasons
433
+ * @property {ShipmentReason[]} [reasons]
434
+ */
435
+
436
+ /**
437
+ * @typedef Shipments
438
+ * @property {string} [awb_no]
439
+ * @property {Bags[]} [bags]
440
+ * @property {boolean} [beneficiary_details]
441
+ * @property {BreakupValues[]} [breakup_values]
442
+ * @property {Object} [can_break]
443
+ * @property {boolean} [can_cancel]
444
+ * @property {boolean} [can_return]
445
+ * @property {string} [comment]
446
+ * @property {Object[]} [custom_meta]
447
+ * @property {DeliveryAddress} [delivery_address]
448
+ * @property {string} [delivery_date]
449
+ * @property {string} [dp_name]
450
+ * @property {FulfillingCompany} [fulfilling_company]
451
+ * @property {FulfillingStore} [fulfilling_store]
452
+ * @property {Invoice} [invoice]
453
+ * @property {string} [need_help_url]
454
+ * @property {string} [order_id]
455
+ * @property {string} [order_type]
456
+ * @property {ShipmentPayment} [payment]
457
+ * @property {Prices} [prices]
458
+ * @property {Promise} [promise]
459
+ * @property {Object} [refund_details]
460
+ * @property {Object} [return_meta]
461
+ * @property {string} [returnable_date]
462
+ * @property {string} [shipment_created_at]
463
+ * @property {string} [shipment_id]
464
+ * @property {ShipmentStatus} [shipment_status]
465
+ * @property {boolean} [show_download_invoice]
466
+ * @property {boolean} [show_track_link]
467
+ * @property {Object} [size_info]
468
+ * @property {number} [total_bags]
469
+ * @property {ShipmentTotalDetails} [total_details]
470
+ * @property {string} [track_url]
471
+ * @property {TrackingDetails[]} [tracking_details]
472
+ * @property {string} [traking_no]
473
+ * @property {ShipmentUserInfo} [user_info]
474
+ */
475
+
476
+ /**
477
+ * @typedef ShipmentsRequest
478
+ * @property {DataUpdates} [data_updates]
479
+ * @property {string} identifier
480
+ * @property {Products[]} [products]
481
+ * @property {ReasonsData} [reasons]
482
+ */
483
+
484
+ /**
485
+ * @typedef ShipmentStatus
486
+ * @property {string} [hex_code]
487
+ * @property {string} [title]
488
+ * @property {string} [value]
489
+ */
490
+
491
+ /**
492
+ * @typedef ShipmentTotalDetails
493
+ * @property {number} [pieces]
494
+ * @property {number} [sizes]
495
+ * @property {number} [total_price]
496
+ */
497
+
498
+ /**
499
+ * @typedef ShipmentTrack
500
+ * @property {Track[]} [results]
501
+ */
502
+
503
+ /**
504
+ * @typedef ShipmentUserInfo
505
+ * @property {string} [email]
506
+ * @property {string} [first_name]
507
+ * @property {string} [gender]
508
+ * @property {string} [last_name]
509
+ * @property {string} [mobile]
510
+ * @property {string} [name]
511
+ */
512
+
513
+ /**
514
+ * @typedef StatuesRequest
515
+ * @property {string} [exclude_bags_next_state]
516
+ * @property {ShipmentsRequest[]} [shipments]
517
+ * @property {string} [status]
518
+ */
519
+
520
+ /**
521
+ * @typedef StatusesBodyResponse
522
+ * @property {Object[]} [shipments]
523
+ */
524
+
525
+ /**
526
+ * @typedef TimeStampData
527
+ * @property {string} [max]
528
+ * @property {string} [min]
529
+ */
530
+
531
+ /**
532
+ * @typedef Track
533
+ * @property {string} [account_name]
534
+ * @property {string} [awb]
535
+ * @property {string} [last_location_recieved_at]
536
+ * @property {string} [reason]
537
+ * @property {string} [shipment_type]
538
+ * @property {string} [status]
539
+ * @property {string} [updated_at]
540
+ * @property {string} [updated_time]
541
+ */
542
+
543
+ /**
544
+ * @typedef TrackingDetails
545
+ * @property {boolean} [is_current]
546
+ * @property {boolean} [is_passed]
547
+ * @property {string} [status]
548
+ * @property {string} [time]
549
+ * @property {NestedTrackingDetails[]} [tracking_details]
550
+ * @property {string} [value]
551
+ */
552
+
553
+ /**
554
+ * @typedef UpdateShipmentStatusRequest
555
+ * @property {boolean} [force_transition]
556
+ * @property {boolean} [lock_after_transition]
557
+ * @property {StatuesRequest[]} [statuses]
558
+ * @property {boolean} [task]
559
+ * @property {boolean} [unlock_before_transition]
560
+ */
561
+
562
+ /**
563
+ * @typedef UserInfo
564
+ * @property {string} [email]
565
+ * @property {string} [first_name]
566
+ * @property {string} [gender]
567
+ * @property {string} [last_name]
568
+ * @property {string} [mobile]
569
+ * @property {string} [name]
570
+ */
571
+
572
+ /**
573
+ * @typedef VerifyOtp
574
+ * @property {string} [otp_code]
575
+ * @property {string} [request_id]
576
+ */
577
+
578
+ /**
579
+ * @typedef VerifyOtpResponse
580
+ * @property {boolean} [success]
581
+ */
582
+
583
+ class OrderApplicationModel {
584
+ /** @returns {ApefaceApiError} */
4
585
  static ApefaceApiError() {
5
586
  return Joi.object({
6
587
  message: Joi.string().allow(""),
7
588
  success: Joi.boolean(),
8
589
  });
9
590
  }
591
+
592
+ /** @returns {AppliedFreeArticles} */
10
593
  static AppliedFreeArticles() {
11
594
  return Joi.object({
12
595
  article_id: Joi.string().allow(""),
@@ -15,11 +598,13 @@ class OrderModel {
15
598
  quantity: Joi.number(),
16
599
  });
17
600
  }
601
+
602
+ /** @returns {AppliedPromos} */
18
603
  static AppliedPromos() {
19
604
  return Joi.object({
20
605
  amount: Joi.number(),
21
606
  applied_free_articles: Joi.array().items(
22
- OrderModel.AppliedFreeArticles()
607
+ OrderApplicationModel.AppliedFreeArticles()
23
608
  ),
24
609
  article_quantity: Joi.number(),
25
610
  mrp_promotion: Joi.boolean(),
@@ -28,45 +613,55 @@ class OrderModel {
28
613
  promotion_type: Joi.string().allow(""),
29
614
  });
30
615
  }
616
+
617
+ /** @returns {BagReasonMeta} */
31
618
  static BagReasonMeta() {
32
619
  return Joi.object({
33
620
  show_text_area: Joi.boolean(),
34
621
  });
35
622
  }
623
+
624
+ /** @returns {BagReasons} */
36
625
  static BagReasons() {
37
626
  return Joi.object({
38
627
  display_name: Joi.string().allow(""),
39
628
  id: Joi.number(),
40
- meta: OrderModel.BagReasonMeta(),
629
+ meta: OrderApplicationModel.BagReasonMeta(),
41
630
  qc_type: Joi.array().items(Joi.string().allow("")),
42
- question_set: Joi.array().items(OrderModel.QuestionSet()),
631
+ question_set: Joi.array().items(OrderApplicationModel.QuestionSet()),
43
632
  reasons: Joi.array().items(Joi.link("#BagReasons")),
44
633
  }).id("BagReasons");
45
634
  }
635
+
636
+ /** @returns {Bags} */
46
637
  static Bags() {
47
638
  return Joi.object({
48
- applied_promos: Joi.array().items(OrderModel.AppliedPromos()),
639
+ applied_promos: Joi.array().items(OrderApplicationModel.AppliedPromos()),
49
640
  can_cancel: Joi.boolean(),
50
641
  can_return: Joi.boolean(),
51
642
  currency_code: Joi.string().allow(""),
52
643
  currency_symbol: Joi.string().allow(""),
53
- current_status: OrderModel.CurrentStatus(),
644
+ current_status: OrderApplicationModel.CurrentStatus(),
54
645
  delivery_date: Joi.string().allow("").allow(null),
55
- financial_breakup: Joi.array().items(OrderModel.FinancialBreakup()),
646
+ financial_breakup: Joi.array().items(
647
+ OrderApplicationModel.FinancialBreakup()
648
+ ),
56
649
  id: Joi.number(),
57
- item: OrderModel.Item(),
650
+ item: OrderApplicationModel.Item(),
58
651
  line_number: Joi.number(),
59
652
  meta: Joi.any(),
60
653
  parent_promo_bags: Joi.any(),
61
- prices: OrderModel.Prices(),
654
+ prices: OrderApplicationModel.Prices(),
62
655
  quantity: Joi.number(),
63
656
  returnable_date: Joi.string().allow("").allow(null),
64
657
  seller_identifier: Joi.string().allow(""),
65
658
  });
66
659
  }
660
+
661
+ /** @returns {BagsForReorder} */
67
662
  static BagsForReorder() {
68
663
  return Joi.object({
69
- article_assignment: OrderModel.BagsForReorderArticleAssignment(),
664
+ article_assignment: OrderApplicationModel.BagsForReorderArticleAssignment(),
70
665
  item_id: Joi.number(),
71
666
  item_size: Joi.string().allow(""),
72
667
  quantity: Joi.number(),
@@ -74,12 +669,16 @@ class OrderModel {
74
669
  store_id: Joi.number(),
75
670
  });
76
671
  }
672
+
673
+ /** @returns {BagsForReorderArticleAssignment} */
77
674
  static BagsForReorderArticleAssignment() {
78
675
  return Joi.object({
79
676
  level: Joi.string().allow(""),
80
677
  strategy: Joi.string().allow(""),
81
678
  });
82
679
  }
680
+
681
+ /** @returns {BreakupValues} */
83
682
  static BreakupValues() {
84
683
  return Joi.object({
85
684
  currency_code: Joi.string().allow(""),
@@ -89,6 +688,8 @@ class OrderModel {
89
688
  value: Joi.number(),
90
689
  });
91
690
  }
691
+
692
+ /** @returns {CurrentStatus} */
92
693
  static CurrentStatus() {
93
694
  return Joi.object({
94
695
  journey_type: Joi.string().allow("").allow(null),
@@ -97,6 +698,8 @@ class OrderModel {
97
698
  updated_at: Joi.string().allow(""),
98
699
  });
99
700
  }
701
+
702
+ /** @returns {CustomerDetailsResponse} */
100
703
  static CustomerDetailsResponse() {
101
704
  return Joi.object({
102
705
  country: Joi.string().allow(""),
@@ -106,19 +709,23 @@ class OrderModel {
106
709
  shipment_id: Joi.string().allow(""),
107
710
  });
108
711
  }
712
+
713
+ /** @returns {DataUpdates} */
109
714
  static DataUpdates() {
110
715
  return Joi.object({
111
- entities: Joi.array().items(OrderModel.EntitiesDataUpdates()),
112
- products: Joi.array().items(OrderModel.ProductsDataUpdates()),
716
+ entities: Joi.array().items(OrderApplicationModel.EntitiesDataUpdates()),
717
+ products: Joi.array().items(OrderApplicationModel.ProductsDataUpdates()),
113
718
  });
114
719
  }
720
+
721
+ /** @returns {DeliveryAddress} */
115
722
  static DeliveryAddress() {
116
723
  return Joi.object({
117
724
  address: Joi.string().allow(""),
118
- address1: Joi.string().allow(""),
119
- address2: Joi.string().allow(""),
120
725
  address_category: Joi.string().allow(""),
121
726
  address_type: Joi.string().allow(""),
727
+ address1: Joi.string().allow(""),
728
+ address2: Joi.string().allow(""),
122
729
  area: Joi.string().allow(""),
123
730
  city: Joi.string().allow(""),
124
731
  contact_person: Joi.string().allow(""),
@@ -138,24 +745,32 @@ class OrderModel {
138
745
  version: Joi.string().allow(""),
139
746
  });
140
747
  }
748
+
749
+ /** @returns {EntitiesDataUpdates} */
141
750
  static EntitiesDataUpdates() {
142
751
  return Joi.object({
143
752
  data: Joi.any(),
144
753
  filters: Joi.array().items(Joi.any()),
145
754
  });
146
755
  }
756
+
757
+ /** @returns {EntitiesReasons} */
147
758
  static EntitiesReasons() {
148
759
  return Joi.object({
149
- data: OrderModel.EntityReasonData(),
760
+ data: OrderApplicationModel.EntityReasonData(),
150
761
  filters: Joi.array().items(Joi.any()),
151
762
  });
152
763
  }
764
+
765
+ /** @returns {EntityReasonData} */
153
766
  static EntityReasonData() {
154
767
  return Joi.object({
155
768
  reason_id: Joi.number(),
156
769
  reason_text: Joi.string().allow(""),
157
770
  });
158
771
  }
772
+
773
+ /** @returns {ErrorResponse} */
159
774
  static ErrorResponse() {
160
775
  return Joi.object({
161
776
  code: Joi.string().allow("").allow(null),
@@ -165,6 +780,8 @@ class OrderModel {
165
780
  status: Joi.number(),
166
781
  });
167
782
  }
783
+
784
+ /** @returns {FinancialBreakup} */
168
785
  static FinancialBreakup() {
169
786
  return Joi.object({
170
787
  added_to_fynd_cash: Joi.boolean(),
@@ -183,7 +800,7 @@ class OrderModel {
183
800
  gst_tag: Joi.string().allow(""),
184
801
  gst_tax_percentage: Joi.number(),
185
802
  hsn_code: Joi.string().allow(""),
186
- identifiers: OrderModel.Identifiers(),
803
+ identifiers: OrderApplicationModel.Identifiers(),
187
804
  item_name: Joi.string().allow(""),
188
805
  price_effective: Joi.number(),
189
806
  price_marked: Joi.number(),
@@ -196,12 +813,16 @@ class OrderModel {
196
813
  value_of_good: Joi.number(),
197
814
  });
198
815
  }
816
+
817
+ /** @returns {FulfillingCompany} */
199
818
  static FulfillingCompany() {
200
819
  return Joi.object({
201
820
  id: Joi.number(),
202
821
  name: Joi.string().allow(""),
203
822
  });
204
823
  }
824
+
825
+ /** @returns {FulfillingStore} */
205
826
  static FulfillingStore() {
206
827
  return Joi.object({
207
828
  code: Joi.string().allow(""),
@@ -211,12 +832,16 @@ class OrderModel {
211
832
  name: Joi.string().allow(""),
212
833
  });
213
834
  }
835
+
836
+ /** @returns {Identifiers} */
214
837
  static Identifiers() {
215
838
  return Joi.object({
216
839
  ean: Joi.string().allow(""),
217
840
  sku_code: Joi.string().allow(""),
218
841
  });
219
842
  }
843
+
844
+ /** @returns {Invoice} */
220
845
  static Invoice() {
221
846
  return Joi.object({
222
847
  invoice_url: Joi.string().allow(""),
@@ -224,9 +849,11 @@ class OrderModel {
224
849
  updated_date: Joi.string().allow(""),
225
850
  });
226
851
  }
852
+
853
+ /** @returns {Item} */
227
854
  static Item() {
228
855
  return Joi.object({
229
- brand: OrderModel.ItemBrand(),
856
+ brand: OrderApplicationModel.ItemBrand(),
230
857
  code: Joi.string().allow(""),
231
858
  id: Joi.number(),
232
859
  image: Joi.array().items(Joi.string().allow("")),
@@ -239,12 +866,16 @@ class OrderModel {
239
866
  slug_key: Joi.string().allow(""),
240
867
  });
241
868
  }
869
+
870
+ /** @returns {ItemBrand} */
242
871
  static ItemBrand() {
243
872
  return Joi.object({
244
873
  logo: Joi.string().allow(""),
245
874
  name: Joi.string().allow(""),
246
875
  });
247
876
  }
877
+
878
+ /** @returns {NestedTrackingDetails} */
248
879
  static NestedTrackingDetails() {
249
880
  return Joi.object({
250
881
  is_current: Joi.boolean(),
@@ -253,23 +884,31 @@ class OrderModel {
253
884
  time: Joi.string().allow(""),
254
885
  });
255
886
  }
887
+
888
+ /** @returns {OrderById} */
256
889
  static OrderById() {
257
890
  return Joi.object({
258
- order: OrderModel.OrderSchema(),
891
+ order: OrderApplicationModel.OrderSchema(),
259
892
  });
260
893
  }
894
+
895
+ /** @returns {OrderFilters} */
261
896
  static OrderFilters() {
262
897
  return Joi.object({
263
- statuses: Joi.array().items(OrderModel.OrderStatuses()),
898
+ statuses: Joi.array().items(OrderApplicationModel.OrderStatuses()),
264
899
  });
265
900
  }
901
+
902
+ /** @returns {OrderList} */
266
903
  static OrderList() {
267
904
  return Joi.object({
268
- filters: OrderModel.OrderFilters(),
269
- items: Joi.array().items(OrderModel.OrderSchema()),
270
- page: OrderModel.OrderPage(),
905
+ filters: OrderApplicationModel.OrderFilters(),
906
+ items: Joi.array().items(OrderApplicationModel.OrderSchema()),
907
+ page: OrderApplicationModel.OrderPage(),
271
908
  });
272
909
  }
910
+
911
+ /** @returns {OrderPage} */
273
912
  static OrderPage() {
274
913
  return Joi.object({
275
914
  current: Joi.number(),
@@ -279,17 +918,23 @@ class OrderModel {
279
918
  type: Joi.string().allow(""),
280
919
  });
281
920
  }
921
+
922
+ /** @returns {OrderSchema} */
282
923
  static OrderSchema() {
283
924
  return Joi.object({
284
- bags_for_reorder: Joi.array().items(OrderModel.BagsForReorder()),
285
- breakup_values: Joi.array().items(OrderModel.BreakupValues()),
925
+ bags_for_reorder: Joi.array().items(
926
+ OrderApplicationModel.BagsForReorder()
927
+ ),
928
+ breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
286
929
  order_created_time: Joi.string().allow(""),
287
930
  order_id: Joi.string().allow(""),
288
- shipments: Joi.array().items(OrderModel.Shipments()),
931
+ shipments: Joi.array().items(OrderApplicationModel.Shipments()),
289
932
  total_shipments_in_order: Joi.number(),
290
- user_info: OrderModel.UserInfo(),
933
+ user_info: OrderApplicationModel.UserInfo(),
291
934
  });
292
935
  }
936
+
937
+ /** @returns {OrderStatuses} */
293
938
  static OrderStatuses() {
294
939
  return Joi.object({
295
940
  display: Joi.string().allow(""),
@@ -297,6 +942,8 @@ class OrderModel {
297
942
  value: Joi.number(),
298
943
  });
299
944
  }
945
+
946
+ /** @returns {Prices} */
300
947
  static Prices() {
301
948
  return Joi.object({
302
949
  added_to_fynd_cash: Joi.boolean(),
@@ -323,6 +970,8 @@ class OrderModel {
323
970
  value_of_good: Joi.number(),
324
971
  });
325
972
  }
973
+
974
+ /** @returns {Products} */
326
975
  static Products() {
327
976
  return Joi.object({
328
977
  identifier: Joi.string().allow(""),
@@ -330,30 +979,44 @@ class OrderModel {
330
979
  quantity: Joi.number(),
331
980
  });
332
981
  }
982
+
983
+ /** @returns {ProductsDataUpdates} */
333
984
  static ProductsDataUpdates() {
334
985
  return Joi.object({
335
986
  data: Joi.any(),
336
- filters: Joi.array().items(OrderModel.ProductsDataUpdatesFilters()),
987
+ filters: Joi.array().items(
988
+ OrderApplicationModel.ProductsDataUpdatesFilters()
989
+ ),
337
990
  });
338
991
  }
992
+
993
+ /** @returns {ProductsDataUpdatesFilters} */
339
994
  static ProductsDataUpdatesFilters() {
340
995
  return Joi.object({
341
996
  identifier: Joi.string().allow(""),
342
997
  line_number: Joi.number(),
343
998
  });
344
999
  }
1000
+
1001
+ /** @returns {ProductsReasons} */
345
1002
  static ProductsReasons() {
346
1003
  return Joi.object({
347
- data: OrderModel.ProductsReasonsData(),
348
- filters: Joi.array().items(OrderModel.ProductsReasonsFilters()),
1004
+ data: OrderApplicationModel.ProductsReasonsData(),
1005
+ filters: Joi.array().items(
1006
+ OrderApplicationModel.ProductsReasonsFilters()
1007
+ ),
349
1008
  });
350
1009
  }
1010
+
1011
+ /** @returns {ProductsReasonsData} */
351
1012
  static ProductsReasonsData() {
352
1013
  return Joi.object({
353
1014
  reason_id: Joi.number(),
354
1015
  reason_text: Joi.string().allow(""),
355
1016
  });
356
1017
  }
1018
+
1019
+ /** @returns {ProductsReasonsFilters} */
357
1020
  static ProductsReasonsFilters() {
358
1021
  return Joi.object({
359
1022
  identifier: Joi.string().allow(""),
@@ -361,24 +1024,32 @@ class OrderModel {
361
1024
  quantity: Joi.number(),
362
1025
  });
363
1026
  }
1027
+
1028
+ /** @returns {Promise} */
364
1029
  static Promise() {
365
1030
  return Joi.object({
366
1031
  show_promise: Joi.boolean(),
367
- timestamp: OrderModel.TimeStampData(),
1032
+ timestamp: OrderApplicationModel.TimeStampData(),
368
1033
  });
369
1034
  }
1035
+
1036
+ /** @returns {QuestionSet} */
370
1037
  static QuestionSet() {
371
1038
  return Joi.object({
372
1039
  display_name: Joi.string().allow(""),
373
1040
  id: Joi.number(),
374
1041
  });
375
1042
  }
1043
+
1044
+ /** @returns {ReasonsData} */
376
1045
  static ReasonsData() {
377
1046
  return Joi.object({
378
- entities: Joi.array().items(OrderModel.EntitiesReasons()),
379
- products: Joi.array().items(OrderModel.ProductsReasons()),
1047
+ entities: Joi.array().items(OrderApplicationModel.EntitiesReasons()),
1048
+ products: Joi.array().items(OrderApplicationModel.ProductsReasons()),
380
1049
  });
381
1050
  }
1051
+
1052
+ /** @returns {ResponseGetInvoiceShipment} */
382
1053
  static ResponseGetInvoiceShipment() {
383
1054
  return Joi.object({
384
1055
  presigned_type: Joi.string().allow("").required(),
@@ -387,6 +1058,8 @@ class OrderModel {
387
1058
  success: Joi.boolean().required(),
388
1059
  });
389
1060
  }
1061
+
1062
+ /** @returns {SendOtpToCustomerResponse} */
390
1063
  static SendOtpToCustomerResponse() {
391
1064
  return Joi.object({
392
1065
  message: Joi.string().allow(""),
@@ -395,22 +1068,30 @@ class OrderModel {
395
1068
  success: Joi.boolean(),
396
1069
  });
397
1070
  }
1071
+
1072
+ /** @returns {ShipmentApplicationStatusResponse} */
398
1073
  static ShipmentApplicationStatusResponse() {
399
1074
  return Joi.object({
400
- statuses: Joi.array().items(OrderModel.StatusesBodyResponse()),
1075
+ statuses: Joi.array().items(OrderApplicationModel.StatusesBodyResponse()),
401
1076
  });
402
1077
  }
1078
+
1079
+ /** @returns {ShipmentBagReasons} */
403
1080
  static ShipmentBagReasons() {
404
1081
  return Joi.object({
405
- reasons: Joi.array().items(OrderModel.BagReasons()),
1082
+ reasons: Joi.array().items(OrderApplicationModel.BagReasons()),
406
1083
  success: Joi.boolean(),
407
1084
  });
408
1085
  }
1086
+
1087
+ /** @returns {ShipmentById} */
409
1088
  static ShipmentById() {
410
1089
  return Joi.object({
411
- shipment: OrderModel.Shipments(),
1090
+ shipment: OrderApplicationModel.Shipments(),
412
1091
  });
413
1092
  }
1093
+
1094
+ /** @returns {ShipmentPayment} */
414
1095
  static ShipmentPayment() {
415
1096
  return Joi.object({
416
1097
  display_name: Joi.string().allow(""),
@@ -421,6 +1102,8 @@ class OrderModel {
421
1102
  status: Joi.string().allow(""),
422
1103
  });
423
1104
  }
1105
+
1106
+ /** @returns {ShipmentReason} */
424
1107
  static ShipmentReason() {
425
1108
  return Joi.object({
426
1109
  feedback_type: Joi.string().allow(""),
@@ -431,59 +1114,69 @@ class OrderModel {
431
1114
  show_text_area: Joi.boolean(),
432
1115
  });
433
1116
  }
1117
+
1118
+ /** @returns {ShipmentReasons} */
434
1119
  static ShipmentReasons() {
435
1120
  return Joi.object({
436
- reasons: Joi.array().items(OrderModel.ShipmentReason()),
1121
+ reasons: Joi.array().items(OrderApplicationModel.ShipmentReason()),
437
1122
  });
438
1123
  }
1124
+
1125
+ /** @returns {Shipments} */
439
1126
  static Shipments() {
440
1127
  return Joi.object({
441
1128
  awb_no: Joi.string().allow(""),
442
- bags: Joi.array().items(OrderModel.Bags()),
1129
+ bags: Joi.array().items(OrderApplicationModel.Bags()),
443
1130
  beneficiary_details: Joi.boolean(),
444
- breakup_values: Joi.array().items(OrderModel.BreakupValues()),
1131
+ breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
445
1132
  can_break: Joi.any(),
446
1133
  can_cancel: Joi.boolean(),
447
1134
  can_return: Joi.boolean(),
448
1135
  comment: Joi.string().allow(""),
449
1136
  custom_meta: Joi.array().items(Joi.any()),
450
- delivery_address: OrderModel.DeliveryAddress(),
1137
+ delivery_address: OrderApplicationModel.DeliveryAddress(),
451
1138
  delivery_date: Joi.string().allow("").allow(null),
452
1139
  dp_name: Joi.string().allow(""),
453
- fulfilling_company: OrderModel.FulfillingCompany(),
454
- fulfilling_store: OrderModel.FulfillingStore(),
455
- invoice: OrderModel.Invoice(),
1140
+ fulfilling_company: OrderApplicationModel.FulfillingCompany(),
1141
+ fulfilling_store: OrderApplicationModel.FulfillingStore(),
1142
+ invoice: OrderApplicationModel.Invoice(),
456
1143
  need_help_url: Joi.string().allow(""),
457
1144
  order_id: Joi.string().allow(""),
458
1145
  order_type: Joi.string().allow("").allow(null),
459
- payment: OrderModel.ShipmentPayment(),
460
- prices: OrderModel.Prices(),
461
- promise: OrderModel.Promise(),
1146
+ payment: OrderApplicationModel.ShipmentPayment(),
1147
+ prices: OrderApplicationModel.Prices(),
1148
+ promise: OrderApplicationModel.Promise(),
462
1149
  refund_details: Joi.any(),
463
1150
  return_meta: Joi.any(),
464
1151
  returnable_date: Joi.string().allow("").allow(null),
465
1152
  shipment_created_at: Joi.string().allow(""),
466
1153
  shipment_id: Joi.string().allow(""),
467
- shipment_status: OrderModel.ShipmentStatus(),
1154
+ shipment_status: OrderApplicationModel.ShipmentStatus(),
468
1155
  show_download_invoice: Joi.boolean(),
469
1156
  show_track_link: Joi.boolean(),
470
1157
  size_info: Joi.any(),
471
1158
  total_bags: Joi.number(),
472
- total_details: OrderModel.ShipmentTotalDetails(),
1159
+ total_details: OrderApplicationModel.ShipmentTotalDetails(),
473
1160
  track_url: Joi.string().allow(""),
474
- tracking_details: Joi.array().items(OrderModel.TrackingDetails()),
1161
+ tracking_details: Joi.array().items(
1162
+ OrderApplicationModel.TrackingDetails()
1163
+ ),
475
1164
  traking_no: Joi.string().allow(""),
476
- user_info: OrderModel.ShipmentUserInfo(),
1165
+ user_info: OrderApplicationModel.ShipmentUserInfo(),
477
1166
  });
478
1167
  }
1168
+
1169
+ /** @returns {ShipmentsRequest} */
479
1170
  static ShipmentsRequest() {
480
1171
  return Joi.object({
481
- data_updates: OrderModel.DataUpdates(),
1172
+ data_updates: OrderApplicationModel.DataUpdates(),
482
1173
  identifier: Joi.string().allow("").required(),
483
- products: Joi.array().items(OrderModel.Products()),
484
- reasons: OrderModel.ReasonsData(),
1174
+ products: Joi.array().items(OrderApplicationModel.Products()),
1175
+ reasons: OrderApplicationModel.ReasonsData(),
485
1176
  });
486
1177
  }
1178
+
1179
+ /** @returns {ShipmentStatus} */
487
1180
  static ShipmentStatus() {
488
1181
  return Joi.object({
489
1182
  hex_code: Joi.string().allow(""),
@@ -491,6 +1184,8 @@ class OrderModel {
491
1184
  value: Joi.string().allow("").allow(null),
492
1185
  });
493
1186
  }
1187
+
1188
+ /** @returns {ShipmentTotalDetails} */
494
1189
  static ShipmentTotalDetails() {
495
1190
  return Joi.object({
496
1191
  pieces: Joi.number(),
@@ -498,11 +1193,15 @@ class OrderModel {
498
1193
  total_price: Joi.number(),
499
1194
  });
500
1195
  }
1196
+
1197
+ /** @returns {ShipmentTrack} */
501
1198
  static ShipmentTrack() {
502
1199
  return Joi.object({
503
- results: Joi.array().items(OrderModel.Track()),
1200
+ results: Joi.array().items(OrderApplicationModel.Track()),
504
1201
  });
505
1202
  }
1203
+
1204
+ /** @returns {ShipmentUserInfo} */
506
1205
  static ShipmentUserInfo() {
507
1206
  return Joi.object({
508
1207
  email: Joi.string().allow(""),
@@ -513,24 +1212,32 @@ class OrderModel {
513
1212
  name: Joi.string().allow(""),
514
1213
  });
515
1214
  }
1215
+
1216
+ /** @returns {StatuesRequest} */
516
1217
  static StatuesRequest() {
517
1218
  return Joi.object({
518
1219
  exclude_bags_next_state: Joi.string().allow(""),
519
- shipments: Joi.array().items(OrderModel.ShipmentsRequest()),
1220
+ shipments: Joi.array().items(OrderApplicationModel.ShipmentsRequest()),
520
1221
  status: Joi.string().allow(""),
521
1222
  });
522
1223
  }
1224
+
1225
+ /** @returns {StatusesBodyResponse} */
523
1226
  static StatusesBodyResponse() {
524
1227
  return Joi.object({
525
1228
  shipments: Joi.array().items(Joi.any()),
526
1229
  });
527
1230
  }
1231
+
1232
+ /** @returns {TimeStampData} */
528
1233
  static TimeStampData() {
529
1234
  return Joi.object({
530
1235
  max: Joi.string().allow(""),
531
1236
  min: Joi.string().allow(""),
532
1237
  });
533
1238
  }
1239
+
1240
+ /** @returns {Track} */
534
1241
  static Track() {
535
1242
  return Joi.object({
536
1243
  account_name: Joi.string().allow(""),
@@ -543,25 +1250,33 @@ class OrderModel {
543
1250
  updated_time: Joi.string().allow(""),
544
1251
  });
545
1252
  }
1253
+
1254
+ /** @returns {TrackingDetails} */
546
1255
  static TrackingDetails() {
547
1256
  return Joi.object({
548
1257
  is_current: Joi.boolean(),
549
1258
  is_passed: Joi.boolean(),
550
1259
  status: Joi.string().allow(""),
551
1260
  time: Joi.string().allow(""),
552
- tracking_details: Joi.array().items(OrderModel.NestedTrackingDetails()),
1261
+ tracking_details: Joi.array().items(
1262
+ OrderApplicationModel.NestedTrackingDetails()
1263
+ ),
553
1264
  value: Joi.string().allow("").allow(null),
554
1265
  });
555
1266
  }
1267
+
1268
+ /** @returns {UpdateShipmentStatusRequest} */
556
1269
  static UpdateShipmentStatusRequest() {
557
1270
  return Joi.object({
558
1271
  force_transition: Joi.boolean(),
559
1272
  lock_after_transition: Joi.boolean(),
560
- statuses: Joi.array().items(OrderModel.StatuesRequest()),
1273
+ statuses: Joi.array().items(OrderApplicationModel.StatuesRequest()),
561
1274
  task: Joi.boolean(),
562
1275
  unlock_before_transition: Joi.boolean(),
563
1276
  });
564
1277
  }
1278
+
1279
+ /** @returns {UserInfo} */
565
1280
  static UserInfo() {
566
1281
  return Joi.object({
567
1282
  email: Joi.string().allow(""),
@@ -572,16 +1287,20 @@ class OrderModel {
572
1287
  name: Joi.string().allow(""),
573
1288
  });
574
1289
  }
1290
+
1291
+ /** @returns {VerifyOtp} */
575
1292
  static VerifyOtp() {
576
1293
  return Joi.object({
577
1294
  otp_code: Joi.string().allow(""),
578
1295
  request_id: Joi.string().allow(""),
579
1296
  });
580
1297
  }
1298
+
1299
+ /** @returns {VerifyOtpResponse} */
581
1300
  static VerifyOtpResponse() {
582
1301
  return Joi.object({
583
1302
  success: Joi.boolean(),
584
1303
  });
585
1304
  }
586
1305
  }
587
- module.exports = OrderModel;
1306
+ module.exports = OrderApplicationModel;