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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,1875 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef ApplicationAboutResponseSchema
5
- * @property {ApplicationInfo} [application_info]
6
- */
7
-
8
- /**
9
- * @typedef ApplicationInfo
10
- * @property {CompanyInfo} [company_info]
11
- * @property {OwnerInfo} [owner_info]
12
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
13
- * of application information.
14
- * @property {Domain} [domain]
15
- * @property {ApplicationWebsite} [website]
16
- * @property {ApplicationCors} [cors]
17
- * @property {string} [description] - It contains details information about the
18
- * sales channel.
19
- * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion.
20
- * @property {ApplicationMeta[]} [meta] - Metadata related to the application.
21
- * @property {string} [token] - Random generated fix length string for sales
22
- * channel. It is required and auto-generated.
23
- * @property {string} [secret] - Random generated fix length string for sales
24
- * channel. It is required and auto-generated.
25
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel
26
- * information creation.
27
- * @property {SecureUrl} [banner]
28
- * @property {SecureUrl} [logo]
29
- * @property {boolean} [is_active] - Indicates whether sales channel is active
30
- * or not active.
31
- * @property {string} [mode] - Mode of the application.
32
- * @property {TokenSchema[]} [tokens] - List of tokens associated with the application.
33
- * @property {Domain[]} [domains] - List of domains associated with the application.
34
- * @property {SecureUrl} [favicon]
35
- * @property {SecureUrl} [mobile_logo]
36
- * @property {string} [slug] - Slug identifier for the application.
37
- */
38
-
39
- /**
40
- * @typedef CompanyInfo
41
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
42
- * of company information.
43
- * @property {number} [uid] - Unique identifier for the company.
44
- * @property {string} [created_on] - ISO 8601 timestamp of company information creation.
45
- * @property {boolean} [is_active] - Indicates company is active or not active.
46
- * @property {string} [name] - Name of the company, Reliance Retail Limited.
47
- * @property {CompanyAboutAddress[]} [addresses] - List of addresses associated
48
- * with the company.
49
- * @property {string[]} [notification_emails] - List of emails to notify.
50
- */
51
-
52
- /**
53
- * @typedef OwnerInfo
54
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
55
- * of owner info.
56
- * @property {UserEmail[]} [emails] - List of email addresses of the owner.
57
- * @property {UserPhoneNumber[]} [phone_numbers] - List of phone numbers of the owner.
58
- * @property {string} [first_name] - First name of the owner.
59
- * @property {string} [last_name] - Last name of the owner.
60
- * @property {string} [profile_pic] - Hosted URL of profile pic.
61
- */
62
-
63
- /**
64
- * @typedef SupportedLanguage
65
- * @property {string} [name] - Name of the supported language, e.g. हिन्दी.
66
- * @property {string} [code] - Unique code of supported language, e.g. hi-IN.
67
- */
68
-
69
- /**
70
- * @typedef LanguageResponseSchema
71
- * @property {SupportedLanguage[]} [items] - List of supported languages.
72
- */
73
-
74
- /**
75
- * @typedef AppStaffResponseSchema
76
- * @property {AppStaff[]} [staff_users] - List of staff users.
77
- */
78
-
79
- /**
80
- * @typedef AppStaffListResponseSchema
81
- * @property {Page} [page]
82
- * @property {AppStaff[]} [items] - List of staff users.
83
- */
84
-
85
- /**
86
- * @typedef OrderingStoreSelectRequestSchema
87
- * @property {OrderingStoreSelect} ordering_store
88
- */
89
-
90
- /**
91
- * @typedef OrderingStoreSelect
92
- * @property {number} uid - Ordering store unique uid. It is required.
93
- */
94
-
95
- /**
96
- * @typedef AppStaff
97
- * @property {string} [_id] - The unique identifier for the sales channel staff member.
98
- * @property {boolean} [order_incent] - This is a boolean value. `true` to
99
- * retrieve the staff members eligible for getting incentives on orders.
100
- * @property {number[]} [stores] - List of IDs of the ordering stores where the
101
- * staff member works.
102
- * @property {string} [application] - The unique identifier (24-digit Mongo
103
- * Object ID) of the current sales channel.
104
- * @property {string} [title] - Title for the staff member like owner, staff.
105
- * @property {string} [user] - Mongo ID of the staff. Helps in retrieving the
106
- * details of a particular staff member.
107
- * @property {string} [employee_code] - Employee code of sales channel staff
108
- * member. It has unique value.
109
- * @property {string} [first_name] - First name the staff member.
110
- * @property {string} [last_name] - Last name the staff member.
111
- * @property {string} [profile_pic_url] - Profile image hosted url of the staff member.
112
- */
113
-
114
- /**
115
- * @typedef AppTokenResponseSchema
116
- * @property {Tokens} [tokens]
117
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
118
- * of the token.
119
- * @property {string} [application] - Alphanumeric ID allotted to the current
120
- * application created within the current business account.
121
- * @property {string} [created_at] - ISO 8601 timestamp of token creation.
122
- * @property {string} [modified_at] - ISO 8601 timestamp of token updation.
123
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
124
- */
125
-
126
- /**
127
- * @typedef Tokens
128
- * @property {Firebase} [firebase]
129
- * @property {Moengage} [moengage]
130
- * @property {Segment} [segment]
131
- * @property {Gtm} [gtm]
132
- * @property {Freshchat} [freshchat]
133
- * @property {Safetynet} [safetynet]
134
- * @property {FyndRewards} [fynd_rewards]
135
- * @property {GoogleMap} [google_map]
136
- */
137
-
138
- /**
139
- * @typedef Firebase
140
- * @property {Credentials} [credentials]
141
- * @property {boolean} [enabled] - Shows whether Firebase integration is enabled
142
- * or disabled for the sales channel.
143
- */
144
-
145
- /**
146
- * @typedef Credentials
147
- * @property {Ios} [ios]
148
- * @property {Android} [android]
149
- * @property {string} [project_id] - Project ID for Firebase integration.
150
- * Project ID is a unique identifier for a project and is used only within the console.
151
- * @property {string} [gcm_sender_id] - Google Cloud Manager's Sender ID for
152
- * Firebase. It is a unique numerical value which is created when you
153
- * configure your project in the Google Developers Console/Google Cloud Console.
154
- * @property {string} [application_id] - Alphanumeric ID allotted to the current
155
- * application created within the current business account.
156
- * @property {string} [api_key] - An API key is a unique string that's used to
157
- * route requests to your Firebase project when interacting with Firebase.
158
- */
159
-
160
- /**
161
- * @typedef Ios
162
- * @property {string} [application_id] - Alphanumeric ID allotted to a sales
163
- * channel application created within a business account.
164
- * @property {string} [api_key] - Firebase secret credential API key for IOS.
165
- */
166
-
167
- /**
168
- * @typedef Android
169
- * @property {string} [application_id] - Alphanumeric ID allotted to a sales
170
- * channel application created within a business account.
171
- * @property {string} [api_key] - Firebase secret credential API key for Android.
172
- */
173
-
174
- /**
175
- * @typedef Moengage
176
- * @property {MoengageCredentials} [credentials]
177
- * @property {boolean} [enabled] - Shows whether MoEngage integration is enabled
178
- * or disabled for the sales channel.
179
- */
180
-
181
- /**
182
- * @typedef MoengageCredentials
183
- * @property {string} [app_id] - APP ID provided by MoEngage to identify a
184
- * specific app. The app_id for your MoEngage account is available on the
185
- * MoEngage Dashboard.
186
- */
187
-
188
- /**
189
- * @typedef Segment
190
- * @property {SegmentCredentials} [credentials]
191
- * @property {boolean} [enabled] - Shows whether Segment integration is enabled
192
- * or disabled for the sales channel.
193
- */
194
-
195
- /**
196
- * @typedef SegmentCredentials
197
- * @property {string} [write_key] - The unique identifier for a source that
198
- * tells Segment from which source data is coming from, to which workspace the
199
- * data belongs, and which destinations should receive the data.
200
- */
201
-
202
- /**
203
- * @typedef Gtm
204
- * @property {GtmCredentials} [credentials]
205
- * @property {boolean} [enabled] - Shows whether GTM integration is enabled or
206
- * disabled for the sales channel.
207
- */
208
-
209
- /**
210
- * @typedef GtmCredentials
211
- * @property {string} [api_key] - Secret credential API key for GTM.
212
- */
213
-
214
- /**
215
- * @typedef Freshchat
216
- * @property {FreshchatCredentials} [credentials]
217
- * @property {boolean} [enabled] - Shows whether Freshchat integration is
218
- * enabled or disabled for the sales channel.
219
- */
220
-
221
- /**
222
- * @typedef FreshchatCredentials
223
- * @property {string} [app_id] - The unique app_id of your Freshchat account for
224
- * integrating Freshchat with your sales channel.
225
- * @property {string} [app_key] - The unique app_key of your Freshchat account
226
- * for integrating Freshchat with your sales channel.
227
- * @property {string} [web_token] - Web token used for accessing the Freshchat APIs.
228
- */
229
-
230
- /**
231
- * @typedef Safetynet
232
- * @property {SafetynetCredentials} [credentials]
233
- * @property {boolean} [enabled] - Shows whether Safetynet integration is
234
- * enabled or disabled for the sales channel.
235
- */
236
-
237
- /**
238
- * @typedef SafetynetCredentials
239
- * @property {string} [api_key] - Secret credential API key for Safetynet. This
240
- * API key is used for calling the methods of Safetynet APIs.
241
- */
242
-
243
- /**
244
- * @typedef FyndRewards
245
- * @property {FyndRewardsCredentials} [credentials]
246
- */
247
-
248
- /**
249
- * @typedef FyndRewardsCredentials
250
- * @property {string} [public_key] - Public key for integrating with Fynd rewards.
251
- */
252
-
253
- /**
254
- * @typedef GoogleMap
255
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
256
- * @property {GoogleMapCredentials} [credentials]
257
- */
258
-
259
- /**
260
- * @typedef GoogleMapCredentials
261
- * @property {string} [api_key] - Secret API key for Google Maps. A unique
262
- * identifier that authenticates requests made to Google Maps API.
263
- */
264
-
265
- /**
266
- * @typedef RewardPointsConfig
267
- * @property {Credit} [credit]
268
- * @property {Debit} [debit]
269
- */
270
-
271
- /**
272
- * @typedef Credit
273
- * @property {boolean} [enabled] - Shows whether reward points should be credited.
274
- */
275
-
276
- /**
277
- * @typedef Debit
278
- * @property {boolean} [enabled] - Shows whether reward points are available for debit.
279
- * @property {boolean} [auto_apply] - Allow automatic debit of reward points.
280
- * @property {string} [strategy_channel] - Strategy channel for debiting reward points.
281
- */
282
-
283
- /**
284
- * @typedef ProductDetailFeature
285
- * @property {string[]} [similar] - Configuration to show similar products,
286
- * other products from same seller, other products in same category, other
287
- * products in same price range, etc.
288
- * @property {boolean} [seller_selection] - Shows whether the customers can
289
- * choose the seller on PDP.
290
- * @property {boolean} [update_product_meta] - Allow user to update product
291
- * meta. Default value is true.
292
- * @property {boolean} [request_product] - Indicates whether customers can
293
- * request for a product. Default value is false.
294
- */
295
-
296
- /**
297
- * @typedef LaunchPage
298
- * @property {string} [page_type] - Type of the launch page.
299
- * @property {Object} [params] - Launch page params. It can be nullable.
300
- * @property {Object} [query] - Query related to launch page. It can be nullable.
301
- */
302
-
303
- /**
304
- * @typedef LandingPageFeature
305
- * @property {LaunchPage} [launch_page]
306
- * @property {boolean} [continue_as_guest] - Shows whether a guest can checkout
307
- * from cart without logging in.
308
- * @property {string} [login_btn_text] - Shows the text displayed over the login button.
309
- * @property {boolean} [show_domain_textbox] - Shows whether a textbox for
310
- * entering domain is available.
311
- * @property {boolean} [show_register_btn] - Shows whether register button is
312
- * available in the login/landing page.
313
- */
314
-
315
- /**
316
- * @typedef RegistrationPageFeature
317
- * @property {boolean} [ask_store_address] - Shows whether a form to collect the
318
- * address of the store, should be displayed upon visiting the website.
319
- */
320
-
321
- /**
322
- * @typedef AppFeature
323
- * @property {ProductDetailFeature} [product_detail]
324
- * @property {LandingPageFeature} [landing_page]
325
- * @property {RegistrationPageFeature} [registration_page]
326
- * @property {HomePageFeature} [home_page]
327
- * @property {CommonFeature} [common]
328
- * @property {CartFeature} [cart]
329
- * @property {QrFeature} [qr]
330
- * @property {PcrFeature} [pcr]
331
- * @property {OrderFeature} [order]
332
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
333
- * for the sales channel features.
334
- * @property {string} [app] - Application ID of the sales channel.
335
- * @property {string} [created_at] - ISO 8601 timestamp showing the date when
336
- * the features were configured.
337
- * @property {string} [modified_at] - ISO 8601 timestamp of last known
338
- * modifications to the sales channel feature configuration.
339
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
340
- */
341
-
342
- /**
343
- * @typedef HomePageFeature
344
- * @property {boolean} [order_processing] - Shows whether order processing is
345
- * enabled or not enabled.
346
- */
347
-
348
- /**
349
- * @typedef CommonFeature
350
- * @property {CommunicationOptinDialogFeature} [communication_optin_dialog]
351
- * @property {DeploymentStoreSelectionFeature} [deployment_store_selection]
352
- * @property {ListingPriceFeature} [listing_price]
353
- * @property {CurrencyFeature} [currency]
354
- * @property {RevenueEngineFeature} [revenue_engine]
355
- * @property {FeedbackFeature} [feedback]
356
- * @property {CompareProductsFeature} [compare_products]
357
- * @property {RewardPointsConfig} [reward_points]
358
- * @property {ListingPageFeature} [listing_page]
359
- * @property {InternationalShipping} [international_shipping]
360
- */
361
-
362
- /**
363
- * @typedef InternationalShipping
364
- * @property {boolean} [enabled] - International shipping is enabled or not.
365
- */
366
-
367
- /**
368
- * @typedef CommunicationOptinDialogFeature
369
- * @property {boolean} [visibility] - Shows whether WhatsApp communication is enabled.
370
- */
371
-
372
- /**
373
- * @typedef DeploymentStoreSelectionFeature
374
- * @property {boolean} [enabled] - Shows whether selection of store (for
375
- * deploying the application) is permitted.
376
- * @property {string} [type] - Permitted values are 'hard' and 'soft'. For hard
377
- * type delivery, store selection is compulsory. For soft type, delivery store
378
- * selection is optional.
379
- */
380
-
381
- /**
382
- * @typedef ListingPriceFeature
383
- * @property {string} [value] - Shows which price to display on PLP if one
384
- * product has multiple prices (for each size), valid values are 'min', 'max',
385
- * 'range'. Default value is range.
386
- * @property {string} [sort] - Sorting of listing price with min or max value.
387
- * Default value is min.
388
- */
389
-
390
- /**
391
- * @typedef ListingPageFeature
392
- * @property {string} [sort_on] - Determines the sorting criteria for product
393
- * listings on the page.
394
- */
395
-
396
- /**
397
- * @typedef CurrencyFeature
398
- * @property {string[]} [value] - 3-letter currency code.
399
- * @property {string} [type] - If 'explicit', currency formatting shows currency
400
- * code with price. For explicit or all currency selection.
401
- * @property {string} [default_currency] - 3-letter code of the default currency
402
- * used in the application. Default value is 'INR'.
403
- */
404
-
405
- /**
406
- * @typedef RevenueEngineFeature
407
- * @property {boolean} [enabled] - Enable revenue engine. Default value is false.
408
- */
409
-
410
- /**
411
- * @typedef FeedbackFeature
412
- * @property {boolean} [enabled] - Whether customer feedback is enabled on PDP.
413
- * Default value is false.
414
- */
415
-
416
- /**
417
- * @typedef CompareProductsFeature
418
- * @property {boolean} [enabled] - Whether product comparison feature is enabled on PDP.
419
- */
420
-
421
- /**
422
- * @typedef CartFeature
423
- * @property {boolean} [gst_input] - Whether customer is allowed to enter GST on
424
- * the cart page for claiming input credits.
425
- * @property {boolean} [staff_selection] - Whether staff selection is enabled on
426
- * cart page.
427
- * @property {boolean} [placing_for_customer] - Whether the staff is placing
428
- * order on behalf of customer. Default value is true.
429
- * @property {boolean} [google_map] - Allow adding of Google Maps. Default value is true.
430
- * @property {boolean} [revenue_engine_coupon] - Allow coupon apply and credits,
431
- * together. Default value is false.
432
- */
433
-
434
- /**
435
- * @typedef QrFeature
436
- * @property {boolean} [application] - Whether sharing of mobile app via QR code
437
- * is allowed. Default value is false.
438
- * @property {boolean} [products] - Whether sharing product via QR code is
439
- * allowed. Default value is false.
440
- * @property {boolean} [collections] - Whether sharing collection via QR code is
441
- * allowed. Default value is false.
442
- */
443
-
444
- /**
445
- * @typedef PcrFeature
446
- * @property {boolean} [staff_selection] - Allow staff selection. Default value is false.
447
- */
448
-
449
- /**
450
- * @typedef OrderFeature
451
- * @property {boolean} [buy_again] - Allow buy again option for order. Default
452
- * value is false.
453
- */
454
-
455
- /**
456
- * @typedef AppFeatureResponseSchema
457
- * @property {AppFeature} [feature]
458
- */
459
-
460
- /**
461
- * @typedef Currency
462
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
463
- * of the current sales channel supported currency.
464
- * @property {boolean} [is_active] - Shows currency is enabled or not in current
465
- * sales channel.
466
- * @property {string} [name] - Name of the currency, e.g Indian Rupee.
467
- * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
468
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
469
- * currency creation.
470
- * @property {string} [modified_at] - ISO 8601 timestamp of sales channel
471
- * support currency updation.
472
- * @property {number} [decimal_digits] - Acceptable decimal limits for a given
473
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
474
- * value of a currency.
475
- * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹.
476
- * @property {string} [country_name] - Country name.
477
- * @property {string} [country_code] - Country code.
478
- */
479
-
480
- /**
481
- * @typedef Domain
482
- * @property {boolean} [verified] - Domain is verified or not. TXT and A records
483
- * should propagate correctly.
484
- * @property {boolean} [is_primary] - Domain is primary or not. Primary domain
485
- * is the default/main domain.
486
- * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain.
487
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
488
- * of the sales channel domain.
489
- * @property {string} [name] - Domain name.
490
- * @property {boolean} [is_predefined] - Domain is hosting domain or not.
491
- */
492
-
493
- /**
494
- * @typedef ApplicationWebsite
495
- * @property {boolean} [enabled] - Shows whether sales channel website URL is
496
- * enabled or not.
497
- * @property {string} [basepath] - Base path for the current sales channel website.
498
- */
499
-
500
- /**
501
- * @typedef ApplicationCors
502
- * @property {string[]} [domains] - List of domains added to the sales channel.
503
- */
504
-
505
- /**
506
- * @typedef ApplicationAuth
507
- * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
508
- */
509
-
510
- /**
511
- * @typedef ApplicationRedirections
512
- * @property {string} [redirect_from] - Old domain url of the sales channel.
513
- * @property {string} [redirect_to] - New domain URL of the sales channel. Users
514
- * will be automatically redirected from old domain to new domain.
515
- * @property {string} [type] - It shows domain redirection type. Permanent
516
- * redirection is for long time period redirection, and temporary redirection
517
- * for a short time period.
518
- */
519
-
520
- /**
521
- * @typedef ApplicationMeta
522
- * @property {string} [name] - Indicates to name of application meta.
523
- * @property {string} [value] - Value related to application meta name.
524
- */
525
-
526
- /**
527
- * @typedef SecureUrl
528
- * @property {string} [secure_url] - Hosted URL of the image.
529
- */
530
-
531
- /**
532
- * @typedef Application
533
- * @property {ApplicationWebsite} [website]
534
- * @property {ApplicationCors} [cors]
535
- * @property {ApplicationAuth} [auth]
536
- * @property {string} [description] - It contains detailed information about the
537
- * sales channel.
538
- * @property {string} [channel_type] - It indicates different channel types like
539
- * store, website-and-mobile-apps. Default value is store.
540
- * @property {number} [cache_ttl] - An integer value that specifies the number
541
- * of seconds until the key expires.
542
- * @property {boolean} [is_internal] - Indicates whether a sales channel is
543
- * internal or not.
544
- * @property {boolean} [is_active] - Indicates sales channel is active or not active.
545
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
546
- * of the sales channel.
547
- * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion.
548
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
549
- * of owner who owns the application.
550
- * @property {number} [company_id] - Numeric ID allotted to a business account
551
- * where the sales channel exists.
552
- * @property {string} [token] - Random generated fix length string for sales
553
- * channel. It is required and auto-generated.
554
- * @property {ApplicationRedirections[]} [redirections] - List of redirections
555
- * for the sales channel.
556
- * @property {ApplicationMeta[]} [meta] - List of meta information for the sales channel.
557
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation.
558
- * @property {string} [modified_at] - ISO 8601 timestamp of sales channel updation.
559
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
560
- * @property {SecureUrl} [banner]
561
- * @property {SecureUrl} [logo]
562
- * @property {SecureUrl} [favicon]
563
- * @property {Domain[]} [domains] - List of domains associated with the sales channel.
564
- * @property {string} [app_type] - It shows application is live or in development mode.
565
- * @property {SecureUrl} [mobile_logo]
566
- * @property {Domain} [domain]
567
- * @property {string} [slug] - Slug identifier.
568
- * @property {string} [mode] - Application mode.
569
- * @property {string} [status] - Current status of the application.
570
- * @property {TokenSchema[]} [tokens] - List of tokens associated with the sales channel.
571
- */
572
-
573
- /**
574
- * @typedef TokenSchema
575
- * @property {string} [token] - Token string.
576
- * @property {Object} [created_by] - User details.
577
- * @property {string} [created_at] - ISO 8601 timestamp of when token created.
578
- */
579
-
580
- /**
581
- * @typedef NotFound
582
- * @property {string} [message] - Response message for not found.
583
- */
584
-
585
- /**
586
- * @typedef InvalidPayloadRequestSchema
587
- * @property {string} [message] - Error message when request body payload is improper.
588
- */
589
-
590
- /**
591
- * @typedef SuccessMessageResponseSchema
592
- * @property {string} [message] - Success message shown to the user (in a string format).
593
- */
594
-
595
- /**
596
- * @typedef CompanyAboutAddress
597
- * @property {number} [pincode] - 6-digit PIN code of the city, e.g. 400001.
598
- * @property {string} [address1] - Primary address line of the company.
599
- * @property {string} [address2] - Secondary address line of the company.
600
- * @property {string} [city] - City name, e.g. Mumbai.
601
- * @property {string} [state] - State name, e.g. Maharashtra.
602
- * @property {string} [country] - Country name, e.g. India.
603
- * @property {string} [address_type] - Indicates different office types like
604
- * office, registered, and home.
605
- */
606
-
607
- /**
608
- * @typedef UserEmail
609
- * @property {boolean} [active] - Current email is active or not active.
610
- * @property {boolean} [primary] - Indicates current email id primary email or
611
- * not primary email of user.
612
- * @property {boolean} [verified] - Indicates current email is verified email or
613
- * not verified email.
614
- * @property {string} [email] - Email address of the user.
615
- */
616
-
617
- /**
618
- * @typedef UserPhoneNumber
619
- * @property {boolean} [active] - Current phone number is active or not active.
620
- * @property {boolean} [primary] - Indicates current phone number is primary or
621
- * not for a user.
622
- * @property {boolean} [verified] - Indicates current phone number is verified
623
- * or not verified.
624
- * @property {number} [country_code] - Country code, e.g. +91.
625
- * @property {string} [phone] - Phone number of the user.
626
- */
627
-
628
- /**
629
- * @typedef Page
630
- * @property {number} [item_total] - The total number of items on the page.
631
- * @property {string} [next_id] - The identifier for the next page.
632
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
633
- * @property {boolean} [has_next] - Indicates whether there is a next page.
634
- * @property {number} [current] - The current page number.
635
- * @property {string} type - The type of the page, such as 'PageType'.
636
- * @property {number} [size] - The number of items per page.
637
- */
638
-
639
- /**
640
- * @typedef ApplicationInformation
641
- * @property {InformationAddress} [address]
642
- * @property {InformationSupport} [support]
643
- * @property {SocialLinks} [social_links]
644
- * @property {Links[]} [links] - Array of additional relevant web links related
645
- * to the application.
646
- * @property {string} [copyright_text] - Copyright statement usually seen at the
647
- * site's footer.
648
- * @property {string} [_id] - Unique identifier (24-digit Mongo Object ID) of
649
- * the application information.
650
- * @property {BusinessHighlights[]} [business_highlights] - Array of notable
651
- * business highlights with icons and descriptions.
652
- * @property {string} [application] - Alphanumeric ID allotted to a sales
653
- * channel application created within a business account.
654
- * @property {string} [created_at] - ISO 8601 timestamp of creation of the
655
- * application information.
656
- * @property {string} [modified_at] - ISO 8601 timestamp of updation of the
657
- * application information.
658
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
659
- */
660
-
661
- /**
662
- * @typedef InformationAddress
663
- * @property {InformationLoc} [loc]
664
- * @property {string[]} [address_line] - Contact address of the sales channel.
665
- * @property {InformationPhone[]} [phone] - Phone numbers with country codes.
666
- * @property {string} [city] - Name of the city, e.g. Mumbai.
667
- * @property {string} [country] - Name of the country, e.g. India.
668
- * @property {number} [pincode] - 6-digit PIN Code of the city, e.g. 400001.
669
- */
670
-
671
- /**
672
- * @typedef InformationPhone
673
- * @property {string} [code] - Country code for contact number, e.g. +91 (for India).
674
- * @property {string} [number] - 10-digit mobile number.
675
- */
676
-
677
- /**
678
- * @typedef InformationSupportPhone
679
- * @property {string} [code] - Country code for contact number, e.g. +91 (for India).
680
- * @property {string} [number] - 10-digit mobile number.
681
- * @property {string} [key] - Additional identifier or key for the contact number.
682
- */
683
-
684
- /**
685
- * @typedef InformationSupportEmail
686
- * @property {string} [value] - Value of email.
687
- * @property {string} [key] - Additional identifier or key for the email address.
688
- */
689
-
690
- /**
691
- * @typedef InformationLoc
692
- * @property {string} [type] - Country code for contact number, e.g. +91 (for India).
693
- * @property {number[]} [coordinates] - 10-digit mobile number.
694
- */
695
-
696
- /**
697
- * @typedef InformationSupport
698
- * @property {InformationSupportPhone[]} [phone] - An array of phone contact
699
- * details, including country code and number.
700
- * @property {InformationSupportEmail[]} [email] - An array of email contact details.
701
- * @property {string} [timing] - Working hours of support team, e.g. 9 AM to 9 PM.
702
- */
703
-
704
- /**
705
- * @typedef SocialLinks
706
- * @property {FacebookLink} [facebook]
707
- * @property {InstagramLink} [instagram]
708
- * @property {TwitterLink} [twitter]
709
- * @property {PinterestLink} [pinterest]
710
- * @property {GooglePlusLink} [google_plus]
711
- * @property {YoutubeLink} [youtube]
712
- * @property {LinkedInLink} [linked_in]
713
- * @property {VimeoLink} [vimeo]
714
- * @property {BlogLink} [blog_link]
715
- */
716
-
717
- /**
718
- * @typedef FacebookLink
719
- * @property {string} [title] - Name of the social media platform, e.g. Facebook.
720
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
721
- * @property {string} [link] - Web URL of brand's Facebook page.
722
- */
723
-
724
- /**
725
- * @typedef InstagramLink
726
- * @property {string} [title] - Name of the social media platform, e.g. Instagram.
727
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
728
- * @property {string} [link] - Web URL of brand's Instagram page.
729
- */
730
-
731
- /**
732
- * @typedef TwitterLink
733
- * @property {string} [title] - Name of the social media platform, e.g. Twitter.
734
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
735
- * @property {string} [link] - Web URL of brand's Twitter account.
736
- */
737
-
738
- /**
739
- * @typedef PinterestLink
740
- * @property {string} [title] - Name of the social media platform, e.g. Pinterest.
741
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
742
- * @property {string} [link] - Web URL of brand's Pinterest page.
743
- */
744
-
745
- /**
746
- * @typedef GooglePlusLink
747
- * @property {string} [title] - Name of the social media platform, e.g. Google+.
748
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
749
- * @property {string} [link] - Web URL of brand's Google+ account.
750
- */
751
-
752
- /**
753
- * @typedef YoutubeLink
754
- * @property {string} [title] - Name of the social media platform, e.g. YouTube.
755
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
756
- * @property {string} [link] - Web URL of brand's YouTube channel.
757
- */
758
-
759
- /**
760
- * @typedef LinkedInLink
761
- * @property {string} [title] - Name of the social media platform, e.g. LinkedIn.
762
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
763
- * @property {string} [link] - Web URL of brand's LinkedIn channel.
764
- */
765
-
766
- /**
767
- * @typedef VimeoLink
768
- * @property {string} [title] - Name of the video hosting platform, e.g. Vimeo.
769
- * @property {string} [icon] - Hosted URL of social icon image shown on the website.
770
- * @property {string} [link] - Web URL of brand's Vimeo channel.
771
- */
772
-
773
- /**
774
- * @typedef BlogLink
775
- * @property {string} [title] - Name of the brand's blog page.
776
- * @property {string} [icon] - Hosted URL of icon image shown on the website.
777
- * @property {string} [link] - Web URL of brand's blog page.
778
- */
779
-
780
- /**
781
- * @typedef Links
782
- * @property {string} [title] - Name of the related page or link.
783
- * @property {string} [link] - Web URL for redirecting to a related page.
784
- */
785
-
786
- /**
787
- * @typedef BusinessHighlights
788
- * @property {string} [_id] - Unique identifier (24-digit Mongo Object ID) of
789
- * the related business.
790
- * @property {string} [title] - Title of the business highlight, e.g. Superfast Delivery.
791
- * @property {string} [icon] - Hosted URL of icon image representing the
792
- * business highlight.
793
- * @property {string} [sub_title] - Detailed information about the highlight.
794
- */
795
-
796
- /**
797
- * @typedef ApplicationDetail
798
- * @property {string} name - Name of the sales channel. It is required.
799
- * @property {string} [description] - It gives a detailed information about the
800
- * sales channel. It is required.
801
- * @property {SecureUrl} [logo]
802
- * @property {SecureUrl} [mobile_logo]
803
- * @property {SecureUrl} [favicon]
804
- * @property {SecureUrl} [banner]
805
- * @property {Domain} [domain]
806
- * @property {Domain[]} [domains] - List of domains associated with the sales channel.
807
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
808
- * for the sales channel details.
809
- * @property {string} [slug] - URL-friendly version of the sales channel name.
810
- * @property {number} [company_id] - Numeric ID allotted to the business account
811
- * where the sales channel is mapped.
812
- */
813
-
814
- /**
815
- * @typedef CurrenciesResponseSchema
816
- * @property {Currency[]} [items] - A list of currency objects. Each object
817
- * represents a different currency.
818
- */
819
-
820
- /**
821
- * @typedef DefaultCurrency
822
- * @property {string} [ref] - The unique identifier (24-digit Mongo Object ID)
823
- * of the default currency.
824
- * @property {string} [code] - 3-character code of the default currency, e.g.
825
- * INR, EUR, USD.
826
- */
827
-
828
- /**
829
- * @typedef AppCurrencyResponseSchema
830
- * @property {string} [application] - Alphanumeric ID allotted to an application
831
- * (sales channel website) created within a business account.
832
- * @property {DefaultCurrency} [default_currency]
833
- * @property {Currency[]} [supported_currency] - A list of currencies supported
834
- * by the application.
835
- * @property {string} [_id] - The unique identifier of the application.
836
- * @property {string} [created_at] - ISO 8601 timestamp of when the application
837
- * was created.
838
- * @property {string} [modified_at] - ISO 8601 timestamp of when the application
839
- * was last modified.
840
- */
841
-
842
- /**
843
- * @typedef StoreLatLong
844
- * @property {string} [type] - Coordinates type of the opted store.
845
- * @property {number[]} [coordinates] - Latitude and Longitude coordinates of the store.
846
- */
847
-
848
- /**
849
- * @typedef OptedStoreAddress
850
- * @property {string} [state] - State of the opted store, e.g. Maharashtra.
851
- * @property {string} [address1] - Address of the opted store.
852
- * @property {StoreLatLong} [lat_long]
853
- * @property {string} [address2] - Address of the opted store.
854
- * @property {number} [pincode] - 6-digit PIN code of the opted store location.
855
- * @property {string} [country] - Country of the opted store, e.g. India.
856
- * @property {string} [city] - City of the opted store, e.g. Mumbai.
857
- */
858
-
859
- /**
860
- * @typedef OrderingStore
861
- * @property {OptedStoreAddress} [address]
862
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
863
- * of the ordering store.
864
- * @property {number} [uid] - Ordering store UID.
865
- * @property {string} [name] - Store name of the ordering store.
866
- * @property {string} [display_name] - Display name of the ordering store.
867
- * @property {string} [store_type] - Store type of the ordering store, e.g.
868
- * high_street, mall, warehouse.
869
- * @property {string} [store_code] - Store code of the ordering store, e.g. MUM-102.
870
- * @property {number} [pincode] - 6-digit PIN Code of the ordering store, e.g. 400001.
871
- * @property {string} [code] - Code of the ordering store (usually same as Store Code).
872
- */
873
-
874
- /**
875
- * @typedef OrderingStores
876
- * @property {Page} [page]
877
- * @property {OrderingStore[]} [items] - List of ordering stores.
878
- * @property {number[]} [deployed_stores] - List of all deployed stores.
879
- * @property {boolean} [all_stores] - Allow all stores of the ordering stores.
880
- * @property {boolean} [enabled] - Allow ordering stores for current sales channel.
881
- * @property {string} [type] - For hard type delivery, store selection is
882
- * compulsory. For soft type, delivery store selection is optional.
883
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
884
- * of the ordering store.
885
- * @property {string} [app] - Alphanumeric ID allotted to an application (sales
886
- * channel website) created within a business account.
887
- * @property {number} [__v] - Version key for tracking ordering stores. Default
888
- * value is zero.
889
- */
890
-
891
- class ConfigurationApplicationModel {
892
- /** @returns {ApplicationAboutResponseSchema} */
893
- static ApplicationAboutResponseSchema() {
894
- return Joi.object({
895
- application_info: ConfigurationApplicationModel.ApplicationInfo(),
896
- });
897
- }
898
-
899
- /** @returns {ApplicationInfo} */
900
- static ApplicationInfo() {
901
- return Joi.object({
902
- company_info: ConfigurationApplicationModel.CompanyInfo(),
903
- owner_info: ConfigurationApplicationModel.OwnerInfo(),
904
- _id: Joi.string().allow(""),
905
- domain: ConfigurationApplicationModel.Domain(),
906
- website: ConfigurationApplicationModel.ApplicationWebsite(),
907
- cors: ConfigurationApplicationModel.ApplicationCors(),
908
- description: Joi.string().allow(""),
909
- name: Joi.string().allow(""),
910
- meta: Joi.array().items(ConfigurationApplicationModel.ApplicationMeta()),
911
- token: Joi.string().allow(""),
912
- secret: Joi.string().allow(""),
913
- created_at: Joi.string().allow(""),
914
- banner: ConfigurationApplicationModel.SecureUrl(),
915
- logo: ConfigurationApplicationModel.SecureUrl(),
916
- is_active: Joi.boolean(),
917
- mode: Joi.string().allow(""),
918
- tokens: Joi.array().items(ConfigurationApplicationModel.TokenSchema()),
919
- domains: Joi.array().items(ConfigurationApplicationModel.Domain()),
920
- favicon: ConfigurationApplicationModel.SecureUrl(),
921
- mobile_logo: ConfigurationApplicationModel.SecureUrl(),
922
- slug: Joi.string().allow(""),
923
- });
924
- }
925
-
926
- /** @returns {CompanyInfo} */
927
- static CompanyInfo() {
928
- return Joi.object({
929
- _id: Joi.string().allow(""),
930
- uid: Joi.number(),
931
- created_on: Joi.string().allow(""),
932
- is_active: Joi.boolean(),
933
- name: Joi.string().allow(""),
934
- addresses: Joi.array().items(
935
- ConfigurationApplicationModel.CompanyAboutAddress()
936
- ),
937
- notification_emails: Joi.array().items(Joi.string().allow("")),
938
- });
939
- }
940
-
941
- /** @returns {OwnerInfo} */
942
- static OwnerInfo() {
943
- return Joi.object({
944
- _id: Joi.string().allow(""),
945
- emails: Joi.array().items(ConfigurationApplicationModel.UserEmail()),
946
- phone_numbers: Joi.array().items(
947
- ConfigurationApplicationModel.UserPhoneNumber()
948
- ),
949
- first_name: Joi.string().allow(""),
950
- last_name: Joi.string().allow(""),
951
- profile_pic: Joi.string().allow(""),
952
- });
953
- }
954
-
955
- /** @returns {SupportedLanguage} */
956
- static SupportedLanguage() {
957
- return Joi.object({
958
- name: Joi.string().allow(""),
959
- code: Joi.string().allow(""),
960
- });
961
- }
962
-
963
- /** @returns {LanguageResponseSchema} */
964
- static LanguageResponseSchema() {
965
- return Joi.object({
966
- items: Joi.array().items(
967
- ConfigurationApplicationModel.SupportedLanguage()
968
- ),
969
- });
970
- }
971
-
972
- /** @returns {AppStaffResponseSchema} */
973
- static AppStaffResponseSchema() {
974
- return Joi.object({
975
- staff_users: Joi.array().items(ConfigurationApplicationModel.AppStaff()),
976
- });
977
- }
978
-
979
- /** @returns {AppStaffListResponseSchema} */
980
- static AppStaffListResponseSchema() {
981
- return Joi.object({
982
- page: ConfigurationApplicationModel.Page(),
983
- items: Joi.array().items(ConfigurationApplicationModel.AppStaff()),
984
- });
985
- }
986
-
987
- /** @returns {OrderingStoreSelectRequestSchema} */
988
- static OrderingStoreSelectRequestSchema() {
989
- return Joi.object({
990
- ordering_store: ConfigurationApplicationModel.OrderingStoreSelect().required(),
991
- });
992
- }
993
-
994
- /** @returns {OrderingStoreSelect} */
995
- static OrderingStoreSelect() {
996
- return Joi.object({
997
- uid: Joi.number().required(),
998
- });
999
- }
1000
-
1001
- /** @returns {AppStaff} */
1002
- static AppStaff() {
1003
- return Joi.object({
1004
- _id: Joi.string().allow(""),
1005
- order_incent: Joi.boolean(),
1006
- stores: Joi.array().items(Joi.number()),
1007
- application: Joi.string().allow(""),
1008
- title: Joi.string().allow(""),
1009
- user: Joi.string().allow(""),
1010
- employee_code: Joi.string().allow(""),
1011
- first_name: Joi.string().allow(""),
1012
- last_name: Joi.string().allow(""),
1013
- profile_pic_url: Joi.string().allow(""),
1014
- });
1015
- }
1016
-
1017
- /** @returns {AppTokenResponseSchema} */
1018
- static AppTokenResponseSchema() {
1019
- return Joi.object({
1020
- tokens: ConfigurationApplicationModel.Tokens(),
1021
- _id: Joi.string().allow(""),
1022
- application: Joi.string().allow(""),
1023
- created_at: Joi.string().allow(""),
1024
- modified_at: Joi.string().allow(""),
1025
- __v: Joi.number(),
1026
- });
1027
- }
1028
-
1029
- /** @returns {Tokens} */
1030
- static Tokens() {
1031
- return Joi.object({
1032
- firebase: ConfigurationApplicationModel.Firebase(),
1033
- moengage: ConfigurationApplicationModel.Moengage(),
1034
- segment: ConfigurationApplicationModel.Segment(),
1035
- gtm: ConfigurationApplicationModel.Gtm(),
1036
- freshchat: ConfigurationApplicationModel.Freshchat(),
1037
- safetynet: ConfigurationApplicationModel.Safetynet(),
1038
- fynd_rewards: ConfigurationApplicationModel.FyndRewards(),
1039
- google_map: ConfigurationApplicationModel.GoogleMap(),
1040
- });
1041
- }
1042
-
1043
- /** @returns {Firebase} */
1044
- static Firebase() {
1045
- return Joi.object({
1046
- credentials: ConfigurationApplicationModel.Credentials(),
1047
- enabled: Joi.boolean(),
1048
- });
1049
- }
1050
-
1051
- /** @returns {Credentials} */
1052
- static Credentials() {
1053
- return Joi.object({
1054
- ios: ConfigurationApplicationModel.Ios(),
1055
- android: ConfigurationApplicationModel.Android(),
1056
- project_id: Joi.string().allow(""),
1057
- gcm_sender_id: Joi.string().allow(""),
1058
- application_id: Joi.string().allow(""),
1059
- api_key: Joi.string().allow(""),
1060
- });
1061
- }
1062
-
1063
- /** @returns {Ios} */
1064
- static Ios() {
1065
- return Joi.object({
1066
- application_id: Joi.string().allow(""),
1067
- api_key: Joi.string().allow(""),
1068
- });
1069
- }
1070
-
1071
- /** @returns {Android} */
1072
- static Android() {
1073
- return Joi.object({
1074
- application_id: Joi.string().allow(""),
1075
- api_key: Joi.string().allow(""),
1076
- });
1077
- }
1078
-
1079
- /** @returns {Moengage} */
1080
- static Moengage() {
1081
- return Joi.object({
1082
- credentials: ConfigurationApplicationModel.MoengageCredentials(),
1083
- enabled: Joi.boolean(),
1084
- });
1085
- }
1086
-
1087
- /** @returns {MoengageCredentials} */
1088
- static MoengageCredentials() {
1089
- return Joi.object({
1090
- app_id: Joi.string().allow(""),
1091
- });
1092
- }
1093
-
1094
- /** @returns {Segment} */
1095
- static Segment() {
1096
- return Joi.object({
1097
- credentials: ConfigurationApplicationModel.SegmentCredentials(),
1098
- enabled: Joi.boolean(),
1099
- });
1100
- }
1101
-
1102
- /** @returns {SegmentCredentials} */
1103
- static SegmentCredentials() {
1104
- return Joi.object({
1105
- write_key: Joi.string().allow(""),
1106
- });
1107
- }
1108
-
1109
- /** @returns {Gtm} */
1110
- static Gtm() {
1111
- return Joi.object({
1112
- credentials: ConfigurationApplicationModel.GtmCredentials(),
1113
- enabled: Joi.boolean(),
1114
- });
1115
- }
1116
-
1117
- /** @returns {GtmCredentials} */
1118
- static GtmCredentials() {
1119
- return Joi.object({
1120
- api_key: Joi.string().allow(""),
1121
- });
1122
- }
1123
-
1124
- /** @returns {Freshchat} */
1125
- static Freshchat() {
1126
- return Joi.object({
1127
- credentials: ConfigurationApplicationModel.FreshchatCredentials(),
1128
- enabled: Joi.boolean(),
1129
- });
1130
- }
1131
-
1132
- /** @returns {FreshchatCredentials} */
1133
- static FreshchatCredentials() {
1134
- return Joi.object({
1135
- app_id: Joi.string().allow(""),
1136
- app_key: Joi.string().allow(""),
1137
- web_token: Joi.string().allow(""),
1138
- });
1139
- }
1140
-
1141
- /** @returns {Safetynet} */
1142
- static Safetynet() {
1143
- return Joi.object({
1144
- credentials: ConfigurationApplicationModel.SafetynetCredentials(),
1145
- enabled: Joi.boolean(),
1146
- });
1147
- }
1148
-
1149
- /** @returns {SafetynetCredentials} */
1150
- static SafetynetCredentials() {
1151
- return Joi.object({
1152
- api_key: Joi.string().allow(""),
1153
- });
1154
- }
1155
-
1156
- /** @returns {FyndRewards} */
1157
- static FyndRewards() {
1158
- return Joi.object({
1159
- credentials: ConfigurationApplicationModel.FyndRewardsCredentials(),
1160
- });
1161
- }
1162
-
1163
- /** @returns {FyndRewardsCredentials} */
1164
- static FyndRewardsCredentials() {
1165
- return Joi.object({
1166
- public_key: Joi.string().allow(""),
1167
- });
1168
- }
1169
-
1170
- /** @returns {GoogleMap} */
1171
- static GoogleMap() {
1172
- return Joi.object({
1173
- enabled: Joi.boolean(),
1174
- credentials: ConfigurationApplicationModel.GoogleMapCredentials(),
1175
- });
1176
- }
1177
-
1178
- /** @returns {GoogleMapCredentials} */
1179
- static GoogleMapCredentials() {
1180
- return Joi.object({
1181
- api_key: Joi.string().allow(""),
1182
- });
1183
- }
1184
-
1185
- /** @returns {RewardPointsConfig} */
1186
- static RewardPointsConfig() {
1187
- return Joi.object({
1188
- credit: ConfigurationApplicationModel.Credit(),
1189
- debit: ConfigurationApplicationModel.Debit(),
1190
- });
1191
- }
1192
-
1193
- /** @returns {Credit} */
1194
- static Credit() {
1195
- return Joi.object({
1196
- enabled: Joi.boolean(),
1197
- });
1198
- }
1199
-
1200
- /** @returns {Debit} */
1201
- static Debit() {
1202
- return Joi.object({
1203
- enabled: Joi.boolean(),
1204
- auto_apply: Joi.boolean(),
1205
- strategy_channel: Joi.string().allow(""),
1206
- });
1207
- }
1208
-
1209
- /** @returns {ProductDetailFeature} */
1210
- static ProductDetailFeature() {
1211
- return Joi.object({
1212
- similar: Joi.array().items(Joi.string().allow("")),
1213
- seller_selection: Joi.boolean(),
1214
- update_product_meta: Joi.boolean(),
1215
- request_product: Joi.boolean(),
1216
- });
1217
- }
1218
-
1219
- /** @returns {LaunchPage} */
1220
- static LaunchPage() {
1221
- return Joi.object({
1222
- page_type: Joi.string().allow(""),
1223
- params: Joi.object().pattern(/\S/, Joi.any()),
1224
- query: Joi.object().pattern(/\S/, Joi.any()),
1225
- });
1226
- }
1227
-
1228
- /** @returns {LandingPageFeature} */
1229
- static LandingPageFeature() {
1230
- return Joi.object({
1231
- launch_page: ConfigurationApplicationModel.LaunchPage(),
1232
- continue_as_guest: Joi.boolean(),
1233
- login_btn_text: Joi.string().allow(""),
1234
- show_domain_textbox: Joi.boolean(),
1235
- show_register_btn: Joi.boolean(),
1236
- });
1237
- }
1238
-
1239
- /** @returns {RegistrationPageFeature} */
1240
- static RegistrationPageFeature() {
1241
- return Joi.object({
1242
- ask_store_address: Joi.boolean(),
1243
- });
1244
- }
1245
-
1246
- /** @returns {AppFeature} */
1247
- static AppFeature() {
1248
- return Joi.object({
1249
- product_detail: ConfigurationApplicationModel.ProductDetailFeature(),
1250
- landing_page: ConfigurationApplicationModel.LandingPageFeature(),
1251
- registration_page: ConfigurationApplicationModel.RegistrationPageFeature(),
1252
- home_page: ConfigurationApplicationModel.HomePageFeature(),
1253
- common: ConfigurationApplicationModel.CommonFeature(),
1254
- cart: ConfigurationApplicationModel.CartFeature(),
1255
- qr: ConfigurationApplicationModel.QrFeature(),
1256
- pcr: ConfigurationApplicationModel.PcrFeature(),
1257
- order: ConfigurationApplicationModel.OrderFeature(),
1258
- _id: Joi.string().allow(""),
1259
- app: Joi.string().allow(""),
1260
- created_at: Joi.string().allow(""),
1261
- modified_at: Joi.string().allow(""),
1262
- __v: Joi.number(),
1263
- });
1264
- }
1265
-
1266
- /** @returns {HomePageFeature} */
1267
- static HomePageFeature() {
1268
- return Joi.object({
1269
- order_processing: Joi.boolean(),
1270
- });
1271
- }
1272
-
1273
- /** @returns {CommonFeature} */
1274
- static CommonFeature() {
1275
- return Joi.object({
1276
- communication_optin_dialog: ConfigurationApplicationModel.CommunicationOptinDialogFeature(),
1277
- deployment_store_selection: ConfigurationApplicationModel.DeploymentStoreSelectionFeature(),
1278
- listing_price: ConfigurationApplicationModel.ListingPriceFeature(),
1279
- currency: ConfigurationApplicationModel.CurrencyFeature(),
1280
- revenue_engine: ConfigurationApplicationModel.RevenueEngineFeature(),
1281
- feedback: ConfigurationApplicationModel.FeedbackFeature(),
1282
- compare_products: ConfigurationApplicationModel.CompareProductsFeature(),
1283
- reward_points: ConfigurationApplicationModel.RewardPointsConfig(),
1284
- listing_page: ConfigurationApplicationModel.ListingPageFeature(),
1285
- international_shipping: ConfigurationApplicationModel.InternationalShipping(),
1286
- });
1287
- }
1288
-
1289
- /** @returns {InternationalShipping} */
1290
- static InternationalShipping() {
1291
- return Joi.object({
1292
- enabled: Joi.boolean(),
1293
- });
1294
- }
1295
-
1296
- /** @returns {CommunicationOptinDialogFeature} */
1297
- static CommunicationOptinDialogFeature() {
1298
- return Joi.object({
1299
- visibility: Joi.boolean(),
1300
- });
1301
- }
1302
-
1303
- /** @returns {DeploymentStoreSelectionFeature} */
1304
- static DeploymentStoreSelectionFeature() {
1305
- return Joi.object({
1306
- enabled: Joi.boolean(),
1307
- type: Joi.string().allow(""),
1308
- });
1309
- }
1310
-
1311
- /** @returns {ListingPriceFeature} */
1312
- static ListingPriceFeature() {
1313
- return Joi.object({
1314
- value: Joi.string().allow(""),
1315
- sort: Joi.string().allow(""),
1316
- });
1317
- }
1318
-
1319
- /** @returns {ListingPageFeature} */
1320
- static ListingPageFeature() {
1321
- return Joi.object({
1322
- sort_on: Joi.string().allow(""),
1323
- });
1324
- }
1325
-
1326
- /** @returns {CurrencyFeature} */
1327
- static CurrencyFeature() {
1328
- return Joi.object({
1329
- value: Joi.array().items(Joi.string().allow("")),
1330
- type: Joi.string().allow(""),
1331
- default_currency: Joi.string().allow(""),
1332
- });
1333
- }
1334
-
1335
- /** @returns {RevenueEngineFeature} */
1336
- static RevenueEngineFeature() {
1337
- return Joi.object({
1338
- enabled: Joi.boolean(),
1339
- });
1340
- }
1341
-
1342
- /** @returns {FeedbackFeature} */
1343
- static FeedbackFeature() {
1344
- return Joi.object({
1345
- enabled: Joi.boolean(),
1346
- });
1347
- }
1348
-
1349
- /** @returns {CompareProductsFeature} */
1350
- static CompareProductsFeature() {
1351
- return Joi.object({
1352
- enabled: Joi.boolean(),
1353
- });
1354
- }
1355
-
1356
- /** @returns {CartFeature} */
1357
- static CartFeature() {
1358
- return Joi.object({
1359
- gst_input: Joi.boolean(),
1360
- staff_selection: Joi.boolean(),
1361
- placing_for_customer: Joi.boolean(),
1362
- google_map: Joi.boolean(),
1363
- revenue_engine_coupon: Joi.boolean(),
1364
- });
1365
- }
1366
-
1367
- /** @returns {QrFeature} */
1368
- static QrFeature() {
1369
- return Joi.object({
1370
- application: Joi.boolean(),
1371
- products: Joi.boolean(),
1372
- collections: Joi.boolean(),
1373
- });
1374
- }
1375
-
1376
- /** @returns {PcrFeature} */
1377
- static PcrFeature() {
1378
- return Joi.object({
1379
- staff_selection: Joi.boolean(),
1380
- });
1381
- }
1382
-
1383
- /** @returns {OrderFeature} */
1384
- static OrderFeature() {
1385
- return Joi.object({
1386
- buy_again: Joi.boolean(),
1387
- });
1388
- }
1389
-
1390
- /** @returns {AppFeatureResponseSchema} */
1391
- static AppFeatureResponseSchema() {
1392
- return Joi.object({
1393
- feature: ConfigurationApplicationModel.AppFeature(),
1394
- });
1395
- }
1396
-
1397
- /** @returns {Currency} */
1398
- static Currency() {
1399
- return Joi.object({
1400
- _id: Joi.string().allow(""),
1401
- is_active: Joi.boolean(),
1402
- name: Joi.string().allow(""),
1403
- code: Joi.string().allow(""),
1404
- created_at: Joi.string().allow(""),
1405
- modified_at: Joi.string().allow(""),
1406
- decimal_digits: Joi.number(),
1407
- symbol: Joi.string().allow(""),
1408
- country_name: Joi.string().allow(""),
1409
- country_code: Joi.string().allow(""),
1410
- });
1411
- }
1412
-
1413
- /** @returns {Domain} */
1414
- static Domain() {
1415
- return Joi.object({
1416
- verified: Joi.boolean(),
1417
- is_primary: Joi.boolean(),
1418
- is_shortlink: Joi.boolean(),
1419
- _id: Joi.string().allow(""),
1420
- name: Joi.string().allow(""),
1421
- is_predefined: Joi.boolean(),
1422
- });
1423
- }
1424
-
1425
- /** @returns {ApplicationWebsite} */
1426
- static ApplicationWebsite() {
1427
- return Joi.object({
1428
- enabled: Joi.boolean(),
1429
- basepath: Joi.string().allow(""),
1430
- });
1431
- }
1432
-
1433
- /** @returns {ApplicationCors} */
1434
- static ApplicationCors() {
1435
- return Joi.object({
1436
- domains: Joi.array().items(Joi.string().allow("")),
1437
- });
1438
- }
1439
-
1440
- /** @returns {ApplicationAuth} */
1441
- static ApplicationAuth() {
1442
- return Joi.object({
1443
- enabled: Joi.boolean(),
1444
- });
1445
- }
1446
-
1447
- /** @returns {ApplicationRedirections} */
1448
- static ApplicationRedirections() {
1449
- return Joi.object({
1450
- redirect_from: Joi.string().allow(""),
1451
- redirect_to: Joi.string().allow(""),
1452
- type: Joi.string().allow(""),
1453
- });
1454
- }
1455
-
1456
- /** @returns {ApplicationMeta} */
1457
- static ApplicationMeta() {
1458
- return Joi.object({
1459
- name: Joi.string().allow(""),
1460
- value: Joi.string().allow(""),
1461
- });
1462
- }
1463
-
1464
- /** @returns {SecureUrl} */
1465
- static SecureUrl() {
1466
- return Joi.object({
1467
- secure_url: Joi.string().allow(""),
1468
- });
1469
- }
1470
-
1471
- /** @returns {Application} */
1472
- static Application() {
1473
- return Joi.object({
1474
- website: ConfigurationApplicationModel.ApplicationWebsite(),
1475
- cors: ConfigurationApplicationModel.ApplicationCors(),
1476
- auth: ConfigurationApplicationModel.ApplicationAuth(),
1477
- description: Joi.string().allow(""),
1478
- channel_type: Joi.string().allow(""),
1479
- cache_ttl: Joi.number(),
1480
- is_internal: Joi.boolean(),
1481
- is_active: Joi.boolean(),
1482
- _id: Joi.string().allow(""),
1483
- name: Joi.string().allow(""),
1484
- owner: Joi.string().allow(""),
1485
- company_id: Joi.number(),
1486
- token: Joi.string().allow(""),
1487
- redirections: Joi.array().items(
1488
- ConfigurationApplicationModel.ApplicationRedirections()
1489
- ),
1490
- meta: Joi.array().items(ConfigurationApplicationModel.ApplicationMeta()),
1491
- created_at: Joi.string().allow(""),
1492
- modified_at: Joi.string().allow(""),
1493
- __v: Joi.number(),
1494
- banner: ConfigurationApplicationModel.SecureUrl(),
1495
- logo: ConfigurationApplicationModel.SecureUrl(),
1496
- favicon: ConfigurationApplicationModel.SecureUrl(),
1497
- domains: Joi.array().items(ConfigurationApplicationModel.Domain()),
1498
- app_type: Joi.string().allow(""),
1499
- mobile_logo: ConfigurationApplicationModel.SecureUrl(),
1500
- domain: ConfigurationApplicationModel.Domain(),
1501
- slug: Joi.string().allow(""),
1502
- mode: Joi.string().allow(""),
1503
- status: Joi.string().allow(""),
1504
- tokens: Joi.array().items(ConfigurationApplicationModel.TokenSchema()),
1505
- });
1506
- }
1507
-
1508
- /** @returns {TokenSchema} */
1509
- static TokenSchema() {
1510
- return Joi.object({
1511
- token: Joi.string().allow(""),
1512
- created_by: Joi.object().pattern(/\S/, Joi.any()),
1513
- created_at: Joi.string().allow(""),
1514
- });
1515
- }
1516
-
1517
- /** @returns {NotFound} */
1518
- static NotFound() {
1519
- return Joi.object({
1520
- message: Joi.string().allow(""),
1521
- });
1522
- }
1523
-
1524
- /** @returns {InvalidPayloadRequestSchema} */
1525
- static InvalidPayloadRequestSchema() {
1526
- return Joi.object({
1527
- message: Joi.string().allow(""),
1528
- });
1529
- }
1530
-
1531
- /** @returns {SuccessMessageResponseSchema} */
1532
- static SuccessMessageResponseSchema() {
1533
- return Joi.object({
1534
- message: Joi.string().allow(""),
1535
- });
1536
- }
1537
-
1538
- /** @returns {CompanyAboutAddress} */
1539
- static CompanyAboutAddress() {
1540
- return Joi.object({
1541
- pincode: Joi.number(),
1542
- address1: Joi.string().allow(""),
1543
- address2: Joi.string().allow(""),
1544
- city: Joi.string().allow(""),
1545
- state: Joi.string().allow(""),
1546
- country: Joi.string().allow(""),
1547
- address_type: Joi.string().allow(""),
1548
- });
1549
- }
1550
-
1551
- /** @returns {UserEmail} */
1552
- static UserEmail() {
1553
- return Joi.object({
1554
- active: Joi.boolean(),
1555
- primary: Joi.boolean(),
1556
- verified: Joi.boolean(),
1557
- email: Joi.string().allow(""),
1558
- });
1559
- }
1560
-
1561
- /** @returns {UserPhoneNumber} */
1562
- static UserPhoneNumber() {
1563
- return Joi.object({
1564
- active: Joi.boolean(),
1565
- primary: Joi.boolean(),
1566
- verified: Joi.boolean(),
1567
- country_code: Joi.number(),
1568
- phone: Joi.string().allow(""),
1569
- });
1570
- }
1571
-
1572
- /** @returns {Page} */
1573
- static Page() {
1574
- return Joi.object({
1575
- item_total: Joi.number(),
1576
- next_id: Joi.string().allow(""),
1577
- has_previous: Joi.boolean(),
1578
- has_next: Joi.boolean(),
1579
- current: Joi.number(),
1580
- type: Joi.string().allow("").required(),
1581
- size: Joi.number(),
1582
- });
1583
- }
1584
-
1585
- /** @returns {ApplicationInformation} */
1586
- static ApplicationInformation() {
1587
- return Joi.object({
1588
- address: ConfigurationApplicationModel.InformationAddress(),
1589
- support: ConfigurationApplicationModel.InformationSupport(),
1590
- social_links: ConfigurationApplicationModel.SocialLinks(),
1591
- links: Joi.array().items(ConfigurationApplicationModel.Links()),
1592
- copyright_text: Joi.string().allow(""),
1593
- _id: Joi.string().allow(""),
1594
- business_highlights: Joi.array().items(
1595
- ConfigurationApplicationModel.BusinessHighlights()
1596
- ),
1597
- application: Joi.string().allow(""),
1598
- created_at: Joi.string().allow(""),
1599
- modified_at: Joi.string().allow(""),
1600
- __v: Joi.number(),
1601
- });
1602
- }
1603
-
1604
- /** @returns {InformationAddress} */
1605
- static InformationAddress() {
1606
- return Joi.object({
1607
- loc: ConfigurationApplicationModel.InformationLoc(),
1608
- address_line: Joi.array().items(Joi.string().allow("")),
1609
- phone: Joi.array().items(
1610
- ConfigurationApplicationModel.InformationPhone()
1611
- ),
1612
- city: Joi.string().allow(""),
1613
- country: Joi.string().allow(""),
1614
- pincode: Joi.number(),
1615
- });
1616
- }
1617
-
1618
- /** @returns {InformationPhone} */
1619
- static InformationPhone() {
1620
- return Joi.object({
1621
- code: Joi.string().allow(""),
1622
- number: Joi.string().allow(""),
1623
- });
1624
- }
1625
-
1626
- /** @returns {InformationSupportPhone} */
1627
- static InformationSupportPhone() {
1628
- return Joi.object({
1629
- code: Joi.string().allow(""),
1630
- number: Joi.string().allow(""),
1631
- key: Joi.string().allow(""),
1632
- });
1633
- }
1634
-
1635
- /** @returns {InformationSupportEmail} */
1636
- static InformationSupportEmail() {
1637
- return Joi.object({
1638
- value: Joi.string().allow(""),
1639
- key: Joi.string().allow(""),
1640
- });
1641
- }
1642
-
1643
- /** @returns {InformationLoc} */
1644
- static InformationLoc() {
1645
- return Joi.object({
1646
- type: Joi.string().allow(""),
1647
- coordinates: Joi.array().items(Joi.number()),
1648
- });
1649
- }
1650
-
1651
- /** @returns {InformationSupport} */
1652
- static InformationSupport() {
1653
- return Joi.object({
1654
- phone: Joi.array().items(
1655
- ConfigurationApplicationModel.InformationSupportPhone()
1656
- ),
1657
- email: Joi.array().items(
1658
- ConfigurationApplicationModel.InformationSupportEmail()
1659
- ),
1660
- timing: Joi.string().allow(""),
1661
- });
1662
- }
1663
-
1664
- /** @returns {SocialLinks} */
1665
- static SocialLinks() {
1666
- return Joi.object({
1667
- facebook: ConfigurationApplicationModel.FacebookLink(),
1668
- instagram: ConfigurationApplicationModel.InstagramLink(),
1669
- twitter: ConfigurationApplicationModel.TwitterLink(),
1670
- pinterest: ConfigurationApplicationModel.PinterestLink(),
1671
- google_plus: ConfigurationApplicationModel.GooglePlusLink(),
1672
- youtube: ConfigurationApplicationModel.YoutubeLink(),
1673
- linked_in: ConfigurationApplicationModel.LinkedInLink(),
1674
- vimeo: ConfigurationApplicationModel.VimeoLink(),
1675
- blog_link: ConfigurationApplicationModel.BlogLink(),
1676
- });
1677
- }
1678
-
1679
- /** @returns {FacebookLink} */
1680
- static FacebookLink() {
1681
- return Joi.object({
1682
- title: Joi.string().allow(""),
1683
- icon: Joi.string().allow(""),
1684
- link: Joi.string().allow(""),
1685
- });
1686
- }
1687
-
1688
- /** @returns {InstagramLink} */
1689
- static InstagramLink() {
1690
- return Joi.object({
1691
- title: Joi.string().allow(""),
1692
- icon: Joi.string().allow(""),
1693
- link: Joi.string().allow(""),
1694
- });
1695
- }
1696
-
1697
- /** @returns {TwitterLink} */
1698
- static TwitterLink() {
1699
- return Joi.object({
1700
- title: Joi.string().allow(""),
1701
- icon: Joi.string().allow(""),
1702
- link: Joi.string().allow(""),
1703
- });
1704
- }
1705
-
1706
- /** @returns {PinterestLink} */
1707
- static PinterestLink() {
1708
- return Joi.object({
1709
- title: Joi.string().allow(""),
1710
- icon: Joi.string().allow(""),
1711
- link: Joi.string().allow(""),
1712
- });
1713
- }
1714
-
1715
- /** @returns {GooglePlusLink} */
1716
- static GooglePlusLink() {
1717
- return Joi.object({
1718
- title: Joi.string().allow(""),
1719
- icon: Joi.string().allow(""),
1720
- link: Joi.string().allow(""),
1721
- });
1722
- }
1723
-
1724
- /** @returns {YoutubeLink} */
1725
- static YoutubeLink() {
1726
- return Joi.object({
1727
- title: Joi.string().allow(""),
1728
- icon: Joi.string().allow(""),
1729
- link: Joi.string().allow(""),
1730
- });
1731
- }
1732
-
1733
- /** @returns {LinkedInLink} */
1734
- static LinkedInLink() {
1735
- return Joi.object({
1736
- title: Joi.string().allow(""),
1737
- icon: Joi.string().allow(""),
1738
- link: Joi.string().allow(""),
1739
- });
1740
- }
1741
-
1742
- /** @returns {VimeoLink} */
1743
- static VimeoLink() {
1744
- return Joi.object({
1745
- title: Joi.string().allow(""),
1746
- icon: Joi.string().allow(""),
1747
- link: Joi.string().allow(""),
1748
- });
1749
- }
1750
-
1751
- /** @returns {BlogLink} */
1752
- static BlogLink() {
1753
- return Joi.object({
1754
- title: Joi.string().allow(""),
1755
- icon: Joi.string().allow(""),
1756
- link: Joi.string().allow(""),
1757
- });
1758
- }
1759
-
1760
- /** @returns {Links} */
1761
- static Links() {
1762
- return Joi.object({
1763
- title: Joi.string().allow(""),
1764
- link: Joi.string().allow(""),
1765
- });
1766
- }
1767
-
1768
- /** @returns {BusinessHighlights} */
1769
- static BusinessHighlights() {
1770
- return Joi.object({
1771
- _id: Joi.string().allow(""),
1772
- title: Joi.string().allow(""),
1773
- icon: Joi.string().allow(""),
1774
- sub_title: Joi.string().allow(""),
1775
- });
1776
- }
1777
-
1778
- /** @returns {ApplicationDetail} */
1779
- static ApplicationDetail() {
1780
- return Joi.object({
1781
- name: Joi.string().allow("").required(),
1782
- description: Joi.string().allow(""),
1783
- logo: ConfigurationApplicationModel.SecureUrl(),
1784
- mobile_logo: ConfigurationApplicationModel.SecureUrl(),
1785
- favicon: ConfigurationApplicationModel.SecureUrl(),
1786
- banner: ConfigurationApplicationModel.SecureUrl(),
1787
- domain: ConfigurationApplicationModel.Domain(),
1788
- domains: Joi.array().items(ConfigurationApplicationModel.Domain()),
1789
- _id: Joi.string().allow(""),
1790
- slug: Joi.string().allow(""),
1791
- company_id: Joi.number(),
1792
- });
1793
- }
1794
-
1795
- /** @returns {CurrenciesResponseSchema} */
1796
- static CurrenciesResponseSchema() {
1797
- return Joi.object({
1798
- items: Joi.array().items(ConfigurationApplicationModel.Currency()),
1799
- });
1800
- }
1801
-
1802
- /** @returns {DefaultCurrency} */
1803
- static DefaultCurrency() {
1804
- return Joi.object({
1805
- ref: Joi.string().allow(""),
1806
- code: Joi.string().allow(""),
1807
- });
1808
- }
1809
-
1810
- /** @returns {AppCurrencyResponseSchema} */
1811
- static AppCurrencyResponseSchema() {
1812
- return Joi.object({
1813
- application: Joi.string().allow(""),
1814
- default_currency: ConfigurationApplicationModel.DefaultCurrency(),
1815
- supported_currency: Joi.array().items(
1816
- ConfigurationApplicationModel.Currency()
1817
- ),
1818
- _id: Joi.string().allow(""),
1819
- created_at: Joi.string().allow(""),
1820
- modified_at: Joi.string().allow(""),
1821
- });
1822
- }
1823
-
1824
- /** @returns {StoreLatLong} */
1825
- static StoreLatLong() {
1826
- return Joi.object({
1827
- type: Joi.string().allow(""),
1828
- coordinates: Joi.array().items(Joi.number()),
1829
- });
1830
- }
1831
-
1832
- /** @returns {OptedStoreAddress} */
1833
- static OptedStoreAddress() {
1834
- return Joi.object({
1835
- state: Joi.string().allow(""),
1836
- address1: Joi.string().allow(""),
1837
- lat_long: ConfigurationApplicationModel.StoreLatLong(),
1838
- address2: Joi.string().allow(""),
1839
- pincode: Joi.number(),
1840
- country: Joi.string().allow(""),
1841
- city: Joi.string().allow(""),
1842
- });
1843
- }
1844
-
1845
- /** @returns {OrderingStore} */
1846
- static OrderingStore() {
1847
- return Joi.object({
1848
- address: ConfigurationApplicationModel.OptedStoreAddress(),
1849
- _id: Joi.string().allow(""),
1850
- uid: Joi.number(),
1851
- name: Joi.string().allow(""),
1852
- display_name: Joi.string().allow(""),
1853
- store_type: Joi.string().allow(""),
1854
- store_code: Joi.string().allow(""),
1855
- pincode: Joi.number(),
1856
- code: Joi.string().allow(""),
1857
- });
1858
- }
1859
-
1860
- /** @returns {OrderingStores} */
1861
- static OrderingStores() {
1862
- return Joi.object({
1863
- page: ConfigurationApplicationModel.Page(),
1864
- items: Joi.array().items(ConfigurationApplicationModel.OrderingStore()),
1865
- deployed_stores: Joi.array().items(Joi.number()),
1866
- all_stores: Joi.boolean(),
1867
- enabled: Joi.boolean(),
1868
- type: Joi.string().allow(""),
1869
- _id: Joi.string().allow(""),
1870
- app: Joi.string().allow(""),
1871
- __v: Joi.number(),
1872
- });
1873
- }
1874
- }
1875
- module.exports = ConfigurationApplicationModel;