@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1

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 (298) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
  198. package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
  253. package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
  254. package/sdk/platform/User/UserPlatformModel.js +204 -65
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -1,31 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
- /**
4
- * @typedef CurrencyExchangeResponseV2
5
- * @property {string} base - The 3-letter ISO 4217 code representing the base currency.
6
- * @property {string} base_currency_name - The name of the base currency.
7
- * @property {number} ttl_seconds - Time in seconds for which the exchange rates
8
- * are valid.
9
- * @property {CurrencyExchangeItem[]} items - List of exchange rates and currency details.
10
- * @property {number} total - Total number of currency exchange items.
11
- */
12
-
13
- /**
14
- * @typedef CurrencyExchangeItem
15
- * @property {string} currency_code - 3-letter ISO 4217 exchange currency code.
16
- * @property {string} name - Name of the exchange currency
17
- * @property {number} rate - Exchange rate of the currency with respect to the
18
- * base currency.
19
- * @property {string} country_code - ISO 3166 country code.
20
- * @property {string} country_name - Name of the country using this currency.
21
- * @property {string} subunit - The name of the subunit for the currency.
22
- * @property {number} decimal_digits - Number of decimal digits the currency supports.
23
- * @property {string} symbol - The symbol of the currency.
24
- */
25
-
26
3
  /**
27
4
  * @typedef ApplicationInventory
28
- * @property {SearchConfig} [search]
29
5
  * @property {AppInventoryConfig} [inventory]
30
6
  * @property {AuthenticationConfig} [authentication]
31
7
  * @property {ArticleAssignmentConfig} [article_assignment]
@@ -61,22 +37,13 @@ const Joi = require("joi");
61
37
  */
62
38
 
63
39
  /**
64
- * @typedef FstIdentification
65
- * @property {boolean} [enabled] - Indicates whether FST identification is
66
- * enabled for the application.
67
- */
68
-
69
- /**
70
- * @typedef QuerySuggestions
71
- * @property {boolean} [enabled] - Indicates whether query suggestions are enabled.
72
- * @property {number} [max_limit] - Specifies the maximum number of query
73
- * suggestions that can be returned.
40
+ * @typedef OwnerAppInventoryConfig
41
+ * @property {PricingStrategy} [pricing_strategy]
74
42
  */
75
43
 
76
44
  /**
77
- * @typedef SearchConfig
78
- * @property {FstIdentification} [fst_identification]
79
- * @property {QuerySuggestions} [query_suggestions]
45
+ * @typedef OwnerAppConfig
46
+ * @property {OwnerAppInventoryConfig} [inventory]
80
47
  */
81
48
 
82
49
  /**
@@ -86,15 +53,16 @@ const Joi = require("joi");
86
53
  * @property {InventoryCategory} [category]
87
54
  * @property {InventoryPrice} [price]
88
55
  * @property {InventoryDiscount} [discount]
56
+ * @property {PricingStrategy} [pricing_strategy]
89
57
  * @property {boolean} [out_of_stock] - Indicates whether out of stock products
90
58
  * are allowed to show up on the website
91
59
  * @property {boolean} [only_verified_products] - Show only verified products
92
60
  * (the ones whose data has been verified by the admin)
93
61
  * @property {boolean} [franchise_enabled] - Allow other businesses (companies)
94
62
  * to consume the current sales channel's inventory and sell products
95
- * @property {Object[]} [exclude_category] - List of excluded brands category
63
+ * @property {number[]} [exclude_category] - List of excluded brands category
96
64
  * @property {string[]} [image]
97
- * @property {Object[]} [company_store] - List of selling locations whose
65
+ * @property {number[]} [company_store] - List of selling locations whose
98
66
  * inventory is available to the sales channel for displaying on the website
99
67
  * @property {number} [company_id]
100
68
  */
@@ -110,7 +78,7 @@ const Joi = require("joi");
110
78
  * @typedef InventoryStore
111
79
  * @property {string} [criteria] - All stores or specific (explicit) stores to
112
80
  * be shown on the website
113
- * @property {Object[]} [stores] - List of stores
81
+ * @property {number[]} [stores] - List of stores
114
82
  * @property {AppStoreRules[]} [rules] - Rules to show which brands or companies
115
83
  * products should be listed on sales channel.
116
84
  */
@@ -126,7 +94,7 @@ const Joi = require("joi");
126
94
  /**
127
95
  * @typedef InventoryCategory
128
96
  * @property {string} [criteria]
129
- * @property {Object[]} [categories] - List of categories whose products will be
97
+ * @property {number[]} [categories] - List of categories whose products will be
130
98
  * shown on the website
131
99
  */
132
100
 
@@ -165,7 +133,7 @@ const Joi = require("joi");
165
133
  * @typedef StorePriority
166
134
  * @property {boolean} [enabled] - Shows store priority is enabled or disabled
167
135
  * for assignment of article
168
- * @property {Object[]} [storetype_order] - List of store types for article
136
+ * @property {number[]} [storetype_order] - List of store types for article
169
137
  * assignment e.g. warehouse, mall, highstreet
170
138
  */
171
139
 
@@ -288,7 +256,6 @@ const Joi = require("joi");
288
256
 
289
257
  /**
290
258
  * @typedef AppInventoryPartialUpdate
291
- * @property {SearchConfig} [search]
292
259
  * @property {RewardPointsConfig} [reward_points]
293
260
  * @property {AppCartConfig} [cart]
294
261
  * @property {AppPaymentConfig} [payment]
@@ -305,19 +272,19 @@ const Joi = require("joi");
305
272
  */
306
273
 
307
274
  /**
308
- * @typedef CompanyByBrandsRequestSchema
275
+ * @typedef CompanyByBrandsRequest
309
276
  * @property {number} brands - Brand UID
310
277
  * @property {string} [search_text] - A search field for finding a company by its name
311
278
  */
312
279
 
313
280
  /**
314
- * @typedef CompanyByBrandsResponseSchema
281
+ * @typedef CompanyByBrandsResponse
315
282
  * @property {BrandCompanyInfo[]} [items]
316
283
  * @property {Page} [page]
317
284
  */
318
285
 
319
286
  /**
320
- * @typedef StoreByBrandsRequestSchema
287
+ * @typedef StoreByBrandsRequest
321
288
  * @property {number} [company_id] - Current company ID for current company
322
289
  * stores only. Don't send in case cross-selling (franchise) is enabled.
323
290
  * @property {number} brands - Brand UID
@@ -325,7 +292,7 @@ const Joi = require("joi");
325
292
  */
326
293
 
327
294
  /**
328
- * @typedef StoreByBrandsResponseSchema
295
+ * @typedef StoreByBrandsResponse
329
296
  * @property {BrandStoreInfo[]} [items]
330
297
  * @property {Page} [page]
331
298
  */
@@ -353,18 +320,21 @@ const Joi = require("joi");
353
320
  */
354
321
 
355
322
  /**
356
- * @typedef BrandsByCompanyResponseSchema
323
+ * @typedef BrandsByCompanyResponse
357
324
  * @property {CompanyBrandInfo[]} [brands]
358
325
  */
359
326
 
360
327
  /**
361
- * @typedef ValidationFailedResponseSchema
328
+ * @typedef ValidationFailedResponse
362
329
  * @property {string} [message] - Response message for failed validation
330
+ * @property {Object[]} [errors] - Response message for failed validation
363
331
  */
364
332
 
365
333
  /**
366
334
  * @typedef NotFound
367
335
  * @property {string} [message] - Response message for not found
336
+ * @property {string} [error] - Error message for not found
337
+ * @property {string} [code] - Unique code for each error
368
338
  * @property {boolean} [success] - Flag for required not successfull.
369
339
  */
370
340
 
@@ -390,20 +360,20 @@ const Joi = require("joi");
390
360
  */
391
361
 
392
362
  /**
393
- * @typedef CreateApplicationRequestSchema
363
+ * @typedef CreateApplicationRequest
394
364
  * @property {App} [app]
395
365
  * @property {ApplicationInventory} [configuration]
396
366
  * @property {AppDomain} [domain]
397
367
  */
398
368
 
399
369
  /**
400
- * @typedef CreateAppResponseSchema
370
+ * @typedef CreateAppResponse
401
371
  * @property {Application} [app]
402
372
  * @property {ApplicationInventory} [configuration]
403
373
  */
404
374
 
405
375
  /**
406
- * @typedef ApplicationsResponseSchema
376
+ * @typedef ApplicationsResponse
407
377
  * @property {Application[]} [items]
408
378
  * @property {Page} [page]
409
379
  */
@@ -441,7 +411,7 @@ const Joi = require("joi");
441
411
  */
442
412
 
443
413
  /**
444
- * @typedef MobileAppConfigRequestSchema
414
+ * @typedef MobileAppConfigRequest
445
415
  * @property {string} [app_name] - Name of the mobile app
446
416
  * @property {LandingImage} [landing_image]
447
417
  * @property {SplashImage} [splash_image]
@@ -513,7 +483,7 @@ const Joi = require("joi");
513
483
  */
514
484
 
515
485
  /**
516
- * @typedef DomainAddRequestSchema
486
+ * @typedef DomainAddRequest
517
487
  * @property {DomainAdd} [domain]
518
488
  */
519
489
 
@@ -532,7 +502,7 @@ const Joi = require("joi");
532
502
  */
533
503
 
534
504
  /**
535
- * @typedef DomainsResponseSchema
505
+ * @typedef DomainsResponse
536
506
  * @property {Domain[]} [domains]
537
507
  */
538
508
 
@@ -550,14 +520,14 @@ const Joi = require("joi");
550
520
  */
551
521
 
552
522
  /**
553
- * @typedef UpdateDomainTypeRequestSchema
523
+ * @typedef UpdateDomainTypeRequest
554
524
  * @property {UpdateDomain} [domain]
555
525
  * @property {string} [action] - Shows domain is made primary domain for the
556
526
  * sales channel or shorlink is created for the sales channel domain
557
527
  */
558
528
 
559
529
  /**
560
- * @typedef DomainStatusRequestSchema
530
+ * @typedef DomainStatusRequest
561
531
  * @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
562
532
  */
563
533
 
@@ -569,17 +539,15 @@ const Joi = require("joi");
569
539
  */
570
540
 
571
541
  /**
572
- * @typedef DomainStatusResponseSchema
542
+ * @typedef DomainStatusResponse
573
543
  * @property {boolean} [connected] - Check if domain is live and mapped to
574
544
  * appropriate IP of Fynd Servers
575
545
  * @property {DomainStatus[]} [status]
576
546
  */
577
547
 
578
548
  /**
579
- * @typedef DomainSuggestionsRequestSchema
549
+ * @typedef DomainSuggestionsRequest
580
550
  * @property {string} [domain_url] - Domain url
581
- * @property {boolean} [custom_domain] - Get suggestions for custom domains or
582
- * Fynd domains
583
551
  */
584
552
 
585
553
  /**
@@ -594,16 +562,205 @@ const Joi = require("joi");
594
562
  */
595
563
 
596
564
  /**
597
- * @typedef DomainSuggestionsResponseSchema
565
+ * @typedef DomainSuggestionsResponse
598
566
  * @property {DomainSuggestion[]} [domains] - Domain URL
599
567
  */
600
568
 
601
569
  /**
602
- * @typedef SuccessMessageResponseSchema
570
+ * @typedef SuccessMessageResponse
603
571
  * @property {boolean} [success] - Shows whether domain was deleted successfully
604
572
  * @property {string} [message] - Success message shown to the user (in a string format)
605
573
  */
606
574
 
575
+ /**
576
+ * @typedef GetIntegrationsOptInsResponse
577
+ * @property {IntegrationOptIn[]} [items]
578
+ * @property {Page} [page]
579
+ */
580
+
581
+ /**
582
+ * @typedef IntegrationOptIn
583
+ * @property {Validators} [validators]
584
+ * @property {string} [description] - Basic description about the opted integration
585
+ * @property {string} [description_html] - Basic HTML description about the
586
+ * opted integration
587
+ * @property {string} [constants]
588
+ * @property {string[]} [companies]
589
+ * @property {string[]} [support]
590
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
591
+ * of the opted integration
592
+ * @property {string} [name] - Nmae of the opted integration, e.g. SAP RBL Integration
593
+ * @property {string} [slug] - Slug of the opted integration, e.g. ginesys
594
+ * @property {boolean} [hidden]
595
+ * @property {IntegrationMeta[]} [meta]
596
+ * @property {string} [icon] - Hosted URL of the icon image
597
+ * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
598
+ * of the user who created the integration
599
+ * @property {string} [created_at] - ISO 8601 timestamp of integration creation
600
+ * @property {string} [modified_at] - ISO 8601 timestamp of integration updation
601
+ * @property {string} [token] - Randomly generated fixed-length string for opted
602
+ * integration. It is auto-generated. It would never change once it is generated.
603
+ * @property {string} [secret] - Randomly generated fixed-length string for
604
+ * opted integration. It is auto-generated. It would never change once it is generated.
605
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
606
+ */
607
+
608
+ /**
609
+ * @typedef Validators
610
+ * @property {CompanyValidator} [company]
611
+ * @property {StoreValidator} [store]
612
+ * @property {InventoryValidator} [inventory]
613
+ * @property {OrderValidator} [order]
614
+ */
615
+
616
+ /**
617
+ * @typedef CompanyValidator
618
+ * @property {JsonSchema[]} [json_schema]
619
+ * @property {string} [browser_script] - Browser script for the company validator
620
+ */
621
+
622
+ /**
623
+ * @typedef JsonSchema
624
+ * @property {string} [display] - Display text of the validator JSON schema. It
625
+ * will show in the UI.
626
+ * @property {string} [key] - Key related to the display text of the validator JSON schema
627
+ * @property {string} [type] - Indicates the type of form field, e.g. Text, Dropdown.
628
+ * @property {string} [tooltip] - Tooltip text for the UI of the validator JSON
629
+ * schema. It will show in the UI.
630
+ */
631
+
632
+ /**
633
+ * @typedef StoreValidator
634
+ * @property {JsonSchema[]} [json_schema]
635
+ * @property {string} [browser_script] - Browser script for the store validator
636
+ */
637
+
638
+ /**
639
+ * @typedef InventoryValidator
640
+ * @property {JsonSchema[]} [json_schema]
641
+ * @property {string} [browser_script] - Browser script for the inventory validator
642
+ */
643
+
644
+ /**
645
+ * @typedef OrderValidator
646
+ * @property {JsonSchema[]} [json_schema]
647
+ * @property {string} [browser_script] - Browser script for the order validator
648
+ */
649
+
650
+ /**
651
+ * @typedef IntegrationMeta
652
+ * @property {boolean} [is_public]
653
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
654
+ * of the integration meta
655
+ * @property {string} [name] - Nmae of integration meta, e.g. price_level
656
+ * @property {string} [value] - Value related to integration meta name, e.g. store
657
+ */
658
+
659
+ /**
660
+ * @typedef Integration
661
+ * @property {Validators} [validators]
662
+ * @property {string} [description] - Basic description about the integration
663
+ * @property {string} [description_html] - Basic HTML description about the integration
664
+ * @property {Object} [constants]
665
+ * @property {string[]} [companies]
666
+ * @property {string[]} [support]
667
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
668
+ * of the integration
669
+ * @property {string} [name] - Name of the integration, e.g. SAP RBL Integration
670
+ * @property {string} [slug] - Name of the integration, e.g. SAP RBL Integration
671
+ * @property {IntegrationMeta[]} [meta]
672
+ * @property {string} [icon] - Hosted URL of the icon image
673
+ * @property {boolean} [hidden]
674
+ * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
675
+ * of the user who created the integration
676
+ * @property {string} [created_at] - ISO 8601 timestamp of integration creation
677
+ * @property {string} [modified_at] - ISO 8601 timestamp of integration updation
678
+ * @property {string} [token] - Randomly generated fixed-length string for opted
679
+ * integration. It is auto-generated. It would never change once it is generated.
680
+ * @property {string} [secret] - Randomly generated fixed-length string for
681
+ * opted integration. It is auto-generated. It would never change once it is generated.
682
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
683
+ */
684
+
685
+ /**
686
+ * @typedef IntegrationConfigResponse
687
+ * @property {IntegrationLevel[]} [items]
688
+ */
689
+
690
+ /**
691
+ * @typedef IntegrationLevel
692
+ * @property {boolean} [opted] - Shows this integration is opted or not opted
693
+ * for the current company
694
+ * @property {Object[]} [permissions]
695
+ * @property {LastPatch[]} [last_patch]
696
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
697
+ * of the integration config
698
+ * @property {string} [integration] - Integration id. Shows which integration
699
+ * you are enabling.
700
+ * @property {string} [level] - Shows for what level the integration is set up.
701
+ * It can be company level or store level.
702
+ * @property {number} [uid] - It can be store uid or company uid. Depends on the
703
+ * level of integration.
704
+ * @property {number} [company_id] - Unique id of company.
705
+ * @property {IntegrationMeta[]} [meta]
706
+ * @property {string} [token] - Randomly generated fixed-length string for opted
707
+ * integration. It is auto-generated. It would never change once it is generated.
708
+ * @property {string} [created_at] - ISO 8601 timestamp of integration config creation
709
+ * @property {string} [modified_at] - ISO 8601 timestamp of integration config updation
710
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
711
+ * @property {Object} [data] - Schema data of the integration stored in key-value pairs
712
+ * @property {boolean} [success]
713
+ * @property {string} [message]
714
+ */
715
+
716
+ /**
717
+ * @typedef UpdateIntegrationLevelRequest
718
+ * @property {IntegrationLevel[]} [items]
719
+ */
720
+
721
+ /**
722
+ * @typedef OptedStoreIntegration
723
+ * @property {boolean} [other_opted] - Allow user to opt same store in other integration
724
+ * @property {IntegrationOptIn} [other_integration]
725
+ * @property {OtherEntity} [other_entity]
726
+ */
727
+
728
+ /**
729
+ * @typedef OtherEntity
730
+ * @property {boolean} [opted] - Allow other entity opted in integration
731
+ * @property {string[]} [permissions]
732
+ * @property {LastPatch[]} [last_patch]
733
+ * @property {string} [_id] - The unique identifier of the other entity for
734
+ * opted store integration
735
+ * @property {string} [integration] - Integration ID. Shows which integration
736
+ * you are enabling.
737
+ * @property {string} [level] - Indicates integration level. It can be company
738
+ * level or store level.
739
+ * @property {number} [uid] - It can be store uid or company uid. Depends on the
740
+ * level of integration.
741
+ * @property {OtherEntityData} [data]
742
+ * @property {Object[]} [meta]
743
+ * @property {string} [token] - Randomly generated fixed-length string for opted
744
+ * integration. It is auto-generated. It would never change once it is generated.
745
+ * @property {string} [created_at] - ISO 8601 timestamp of other entity creation
746
+ * for opted store integration
747
+ * @property {string} [modified_at] - ISO 8601 timestamp of other entity
748
+ * updation for opted store integration
749
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
750
+ */
751
+
752
+ /**
753
+ * @typedef LastPatch
754
+ * @property {string} [op]
755
+ * @property {string} [path]
756
+ * @property {string} [value] - It can be inventory level or order level
757
+ */
758
+
759
+ /**
760
+ * @typedef OtherEntityData
761
+ * @property {string} [article_identifier]
762
+ */
763
+
607
764
  /**
608
765
  * @typedef App
609
766
  * @property {string} [company_id] - Numeric ID allotted to a business account
@@ -615,13 +772,34 @@ const Joi = require("joi");
615
772
  * @property {string} [desc] - Detailed description about the sales channel
616
773
  */
617
774
 
775
+ /**
776
+ * @typedef InventoryConfig
777
+ * @property {InventoryBrandRule} [brand]
778
+ * @property {InventoryStoreRule} [store]
779
+ * @property {string[]} [image]
780
+ * @property {boolean} [franchise_enabled] - Allow other businesses (companies)
781
+ * to consume the current sales channel's inventory and sell products
782
+ * @property {boolean} [out_of_stock] - Indicates whether out of stock products
783
+ * are allowed to show up on the website.
784
+ * @property {boolean} [only_verified_products] - Show only verified products
785
+ * (the ones whose data have been verified by the admin)
786
+ * @property {PricingStrategy} [pricing_strategy]
787
+ */
788
+
789
+ /**
790
+ * @typedef AppInventory
791
+ * @property {InventoryConfig} [inventory]
792
+ * @property {InventoryPaymentConfig} [payment]
793
+ * @property {InventoryArticleAssignment} [article_assignment]
794
+ */
795
+
618
796
  /**
619
797
  * @typedef AppDomain
620
798
  * @property {string} [name] - Domain URL of current sales channel, e.g. zenz.com
621
799
  */
622
800
 
623
801
  /**
624
- * @typedef CompaniesResponseSchema
802
+ * @typedef CompaniesResponse
625
803
  * @property {AppInventoryCompanies[]} [items]
626
804
  * @property {Page} [page]
627
805
  */
@@ -635,11 +813,21 @@ const Joi = require("joi");
635
813
  */
636
814
 
637
815
  /**
638
- * @typedef StoresResponseSchema
816
+ * @typedef StoresResponse
639
817
  * @property {AppInventoryStores[]} [items]
640
818
  * @property {Page} [page]
641
819
  */
642
820
 
821
+ /**
822
+ * @typedef ListStoreResponse
823
+ * @property {AppInventoryStores[]} [stores]
824
+ */
825
+
826
+ /**
827
+ * @typedef ArrayStoreResponse
828
+ * @property {AppInventoryStores[]} [data]
829
+ */
830
+
643
831
  /**
644
832
  * @typedef AppInventoryStores
645
833
  * @property {string} [_id] - The unique identifier of the store (24-digit Mongo
@@ -662,7 +850,7 @@ const Joi = require("joi");
662
850
  */
663
851
 
664
852
  /**
665
- * @typedef FilterOrderingStoreRequestSchema
853
+ * @typedef FilterOrderingStoreRequest
666
854
  * @property {boolean} [all_stores] - Allow all stores from the ordering stores
667
855
  * @property {number[]} [deployed_stores]
668
856
  * @property {string} [q] - Store code or name of the ordering store
@@ -689,7 +877,7 @@ const Joi = require("joi");
689
877
  */
690
878
 
691
879
  /**
692
- * @typedef OrderingStoreSelectRequestSchema
880
+ * @typedef OrderingStoreSelectRequest
693
881
  * @property {OrderingStoreSelect} ordering_store
694
882
  */
695
883
 
@@ -723,7 +911,7 @@ const Joi = require("joi");
723
911
  */
724
912
 
725
913
  /**
726
- * @typedef OptedApplicationResponseSchema
914
+ * @typedef OptedApplicationResponse
727
915
  * @property {string} [name] - Name of the other seller's sales channel
728
916
  * @property {string} [description] - Basic details about the other seller's sales channel
729
917
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -780,7 +968,7 @@ const Joi = require("joi");
780
968
  */
781
969
 
782
970
  /**
783
- * @typedef TokenResponseSchema
971
+ * @typedef TokenResponse
784
972
  * @property {Tokens} [tokens]
785
973
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
786
974
  * of the token
@@ -921,7 +1109,6 @@ const Joi = require("joi");
921
1109
 
922
1110
  /**
923
1111
  * @typedef GoogleMap
924
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
925
1112
  * @property {GoogleMapCredentials} [credentials]
926
1113
  */
927
1114
 
@@ -1003,6 +1190,7 @@ const Joi = require("joi");
1003
1190
  * @property {QrFeature} [qr]
1004
1191
  * @property {PcrFeature} [pcr]
1005
1192
  * @property {OrderFeature} [order]
1193
+ * @property {BuyboxFeature} [buybox]
1006
1194
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
1007
1195
  * for the sales channel features
1008
1196
  * @property {string} [app] - Application ID of the sales channel
@@ -1011,6 +1199,7 @@ const Joi = require("joi");
1011
1199
  * @property {string} [modified_at] - ISO 8601 timestamp of last known
1012
1200
  * modifications to the sales channel feature configuration
1013
1201
  * @property {number} [__v] - Version key for tracking revisions. Default value is zero
1202
+ * @property {PricingStrategy} [pricing_strategy]
1014
1203
  */
1015
1204
 
1016
1205
  /**
@@ -1122,12 +1311,23 @@ const Joi = require("joi");
1122
1311
  */
1123
1312
 
1124
1313
  /**
1125
- * @typedef AppFeatureRequestSchema
1314
+ * @typedef BuyboxFeature
1315
+ * @property {boolean} [show_name] - Allow users to see seller/stores name on
1316
+ * PDP (product detail page).
1317
+ * @property {boolean} [enable_selection] - Allow selection of sellers/stores on
1318
+ * PDP (product detail page).
1319
+ * @property {boolean} [is_seller_buybox_enabled] - Toggle buybox listing
1320
+ * between sellers and stores. True indicates seller listing, while False
1321
+ * indicates store listing.
1322
+ */
1323
+
1324
+ /**
1325
+ * @typedef AppFeatureRequest
1126
1326
  * @property {AppFeature} [feature]
1127
1327
  */
1128
1328
 
1129
1329
  /**
1130
- * @typedef AppFeatureResponseSchema
1330
+ * @typedef AppFeatureResponse
1131
1331
  * @property {AppFeature} [feature]
1132
1332
  */
1133
1333
 
@@ -1231,55 +1431,6 @@ const Joi = require("joi");
1231
1431
  * @property {string} [secret]
1232
1432
  */
1233
1433
 
1234
- /**
1235
- * @typedef ApplicationById
1236
- * @property {ApplicationWebsite} [website]
1237
- * @property {ApplicationCors} [cors]
1238
- * @property {ApplicationAuth} [auth]
1239
- * @property {string} [description] - It contains detailed information about the
1240
- * sales channel.
1241
- * @property {string} [channel_type] - It indicates different types of channels,
1242
- * such as store, website, and mobile apps, with 'store' being the default value.
1243
- * @property {number} [cache_ttl] - An integer value that specifies the number
1244
- * of seconds until the key expires
1245
- * @property {boolean} [is_internal] - Indicates whether a sales channel is
1246
- * internal or not
1247
- * @property {boolean} [is_active] - Indicates sales channel is active or not active
1248
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
1249
- * of the sales channel
1250
- * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
1251
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
1252
- * of owner who owns the application
1253
- * @property {number} [company_id] - Numeric ID allotted to a business account
1254
- * where the sales channel exists
1255
- * @property {string} [token] - Random generated fix length string for sales
1256
- * channel. It is required and auto-generated.
1257
- * @property {ApplicationRedirections[]} [redirections]
1258
- * @property {ApplicationMeta[]} [meta]
1259
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
1260
- * @property {string} [modified_at] - ISO 8601 timestamp of sales channel updation
1261
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
1262
- * @property {SecureUrl} [banner]
1263
- * @property {SecureUrl} [logo]
1264
- * @property {SecureUrl} [favicon]
1265
- * @property {Domain[]} [domains]
1266
- * @property {string} [app_type] - It shows application is live or in development mode.
1267
- * @property {SecureUrl} [mobile_logo]
1268
- * @property {Domain} [domain]
1269
- * @property {string} [slug]
1270
- * @property {string} [mode]
1271
- * @property {string} [status]
1272
- * @property {TokenSchemaID[]} [tokens]
1273
- * @property {string} [secret]
1274
- */
1275
-
1276
- /**
1277
- * @typedef TokenSchemaID
1278
- * @property {string} [token]
1279
- * @property {string} [created_by]
1280
- * @property {string} [created_at] - ISO 8601 timestamp of when token created
1281
- */
1282
-
1283
1434
  /**
1284
1435
  * @typedef TokenSchema
1285
1436
  * @property {string} [token]
@@ -1288,9 +1439,63 @@ const Joi = require("joi");
1288
1439
  */
1289
1440
 
1290
1441
  /**
1291
- * @typedef InvalidPayloadRequestSchema
1442
+ * @typedef InvalidPayloadRequest
1292
1443
  * @property {string} [message] - Error message when request body payload is improper
1293
1444
  * @property {boolean} [success] - Flag for required not successfull.
1445
+ * @property {Object} [domain] - All errors related to domin
1446
+ */
1447
+
1448
+ /**
1449
+ * @typedef InventoryBrandRule
1450
+ * @property {string} [criteria] - Whether all brands are enabled, or explicitly
1451
+ * few brands in the inventory
1452
+ * @property {number[]} [brands]
1453
+ */
1454
+
1455
+ /**
1456
+ * @typedef PricingStrategy
1457
+ * @property {string} [value] - Indicates the pricing strategy value.
1458
+ */
1459
+
1460
+ /**
1461
+ * @typedef StoreCriteriaRule
1462
+ * @property {number[]} [companies] - List of company UID
1463
+ * @property {number[]} [brands] - List of brand UID
1464
+ */
1465
+
1466
+ /**
1467
+ * @typedef InventoryStoreRule
1468
+ * @property {string} [criteria] - Whether all stores are enabled, or explicitly
1469
+ * few stores in the inventory, or use brands and company filter.
1470
+ * @property {StoreCriteriaRule[]} [rules] - List of rules with company and
1471
+ * brands uids. Used when critera is `filter`.
1472
+ * @property {number[]} [stores] - List of store uids. Used when critera is `explicit`.
1473
+ */
1474
+
1475
+ /**
1476
+ * @typedef InventoryPaymentConfig
1477
+ * @property {string} [mode_of_payment] - Mode of payment for the inventory of
1478
+ * sales channel. It is required and default value is null.
1479
+ * @property {string} [source] - Source of the payment mode for the inventory
1480
+ * payment of sales channel. Default value is FYND.
1481
+ */
1482
+
1483
+ /**
1484
+ * @typedef StorePriorityRule
1485
+ * @property {boolean} [enabled] - Shows store priority is enabled or not
1486
+ * enabled for the article assignment.
1487
+ * @property {string[]} [storetype_order]
1488
+ */
1489
+
1490
+ /**
1491
+ * @typedef ArticleAssignmentRule
1492
+ * @property {StorePriorityRule} [store_priority]
1493
+ */
1494
+
1495
+ /**
1496
+ * @typedef InventoryArticleAssignment
1497
+ * @property {boolean} [post_order_reassignment] - Allow post order reassigment of article
1498
+ * @property {ArticleAssignmentRule} [rules]
1294
1499
  */
1295
1500
 
1296
1501
  /**
@@ -1302,6 +1507,7 @@ const Joi = require("joi");
1302
1507
  * @property {number} [current] - The current page number.
1303
1508
  * @property {string} type - The type of the page, such as 'PageType'.
1304
1509
  * @property {number} [size] - The number of items per page.
1510
+ * @property {number} [total] - Total number of items.
1305
1511
  */
1306
1512
 
1307
1513
  /**
@@ -1476,12 +1682,12 @@ const Joi = require("joi");
1476
1682
  */
1477
1683
 
1478
1684
  /**
1479
- * @typedef CurrenciesResponseSchema
1685
+ * @typedef CurrenciesResponse
1480
1686
  * @property {Currency[]} [items]
1481
1687
  */
1482
1688
 
1483
1689
  /**
1484
- * @typedef AppCurrencyResponseSchema
1690
+ * @typedef AppCurrencyResponse
1485
1691
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
1486
1692
  * of the currency configuration supported by the application
1487
1693
  * @property {string} [application] - Alphanumeric ID allotted to an application
@@ -1506,7 +1712,7 @@ const Joi = require("joi");
1506
1712
  * @property {string} [address1] - Address of the opted store
1507
1713
  * @property {StoreLatLong} [lat_long]
1508
1714
  * @property {string} [address2] - Address of the opted store
1509
- * @property {number} [pincode] - 6-digit PIN code of the opted store location
1715
+ * @property {string} [pincode] - 6-digit PIN code of the opted store location
1510
1716
  * @property {string} [country] - Country of the opted store, e.g. India
1511
1717
  * @property {string} [city] - City of the opted store, e.g. Mumbai
1512
1718
  * @property {string} [sector] - Sector for the opted store.
@@ -1525,7 +1731,7 @@ const Joi = require("joi");
1525
1731
  * @property {string} [store_type] - Store type of the ordering store, e.g.
1526
1732
  * high_street, mall, warehouse
1527
1733
  * @property {string} [store_code] - Store code of the ordering store, e.g. MUM-102
1528
- * @property {number} [pincode] - 6-digit PIN Code of the ordering store, e.g. 400001
1734
+ * @property {string} [pincode] - 6-digit PIN Code of the ordering store, e.g. 400001
1529
1735
  * @property {string} [code] - Code of the ordering store (usually same as Store Code)
1530
1736
  */
1531
1737
 
@@ -1547,54 +1753,139 @@ const Joi = require("joi");
1547
1753
  */
1548
1754
 
1549
1755
  /**
1550
- * @typedef OrderingStoresResponseSchema
1756
+ * @typedef UpdateDiealog
1757
+ * @property {string} type
1758
+ * @property {number} [interval]
1759
+ */
1760
+
1761
+ /**
1762
+ * @typedef PlatformVersionRequest
1763
+ * @property {string} app_code_name
1764
+ * @property {string} app_name
1765
+ * @property {string} force_version
1766
+ * @property {string} latest_version
1767
+ * @property {boolean} is_app_blocked
1768
+ * @property {UpdateDiealog} update_dialog
1769
+ */
1770
+
1771
+ /**
1772
+ * @typedef PlatformVersion
1773
+ * @property {string} app_code_name
1774
+ * @property {string} app_name
1775
+ * @property {string} force_version
1776
+ * @property {string} latest_version
1777
+ * @property {boolean} is_app_blocked
1778
+ * @property {UpdateDiealog} update_dialog
1779
+ * @property {string} [_id]
1780
+ * @property {string} [modified_at] - ISO 8601 timestamp when currency was added
1781
+ * in the list of currencies supported by the sales channel
1782
+ * @property {string} [created_at] - ISO 8601 timestamp when currency was added
1783
+ * in the list of currencies supported by the sales channel
1784
+ * @property {number} [__v]
1785
+ */
1786
+
1787
+ /**
1788
+ * @typedef OrderingStoresResponse
1551
1789
  * @property {Page} [page]
1552
1790
  * @property {OrderingStore[]} [items]
1553
1791
  */
1554
1792
 
1555
1793
  /**
1556
- * @typedef ValidationErrors
1557
- * @property {ValidationError[]} errors
1794
+ * @typedef LocationDefaultLanguage
1795
+ * @property {string} [name]
1796
+ * @property {string} [code]
1558
1797
  */
1559
1798
 
1560
1799
  /**
1561
- * @typedef ValidationError
1562
- * @property {string} message - A brief description of the error encountered.
1563
- * @property {string} field - The field in the request that caused the error.
1800
+ * @typedef LocationDefaultCurrency
1801
+ * @property {string} [name]
1802
+ * @property {string} [symbol]
1803
+ * @property {string} [code]
1564
1804
  */
1565
1805
 
1566
- class ConfigurationPlatformModel {
1567
- /** @returns {CurrencyExchangeResponseV2} */
1568
- static CurrencyExchangeResponseV2() {
1569
- return Joi.object({
1570
- base: Joi.string().allow("").required(),
1571
- base_currency_name: Joi.string().allow("").required(),
1572
- ttl_seconds: Joi.number().required(),
1573
- items: Joi.array()
1574
- .items(ConfigurationPlatformModel.CurrencyExchangeItem())
1575
- .required(),
1576
- total: Joi.number().required(),
1577
- });
1578
- }
1806
+ /**
1807
+ * @typedef LocationCountry
1808
+ * @property {string} [capital]
1809
+ * @property {string} [currency]
1810
+ * @property {string} [iso2]
1811
+ * @property {string} [iso3]
1812
+ * @property {string} [name]
1813
+ * @property {string} [parent]
1814
+ * @property {string} [phone_code]
1815
+ * @property {string} [type]
1816
+ * @property {number} [uid]
1817
+ * @property {number} [__v]
1818
+ * @property {string} [_id]
1819
+ * @property {LocationDefaultCurrency} [default_currency]
1820
+ * @property {LocationDefaultLanguage} [default_language]
1821
+ * @property {string} [state_code]
1822
+ * @property {string} [country_code]
1823
+ * @property {string} [latitude]
1824
+ * @property {string} [longitude]
1825
+ */
1579
1826
 
1580
- /** @returns {CurrencyExchangeItem} */
1581
- static CurrencyExchangeItem() {
1582
- return Joi.object({
1583
- currency_code: Joi.string().allow("").required(),
1584
- name: Joi.string().allow("").required(),
1585
- rate: Joi.number().required(),
1586
- country_code: Joi.string().allow("").required(),
1587
- country_name: Joi.string().allow("").required(),
1588
- subunit: Joi.string().allow("").required(),
1589
- decimal_digits: Joi.number().required(),
1590
- symbol: Joi.string().allow("").required(),
1591
- });
1592
- }
1827
+ /**
1828
+ * @typedef Locations
1829
+ * @property {LocationCountry[]} [items]
1830
+ */
1831
+
1832
+ /**
1833
+ * @typedef UrlRedirectionResponse
1834
+ * @property {UrlRedirection[]} [redirections]
1835
+ */
1836
+
1837
+ /**
1838
+ * @typedef UrlRedirectionRequest
1839
+ * @property {UrlRedirection} [redirection]
1840
+ */
1841
+
1842
+ /**
1843
+ * @typedef UrlRedirection
1844
+ * @property {string} [redirect_from]
1845
+ * @property {string} [redirect_to]
1846
+ * @property {string} [type]
1847
+ * @property {string} [_id]
1848
+ */
1849
+
1850
+ /**
1851
+ * @typedef StoreForConfigurationRequest
1852
+ * @property {AppStoreRules[]} [conf]
1853
+ */
1854
+
1855
+ /**
1856
+ * @typedef DomainOptionsResponse
1857
+ * @property {DomainType[]} [domain_types]
1858
+ * @property {string[]} [network_ips]
1859
+ * @property {string[]} [network_cnames]
1860
+ */
1861
+
1862
+ /**
1863
+ * @typedef DomainType
1864
+ * @property {string} [key]
1865
+ * @property {string} [display]
1866
+ * @property {DomainValue[]} [values]
1867
+ */
1868
+
1869
+ /**
1870
+ * @typedef DomainValue
1871
+ * @property {string} [value]
1872
+ * @property {string} [text]
1873
+ */
1874
+
1875
+ /**
1876
+ * @typedef StoreRequest
1877
+ * @property {number[]} [companies]
1878
+ */
1593
1879
 
1880
+ /**
1881
+ * @typedef StoreResponse
1882
+ * @property {number[]} [data]
1883
+ */
1884
+
1885
+ class ConfigurationPlatformModel {
1594
1886
  /** @returns {ApplicationInventory} */
1595
1887
  static ApplicationInventory() {
1596
1888
  return Joi.object({
1597
- search: ConfigurationPlatformModel.SearchConfig(),
1598
1889
  inventory: ConfigurationPlatformModel.AppInventoryConfig(),
1599
1890
  authentication: ConfigurationPlatformModel.AuthenticationConfig(),
1600
1891
  article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
@@ -1626,26 +1917,17 @@ class ConfigurationPlatformModel {
1626
1917
  });
1627
1918
  }
1628
1919
 
1629
- /** @returns {FstIdentification} */
1630
- static FstIdentification() {
1920
+ /** @returns {OwnerAppInventoryConfig} */
1921
+ static OwnerAppInventoryConfig() {
1631
1922
  return Joi.object({
1632
- enabled: Joi.boolean(),
1633
- });
1634
- }
1635
-
1636
- /** @returns {QuerySuggestions} */
1637
- static QuerySuggestions() {
1638
- return Joi.object({
1639
- enabled: Joi.boolean(),
1640
- max_limit: Joi.number(),
1923
+ pricing_strategy: ConfigurationPlatformModel.PricingStrategy(),
1641
1924
  });
1642
1925
  }
1643
1926
 
1644
- /** @returns {SearchConfig} */
1645
- static SearchConfig() {
1927
+ /** @returns {OwnerAppConfig} */
1928
+ static OwnerAppConfig() {
1646
1929
  return Joi.object({
1647
- fst_identification: ConfigurationPlatformModel.FstIdentification(),
1648
- query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
1930
+ inventory: ConfigurationPlatformModel.OwnerAppInventoryConfig(),
1649
1931
  });
1650
1932
  }
1651
1933
 
@@ -1657,12 +1939,13 @@ class ConfigurationPlatformModel {
1657
1939
  category: ConfigurationPlatformModel.InventoryCategory(),
1658
1940
  price: ConfigurationPlatformModel.InventoryPrice(),
1659
1941
  discount: ConfigurationPlatformModel.InventoryDiscount(),
1942
+ pricing_strategy: ConfigurationPlatformModel.PricingStrategy(),
1660
1943
  out_of_stock: Joi.boolean(),
1661
1944
  only_verified_products: Joi.boolean(),
1662
1945
  franchise_enabled: Joi.boolean(),
1663
- exclude_category: Joi.array().items(Joi.any()),
1946
+ exclude_category: Joi.array().items(Joi.number()),
1664
1947
  image: Joi.array().items(Joi.string().allow("")),
1665
- company_store: Joi.array().items(Joi.any()),
1948
+ company_store: Joi.array().items(Joi.number()),
1666
1949
  company_id: Joi.number(),
1667
1950
  });
1668
1951
  }
@@ -1679,7 +1962,7 @@ class ConfigurationPlatformModel {
1679
1962
  static InventoryStore() {
1680
1963
  return Joi.object({
1681
1964
  criteria: Joi.string().allow(""),
1682
- stores: Joi.array().items(Joi.any()),
1965
+ stores: Joi.array().items(Joi.number()),
1683
1966
  rules: Joi.array().items(ConfigurationPlatformModel.AppStoreRules()),
1684
1967
  });
1685
1968
  }
@@ -1696,7 +1979,7 @@ class ConfigurationPlatformModel {
1696
1979
  static InventoryCategory() {
1697
1980
  return Joi.object({
1698
1981
  criteria: Joi.string().allow(""),
1699
- categories: Joi.array().items(Joi.any()),
1982
+ categories: Joi.array().items(Joi.number()),
1700
1983
  });
1701
1984
  }
1702
1985
 
@@ -1744,7 +2027,7 @@ class ConfigurationPlatformModel {
1744
2027
  static StorePriority() {
1745
2028
  return Joi.object({
1746
2029
  enabled: Joi.boolean(),
1747
- storetype_order: Joi.array().items(Joi.any()),
2030
+ storetype_order: Joi.array().items(Joi.number()),
1748
2031
  });
1749
2032
  }
1750
2033
 
@@ -1881,7 +2164,6 @@ class ConfigurationPlatformModel {
1881
2164
  /** @returns {AppInventoryPartialUpdate} */
1882
2165
  static AppInventoryPartialUpdate() {
1883
2166
  return Joi.object({
1884
- search: ConfigurationPlatformModel.SearchConfig(),
1885
2167
  reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
1886
2168
  cart: ConfigurationPlatformModel.AppCartConfig(),
1887
2169
  payment: ConfigurationPlatformModel.AppPaymentConfig(),
@@ -1899,24 +2181,24 @@ class ConfigurationPlatformModel {
1899
2181
  });
1900
2182
  }
1901
2183
 
1902
- /** @returns {CompanyByBrandsRequestSchema} */
1903
- static CompanyByBrandsRequestSchema() {
2184
+ /** @returns {CompanyByBrandsRequest} */
2185
+ static CompanyByBrandsRequest() {
1904
2186
  return Joi.object({
1905
2187
  brands: Joi.number().required(),
1906
2188
  search_text: Joi.string().allow(""),
1907
2189
  });
1908
2190
  }
1909
2191
 
1910
- /** @returns {CompanyByBrandsResponseSchema} */
1911
- static CompanyByBrandsResponseSchema() {
2192
+ /** @returns {CompanyByBrandsResponse} */
2193
+ static CompanyByBrandsResponse() {
1912
2194
  return Joi.object({
1913
2195
  items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
1914
2196
  page: ConfigurationPlatformModel.Page(),
1915
2197
  });
1916
2198
  }
1917
2199
 
1918
- /** @returns {StoreByBrandsRequestSchema} */
1919
- static StoreByBrandsRequestSchema() {
2200
+ /** @returns {StoreByBrandsRequest} */
2201
+ static StoreByBrandsRequest() {
1920
2202
  return Joi.object({
1921
2203
  company_id: Joi.number(),
1922
2204
  brands: Joi.number().required(),
@@ -1924,8 +2206,8 @@ class ConfigurationPlatformModel {
1924
2206
  });
1925
2207
  }
1926
2208
 
1927
- /** @returns {StoreByBrandsResponseSchema} */
1928
- static StoreByBrandsResponseSchema() {
2209
+ /** @returns {StoreByBrandsResponse} */
2210
+ static StoreByBrandsResponse() {
1929
2211
  return Joi.object({
1930
2212
  items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
1931
2213
  page: ConfigurationPlatformModel.Page(),
@@ -1955,17 +2237,18 @@ class ConfigurationPlatformModel {
1955
2237
  });
1956
2238
  }
1957
2239
 
1958
- /** @returns {BrandsByCompanyResponseSchema} */
1959
- static BrandsByCompanyResponseSchema() {
2240
+ /** @returns {BrandsByCompanyResponse} */
2241
+ static BrandsByCompanyResponse() {
1960
2242
  return Joi.object({
1961
2243
  brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
1962
2244
  });
1963
2245
  }
1964
2246
 
1965
- /** @returns {ValidationFailedResponseSchema} */
1966
- static ValidationFailedResponseSchema() {
2247
+ /** @returns {ValidationFailedResponse} */
2248
+ static ValidationFailedResponse() {
1967
2249
  return Joi.object({
1968
2250
  message: Joi.string().allow(""),
2251
+ errors: Joi.array().items(Joi.any()),
1969
2252
  });
1970
2253
  }
1971
2254
 
@@ -1973,6 +2256,8 @@ class ConfigurationPlatformModel {
1973
2256
  static NotFound() {
1974
2257
  return Joi.object({
1975
2258
  message: Joi.string().allow(""),
2259
+ error: Joi.string().allow(""),
2260
+ code: Joi.string().allow(""),
1976
2261
  success: Joi.boolean(),
1977
2262
  });
1978
2263
  }
@@ -2002,8 +2287,8 @@ class ConfigurationPlatformModel {
2002
2287
  });
2003
2288
  }
2004
2289
 
2005
- /** @returns {CreateApplicationRequestSchema} */
2006
- static CreateApplicationRequestSchema() {
2290
+ /** @returns {CreateApplicationRequest} */
2291
+ static CreateApplicationRequest() {
2007
2292
  return Joi.object({
2008
2293
  app: ConfigurationPlatformModel.App(),
2009
2294
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
@@ -2011,16 +2296,16 @@ class ConfigurationPlatformModel {
2011
2296
  });
2012
2297
  }
2013
2298
 
2014
- /** @returns {CreateAppResponseSchema} */
2015
- static CreateAppResponseSchema() {
2299
+ /** @returns {CreateAppResponse} */
2300
+ static CreateAppResponse() {
2016
2301
  return Joi.object({
2017
2302
  app: ConfigurationPlatformModel.Application(),
2018
2303
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
2019
2304
  });
2020
2305
  }
2021
2306
 
2022
- /** @returns {ApplicationsResponseSchema} */
2023
- static ApplicationsResponseSchema() {
2307
+ /** @returns {ApplicationsResponse} */
2308
+ static ApplicationsResponse() {
2024
2309
  return Joi.object({
2025
2310
  items: Joi.array().items(ConfigurationPlatformModel.Application()),
2026
2311
  page: ConfigurationPlatformModel.Page(),
@@ -2060,8 +2345,8 @@ class ConfigurationPlatformModel {
2060
2345
  });
2061
2346
  }
2062
2347
 
2063
- /** @returns {MobileAppConfigRequestSchema} */
2064
- static MobileAppConfigRequestSchema() {
2348
+ /** @returns {MobileAppConfigRequest} */
2349
+ static MobileAppConfigRequest() {
2065
2350
  return Joi.object({
2066
2351
  app_name: Joi.string().allow(""),
2067
2352
  landing_image: ConfigurationPlatformModel.LandingImage(),
@@ -2127,8 +2412,8 @@ class ConfigurationPlatformModel {
2127
2412
  });
2128
2413
  }
2129
2414
 
2130
- /** @returns {DomainAddRequestSchema} */
2131
- static DomainAddRequestSchema() {
2415
+ /** @returns {DomainAddRequest} */
2416
+ static DomainAddRequest() {
2132
2417
  return Joi.object({
2133
2418
  domain: ConfigurationPlatformModel.DomainAdd(),
2134
2419
  });
@@ -2147,8 +2432,8 @@ class ConfigurationPlatformModel {
2147
2432
  });
2148
2433
  }
2149
2434
 
2150
- /** @returns {DomainsResponseSchema} */
2151
- static DomainsResponseSchema() {
2435
+ /** @returns {DomainsResponse} */
2436
+ static DomainsResponse() {
2152
2437
  return Joi.object({
2153
2438
  domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
2154
2439
  });
@@ -2165,16 +2450,16 @@ class ConfigurationPlatformModel {
2165
2450
  });
2166
2451
  }
2167
2452
 
2168
- /** @returns {UpdateDomainTypeRequestSchema} */
2169
- static UpdateDomainTypeRequestSchema() {
2453
+ /** @returns {UpdateDomainTypeRequest} */
2454
+ static UpdateDomainTypeRequest() {
2170
2455
  return Joi.object({
2171
2456
  domain: ConfigurationPlatformModel.UpdateDomain(),
2172
2457
  action: Joi.string().allow(""),
2173
2458
  });
2174
2459
  }
2175
2460
 
2176
- /** @returns {DomainStatusRequestSchema} */
2177
- static DomainStatusRequestSchema() {
2461
+ /** @returns {DomainStatusRequest} */
2462
+ static DomainStatusRequest() {
2178
2463
  return Joi.object({
2179
2464
  domain_url: Joi.string().allow(""),
2180
2465
  });
@@ -2188,19 +2473,18 @@ class ConfigurationPlatformModel {
2188
2473
  });
2189
2474
  }
2190
2475
 
2191
- /** @returns {DomainStatusResponseSchema} */
2192
- static DomainStatusResponseSchema() {
2476
+ /** @returns {DomainStatusResponse} */
2477
+ static DomainStatusResponse() {
2193
2478
  return Joi.object({
2194
2479
  connected: Joi.boolean(),
2195
2480
  status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
2196
2481
  });
2197
2482
  }
2198
2483
 
2199
- /** @returns {DomainSuggestionsRequestSchema} */
2200
- static DomainSuggestionsRequestSchema() {
2484
+ /** @returns {DomainSuggestionsRequest} */
2485
+ static DomainSuggestionsRequest() {
2201
2486
  return Joi.object({
2202
2487
  domain_url: Joi.string().allow(""),
2203
- custom_domain: Joi.boolean(),
2204
2488
  });
2205
2489
  }
2206
2490
 
@@ -2215,65 +2499,301 @@ class ConfigurationPlatformModel {
2215
2499
  });
2216
2500
  }
2217
2501
 
2218
- /** @returns {DomainSuggestionsResponseSchema} */
2219
- static DomainSuggestionsResponseSchema() {
2502
+ /** @returns {DomainSuggestionsResponse} */
2503
+ static DomainSuggestionsResponse() {
2220
2504
  return Joi.object({
2221
2505
  domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
2222
2506
  });
2223
2507
  }
2224
2508
 
2225
- /** @returns {SuccessMessageResponseSchema} */
2226
- static SuccessMessageResponseSchema() {
2509
+ /** @returns {SuccessMessageResponse} */
2510
+ static SuccessMessageResponse() {
2227
2511
  return Joi.object({
2228
2512
  success: Joi.boolean(),
2229
2513
  message: Joi.string().allow(""),
2230
2514
  });
2231
2515
  }
2232
2516
 
2233
- /** @returns {App} */
2234
- static App() {
2517
+ /** @returns {GetIntegrationsOptInsResponse} */
2518
+ static GetIntegrationsOptInsResponse() {
2235
2519
  return Joi.object({
2236
- company_id: Joi.string().allow(""),
2237
- channel_type: Joi.string().allow(""),
2238
- auth: ConfigurationPlatformModel.ApplicationAuth(),
2239
- name: Joi.string().allow(""),
2240
- desc: Joi.string().allow(""),
2520
+ items: Joi.array().items(ConfigurationPlatformModel.IntegrationOptIn()),
2521
+ page: ConfigurationPlatformModel.Page(),
2241
2522
  });
2242
2523
  }
2243
2524
 
2244
- /** @returns {AppDomain} */
2245
- static AppDomain() {
2525
+ /** @returns {IntegrationOptIn} */
2526
+ static IntegrationOptIn() {
2246
2527
  return Joi.object({
2528
+ validators: ConfigurationPlatformModel.Validators(),
2529
+ description: Joi.string().allow(""),
2530
+ description_html: Joi.string().allow(""),
2531
+ constants: Joi.string().allow(""),
2532
+ companies: Joi.array().items(Joi.string().allow("")),
2533
+ support: Joi.array().items(Joi.string().allow("")),
2534
+ _id: Joi.string().allow(""),
2247
2535
  name: Joi.string().allow(""),
2536
+ slug: Joi.string().allow(""),
2537
+ hidden: Joi.boolean(),
2538
+ meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
2539
+ icon: Joi.string().allow(""),
2540
+ owner: Joi.string().allow(""),
2541
+ created_at: Joi.string().allow(""),
2542
+ modified_at: Joi.string().allow(""),
2543
+ token: Joi.string().allow(""),
2544
+ secret: Joi.string().allow(""),
2545
+ __v: Joi.number(),
2248
2546
  });
2249
2547
  }
2250
2548
 
2251
- /** @returns {CompaniesResponseSchema} */
2252
- static CompaniesResponseSchema() {
2549
+ /** @returns {Validators} */
2550
+ static Validators() {
2253
2551
  return Joi.object({
2254
- items: Joi.array().items(
2255
- ConfigurationPlatformModel.AppInventoryCompanies()
2256
- ),
2257
- page: ConfigurationPlatformModel.Page(),
2552
+ company: ConfigurationPlatformModel.CompanyValidator(),
2553
+ store: ConfigurationPlatformModel.StoreValidator(),
2554
+ inventory: ConfigurationPlatformModel.InventoryValidator(),
2555
+ order: ConfigurationPlatformModel.OrderValidator(),
2258
2556
  });
2259
2557
  }
2260
2558
 
2261
- /** @returns {AppInventoryCompanies} */
2262
- static AppInventoryCompanies() {
2559
+ /** @returns {CompanyValidator} */
2560
+ static CompanyValidator() {
2263
2561
  return Joi.object({
2264
- uid: Joi.number(),
2265
- name: Joi.string().allow(""),
2266
- company_type: Joi.string().allow(""),
2562
+ json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
2563
+ browser_script: Joi.string().allow(""),
2267
2564
  });
2268
2565
  }
2269
2566
 
2270
- /** @returns {StoresResponseSchema} */
2271
- static StoresResponseSchema() {
2567
+ /** @returns {JsonSchema} */
2568
+ static JsonSchema() {
2272
2569
  return Joi.object({
2273
- items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
2274
- page: ConfigurationPlatformModel.Page(),
2275
- });
2276
- }
2570
+ display: Joi.string().allow(""),
2571
+ key: Joi.string().allow(""),
2572
+ type: Joi.string().allow(""),
2573
+ tooltip: Joi.string().allow(""),
2574
+ });
2575
+ }
2576
+
2577
+ /** @returns {StoreValidator} */
2578
+ static StoreValidator() {
2579
+ return Joi.object({
2580
+ json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
2581
+ browser_script: Joi.string().allow(""),
2582
+ });
2583
+ }
2584
+
2585
+ /** @returns {InventoryValidator} */
2586
+ static InventoryValidator() {
2587
+ return Joi.object({
2588
+ json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
2589
+ browser_script: Joi.string().allow(""),
2590
+ });
2591
+ }
2592
+
2593
+ /** @returns {OrderValidator} */
2594
+ static OrderValidator() {
2595
+ return Joi.object({
2596
+ json_schema: Joi.array().items(ConfigurationPlatformModel.JsonSchema()),
2597
+ browser_script: Joi.string().allow(""),
2598
+ });
2599
+ }
2600
+
2601
+ /** @returns {IntegrationMeta} */
2602
+ static IntegrationMeta() {
2603
+ return Joi.object({
2604
+ is_public: Joi.boolean(),
2605
+ _id: Joi.string().allow(""),
2606
+ name: Joi.string().allow(""),
2607
+ value: Joi.string().allow(""),
2608
+ });
2609
+ }
2610
+
2611
+ /** @returns {Integration} */
2612
+ static Integration() {
2613
+ return Joi.object({
2614
+ validators: ConfigurationPlatformModel.Validators(),
2615
+ description: Joi.string().allow(""),
2616
+ description_html: Joi.string().allow(""),
2617
+ constants: Joi.any(),
2618
+ companies: Joi.array().items(Joi.string().allow("")),
2619
+ support: Joi.array().items(Joi.string().allow("")),
2620
+ _id: Joi.string().allow(""),
2621
+ name: Joi.string().allow(""),
2622
+ slug: Joi.string().allow(""),
2623
+ meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
2624
+ icon: Joi.string().allow(""),
2625
+ hidden: Joi.boolean(),
2626
+ owner: Joi.string().allow(""),
2627
+ created_at: Joi.string().allow(""),
2628
+ modified_at: Joi.string().allow(""),
2629
+ token: Joi.string().allow(""),
2630
+ secret: Joi.string().allow(""),
2631
+ __v: Joi.number(),
2632
+ });
2633
+ }
2634
+
2635
+ /** @returns {IntegrationConfigResponse} */
2636
+ static IntegrationConfigResponse() {
2637
+ return Joi.object({
2638
+ items: Joi.array().items(ConfigurationPlatformModel.IntegrationLevel()),
2639
+ });
2640
+ }
2641
+
2642
+ /** @returns {IntegrationLevel} */
2643
+ static IntegrationLevel() {
2644
+ return Joi.object({
2645
+ opted: Joi.boolean(),
2646
+ permissions: Joi.array().items(Joi.any()),
2647
+ last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
2648
+ _id: Joi.string().allow(""),
2649
+ integration: Joi.string().allow(""),
2650
+ level: Joi.string().allow(""),
2651
+ uid: Joi.number(),
2652
+ company_id: Joi.number(),
2653
+ meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
2654
+ token: Joi.string().allow(""),
2655
+ created_at: Joi.string().allow(""),
2656
+ modified_at: Joi.string().allow(""),
2657
+ __v: Joi.number(),
2658
+ data: Joi.any(),
2659
+ success: Joi.boolean(),
2660
+ message: Joi.string().allow(""),
2661
+ });
2662
+ }
2663
+
2664
+ /** @returns {UpdateIntegrationLevelRequest} */
2665
+ static UpdateIntegrationLevelRequest() {
2666
+ return Joi.object({
2667
+ items: Joi.array().items(ConfigurationPlatformModel.IntegrationLevel()),
2668
+ });
2669
+ }
2670
+
2671
+ /** @returns {OptedStoreIntegration} */
2672
+ static OptedStoreIntegration() {
2673
+ return Joi.object({
2674
+ other_opted: Joi.boolean(),
2675
+ other_integration: ConfigurationPlatformModel.IntegrationOptIn(),
2676
+ other_entity: ConfigurationPlatformModel.OtherEntity(),
2677
+ });
2678
+ }
2679
+
2680
+ /** @returns {OtherEntity} */
2681
+ static OtherEntity() {
2682
+ return Joi.object({
2683
+ opted: Joi.boolean(),
2684
+ permissions: Joi.array().items(Joi.string().allow("")),
2685
+ last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
2686
+ _id: Joi.string().allow(""),
2687
+ integration: Joi.string().allow(""),
2688
+ level: Joi.string().allow(""),
2689
+ uid: Joi.number(),
2690
+ data: ConfigurationPlatformModel.OtherEntityData(),
2691
+ meta: Joi.array().items(Joi.any()),
2692
+ token: Joi.string().allow(""),
2693
+ created_at: Joi.string().allow(""),
2694
+ modified_at: Joi.string().allow(""),
2695
+ __v: Joi.number(),
2696
+ });
2697
+ }
2698
+
2699
+ /** @returns {LastPatch} */
2700
+ static LastPatch() {
2701
+ return Joi.object({
2702
+ op: Joi.string().allow(""),
2703
+ path: Joi.string().allow(""),
2704
+ value: Joi.string().allow(""),
2705
+ });
2706
+ }
2707
+
2708
+ /** @returns {OtherEntityData} */
2709
+ static OtherEntityData() {
2710
+ return Joi.object({
2711
+ article_identifier: Joi.string().allow(""),
2712
+ });
2713
+ }
2714
+
2715
+ /** @returns {App} */
2716
+ static App() {
2717
+ return Joi.object({
2718
+ company_id: Joi.string().allow(""),
2719
+ channel_type: Joi.string().allow(""),
2720
+ auth: ConfigurationPlatformModel.ApplicationAuth(),
2721
+ name: Joi.string().allow(""),
2722
+ desc: Joi.string().allow(""),
2723
+ });
2724
+ }
2725
+
2726
+ /** @returns {InventoryConfig} */
2727
+ static InventoryConfig() {
2728
+ return Joi.object({
2729
+ brand: ConfigurationPlatformModel.InventoryBrandRule(),
2730
+ store: ConfigurationPlatformModel.InventoryStoreRule(),
2731
+ image: Joi.array().items(Joi.string().allow("")),
2732
+ franchise_enabled: Joi.boolean(),
2733
+ out_of_stock: Joi.boolean(),
2734
+ only_verified_products: Joi.boolean(),
2735
+ pricing_strategy: ConfigurationPlatformModel.PricingStrategy(),
2736
+ });
2737
+ }
2738
+
2739
+ /** @returns {AppInventory} */
2740
+ static AppInventory() {
2741
+ return Joi.object({
2742
+ inventory: ConfigurationPlatformModel.InventoryConfig(),
2743
+ payment: ConfigurationPlatformModel.InventoryPaymentConfig(),
2744
+ article_assignment: ConfigurationPlatformModel.InventoryArticleAssignment(),
2745
+ });
2746
+ }
2747
+
2748
+ /** @returns {AppDomain} */
2749
+ static AppDomain() {
2750
+ return Joi.object({
2751
+ name: Joi.string().allow(""),
2752
+ });
2753
+ }
2754
+
2755
+ /** @returns {CompaniesResponse} */
2756
+ static CompaniesResponse() {
2757
+ return Joi.object({
2758
+ items: Joi.array().items(
2759
+ ConfigurationPlatformModel.AppInventoryCompanies()
2760
+ ),
2761
+ page: ConfigurationPlatformModel.Page(),
2762
+ });
2763
+ }
2764
+
2765
+ /** @returns {AppInventoryCompanies} */
2766
+ static AppInventoryCompanies() {
2767
+ return Joi.object({
2768
+ uid: Joi.number(),
2769
+ name: Joi.string().allow(""),
2770
+ company_type: Joi.string().allow(""),
2771
+ });
2772
+ }
2773
+
2774
+ /** @returns {StoresResponse} */
2775
+ static StoresResponse() {
2776
+ return Joi.object({
2777
+ items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
2778
+ page: ConfigurationPlatformModel.Page(),
2779
+ });
2780
+ }
2781
+
2782
+ /** @returns {ListStoreResponse} */
2783
+ static ListStoreResponse() {
2784
+ return Joi.object({
2785
+ stores: Joi.array().items(
2786
+ ConfigurationPlatformModel.AppInventoryStores()
2787
+ ),
2788
+ });
2789
+ }
2790
+
2791
+ /** @returns {ArrayStoreResponse} */
2792
+ static ArrayStoreResponse() {
2793
+ return Joi.object({
2794
+ data: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
2795
+ });
2796
+ }
2277
2797
 
2278
2798
  /** @returns {AppInventoryStores} */
2279
2799
  static AppInventoryStores() {
@@ -2291,8 +2811,8 @@ class ConfigurationPlatformModel {
2291
2811
  });
2292
2812
  }
2293
2813
 
2294
- /** @returns {FilterOrderingStoreRequestSchema} */
2295
- static FilterOrderingStoreRequestSchema() {
2814
+ /** @returns {FilterOrderingStoreRequest} */
2815
+ static FilterOrderingStoreRequest() {
2296
2816
  return Joi.object({
2297
2817
  all_stores: Joi.boolean(),
2298
2818
  deployed_stores: Joi.array().items(Joi.number()),
@@ -2320,8 +2840,8 @@ class ConfigurationPlatformModel {
2320
2840
  });
2321
2841
  }
2322
2842
 
2323
- /** @returns {OrderingStoreSelectRequestSchema} */
2324
- static OrderingStoreSelectRequestSchema() {
2843
+ /** @returns {OrderingStoreSelectRequest} */
2844
+ static OrderingStoreSelectRequest() {
2325
2845
  return Joi.object({
2326
2846
  ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
2327
2847
  });
@@ -2364,8 +2884,8 @@ class ConfigurationPlatformModel {
2364
2884
  });
2365
2885
  }
2366
2886
 
2367
- /** @returns {OptedApplicationResponseSchema} */
2368
- static OptedApplicationResponseSchema() {
2887
+ /** @returns {OptedApplicationResponse} */
2888
+ static OptedApplicationResponse() {
2369
2889
  return Joi.object({
2370
2890
  name: Joi.string().allow(""),
2371
2891
  description: Joi.string().allow(""),
@@ -2425,8 +2945,8 @@ class ConfigurationPlatformModel {
2425
2945
  });
2426
2946
  }
2427
2947
 
2428
- /** @returns {TokenResponseSchema} */
2429
- static TokenResponseSchema() {
2948
+ /** @returns {TokenResponse} */
2949
+ static TokenResponse() {
2430
2950
  return Joi.object({
2431
2951
  tokens: ConfigurationPlatformModel.Tokens(),
2432
2952
  _id: Joi.string().allow(""),
@@ -2582,7 +3102,6 @@ class ConfigurationPlatformModel {
2582
3102
  /** @returns {GoogleMap} */
2583
3103
  static GoogleMap() {
2584
3104
  return Joi.object({
2585
- enabled: Joi.boolean(),
2586
3105
  credentials: ConfigurationPlatformModel.GoogleMapCredentials(),
2587
3106
  });
2588
3107
  }
@@ -2632,8 +3151,8 @@ class ConfigurationPlatformModel {
2632
3151
  static LaunchPage() {
2633
3152
  return Joi.object({
2634
3153
  page_type: Joi.string().allow(""),
2635
- params: Joi.object().pattern(/\S/, Joi.any()),
2636
- query: Joi.object().pattern(/\S/, Joi.any()),
3154
+ params: Joi.any(),
3155
+ query: Joi.any(),
2637
3156
  });
2638
3157
  }
2639
3158
 
@@ -2674,11 +3193,13 @@ class ConfigurationPlatformModel {
2674
3193
  qr: ConfigurationPlatformModel.QrFeature(),
2675
3194
  pcr: ConfigurationPlatformModel.PcrFeature(),
2676
3195
  order: ConfigurationPlatformModel.OrderFeature(),
3196
+ buybox: ConfigurationPlatformModel.BuyboxFeature(),
2677
3197
  _id: Joi.string().allow(""),
2678
3198
  app: Joi.string().allow(""),
2679
3199
  created_at: Joi.string().allow(""),
2680
3200
  modified_at: Joi.string().allow(""),
2681
3201
  __v: Joi.number(),
3202
+ pricing_strategy: ConfigurationPlatformModel.PricingStrategy(),
2682
3203
  });
2683
3204
  }
2684
3205
 
@@ -2799,15 +3320,24 @@ class ConfigurationPlatformModel {
2799
3320
  });
2800
3321
  }
2801
3322
 
2802
- /** @returns {AppFeatureRequestSchema} */
2803
- static AppFeatureRequestSchema() {
3323
+ /** @returns {BuyboxFeature} */
3324
+ static BuyboxFeature() {
3325
+ return Joi.object({
3326
+ show_name: Joi.boolean(),
3327
+ enable_selection: Joi.boolean(),
3328
+ is_seller_buybox_enabled: Joi.boolean(),
3329
+ });
3330
+ }
3331
+
3332
+ /** @returns {AppFeatureRequest} */
3333
+ static AppFeatureRequest() {
2804
3334
  return Joi.object({
2805
3335
  feature: ConfigurationPlatformModel.AppFeature(),
2806
3336
  });
2807
3337
  }
2808
3338
 
2809
- /** @returns {AppFeatureResponseSchema} */
2810
- static AppFeatureResponseSchema() {
3339
+ /** @returns {AppFeatureResponse} */
3340
+ static AppFeatureResponse() {
2811
3341
  return Joi.object({
2812
3342
  feature: ConfigurationPlatformModel.AppFeature(),
2813
3343
  });
@@ -2913,67 +3443,84 @@ class ConfigurationPlatformModel {
2913
3443
  });
2914
3444
  }
2915
3445
 
2916
- /** @returns {ApplicationById} */
2917
- static ApplicationById() {
3446
+ /** @returns {TokenSchema} */
3447
+ static TokenSchema() {
2918
3448
  return Joi.object({
2919
- website: ConfigurationPlatformModel.ApplicationWebsite(),
2920
- cors: ConfigurationPlatformModel.ApplicationCors(),
2921
- auth: ConfigurationPlatformModel.ApplicationAuth(),
2922
- description: Joi.string().allow(""),
2923
- channel_type: Joi.string().allow(""),
2924
- cache_ttl: Joi.number(),
2925
- is_internal: Joi.boolean(),
2926
- is_active: Joi.boolean(),
2927
- _id: Joi.string().allow(""),
2928
- name: Joi.string().allow(""),
2929
- owner: Joi.string().allow(""),
2930
- company_id: Joi.number(),
2931
3449
  token: Joi.string().allow(""),
2932
- redirections: Joi.array().items(
2933
- ConfigurationPlatformModel.ApplicationRedirections()
2934
- ),
2935
- meta: Joi.array().items(ConfigurationPlatformModel.ApplicationMeta()),
3450
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
2936
3451
  created_at: Joi.string().allow(""),
2937
- modified_at: Joi.string().allow(""),
2938
- __v: Joi.number(),
2939
- banner: ConfigurationPlatformModel.SecureUrl(),
2940
- logo: ConfigurationPlatformModel.SecureUrl(),
2941
- favicon: ConfigurationPlatformModel.SecureUrl(),
2942
- domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
2943
- app_type: Joi.string().allow(""),
2944
- mobile_logo: ConfigurationPlatformModel.SecureUrl(),
2945
- domain: ConfigurationPlatformModel.Domain(),
2946
- slug: Joi.string().allow(""),
2947
- mode: Joi.string().allow(""),
2948
- status: Joi.string().allow(""),
2949
- tokens: Joi.array().items(ConfigurationPlatformModel.TokenSchemaID()),
2950
- secret: Joi.string().allow(""),
2951
3452
  });
2952
3453
  }
2953
3454
 
2954
- /** @returns {TokenSchemaID} */
2955
- static TokenSchemaID() {
3455
+ /** @returns {InvalidPayloadRequest} */
3456
+ static InvalidPayloadRequest() {
2956
3457
  return Joi.object({
2957
- token: Joi.string().allow(""),
2958
- created_by: Joi.string().allow(""),
2959
- created_at: Joi.string().allow(""),
3458
+ message: Joi.string().allow(""),
3459
+ success: Joi.boolean(),
3460
+ domain: Joi.any(),
2960
3461
  });
2961
3462
  }
2962
3463
 
2963
- /** @returns {TokenSchema} */
2964
- static TokenSchema() {
3464
+ /** @returns {InventoryBrandRule} */
3465
+ static InventoryBrandRule() {
2965
3466
  return Joi.object({
2966
- token: Joi.string().allow(""),
2967
- created_by: Joi.object().pattern(/\S/, Joi.any()),
2968
- created_at: Joi.string().allow(""),
3467
+ criteria: Joi.string().allow(""),
3468
+ brands: Joi.array().items(Joi.number()),
2969
3469
  });
2970
3470
  }
2971
3471
 
2972
- /** @returns {InvalidPayloadRequestSchema} */
2973
- static InvalidPayloadRequestSchema() {
3472
+ /** @returns {PricingStrategy} */
3473
+ static PricingStrategy() {
2974
3474
  return Joi.object({
2975
- message: Joi.string().allow(""),
2976
- success: Joi.boolean(),
3475
+ value: Joi.string().allow(""),
3476
+ });
3477
+ }
3478
+
3479
+ /** @returns {StoreCriteriaRule} */
3480
+ static StoreCriteriaRule() {
3481
+ return Joi.object({
3482
+ companies: Joi.array().items(Joi.number()),
3483
+ brands: Joi.array().items(Joi.number()),
3484
+ });
3485
+ }
3486
+
3487
+ /** @returns {InventoryStoreRule} */
3488
+ static InventoryStoreRule() {
3489
+ return Joi.object({
3490
+ criteria: Joi.string().allow(""),
3491
+ rules: Joi.array().items(ConfigurationPlatformModel.StoreCriteriaRule()),
3492
+ stores: Joi.array().items(Joi.number()),
3493
+ });
3494
+ }
3495
+
3496
+ /** @returns {InventoryPaymentConfig} */
3497
+ static InventoryPaymentConfig() {
3498
+ return Joi.object({
3499
+ mode_of_payment: Joi.string().allow(""),
3500
+ source: Joi.string().allow(""),
3501
+ });
3502
+ }
3503
+
3504
+ /** @returns {StorePriorityRule} */
3505
+ static StorePriorityRule() {
3506
+ return Joi.object({
3507
+ enabled: Joi.boolean(),
3508
+ storetype_order: Joi.array().items(Joi.string().allow("")),
3509
+ });
3510
+ }
3511
+
3512
+ /** @returns {ArticleAssignmentRule} */
3513
+ static ArticleAssignmentRule() {
3514
+ return Joi.object({
3515
+ store_priority: ConfigurationPlatformModel.StorePriorityRule(),
3516
+ });
3517
+ }
3518
+
3519
+ /** @returns {InventoryArticleAssignment} */
3520
+ static InventoryArticleAssignment() {
3521
+ return Joi.object({
3522
+ post_order_reassignment: Joi.boolean(),
3523
+ rules: ConfigurationPlatformModel.ArticleAssignmentRule(),
2977
3524
  });
2978
3525
  }
2979
3526
 
@@ -2987,6 +3534,7 @@ class ConfigurationPlatformModel {
2987
3534
  current: Joi.number(),
2988
3535
  type: Joi.string().allow("").required(),
2989
3536
  size: Joi.number(),
3537
+ total: Joi.number(),
2990
3538
  });
2991
3539
  }
2992
3540
 
@@ -3198,15 +3746,15 @@ class ConfigurationPlatformModel {
3198
3746
  });
3199
3747
  }
3200
3748
 
3201
- /** @returns {CurrenciesResponseSchema} */
3202
- static CurrenciesResponseSchema() {
3749
+ /** @returns {CurrenciesResponse} */
3750
+ static CurrenciesResponse() {
3203
3751
  return Joi.object({
3204
3752
  items: Joi.array().items(ConfigurationPlatformModel.Currency()),
3205
3753
  });
3206
3754
  }
3207
3755
 
3208
- /** @returns {AppCurrencyResponseSchema} */
3209
- static AppCurrencyResponseSchema() {
3756
+ /** @returns {AppCurrencyResponse} */
3757
+ static AppCurrencyResponse() {
3210
3758
  return Joi.object({
3211
3759
  _id: Joi.string().allow(""),
3212
3760
  application: Joi.string().allow(""),
@@ -3234,7 +3782,7 @@ class ConfigurationPlatformModel {
3234
3782
  address1: Joi.string().allow(""),
3235
3783
  lat_long: ConfigurationPlatformModel.StoreLatLong(),
3236
3784
  address2: Joi.string().allow(""),
3237
- pincode: Joi.number(),
3785
+ pincode: Joi.string().allow(""),
3238
3786
  country: Joi.string().allow(""),
3239
3787
  city: Joi.string().allow(""),
3240
3788
  sector: Joi.string().allow(""),
@@ -3253,7 +3801,7 @@ class ConfigurationPlatformModel {
3253
3801
  display_name: Joi.string().allow(""),
3254
3802
  store_type: Joi.string().allow(""),
3255
3803
  store_code: Joi.string().allow(""),
3256
- pincode: Joi.number(),
3804
+ pincode: Joi.string().allow(""),
3257
3805
  code: Joi.string().allow(""),
3258
3806
  });
3259
3807
  }
@@ -3273,28 +3821,167 @@ class ConfigurationPlatformModel {
3273
3821
  });
3274
3822
  }
3275
3823
 
3276
- /** @returns {OrderingStoresResponseSchema} */
3277
- static OrderingStoresResponseSchema() {
3824
+ /** @returns {UpdateDiealog} */
3825
+ static UpdateDiealog() {
3826
+ return Joi.object({
3827
+ type: Joi.string().allow("").required(),
3828
+ interval: Joi.number(),
3829
+ });
3830
+ }
3831
+
3832
+ /** @returns {PlatformVersionRequest} */
3833
+ static PlatformVersionRequest() {
3834
+ return Joi.object({
3835
+ app_code_name: Joi.string().allow("").required(),
3836
+ app_name: Joi.string().allow("").required(),
3837
+ force_version: Joi.string().allow("").required(),
3838
+ latest_version: Joi.string().allow("").required(),
3839
+ is_app_blocked: Joi.boolean().required(),
3840
+ update_dialog: ConfigurationPlatformModel.UpdateDiealog().required(),
3841
+ });
3842
+ }
3843
+
3844
+ /** @returns {PlatformVersion} */
3845
+ static PlatformVersion() {
3846
+ return Joi.object({
3847
+ app_code_name: Joi.string().allow("").required(),
3848
+ app_name: Joi.string().allow("").required(),
3849
+ force_version: Joi.string().allow("").required(),
3850
+ latest_version: Joi.string().allow("").required(),
3851
+ is_app_blocked: Joi.boolean().required(),
3852
+ update_dialog: ConfigurationPlatformModel.UpdateDiealog().required(),
3853
+ _id: Joi.string().allow(""),
3854
+ modified_at: Joi.string().allow(""),
3855
+ created_at: Joi.string().allow(""),
3856
+ __v: Joi.number(),
3857
+ });
3858
+ }
3859
+
3860
+ /** @returns {OrderingStoresResponse} */
3861
+ static OrderingStoresResponse() {
3278
3862
  return Joi.object({
3279
3863
  page: ConfigurationPlatformModel.Page(),
3280
3864
  items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
3281
3865
  });
3282
3866
  }
3283
3867
 
3284
- /** @returns {ValidationErrors} */
3285
- static ValidationErrors() {
3868
+ /** @returns {LocationDefaultLanguage} */
3869
+ static LocationDefaultLanguage() {
3870
+ return Joi.object({
3871
+ name: Joi.string().allow(""),
3872
+ code: Joi.string().allow(""),
3873
+ });
3874
+ }
3875
+
3876
+ /** @returns {LocationDefaultCurrency} */
3877
+ static LocationDefaultCurrency() {
3878
+ return Joi.object({
3879
+ name: Joi.string().allow(""),
3880
+ symbol: Joi.string().allow(""),
3881
+ code: Joi.string().allow(""),
3882
+ });
3883
+ }
3884
+
3885
+ /** @returns {LocationCountry} */
3886
+ static LocationCountry() {
3887
+ return Joi.object({
3888
+ capital: Joi.string().allow(""),
3889
+ currency: Joi.string().allow(""),
3890
+ iso2: Joi.string().allow(""),
3891
+ iso3: Joi.string().allow(""),
3892
+ name: Joi.string().allow(""),
3893
+ parent: Joi.string().allow(""),
3894
+ phone_code: Joi.string().allow(""),
3895
+ type: Joi.string().allow(""),
3896
+ uid: Joi.number(),
3897
+ __v: Joi.number(),
3898
+ _id: Joi.string().allow(""),
3899
+ default_currency: ConfigurationPlatformModel.LocationDefaultCurrency(),
3900
+ default_language: ConfigurationPlatformModel.LocationDefaultLanguage(),
3901
+ state_code: Joi.string().allow(""),
3902
+ country_code: Joi.string().allow(""),
3903
+ latitude: Joi.string().allow(""),
3904
+ longitude: Joi.string().allow(""),
3905
+ });
3906
+ }
3907
+
3908
+ /** @returns {Locations} */
3909
+ static Locations() {
3910
+ return Joi.object({
3911
+ items: Joi.array().items(ConfigurationPlatformModel.LocationCountry()),
3912
+ });
3913
+ }
3914
+
3915
+ /** @returns {UrlRedirectionResponse} */
3916
+ static UrlRedirectionResponse() {
3917
+ return Joi.object({
3918
+ redirections: Joi.array().items(
3919
+ ConfigurationPlatformModel.UrlRedirection()
3920
+ ),
3921
+ });
3922
+ }
3923
+
3924
+ /** @returns {UrlRedirectionRequest} */
3925
+ static UrlRedirectionRequest() {
3926
+ return Joi.object({
3927
+ redirection: ConfigurationPlatformModel.UrlRedirection(),
3928
+ });
3929
+ }
3930
+
3931
+ /** @returns {UrlRedirection} */
3932
+ static UrlRedirection() {
3933
+ return Joi.object({
3934
+ redirect_from: Joi.string().allow(""),
3935
+ redirect_to: Joi.string().allow(""),
3936
+ type: Joi.string().allow(""),
3937
+ _id: Joi.string().allow(""),
3938
+ });
3939
+ }
3940
+
3941
+ /** @returns {StoreForConfigurationRequest} */
3942
+ static StoreForConfigurationRequest() {
3286
3943
  return Joi.object({
3287
- errors: Joi.array()
3288
- .items(ConfigurationPlatformModel.ValidationError())
3289
- .required(),
3944
+ conf: Joi.array().items(ConfigurationPlatformModel.AppStoreRules()),
3945
+ });
3946
+ }
3947
+
3948
+ /** @returns {DomainOptionsResponse} */
3949
+ static DomainOptionsResponse() {
3950
+ return Joi.object({
3951
+ domain_types: Joi.array().items(ConfigurationPlatformModel.DomainType()),
3952
+ network_ips: Joi.array().items(Joi.string().allow("")),
3953
+ network_cnames: Joi.array().items(Joi.string().allow("")),
3954
+ });
3955
+ }
3956
+
3957
+ /** @returns {DomainType} */
3958
+ static DomainType() {
3959
+ return Joi.object({
3960
+ key: Joi.string().allow(""),
3961
+ display: Joi.string().allow(""),
3962
+ values: Joi.array().items(ConfigurationPlatformModel.DomainValue()),
3963
+ });
3964
+ }
3965
+
3966
+ /** @returns {DomainValue} */
3967
+ static DomainValue() {
3968
+ return Joi.object({
3969
+ value: Joi.string().allow(""),
3970
+ text: Joi.string().allow(""),
3971
+ });
3972
+ }
3973
+
3974
+ /** @returns {StoreRequest} */
3975
+ static StoreRequest() {
3976
+ return Joi.object({
3977
+ companies: Joi.array().items(Joi.number()),
3290
3978
  });
3291
3979
  }
3292
3980
 
3293
- /** @returns {ValidationError} */
3294
- static ValidationError() {
3981
+ /** @returns {StoreResponse} */
3982
+ static StoreResponse() {
3295
3983
  return Joi.object({
3296
- message: Joi.string().allow("").required(),
3297
- field: Joi.string().allow("").required(),
3984
+ data: Joi.array().items(Joi.number()),
3298
3985
  });
3299
3986
  }
3300
3987
  }