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