@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -32,10 +32,6 @@ export = ConfigurationApplicationModel;
|
|
|
32
32
|
* @property {string} [updated_at] - ISO 8601 timestamp of last known
|
|
33
33
|
* modifications to the sales channel feature configuration
|
|
34
34
|
*/
|
|
35
|
-
/**
|
|
36
|
-
* @typedef AppFeatureRequest
|
|
37
|
-
* @property {AppFeature} [feature]
|
|
38
|
-
*/
|
|
39
35
|
/**
|
|
40
36
|
* @typedef AppFeatureResponse
|
|
41
37
|
* @property {AppFeature} [feature]
|
|
@@ -159,14 +155,6 @@ export = ConfigurationApplicationModel;
|
|
|
159
155
|
* redirection is for long time period redirection, and temporary redirection
|
|
160
156
|
* for a short time period.
|
|
161
157
|
*/
|
|
162
|
-
/**
|
|
163
|
-
* @typedef ApplicationVersionRequest
|
|
164
|
-
* @property {string} [id]
|
|
165
|
-
* @property {string} name
|
|
166
|
-
* @property {string} [namespace]
|
|
167
|
-
* @property {string} [token]
|
|
168
|
-
* @property {string} version
|
|
169
|
-
*/
|
|
170
158
|
/**
|
|
171
159
|
* @typedef ApplicationWebsite
|
|
172
160
|
* @property {string} [basepath] - Base path for the current sales channel website
|
|
@@ -210,17 +198,6 @@ export = ConfigurationApplicationModel;
|
|
|
210
198
|
* @property {Tokens} [tokens]
|
|
211
199
|
* @property {string} [updated_at] - ISO 8601 timestamp of token updation
|
|
212
200
|
*/
|
|
213
|
-
/**
|
|
214
|
-
* @typedef AppVersionRequest
|
|
215
|
-
* @property {ApplicationVersionRequest} application
|
|
216
|
-
* @property {Device} device
|
|
217
|
-
* @property {string} [locale]
|
|
218
|
-
* @property {string} [timezone]
|
|
219
|
-
*/
|
|
220
|
-
/**
|
|
221
|
-
* @typedef ArticleAssignmentRule
|
|
222
|
-
* @property {StorePriorityRule} [store_priority]
|
|
223
|
-
*/
|
|
224
201
|
/**
|
|
225
202
|
* @typedef BlogLink
|
|
226
203
|
* @property {string} [icon] - Hosted URL of icon image shown on the website
|
|
@@ -358,12 +335,6 @@ export = ConfigurationApplicationModel;
|
|
|
358
335
|
* type delivery, store selection is compulsory. For soft type, delivery store
|
|
359
336
|
* selection is optional.
|
|
360
337
|
*/
|
|
361
|
-
/**
|
|
362
|
-
* @typedef Device
|
|
363
|
-
* @property {number} [build]
|
|
364
|
-
* @property {string} [model]
|
|
365
|
-
* @property {OS} os
|
|
366
|
-
*/
|
|
367
338
|
/**
|
|
368
339
|
* @typedef Domain
|
|
369
340
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -471,36 +442,6 @@ export = ConfigurationApplicationModel;
|
|
|
471
442
|
* @property {string} [link] - Web URL of brand's Instagram page
|
|
472
443
|
* @property {string} [title] - Name of the social media platform, e.g. Instagram
|
|
473
444
|
*/
|
|
474
|
-
/**
|
|
475
|
-
* @typedef InvalidPayloadRequest
|
|
476
|
-
* @property {string} [message] - Error message when request body payload is improper
|
|
477
|
-
*/
|
|
478
|
-
/**
|
|
479
|
-
* @typedef InventoryArticleAssignment
|
|
480
|
-
* @property {boolean} [post_order_reassignment] - Allow post order reassigment of article
|
|
481
|
-
* @property {ArticleAssignmentRule} [rules]
|
|
482
|
-
*/
|
|
483
|
-
/**
|
|
484
|
-
* @typedef InventoryBrandRule
|
|
485
|
-
* @property {number[]} [brands]
|
|
486
|
-
* @property {string} [criteria] - Whether all brands are enabled, or explicitly
|
|
487
|
-
* few brands in the inventory
|
|
488
|
-
*/
|
|
489
|
-
/**
|
|
490
|
-
* @typedef InventoryPaymentConfig
|
|
491
|
-
* @property {string} [mode_of_payment] - Mode of payment for the inventory of
|
|
492
|
-
* sales channel. It is required and default value is null.
|
|
493
|
-
* @property {string} [source] - Source of the payment mode for the inventory
|
|
494
|
-
* payment of sales channel. Default value is FYND.
|
|
495
|
-
*/
|
|
496
|
-
/**
|
|
497
|
-
* @typedef InventoryStoreRule
|
|
498
|
-
* @property {string} [criteria] - Whether all stores are enabled, or explicitly
|
|
499
|
-
* few stores in the inventory, or use brands and company filter.
|
|
500
|
-
* @property {StoreCriteriaRule[]} [rules] - List of rules with company and
|
|
501
|
-
* brands uids. Used when critera is `filter`.
|
|
502
|
-
* @property {number[]} [stores] - List of store uids. Used when critera is `explicit`.
|
|
503
|
-
*/
|
|
504
445
|
/**
|
|
505
446
|
* @typedef Ios
|
|
506
447
|
* @property {string} [api_key] - Firebase secret credential API key for IOS
|
|
@@ -616,16 +557,6 @@ export = ConfigurationApplicationModel;
|
|
|
616
557
|
* @typedef OrderingStoreSelectRequest
|
|
617
558
|
* @property {OrderingStoreSelect} ordering_store
|
|
618
559
|
*/
|
|
619
|
-
/**
|
|
620
|
-
* @typedef OrderingStoresResponse
|
|
621
|
-
* @property {OrderingStore[]} [items]
|
|
622
|
-
* @property {Page} [page]
|
|
623
|
-
*/
|
|
624
|
-
/**
|
|
625
|
-
* @typedef OS
|
|
626
|
-
* @property {string} name
|
|
627
|
-
* @property {string} [version]
|
|
628
|
-
*/
|
|
629
560
|
/**
|
|
630
561
|
* @typedef OwnerInfo
|
|
631
562
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -730,22 +661,11 @@ export = ConfigurationApplicationModel;
|
|
|
730
661
|
* @property {VimeoLink} [vimeo]
|
|
731
662
|
* @property {YoutubeLink} [youtube]
|
|
732
663
|
*/
|
|
733
|
-
/**
|
|
734
|
-
* @typedef StoreCriteriaRule
|
|
735
|
-
* @property {number[]} [brands] - List of brand UID
|
|
736
|
-
* @property {number[]} [companies] - List of company UID
|
|
737
|
-
*/
|
|
738
664
|
/**
|
|
739
665
|
* @typedef StoreLatLong
|
|
740
666
|
* @property {number[]} [coordinates]
|
|
741
667
|
* @property {string} [type] - Coordinates type of the opted store
|
|
742
668
|
*/
|
|
743
|
-
/**
|
|
744
|
-
* @typedef StorePriorityRule
|
|
745
|
-
* @property {boolean} [enabled] - Shows store priority is enabled or not
|
|
746
|
-
* enabled for the article assignment.
|
|
747
|
-
* @property {string[]} [storetype_order]
|
|
748
|
-
*/
|
|
749
669
|
/**
|
|
750
670
|
* @typedef SuccessMessageResponse
|
|
751
671
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
@@ -776,11 +696,6 @@ export = ConfigurationApplicationModel;
|
|
|
776
696
|
* @typedef UnhandledError
|
|
777
697
|
* @property {string} [message]
|
|
778
698
|
*/
|
|
779
|
-
/**
|
|
780
|
-
* @typedef UpdateDialog
|
|
781
|
-
* @property {number} [interval]
|
|
782
|
-
* @property {string} [type]
|
|
783
|
-
*/
|
|
784
699
|
/**
|
|
785
700
|
* @typedef UserEmail
|
|
786
701
|
* @property {boolean} [active] - Current email is active or not active
|
|
@@ -815,7 +730,7 @@ export = ConfigurationApplicationModel;
|
|
|
815
730
|
declare class ConfigurationApplicationModel {
|
|
816
731
|
}
|
|
817
732
|
declare namespace ConfigurationApplicationModel {
|
|
818
|
-
export { Android, AppCurrencyResponse, AppFeature,
|
|
733
|
+
export { Android, AppCurrencyResponse, AppFeature, AppFeatureResponse, Application, ApplicationAboutResponse, ApplicationAuth, ApplicationCors, ApplicationDetail, ApplicationInfo, ApplicationInformation, ApplicationMeta, ApplicationRedirections, ApplicationWebsite, AppStaff, AppStaffListResponse, AppStaffResponse, AppTokenResponse, BlogLink, BusinessHighlights, CartFeature, CommonFeature, CommunicationOptinDialogFeature, CompanyAboutAddress, CompanyInfo, CompareProductsFeature, Credentials, Credit, CurrenciesResponse, Currency, CurrencyFeature, Debit, DefaultCurrency, DeploymentStoreSelectionFeature, Domain, FacebookLink, FeedbackFeature, Firebase, Freshchat, FreshchatCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, GooglePlusLink, Gtm, GtmCredentials, HomePageFeature, InformationAddress, InformationPhone, InformationSupport, InstagramLink, Ios, LandingPageFeature, LanguageResponse, LaunchPage, LinkedInLink, Links, ListingPriceFeature, Moengage, MoengageCredentials, NotFound, OptedStoreAddress, OrderFeature, OrderingStore, OrderingStores, OrderingStoreSelect, OrderingStoreSelectRequest, OwnerInfo, Page, PcrFeature, PinterestLink, ProductDetailFeature, QrFeature, RegistrationPageFeature, RevenueEngineFeature, RewardPointsConfig, Safetynet, SafetynetCredentials, SecureUrl, Segment, SegmentCredentials, SocialLinks, StoreLatLong, SuccessMessageResponse, SupportedLanguage, Tokens, TwitterLink, UnhandledError, UserEmail, UserPhoneNumber, VimeoLink, YoutubeLink };
|
|
819
734
|
}
|
|
820
735
|
/** @returns {Android} */
|
|
821
736
|
declare function Android(): Android;
|
|
@@ -877,11 +792,6 @@ type AppFeature = {
|
|
|
877
792
|
*/
|
|
878
793
|
updated_at?: string;
|
|
879
794
|
};
|
|
880
|
-
/** @returns {AppFeatureRequest} */
|
|
881
|
-
declare function AppFeatureRequest(): AppFeatureRequest;
|
|
882
|
-
type AppFeatureRequest = {
|
|
883
|
-
feature?: AppFeature;
|
|
884
|
-
};
|
|
885
795
|
/** @returns {AppFeatureResponse} */
|
|
886
796
|
declare function AppFeatureResponse(): AppFeatureResponse;
|
|
887
797
|
type AppFeatureResponse = {
|
|
@@ -1123,15 +1033,6 @@ type ApplicationRedirections = {
|
|
|
1123
1033
|
*/
|
|
1124
1034
|
type?: string;
|
|
1125
1035
|
};
|
|
1126
|
-
/** @returns {ApplicationVersionRequest} */
|
|
1127
|
-
declare function ApplicationVersionRequest(): ApplicationVersionRequest;
|
|
1128
|
-
type ApplicationVersionRequest = {
|
|
1129
|
-
id?: string;
|
|
1130
|
-
name: string;
|
|
1131
|
-
namespace?: string;
|
|
1132
|
-
token?: string;
|
|
1133
|
-
version: string;
|
|
1134
|
-
};
|
|
1135
1036
|
/** @returns {ApplicationWebsite} */
|
|
1136
1037
|
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
1137
1038
|
type ApplicationWebsite = {
|
|
@@ -1228,19 +1129,6 @@ type AppTokenResponse = {
|
|
|
1228
1129
|
*/
|
|
1229
1130
|
updated_at?: string;
|
|
1230
1131
|
};
|
|
1231
|
-
/** @returns {AppVersionRequest} */
|
|
1232
|
-
declare function AppVersionRequest(): AppVersionRequest;
|
|
1233
|
-
type AppVersionRequest = {
|
|
1234
|
-
application: ApplicationVersionRequest;
|
|
1235
|
-
device: Device;
|
|
1236
|
-
locale?: string;
|
|
1237
|
-
timezone?: string;
|
|
1238
|
-
};
|
|
1239
|
-
/** @returns {ArticleAssignmentRule} */
|
|
1240
|
-
declare function ArticleAssignmentRule(): ArticleAssignmentRule;
|
|
1241
|
-
type ArticleAssignmentRule = {
|
|
1242
|
-
store_priority?: StorePriorityRule;
|
|
1243
|
-
};
|
|
1244
1132
|
/** @returns {BlogLink} */
|
|
1245
1133
|
declare function BlogLink(): BlogLink;
|
|
1246
1134
|
type BlogLink = {
|
|
@@ -1541,13 +1429,6 @@ type DeploymentStoreSelectionFeature = {
|
|
|
1541
1429
|
*/
|
|
1542
1430
|
type?: string;
|
|
1543
1431
|
};
|
|
1544
|
-
/** @returns {Device} */
|
|
1545
|
-
declare function Device(): Device;
|
|
1546
|
-
type Device = {
|
|
1547
|
-
build?: number;
|
|
1548
|
-
model?: string;
|
|
1549
|
-
os: OS;
|
|
1550
|
-
};
|
|
1551
1432
|
/** @returns {Domain} */
|
|
1552
1433
|
declare function Domain(): Domain;
|
|
1553
1434
|
type Domain = {
|
|
@@ -1772,65 +1653,6 @@ type InstagramLink = {
|
|
|
1772
1653
|
*/
|
|
1773
1654
|
title?: string;
|
|
1774
1655
|
};
|
|
1775
|
-
/** @returns {InvalidPayloadRequest} */
|
|
1776
|
-
declare function InvalidPayloadRequest(): InvalidPayloadRequest;
|
|
1777
|
-
type InvalidPayloadRequest = {
|
|
1778
|
-
/**
|
|
1779
|
-
* - Error message when request body payload is improper
|
|
1780
|
-
*/
|
|
1781
|
-
message?: string;
|
|
1782
|
-
};
|
|
1783
|
-
/** @returns {InventoryArticleAssignment} */
|
|
1784
|
-
declare function InventoryArticleAssignment(): InventoryArticleAssignment;
|
|
1785
|
-
type InventoryArticleAssignment = {
|
|
1786
|
-
/**
|
|
1787
|
-
* - Allow post order reassigment of article
|
|
1788
|
-
*/
|
|
1789
|
-
post_order_reassignment?: boolean;
|
|
1790
|
-
rules?: ArticleAssignmentRule;
|
|
1791
|
-
};
|
|
1792
|
-
/** @returns {InventoryBrandRule} */
|
|
1793
|
-
declare function InventoryBrandRule(): InventoryBrandRule;
|
|
1794
|
-
type InventoryBrandRule = {
|
|
1795
|
-
brands?: number[];
|
|
1796
|
-
/**
|
|
1797
|
-
* - Whether all brands are enabled, or explicitly
|
|
1798
|
-
* few brands in the inventory
|
|
1799
|
-
*/
|
|
1800
|
-
criteria?: string;
|
|
1801
|
-
};
|
|
1802
|
-
/** @returns {InventoryPaymentConfig} */
|
|
1803
|
-
declare function InventoryPaymentConfig(): InventoryPaymentConfig;
|
|
1804
|
-
type InventoryPaymentConfig = {
|
|
1805
|
-
/**
|
|
1806
|
-
* - Mode of payment for the inventory of
|
|
1807
|
-
* sales channel. It is required and default value is null.
|
|
1808
|
-
*/
|
|
1809
|
-
mode_of_payment?: string;
|
|
1810
|
-
/**
|
|
1811
|
-
* - Source of the payment mode for the inventory
|
|
1812
|
-
* payment of sales channel. Default value is FYND.
|
|
1813
|
-
*/
|
|
1814
|
-
source?: string;
|
|
1815
|
-
};
|
|
1816
|
-
/** @returns {InventoryStoreRule} */
|
|
1817
|
-
declare function InventoryStoreRule(): InventoryStoreRule;
|
|
1818
|
-
type InventoryStoreRule = {
|
|
1819
|
-
/**
|
|
1820
|
-
* - Whether all stores are enabled, or explicitly
|
|
1821
|
-
* few stores in the inventory, or use brands and company filter.
|
|
1822
|
-
*/
|
|
1823
|
-
criteria?: string;
|
|
1824
|
-
/**
|
|
1825
|
-
* - List of rules with company and
|
|
1826
|
-
* brands uids. Used when critera is `filter`.
|
|
1827
|
-
*/
|
|
1828
|
-
rules?: StoreCriteriaRule[];
|
|
1829
|
-
/**
|
|
1830
|
-
* - List of store uids. Used when critera is `explicit`.
|
|
1831
|
-
*/
|
|
1832
|
-
stores?: number[];
|
|
1833
|
-
};
|
|
1834
1656
|
/** @returns {Ios} */
|
|
1835
1657
|
declare function Ios(): Ios;
|
|
1836
1658
|
type Ios = {
|
|
@@ -2085,18 +1907,6 @@ declare function OrderingStoreSelectRequest(): OrderingStoreSelectRequest;
|
|
|
2085
1907
|
type OrderingStoreSelectRequest = {
|
|
2086
1908
|
ordering_store: OrderingStoreSelect;
|
|
2087
1909
|
};
|
|
2088
|
-
/** @returns {OrderingStoresResponse} */
|
|
2089
|
-
declare function OrderingStoresResponse(): OrderingStoresResponse;
|
|
2090
|
-
type OrderingStoresResponse = {
|
|
2091
|
-
items?: OrderingStore[];
|
|
2092
|
-
page?: Page;
|
|
2093
|
-
};
|
|
2094
|
-
/** @returns {OS} */
|
|
2095
|
-
declare function OS(): OS;
|
|
2096
|
-
type OS = {
|
|
2097
|
-
name: string;
|
|
2098
|
-
version?: string;
|
|
2099
|
-
};
|
|
2100
1910
|
/** @returns {OwnerInfo} */
|
|
2101
1911
|
declare function OwnerInfo(): OwnerInfo;
|
|
2102
1912
|
type OwnerInfo = {
|
|
@@ -2282,18 +2092,6 @@ type SocialLinks = {
|
|
|
2282
2092
|
vimeo?: VimeoLink;
|
|
2283
2093
|
youtube?: YoutubeLink;
|
|
2284
2094
|
};
|
|
2285
|
-
/** @returns {StoreCriteriaRule} */
|
|
2286
|
-
declare function StoreCriteriaRule(): StoreCriteriaRule;
|
|
2287
|
-
type StoreCriteriaRule = {
|
|
2288
|
-
/**
|
|
2289
|
-
* - List of brand UID
|
|
2290
|
-
*/
|
|
2291
|
-
brands?: number[];
|
|
2292
|
-
/**
|
|
2293
|
-
* - List of company UID
|
|
2294
|
-
*/
|
|
2295
|
-
companies?: number[];
|
|
2296
|
-
};
|
|
2297
2095
|
/** @returns {StoreLatLong} */
|
|
2298
2096
|
declare function StoreLatLong(): StoreLatLong;
|
|
2299
2097
|
type StoreLatLong = {
|
|
@@ -2303,16 +2101,6 @@ type StoreLatLong = {
|
|
|
2303
2101
|
*/
|
|
2304
2102
|
type?: string;
|
|
2305
2103
|
};
|
|
2306
|
-
/** @returns {StorePriorityRule} */
|
|
2307
|
-
declare function StorePriorityRule(): StorePriorityRule;
|
|
2308
|
-
type StorePriorityRule = {
|
|
2309
|
-
/**
|
|
2310
|
-
* - Shows store priority is enabled or not
|
|
2311
|
-
* enabled for the article assignment.
|
|
2312
|
-
*/
|
|
2313
|
-
enabled?: boolean;
|
|
2314
|
-
storetype_order?: string[];
|
|
2315
|
-
};
|
|
2316
2104
|
/** @returns {SuccessMessageResponse} */
|
|
2317
2105
|
declare function SuccessMessageResponse(): SuccessMessageResponse;
|
|
2318
2106
|
type SuccessMessageResponse = {
|
|
@@ -2366,12 +2154,6 @@ declare function UnhandledError(): UnhandledError;
|
|
|
2366
2154
|
type UnhandledError = {
|
|
2367
2155
|
message?: string;
|
|
2368
2156
|
};
|
|
2369
|
-
/** @returns {UpdateDialog} */
|
|
2370
|
-
declare function UpdateDialog(): UpdateDialog;
|
|
2371
|
-
type UpdateDialog = {
|
|
2372
|
-
interval?: number;
|
|
2373
|
-
type?: string;
|
|
2374
|
-
};
|
|
2375
2157
|
/** @returns {UserEmail} */
|
|
2376
2158
|
declare function UserEmail(): UserEmail;
|
|
2377
2159
|
type UserEmail = {
|
|
@@ -36,11 +36,6 @@ const Joi = require("joi");
|
|
|
36
36
|
* modifications to the sales channel feature configuration
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* @typedef AppFeatureRequest
|
|
41
|
-
* @property {AppFeature} [feature]
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
39
|
/**
|
|
45
40
|
* @typedef AppFeatureResponse
|
|
46
41
|
* @property {AppFeature} [feature]
|
|
@@ -174,15 +169,6 @@ const Joi = require("joi");
|
|
|
174
169
|
* for a short time period.
|
|
175
170
|
*/
|
|
176
171
|
|
|
177
|
-
/**
|
|
178
|
-
* @typedef ApplicationVersionRequest
|
|
179
|
-
* @property {string} [id]
|
|
180
|
-
* @property {string} name
|
|
181
|
-
* @property {string} [namespace]
|
|
182
|
-
* @property {string} [token]
|
|
183
|
-
* @property {string} version
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
172
|
/**
|
|
187
173
|
* @typedef ApplicationWebsite
|
|
188
174
|
* @property {string} [basepath] - Base path for the current sales channel website
|
|
@@ -231,19 +217,6 @@ const Joi = require("joi");
|
|
|
231
217
|
* @property {string} [updated_at] - ISO 8601 timestamp of token updation
|
|
232
218
|
*/
|
|
233
219
|
|
|
234
|
-
/**
|
|
235
|
-
* @typedef AppVersionRequest
|
|
236
|
-
* @property {ApplicationVersionRequest} application
|
|
237
|
-
* @property {Device} device
|
|
238
|
-
* @property {string} [locale]
|
|
239
|
-
* @property {string} [timezone]
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @typedef ArticleAssignmentRule
|
|
244
|
-
* @property {StorePriorityRule} [store_priority]
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
220
|
/**
|
|
248
221
|
* @typedef BlogLink
|
|
249
222
|
* @property {string} [icon] - Hosted URL of icon image shown on the website
|
|
@@ -397,13 +370,6 @@ const Joi = require("joi");
|
|
|
397
370
|
* selection is optional.
|
|
398
371
|
*/
|
|
399
372
|
|
|
400
|
-
/**
|
|
401
|
-
* @typedef Device
|
|
402
|
-
* @property {number} [build]
|
|
403
|
-
* @property {string} [model]
|
|
404
|
-
* @property {OS} os
|
|
405
|
-
*/
|
|
406
|
-
|
|
407
373
|
/**
|
|
408
374
|
* @typedef Domain
|
|
409
375
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -529,41 +495,6 @@ const Joi = require("joi");
|
|
|
529
495
|
* @property {string} [title] - Name of the social media platform, e.g. Instagram
|
|
530
496
|
*/
|
|
531
497
|
|
|
532
|
-
/**
|
|
533
|
-
* @typedef InvalidPayloadRequest
|
|
534
|
-
* @property {string} [message] - Error message when request body payload is improper
|
|
535
|
-
*/
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* @typedef InventoryArticleAssignment
|
|
539
|
-
* @property {boolean} [post_order_reassignment] - Allow post order reassigment of article
|
|
540
|
-
* @property {ArticleAssignmentRule} [rules]
|
|
541
|
-
*/
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* @typedef InventoryBrandRule
|
|
545
|
-
* @property {number[]} [brands]
|
|
546
|
-
* @property {string} [criteria] - Whether all brands are enabled, or explicitly
|
|
547
|
-
* few brands in the inventory
|
|
548
|
-
*/
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* @typedef InventoryPaymentConfig
|
|
552
|
-
* @property {string} [mode_of_payment] - Mode of payment for the inventory of
|
|
553
|
-
* sales channel. It is required and default value is null.
|
|
554
|
-
* @property {string} [source] - Source of the payment mode for the inventory
|
|
555
|
-
* payment of sales channel. Default value is FYND.
|
|
556
|
-
*/
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* @typedef InventoryStoreRule
|
|
560
|
-
* @property {string} [criteria] - Whether all stores are enabled, or explicitly
|
|
561
|
-
* few stores in the inventory, or use brands and company filter.
|
|
562
|
-
* @property {StoreCriteriaRule[]} [rules] - List of rules with company and
|
|
563
|
-
* brands uids. Used when critera is `filter`.
|
|
564
|
-
* @property {number[]} [stores] - List of store uids. Used when critera is `explicit`.
|
|
565
|
-
*/
|
|
566
|
-
|
|
567
498
|
/**
|
|
568
499
|
* @typedef Ios
|
|
569
500
|
* @property {string} [api_key] - Firebase secret credential API key for IOS
|
|
@@ -695,18 +626,6 @@ const Joi = require("joi");
|
|
|
695
626
|
* @property {OrderingStoreSelect} ordering_store
|
|
696
627
|
*/
|
|
697
628
|
|
|
698
|
-
/**
|
|
699
|
-
* @typedef OrderingStoresResponse
|
|
700
|
-
* @property {OrderingStore[]} [items]
|
|
701
|
-
* @property {Page} [page]
|
|
702
|
-
*/
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* @typedef OS
|
|
706
|
-
* @property {string} name
|
|
707
|
-
* @property {string} [version]
|
|
708
|
-
*/
|
|
709
|
-
|
|
710
629
|
/**
|
|
711
630
|
* @typedef OwnerInfo
|
|
712
631
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -826,25 +745,12 @@ const Joi = require("joi");
|
|
|
826
745
|
* @property {YoutubeLink} [youtube]
|
|
827
746
|
*/
|
|
828
747
|
|
|
829
|
-
/**
|
|
830
|
-
* @typedef StoreCriteriaRule
|
|
831
|
-
* @property {number[]} [brands] - List of brand UID
|
|
832
|
-
* @property {number[]} [companies] - List of company UID
|
|
833
|
-
*/
|
|
834
|
-
|
|
835
748
|
/**
|
|
836
749
|
* @typedef StoreLatLong
|
|
837
750
|
* @property {number[]} [coordinates]
|
|
838
751
|
* @property {string} [type] - Coordinates type of the opted store
|
|
839
752
|
*/
|
|
840
753
|
|
|
841
|
-
/**
|
|
842
|
-
* @typedef StorePriorityRule
|
|
843
|
-
* @property {boolean} [enabled] - Shows store priority is enabled or not
|
|
844
|
-
* enabled for the article assignment.
|
|
845
|
-
* @property {string[]} [storetype_order]
|
|
846
|
-
*/
|
|
847
|
-
|
|
848
754
|
/**
|
|
849
755
|
* @typedef SuccessMessageResponse
|
|
850
756
|
* @property {string} [message] - Success message shown to the user (in a string format)
|
|
@@ -880,12 +786,6 @@ const Joi = require("joi");
|
|
|
880
786
|
* @property {string} [message]
|
|
881
787
|
*/
|
|
882
788
|
|
|
883
|
-
/**
|
|
884
|
-
* @typedef UpdateDialog
|
|
885
|
-
* @property {number} [interval]
|
|
886
|
-
* @property {string} [type]
|
|
887
|
-
*/
|
|
888
|
-
|
|
889
789
|
/**
|
|
890
790
|
* @typedef UserEmail
|
|
891
791
|
* @property {boolean} [active] - Current email is active or not active
|
|
@@ -961,13 +861,6 @@ class ConfigurationApplicationModel {
|
|
|
961
861
|
});
|
|
962
862
|
}
|
|
963
863
|
|
|
964
|
-
/** @returns {AppFeatureRequest} */
|
|
965
|
-
static AppFeatureRequest() {
|
|
966
|
-
return Joi.object({
|
|
967
|
-
feature: ConfigurationApplicationModel.AppFeature(),
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
|
|
971
864
|
/** @returns {AppFeatureResponse} */
|
|
972
865
|
static AppFeatureResponse() {
|
|
973
866
|
return Joi.object({
|
|
@@ -1099,17 +992,6 @@ class ConfigurationApplicationModel {
|
|
|
1099
992
|
});
|
|
1100
993
|
}
|
|
1101
994
|
|
|
1102
|
-
/** @returns {ApplicationVersionRequest} */
|
|
1103
|
-
static ApplicationVersionRequest() {
|
|
1104
|
-
return Joi.object({
|
|
1105
|
-
id: Joi.string().allow(""),
|
|
1106
|
-
name: Joi.string().allow("").required(),
|
|
1107
|
-
namespace: Joi.string().allow(""),
|
|
1108
|
-
token: Joi.string().allow(""),
|
|
1109
|
-
version: Joi.string().allow("").required(),
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
995
|
/** @returns {ApplicationWebsite} */
|
|
1114
996
|
static ApplicationWebsite() {
|
|
1115
997
|
return Joi.object({
|
|
@@ -1161,23 +1043,6 @@ class ConfigurationApplicationModel {
|
|
|
1161
1043
|
});
|
|
1162
1044
|
}
|
|
1163
1045
|
|
|
1164
|
-
/** @returns {AppVersionRequest} */
|
|
1165
|
-
static AppVersionRequest() {
|
|
1166
|
-
return Joi.object({
|
|
1167
|
-
application: ConfigurationApplicationModel.ApplicationVersionRequest().required(),
|
|
1168
|
-
device: ConfigurationApplicationModel.Device().required(),
|
|
1169
|
-
locale: Joi.string().allow(""),
|
|
1170
|
-
timezone: Joi.string().allow(""),
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
/** @returns {ArticleAssignmentRule} */
|
|
1175
|
-
static ArticleAssignmentRule() {
|
|
1176
|
-
return Joi.object({
|
|
1177
|
-
store_priority: ConfigurationApplicationModel.StorePriorityRule(),
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
1046
|
/** @returns {BlogLink} */
|
|
1182
1047
|
static BlogLink() {
|
|
1183
1048
|
return Joi.object({
|
|
@@ -1338,15 +1203,6 @@ class ConfigurationApplicationModel {
|
|
|
1338
1203
|
});
|
|
1339
1204
|
}
|
|
1340
1205
|
|
|
1341
|
-
/** @returns {Device} */
|
|
1342
|
-
static Device() {
|
|
1343
|
-
return Joi.object({
|
|
1344
|
-
build: Joi.number(),
|
|
1345
|
-
model: Joi.string().allow(""),
|
|
1346
|
-
os: ConfigurationApplicationModel.OS().required(),
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
1206
|
/** @returns {Domain} */
|
|
1351
1207
|
static Domain() {
|
|
1352
1208
|
return Joi.object({
|
|
@@ -1497,48 +1353,6 @@ class ConfigurationApplicationModel {
|
|
|
1497
1353
|
});
|
|
1498
1354
|
}
|
|
1499
1355
|
|
|
1500
|
-
/** @returns {InvalidPayloadRequest} */
|
|
1501
|
-
static InvalidPayloadRequest() {
|
|
1502
|
-
return Joi.object({
|
|
1503
|
-
message: Joi.string().allow(""),
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
/** @returns {InventoryArticleAssignment} */
|
|
1508
|
-
static InventoryArticleAssignment() {
|
|
1509
|
-
return Joi.object({
|
|
1510
|
-
post_order_reassignment: Joi.boolean(),
|
|
1511
|
-
rules: ConfigurationApplicationModel.ArticleAssignmentRule(),
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
/** @returns {InventoryBrandRule} */
|
|
1516
|
-
static InventoryBrandRule() {
|
|
1517
|
-
return Joi.object({
|
|
1518
|
-
brands: Joi.array().items(Joi.number()),
|
|
1519
|
-
criteria: Joi.string().allow(""),
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/** @returns {InventoryPaymentConfig} */
|
|
1524
|
-
static InventoryPaymentConfig() {
|
|
1525
|
-
return Joi.object({
|
|
1526
|
-
mode_of_payment: Joi.string().allow(""),
|
|
1527
|
-
source: Joi.string().allow(""),
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
/** @returns {InventoryStoreRule} */
|
|
1532
|
-
static InventoryStoreRule() {
|
|
1533
|
-
return Joi.object({
|
|
1534
|
-
criteria: Joi.string().allow(""),
|
|
1535
|
-
rules: Joi.array().items(
|
|
1536
|
-
ConfigurationApplicationModel.StoreCriteriaRule()
|
|
1537
|
-
),
|
|
1538
|
-
stores: Joi.array().items(Joi.number()),
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
1356
|
/** @returns {Ios} */
|
|
1543
1357
|
static Ios() {
|
|
1544
1358
|
return Joi.object({
|
|
@@ -1687,22 +1501,6 @@ class ConfigurationApplicationModel {
|
|
|
1687
1501
|
});
|
|
1688
1502
|
}
|
|
1689
1503
|
|
|
1690
|
-
/** @returns {OrderingStoresResponse} */
|
|
1691
|
-
static OrderingStoresResponse() {
|
|
1692
|
-
return Joi.object({
|
|
1693
|
-
items: Joi.array().items(ConfigurationApplicationModel.OrderingStore()),
|
|
1694
|
-
page: ConfigurationApplicationModel.Page(),
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
/** @returns {OS} */
|
|
1699
|
-
static OS() {
|
|
1700
|
-
return Joi.object({
|
|
1701
|
-
name: Joi.string().allow("").required(),
|
|
1702
|
-
version: Joi.string().allow(""),
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
1504
|
/** @returns {OwnerInfo} */
|
|
1707
1505
|
static OwnerInfo() {
|
|
1708
1506
|
return Joi.object({
|
|
@@ -1839,14 +1637,6 @@ class ConfigurationApplicationModel {
|
|
|
1839
1637
|
});
|
|
1840
1638
|
}
|
|
1841
1639
|
|
|
1842
|
-
/** @returns {StoreCriteriaRule} */
|
|
1843
|
-
static StoreCriteriaRule() {
|
|
1844
|
-
return Joi.object({
|
|
1845
|
-
brands: Joi.array().items(Joi.number()),
|
|
1846
|
-
companies: Joi.array().items(Joi.number()),
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
1640
|
/** @returns {StoreLatLong} */
|
|
1851
1641
|
static StoreLatLong() {
|
|
1852
1642
|
return Joi.object({
|
|
@@ -1855,14 +1645,6 @@ class ConfigurationApplicationModel {
|
|
|
1855
1645
|
});
|
|
1856
1646
|
}
|
|
1857
1647
|
|
|
1858
|
-
/** @returns {StorePriorityRule} */
|
|
1859
|
-
static StorePriorityRule() {
|
|
1860
|
-
return Joi.object({
|
|
1861
|
-
enabled: Joi.boolean(),
|
|
1862
|
-
storetype_order: Joi.array().items(Joi.string().allow("")),
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
1648
|
/** @returns {SuccessMessageResponse} */
|
|
1867
1649
|
static SuccessMessageResponse() {
|
|
1868
1650
|
return Joi.object({
|
|
@@ -1908,14 +1690,6 @@ class ConfigurationApplicationModel {
|
|
|
1908
1690
|
});
|
|
1909
1691
|
}
|
|
1910
1692
|
|
|
1911
|
-
/** @returns {UpdateDialog} */
|
|
1912
|
-
static UpdateDialog() {
|
|
1913
|
-
return Joi.object({
|
|
1914
|
-
interval: Joi.number(),
|
|
1915
|
-
type: Joi.string().allow(""),
|
|
1916
|
-
});
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
1693
|
/** @returns {UserEmail} */
|
|
1920
1694
|
static UserEmail() {
|
|
1921
1695
|
return Joi.object({
|