@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +130 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
- package/sdk/application/Content/ContentApplicationClient.js +40 -60
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +62 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +895 -8
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- 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]
|
|
@@ -247,6 +290,7 @@ const Joi = require("joi");
|
|
|
247
290
|
|
|
248
291
|
/**
|
|
249
292
|
* @typedef AppInventoryPartialUpdate
|
|
293
|
+
* @property {SearchConfig} [search]
|
|
250
294
|
* @property {RewardPointsConfig} [reward_points]
|
|
251
295
|
* @property {AppCartConfig} [cart]
|
|
252
296
|
* @property {AppPaymentConfig} [payment]
|
|
@@ -263,19 +307,19 @@ const Joi = require("joi");
|
|
|
263
307
|
*/
|
|
264
308
|
|
|
265
309
|
/**
|
|
266
|
-
* @typedef
|
|
310
|
+
* @typedef CompanyByBrandsRequestSchema
|
|
267
311
|
* @property {number} brands - Brand UID
|
|
268
312
|
* @property {string} [search_text] - A search field for finding a company by its name
|
|
269
313
|
*/
|
|
270
314
|
|
|
271
315
|
/**
|
|
272
|
-
* @typedef
|
|
316
|
+
* @typedef CompanyByBrandsResponseSchema
|
|
273
317
|
* @property {BrandCompanyInfo[]} [items]
|
|
274
318
|
* @property {Page} [page]
|
|
275
319
|
*/
|
|
276
320
|
|
|
277
321
|
/**
|
|
278
|
-
* @typedef
|
|
322
|
+
* @typedef StoreByBrandsRequestSchema
|
|
279
323
|
* @property {number} [company_id] - Current company ID for current company
|
|
280
324
|
* stores only. Don't send in case cross-selling (franchise) is enabled.
|
|
281
325
|
* @property {number} brands - Brand UID
|
|
@@ -283,7 +327,7 @@ const Joi = require("joi");
|
|
|
283
327
|
*/
|
|
284
328
|
|
|
285
329
|
/**
|
|
286
|
-
* @typedef
|
|
330
|
+
* @typedef StoreByBrandsResponseSchema
|
|
287
331
|
* @property {BrandStoreInfo[]} [items]
|
|
288
332
|
* @property {Page} [page]
|
|
289
333
|
*/
|
|
@@ -311,12 +355,12 @@ const Joi = require("joi");
|
|
|
311
355
|
*/
|
|
312
356
|
|
|
313
357
|
/**
|
|
314
|
-
* @typedef
|
|
358
|
+
* @typedef BrandsByCompanyResponseSchema
|
|
315
359
|
* @property {CompanyBrandInfo[]} [brands]
|
|
316
360
|
*/
|
|
317
361
|
|
|
318
362
|
/**
|
|
319
|
-
* @typedef
|
|
363
|
+
* @typedef ValidationFailedResponseSchema
|
|
320
364
|
* @property {string} [message] - Response message for failed validation
|
|
321
365
|
*/
|
|
322
366
|
|
|
@@ -348,20 +392,20 @@ const Joi = require("joi");
|
|
|
348
392
|
*/
|
|
349
393
|
|
|
350
394
|
/**
|
|
351
|
-
* @typedef
|
|
395
|
+
* @typedef CreateApplicationRequestSchema
|
|
352
396
|
* @property {App} [app]
|
|
353
397
|
* @property {ApplicationInventory} [configuration]
|
|
354
398
|
* @property {AppDomain} [domain]
|
|
355
399
|
*/
|
|
356
400
|
|
|
357
401
|
/**
|
|
358
|
-
* @typedef
|
|
402
|
+
* @typedef CreateAppResponseSchema
|
|
359
403
|
* @property {Application} [app]
|
|
360
404
|
* @property {ApplicationInventory} [configuration]
|
|
361
405
|
*/
|
|
362
406
|
|
|
363
407
|
/**
|
|
364
|
-
* @typedef
|
|
408
|
+
* @typedef ApplicationsResponseSchema
|
|
365
409
|
* @property {Application[]} [items]
|
|
366
410
|
* @property {Page} [page]
|
|
367
411
|
*/
|
|
@@ -399,7 +443,7 @@ const Joi = require("joi");
|
|
|
399
443
|
*/
|
|
400
444
|
|
|
401
445
|
/**
|
|
402
|
-
* @typedef
|
|
446
|
+
* @typedef MobileAppConfigRequestSchema
|
|
403
447
|
* @property {string} [app_name] - Name of the mobile app
|
|
404
448
|
* @property {LandingImage} [landing_image]
|
|
405
449
|
* @property {SplashImage} [splash_image]
|
|
@@ -471,7 +515,7 @@ const Joi = require("joi");
|
|
|
471
515
|
*/
|
|
472
516
|
|
|
473
517
|
/**
|
|
474
|
-
* @typedef
|
|
518
|
+
* @typedef DomainAddRequestSchema
|
|
475
519
|
* @property {DomainAdd} [domain]
|
|
476
520
|
*/
|
|
477
521
|
|
|
@@ -490,7 +534,7 @@ const Joi = require("joi");
|
|
|
490
534
|
*/
|
|
491
535
|
|
|
492
536
|
/**
|
|
493
|
-
* @typedef
|
|
537
|
+
* @typedef DomainsResponseSchema
|
|
494
538
|
* @property {Domain[]} [domains]
|
|
495
539
|
*/
|
|
496
540
|
|
|
@@ -508,14 +552,14 @@ const Joi = require("joi");
|
|
|
508
552
|
*/
|
|
509
553
|
|
|
510
554
|
/**
|
|
511
|
-
* @typedef
|
|
555
|
+
* @typedef UpdateDomainTypeRequestSchema
|
|
512
556
|
* @property {UpdateDomain} [domain]
|
|
513
557
|
* @property {string} [action] - Shows domain is made primary domain for the
|
|
514
558
|
* sales channel or shorlink is created for the sales channel domain
|
|
515
559
|
*/
|
|
516
560
|
|
|
517
561
|
/**
|
|
518
|
-
* @typedef
|
|
562
|
+
* @typedef DomainStatusRequestSchema
|
|
519
563
|
* @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
|
|
520
564
|
*/
|
|
521
565
|
|
|
@@ -527,16 +571,17 @@ const Joi = require("joi");
|
|
|
527
571
|
*/
|
|
528
572
|
|
|
529
573
|
/**
|
|
530
|
-
* @typedef
|
|
574
|
+
* @typedef DomainStatusResponseSchema
|
|
531
575
|
* @property {boolean} [connected] - Check if domain is live and mapped to
|
|
532
576
|
* appropriate IP of Fynd Servers
|
|
533
577
|
* @property {DomainStatus[]} [status]
|
|
534
578
|
*/
|
|
535
579
|
|
|
536
580
|
/**
|
|
537
|
-
* @typedef
|
|
581
|
+
* @typedef DomainSuggestionsRequestSchema
|
|
538
582
|
* @property {string} [domain_url] - Domain url
|
|
539
|
-
* @property {boolean} [
|
|
583
|
+
* @property {boolean} [custom_domain] - Get suggestions for custom domains or
|
|
584
|
+
* Fynd domains
|
|
540
585
|
*/
|
|
541
586
|
|
|
542
587
|
/**
|
|
@@ -551,12 +596,12 @@ const Joi = require("joi");
|
|
|
551
596
|
*/
|
|
552
597
|
|
|
553
598
|
/**
|
|
554
|
-
* @typedef
|
|
599
|
+
* @typedef DomainSuggestionsResponseSchema
|
|
555
600
|
* @property {DomainSuggestion[]} [domains] - Domain URL
|
|
556
601
|
*/
|
|
557
602
|
|
|
558
603
|
/**
|
|
559
|
-
* @typedef
|
|
604
|
+
* @typedef SuccessMessageResponseSchema
|
|
560
605
|
* @property {boolean} [success] - Shows whether domain was deleted successfully
|
|
561
606
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
562
607
|
*/
|
|
@@ -578,7 +623,7 @@ const Joi = require("joi");
|
|
|
578
623
|
*/
|
|
579
624
|
|
|
580
625
|
/**
|
|
581
|
-
* @typedef
|
|
626
|
+
* @typedef CompaniesResponseSchema
|
|
582
627
|
* @property {AppInventoryCompanies[]} [items]
|
|
583
628
|
* @property {Page} [page]
|
|
584
629
|
*/
|
|
@@ -592,7 +637,7 @@ const Joi = require("joi");
|
|
|
592
637
|
*/
|
|
593
638
|
|
|
594
639
|
/**
|
|
595
|
-
* @typedef
|
|
640
|
+
* @typedef StoresResponseSchema
|
|
596
641
|
* @property {AppInventoryStores[]} [items]
|
|
597
642
|
* @property {Page} [page]
|
|
598
643
|
*/
|
|
@@ -619,7 +664,7 @@ const Joi = require("joi");
|
|
|
619
664
|
*/
|
|
620
665
|
|
|
621
666
|
/**
|
|
622
|
-
* @typedef
|
|
667
|
+
* @typedef FilterOrderingStoreRequestSchema
|
|
623
668
|
* @property {boolean} [all_stores] - Allow all stores from the ordering stores
|
|
624
669
|
* @property {number[]} [deployed_stores]
|
|
625
670
|
* @property {string} [q] - Store code or name of the ordering store
|
|
@@ -646,7 +691,7 @@ const Joi = require("joi");
|
|
|
646
691
|
*/
|
|
647
692
|
|
|
648
693
|
/**
|
|
649
|
-
* @typedef
|
|
694
|
+
* @typedef OrderingStoreSelectRequestSchema
|
|
650
695
|
* @property {OrderingStoreSelect} ordering_store
|
|
651
696
|
*/
|
|
652
697
|
|
|
@@ -680,7 +725,7 @@ const Joi = require("joi");
|
|
|
680
725
|
*/
|
|
681
726
|
|
|
682
727
|
/**
|
|
683
|
-
* @typedef
|
|
728
|
+
* @typedef OptedApplicationResponseSchema
|
|
684
729
|
* @property {string} [name] - Name of the other seller's sales channel
|
|
685
730
|
* @property {string} [description] - Basic details about the other seller's sales channel
|
|
686
731
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -737,7 +782,7 @@ const Joi = require("joi");
|
|
|
737
782
|
*/
|
|
738
783
|
|
|
739
784
|
/**
|
|
740
|
-
* @typedef
|
|
785
|
+
* @typedef TokenResponseSchema
|
|
741
786
|
* @property {Tokens} [tokens]
|
|
742
787
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
743
788
|
* of the token
|
|
@@ -1079,12 +1124,12 @@ const Joi = require("joi");
|
|
|
1079
1124
|
*/
|
|
1080
1125
|
|
|
1081
1126
|
/**
|
|
1082
|
-
* @typedef
|
|
1127
|
+
* @typedef AppFeatureRequestSchema
|
|
1083
1128
|
* @property {AppFeature} [feature]
|
|
1084
1129
|
*/
|
|
1085
1130
|
|
|
1086
1131
|
/**
|
|
1087
|
-
* @typedef
|
|
1132
|
+
* @typedef AppFeatureResponseSchema
|
|
1088
1133
|
* @property {AppFeature} [feature]
|
|
1089
1134
|
*/
|
|
1090
1135
|
|
|
@@ -1245,7 +1290,7 @@ const Joi = require("joi");
|
|
|
1245
1290
|
*/
|
|
1246
1291
|
|
|
1247
1292
|
/**
|
|
1248
|
-
* @typedef
|
|
1293
|
+
* @typedef InvalidPayloadRequestSchema
|
|
1249
1294
|
* @property {string} [message] - Error message when request body payload is improper
|
|
1250
1295
|
* @property {boolean} [success] - Flag for required not successfull.
|
|
1251
1296
|
*/
|
|
@@ -1433,12 +1478,12 @@ const Joi = require("joi");
|
|
|
1433
1478
|
*/
|
|
1434
1479
|
|
|
1435
1480
|
/**
|
|
1436
|
-
* @typedef
|
|
1481
|
+
* @typedef CurrenciesResponseSchema
|
|
1437
1482
|
* @property {Currency[]} [items]
|
|
1438
1483
|
*/
|
|
1439
1484
|
|
|
1440
1485
|
/**
|
|
1441
|
-
* @typedef
|
|
1486
|
+
* @typedef AppCurrencyResponseSchema
|
|
1442
1487
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
1443
1488
|
* of the currency configuration supported by the application
|
|
1444
1489
|
* @property {string} [application] - Alphanumeric ID allotted to an application
|
|
@@ -1504,15 +1549,54 @@ const Joi = require("joi");
|
|
|
1504
1549
|
*/
|
|
1505
1550
|
|
|
1506
1551
|
/**
|
|
1507
|
-
* @typedef
|
|
1552
|
+
* @typedef OrderingStoresResponseSchema
|
|
1508
1553
|
* @property {Page} [page]
|
|
1509
1554
|
* @property {OrderingStore[]} [items]
|
|
1510
1555
|
*/
|
|
1511
1556
|
|
|
1557
|
+
/**
|
|
1558
|
+
* @typedef ValidationErrors
|
|
1559
|
+
* @property {ValidationError[]} errors
|
|
1560
|
+
*/
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* @typedef ValidationError
|
|
1564
|
+
* @property {string} message - A brief description of the error encountered.
|
|
1565
|
+
* @property {string} field - The field in the request that caused the error.
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1512
1568
|
class ConfigurationPlatformModel {
|
|
1569
|
+
/** @returns {CurrencyExchangeResponseV2} */
|
|
1570
|
+
static CurrencyExchangeResponseV2() {
|
|
1571
|
+
return Joi.object({
|
|
1572
|
+
base: Joi.string().allow("").required(),
|
|
1573
|
+
base_currency_name: Joi.string().allow("").required(),
|
|
1574
|
+
ttl_seconds: Joi.number().required(),
|
|
1575
|
+
items: Joi.array()
|
|
1576
|
+
.items(ConfigurationPlatformModel.CurrencyExchangeItem())
|
|
1577
|
+
.required(),
|
|
1578
|
+
total: Joi.number().required(),
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
/** @returns {CurrencyExchangeItem} */
|
|
1583
|
+
static CurrencyExchangeItem() {
|
|
1584
|
+
return Joi.object({
|
|
1585
|
+
currency_code: Joi.string().allow("").required(),
|
|
1586
|
+
name: Joi.string().allow("").required(),
|
|
1587
|
+
rate: Joi.number().required(),
|
|
1588
|
+
country_code: Joi.string().allow("").required(),
|
|
1589
|
+
country_name: Joi.string().allow("").required(),
|
|
1590
|
+
subunit: Joi.string().allow("").required(),
|
|
1591
|
+
decimal_digits: Joi.number().required(),
|
|
1592
|
+
symbol: Joi.string().allow("").required(),
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1513
1596
|
/** @returns {ApplicationInventory} */
|
|
1514
1597
|
static ApplicationInventory() {
|
|
1515
1598
|
return Joi.object({
|
|
1599
|
+
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1516
1600
|
inventory: ConfigurationPlatformModel.AppInventoryConfig(),
|
|
1517
1601
|
authentication: ConfigurationPlatformModel.AuthenticationConfig(),
|
|
1518
1602
|
article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
|
|
@@ -1544,6 +1628,29 @@ class ConfigurationPlatformModel {
|
|
|
1544
1628
|
});
|
|
1545
1629
|
}
|
|
1546
1630
|
|
|
1631
|
+
/** @returns {FstIdentification} */
|
|
1632
|
+
static FstIdentification() {
|
|
1633
|
+
return Joi.object({
|
|
1634
|
+
enabled: Joi.boolean(),
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/** @returns {QuerySuggestions} */
|
|
1639
|
+
static QuerySuggestions() {
|
|
1640
|
+
return Joi.object({
|
|
1641
|
+
enabled: Joi.boolean(),
|
|
1642
|
+
max_limit: Joi.number(),
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/** @returns {SearchConfig} */
|
|
1647
|
+
static SearchConfig() {
|
|
1648
|
+
return Joi.object({
|
|
1649
|
+
fst_identification: ConfigurationPlatformModel.FstIdentification(),
|
|
1650
|
+
query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1547
1654
|
/** @returns {AppInventoryConfig} */
|
|
1548
1655
|
static AppInventoryConfig() {
|
|
1549
1656
|
return Joi.object({
|
|
@@ -1777,6 +1884,7 @@ class ConfigurationPlatformModel {
|
|
|
1777
1884
|
/** @returns {AppInventoryPartialUpdate} */
|
|
1778
1885
|
static AppInventoryPartialUpdate() {
|
|
1779
1886
|
return Joi.object({
|
|
1887
|
+
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1780
1888
|
reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
|
|
1781
1889
|
cart: ConfigurationPlatformModel.AppCartConfig(),
|
|
1782
1890
|
payment: ConfigurationPlatformModel.AppPaymentConfig(),
|
|
@@ -1794,24 +1902,24 @@ class ConfigurationPlatformModel {
|
|
|
1794
1902
|
});
|
|
1795
1903
|
}
|
|
1796
1904
|
|
|
1797
|
-
/** @returns {
|
|
1798
|
-
static
|
|
1905
|
+
/** @returns {CompanyByBrandsRequestSchema} */
|
|
1906
|
+
static CompanyByBrandsRequestSchema() {
|
|
1799
1907
|
return Joi.object({
|
|
1800
1908
|
brands: Joi.number().required(),
|
|
1801
1909
|
search_text: Joi.string().allow(""),
|
|
1802
1910
|
});
|
|
1803
1911
|
}
|
|
1804
1912
|
|
|
1805
|
-
/** @returns {
|
|
1806
|
-
static
|
|
1913
|
+
/** @returns {CompanyByBrandsResponseSchema} */
|
|
1914
|
+
static CompanyByBrandsResponseSchema() {
|
|
1807
1915
|
return Joi.object({
|
|
1808
1916
|
items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
|
|
1809
1917
|
page: ConfigurationPlatformModel.Page(),
|
|
1810
1918
|
});
|
|
1811
1919
|
}
|
|
1812
1920
|
|
|
1813
|
-
/** @returns {
|
|
1814
|
-
static
|
|
1921
|
+
/** @returns {StoreByBrandsRequestSchema} */
|
|
1922
|
+
static StoreByBrandsRequestSchema() {
|
|
1815
1923
|
return Joi.object({
|
|
1816
1924
|
company_id: Joi.number(),
|
|
1817
1925
|
brands: Joi.number().required(),
|
|
@@ -1819,8 +1927,8 @@ class ConfigurationPlatformModel {
|
|
|
1819
1927
|
});
|
|
1820
1928
|
}
|
|
1821
1929
|
|
|
1822
|
-
/** @returns {
|
|
1823
|
-
static
|
|
1930
|
+
/** @returns {StoreByBrandsResponseSchema} */
|
|
1931
|
+
static StoreByBrandsResponseSchema() {
|
|
1824
1932
|
return Joi.object({
|
|
1825
1933
|
items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
|
|
1826
1934
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -1850,15 +1958,15 @@ class ConfigurationPlatformModel {
|
|
|
1850
1958
|
});
|
|
1851
1959
|
}
|
|
1852
1960
|
|
|
1853
|
-
/** @returns {
|
|
1854
|
-
static
|
|
1961
|
+
/** @returns {BrandsByCompanyResponseSchema} */
|
|
1962
|
+
static BrandsByCompanyResponseSchema() {
|
|
1855
1963
|
return Joi.object({
|
|
1856
1964
|
brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
|
|
1857
1965
|
});
|
|
1858
1966
|
}
|
|
1859
1967
|
|
|
1860
|
-
/** @returns {
|
|
1861
|
-
static
|
|
1968
|
+
/** @returns {ValidationFailedResponseSchema} */
|
|
1969
|
+
static ValidationFailedResponseSchema() {
|
|
1862
1970
|
return Joi.object({
|
|
1863
1971
|
message: Joi.string().allow(""),
|
|
1864
1972
|
});
|
|
@@ -1897,8 +2005,8 @@ class ConfigurationPlatformModel {
|
|
|
1897
2005
|
});
|
|
1898
2006
|
}
|
|
1899
2007
|
|
|
1900
|
-
/** @returns {
|
|
1901
|
-
static
|
|
2008
|
+
/** @returns {CreateApplicationRequestSchema} */
|
|
2009
|
+
static CreateApplicationRequestSchema() {
|
|
1902
2010
|
return Joi.object({
|
|
1903
2011
|
app: ConfigurationPlatformModel.App(),
|
|
1904
2012
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
@@ -1906,16 +2014,16 @@ class ConfigurationPlatformModel {
|
|
|
1906
2014
|
});
|
|
1907
2015
|
}
|
|
1908
2016
|
|
|
1909
|
-
/** @returns {
|
|
1910
|
-
static
|
|
2017
|
+
/** @returns {CreateAppResponseSchema} */
|
|
2018
|
+
static CreateAppResponseSchema() {
|
|
1911
2019
|
return Joi.object({
|
|
1912
2020
|
app: ConfigurationPlatformModel.Application(),
|
|
1913
2021
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
1914
2022
|
});
|
|
1915
2023
|
}
|
|
1916
2024
|
|
|
1917
|
-
/** @returns {
|
|
1918
|
-
static
|
|
2025
|
+
/** @returns {ApplicationsResponseSchema} */
|
|
2026
|
+
static ApplicationsResponseSchema() {
|
|
1919
2027
|
return Joi.object({
|
|
1920
2028
|
items: Joi.array().items(ConfigurationPlatformModel.Application()),
|
|
1921
2029
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -1955,8 +2063,8 @@ class ConfigurationPlatformModel {
|
|
|
1955
2063
|
});
|
|
1956
2064
|
}
|
|
1957
2065
|
|
|
1958
|
-
/** @returns {
|
|
1959
|
-
static
|
|
2066
|
+
/** @returns {MobileAppConfigRequestSchema} */
|
|
2067
|
+
static MobileAppConfigRequestSchema() {
|
|
1960
2068
|
return Joi.object({
|
|
1961
2069
|
app_name: Joi.string().allow(""),
|
|
1962
2070
|
landing_image: ConfigurationPlatformModel.LandingImage(),
|
|
@@ -2022,8 +2130,8 @@ class ConfigurationPlatformModel {
|
|
|
2022
2130
|
});
|
|
2023
2131
|
}
|
|
2024
2132
|
|
|
2025
|
-
/** @returns {
|
|
2026
|
-
static
|
|
2133
|
+
/** @returns {DomainAddRequestSchema} */
|
|
2134
|
+
static DomainAddRequestSchema() {
|
|
2027
2135
|
return Joi.object({
|
|
2028
2136
|
domain: ConfigurationPlatformModel.DomainAdd(),
|
|
2029
2137
|
});
|
|
@@ -2042,8 +2150,8 @@ class ConfigurationPlatformModel {
|
|
|
2042
2150
|
});
|
|
2043
2151
|
}
|
|
2044
2152
|
|
|
2045
|
-
/** @returns {
|
|
2046
|
-
static
|
|
2153
|
+
/** @returns {DomainsResponseSchema} */
|
|
2154
|
+
static DomainsResponseSchema() {
|
|
2047
2155
|
return Joi.object({
|
|
2048
2156
|
domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
|
|
2049
2157
|
});
|
|
@@ -2060,16 +2168,16 @@ class ConfigurationPlatformModel {
|
|
|
2060
2168
|
});
|
|
2061
2169
|
}
|
|
2062
2170
|
|
|
2063
|
-
/** @returns {
|
|
2064
|
-
static
|
|
2171
|
+
/** @returns {UpdateDomainTypeRequestSchema} */
|
|
2172
|
+
static UpdateDomainTypeRequestSchema() {
|
|
2065
2173
|
return Joi.object({
|
|
2066
2174
|
domain: ConfigurationPlatformModel.UpdateDomain(),
|
|
2067
2175
|
action: Joi.string().allow(""),
|
|
2068
2176
|
});
|
|
2069
2177
|
}
|
|
2070
2178
|
|
|
2071
|
-
/** @returns {
|
|
2072
|
-
static
|
|
2179
|
+
/** @returns {DomainStatusRequestSchema} */
|
|
2180
|
+
static DomainStatusRequestSchema() {
|
|
2073
2181
|
return Joi.object({
|
|
2074
2182
|
domain_url: Joi.string().allow(""),
|
|
2075
2183
|
});
|
|
@@ -2083,19 +2191,19 @@ class ConfigurationPlatformModel {
|
|
|
2083
2191
|
});
|
|
2084
2192
|
}
|
|
2085
2193
|
|
|
2086
|
-
/** @returns {
|
|
2087
|
-
static
|
|
2194
|
+
/** @returns {DomainStatusResponseSchema} */
|
|
2195
|
+
static DomainStatusResponseSchema() {
|
|
2088
2196
|
return Joi.object({
|
|
2089
2197
|
connected: Joi.boolean(),
|
|
2090
2198
|
status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
|
|
2091
2199
|
});
|
|
2092
2200
|
}
|
|
2093
2201
|
|
|
2094
|
-
/** @returns {
|
|
2095
|
-
static
|
|
2202
|
+
/** @returns {DomainSuggestionsRequestSchema} */
|
|
2203
|
+
static DomainSuggestionsRequestSchema() {
|
|
2096
2204
|
return Joi.object({
|
|
2097
2205
|
domain_url: Joi.string().allow(""),
|
|
2098
|
-
|
|
2206
|
+
custom_domain: Joi.boolean(),
|
|
2099
2207
|
});
|
|
2100
2208
|
}
|
|
2101
2209
|
|
|
@@ -2110,15 +2218,15 @@ class ConfigurationPlatformModel {
|
|
|
2110
2218
|
});
|
|
2111
2219
|
}
|
|
2112
2220
|
|
|
2113
|
-
/** @returns {
|
|
2114
|
-
static
|
|
2221
|
+
/** @returns {DomainSuggestionsResponseSchema} */
|
|
2222
|
+
static DomainSuggestionsResponseSchema() {
|
|
2115
2223
|
return Joi.object({
|
|
2116
2224
|
domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
|
|
2117
2225
|
});
|
|
2118
2226
|
}
|
|
2119
2227
|
|
|
2120
|
-
/** @returns {
|
|
2121
|
-
static
|
|
2228
|
+
/** @returns {SuccessMessageResponseSchema} */
|
|
2229
|
+
static SuccessMessageResponseSchema() {
|
|
2122
2230
|
return Joi.object({
|
|
2123
2231
|
success: Joi.boolean(),
|
|
2124
2232
|
message: Joi.string().allow(""),
|
|
@@ -2143,8 +2251,8 @@ class ConfigurationPlatformModel {
|
|
|
2143
2251
|
});
|
|
2144
2252
|
}
|
|
2145
2253
|
|
|
2146
|
-
/** @returns {
|
|
2147
|
-
static
|
|
2254
|
+
/** @returns {CompaniesResponseSchema} */
|
|
2255
|
+
static CompaniesResponseSchema() {
|
|
2148
2256
|
return Joi.object({
|
|
2149
2257
|
items: Joi.array().items(
|
|
2150
2258
|
ConfigurationPlatformModel.AppInventoryCompanies()
|
|
@@ -2162,8 +2270,8 @@ class ConfigurationPlatformModel {
|
|
|
2162
2270
|
});
|
|
2163
2271
|
}
|
|
2164
2272
|
|
|
2165
|
-
/** @returns {
|
|
2166
|
-
static
|
|
2273
|
+
/** @returns {StoresResponseSchema} */
|
|
2274
|
+
static StoresResponseSchema() {
|
|
2167
2275
|
return Joi.object({
|
|
2168
2276
|
items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
|
|
2169
2277
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -2186,8 +2294,8 @@ class ConfigurationPlatformModel {
|
|
|
2186
2294
|
});
|
|
2187
2295
|
}
|
|
2188
2296
|
|
|
2189
|
-
/** @returns {
|
|
2190
|
-
static
|
|
2297
|
+
/** @returns {FilterOrderingStoreRequestSchema} */
|
|
2298
|
+
static FilterOrderingStoreRequestSchema() {
|
|
2191
2299
|
return Joi.object({
|
|
2192
2300
|
all_stores: Joi.boolean(),
|
|
2193
2301
|
deployed_stores: Joi.array().items(Joi.number()),
|
|
@@ -2215,8 +2323,8 @@ class ConfigurationPlatformModel {
|
|
|
2215
2323
|
});
|
|
2216
2324
|
}
|
|
2217
2325
|
|
|
2218
|
-
/** @returns {
|
|
2219
|
-
static
|
|
2326
|
+
/** @returns {OrderingStoreSelectRequestSchema} */
|
|
2327
|
+
static OrderingStoreSelectRequestSchema() {
|
|
2220
2328
|
return Joi.object({
|
|
2221
2329
|
ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
|
|
2222
2330
|
});
|
|
@@ -2259,8 +2367,8 @@ class ConfigurationPlatformModel {
|
|
|
2259
2367
|
});
|
|
2260
2368
|
}
|
|
2261
2369
|
|
|
2262
|
-
/** @returns {
|
|
2263
|
-
static
|
|
2370
|
+
/** @returns {OptedApplicationResponseSchema} */
|
|
2371
|
+
static OptedApplicationResponseSchema() {
|
|
2264
2372
|
return Joi.object({
|
|
2265
2373
|
name: Joi.string().allow(""),
|
|
2266
2374
|
description: Joi.string().allow(""),
|
|
@@ -2320,8 +2428,8 @@ class ConfigurationPlatformModel {
|
|
|
2320
2428
|
});
|
|
2321
2429
|
}
|
|
2322
2430
|
|
|
2323
|
-
/** @returns {
|
|
2324
|
-
static
|
|
2431
|
+
/** @returns {TokenResponseSchema} */
|
|
2432
|
+
static TokenResponseSchema() {
|
|
2325
2433
|
return Joi.object({
|
|
2326
2434
|
tokens: ConfigurationPlatformModel.Tokens(),
|
|
2327
2435
|
_id: Joi.string().allow(""),
|
|
@@ -2527,8 +2635,8 @@ class ConfigurationPlatformModel {
|
|
|
2527
2635
|
static LaunchPage() {
|
|
2528
2636
|
return Joi.object({
|
|
2529
2637
|
page_type: Joi.string().allow(""),
|
|
2530
|
-
params: Joi.any(),
|
|
2531
|
-
query: Joi.any(),
|
|
2638
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
2639
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
2532
2640
|
});
|
|
2533
2641
|
}
|
|
2534
2642
|
|
|
@@ -2694,15 +2802,15 @@ class ConfigurationPlatformModel {
|
|
|
2694
2802
|
});
|
|
2695
2803
|
}
|
|
2696
2804
|
|
|
2697
|
-
/** @returns {
|
|
2698
|
-
static
|
|
2805
|
+
/** @returns {AppFeatureRequestSchema} */
|
|
2806
|
+
static AppFeatureRequestSchema() {
|
|
2699
2807
|
return Joi.object({
|
|
2700
2808
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2701
2809
|
});
|
|
2702
2810
|
}
|
|
2703
2811
|
|
|
2704
|
-
/** @returns {
|
|
2705
|
-
static
|
|
2812
|
+
/** @returns {AppFeatureResponseSchema} */
|
|
2813
|
+
static AppFeatureResponseSchema() {
|
|
2706
2814
|
return Joi.object({
|
|
2707
2815
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2708
2816
|
});
|
|
@@ -2864,8 +2972,8 @@ class ConfigurationPlatformModel {
|
|
|
2864
2972
|
});
|
|
2865
2973
|
}
|
|
2866
2974
|
|
|
2867
|
-
/** @returns {
|
|
2868
|
-
static
|
|
2975
|
+
/** @returns {InvalidPayloadRequestSchema} */
|
|
2976
|
+
static InvalidPayloadRequestSchema() {
|
|
2869
2977
|
return Joi.object({
|
|
2870
2978
|
message: Joi.string().allow(""),
|
|
2871
2979
|
success: Joi.boolean(),
|
|
@@ -3093,15 +3201,15 @@ class ConfigurationPlatformModel {
|
|
|
3093
3201
|
});
|
|
3094
3202
|
}
|
|
3095
3203
|
|
|
3096
|
-
/** @returns {
|
|
3097
|
-
static
|
|
3204
|
+
/** @returns {CurrenciesResponseSchema} */
|
|
3205
|
+
static CurrenciesResponseSchema() {
|
|
3098
3206
|
return Joi.object({
|
|
3099
3207
|
items: Joi.array().items(ConfigurationPlatformModel.Currency()),
|
|
3100
3208
|
});
|
|
3101
3209
|
}
|
|
3102
3210
|
|
|
3103
|
-
/** @returns {
|
|
3104
|
-
static
|
|
3211
|
+
/** @returns {AppCurrencyResponseSchema} */
|
|
3212
|
+
static AppCurrencyResponseSchema() {
|
|
3105
3213
|
return Joi.object({
|
|
3106
3214
|
_id: Joi.string().allow(""),
|
|
3107
3215
|
application: Joi.string().allow(""),
|
|
@@ -3168,12 +3276,29 @@ class ConfigurationPlatformModel {
|
|
|
3168
3276
|
});
|
|
3169
3277
|
}
|
|
3170
3278
|
|
|
3171
|
-
/** @returns {
|
|
3172
|
-
static
|
|
3279
|
+
/** @returns {OrderingStoresResponseSchema} */
|
|
3280
|
+
static OrderingStoresResponseSchema() {
|
|
3173
3281
|
return Joi.object({
|
|
3174
3282
|
page: ConfigurationPlatformModel.Page(),
|
|
3175
3283
|
items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
|
|
3176
3284
|
});
|
|
3177
3285
|
}
|
|
3286
|
+
|
|
3287
|
+
/** @returns {ValidationErrors} */
|
|
3288
|
+
static ValidationErrors() {
|
|
3289
|
+
return Joi.object({
|
|
3290
|
+
errors: Joi.array()
|
|
3291
|
+
.items(ConfigurationPlatformModel.ValidationError())
|
|
3292
|
+
.required(),
|
|
3293
|
+
});
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
/** @returns {ValidationError} */
|
|
3297
|
+
static ValidationError() {
|
|
3298
|
+
return Joi.object({
|
|
3299
|
+
message: Joi.string().allow("").required(),
|
|
3300
|
+
field: Joi.string().allow("").required(),
|
|
3301
|
+
});
|
|
3302
|
+
}
|
|
3178
3303
|
}
|
|
3179
3304
|
module.exports = ConfigurationPlatformModel;
|