@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4
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 +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- 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 +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -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 +2 -4
- 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/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- 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 +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- 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/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -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]
|
|
@@ -60,25 +36,6 @@ const Joi = require("joi");
|
|
|
60
36
|
* @property {boolean} [enabled]
|
|
61
37
|
*/
|
|
62
38
|
|
|
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
|
-
|
|
82
39
|
/**
|
|
83
40
|
* @typedef AppInventoryConfig
|
|
84
41
|
* @property {InventoryBrand} [brand]
|
|
@@ -99,6 +56,8 @@ const Joi = require("joi");
|
|
|
99
56
|
* @property {number} [company_id]
|
|
100
57
|
* @property {boolean} [enable_zone_overlapping] - Power product listing with
|
|
101
58
|
* overlapping zones
|
|
59
|
+
* @property {boolean} [sort_popular_first] - Give preference to popularity over
|
|
60
|
+
* score in product listing sort
|
|
102
61
|
*/
|
|
103
62
|
|
|
104
63
|
/**
|
|
@@ -290,7 +249,6 @@ const Joi = require("joi");
|
|
|
290
249
|
|
|
291
250
|
/**
|
|
292
251
|
* @typedef AppInventoryPartialUpdate
|
|
293
|
-
* @property {SearchConfig} [search]
|
|
294
252
|
* @property {RewardPointsConfig} [reward_points]
|
|
295
253
|
* @property {AppCartConfig} [cart]
|
|
296
254
|
* @property {AppPaymentConfig} [payment]
|
|
@@ -307,19 +265,19 @@ const Joi = require("joi");
|
|
|
307
265
|
*/
|
|
308
266
|
|
|
309
267
|
/**
|
|
310
|
-
* @typedef
|
|
268
|
+
* @typedef CompanyByBrandsRequest
|
|
311
269
|
* @property {number} brands - Brand UID
|
|
312
270
|
* @property {string} [search_text] - A search field for finding a company by its name
|
|
313
271
|
*/
|
|
314
272
|
|
|
315
273
|
/**
|
|
316
|
-
* @typedef
|
|
274
|
+
* @typedef CompanyByBrandsResponse
|
|
317
275
|
* @property {BrandCompanyInfo[]} [items]
|
|
318
276
|
* @property {Page} [page]
|
|
319
277
|
*/
|
|
320
278
|
|
|
321
279
|
/**
|
|
322
|
-
* @typedef
|
|
280
|
+
* @typedef StoreByBrandsRequest
|
|
323
281
|
* @property {number} [company_id] - Current company ID for current company
|
|
324
282
|
* stores only. Don't send in case cross-selling (franchise) is enabled.
|
|
325
283
|
* @property {number} brands - Brand UID
|
|
@@ -327,7 +285,7 @@ const Joi = require("joi");
|
|
|
327
285
|
*/
|
|
328
286
|
|
|
329
287
|
/**
|
|
330
|
-
* @typedef
|
|
288
|
+
* @typedef StoreByBrandsResponse
|
|
331
289
|
* @property {BrandStoreInfo[]} [items]
|
|
332
290
|
* @property {Page} [page]
|
|
333
291
|
*/
|
|
@@ -355,12 +313,12 @@ const Joi = require("joi");
|
|
|
355
313
|
*/
|
|
356
314
|
|
|
357
315
|
/**
|
|
358
|
-
* @typedef
|
|
316
|
+
* @typedef BrandsByCompanyResponse
|
|
359
317
|
* @property {CompanyBrandInfo[]} [brands]
|
|
360
318
|
*/
|
|
361
319
|
|
|
362
320
|
/**
|
|
363
|
-
* @typedef
|
|
321
|
+
* @typedef ValidationFailedResponse
|
|
364
322
|
* @property {string} [message] - Response message for failed validation
|
|
365
323
|
*/
|
|
366
324
|
|
|
@@ -392,20 +350,20 @@ const Joi = require("joi");
|
|
|
392
350
|
*/
|
|
393
351
|
|
|
394
352
|
/**
|
|
395
|
-
* @typedef
|
|
353
|
+
* @typedef CreateApplicationRequest
|
|
396
354
|
* @property {App} [app]
|
|
397
355
|
* @property {ApplicationInventory} [configuration]
|
|
398
356
|
* @property {AppDomain} [domain]
|
|
399
357
|
*/
|
|
400
358
|
|
|
401
359
|
/**
|
|
402
|
-
* @typedef
|
|
360
|
+
* @typedef CreateAppResponse
|
|
403
361
|
* @property {Application} [app]
|
|
404
362
|
* @property {ApplicationInventory} [configuration]
|
|
405
363
|
*/
|
|
406
364
|
|
|
407
365
|
/**
|
|
408
|
-
* @typedef
|
|
366
|
+
* @typedef ApplicationsResponse
|
|
409
367
|
* @property {Application[]} [items]
|
|
410
368
|
* @property {Page} [page]
|
|
411
369
|
*/
|
|
@@ -443,7 +401,7 @@ const Joi = require("joi");
|
|
|
443
401
|
*/
|
|
444
402
|
|
|
445
403
|
/**
|
|
446
|
-
* @typedef
|
|
404
|
+
* @typedef MobileAppConfigRequest
|
|
447
405
|
* @property {string} [app_name] - Name of the mobile app
|
|
448
406
|
* @property {LandingImage} [landing_image]
|
|
449
407
|
* @property {SplashImage} [splash_image]
|
|
@@ -515,7 +473,7 @@ const Joi = require("joi");
|
|
|
515
473
|
*/
|
|
516
474
|
|
|
517
475
|
/**
|
|
518
|
-
* @typedef
|
|
476
|
+
* @typedef DomainAddRequest
|
|
519
477
|
* @property {DomainAdd} [domain]
|
|
520
478
|
*/
|
|
521
479
|
|
|
@@ -534,7 +492,7 @@ const Joi = require("joi");
|
|
|
534
492
|
*/
|
|
535
493
|
|
|
536
494
|
/**
|
|
537
|
-
* @typedef
|
|
495
|
+
* @typedef DomainsResponse
|
|
538
496
|
* @property {Domain[]} [domains]
|
|
539
497
|
*/
|
|
540
498
|
|
|
@@ -552,14 +510,14 @@ const Joi = require("joi");
|
|
|
552
510
|
*/
|
|
553
511
|
|
|
554
512
|
/**
|
|
555
|
-
* @typedef
|
|
513
|
+
* @typedef UpdateDomainTypeRequest
|
|
556
514
|
* @property {UpdateDomain} [domain]
|
|
557
515
|
* @property {string} [action] - Shows domain is made primary domain for the
|
|
558
516
|
* sales channel or shorlink is created for the sales channel domain
|
|
559
517
|
*/
|
|
560
518
|
|
|
561
519
|
/**
|
|
562
|
-
* @typedef
|
|
520
|
+
* @typedef DomainStatusRequest
|
|
563
521
|
* @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
|
|
564
522
|
*/
|
|
565
523
|
|
|
@@ -571,17 +529,16 @@ const Joi = require("joi");
|
|
|
571
529
|
*/
|
|
572
530
|
|
|
573
531
|
/**
|
|
574
|
-
* @typedef
|
|
532
|
+
* @typedef DomainStatusResponse
|
|
575
533
|
* @property {boolean} [connected] - Check if domain is live and mapped to
|
|
576
534
|
* appropriate IP of Fynd Servers
|
|
577
535
|
* @property {DomainStatus[]} [status]
|
|
578
536
|
*/
|
|
579
537
|
|
|
580
538
|
/**
|
|
581
|
-
* @typedef
|
|
539
|
+
* @typedef DomainSuggestionsRequest
|
|
582
540
|
* @property {string} [domain_url] - Domain url
|
|
583
|
-
* @property {boolean} [
|
|
584
|
-
* Fynd domains
|
|
541
|
+
* @property {boolean} [custom] - Get suggestions for custom domains or Fynd domains
|
|
585
542
|
*/
|
|
586
543
|
|
|
587
544
|
/**
|
|
@@ -596,12 +553,12 @@ const Joi = require("joi");
|
|
|
596
553
|
*/
|
|
597
554
|
|
|
598
555
|
/**
|
|
599
|
-
* @typedef
|
|
556
|
+
* @typedef DomainSuggestionsResponse
|
|
600
557
|
* @property {DomainSuggestion[]} [domains] - Domain URL
|
|
601
558
|
*/
|
|
602
559
|
|
|
603
560
|
/**
|
|
604
|
-
* @typedef
|
|
561
|
+
* @typedef SuccessMessageResponse
|
|
605
562
|
* @property {boolean} [success] - Shows whether domain was deleted successfully
|
|
606
563
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
607
564
|
*/
|
|
@@ -623,7 +580,7 @@ const Joi = require("joi");
|
|
|
623
580
|
*/
|
|
624
581
|
|
|
625
582
|
/**
|
|
626
|
-
* @typedef
|
|
583
|
+
* @typedef CompaniesResponse
|
|
627
584
|
* @property {AppInventoryCompanies[]} [items]
|
|
628
585
|
* @property {Page} [page]
|
|
629
586
|
*/
|
|
@@ -637,7 +594,7 @@ const Joi = require("joi");
|
|
|
637
594
|
*/
|
|
638
595
|
|
|
639
596
|
/**
|
|
640
|
-
* @typedef
|
|
597
|
+
* @typedef StoresResponse
|
|
641
598
|
* @property {AppInventoryStores[]} [items]
|
|
642
599
|
* @property {Page} [page]
|
|
643
600
|
*/
|
|
@@ -664,7 +621,7 @@ const Joi = require("joi");
|
|
|
664
621
|
*/
|
|
665
622
|
|
|
666
623
|
/**
|
|
667
|
-
* @typedef
|
|
624
|
+
* @typedef FilterOrderingStoreRequest
|
|
668
625
|
* @property {boolean} [all_stores] - Allow all stores from the ordering stores
|
|
669
626
|
* @property {number[]} [deployed_stores]
|
|
670
627
|
* @property {string} [q] - Store code or name of the ordering store
|
|
@@ -691,7 +648,7 @@ const Joi = require("joi");
|
|
|
691
648
|
*/
|
|
692
649
|
|
|
693
650
|
/**
|
|
694
|
-
* @typedef
|
|
651
|
+
* @typedef OrderingStoreSelectRequest
|
|
695
652
|
* @property {OrderingStoreSelect} ordering_store
|
|
696
653
|
*/
|
|
697
654
|
|
|
@@ -725,7 +682,7 @@ const Joi = require("joi");
|
|
|
725
682
|
*/
|
|
726
683
|
|
|
727
684
|
/**
|
|
728
|
-
* @typedef
|
|
685
|
+
* @typedef OptedApplicationResponse
|
|
729
686
|
* @property {string} [name] - Name of the other seller's sales channel
|
|
730
687
|
* @property {string} [description] - Basic details about the other seller's sales channel
|
|
731
688
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -782,7 +739,7 @@ const Joi = require("joi");
|
|
|
782
739
|
*/
|
|
783
740
|
|
|
784
741
|
/**
|
|
785
|
-
* @typedef
|
|
742
|
+
* @typedef TokenResponse
|
|
786
743
|
* @property {Tokens} [tokens]
|
|
787
744
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
788
745
|
* of the token
|
|
@@ -1124,12 +1081,12 @@ const Joi = require("joi");
|
|
|
1124
1081
|
*/
|
|
1125
1082
|
|
|
1126
1083
|
/**
|
|
1127
|
-
* @typedef
|
|
1084
|
+
* @typedef AppFeatureRequest
|
|
1128
1085
|
* @property {AppFeature} [feature]
|
|
1129
1086
|
*/
|
|
1130
1087
|
|
|
1131
1088
|
/**
|
|
1132
|
-
* @typedef
|
|
1089
|
+
* @typedef AppFeatureResponse
|
|
1133
1090
|
* @property {AppFeature} [feature]
|
|
1134
1091
|
*/
|
|
1135
1092
|
|
|
@@ -1290,7 +1247,7 @@ const Joi = require("joi");
|
|
|
1290
1247
|
*/
|
|
1291
1248
|
|
|
1292
1249
|
/**
|
|
1293
|
-
* @typedef
|
|
1250
|
+
* @typedef InvalidPayloadRequest
|
|
1294
1251
|
* @property {string} [message] - Error message when request body payload is improper
|
|
1295
1252
|
* @property {boolean} [success] - Flag for required not successfull.
|
|
1296
1253
|
*/
|
|
@@ -1478,12 +1435,12 @@ const Joi = require("joi");
|
|
|
1478
1435
|
*/
|
|
1479
1436
|
|
|
1480
1437
|
/**
|
|
1481
|
-
* @typedef
|
|
1438
|
+
* @typedef CurrenciesResponse
|
|
1482
1439
|
* @property {Currency[]} [items]
|
|
1483
1440
|
*/
|
|
1484
1441
|
|
|
1485
1442
|
/**
|
|
1486
|
-
* @typedef
|
|
1443
|
+
* @typedef AppCurrencyResponse
|
|
1487
1444
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
1488
1445
|
* of the currency configuration supported by the application
|
|
1489
1446
|
* @property {string} [application] - Alphanumeric ID allotted to an application
|
|
@@ -1549,54 +1506,15 @@ const Joi = require("joi");
|
|
|
1549
1506
|
*/
|
|
1550
1507
|
|
|
1551
1508
|
/**
|
|
1552
|
-
* @typedef
|
|
1509
|
+
* @typedef OrderingStoresResponse
|
|
1553
1510
|
* @property {Page} [page]
|
|
1554
1511
|
* @property {OrderingStore[]} [items]
|
|
1555
1512
|
*/
|
|
1556
1513
|
|
|
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
|
-
|
|
1568
1514
|
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
|
-
|
|
1596
1515
|
/** @returns {ApplicationInventory} */
|
|
1597
1516
|
static ApplicationInventory() {
|
|
1598
1517
|
return Joi.object({
|
|
1599
|
-
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1600
1518
|
inventory: ConfigurationPlatformModel.AppInventoryConfig(),
|
|
1601
1519
|
authentication: ConfigurationPlatformModel.AuthenticationConfig(),
|
|
1602
1520
|
article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
|
|
@@ -1628,29 +1546,6 @@ class ConfigurationPlatformModel {
|
|
|
1628
1546
|
});
|
|
1629
1547
|
}
|
|
1630
1548
|
|
|
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
|
-
|
|
1654
1549
|
/** @returns {AppInventoryConfig} */
|
|
1655
1550
|
static AppInventoryConfig() {
|
|
1656
1551
|
return Joi.object({
|
|
@@ -1667,6 +1562,7 @@ class ConfigurationPlatformModel {
|
|
|
1667
1562
|
company_store: Joi.array().items(Joi.any()),
|
|
1668
1563
|
company_id: Joi.number(),
|
|
1669
1564
|
enable_zone_overlapping: Joi.boolean(),
|
|
1565
|
+
sort_popular_first: Joi.boolean(),
|
|
1670
1566
|
});
|
|
1671
1567
|
}
|
|
1672
1568
|
|
|
@@ -1884,7 +1780,6 @@ class ConfigurationPlatformModel {
|
|
|
1884
1780
|
/** @returns {AppInventoryPartialUpdate} */
|
|
1885
1781
|
static AppInventoryPartialUpdate() {
|
|
1886
1782
|
return Joi.object({
|
|
1887
|
-
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1888
1783
|
reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
|
|
1889
1784
|
cart: ConfigurationPlatformModel.AppCartConfig(),
|
|
1890
1785
|
payment: ConfigurationPlatformModel.AppPaymentConfig(),
|
|
@@ -1902,24 +1797,24 @@ class ConfigurationPlatformModel {
|
|
|
1902
1797
|
});
|
|
1903
1798
|
}
|
|
1904
1799
|
|
|
1905
|
-
/** @returns {
|
|
1906
|
-
static
|
|
1800
|
+
/** @returns {CompanyByBrandsRequest} */
|
|
1801
|
+
static CompanyByBrandsRequest() {
|
|
1907
1802
|
return Joi.object({
|
|
1908
1803
|
brands: Joi.number().required(),
|
|
1909
1804
|
search_text: Joi.string().allow(""),
|
|
1910
1805
|
});
|
|
1911
1806
|
}
|
|
1912
1807
|
|
|
1913
|
-
/** @returns {
|
|
1914
|
-
static
|
|
1808
|
+
/** @returns {CompanyByBrandsResponse} */
|
|
1809
|
+
static CompanyByBrandsResponse() {
|
|
1915
1810
|
return Joi.object({
|
|
1916
1811
|
items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
|
|
1917
1812
|
page: ConfigurationPlatformModel.Page(),
|
|
1918
1813
|
});
|
|
1919
1814
|
}
|
|
1920
1815
|
|
|
1921
|
-
/** @returns {
|
|
1922
|
-
static
|
|
1816
|
+
/** @returns {StoreByBrandsRequest} */
|
|
1817
|
+
static StoreByBrandsRequest() {
|
|
1923
1818
|
return Joi.object({
|
|
1924
1819
|
company_id: Joi.number(),
|
|
1925
1820
|
brands: Joi.number().required(),
|
|
@@ -1927,8 +1822,8 @@ class ConfigurationPlatformModel {
|
|
|
1927
1822
|
});
|
|
1928
1823
|
}
|
|
1929
1824
|
|
|
1930
|
-
/** @returns {
|
|
1931
|
-
static
|
|
1825
|
+
/** @returns {StoreByBrandsResponse} */
|
|
1826
|
+
static StoreByBrandsResponse() {
|
|
1932
1827
|
return Joi.object({
|
|
1933
1828
|
items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
|
|
1934
1829
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -1958,15 +1853,15 @@ class ConfigurationPlatformModel {
|
|
|
1958
1853
|
});
|
|
1959
1854
|
}
|
|
1960
1855
|
|
|
1961
|
-
/** @returns {
|
|
1962
|
-
static
|
|
1856
|
+
/** @returns {BrandsByCompanyResponse} */
|
|
1857
|
+
static BrandsByCompanyResponse() {
|
|
1963
1858
|
return Joi.object({
|
|
1964
1859
|
brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
|
|
1965
1860
|
});
|
|
1966
1861
|
}
|
|
1967
1862
|
|
|
1968
|
-
/** @returns {
|
|
1969
|
-
static
|
|
1863
|
+
/** @returns {ValidationFailedResponse} */
|
|
1864
|
+
static ValidationFailedResponse() {
|
|
1970
1865
|
return Joi.object({
|
|
1971
1866
|
message: Joi.string().allow(""),
|
|
1972
1867
|
});
|
|
@@ -2005,8 +1900,8 @@ class ConfigurationPlatformModel {
|
|
|
2005
1900
|
});
|
|
2006
1901
|
}
|
|
2007
1902
|
|
|
2008
|
-
/** @returns {
|
|
2009
|
-
static
|
|
1903
|
+
/** @returns {CreateApplicationRequest} */
|
|
1904
|
+
static CreateApplicationRequest() {
|
|
2010
1905
|
return Joi.object({
|
|
2011
1906
|
app: ConfigurationPlatformModel.App(),
|
|
2012
1907
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
@@ -2014,16 +1909,16 @@ class ConfigurationPlatformModel {
|
|
|
2014
1909
|
});
|
|
2015
1910
|
}
|
|
2016
1911
|
|
|
2017
|
-
/** @returns {
|
|
2018
|
-
static
|
|
1912
|
+
/** @returns {CreateAppResponse} */
|
|
1913
|
+
static CreateAppResponse() {
|
|
2019
1914
|
return Joi.object({
|
|
2020
1915
|
app: ConfigurationPlatformModel.Application(),
|
|
2021
1916
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
2022
1917
|
});
|
|
2023
1918
|
}
|
|
2024
1919
|
|
|
2025
|
-
/** @returns {
|
|
2026
|
-
static
|
|
1920
|
+
/** @returns {ApplicationsResponse} */
|
|
1921
|
+
static ApplicationsResponse() {
|
|
2027
1922
|
return Joi.object({
|
|
2028
1923
|
items: Joi.array().items(ConfigurationPlatformModel.Application()),
|
|
2029
1924
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -2063,8 +1958,8 @@ class ConfigurationPlatformModel {
|
|
|
2063
1958
|
});
|
|
2064
1959
|
}
|
|
2065
1960
|
|
|
2066
|
-
/** @returns {
|
|
2067
|
-
static
|
|
1961
|
+
/** @returns {MobileAppConfigRequest} */
|
|
1962
|
+
static MobileAppConfigRequest() {
|
|
2068
1963
|
return Joi.object({
|
|
2069
1964
|
app_name: Joi.string().allow(""),
|
|
2070
1965
|
landing_image: ConfigurationPlatformModel.LandingImage(),
|
|
@@ -2130,8 +2025,8 @@ class ConfigurationPlatformModel {
|
|
|
2130
2025
|
});
|
|
2131
2026
|
}
|
|
2132
2027
|
|
|
2133
|
-
/** @returns {
|
|
2134
|
-
static
|
|
2028
|
+
/** @returns {DomainAddRequest} */
|
|
2029
|
+
static DomainAddRequest() {
|
|
2135
2030
|
return Joi.object({
|
|
2136
2031
|
domain: ConfigurationPlatformModel.DomainAdd(),
|
|
2137
2032
|
});
|
|
@@ -2150,8 +2045,8 @@ class ConfigurationPlatformModel {
|
|
|
2150
2045
|
});
|
|
2151
2046
|
}
|
|
2152
2047
|
|
|
2153
|
-
/** @returns {
|
|
2154
|
-
static
|
|
2048
|
+
/** @returns {DomainsResponse} */
|
|
2049
|
+
static DomainsResponse() {
|
|
2155
2050
|
return Joi.object({
|
|
2156
2051
|
domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
|
|
2157
2052
|
});
|
|
@@ -2168,16 +2063,16 @@ class ConfigurationPlatformModel {
|
|
|
2168
2063
|
});
|
|
2169
2064
|
}
|
|
2170
2065
|
|
|
2171
|
-
/** @returns {
|
|
2172
|
-
static
|
|
2066
|
+
/** @returns {UpdateDomainTypeRequest} */
|
|
2067
|
+
static UpdateDomainTypeRequest() {
|
|
2173
2068
|
return Joi.object({
|
|
2174
2069
|
domain: ConfigurationPlatformModel.UpdateDomain(),
|
|
2175
2070
|
action: Joi.string().allow(""),
|
|
2176
2071
|
});
|
|
2177
2072
|
}
|
|
2178
2073
|
|
|
2179
|
-
/** @returns {
|
|
2180
|
-
static
|
|
2074
|
+
/** @returns {DomainStatusRequest} */
|
|
2075
|
+
static DomainStatusRequest() {
|
|
2181
2076
|
return Joi.object({
|
|
2182
2077
|
domain_url: Joi.string().allow(""),
|
|
2183
2078
|
});
|
|
@@ -2191,19 +2086,19 @@ class ConfigurationPlatformModel {
|
|
|
2191
2086
|
});
|
|
2192
2087
|
}
|
|
2193
2088
|
|
|
2194
|
-
/** @returns {
|
|
2195
|
-
static
|
|
2089
|
+
/** @returns {DomainStatusResponse} */
|
|
2090
|
+
static DomainStatusResponse() {
|
|
2196
2091
|
return Joi.object({
|
|
2197
2092
|
connected: Joi.boolean(),
|
|
2198
2093
|
status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
|
|
2199
2094
|
});
|
|
2200
2095
|
}
|
|
2201
2096
|
|
|
2202
|
-
/** @returns {
|
|
2203
|
-
static
|
|
2097
|
+
/** @returns {DomainSuggestionsRequest} */
|
|
2098
|
+
static DomainSuggestionsRequest() {
|
|
2204
2099
|
return Joi.object({
|
|
2205
2100
|
domain_url: Joi.string().allow(""),
|
|
2206
|
-
|
|
2101
|
+
custom: Joi.boolean(),
|
|
2207
2102
|
});
|
|
2208
2103
|
}
|
|
2209
2104
|
|
|
@@ -2218,15 +2113,15 @@ class ConfigurationPlatformModel {
|
|
|
2218
2113
|
});
|
|
2219
2114
|
}
|
|
2220
2115
|
|
|
2221
|
-
/** @returns {
|
|
2222
|
-
static
|
|
2116
|
+
/** @returns {DomainSuggestionsResponse} */
|
|
2117
|
+
static DomainSuggestionsResponse() {
|
|
2223
2118
|
return Joi.object({
|
|
2224
2119
|
domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
|
|
2225
2120
|
});
|
|
2226
2121
|
}
|
|
2227
2122
|
|
|
2228
|
-
/** @returns {
|
|
2229
|
-
static
|
|
2123
|
+
/** @returns {SuccessMessageResponse} */
|
|
2124
|
+
static SuccessMessageResponse() {
|
|
2230
2125
|
return Joi.object({
|
|
2231
2126
|
success: Joi.boolean(),
|
|
2232
2127
|
message: Joi.string().allow(""),
|
|
@@ -2251,8 +2146,8 @@ class ConfigurationPlatformModel {
|
|
|
2251
2146
|
});
|
|
2252
2147
|
}
|
|
2253
2148
|
|
|
2254
|
-
/** @returns {
|
|
2255
|
-
static
|
|
2149
|
+
/** @returns {CompaniesResponse} */
|
|
2150
|
+
static CompaniesResponse() {
|
|
2256
2151
|
return Joi.object({
|
|
2257
2152
|
items: Joi.array().items(
|
|
2258
2153
|
ConfigurationPlatformModel.AppInventoryCompanies()
|
|
@@ -2270,8 +2165,8 @@ class ConfigurationPlatformModel {
|
|
|
2270
2165
|
});
|
|
2271
2166
|
}
|
|
2272
2167
|
|
|
2273
|
-
/** @returns {
|
|
2274
|
-
static
|
|
2168
|
+
/** @returns {StoresResponse} */
|
|
2169
|
+
static StoresResponse() {
|
|
2275
2170
|
return Joi.object({
|
|
2276
2171
|
items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
|
|
2277
2172
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -2294,8 +2189,8 @@ class ConfigurationPlatformModel {
|
|
|
2294
2189
|
});
|
|
2295
2190
|
}
|
|
2296
2191
|
|
|
2297
|
-
/** @returns {
|
|
2298
|
-
static
|
|
2192
|
+
/** @returns {FilterOrderingStoreRequest} */
|
|
2193
|
+
static FilterOrderingStoreRequest() {
|
|
2299
2194
|
return Joi.object({
|
|
2300
2195
|
all_stores: Joi.boolean(),
|
|
2301
2196
|
deployed_stores: Joi.array().items(Joi.number()),
|
|
@@ -2323,8 +2218,8 @@ class ConfigurationPlatformModel {
|
|
|
2323
2218
|
});
|
|
2324
2219
|
}
|
|
2325
2220
|
|
|
2326
|
-
/** @returns {
|
|
2327
|
-
static
|
|
2221
|
+
/** @returns {OrderingStoreSelectRequest} */
|
|
2222
|
+
static OrderingStoreSelectRequest() {
|
|
2328
2223
|
return Joi.object({
|
|
2329
2224
|
ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
|
|
2330
2225
|
});
|
|
@@ -2367,8 +2262,8 @@ class ConfigurationPlatformModel {
|
|
|
2367
2262
|
});
|
|
2368
2263
|
}
|
|
2369
2264
|
|
|
2370
|
-
/** @returns {
|
|
2371
|
-
static
|
|
2265
|
+
/** @returns {OptedApplicationResponse} */
|
|
2266
|
+
static OptedApplicationResponse() {
|
|
2372
2267
|
return Joi.object({
|
|
2373
2268
|
name: Joi.string().allow(""),
|
|
2374
2269
|
description: Joi.string().allow(""),
|
|
@@ -2428,8 +2323,8 @@ class ConfigurationPlatformModel {
|
|
|
2428
2323
|
});
|
|
2429
2324
|
}
|
|
2430
2325
|
|
|
2431
|
-
/** @returns {
|
|
2432
|
-
static
|
|
2326
|
+
/** @returns {TokenResponse} */
|
|
2327
|
+
static TokenResponse() {
|
|
2433
2328
|
return Joi.object({
|
|
2434
2329
|
tokens: ConfigurationPlatformModel.Tokens(),
|
|
2435
2330
|
_id: Joi.string().allow(""),
|
|
@@ -2635,8 +2530,8 @@ class ConfigurationPlatformModel {
|
|
|
2635
2530
|
static LaunchPage() {
|
|
2636
2531
|
return Joi.object({
|
|
2637
2532
|
page_type: Joi.string().allow(""),
|
|
2638
|
-
params: Joi.
|
|
2639
|
-
query: Joi.
|
|
2533
|
+
params: Joi.any(),
|
|
2534
|
+
query: Joi.any(),
|
|
2640
2535
|
});
|
|
2641
2536
|
}
|
|
2642
2537
|
|
|
@@ -2802,15 +2697,15 @@ class ConfigurationPlatformModel {
|
|
|
2802
2697
|
});
|
|
2803
2698
|
}
|
|
2804
2699
|
|
|
2805
|
-
/** @returns {
|
|
2806
|
-
static
|
|
2700
|
+
/** @returns {AppFeatureRequest} */
|
|
2701
|
+
static AppFeatureRequest() {
|
|
2807
2702
|
return Joi.object({
|
|
2808
2703
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2809
2704
|
});
|
|
2810
2705
|
}
|
|
2811
2706
|
|
|
2812
|
-
/** @returns {
|
|
2813
|
-
static
|
|
2707
|
+
/** @returns {AppFeatureResponse} */
|
|
2708
|
+
static AppFeatureResponse() {
|
|
2814
2709
|
return Joi.object({
|
|
2815
2710
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2816
2711
|
});
|
|
@@ -2972,8 +2867,8 @@ class ConfigurationPlatformModel {
|
|
|
2972
2867
|
});
|
|
2973
2868
|
}
|
|
2974
2869
|
|
|
2975
|
-
/** @returns {
|
|
2976
|
-
static
|
|
2870
|
+
/** @returns {InvalidPayloadRequest} */
|
|
2871
|
+
static InvalidPayloadRequest() {
|
|
2977
2872
|
return Joi.object({
|
|
2978
2873
|
message: Joi.string().allow(""),
|
|
2979
2874
|
success: Joi.boolean(),
|
|
@@ -3201,15 +3096,15 @@ class ConfigurationPlatformModel {
|
|
|
3201
3096
|
});
|
|
3202
3097
|
}
|
|
3203
3098
|
|
|
3204
|
-
/** @returns {
|
|
3205
|
-
static
|
|
3099
|
+
/** @returns {CurrenciesResponse} */
|
|
3100
|
+
static CurrenciesResponse() {
|
|
3206
3101
|
return Joi.object({
|
|
3207
3102
|
items: Joi.array().items(ConfigurationPlatformModel.Currency()),
|
|
3208
3103
|
});
|
|
3209
3104
|
}
|
|
3210
3105
|
|
|
3211
|
-
/** @returns {
|
|
3212
|
-
static
|
|
3106
|
+
/** @returns {AppCurrencyResponse} */
|
|
3107
|
+
static AppCurrencyResponse() {
|
|
3213
3108
|
return Joi.object({
|
|
3214
3109
|
_id: Joi.string().allow(""),
|
|
3215
3110
|
application: Joi.string().allow(""),
|
|
@@ -3276,29 +3171,12 @@ class ConfigurationPlatformModel {
|
|
|
3276
3171
|
});
|
|
3277
3172
|
}
|
|
3278
3173
|
|
|
3279
|
-
/** @returns {
|
|
3280
|
-
static
|
|
3174
|
+
/** @returns {OrderingStoresResponse} */
|
|
3175
|
+
static OrderingStoresResponse() {
|
|
3281
3176
|
return Joi.object({
|
|
3282
3177
|
page: ConfigurationPlatformModel.Page(),
|
|
3283
3178
|
items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
|
|
3284
3179
|
});
|
|
3285
3180
|
}
|
|
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
|
-
}
|
|
3303
3181
|
}
|
|
3304
3182
|
module.exports = ConfigurationPlatformModel;
|