@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
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 +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- 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 +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- 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 +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- 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 +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- 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 +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- 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 +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- 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 +791 -5
- 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]
|
|
@@ -245,6 +288,7 @@ const Joi = require("joi");
|
|
|
245
288
|
|
|
246
289
|
/**
|
|
247
290
|
* @typedef AppInventoryPartialUpdate
|
|
291
|
+
* @property {SearchConfig} [search]
|
|
248
292
|
* @property {RewardPointsConfig} [reward_points]
|
|
249
293
|
* @property {AppCartConfig} [cart]
|
|
250
294
|
* @property {AppPaymentConfig} [payment]
|
|
@@ -261,19 +305,19 @@ const Joi = require("joi");
|
|
|
261
305
|
*/
|
|
262
306
|
|
|
263
307
|
/**
|
|
264
|
-
* @typedef
|
|
308
|
+
* @typedef CompanyByBrandsRequestSchema
|
|
265
309
|
* @property {number} brands - Brand UID
|
|
266
310
|
* @property {string} [search_text] - A search field for finding a company by its name
|
|
267
311
|
*/
|
|
268
312
|
|
|
269
313
|
/**
|
|
270
|
-
* @typedef
|
|
314
|
+
* @typedef CompanyByBrandsResponseSchema
|
|
271
315
|
* @property {BrandCompanyInfo[]} [items]
|
|
272
316
|
* @property {Page} [page]
|
|
273
317
|
*/
|
|
274
318
|
|
|
275
319
|
/**
|
|
276
|
-
* @typedef
|
|
320
|
+
* @typedef StoreByBrandsRequestSchema
|
|
277
321
|
* @property {number} [company_id] - Current company ID for current company
|
|
278
322
|
* stores only. Don't send in case cross-selling (franchise) is enabled.
|
|
279
323
|
* @property {number} brands - Brand UID
|
|
@@ -281,7 +325,7 @@ const Joi = require("joi");
|
|
|
281
325
|
*/
|
|
282
326
|
|
|
283
327
|
/**
|
|
284
|
-
* @typedef
|
|
328
|
+
* @typedef StoreByBrandsResponseSchema
|
|
285
329
|
* @property {BrandStoreInfo[]} [items]
|
|
286
330
|
* @property {Page} [page]
|
|
287
331
|
*/
|
|
@@ -309,12 +353,12 @@ const Joi = require("joi");
|
|
|
309
353
|
*/
|
|
310
354
|
|
|
311
355
|
/**
|
|
312
|
-
* @typedef
|
|
356
|
+
* @typedef BrandsByCompanyResponseSchema
|
|
313
357
|
* @property {CompanyBrandInfo[]} [brands]
|
|
314
358
|
*/
|
|
315
359
|
|
|
316
360
|
/**
|
|
317
|
-
* @typedef
|
|
361
|
+
* @typedef ValidationFailedResponseSchema
|
|
318
362
|
* @property {string} [message] - Response message for failed validation
|
|
319
363
|
*/
|
|
320
364
|
|
|
@@ -346,20 +390,20 @@ const Joi = require("joi");
|
|
|
346
390
|
*/
|
|
347
391
|
|
|
348
392
|
/**
|
|
349
|
-
* @typedef
|
|
393
|
+
* @typedef CreateApplicationRequestSchema
|
|
350
394
|
* @property {App} [app]
|
|
351
395
|
* @property {ApplicationInventory} [configuration]
|
|
352
396
|
* @property {AppDomain} [domain]
|
|
353
397
|
*/
|
|
354
398
|
|
|
355
399
|
/**
|
|
356
|
-
* @typedef
|
|
400
|
+
* @typedef CreateAppResponseSchema
|
|
357
401
|
* @property {Application} [app]
|
|
358
402
|
* @property {ApplicationInventory} [configuration]
|
|
359
403
|
*/
|
|
360
404
|
|
|
361
405
|
/**
|
|
362
|
-
* @typedef
|
|
406
|
+
* @typedef ApplicationsResponseSchema
|
|
363
407
|
* @property {Application[]} [items]
|
|
364
408
|
* @property {Page} [page]
|
|
365
409
|
*/
|
|
@@ -397,7 +441,7 @@ const Joi = require("joi");
|
|
|
397
441
|
*/
|
|
398
442
|
|
|
399
443
|
/**
|
|
400
|
-
* @typedef
|
|
444
|
+
* @typedef MobileAppConfigRequestSchema
|
|
401
445
|
* @property {string} [app_name] - Name of the mobile app
|
|
402
446
|
* @property {LandingImage} [landing_image]
|
|
403
447
|
* @property {SplashImage} [splash_image]
|
|
@@ -469,7 +513,7 @@ const Joi = require("joi");
|
|
|
469
513
|
*/
|
|
470
514
|
|
|
471
515
|
/**
|
|
472
|
-
* @typedef
|
|
516
|
+
* @typedef DomainAddRequestSchema
|
|
473
517
|
* @property {DomainAdd} [domain]
|
|
474
518
|
*/
|
|
475
519
|
|
|
@@ -488,7 +532,7 @@ const Joi = require("joi");
|
|
|
488
532
|
*/
|
|
489
533
|
|
|
490
534
|
/**
|
|
491
|
-
* @typedef
|
|
535
|
+
* @typedef DomainsResponseSchema
|
|
492
536
|
* @property {Domain[]} [domains]
|
|
493
537
|
*/
|
|
494
538
|
|
|
@@ -506,14 +550,14 @@ const Joi = require("joi");
|
|
|
506
550
|
*/
|
|
507
551
|
|
|
508
552
|
/**
|
|
509
|
-
* @typedef
|
|
553
|
+
* @typedef UpdateDomainTypeRequestSchema
|
|
510
554
|
* @property {UpdateDomain} [domain]
|
|
511
555
|
* @property {string} [action] - Shows domain is made primary domain for the
|
|
512
556
|
* sales channel or shorlink is created for the sales channel domain
|
|
513
557
|
*/
|
|
514
558
|
|
|
515
559
|
/**
|
|
516
|
-
* @typedef
|
|
560
|
+
* @typedef DomainStatusRequestSchema
|
|
517
561
|
* @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
|
|
518
562
|
*/
|
|
519
563
|
|
|
@@ -525,16 +569,17 @@ const Joi = require("joi");
|
|
|
525
569
|
*/
|
|
526
570
|
|
|
527
571
|
/**
|
|
528
|
-
* @typedef
|
|
572
|
+
* @typedef DomainStatusResponseSchema
|
|
529
573
|
* @property {boolean} [connected] - Check if domain is live and mapped to
|
|
530
574
|
* appropriate IP of Fynd Servers
|
|
531
575
|
* @property {DomainStatus[]} [status]
|
|
532
576
|
*/
|
|
533
577
|
|
|
534
578
|
/**
|
|
535
|
-
* @typedef
|
|
579
|
+
* @typedef DomainSuggestionsRequestSchema
|
|
536
580
|
* @property {string} [domain_url] - Domain url
|
|
537
|
-
* @property {boolean} [
|
|
581
|
+
* @property {boolean} [custom_domain] - Get suggestions for custom domains or
|
|
582
|
+
* Fynd domains
|
|
538
583
|
*/
|
|
539
584
|
|
|
540
585
|
/**
|
|
@@ -549,12 +594,12 @@ const Joi = require("joi");
|
|
|
549
594
|
*/
|
|
550
595
|
|
|
551
596
|
/**
|
|
552
|
-
* @typedef
|
|
597
|
+
* @typedef DomainSuggestionsResponseSchema
|
|
553
598
|
* @property {DomainSuggestion[]} [domains] - Domain URL
|
|
554
599
|
*/
|
|
555
600
|
|
|
556
601
|
/**
|
|
557
|
-
* @typedef
|
|
602
|
+
* @typedef SuccessMessageResponseSchema
|
|
558
603
|
* @property {boolean} [success] - Shows whether domain was deleted successfully
|
|
559
604
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
560
605
|
*/
|
|
@@ -576,7 +621,7 @@ const Joi = require("joi");
|
|
|
576
621
|
*/
|
|
577
622
|
|
|
578
623
|
/**
|
|
579
|
-
* @typedef
|
|
624
|
+
* @typedef CompaniesResponseSchema
|
|
580
625
|
* @property {AppInventoryCompanies[]} [items]
|
|
581
626
|
* @property {Page} [page]
|
|
582
627
|
*/
|
|
@@ -590,7 +635,7 @@ const Joi = require("joi");
|
|
|
590
635
|
*/
|
|
591
636
|
|
|
592
637
|
/**
|
|
593
|
-
* @typedef
|
|
638
|
+
* @typedef StoresResponseSchema
|
|
594
639
|
* @property {AppInventoryStores[]} [items]
|
|
595
640
|
* @property {Page} [page]
|
|
596
641
|
*/
|
|
@@ -617,7 +662,7 @@ const Joi = require("joi");
|
|
|
617
662
|
*/
|
|
618
663
|
|
|
619
664
|
/**
|
|
620
|
-
* @typedef
|
|
665
|
+
* @typedef FilterOrderingStoreRequestSchema
|
|
621
666
|
* @property {boolean} [all_stores] - Allow all stores from the ordering stores
|
|
622
667
|
* @property {number[]} [deployed_stores]
|
|
623
668
|
* @property {string} [q] - Store code or name of the ordering store
|
|
@@ -644,7 +689,7 @@ const Joi = require("joi");
|
|
|
644
689
|
*/
|
|
645
690
|
|
|
646
691
|
/**
|
|
647
|
-
* @typedef
|
|
692
|
+
* @typedef OrderingStoreSelectRequestSchema
|
|
648
693
|
* @property {OrderingStoreSelect} ordering_store
|
|
649
694
|
*/
|
|
650
695
|
|
|
@@ -678,7 +723,7 @@ const Joi = require("joi");
|
|
|
678
723
|
*/
|
|
679
724
|
|
|
680
725
|
/**
|
|
681
|
-
* @typedef
|
|
726
|
+
* @typedef OptedApplicationResponseSchema
|
|
682
727
|
* @property {string} [name] - Name of the other seller's sales channel
|
|
683
728
|
* @property {string} [description] - Basic details about the other seller's sales channel
|
|
684
729
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -735,7 +780,7 @@ const Joi = require("joi");
|
|
|
735
780
|
*/
|
|
736
781
|
|
|
737
782
|
/**
|
|
738
|
-
* @typedef
|
|
783
|
+
* @typedef TokenResponseSchema
|
|
739
784
|
* @property {Tokens} [tokens]
|
|
740
785
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
741
786
|
* of the token
|
|
@@ -1077,12 +1122,12 @@ const Joi = require("joi");
|
|
|
1077
1122
|
*/
|
|
1078
1123
|
|
|
1079
1124
|
/**
|
|
1080
|
-
* @typedef
|
|
1125
|
+
* @typedef AppFeatureRequestSchema
|
|
1081
1126
|
* @property {AppFeature} [feature]
|
|
1082
1127
|
*/
|
|
1083
1128
|
|
|
1084
1129
|
/**
|
|
1085
|
-
* @typedef
|
|
1130
|
+
* @typedef AppFeatureResponseSchema
|
|
1086
1131
|
* @property {AppFeature} [feature]
|
|
1087
1132
|
*/
|
|
1088
1133
|
|
|
@@ -1243,7 +1288,7 @@ const Joi = require("joi");
|
|
|
1243
1288
|
*/
|
|
1244
1289
|
|
|
1245
1290
|
/**
|
|
1246
|
-
* @typedef
|
|
1291
|
+
* @typedef InvalidPayloadRequestSchema
|
|
1247
1292
|
* @property {string} [message] - Error message when request body payload is improper
|
|
1248
1293
|
* @property {boolean} [success] - Flag for required not successfull.
|
|
1249
1294
|
*/
|
|
@@ -1431,12 +1476,12 @@ const Joi = require("joi");
|
|
|
1431
1476
|
*/
|
|
1432
1477
|
|
|
1433
1478
|
/**
|
|
1434
|
-
* @typedef
|
|
1479
|
+
* @typedef CurrenciesResponseSchema
|
|
1435
1480
|
* @property {Currency[]} [items]
|
|
1436
1481
|
*/
|
|
1437
1482
|
|
|
1438
1483
|
/**
|
|
1439
|
-
* @typedef
|
|
1484
|
+
* @typedef AppCurrencyResponseSchema
|
|
1440
1485
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
1441
1486
|
* of the currency configuration supported by the application
|
|
1442
1487
|
* @property {string} [application] - Alphanumeric ID allotted to an application
|
|
@@ -1502,15 +1547,54 @@ const Joi = require("joi");
|
|
|
1502
1547
|
*/
|
|
1503
1548
|
|
|
1504
1549
|
/**
|
|
1505
|
-
* @typedef
|
|
1550
|
+
* @typedef OrderingStoresResponseSchema
|
|
1506
1551
|
* @property {Page} [page]
|
|
1507
1552
|
* @property {OrderingStore[]} [items]
|
|
1508
1553
|
*/
|
|
1509
1554
|
|
|
1555
|
+
/**
|
|
1556
|
+
* @typedef ValidationErrors
|
|
1557
|
+
* @property {ValidationError[]} errors
|
|
1558
|
+
*/
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* @typedef ValidationError
|
|
1562
|
+
* @property {string} message - A brief description of the error encountered.
|
|
1563
|
+
* @property {string} field - The field in the request that caused the error.
|
|
1564
|
+
*/
|
|
1565
|
+
|
|
1510
1566
|
class ConfigurationPlatformModel {
|
|
1567
|
+
/** @returns {CurrencyExchangeResponseV2} */
|
|
1568
|
+
static CurrencyExchangeResponseV2() {
|
|
1569
|
+
return Joi.object({
|
|
1570
|
+
base: Joi.string().allow("").required(),
|
|
1571
|
+
base_currency_name: Joi.string().allow("").required(),
|
|
1572
|
+
ttl_seconds: Joi.number().required(),
|
|
1573
|
+
items: Joi.array()
|
|
1574
|
+
.items(ConfigurationPlatformModel.CurrencyExchangeItem())
|
|
1575
|
+
.required(),
|
|
1576
|
+
total: Joi.number().required(),
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
/** @returns {CurrencyExchangeItem} */
|
|
1581
|
+
static CurrencyExchangeItem() {
|
|
1582
|
+
return Joi.object({
|
|
1583
|
+
currency_code: Joi.string().allow("").required(),
|
|
1584
|
+
name: Joi.string().allow("").required(),
|
|
1585
|
+
rate: Joi.number().required(),
|
|
1586
|
+
country_code: Joi.string().allow("").required(),
|
|
1587
|
+
country_name: Joi.string().allow("").required(),
|
|
1588
|
+
subunit: Joi.string().allow("").required(),
|
|
1589
|
+
decimal_digits: Joi.number().required(),
|
|
1590
|
+
symbol: Joi.string().allow("").required(),
|
|
1591
|
+
});
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1511
1594
|
/** @returns {ApplicationInventory} */
|
|
1512
1595
|
static ApplicationInventory() {
|
|
1513
1596
|
return Joi.object({
|
|
1597
|
+
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1514
1598
|
inventory: ConfigurationPlatformModel.AppInventoryConfig(),
|
|
1515
1599
|
authentication: ConfigurationPlatformModel.AuthenticationConfig(),
|
|
1516
1600
|
article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
|
|
@@ -1542,6 +1626,29 @@ class ConfigurationPlatformModel {
|
|
|
1542
1626
|
});
|
|
1543
1627
|
}
|
|
1544
1628
|
|
|
1629
|
+
/** @returns {FstIdentification} */
|
|
1630
|
+
static FstIdentification() {
|
|
1631
|
+
return Joi.object({
|
|
1632
|
+
enabled: Joi.boolean(),
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/** @returns {QuerySuggestions} */
|
|
1637
|
+
static QuerySuggestions() {
|
|
1638
|
+
return Joi.object({
|
|
1639
|
+
enabled: Joi.boolean(),
|
|
1640
|
+
max_limit: Joi.number(),
|
|
1641
|
+
});
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
/** @returns {SearchConfig} */
|
|
1645
|
+
static SearchConfig() {
|
|
1646
|
+
return Joi.object({
|
|
1647
|
+
fst_identification: ConfigurationPlatformModel.FstIdentification(),
|
|
1648
|
+
query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1545
1652
|
/** @returns {AppInventoryConfig} */
|
|
1546
1653
|
static AppInventoryConfig() {
|
|
1547
1654
|
return Joi.object({
|
|
@@ -1774,6 +1881,7 @@ class ConfigurationPlatformModel {
|
|
|
1774
1881
|
/** @returns {AppInventoryPartialUpdate} */
|
|
1775
1882
|
static AppInventoryPartialUpdate() {
|
|
1776
1883
|
return Joi.object({
|
|
1884
|
+
search: ConfigurationPlatformModel.SearchConfig(),
|
|
1777
1885
|
reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
|
|
1778
1886
|
cart: ConfigurationPlatformModel.AppCartConfig(),
|
|
1779
1887
|
payment: ConfigurationPlatformModel.AppPaymentConfig(),
|
|
@@ -1791,24 +1899,24 @@ class ConfigurationPlatformModel {
|
|
|
1791
1899
|
});
|
|
1792
1900
|
}
|
|
1793
1901
|
|
|
1794
|
-
/** @returns {
|
|
1795
|
-
static
|
|
1902
|
+
/** @returns {CompanyByBrandsRequestSchema} */
|
|
1903
|
+
static CompanyByBrandsRequestSchema() {
|
|
1796
1904
|
return Joi.object({
|
|
1797
1905
|
brands: Joi.number().required(),
|
|
1798
1906
|
search_text: Joi.string().allow(""),
|
|
1799
1907
|
});
|
|
1800
1908
|
}
|
|
1801
1909
|
|
|
1802
|
-
/** @returns {
|
|
1803
|
-
static
|
|
1910
|
+
/** @returns {CompanyByBrandsResponseSchema} */
|
|
1911
|
+
static CompanyByBrandsResponseSchema() {
|
|
1804
1912
|
return Joi.object({
|
|
1805
1913
|
items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
|
|
1806
1914
|
page: ConfigurationPlatformModel.Page(),
|
|
1807
1915
|
});
|
|
1808
1916
|
}
|
|
1809
1917
|
|
|
1810
|
-
/** @returns {
|
|
1811
|
-
static
|
|
1918
|
+
/** @returns {StoreByBrandsRequestSchema} */
|
|
1919
|
+
static StoreByBrandsRequestSchema() {
|
|
1812
1920
|
return Joi.object({
|
|
1813
1921
|
company_id: Joi.number(),
|
|
1814
1922
|
brands: Joi.number().required(),
|
|
@@ -1816,8 +1924,8 @@ class ConfigurationPlatformModel {
|
|
|
1816
1924
|
});
|
|
1817
1925
|
}
|
|
1818
1926
|
|
|
1819
|
-
/** @returns {
|
|
1820
|
-
static
|
|
1927
|
+
/** @returns {StoreByBrandsResponseSchema} */
|
|
1928
|
+
static StoreByBrandsResponseSchema() {
|
|
1821
1929
|
return Joi.object({
|
|
1822
1930
|
items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
|
|
1823
1931
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -1847,15 +1955,15 @@ class ConfigurationPlatformModel {
|
|
|
1847
1955
|
});
|
|
1848
1956
|
}
|
|
1849
1957
|
|
|
1850
|
-
/** @returns {
|
|
1851
|
-
static
|
|
1958
|
+
/** @returns {BrandsByCompanyResponseSchema} */
|
|
1959
|
+
static BrandsByCompanyResponseSchema() {
|
|
1852
1960
|
return Joi.object({
|
|
1853
1961
|
brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
|
|
1854
1962
|
});
|
|
1855
1963
|
}
|
|
1856
1964
|
|
|
1857
|
-
/** @returns {
|
|
1858
|
-
static
|
|
1965
|
+
/** @returns {ValidationFailedResponseSchema} */
|
|
1966
|
+
static ValidationFailedResponseSchema() {
|
|
1859
1967
|
return Joi.object({
|
|
1860
1968
|
message: Joi.string().allow(""),
|
|
1861
1969
|
});
|
|
@@ -1894,8 +2002,8 @@ class ConfigurationPlatformModel {
|
|
|
1894
2002
|
});
|
|
1895
2003
|
}
|
|
1896
2004
|
|
|
1897
|
-
/** @returns {
|
|
1898
|
-
static
|
|
2005
|
+
/** @returns {CreateApplicationRequestSchema} */
|
|
2006
|
+
static CreateApplicationRequestSchema() {
|
|
1899
2007
|
return Joi.object({
|
|
1900
2008
|
app: ConfigurationPlatformModel.App(),
|
|
1901
2009
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
@@ -1903,16 +2011,16 @@ class ConfigurationPlatformModel {
|
|
|
1903
2011
|
});
|
|
1904
2012
|
}
|
|
1905
2013
|
|
|
1906
|
-
/** @returns {
|
|
1907
|
-
static
|
|
2014
|
+
/** @returns {CreateAppResponseSchema} */
|
|
2015
|
+
static CreateAppResponseSchema() {
|
|
1908
2016
|
return Joi.object({
|
|
1909
2017
|
app: ConfigurationPlatformModel.Application(),
|
|
1910
2018
|
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
1911
2019
|
});
|
|
1912
2020
|
}
|
|
1913
2021
|
|
|
1914
|
-
/** @returns {
|
|
1915
|
-
static
|
|
2022
|
+
/** @returns {ApplicationsResponseSchema} */
|
|
2023
|
+
static ApplicationsResponseSchema() {
|
|
1916
2024
|
return Joi.object({
|
|
1917
2025
|
items: Joi.array().items(ConfigurationPlatformModel.Application()),
|
|
1918
2026
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -1952,8 +2060,8 @@ class ConfigurationPlatformModel {
|
|
|
1952
2060
|
});
|
|
1953
2061
|
}
|
|
1954
2062
|
|
|
1955
|
-
/** @returns {
|
|
1956
|
-
static
|
|
2063
|
+
/** @returns {MobileAppConfigRequestSchema} */
|
|
2064
|
+
static MobileAppConfigRequestSchema() {
|
|
1957
2065
|
return Joi.object({
|
|
1958
2066
|
app_name: Joi.string().allow(""),
|
|
1959
2067
|
landing_image: ConfigurationPlatformModel.LandingImage(),
|
|
@@ -2019,8 +2127,8 @@ class ConfigurationPlatformModel {
|
|
|
2019
2127
|
});
|
|
2020
2128
|
}
|
|
2021
2129
|
|
|
2022
|
-
/** @returns {
|
|
2023
|
-
static
|
|
2130
|
+
/** @returns {DomainAddRequestSchema} */
|
|
2131
|
+
static DomainAddRequestSchema() {
|
|
2024
2132
|
return Joi.object({
|
|
2025
2133
|
domain: ConfigurationPlatformModel.DomainAdd(),
|
|
2026
2134
|
});
|
|
@@ -2039,8 +2147,8 @@ class ConfigurationPlatformModel {
|
|
|
2039
2147
|
});
|
|
2040
2148
|
}
|
|
2041
2149
|
|
|
2042
|
-
/** @returns {
|
|
2043
|
-
static
|
|
2150
|
+
/** @returns {DomainsResponseSchema} */
|
|
2151
|
+
static DomainsResponseSchema() {
|
|
2044
2152
|
return Joi.object({
|
|
2045
2153
|
domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
|
|
2046
2154
|
});
|
|
@@ -2057,16 +2165,16 @@ class ConfigurationPlatformModel {
|
|
|
2057
2165
|
});
|
|
2058
2166
|
}
|
|
2059
2167
|
|
|
2060
|
-
/** @returns {
|
|
2061
|
-
static
|
|
2168
|
+
/** @returns {UpdateDomainTypeRequestSchema} */
|
|
2169
|
+
static UpdateDomainTypeRequestSchema() {
|
|
2062
2170
|
return Joi.object({
|
|
2063
2171
|
domain: ConfigurationPlatformModel.UpdateDomain(),
|
|
2064
2172
|
action: Joi.string().allow(""),
|
|
2065
2173
|
});
|
|
2066
2174
|
}
|
|
2067
2175
|
|
|
2068
|
-
/** @returns {
|
|
2069
|
-
static
|
|
2176
|
+
/** @returns {DomainStatusRequestSchema} */
|
|
2177
|
+
static DomainStatusRequestSchema() {
|
|
2070
2178
|
return Joi.object({
|
|
2071
2179
|
domain_url: Joi.string().allow(""),
|
|
2072
2180
|
});
|
|
@@ -2080,19 +2188,19 @@ class ConfigurationPlatformModel {
|
|
|
2080
2188
|
});
|
|
2081
2189
|
}
|
|
2082
2190
|
|
|
2083
|
-
/** @returns {
|
|
2084
|
-
static
|
|
2191
|
+
/** @returns {DomainStatusResponseSchema} */
|
|
2192
|
+
static DomainStatusResponseSchema() {
|
|
2085
2193
|
return Joi.object({
|
|
2086
2194
|
connected: Joi.boolean(),
|
|
2087
2195
|
status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
|
|
2088
2196
|
});
|
|
2089
2197
|
}
|
|
2090
2198
|
|
|
2091
|
-
/** @returns {
|
|
2092
|
-
static
|
|
2199
|
+
/** @returns {DomainSuggestionsRequestSchema} */
|
|
2200
|
+
static DomainSuggestionsRequestSchema() {
|
|
2093
2201
|
return Joi.object({
|
|
2094
2202
|
domain_url: Joi.string().allow(""),
|
|
2095
|
-
|
|
2203
|
+
custom_domain: Joi.boolean(),
|
|
2096
2204
|
});
|
|
2097
2205
|
}
|
|
2098
2206
|
|
|
@@ -2107,15 +2215,15 @@ class ConfigurationPlatformModel {
|
|
|
2107
2215
|
});
|
|
2108
2216
|
}
|
|
2109
2217
|
|
|
2110
|
-
/** @returns {
|
|
2111
|
-
static
|
|
2218
|
+
/** @returns {DomainSuggestionsResponseSchema} */
|
|
2219
|
+
static DomainSuggestionsResponseSchema() {
|
|
2112
2220
|
return Joi.object({
|
|
2113
2221
|
domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
|
|
2114
2222
|
});
|
|
2115
2223
|
}
|
|
2116
2224
|
|
|
2117
|
-
/** @returns {
|
|
2118
|
-
static
|
|
2225
|
+
/** @returns {SuccessMessageResponseSchema} */
|
|
2226
|
+
static SuccessMessageResponseSchema() {
|
|
2119
2227
|
return Joi.object({
|
|
2120
2228
|
success: Joi.boolean(),
|
|
2121
2229
|
message: Joi.string().allow(""),
|
|
@@ -2140,8 +2248,8 @@ class ConfigurationPlatformModel {
|
|
|
2140
2248
|
});
|
|
2141
2249
|
}
|
|
2142
2250
|
|
|
2143
|
-
/** @returns {
|
|
2144
|
-
static
|
|
2251
|
+
/** @returns {CompaniesResponseSchema} */
|
|
2252
|
+
static CompaniesResponseSchema() {
|
|
2145
2253
|
return Joi.object({
|
|
2146
2254
|
items: Joi.array().items(
|
|
2147
2255
|
ConfigurationPlatformModel.AppInventoryCompanies()
|
|
@@ -2159,8 +2267,8 @@ class ConfigurationPlatformModel {
|
|
|
2159
2267
|
});
|
|
2160
2268
|
}
|
|
2161
2269
|
|
|
2162
|
-
/** @returns {
|
|
2163
|
-
static
|
|
2270
|
+
/** @returns {StoresResponseSchema} */
|
|
2271
|
+
static StoresResponseSchema() {
|
|
2164
2272
|
return Joi.object({
|
|
2165
2273
|
items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
|
|
2166
2274
|
page: ConfigurationPlatformModel.Page(),
|
|
@@ -2183,8 +2291,8 @@ class ConfigurationPlatformModel {
|
|
|
2183
2291
|
});
|
|
2184
2292
|
}
|
|
2185
2293
|
|
|
2186
|
-
/** @returns {
|
|
2187
|
-
static
|
|
2294
|
+
/** @returns {FilterOrderingStoreRequestSchema} */
|
|
2295
|
+
static FilterOrderingStoreRequestSchema() {
|
|
2188
2296
|
return Joi.object({
|
|
2189
2297
|
all_stores: Joi.boolean(),
|
|
2190
2298
|
deployed_stores: Joi.array().items(Joi.number()),
|
|
@@ -2212,8 +2320,8 @@ class ConfigurationPlatformModel {
|
|
|
2212
2320
|
});
|
|
2213
2321
|
}
|
|
2214
2322
|
|
|
2215
|
-
/** @returns {
|
|
2216
|
-
static
|
|
2323
|
+
/** @returns {OrderingStoreSelectRequestSchema} */
|
|
2324
|
+
static OrderingStoreSelectRequestSchema() {
|
|
2217
2325
|
return Joi.object({
|
|
2218
2326
|
ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
|
|
2219
2327
|
});
|
|
@@ -2256,8 +2364,8 @@ class ConfigurationPlatformModel {
|
|
|
2256
2364
|
});
|
|
2257
2365
|
}
|
|
2258
2366
|
|
|
2259
|
-
/** @returns {
|
|
2260
|
-
static
|
|
2367
|
+
/** @returns {OptedApplicationResponseSchema} */
|
|
2368
|
+
static OptedApplicationResponseSchema() {
|
|
2261
2369
|
return Joi.object({
|
|
2262
2370
|
name: Joi.string().allow(""),
|
|
2263
2371
|
description: Joi.string().allow(""),
|
|
@@ -2317,8 +2425,8 @@ class ConfigurationPlatformModel {
|
|
|
2317
2425
|
});
|
|
2318
2426
|
}
|
|
2319
2427
|
|
|
2320
|
-
/** @returns {
|
|
2321
|
-
static
|
|
2428
|
+
/** @returns {TokenResponseSchema} */
|
|
2429
|
+
static TokenResponseSchema() {
|
|
2322
2430
|
return Joi.object({
|
|
2323
2431
|
tokens: ConfigurationPlatformModel.Tokens(),
|
|
2324
2432
|
_id: Joi.string().allow(""),
|
|
@@ -2524,8 +2632,8 @@ class ConfigurationPlatformModel {
|
|
|
2524
2632
|
static LaunchPage() {
|
|
2525
2633
|
return Joi.object({
|
|
2526
2634
|
page_type: Joi.string().allow(""),
|
|
2527
|
-
params: Joi.any(),
|
|
2528
|
-
query: Joi.any(),
|
|
2635
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
2636
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
2529
2637
|
});
|
|
2530
2638
|
}
|
|
2531
2639
|
|
|
@@ -2691,15 +2799,15 @@ class ConfigurationPlatformModel {
|
|
|
2691
2799
|
});
|
|
2692
2800
|
}
|
|
2693
2801
|
|
|
2694
|
-
/** @returns {
|
|
2695
|
-
static
|
|
2802
|
+
/** @returns {AppFeatureRequestSchema} */
|
|
2803
|
+
static AppFeatureRequestSchema() {
|
|
2696
2804
|
return Joi.object({
|
|
2697
2805
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2698
2806
|
});
|
|
2699
2807
|
}
|
|
2700
2808
|
|
|
2701
|
-
/** @returns {
|
|
2702
|
-
static
|
|
2809
|
+
/** @returns {AppFeatureResponseSchema} */
|
|
2810
|
+
static AppFeatureResponseSchema() {
|
|
2703
2811
|
return Joi.object({
|
|
2704
2812
|
feature: ConfigurationPlatformModel.AppFeature(),
|
|
2705
2813
|
});
|
|
@@ -2861,8 +2969,8 @@ class ConfigurationPlatformModel {
|
|
|
2861
2969
|
});
|
|
2862
2970
|
}
|
|
2863
2971
|
|
|
2864
|
-
/** @returns {
|
|
2865
|
-
static
|
|
2972
|
+
/** @returns {InvalidPayloadRequestSchema} */
|
|
2973
|
+
static InvalidPayloadRequestSchema() {
|
|
2866
2974
|
return Joi.object({
|
|
2867
2975
|
message: Joi.string().allow(""),
|
|
2868
2976
|
success: Joi.boolean(),
|
|
@@ -3090,15 +3198,15 @@ class ConfigurationPlatformModel {
|
|
|
3090
3198
|
});
|
|
3091
3199
|
}
|
|
3092
3200
|
|
|
3093
|
-
/** @returns {
|
|
3094
|
-
static
|
|
3201
|
+
/** @returns {CurrenciesResponseSchema} */
|
|
3202
|
+
static CurrenciesResponseSchema() {
|
|
3095
3203
|
return Joi.object({
|
|
3096
3204
|
items: Joi.array().items(ConfigurationPlatformModel.Currency()),
|
|
3097
3205
|
});
|
|
3098
3206
|
}
|
|
3099
3207
|
|
|
3100
|
-
/** @returns {
|
|
3101
|
-
static
|
|
3208
|
+
/** @returns {AppCurrencyResponseSchema} */
|
|
3209
|
+
static AppCurrencyResponseSchema() {
|
|
3102
3210
|
return Joi.object({
|
|
3103
3211
|
_id: Joi.string().allow(""),
|
|
3104
3212
|
application: Joi.string().allow(""),
|
|
@@ -3165,12 +3273,29 @@ class ConfigurationPlatformModel {
|
|
|
3165
3273
|
});
|
|
3166
3274
|
}
|
|
3167
3275
|
|
|
3168
|
-
/** @returns {
|
|
3169
|
-
static
|
|
3276
|
+
/** @returns {OrderingStoresResponseSchema} */
|
|
3277
|
+
static OrderingStoresResponseSchema() {
|
|
3170
3278
|
return Joi.object({
|
|
3171
3279
|
page: ConfigurationPlatformModel.Page(),
|
|
3172
3280
|
items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
|
|
3173
3281
|
});
|
|
3174
3282
|
}
|
|
3283
|
+
|
|
3284
|
+
/** @returns {ValidationErrors} */
|
|
3285
|
+
static ValidationErrors() {
|
|
3286
|
+
return Joi.object({
|
|
3287
|
+
errors: Joi.array()
|
|
3288
|
+
.items(ConfigurationPlatformModel.ValidationError())
|
|
3289
|
+
.required(),
|
|
3290
|
+
});
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
/** @returns {ValidationError} */
|
|
3294
|
+
static ValidationError() {
|
|
3295
|
+
return Joi.object({
|
|
3296
|
+
message: Joi.string().allow("").required(),
|
|
3297
|
+
field: Joi.string().allow("").required(),
|
|
3298
|
+
});
|
|
3299
|
+
}
|
|
3175
3300
|
}
|
|
3176
3301
|
module.exports = ConfigurationPlatformModel;
|