@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5

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 (239) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +161 -56
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +56 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
  83. package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
  127. package/sdk/platform/Content/ContentPlatformModel.js +631 -394
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
  157. package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  194. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  195. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  196. package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
  197. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  198. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  199. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  200. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  201. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  202. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  203. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  204. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  205. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  206. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  207. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  208. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  209. package/sdk/platform/User/UserPlatformModel.js +23 -23
  210. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  211. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  212. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  213. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  214. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  215. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  216. package/sdk/platform/index.d.ts +0 -1
  217. package/sdk/platform/index.js +0 -2
  218. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  219. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  220. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  221. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  222. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  223. package/sdk/public/Content/ContentPublicClient.js +810 -6
  224. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  225. package/sdk/public/Content/ContentPublicModel.js +649 -3
  226. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  227. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  228. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  229. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  230. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  231. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  232. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  233. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  234. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  235. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  236. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  237. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  238. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  239. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,7 +1,31 @@
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
+
3
26
  /**
4
27
  * @typedef ApplicationInventory
28
+ * @property {SearchConfig} [search]
5
29
  * @property {AppInventoryConfig} [inventory]
6
30
  * @property {AuthenticationConfig} [authentication]
7
31
  * @property {ArticleAssignmentConfig} [article_assignment]
@@ -36,6 +60,25 @@ const Joi = require("joi");
36
60
  * @property {boolean} [enabled]
37
61
  */
38
62
 
63
+ /**
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.
74
+ */
75
+
76
+ /**
77
+ * @typedef SearchConfig
78
+ * @property {FstIdentification} [fst_identification]
79
+ * @property {QuerySuggestions} [query_suggestions]
80
+ */
81
+
39
82
  /**
40
83
  * @typedef AppInventoryConfig
41
84
  * @property {InventoryBrand} [brand]
@@ -249,6 +292,7 @@ const Joi = require("joi");
249
292
 
250
293
  /**
251
294
  * @typedef AppInventoryPartialUpdate
295
+ * @property {SearchConfig} [search]
252
296
  * @property {RewardPointsConfig} [reward_points]
253
297
  * @property {AppCartConfig} [cart]
254
298
  * @property {AppPaymentConfig} [payment]
@@ -265,19 +309,19 @@ const Joi = require("joi");
265
309
  */
266
310
 
267
311
  /**
268
- * @typedef CompanyByBrandsRequest
312
+ * @typedef CompanyByBrandsRequestSchema
269
313
  * @property {number} brands - Brand UID
270
314
  * @property {string} [search_text] - A search field for finding a company by its name
271
315
  */
272
316
 
273
317
  /**
274
- * @typedef CompanyByBrandsResponse
318
+ * @typedef CompanyByBrandsResponseSchema
275
319
  * @property {BrandCompanyInfo[]} [items]
276
320
  * @property {Page} [page]
277
321
  */
278
322
 
279
323
  /**
280
- * @typedef StoreByBrandsRequest
324
+ * @typedef StoreByBrandsRequestSchema
281
325
  * @property {number} [company_id] - Current company ID for current company
282
326
  * stores only. Don't send in case cross-selling (franchise) is enabled.
283
327
  * @property {number} brands - Brand UID
@@ -285,7 +329,7 @@ const Joi = require("joi");
285
329
  */
286
330
 
287
331
  /**
288
- * @typedef StoreByBrandsResponse
332
+ * @typedef StoreByBrandsResponseSchema
289
333
  * @property {BrandStoreInfo[]} [items]
290
334
  * @property {Page} [page]
291
335
  */
@@ -313,12 +357,12 @@ const Joi = require("joi");
313
357
  */
314
358
 
315
359
  /**
316
- * @typedef BrandsByCompanyResponse
360
+ * @typedef BrandsByCompanyResponseSchema
317
361
  * @property {CompanyBrandInfo[]} [brands]
318
362
  */
319
363
 
320
364
  /**
321
- * @typedef ValidationFailedResponse
365
+ * @typedef ValidationFailedResponseSchema
322
366
  * @property {string} [message] - Response message for failed validation
323
367
  */
324
368
 
@@ -350,20 +394,20 @@ const Joi = require("joi");
350
394
  */
351
395
 
352
396
  /**
353
- * @typedef CreateApplicationRequest
397
+ * @typedef CreateApplicationRequestSchema
354
398
  * @property {App} [app]
355
399
  * @property {ApplicationInventory} [configuration]
356
400
  * @property {AppDomain} [domain]
357
401
  */
358
402
 
359
403
  /**
360
- * @typedef CreateAppResponse
404
+ * @typedef CreateAppResponseSchema
361
405
  * @property {Application} [app]
362
406
  * @property {ApplicationInventory} [configuration]
363
407
  */
364
408
 
365
409
  /**
366
- * @typedef ApplicationsResponse
410
+ * @typedef ApplicationsResponseSchema
367
411
  * @property {Application[]} [items]
368
412
  * @property {Page} [page]
369
413
  */
@@ -401,7 +445,7 @@ const Joi = require("joi");
401
445
  */
402
446
 
403
447
  /**
404
- * @typedef MobileAppConfigRequest
448
+ * @typedef MobileAppConfigRequestSchema
405
449
  * @property {string} [app_name] - Name of the mobile app
406
450
  * @property {LandingImage} [landing_image]
407
451
  * @property {SplashImage} [splash_image]
@@ -473,7 +517,7 @@ const Joi = require("joi");
473
517
  */
474
518
 
475
519
  /**
476
- * @typedef DomainAddRequest
520
+ * @typedef DomainAddRequestSchema
477
521
  * @property {DomainAdd} [domain]
478
522
  */
479
523
 
@@ -492,7 +536,7 @@ const Joi = require("joi");
492
536
  */
493
537
 
494
538
  /**
495
- * @typedef DomainsResponse
539
+ * @typedef DomainsResponseSchema
496
540
  * @property {Domain[]} [domains]
497
541
  */
498
542
 
@@ -510,14 +554,14 @@ const Joi = require("joi");
510
554
  */
511
555
 
512
556
  /**
513
- * @typedef UpdateDomainTypeRequest
557
+ * @typedef UpdateDomainTypeRequestSchema
514
558
  * @property {UpdateDomain} [domain]
515
559
  * @property {string} [action] - Shows domain is made primary domain for the
516
560
  * sales channel or shorlink is created for the sales channel domain
517
561
  */
518
562
 
519
563
  /**
520
- * @typedef DomainStatusRequest
564
+ * @typedef DomainStatusRequestSchema
521
565
  * @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
522
566
  */
523
567
 
@@ -529,16 +573,17 @@ const Joi = require("joi");
529
573
  */
530
574
 
531
575
  /**
532
- * @typedef DomainStatusResponse
576
+ * @typedef DomainStatusResponseSchema
533
577
  * @property {boolean} [connected] - Check if domain is live and mapped to
534
578
  * appropriate IP of Fynd Servers
535
579
  * @property {DomainStatus[]} [status]
536
580
  */
537
581
 
538
582
  /**
539
- * @typedef DomainSuggestionsRequest
583
+ * @typedef DomainSuggestionsRequestSchema
540
584
  * @property {string} [domain_url] - Domain url
541
- * @property {boolean} [custom] - Get suggestions for custom domains or Fynd domains
585
+ * @property {boolean} [custom_domain] - Get suggestions for custom domains or
586
+ * Fynd domains
542
587
  */
543
588
 
544
589
  /**
@@ -553,12 +598,12 @@ const Joi = require("joi");
553
598
  */
554
599
 
555
600
  /**
556
- * @typedef DomainSuggestionsResponse
601
+ * @typedef DomainSuggestionsResponseSchema
557
602
  * @property {DomainSuggestion[]} [domains] - Domain URL
558
603
  */
559
604
 
560
605
  /**
561
- * @typedef SuccessMessageResponse
606
+ * @typedef SuccessMessageResponseSchema
562
607
  * @property {boolean} [success] - Shows whether domain was deleted successfully
563
608
  * @property {string} [message] - Success message shown to the user (in a string format)
564
609
  */
@@ -580,7 +625,7 @@ const Joi = require("joi");
580
625
  */
581
626
 
582
627
  /**
583
- * @typedef CompaniesResponse
628
+ * @typedef CompaniesResponseSchema
584
629
  * @property {AppInventoryCompanies[]} [items]
585
630
  * @property {Page} [page]
586
631
  */
@@ -594,7 +639,7 @@ const Joi = require("joi");
594
639
  */
595
640
 
596
641
  /**
597
- * @typedef StoresResponse
642
+ * @typedef StoresResponseSchema
598
643
  * @property {AppInventoryStores[]} [items]
599
644
  * @property {Page} [page]
600
645
  */
@@ -621,7 +666,7 @@ const Joi = require("joi");
621
666
  */
622
667
 
623
668
  /**
624
- * @typedef FilterOrderingStoreRequest
669
+ * @typedef FilterOrderingStoreRequestSchema
625
670
  * @property {boolean} [all_stores] - Allow all stores from the ordering stores
626
671
  * @property {number[]} [deployed_stores]
627
672
  * @property {string} [q] - Store code or name of the ordering store
@@ -648,7 +693,7 @@ const Joi = require("joi");
648
693
  */
649
694
 
650
695
  /**
651
- * @typedef OrderingStoreSelectRequest
696
+ * @typedef OrderingStoreSelectRequestSchema
652
697
  * @property {OrderingStoreSelect} ordering_store
653
698
  */
654
699
 
@@ -682,7 +727,7 @@ const Joi = require("joi");
682
727
  */
683
728
 
684
729
  /**
685
- * @typedef OptedApplicationResponse
730
+ * @typedef OptedApplicationResponseSchema
686
731
  * @property {string} [name] - Name of the other seller's sales channel
687
732
  * @property {string} [description] - Basic details about the other seller's sales channel
688
733
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -739,7 +784,7 @@ const Joi = require("joi");
739
784
  */
740
785
 
741
786
  /**
742
- * @typedef TokenResponse
787
+ * @typedef TokenResponseSchema
743
788
  * @property {Tokens} [tokens]
744
789
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
745
790
  * of the token
@@ -1081,12 +1126,12 @@ const Joi = require("joi");
1081
1126
  */
1082
1127
 
1083
1128
  /**
1084
- * @typedef AppFeatureRequest
1129
+ * @typedef AppFeatureRequestSchema
1085
1130
  * @property {AppFeature} [feature]
1086
1131
  */
1087
1132
 
1088
1133
  /**
1089
- * @typedef AppFeatureResponse
1134
+ * @typedef AppFeatureResponseSchema
1090
1135
  * @property {AppFeature} [feature]
1091
1136
  */
1092
1137
 
@@ -1247,7 +1292,7 @@ const Joi = require("joi");
1247
1292
  */
1248
1293
 
1249
1294
  /**
1250
- * @typedef InvalidPayloadRequest
1295
+ * @typedef InvalidPayloadRequestSchema
1251
1296
  * @property {string} [message] - Error message when request body payload is improper
1252
1297
  * @property {boolean} [success] - Flag for required not successfull.
1253
1298
  */
@@ -1435,12 +1480,12 @@ const Joi = require("joi");
1435
1480
  */
1436
1481
 
1437
1482
  /**
1438
- * @typedef CurrenciesResponse
1483
+ * @typedef CurrenciesResponseSchema
1439
1484
  * @property {Currency[]} [items]
1440
1485
  */
1441
1486
 
1442
1487
  /**
1443
- * @typedef AppCurrencyResponse
1488
+ * @typedef AppCurrencyResponseSchema
1444
1489
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
1445
1490
  * of the currency configuration supported by the application
1446
1491
  * @property {string} [application] - Alphanumeric ID allotted to an application
@@ -1506,15 +1551,54 @@ const Joi = require("joi");
1506
1551
  */
1507
1552
 
1508
1553
  /**
1509
- * @typedef OrderingStoresResponse
1554
+ * @typedef OrderingStoresResponseSchema
1510
1555
  * @property {Page} [page]
1511
1556
  * @property {OrderingStore[]} [items]
1512
1557
  */
1513
1558
 
1559
+ /**
1560
+ * @typedef ValidationErrors
1561
+ * @property {ValidationError[]} errors
1562
+ */
1563
+
1564
+ /**
1565
+ * @typedef ValidationError
1566
+ * @property {string} message - A brief description of the error encountered.
1567
+ * @property {string} field - The field in the request that caused the error.
1568
+ */
1569
+
1514
1570
  class ConfigurationPlatformModel {
1571
+ /** @returns {CurrencyExchangeResponseV2} */
1572
+ static CurrencyExchangeResponseV2() {
1573
+ return Joi.object({
1574
+ base: Joi.string().allow("").required(),
1575
+ base_currency_name: Joi.string().allow("").required(),
1576
+ ttl_seconds: Joi.number().required(),
1577
+ items: Joi.array()
1578
+ .items(ConfigurationPlatformModel.CurrencyExchangeItem())
1579
+ .required(),
1580
+ total: Joi.number().required(),
1581
+ });
1582
+ }
1583
+
1584
+ /** @returns {CurrencyExchangeItem} */
1585
+ static CurrencyExchangeItem() {
1586
+ return Joi.object({
1587
+ currency_code: Joi.string().allow("").required(),
1588
+ name: Joi.string().allow("").required(),
1589
+ rate: Joi.number().required(),
1590
+ country_code: Joi.string().allow("").required(),
1591
+ country_name: Joi.string().allow("").required(),
1592
+ subunit: Joi.string().allow("").required(),
1593
+ decimal_digits: Joi.number().required(),
1594
+ symbol: Joi.string().allow("").required(),
1595
+ });
1596
+ }
1597
+
1515
1598
  /** @returns {ApplicationInventory} */
1516
1599
  static ApplicationInventory() {
1517
1600
  return Joi.object({
1601
+ search: ConfigurationPlatformModel.SearchConfig(),
1518
1602
  inventory: ConfigurationPlatformModel.AppInventoryConfig(),
1519
1603
  authentication: ConfigurationPlatformModel.AuthenticationConfig(),
1520
1604
  article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
@@ -1546,6 +1630,29 @@ class ConfigurationPlatformModel {
1546
1630
  });
1547
1631
  }
1548
1632
 
1633
+ /** @returns {FstIdentification} */
1634
+ static FstIdentification() {
1635
+ return Joi.object({
1636
+ enabled: Joi.boolean(),
1637
+ });
1638
+ }
1639
+
1640
+ /** @returns {QuerySuggestions} */
1641
+ static QuerySuggestions() {
1642
+ return Joi.object({
1643
+ enabled: Joi.boolean(),
1644
+ max_limit: Joi.number(),
1645
+ });
1646
+ }
1647
+
1648
+ /** @returns {SearchConfig} */
1649
+ static SearchConfig() {
1650
+ return Joi.object({
1651
+ fst_identification: ConfigurationPlatformModel.FstIdentification(),
1652
+ query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
1653
+ });
1654
+ }
1655
+
1549
1656
  /** @returns {AppInventoryConfig} */
1550
1657
  static AppInventoryConfig() {
1551
1658
  return Joi.object({
@@ -1780,6 +1887,7 @@ class ConfigurationPlatformModel {
1780
1887
  /** @returns {AppInventoryPartialUpdate} */
1781
1888
  static AppInventoryPartialUpdate() {
1782
1889
  return Joi.object({
1890
+ search: ConfigurationPlatformModel.SearchConfig(),
1783
1891
  reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
1784
1892
  cart: ConfigurationPlatformModel.AppCartConfig(),
1785
1893
  payment: ConfigurationPlatformModel.AppPaymentConfig(),
@@ -1797,24 +1905,24 @@ class ConfigurationPlatformModel {
1797
1905
  });
1798
1906
  }
1799
1907
 
1800
- /** @returns {CompanyByBrandsRequest} */
1801
- static CompanyByBrandsRequest() {
1908
+ /** @returns {CompanyByBrandsRequestSchema} */
1909
+ static CompanyByBrandsRequestSchema() {
1802
1910
  return Joi.object({
1803
1911
  brands: Joi.number().required(),
1804
1912
  search_text: Joi.string().allow(""),
1805
1913
  });
1806
1914
  }
1807
1915
 
1808
- /** @returns {CompanyByBrandsResponse} */
1809
- static CompanyByBrandsResponse() {
1916
+ /** @returns {CompanyByBrandsResponseSchema} */
1917
+ static CompanyByBrandsResponseSchema() {
1810
1918
  return Joi.object({
1811
1919
  items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
1812
1920
  page: ConfigurationPlatformModel.Page(),
1813
1921
  });
1814
1922
  }
1815
1923
 
1816
- /** @returns {StoreByBrandsRequest} */
1817
- static StoreByBrandsRequest() {
1924
+ /** @returns {StoreByBrandsRequestSchema} */
1925
+ static StoreByBrandsRequestSchema() {
1818
1926
  return Joi.object({
1819
1927
  company_id: Joi.number(),
1820
1928
  brands: Joi.number().required(),
@@ -1822,8 +1930,8 @@ class ConfigurationPlatformModel {
1822
1930
  });
1823
1931
  }
1824
1932
 
1825
- /** @returns {StoreByBrandsResponse} */
1826
- static StoreByBrandsResponse() {
1933
+ /** @returns {StoreByBrandsResponseSchema} */
1934
+ static StoreByBrandsResponseSchema() {
1827
1935
  return Joi.object({
1828
1936
  items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
1829
1937
  page: ConfigurationPlatformModel.Page(),
@@ -1853,15 +1961,15 @@ class ConfigurationPlatformModel {
1853
1961
  });
1854
1962
  }
1855
1963
 
1856
- /** @returns {BrandsByCompanyResponse} */
1857
- static BrandsByCompanyResponse() {
1964
+ /** @returns {BrandsByCompanyResponseSchema} */
1965
+ static BrandsByCompanyResponseSchema() {
1858
1966
  return Joi.object({
1859
1967
  brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
1860
1968
  });
1861
1969
  }
1862
1970
 
1863
- /** @returns {ValidationFailedResponse} */
1864
- static ValidationFailedResponse() {
1971
+ /** @returns {ValidationFailedResponseSchema} */
1972
+ static ValidationFailedResponseSchema() {
1865
1973
  return Joi.object({
1866
1974
  message: Joi.string().allow(""),
1867
1975
  });
@@ -1900,8 +2008,8 @@ class ConfigurationPlatformModel {
1900
2008
  });
1901
2009
  }
1902
2010
 
1903
- /** @returns {CreateApplicationRequest} */
1904
- static CreateApplicationRequest() {
2011
+ /** @returns {CreateApplicationRequestSchema} */
2012
+ static CreateApplicationRequestSchema() {
1905
2013
  return Joi.object({
1906
2014
  app: ConfigurationPlatformModel.App(),
1907
2015
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
@@ -1909,16 +2017,16 @@ class ConfigurationPlatformModel {
1909
2017
  });
1910
2018
  }
1911
2019
 
1912
- /** @returns {CreateAppResponse} */
1913
- static CreateAppResponse() {
2020
+ /** @returns {CreateAppResponseSchema} */
2021
+ static CreateAppResponseSchema() {
1914
2022
  return Joi.object({
1915
2023
  app: ConfigurationPlatformModel.Application(),
1916
2024
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
1917
2025
  });
1918
2026
  }
1919
2027
 
1920
- /** @returns {ApplicationsResponse} */
1921
- static ApplicationsResponse() {
2028
+ /** @returns {ApplicationsResponseSchema} */
2029
+ static ApplicationsResponseSchema() {
1922
2030
  return Joi.object({
1923
2031
  items: Joi.array().items(ConfigurationPlatformModel.Application()),
1924
2032
  page: ConfigurationPlatformModel.Page(),
@@ -1958,8 +2066,8 @@ class ConfigurationPlatformModel {
1958
2066
  });
1959
2067
  }
1960
2068
 
1961
- /** @returns {MobileAppConfigRequest} */
1962
- static MobileAppConfigRequest() {
2069
+ /** @returns {MobileAppConfigRequestSchema} */
2070
+ static MobileAppConfigRequestSchema() {
1963
2071
  return Joi.object({
1964
2072
  app_name: Joi.string().allow(""),
1965
2073
  landing_image: ConfigurationPlatformModel.LandingImage(),
@@ -2025,8 +2133,8 @@ class ConfigurationPlatformModel {
2025
2133
  });
2026
2134
  }
2027
2135
 
2028
- /** @returns {DomainAddRequest} */
2029
- static DomainAddRequest() {
2136
+ /** @returns {DomainAddRequestSchema} */
2137
+ static DomainAddRequestSchema() {
2030
2138
  return Joi.object({
2031
2139
  domain: ConfigurationPlatformModel.DomainAdd(),
2032
2140
  });
@@ -2045,8 +2153,8 @@ class ConfigurationPlatformModel {
2045
2153
  });
2046
2154
  }
2047
2155
 
2048
- /** @returns {DomainsResponse} */
2049
- static DomainsResponse() {
2156
+ /** @returns {DomainsResponseSchema} */
2157
+ static DomainsResponseSchema() {
2050
2158
  return Joi.object({
2051
2159
  domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
2052
2160
  });
@@ -2063,16 +2171,16 @@ class ConfigurationPlatformModel {
2063
2171
  });
2064
2172
  }
2065
2173
 
2066
- /** @returns {UpdateDomainTypeRequest} */
2067
- static UpdateDomainTypeRequest() {
2174
+ /** @returns {UpdateDomainTypeRequestSchema} */
2175
+ static UpdateDomainTypeRequestSchema() {
2068
2176
  return Joi.object({
2069
2177
  domain: ConfigurationPlatformModel.UpdateDomain(),
2070
2178
  action: Joi.string().allow(""),
2071
2179
  });
2072
2180
  }
2073
2181
 
2074
- /** @returns {DomainStatusRequest} */
2075
- static DomainStatusRequest() {
2182
+ /** @returns {DomainStatusRequestSchema} */
2183
+ static DomainStatusRequestSchema() {
2076
2184
  return Joi.object({
2077
2185
  domain_url: Joi.string().allow(""),
2078
2186
  });
@@ -2086,19 +2194,19 @@ class ConfigurationPlatformModel {
2086
2194
  });
2087
2195
  }
2088
2196
 
2089
- /** @returns {DomainStatusResponse} */
2090
- static DomainStatusResponse() {
2197
+ /** @returns {DomainStatusResponseSchema} */
2198
+ static DomainStatusResponseSchema() {
2091
2199
  return Joi.object({
2092
2200
  connected: Joi.boolean(),
2093
2201
  status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
2094
2202
  });
2095
2203
  }
2096
2204
 
2097
- /** @returns {DomainSuggestionsRequest} */
2098
- static DomainSuggestionsRequest() {
2205
+ /** @returns {DomainSuggestionsRequestSchema} */
2206
+ static DomainSuggestionsRequestSchema() {
2099
2207
  return Joi.object({
2100
2208
  domain_url: Joi.string().allow(""),
2101
- custom: Joi.boolean(),
2209
+ custom_domain: Joi.boolean(),
2102
2210
  });
2103
2211
  }
2104
2212
 
@@ -2113,15 +2221,15 @@ class ConfigurationPlatformModel {
2113
2221
  });
2114
2222
  }
2115
2223
 
2116
- /** @returns {DomainSuggestionsResponse} */
2117
- static DomainSuggestionsResponse() {
2224
+ /** @returns {DomainSuggestionsResponseSchema} */
2225
+ static DomainSuggestionsResponseSchema() {
2118
2226
  return Joi.object({
2119
2227
  domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
2120
2228
  });
2121
2229
  }
2122
2230
 
2123
- /** @returns {SuccessMessageResponse} */
2124
- static SuccessMessageResponse() {
2231
+ /** @returns {SuccessMessageResponseSchema} */
2232
+ static SuccessMessageResponseSchema() {
2125
2233
  return Joi.object({
2126
2234
  success: Joi.boolean(),
2127
2235
  message: Joi.string().allow(""),
@@ -2146,8 +2254,8 @@ class ConfigurationPlatformModel {
2146
2254
  });
2147
2255
  }
2148
2256
 
2149
- /** @returns {CompaniesResponse} */
2150
- static CompaniesResponse() {
2257
+ /** @returns {CompaniesResponseSchema} */
2258
+ static CompaniesResponseSchema() {
2151
2259
  return Joi.object({
2152
2260
  items: Joi.array().items(
2153
2261
  ConfigurationPlatformModel.AppInventoryCompanies()
@@ -2165,8 +2273,8 @@ class ConfigurationPlatformModel {
2165
2273
  });
2166
2274
  }
2167
2275
 
2168
- /** @returns {StoresResponse} */
2169
- static StoresResponse() {
2276
+ /** @returns {StoresResponseSchema} */
2277
+ static StoresResponseSchema() {
2170
2278
  return Joi.object({
2171
2279
  items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
2172
2280
  page: ConfigurationPlatformModel.Page(),
@@ -2189,8 +2297,8 @@ class ConfigurationPlatformModel {
2189
2297
  });
2190
2298
  }
2191
2299
 
2192
- /** @returns {FilterOrderingStoreRequest} */
2193
- static FilterOrderingStoreRequest() {
2300
+ /** @returns {FilterOrderingStoreRequestSchema} */
2301
+ static FilterOrderingStoreRequestSchema() {
2194
2302
  return Joi.object({
2195
2303
  all_stores: Joi.boolean(),
2196
2304
  deployed_stores: Joi.array().items(Joi.number()),
@@ -2218,8 +2326,8 @@ class ConfigurationPlatformModel {
2218
2326
  });
2219
2327
  }
2220
2328
 
2221
- /** @returns {OrderingStoreSelectRequest} */
2222
- static OrderingStoreSelectRequest() {
2329
+ /** @returns {OrderingStoreSelectRequestSchema} */
2330
+ static OrderingStoreSelectRequestSchema() {
2223
2331
  return Joi.object({
2224
2332
  ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
2225
2333
  });
@@ -2262,8 +2370,8 @@ class ConfigurationPlatformModel {
2262
2370
  });
2263
2371
  }
2264
2372
 
2265
- /** @returns {OptedApplicationResponse} */
2266
- static OptedApplicationResponse() {
2373
+ /** @returns {OptedApplicationResponseSchema} */
2374
+ static OptedApplicationResponseSchema() {
2267
2375
  return Joi.object({
2268
2376
  name: Joi.string().allow(""),
2269
2377
  description: Joi.string().allow(""),
@@ -2323,8 +2431,8 @@ class ConfigurationPlatformModel {
2323
2431
  });
2324
2432
  }
2325
2433
 
2326
- /** @returns {TokenResponse} */
2327
- static TokenResponse() {
2434
+ /** @returns {TokenResponseSchema} */
2435
+ static TokenResponseSchema() {
2328
2436
  return Joi.object({
2329
2437
  tokens: ConfigurationPlatformModel.Tokens(),
2330
2438
  _id: Joi.string().allow(""),
@@ -2530,8 +2638,8 @@ class ConfigurationPlatformModel {
2530
2638
  static LaunchPage() {
2531
2639
  return Joi.object({
2532
2640
  page_type: Joi.string().allow(""),
2533
- params: Joi.any(),
2534
- query: Joi.any(),
2641
+ params: Joi.object().pattern(/\S/, Joi.any()),
2642
+ query: Joi.object().pattern(/\S/, Joi.any()),
2535
2643
  });
2536
2644
  }
2537
2645
 
@@ -2697,15 +2805,15 @@ class ConfigurationPlatformModel {
2697
2805
  });
2698
2806
  }
2699
2807
 
2700
- /** @returns {AppFeatureRequest} */
2701
- static AppFeatureRequest() {
2808
+ /** @returns {AppFeatureRequestSchema} */
2809
+ static AppFeatureRequestSchema() {
2702
2810
  return Joi.object({
2703
2811
  feature: ConfigurationPlatformModel.AppFeature(),
2704
2812
  });
2705
2813
  }
2706
2814
 
2707
- /** @returns {AppFeatureResponse} */
2708
- static AppFeatureResponse() {
2815
+ /** @returns {AppFeatureResponseSchema} */
2816
+ static AppFeatureResponseSchema() {
2709
2817
  return Joi.object({
2710
2818
  feature: ConfigurationPlatformModel.AppFeature(),
2711
2819
  });
@@ -2867,8 +2975,8 @@ class ConfigurationPlatformModel {
2867
2975
  });
2868
2976
  }
2869
2977
 
2870
- /** @returns {InvalidPayloadRequest} */
2871
- static InvalidPayloadRequest() {
2978
+ /** @returns {InvalidPayloadRequestSchema} */
2979
+ static InvalidPayloadRequestSchema() {
2872
2980
  return Joi.object({
2873
2981
  message: Joi.string().allow(""),
2874
2982
  success: Joi.boolean(),
@@ -3096,15 +3204,15 @@ class ConfigurationPlatformModel {
3096
3204
  });
3097
3205
  }
3098
3206
 
3099
- /** @returns {CurrenciesResponse} */
3100
- static CurrenciesResponse() {
3207
+ /** @returns {CurrenciesResponseSchema} */
3208
+ static CurrenciesResponseSchema() {
3101
3209
  return Joi.object({
3102
3210
  items: Joi.array().items(ConfigurationPlatformModel.Currency()),
3103
3211
  });
3104
3212
  }
3105
3213
 
3106
- /** @returns {AppCurrencyResponse} */
3107
- static AppCurrencyResponse() {
3214
+ /** @returns {AppCurrencyResponseSchema} */
3215
+ static AppCurrencyResponseSchema() {
3108
3216
  return Joi.object({
3109
3217
  _id: Joi.string().allow(""),
3110
3218
  application: Joi.string().allow(""),
@@ -3171,12 +3279,29 @@ class ConfigurationPlatformModel {
3171
3279
  });
3172
3280
  }
3173
3281
 
3174
- /** @returns {OrderingStoresResponse} */
3175
- static OrderingStoresResponse() {
3282
+ /** @returns {OrderingStoresResponseSchema} */
3283
+ static OrderingStoresResponseSchema() {
3176
3284
  return Joi.object({
3177
3285
  page: ConfigurationPlatformModel.Page(),
3178
3286
  items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
3179
3287
  });
3180
3288
  }
3289
+
3290
+ /** @returns {ValidationErrors} */
3291
+ static ValidationErrors() {
3292
+ return Joi.object({
3293
+ errors: Joi.array()
3294
+ .items(ConfigurationPlatformModel.ValidationError())
3295
+ .required(),
3296
+ });
3297
+ }
3298
+
3299
+ /** @returns {ValidationError} */
3300
+ static ValidationError() {
3301
+ return Joi.object({
3302
+ message: Joi.string().allow("").required(),
3303
+ field: Joi.string().allow("").required(),
3304
+ });
3305
+ }
3181
3306
  }
3182
3307
  module.exports = ConfigurationPlatformModel;