@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.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/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -23,6 +23,7 @@ const Joi = require("joi");
|
|
|
23
23
|
* @property {boolean} [bulk_coupons] - Allow creation of bulk coupons
|
|
24
24
|
* @property {DeliveryCharges} [delivery_charges]
|
|
25
25
|
* @property {boolean} [enabled] - Shows whether cart configuration is enabled or not
|
|
26
|
+
* @property {InternationalDeliveryCharges} [international_delivery_charges]
|
|
26
27
|
* @property {number} [max_cart_items] - Maximum number of items that can be
|
|
27
28
|
* added to cart by the customer
|
|
28
29
|
* @property {number} [min_cart_value] - Minimum cart value below which customer
|
|
@@ -34,9 +35,15 @@ const Joi = require("joi");
|
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* @typedef AppCurrencyResponse
|
|
38
|
+
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
39
|
+
* of the currency configuration supported by the application
|
|
37
40
|
* @property {string} [application] - Alphanumeric ID allotted to an application
|
|
38
41
|
* (sales channel website) created within a business account
|
|
42
|
+
* @property {string} [created_at] - ISO 8601 timestamp when currency was added
|
|
43
|
+
* in the list of currencies supported by the sales channel
|
|
39
44
|
* @property {DefaultCurrency} [default_currency]
|
|
45
|
+
* @property {string} [modified_at] - ISO 8601 timestamp when currency was
|
|
46
|
+
* updated in the list of currencies supported by the sales channel
|
|
40
47
|
* @property {Currency[]} [supported_currency]
|
|
41
48
|
*/
|
|
42
49
|
|
|
@@ -57,13 +64,13 @@ const Joi = require("joi");
|
|
|
57
64
|
* the features were configured
|
|
58
65
|
* @property {HomePageFeature} [home_page]
|
|
59
66
|
* @property {LandingPageFeature} [landing_page]
|
|
67
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of last known
|
|
68
|
+
* modifications to the sales channel feature configuration
|
|
60
69
|
* @property {OrderFeature} [order]
|
|
61
70
|
* @property {PcrFeature} [pcr]
|
|
62
71
|
* @property {ProductDetailFeature} [product_detail]
|
|
63
72
|
* @property {QrFeature} [qr]
|
|
64
73
|
* @property {RegistrationPageFeature} [registration_page]
|
|
65
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of last known
|
|
66
|
-
* modifications to the sales channel feature configuration
|
|
67
74
|
*/
|
|
68
75
|
|
|
69
76
|
/**
|
|
@@ -79,16 +86,8 @@ const Joi = require("joi");
|
|
|
79
86
|
/**
|
|
80
87
|
* @typedef AppInventory
|
|
81
88
|
* @property {InventoryArticleAssignment} [article_assignment]
|
|
82
|
-
* @property {
|
|
83
|
-
* @property {boolean} [franchise_enabled] - Allow other businesses (companies)
|
|
84
|
-
* to consume the current sales channel's inventory and sell products
|
|
85
|
-
* @property {string[]} [image]
|
|
86
|
-
* @property {boolean} [only_verified_products] - Show only verified products
|
|
87
|
-
* (the ones whose data have been verified by the admin)
|
|
88
|
-
* @property {boolean} [out_of_stock] - Indicates whether out of stock products
|
|
89
|
-
* are allowed to show up on the website.
|
|
89
|
+
* @property {InventoryConfig} [inventory]
|
|
90
90
|
* @property {InventoryPaymentConfig} [payment]
|
|
91
|
-
* @property {InventoryStoreRule} [store]
|
|
92
91
|
*/
|
|
93
92
|
|
|
94
93
|
/**
|
|
@@ -103,6 +102,7 @@ const Joi = require("joi");
|
|
|
103
102
|
* @typedef AppInventoryConfig
|
|
104
103
|
* @property {InventoryBrand} [brand]
|
|
105
104
|
* @property {InventoryCategory} [category]
|
|
105
|
+
* @property {number} [company_id]
|
|
106
106
|
* @property {Object[]} [company_store] - List of selling locations whose
|
|
107
107
|
* inventory is available to the sales channel for displaying on the website
|
|
108
108
|
* @property {InventoryDiscount} [discount]
|
|
@@ -133,10 +133,12 @@ const Joi = require("joi");
|
|
|
133
133
|
* @typedef AppInventoryStores
|
|
134
134
|
* @property {string} [_id] - The unique identifier of the store (24-digit Mongo
|
|
135
135
|
* Object ID) in the sales channel inventory
|
|
136
|
+
* @property {Object} [address]
|
|
136
137
|
* @property {number} [company_id] - Company ID of the selling location (store)
|
|
137
138
|
* added to the sales channel's inventory
|
|
138
139
|
* @property {string} [display_name] - Display name of the sales channel
|
|
139
140
|
* inventory store (can be different than the actual store name), e.g. Reebok MUM
|
|
141
|
+
* @property {Object} [integration_type]
|
|
140
142
|
* @property {string} [modified_on] - ISO 8601 timestamp of last known updation
|
|
141
143
|
* to the stores in sales channel inventory
|
|
142
144
|
* @property {string} [name] - Name of the store in the sales channel inventory,
|
|
@@ -175,14 +177,18 @@ const Joi = require("joi");
|
|
|
175
177
|
* @property {SecureUrl} [logo]
|
|
176
178
|
* @property {ApplicationMeta[]} [meta]
|
|
177
179
|
* @property {SecureUrl} [mobile_logo]
|
|
180
|
+
* @property {string} [mode]
|
|
181
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of sales channel updation
|
|
178
182
|
* @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
|
|
179
183
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
180
184
|
* of owner who owns the application
|
|
181
185
|
* @property {ApplicationRedirections[]} [redirections]
|
|
186
|
+
* @property {string} [secret]
|
|
182
187
|
* @property {string} [slug]
|
|
188
|
+
* @property {string} [status]
|
|
183
189
|
* @property {string} [token] - Random generated fix length string for sales
|
|
184
190
|
* channel. It is required and auto-generated.
|
|
185
|
-
* @property {
|
|
191
|
+
* @property {TokenSchema[]} [tokens]
|
|
186
192
|
* @property {ApplicationWebsite} [website]
|
|
187
193
|
*/
|
|
188
194
|
|
|
@@ -201,6 +207,7 @@ const Joi = require("joi");
|
|
|
201
207
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
202
208
|
* for the sales channel details
|
|
203
209
|
* @property {SecureUrl} [banner]
|
|
210
|
+
* @property {number} [company_id]
|
|
204
211
|
* @property {string} [description] - It gives a detailed information about the
|
|
205
212
|
* sales channel. It is required.
|
|
206
213
|
* @property {Domain} [domain]
|
|
@@ -209,6 +216,7 @@ const Joi = require("joi");
|
|
|
209
216
|
* @property {SecureUrl} [logo]
|
|
210
217
|
* @property {SecureUrl} [mobile_logo]
|
|
211
218
|
* @property {string} name - Name of the sales channel. It is required.
|
|
219
|
+
* @property {string} [slug]
|
|
212
220
|
*/
|
|
213
221
|
|
|
214
222
|
/**
|
|
@@ -219,20 +227,21 @@ const Joi = require("joi");
|
|
|
219
227
|
* @property {InformationAddress} [address]
|
|
220
228
|
* @property {string} [application] - Alphanumeric ID allotted to a sales
|
|
221
229
|
* channel application created within a business account
|
|
222
|
-
* @property {BusinessHighlights} [business_highlights]
|
|
230
|
+
* @property {BusinessHighlights[]} [business_highlights]
|
|
223
231
|
* @property {string} [copyright_text] - Copyright statement usually seen at the
|
|
224
232
|
* site's footer
|
|
225
233
|
* @property {string} [created_at] - ISO 8601 timestamp of creation of the
|
|
226
234
|
* application information
|
|
227
235
|
* @property {Links[]} [links]
|
|
236
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of updation of the
|
|
237
|
+
* application information
|
|
228
238
|
* @property {SocialLinks} [social_links]
|
|
229
239
|
* @property {InformationSupport} [support]
|
|
230
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of updation of the
|
|
231
|
-
* application information
|
|
232
240
|
*/
|
|
233
241
|
|
|
234
242
|
/**
|
|
235
243
|
* @typedef ApplicationInventory
|
|
244
|
+
* @property {number} [__v]
|
|
236
245
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
237
246
|
* of the sales channel inventory
|
|
238
247
|
* @property {string} [app] - Current sales channel ID
|
|
@@ -249,14 +258,16 @@ const Joi = require("joi");
|
|
|
249
258
|
* @property {AppInventoryConfig} [inventory]
|
|
250
259
|
* @property {AppLogisticsConfig} [logistics]
|
|
251
260
|
* @property {LoyaltyPointsConfig} [loyalty_points]
|
|
261
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of sales channel
|
|
262
|
+
* inventory updation
|
|
252
263
|
* @property {string} [modified_by] - User ID of the person who made the latest
|
|
253
264
|
* changes in the sales channel inventory
|
|
254
265
|
* @property {AppOrderConfig} [order]
|
|
255
266
|
* @property {AppPaymentConfig} [payment]
|
|
267
|
+
* @property {PiiMasking} [pii_masking]
|
|
256
268
|
* @property {string[]} [platforms]
|
|
257
269
|
* @property {RewardPointsConfig} [reward_points]
|
|
258
|
-
* @property {string} [
|
|
259
|
-
* inventory updation
|
|
270
|
+
* @property {string[]} [tags]
|
|
260
271
|
*/
|
|
261
272
|
|
|
262
273
|
/**
|
|
@@ -317,11 +328,12 @@ const Joi = require("joi");
|
|
|
317
328
|
* @property {PaymentSelectionLock} [payment_selection_lock]
|
|
318
329
|
* @property {string} [source] - Source of the payment mode, e.g. 'ECOMM'.
|
|
319
330
|
* Default value is FYND.
|
|
331
|
+
* @property {number} [user_cod_limit]
|
|
320
332
|
*/
|
|
321
333
|
|
|
322
334
|
/**
|
|
323
335
|
* @typedef AppStoreRules
|
|
324
|
-
* @property {
|
|
336
|
+
* @property {number[]} [brands] - List of brands whose products will be shown
|
|
325
337
|
* on the website
|
|
326
338
|
* @property {number[]} [companies] - List of companies whose inventory is
|
|
327
339
|
* available to the sales channel for displaying on the website
|
|
@@ -336,13 +348,14 @@ const Joi = require("joi");
|
|
|
336
348
|
* @property {string} [created_at] - ISO 8601 timestamp when currency was added
|
|
337
349
|
* in the list of currencies supported by the sales channel
|
|
338
350
|
* @property {DefaultCurrency} [default_currency]
|
|
339
|
-
* @property {string
|
|
340
|
-
* @property {string} [updated_at] - ISO 8601 timestamp when currency was
|
|
351
|
+
* @property {string} [modified_at] - ISO 8601 timestamp when currency was
|
|
341
352
|
* updated in the list of currencies supported by the sales channel
|
|
353
|
+
* @property {string[]} [supported_currency]
|
|
342
354
|
*/
|
|
343
355
|
|
|
344
356
|
/**
|
|
345
357
|
* @typedef ArticleAssignmentConfig
|
|
358
|
+
* @property {number[]} [enforced_stores]
|
|
346
359
|
* @property {boolean} [post_order_reassignment] - Allow post order reassigment of article
|
|
347
360
|
* @property {ArticleAssignmentRules} [rules]
|
|
348
361
|
*/
|
|
@@ -379,7 +392,7 @@ const Joi = require("joi");
|
|
|
379
392
|
|
|
380
393
|
/**
|
|
381
394
|
* @typedef BrandsByCompanyResponse
|
|
382
|
-
* @property {CompanyBrandInfo} [brands]
|
|
395
|
+
* @property {CompanyBrandInfo[]} [brands]
|
|
383
396
|
*/
|
|
384
397
|
|
|
385
398
|
/**
|
|
@@ -402,10 +415,11 @@ const Joi = require("joi");
|
|
|
402
415
|
* @property {string} [build_status] - Current progress of the mobile build,
|
|
403
416
|
* e.g. pending, cancelled, failed, success
|
|
404
417
|
* @property {string} [created_at] - ISO 8601 timestamp of app creation
|
|
418
|
+
* @property {LandingImage} [download_url]
|
|
419
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of last known
|
|
420
|
+
* modifications to the app build
|
|
405
421
|
* @property {string} [platform_type] - Device platform for which the mobile app
|
|
406
422
|
* was built, e.g. android, ios.
|
|
407
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of last known
|
|
408
|
-
* modifications to the app build
|
|
409
423
|
* @property {number} [version_code] - A positive integer used as an internal
|
|
410
424
|
* version number
|
|
411
425
|
* @property {string} [version_name] - Version number of the mobile build, in
|
|
@@ -416,7 +430,7 @@ const Joi = require("joi");
|
|
|
416
430
|
* @typedef BuildVersionHistory
|
|
417
431
|
* @property {string} [latest_available_version_name] - Latest version number of
|
|
418
432
|
* the mobile build, in dot-decimal notation
|
|
419
|
-
* @property {BuildVersion} [versions]
|
|
433
|
+
* @property {BuildVersion[]} [versions]
|
|
420
434
|
*/
|
|
421
435
|
|
|
422
436
|
/**
|
|
@@ -463,6 +477,8 @@ const Joi = require("joi");
|
|
|
463
477
|
* @property {CurrencyFeature} [currency]
|
|
464
478
|
* @property {DeploymentStoreSelectionFeature} [deployment_store_selection]
|
|
465
479
|
* @property {FeedbackFeature} [feedback]
|
|
480
|
+
* @property {InternationalShipping} [international_shipping]
|
|
481
|
+
* @property {ListingPageFeature} [listing_page]
|
|
466
482
|
* @property {ListingPriceFeature} [listing_price]
|
|
467
483
|
* @property {RevenueEngineFeature} [revenue_engine]
|
|
468
484
|
* @property {RewardPointsConfig} [reward_points]
|
|
@@ -487,7 +503,7 @@ const Joi = require("joi");
|
|
|
487
503
|
|
|
488
504
|
/**
|
|
489
505
|
* @typedef CompaniesResponse
|
|
490
|
-
* @property {AppInventoryCompanies} [items]
|
|
506
|
+
* @property {AppInventoryCompanies[]} [items]
|
|
491
507
|
* @property {Page} [page]
|
|
492
508
|
*/
|
|
493
509
|
|
|
@@ -528,7 +544,7 @@ const Joi = require("joi");
|
|
|
528
544
|
/**
|
|
529
545
|
* @typedef CreateApplicationRequest
|
|
530
546
|
* @property {App} [app]
|
|
531
|
-
* @property {
|
|
547
|
+
* @property {ApplicationInventory} [configuration]
|
|
532
548
|
* @property {AppDomain} [domain]
|
|
533
549
|
*/
|
|
534
550
|
|
|
@@ -568,6 +584,8 @@ const Joi = require("joi");
|
|
|
568
584
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
569
585
|
* of the current sales channel supported currency
|
|
570
586
|
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
587
|
+
* @property {string} [country_code]
|
|
588
|
+
* @property {string} [country_name]
|
|
571
589
|
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
572
590
|
* currency creation
|
|
573
591
|
* @property {number} [decimal_digits] - Acceptable decimal limits for a given
|
|
@@ -575,10 +593,10 @@ const Joi = require("joi");
|
|
|
575
593
|
* value of a currency.
|
|
576
594
|
* @property {boolean} [is_active] - Shows currency is enabled or not in current
|
|
577
595
|
* sales channel
|
|
596
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of sales channel
|
|
597
|
+
* support currency updation
|
|
578
598
|
* @property {string} [name] - Name of the currency, e.g Indian Rupee
|
|
579
599
|
* @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
|
|
580
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
581
|
-
* currency updation
|
|
582
600
|
*/
|
|
583
601
|
|
|
584
602
|
/**
|
|
@@ -613,6 +631,7 @@ const Joi = require("joi");
|
|
|
613
631
|
|
|
614
632
|
/**
|
|
615
633
|
* @typedef DeploymentMeta
|
|
634
|
+
* @property {number} [__v]
|
|
616
635
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
617
636
|
* of the ordering stores
|
|
618
637
|
* @property {boolean} [all_stores] - Allow all stores from the ordering store
|
|
@@ -642,6 +661,7 @@ const Joi = require("joi");
|
|
|
642
661
|
* @property {boolean} [is_primary] - Domain is primary or not. Primary domain
|
|
643
662
|
* is the default/main domain.
|
|
644
663
|
* @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
|
|
664
|
+
* @property {string} [message]
|
|
645
665
|
* @property {string} [name] - Full domain name, e.g. newton.com
|
|
646
666
|
* @property {boolean} [verified] - Domain is verified or not. TXT and A records
|
|
647
667
|
* should propagate correctly.
|
|
@@ -764,6 +784,7 @@ const Joi = require("joi");
|
|
|
764
784
|
|
|
765
785
|
/**
|
|
766
786
|
* @typedef FyndRewardsCredentials
|
|
787
|
+
* @property {string} [private_key] - Public key for integrating with Fynd rewards.
|
|
767
788
|
* @property {string} [public_key] - Public key for integrating with Fynd rewards.
|
|
768
789
|
*/
|
|
769
790
|
|
|
@@ -814,11 +835,17 @@ const Joi = require("joi");
|
|
|
814
835
|
* @property {string[]} [address_line] - Contact address of the sales channel
|
|
815
836
|
* @property {string} [city] - Name of the city, e.g. Mumbai
|
|
816
837
|
* @property {string} [country] - Name of the country, e.g. India
|
|
817
|
-
* @property {
|
|
838
|
+
* @property {InformationLoc} [loc]
|
|
818
839
|
* @property {InformationPhone[]} [phone]
|
|
819
840
|
* @property {number} [pincode] - 6-digit PIN Code of the city, e.g. 400001
|
|
820
841
|
*/
|
|
821
842
|
|
|
843
|
+
/**
|
|
844
|
+
* @typedef InformationLoc
|
|
845
|
+
* @property {number[]} [coordinates] - 10-digit mobile number
|
|
846
|
+
* @property {string} [type] - Country code for contact number, e.g. +91 (for India)
|
|
847
|
+
*/
|
|
848
|
+
|
|
822
849
|
/**
|
|
823
850
|
* @typedef InformationPhone
|
|
824
851
|
* @property {string} [code] - Country code for contact number, e.g. +91 (for India)
|
|
@@ -827,11 +854,24 @@ const Joi = require("joi");
|
|
|
827
854
|
|
|
828
855
|
/**
|
|
829
856
|
* @typedef InformationSupport
|
|
830
|
-
* @property {
|
|
831
|
-
* @property {
|
|
857
|
+
* @property {InformationSupportEmail[]} [email]
|
|
858
|
+
* @property {InformationSupportPhone[]} [phone]
|
|
832
859
|
* @property {string} [timing] - Working hours of support team, e.g. 9 AM to 9 PM
|
|
833
860
|
*/
|
|
834
861
|
|
|
862
|
+
/**
|
|
863
|
+
* @typedef InformationSupportEmail
|
|
864
|
+
* @property {string} [key]
|
|
865
|
+
* @property {string} [value] - Value of email.
|
|
866
|
+
*/
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* @typedef InformationSupportPhone
|
|
870
|
+
* @property {string} [code] - Country code for contact number, e.g. +91 (for India)
|
|
871
|
+
* @property {string} [key]
|
|
872
|
+
* @property {string} [number] - 10-digit mobile number
|
|
873
|
+
*/
|
|
874
|
+
|
|
835
875
|
/**
|
|
836
876
|
* @typedef InstagramLink
|
|
837
877
|
* @property {string} [icon] - Hosted URL of social icon image shown on the website
|
|
@@ -844,22 +884,24 @@ const Joi = require("joi");
|
|
|
844
884
|
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
845
885
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
846
886
|
* of the integration
|
|
847
|
-
* @property {
|
|
887
|
+
* @property {string[]} [companies]
|
|
848
888
|
* @property {Object} [constants]
|
|
849
889
|
* @property {string} [created_at] - ISO 8601 timestamp of integration creation
|
|
850
890
|
* @property {string} [description] - Basic description about the integration
|
|
851
891
|
* @property {string} [description_html] - Basic HTML description about the integration
|
|
892
|
+
* @property {boolean} [hidden]
|
|
852
893
|
* @property {string} [icon] - Hosted URL of the icon image
|
|
853
894
|
* @property {IntegrationMeta[]} [meta]
|
|
895
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of integration updation
|
|
854
896
|
* @property {string} [name] - Name of the integration, e.g. SAP RBL Integration
|
|
855
897
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
856
898
|
* of the user who created the integration
|
|
857
899
|
* @property {string} [secret] - Randomly generated fixed-length string for
|
|
858
900
|
* opted integration. It is auto-generated. It would never change once it is generated.
|
|
901
|
+
* @property {string} [slug] - Name of the integration, e.g. SAP RBL Integration
|
|
859
902
|
* @property {string[]} [support]
|
|
860
903
|
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
861
904
|
* integration. It is auto-generated. It would never change once it is generated.
|
|
862
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of integration updation
|
|
863
905
|
* @property {Validators} [validators]
|
|
864
906
|
*/
|
|
865
907
|
|
|
@@ -873,6 +915,7 @@ const Joi = require("joi");
|
|
|
873
915
|
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
874
916
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
875
917
|
* of the integration config
|
|
918
|
+
* @property {number} [company_id] - Unique id of company.
|
|
876
919
|
* @property {string} [created_at] - ISO 8601 timestamp of integration config creation
|
|
877
920
|
* @property {Object} [data] - Schema data of the integration stored in key-value pairs
|
|
878
921
|
* @property {string} [integration] - Integration id. Shows which integration
|
|
@@ -880,15 +923,17 @@ const Joi = require("joi");
|
|
|
880
923
|
* @property {LastPatch[]} [last_patch]
|
|
881
924
|
* @property {string} [level] - Shows for what level the integration is set up.
|
|
882
925
|
* It can be company level or store level.
|
|
926
|
+
* @property {string} [message]
|
|
883
927
|
* @property {IntegrationMeta[]} [meta]
|
|
928
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of integration config updation
|
|
884
929
|
* @property {boolean} [opted] - Shows this integration is opted or not opted
|
|
885
930
|
* for the current company
|
|
886
931
|
* @property {Object[]} [permissions]
|
|
932
|
+
* @property {boolean} [success]
|
|
887
933
|
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
888
934
|
* integration. It is auto-generated. It would never change once it is generated.
|
|
889
935
|
* @property {number} [uid] - It can be store uid or company uid. Depends on the
|
|
890
936
|
* level of integration.
|
|
891
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of integration config updation
|
|
892
937
|
*/
|
|
893
938
|
|
|
894
939
|
/**
|
|
@@ -905,29 +950,43 @@ const Joi = require("joi");
|
|
|
905
950
|
* @property {number} [__v] - Version key for tracking revisions. Default value is zero.
|
|
906
951
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
907
952
|
* of the opted integration
|
|
908
|
-
* @property {
|
|
953
|
+
* @property {string[]} [companies]
|
|
909
954
|
* @property {string} [constants]
|
|
910
955
|
* @property {string} [created_at] - ISO 8601 timestamp of integration creation
|
|
911
956
|
* @property {string} [description] - Basic description about the opted integration
|
|
912
957
|
* @property {string} [description_html] - Basic HTML description about the
|
|
913
958
|
* opted integration
|
|
959
|
+
* @property {boolean} [hidden]
|
|
914
960
|
* @property {string} [icon] - Hosted URL of the icon image
|
|
915
961
|
* @property {IntegrationMeta[]} [meta]
|
|
962
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of integration updation
|
|
916
963
|
* @property {string} [name] - Nmae of the opted integration, e.g. SAP RBL Integration
|
|
917
964
|
* @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
|
|
918
965
|
* of the user who created the integration
|
|
919
966
|
* @property {string} [secret] - Randomly generated fixed-length string for
|
|
920
967
|
* opted integration. It is auto-generated. It would never change once it is generated.
|
|
968
|
+
* @property {string} [slug] - Slug of the opted integration, e.g. ginesys
|
|
921
969
|
* @property {string[]} [support]
|
|
922
970
|
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
923
971
|
* integration. It is auto-generated. It would never change once it is generated.
|
|
924
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of integration updation
|
|
925
972
|
* @property {Validators} [validators]
|
|
926
973
|
*/
|
|
927
974
|
|
|
975
|
+
/**
|
|
976
|
+
* @typedef InternationalDeliveryCharges
|
|
977
|
+
* @property {Charges[]} [charges]
|
|
978
|
+
* @property {boolean} [enabled] - Allow international delivery charges
|
|
979
|
+
*/
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* @typedef InternationalShipping
|
|
983
|
+
* @property {boolean} [enabled] - International shipping is enabled or not.
|
|
984
|
+
*/
|
|
985
|
+
|
|
928
986
|
/**
|
|
929
987
|
* @typedef InvalidPayloadRequest
|
|
930
988
|
* @property {string} [message] - Error message when request body payload is improper
|
|
989
|
+
* @property {boolean} [success] - Flag for required not successfull.
|
|
931
990
|
*/
|
|
932
991
|
|
|
933
992
|
/**
|
|
@@ -938,7 +997,7 @@ const Joi = require("joi");
|
|
|
938
997
|
|
|
939
998
|
/**
|
|
940
999
|
* @typedef InventoryBrand
|
|
941
|
-
* @property {
|
|
1000
|
+
* @property {number[]} [brands] - List of brands
|
|
942
1001
|
* @property {string} [criteria] - All brands or specific (explicit) brands to
|
|
943
1002
|
* be shown on the website
|
|
944
1003
|
*/
|
|
@@ -957,6 +1016,19 @@ const Joi = require("joi");
|
|
|
957
1016
|
* @property {string} [criteria]
|
|
958
1017
|
*/
|
|
959
1018
|
|
|
1019
|
+
/**
|
|
1020
|
+
* @typedef InventoryConfig
|
|
1021
|
+
* @property {InventoryBrandRule} [brand]
|
|
1022
|
+
* @property {boolean} [franchise_enabled] - Allow other businesses (companies)
|
|
1023
|
+
* to consume the current sales channel's inventory and sell products
|
|
1024
|
+
* @property {string[]} [image]
|
|
1025
|
+
* @property {boolean} [only_verified_products] - Show only verified products
|
|
1026
|
+
* (the ones whose data have been verified by the admin)
|
|
1027
|
+
* @property {boolean} [out_of_stock] - Indicates whether out of stock products
|
|
1028
|
+
* are allowed to show up on the website.
|
|
1029
|
+
* @property {InventoryStoreRule} [store]
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
960
1032
|
/**
|
|
961
1033
|
* @typedef InventoryDiscount
|
|
962
1034
|
* @property {number} [max] - Maximum inventory discount
|
|
@@ -1063,6 +1135,11 @@ const Joi = require("joi");
|
|
|
1063
1135
|
* @property {string} [title] - Name of the related page or link
|
|
1064
1136
|
*/
|
|
1065
1137
|
|
|
1138
|
+
/**
|
|
1139
|
+
* @typedef ListingPageFeature
|
|
1140
|
+
* @property {string} [sort_on]
|
|
1141
|
+
*/
|
|
1142
|
+
|
|
1066
1143
|
/**
|
|
1067
1144
|
* @typedef ListingPriceFeature
|
|
1068
1145
|
* @property {string} [sort] - Sorting of listing price with min or max value.
|
|
@@ -1120,13 +1197,13 @@ const Joi = require("joi");
|
|
|
1120
1197
|
* configuration creation
|
|
1121
1198
|
* @property {boolean} [is_active] - Indicates the availability of the mobile build
|
|
1122
1199
|
* @property {LandingImage} [landing_image]
|
|
1200
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of last known
|
|
1201
|
+
* modifications to the app build
|
|
1123
1202
|
* @property {string} [package_name] - Shows bundle identifier if device
|
|
1124
1203
|
* platform is iOS, and directory of the app if device platform is Android
|
|
1125
1204
|
* @property {string} [platform_type] - Device platform for which the mobile app
|
|
1126
1205
|
* was built, e.g. android, ios.
|
|
1127
1206
|
* @property {SplashImage} [splash_image]
|
|
1128
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of last known
|
|
1129
|
-
* modifications to the app build
|
|
1130
1207
|
*/
|
|
1131
1208
|
|
|
1132
1209
|
/**
|
|
@@ -1146,6 +1223,7 @@ const Joi = require("joi");
|
|
|
1146
1223
|
/**
|
|
1147
1224
|
* @typedef NotFound
|
|
1148
1225
|
* @property {string} [message] - Response message for not found
|
|
1226
|
+
* @property {boolean} [success] - Flag for required not successfull.
|
|
1149
1227
|
*/
|
|
1150
1228
|
|
|
1151
1229
|
/**
|
|
@@ -1162,6 +1240,7 @@ const Joi = require("joi");
|
|
|
1162
1240
|
|
|
1163
1241
|
/**
|
|
1164
1242
|
* @typedef OptedCompany
|
|
1243
|
+
* @property {number} [id] - The unique identifier of the opted inventory company
|
|
1165
1244
|
* @property {string} [name] - Name of the company opted by the other seller's
|
|
1166
1245
|
* sales channel in its inventory
|
|
1167
1246
|
* @property {number} [uid] - Company UID opted by the other seller's sales
|
|
@@ -1170,7 +1249,7 @@ const Joi = require("joi");
|
|
|
1170
1249
|
|
|
1171
1250
|
/**
|
|
1172
1251
|
* @typedef OptedInventory
|
|
1173
|
-
* @property {Object} [items]
|
|
1252
|
+
* @property {Object[]} [items]
|
|
1174
1253
|
* @property {OptType} [opt_type]
|
|
1175
1254
|
*/
|
|
1176
1255
|
|
|
@@ -1196,9 +1275,12 @@ const Joi = require("joi");
|
|
|
1196
1275
|
* @property {string} [address2] - Address of the opted store
|
|
1197
1276
|
* @property {string} [city] - City of the opted store, e.g. Mumbai
|
|
1198
1277
|
* @property {string} [country] - Country of the opted store, e.g. India
|
|
1278
|
+
* @property {string} [country_code] - Country code of the selected country
|
|
1199
1279
|
* @property {StoreLatLong} [lat_long]
|
|
1200
1280
|
* @property {number} [pincode] - 6-digit PIN code of the opted store location
|
|
1281
|
+
* @property {string} [sector] - Sector for the opted store.
|
|
1201
1282
|
* @property {string} [state] - State of the opted store, e.g. Maharashtra
|
|
1283
|
+
* @property {string} [state_code] - Selected state code
|
|
1202
1284
|
*/
|
|
1203
1285
|
|
|
1204
1286
|
/**
|
|
@@ -1301,14 +1383,14 @@ const Joi = require("joi");
|
|
|
1301
1383
|
* @property {string} [level] - Indicates integration level. It can be company
|
|
1302
1384
|
* level or store level.
|
|
1303
1385
|
* @property {Object[]} [meta]
|
|
1386
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of other entity
|
|
1387
|
+
* updation for opted store integration
|
|
1304
1388
|
* @property {boolean} [opted] - Allow other entity opted in integration
|
|
1305
1389
|
* @property {string[]} [permissions]
|
|
1306
1390
|
* @property {string} [token] - Randomly generated fixed-length string for opted
|
|
1307
1391
|
* integration. It is auto-generated. It would never change once it is generated.
|
|
1308
1392
|
* @property {number} [uid] - It can be store uid or company uid. Depends on the
|
|
1309
1393
|
* level of integration.
|
|
1310
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of other entity updation
|
|
1311
|
-
* for opted store integration
|
|
1312
1394
|
*/
|
|
1313
1395
|
|
|
1314
1396
|
/**
|
|
@@ -1380,6 +1462,11 @@ const Joi = require("joi");
|
|
|
1380
1462
|
* @property {boolean} [staff_selection] - Allow staff selection. Default value is false.
|
|
1381
1463
|
*/
|
|
1382
1464
|
|
|
1465
|
+
/**
|
|
1466
|
+
* @typedef PiiMasking
|
|
1467
|
+
* @property {boolean} [enabled]
|
|
1468
|
+
*/
|
|
1469
|
+
|
|
1383
1470
|
/**
|
|
1384
1471
|
* @typedef PinterestLink
|
|
1385
1472
|
* @property {string} [icon] - Hosted URL of social icon image shown on the website
|
|
@@ -1521,7 +1608,7 @@ const Joi = require("joi");
|
|
|
1521
1608
|
|
|
1522
1609
|
/**
|
|
1523
1610
|
* @typedef StoresResponse
|
|
1524
|
-
* @property {AppInventoryStores} [items]
|
|
1611
|
+
* @property {AppInventoryStores[]} [items]
|
|
1525
1612
|
* @property {Page} [page]
|
|
1526
1613
|
*/
|
|
1527
1614
|
|
|
@@ -1545,8 +1632,8 @@ const Joi = require("joi");
|
|
|
1545
1632
|
* @property {string} [application] - Alphanumeric ID allotted to the current
|
|
1546
1633
|
* application created within the current business account
|
|
1547
1634
|
* @property {string} [created_at] - ISO 8601 timestamp of token creation
|
|
1635
|
+
* @property {string} [modified_at] - ISO 8601 timestamp of token updation
|
|
1548
1636
|
* @property {Tokens} [tokens]
|
|
1549
|
-
* @property {string} [updated_at] - ISO 8601 timestamp of token updation
|
|
1550
1637
|
*/
|
|
1551
1638
|
|
|
1552
1639
|
/**
|
|
@@ -1561,6 +1648,13 @@ const Joi = require("joi");
|
|
|
1561
1648
|
* @property {Segment} [segment]
|
|
1562
1649
|
*/
|
|
1563
1650
|
|
|
1651
|
+
/**
|
|
1652
|
+
* @typedef TokenSchema
|
|
1653
|
+
* @property {string} [created_at] - ISO 8601 timestamp of when token created
|
|
1654
|
+
* @property {Object} [created_by]
|
|
1655
|
+
* @property {string} [token]
|
|
1656
|
+
*/
|
|
1657
|
+
|
|
1564
1658
|
/**
|
|
1565
1659
|
* @typedef TwitterLink
|
|
1566
1660
|
* @property {string} [icon] - Hosted URL of social icon image shown on the website
|
|
@@ -1646,6 +1740,7 @@ class ConfigurationPlatformModel {
|
|
|
1646
1740
|
bulk_coupons: Joi.boolean(),
|
|
1647
1741
|
delivery_charges: ConfigurationPlatformModel.DeliveryCharges(),
|
|
1648
1742
|
enabled: Joi.boolean(),
|
|
1743
|
+
international_delivery_charges: ConfigurationPlatformModel.InternationalDeliveryCharges(),
|
|
1649
1744
|
max_cart_items: Joi.number(),
|
|
1650
1745
|
min_cart_value: Joi.number(),
|
|
1651
1746
|
pan_card: ConfigurationPlatformModel.PanCardConfig(),
|
|
@@ -1656,8 +1751,11 @@ class ConfigurationPlatformModel {
|
|
|
1656
1751
|
/** @returns {AppCurrencyResponse} */
|
|
1657
1752
|
static AppCurrencyResponse() {
|
|
1658
1753
|
return Joi.object({
|
|
1754
|
+
_id: Joi.string().allow(""),
|
|
1659
1755
|
application: Joi.string().allow(""),
|
|
1756
|
+
created_at: Joi.string().allow(""),
|
|
1660
1757
|
default_currency: ConfigurationPlatformModel.DefaultCurrency(),
|
|
1758
|
+
modified_at: Joi.string().allow(""),
|
|
1661
1759
|
supported_currency: Joi.array().items(
|
|
1662
1760
|
ConfigurationPlatformModel.Currency()
|
|
1663
1761
|
),
|
|
@@ -1682,12 +1780,12 @@ class ConfigurationPlatformModel {
|
|
|
1682
1780
|
created_at: Joi.string().allow(""),
|
|
1683
1781
|
home_page: ConfigurationPlatformModel.HomePageFeature(),
|
|
1684
1782
|
landing_page: ConfigurationPlatformModel.LandingPageFeature(),
|
|
1783
|
+
modified_at: Joi.string().allow(""),
|
|
1685
1784
|
order: ConfigurationPlatformModel.OrderFeature(),
|
|
1686
1785
|
pcr: ConfigurationPlatformModel.PcrFeature(),
|
|
1687
1786
|
product_detail: ConfigurationPlatformModel.ProductDetailFeature(),
|
|
1688
1787
|
qr: ConfigurationPlatformModel.QrFeature(),
|
|
1689
1788
|
registration_page: ConfigurationPlatformModel.RegistrationPageFeature(),
|
|
1690
|
-
updated_at: Joi.string().allow(""),
|
|
1691
1789
|
});
|
|
1692
1790
|
}
|
|
1693
1791
|
|
|
@@ -1709,13 +1807,8 @@ class ConfigurationPlatformModel {
|
|
|
1709
1807
|
static AppInventory() {
|
|
1710
1808
|
return Joi.object({
|
|
1711
1809
|
article_assignment: ConfigurationPlatformModel.InventoryArticleAssignment(),
|
|
1712
|
-
|
|
1713
|
-
franchise_enabled: Joi.boolean(),
|
|
1714
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
1715
|
-
only_verified_products: Joi.boolean(),
|
|
1716
|
-
out_of_stock: Joi.boolean(),
|
|
1810
|
+
inventory: ConfigurationPlatformModel.InventoryConfig(),
|
|
1717
1811
|
payment: ConfigurationPlatformModel.InventoryPaymentConfig(),
|
|
1718
|
-
store: ConfigurationPlatformModel.InventoryStoreRule(),
|
|
1719
1812
|
});
|
|
1720
1813
|
}
|
|
1721
1814
|
|
|
@@ -1733,6 +1826,7 @@ class ConfigurationPlatformModel {
|
|
|
1733
1826
|
return Joi.object({
|
|
1734
1827
|
brand: ConfigurationPlatformModel.InventoryBrand(),
|
|
1735
1828
|
category: ConfigurationPlatformModel.InventoryCategory(),
|
|
1829
|
+
company_id: Joi.number(),
|
|
1736
1830
|
company_store: Joi.array().items(Joi.any()),
|
|
1737
1831
|
discount: ConfigurationPlatformModel.InventoryDiscount(),
|
|
1738
1832
|
exclude_category: Joi.array().items(Joi.any()),
|
|
@@ -1761,8 +1855,10 @@ class ConfigurationPlatformModel {
|
|
|
1761
1855
|
static AppInventoryStores() {
|
|
1762
1856
|
return Joi.object({
|
|
1763
1857
|
_id: Joi.string().allow(""),
|
|
1858
|
+
address: Joi.object().pattern(/\S/, Joi.any()),
|
|
1764
1859
|
company_id: Joi.number(),
|
|
1765
1860
|
display_name: Joi.string().allow(""),
|
|
1861
|
+
integration_type: Joi.object().pattern(/\S/, Joi.any()),
|
|
1766
1862
|
modified_on: Joi.string().allow(""),
|
|
1767
1863
|
name: Joi.string().allow(""),
|
|
1768
1864
|
store_code: Joi.string().allow(""),
|
|
@@ -1793,14 +1889,18 @@ class ConfigurationPlatformModel {
|
|
|
1793
1889
|
logo: ConfigurationPlatformModel.SecureUrl(),
|
|
1794
1890
|
meta: Joi.array().items(ConfigurationPlatformModel.ApplicationMeta()),
|
|
1795
1891
|
mobile_logo: ConfigurationPlatformModel.SecureUrl(),
|
|
1892
|
+
mode: Joi.string().allow(""),
|
|
1893
|
+
modified_at: Joi.string().allow(""),
|
|
1796
1894
|
name: Joi.string().allow(""),
|
|
1797
1895
|
owner: Joi.string().allow(""),
|
|
1798
1896
|
redirections: Joi.array().items(
|
|
1799
1897
|
ConfigurationPlatformModel.ApplicationRedirections()
|
|
1800
1898
|
),
|
|
1899
|
+
secret: Joi.string().allow(""),
|
|
1801
1900
|
slug: Joi.string().allow(""),
|
|
1901
|
+
status: Joi.string().allow(""),
|
|
1802
1902
|
token: Joi.string().allow(""),
|
|
1803
|
-
|
|
1903
|
+
tokens: Joi.array().items(ConfigurationPlatformModel.TokenSchema()),
|
|
1804
1904
|
website: ConfigurationPlatformModel.ApplicationWebsite(),
|
|
1805
1905
|
});
|
|
1806
1906
|
}
|
|
@@ -1824,6 +1924,7 @@ class ConfigurationPlatformModel {
|
|
|
1824
1924
|
return Joi.object({
|
|
1825
1925
|
_id: Joi.string().allow(""),
|
|
1826
1926
|
banner: ConfigurationPlatformModel.SecureUrl(),
|
|
1927
|
+
company_id: Joi.number(),
|
|
1827
1928
|
description: Joi.string().allow(""),
|
|
1828
1929
|
domain: ConfigurationPlatformModel.Domain(),
|
|
1829
1930
|
domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
|
|
@@ -1831,6 +1932,7 @@ class ConfigurationPlatformModel {
|
|
|
1831
1932
|
logo: ConfigurationPlatformModel.SecureUrl(),
|
|
1832
1933
|
mobile_logo: ConfigurationPlatformModel.SecureUrl(),
|
|
1833
1934
|
name: Joi.string().allow("").required(),
|
|
1935
|
+
slug: Joi.string().allow(""),
|
|
1834
1936
|
});
|
|
1835
1937
|
}
|
|
1836
1938
|
|
|
@@ -1841,19 +1943,22 @@ class ConfigurationPlatformModel {
|
|
|
1841
1943
|
_id: Joi.string().allow(""),
|
|
1842
1944
|
address: ConfigurationPlatformModel.InformationAddress(),
|
|
1843
1945
|
application: Joi.string().allow(""),
|
|
1844
|
-
business_highlights:
|
|
1946
|
+
business_highlights: Joi.array().items(
|
|
1947
|
+
ConfigurationPlatformModel.BusinessHighlights()
|
|
1948
|
+
),
|
|
1845
1949
|
copyright_text: Joi.string().allow(""),
|
|
1846
1950
|
created_at: Joi.string().allow(""),
|
|
1847
1951
|
links: Joi.array().items(ConfigurationPlatformModel.Links()),
|
|
1952
|
+
modified_at: Joi.string().allow(""),
|
|
1848
1953
|
social_links: ConfigurationPlatformModel.SocialLinks(),
|
|
1849
1954
|
support: ConfigurationPlatformModel.InformationSupport(),
|
|
1850
|
-
updated_at: Joi.string().allow(""),
|
|
1851
1955
|
});
|
|
1852
1956
|
}
|
|
1853
1957
|
|
|
1854
1958
|
/** @returns {ApplicationInventory} */
|
|
1855
1959
|
static ApplicationInventory() {
|
|
1856
1960
|
return Joi.object({
|
|
1961
|
+
__v: Joi.number(),
|
|
1857
1962
|
_id: Joi.string().allow(""),
|
|
1858
1963
|
app: Joi.string().allow(""),
|
|
1859
1964
|
article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
|
|
@@ -1866,12 +1971,14 @@ class ConfigurationPlatformModel {
|
|
|
1866
1971
|
inventory: ConfigurationPlatformModel.AppInventoryConfig(),
|
|
1867
1972
|
logistics: ConfigurationPlatformModel.AppLogisticsConfig(),
|
|
1868
1973
|
loyalty_points: ConfigurationPlatformModel.LoyaltyPointsConfig(),
|
|
1974
|
+
modified_at: Joi.string().allow(""),
|
|
1869
1975
|
modified_by: Joi.string().allow(""),
|
|
1870
1976
|
order: ConfigurationPlatformModel.AppOrderConfig(),
|
|
1871
1977
|
payment: ConfigurationPlatformModel.AppPaymentConfig(),
|
|
1978
|
+
pii_masking: ConfigurationPlatformModel.PiiMasking(),
|
|
1872
1979
|
platforms: Joi.array().items(Joi.string().allow("")),
|
|
1873
1980
|
reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
|
|
1874
|
-
|
|
1981
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1875
1982
|
});
|
|
1876
1983
|
}
|
|
1877
1984
|
|
|
@@ -1939,13 +2046,14 @@ class ConfigurationPlatformModel {
|
|
|
1939
2046
|
mode_of_payment: Joi.string().allow(""),
|
|
1940
2047
|
payment_selection_lock: ConfigurationPlatformModel.PaymentSelectionLock(),
|
|
1941
2048
|
source: Joi.string().allow(""),
|
|
2049
|
+
user_cod_limit: Joi.number(),
|
|
1942
2050
|
});
|
|
1943
2051
|
}
|
|
1944
2052
|
|
|
1945
2053
|
/** @returns {AppStoreRules} */
|
|
1946
2054
|
static AppStoreRules() {
|
|
1947
2055
|
return Joi.object({
|
|
1948
|
-
brands: Joi.array().items(Joi.
|
|
2056
|
+
brands: Joi.array().items(Joi.number()),
|
|
1949
2057
|
companies: Joi.array().items(Joi.number()),
|
|
1950
2058
|
});
|
|
1951
2059
|
}
|
|
@@ -1957,14 +2065,15 @@ class ConfigurationPlatformModel {
|
|
|
1957
2065
|
application: Joi.string().allow(""),
|
|
1958
2066
|
created_at: Joi.string().allow(""),
|
|
1959
2067
|
default_currency: ConfigurationPlatformModel.DefaultCurrency(),
|
|
2068
|
+
modified_at: Joi.string().allow(""),
|
|
1960
2069
|
supported_currency: Joi.array().items(Joi.string().allow("")),
|
|
1961
|
-
updated_at: Joi.string().allow(""),
|
|
1962
2070
|
});
|
|
1963
2071
|
}
|
|
1964
2072
|
|
|
1965
2073
|
/** @returns {ArticleAssignmentConfig} */
|
|
1966
2074
|
static ArticleAssignmentConfig() {
|
|
1967
2075
|
return Joi.object({
|
|
2076
|
+
enforced_stores: Joi.array().items(Joi.number()),
|
|
1968
2077
|
post_order_reassignment: Joi.boolean(),
|
|
1969
2078
|
rules: ConfigurationPlatformModel.ArticleAssignmentRules(),
|
|
1970
2079
|
});
|
|
@@ -2012,7 +2121,7 @@ class ConfigurationPlatformModel {
|
|
|
2012
2121
|
/** @returns {BrandsByCompanyResponse} */
|
|
2013
2122
|
static BrandsByCompanyResponse() {
|
|
2014
2123
|
return Joi.object({
|
|
2015
|
-
brands: ConfigurationPlatformModel.CompanyBrandInfo(),
|
|
2124
|
+
brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
|
|
2016
2125
|
});
|
|
2017
2126
|
}
|
|
2018
2127
|
|
|
@@ -2036,8 +2145,9 @@ class ConfigurationPlatformModel {
|
|
|
2036
2145
|
application: Joi.string().allow(""),
|
|
2037
2146
|
build_status: Joi.string().allow(""),
|
|
2038
2147
|
created_at: Joi.string().allow(""),
|
|
2148
|
+
download_url: ConfigurationPlatformModel.LandingImage(),
|
|
2149
|
+
modified_at: Joi.string().allow(""),
|
|
2039
2150
|
platform_type: Joi.string().allow(""),
|
|
2040
|
-
updated_at: Joi.string().allow(""),
|
|
2041
2151
|
version_code: Joi.number(),
|
|
2042
2152
|
version_name: Joi.string().allow(""),
|
|
2043
2153
|
});
|
|
@@ -2047,7 +2157,7 @@ class ConfigurationPlatformModel {
|
|
|
2047
2157
|
static BuildVersionHistory() {
|
|
2048
2158
|
return Joi.object({
|
|
2049
2159
|
latest_available_version_name: Joi.string().allow(""),
|
|
2050
|
-
versions: ConfigurationPlatformModel.BuildVersion(),
|
|
2160
|
+
versions: Joi.array().items(ConfigurationPlatformModel.BuildVersion()),
|
|
2051
2161
|
});
|
|
2052
2162
|
}
|
|
2053
2163
|
|
|
@@ -2096,6 +2206,8 @@ class ConfigurationPlatformModel {
|
|
|
2096
2206
|
currency: ConfigurationPlatformModel.CurrencyFeature(),
|
|
2097
2207
|
deployment_store_selection: ConfigurationPlatformModel.DeploymentStoreSelectionFeature(),
|
|
2098
2208
|
feedback: ConfigurationPlatformModel.FeedbackFeature(),
|
|
2209
|
+
international_shipping: ConfigurationPlatformModel.InternationalShipping(),
|
|
2210
|
+
listing_page: ConfigurationPlatformModel.ListingPageFeature(),
|
|
2099
2211
|
listing_price: ConfigurationPlatformModel.ListingPriceFeature(),
|
|
2100
2212
|
revenue_engine: ConfigurationPlatformModel.RevenueEngineFeature(),
|
|
2101
2213
|
reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
|
|
@@ -2128,7 +2240,9 @@ class ConfigurationPlatformModel {
|
|
|
2128
2240
|
/** @returns {CompaniesResponse} */
|
|
2129
2241
|
static CompaniesResponse() {
|
|
2130
2242
|
return Joi.object({
|
|
2131
|
-
items:
|
|
2243
|
+
items: Joi.array().items(
|
|
2244
|
+
ConfigurationPlatformModel.AppInventoryCompanies()
|
|
2245
|
+
),
|
|
2132
2246
|
page: ConfigurationPlatformModel.Page(),
|
|
2133
2247
|
});
|
|
2134
2248
|
}
|
|
@@ -2179,7 +2293,7 @@ class ConfigurationPlatformModel {
|
|
|
2179
2293
|
static CreateApplicationRequest() {
|
|
2180
2294
|
return Joi.object({
|
|
2181
2295
|
app: ConfigurationPlatformModel.App(),
|
|
2182
|
-
configuration: ConfigurationPlatformModel.
|
|
2296
|
+
configuration: ConfigurationPlatformModel.ApplicationInventory(),
|
|
2183
2297
|
domain: ConfigurationPlatformModel.AppDomain(),
|
|
2184
2298
|
});
|
|
2185
2299
|
}
|
|
@@ -2223,12 +2337,14 @@ class ConfigurationPlatformModel {
|
|
|
2223
2337
|
return Joi.object({
|
|
2224
2338
|
_id: Joi.string().allow(""),
|
|
2225
2339
|
code: Joi.string().allow(""),
|
|
2340
|
+
country_code: Joi.string().allow(""),
|
|
2341
|
+
country_name: Joi.string().allow(""),
|
|
2226
2342
|
created_at: Joi.string().allow(""),
|
|
2227
2343
|
decimal_digits: Joi.number(),
|
|
2228
2344
|
is_active: Joi.boolean(),
|
|
2345
|
+
modified_at: Joi.string().allow(""),
|
|
2229
2346
|
name: Joi.string().allow(""),
|
|
2230
2347
|
symbol: Joi.string().allow(""),
|
|
2231
|
-
updated_at: Joi.string().allow(""),
|
|
2232
2348
|
});
|
|
2233
2349
|
}
|
|
2234
2350
|
|
|
@@ -2269,6 +2385,7 @@ class ConfigurationPlatformModel {
|
|
|
2269
2385
|
/** @returns {DeploymentMeta} */
|
|
2270
2386
|
static DeploymentMeta() {
|
|
2271
2387
|
return Joi.object({
|
|
2388
|
+
__v: Joi.number(),
|
|
2272
2389
|
_id: Joi.string().allow(""),
|
|
2273
2390
|
all_stores: Joi.boolean(),
|
|
2274
2391
|
app: Joi.string().allow(""),
|
|
@@ -2293,6 +2410,7 @@ class ConfigurationPlatformModel {
|
|
|
2293
2410
|
is_predefined: Joi.boolean(),
|
|
2294
2411
|
is_primary: Joi.boolean(),
|
|
2295
2412
|
is_shortlink: Joi.boolean(),
|
|
2413
|
+
message: Joi.string().allow(""),
|
|
2296
2414
|
name: Joi.string().allow(""),
|
|
2297
2415
|
verified: Joi.boolean(),
|
|
2298
2416
|
});
|
|
@@ -2434,6 +2552,7 @@ class ConfigurationPlatformModel {
|
|
|
2434
2552
|
/** @returns {FyndRewardsCredentials} */
|
|
2435
2553
|
static FyndRewardsCredentials() {
|
|
2436
2554
|
return Joi.object({
|
|
2555
|
+
private_key: Joi.string().allow(""),
|
|
2437
2556
|
public_key: Joi.string().allow(""),
|
|
2438
2557
|
});
|
|
2439
2558
|
}
|
|
@@ -2497,12 +2616,20 @@ class ConfigurationPlatformModel {
|
|
|
2497
2616
|
address_line: Joi.array().items(Joi.string().allow("")),
|
|
2498
2617
|
city: Joi.string().allow(""),
|
|
2499
2618
|
country: Joi.string().allow(""),
|
|
2500
|
-
loc:
|
|
2619
|
+
loc: ConfigurationPlatformModel.InformationLoc(),
|
|
2501
2620
|
phone: Joi.array().items(ConfigurationPlatformModel.InformationPhone()),
|
|
2502
2621
|
pincode: Joi.number(),
|
|
2503
2622
|
});
|
|
2504
2623
|
}
|
|
2505
2624
|
|
|
2625
|
+
/** @returns {InformationLoc} */
|
|
2626
|
+
static InformationLoc() {
|
|
2627
|
+
return Joi.object({
|
|
2628
|
+
coordinates: Joi.array().items(Joi.number()),
|
|
2629
|
+
type: Joi.string().allow(""),
|
|
2630
|
+
});
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2506
2633
|
/** @returns {InformationPhone} */
|
|
2507
2634
|
static InformationPhone() {
|
|
2508
2635
|
return Joi.object({
|
|
@@ -2514,12 +2641,33 @@ class ConfigurationPlatformModel {
|
|
|
2514
2641
|
/** @returns {InformationSupport} */
|
|
2515
2642
|
static InformationSupport() {
|
|
2516
2643
|
return Joi.object({
|
|
2517
|
-
email: Joi.array().items(
|
|
2518
|
-
|
|
2644
|
+
email: Joi.array().items(
|
|
2645
|
+
ConfigurationPlatformModel.InformationSupportEmail()
|
|
2646
|
+
),
|
|
2647
|
+
phone: Joi.array().items(
|
|
2648
|
+
ConfigurationPlatformModel.InformationSupportPhone()
|
|
2649
|
+
),
|
|
2519
2650
|
timing: Joi.string().allow(""),
|
|
2520
2651
|
});
|
|
2521
2652
|
}
|
|
2522
2653
|
|
|
2654
|
+
/** @returns {InformationSupportEmail} */
|
|
2655
|
+
static InformationSupportEmail() {
|
|
2656
|
+
return Joi.object({
|
|
2657
|
+
key: Joi.string().allow(""),
|
|
2658
|
+
value: Joi.string().allow(""),
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
/** @returns {InformationSupportPhone} */
|
|
2663
|
+
static InformationSupportPhone() {
|
|
2664
|
+
return Joi.object({
|
|
2665
|
+
code: Joi.string().allow(""),
|
|
2666
|
+
key: Joi.string().allow(""),
|
|
2667
|
+
number: Joi.string().allow(""),
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2523
2671
|
/** @returns {InstagramLink} */
|
|
2524
2672
|
static InstagramLink() {
|
|
2525
2673
|
return Joi.object({
|
|
@@ -2534,19 +2682,21 @@ class ConfigurationPlatformModel {
|
|
|
2534
2682
|
return Joi.object({
|
|
2535
2683
|
__v: Joi.number(),
|
|
2536
2684
|
_id: Joi.string().allow(""),
|
|
2537
|
-
companies: Joi.array().items(Joi.
|
|
2685
|
+
companies: Joi.array().items(Joi.string().allow("")),
|
|
2538
2686
|
constants: Joi.any(),
|
|
2539
2687
|
created_at: Joi.string().allow(""),
|
|
2540
2688
|
description: Joi.string().allow(""),
|
|
2541
2689
|
description_html: Joi.string().allow(""),
|
|
2690
|
+
hidden: Joi.boolean(),
|
|
2542
2691
|
icon: Joi.string().allow(""),
|
|
2543
2692
|
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2693
|
+
modified_at: Joi.string().allow(""),
|
|
2544
2694
|
name: Joi.string().allow(""),
|
|
2545
2695
|
owner: Joi.string().allow(""),
|
|
2546
2696
|
secret: Joi.string().allow(""),
|
|
2697
|
+
slug: Joi.string().allow(""),
|
|
2547
2698
|
support: Joi.array().items(Joi.string().allow("")),
|
|
2548
2699
|
token: Joi.string().allow(""),
|
|
2549
|
-
updated_at: Joi.string().allow(""),
|
|
2550
2700
|
validators: ConfigurationPlatformModel.Validators(),
|
|
2551
2701
|
});
|
|
2552
2702
|
}
|
|
@@ -2563,17 +2713,20 @@ class ConfigurationPlatformModel {
|
|
|
2563
2713
|
return Joi.object({
|
|
2564
2714
|
__v: Joi.number(),
|
|
2565
2715
|
_id: Joi.string().allow(""),
|
|
2716
|
+
company_id: Joi.number(),
|
|
2566
2717
|
created_at: Joi.string().allow(""),
|
|
2567
2718
|
data: Joi.any(),
|
|
2568
2719
|
integration: Joi.string().allow(""),
|
|
2569
2720
|
last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
|
|
2570
2721
|
level: Joi.string().allow(""),
|
|
2722
|
+
message: Joi.string().allow(""),
|
|
2571
2723
|
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2724
|
+
modified_at: Joi.string().allow(""),
|
|
2572
2725
|
opted: Joi.boolean(),
|
|
2573
2726
|
permissions: Joi.array().items(Joi.any()),
|
|
2727
|
+
success: Joi.boolean(),
|
|
2574
2728
|
token: Joi.string().allow(""),
|
|
2575
2729
|
uid: Joi.number(),
|
|
2576
|
-
updated_at: Joi.string().allow(""),
|
|
2577
2730
|
});
|
|
2578
2731
|
}
|
|
2579
2732
|
|
|
@@ -2592,27 +2745,45 @@ class ConfigurationPlatformModel {
|
|
|
2592
2745
|
return Joi.object({
|
|
2593
2746
|
__v: Joi.number(),
|
|
2594
2747
|
_id: Joi.string().allow(""),
|
|
2595
|
-
companies: Joi.array().items(Joi.
|
|
2748
|
+
companies: Joi.array().items(Joi.string().allow("")),
|
|
2596
2749
|
constants: Joi.string().allow(""),
|
|
2597
2750
|
created_at: Joi.string().allow(""),
|
|
2598
2751
|
description: Joi.string().allow(""),
|
|
2599
2752
|
description_html: Joi.string().allow(""),
|
|
2753
|
+
hidden: Joi.boolean(),
|
|
2600
2754
|
icon: Joi.string().allow(""),
|
|
2601
2755
|
meta: Joi.array().items(ConfigurationPlatformModel.IntegrationMeta()),
|
|
2756
|
+
modified_at: Joi.string().allow(""),
|
|
2602
2757
|
name: Joi.string().allow(""),
|
|
2603
2758
|
owner: Joi.string().allow(""),
|
|
2604
2759
|
secret: Joi.string().allow(""),
|
|
2760
|
+
slug: Joi.string().allow(""),
|
|
2605
2761
|
support: Joi.array().items(Joi.string().allow("")),
|
|
2606
2762
|
token: Joi.string().allow(""),
|
|
2607
|
-
updated_at: Joi.string().allow(""),
|
|
2608
2763
|
validators: ConfigurationPlatformModel.Validators(),
|
|
2609
2764
|
});
|
|
2610
2765
|
}
|
|
2611
2766
|
|
|
2767
|
+
/** @returns {InternationalDeliveryCharges} */
|
|
2768
|
+
static InternationalDeliveryCharges() {
|
|
2769
|
+
return Joi.object({
|
|
2770
|
+
charges: Joi.array().items(ConfigurationPlatformModel.Charges()),
|
|
2771
|
+
enabled: Joi.boolean(),
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/** @returns {InternationalShipping} */
|
|
2776
|
+
static InternationalShipping() {
|
|
2777
|
+
return Joi.object({
|
|
2778
|
+
enabled: Joi.boolean(),
|
|
2779
|
+
});
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2612
2782
|
/** @returns {InvalidPayloadRequest} */
|
|
2613
2783
|
static InvalidPayloadRequest() {
|
|
2614
2784
|
return Joi.object({
|
|
2615
2785
|
message: Joi.string().allow(""),
|
|
2786
|
+
success: Joi.boolean(),
|
|
2616
2787
|
});
|
|
2617
2788
|
}
|
|
2618
2789
|
|
|
@@ -2627,7 +2798,7 @@ class ConfigurationPlatformModel {
|
|
|
2627
2798
|
/** @returns {InventoryBrand} */
|
|
2628
2799
|
static InventoryBrand() {
|
|
2629
2800
|
return Joi.object({
|
|
2630
|
-
brands: Joi.array().items(Joi.
|
|
2801
|
+
brands: Joi.array().items(Joi.number()),
|
|
2631
2802
|
criteria: Joi.string().allow(""),
|
|
2632
2803
|
});
|
|
2633
2804
|
}
|
|
@@ -2648,6 +2819,18 @@ class ConfigurationPlatformModel {
|
|
|
2648
2819
|
});
|
|
2649
2820
|
}
|
|
2650
2821
|
|
|
2822
|
+
/** @returns {InventoryConfig} */
|
|
2823
|
+
static InventoryConfig() {
|
|
2824
|
+
return Joi.object({
|
|
2825
|
+
brand: ConfigurationPlatformModel.InventoryBrandRule(),
|
|
2826
|
+
franchise_enabled: Joi.boolean(),
|
|
2827
|
+
image: Joi.array().items(Joi.string().allow("")),
|
|
2828
|
+
only_verified_products: Joi.boolean(),
|
|
2829
|
+
out_of_stock: Joi.boolean(),
|
|
2830
|
+
store: ConfigurationPlatformModel.InventoryStoreRule(),
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2651
2834
|
/** @returns {InventoryDiscount} */
|
|
2652
2835
|
static InventoryDiscount() {
|
|
2653
2836
|
return Joi.object({
|
|
@@ -2770,6 +2953,13 @@ class ConfigurationPlatformModel {
|
|
|
2770
2953
|
});
|
|
2771
2954
|
}
|
|
2772
2955
|
|
|
2956
|
+
/** @returns {ListingPageFeature} */
|
|
2957
|
+
static ListingPageFeature() {
|
|
2958
|
+
return Joi.object({
|
|
2959
|
+
sort_on: Joi.string().allow(""),
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2773
2963
|
/** @returns {ListingPriceFeature} */
|
|
2774
2964
|
static ListingPriceFeature() {
|
|
2775
2965
|
return Joi.object({
|
|
@@ -2831,10 +3021,10 @@ class ConfigurationPlatformModel {
|
|
|
2831
3021
|
created_at: Joi.string().allow(""),
|
|
2832
3022
|
is_active: Joi.boolean(),
|
|
2833
3023
|
landing_image: ConfigurationPlatformModel.LandingImage(),
|
|
3024
|
+
modified_at: Joi.string().allow(""),
|
|
2834
3025
|
package_name: Joi.string().allow(""),
|
|
2835
3026
|
platform_type: Joi.string().allow(""),
|
|
2836
3027
|
splash_image: ConfigurationPlatformModel.SplashImage(),
|
|
2837
|
-
updated_at: Joi.string().allow(""),
|
|
2838
3028
|
});
|
|
2839
3029
|
}
|
|
2840
3030
|
|
|
@@ -2857,6 +3047,7 @@ class ConfigurationPlatformModel {
|
|
|
2857
3047
|
static NotFound() {
|
|
2858
3048
|
return Joi.object({
|
|
2859
3049
|
message: Joi.string().allow(""),
|
|
3050
|
+
success: Joi.boolean(),
|
|
2860
3051
|
});
|
|
2861
3052
|
}
|
|
2862
3053
|
|
|
@@ -2876,6 +3067,7 @@ class ConfigurationPlatformModel {
|
|
|
2876
3067
|
/** @returns {OptedCompany} */
|
|
2877
3068
|
static OptedCompany() {
|
|
2878
3069
|
return Joi.object({
|
|
3070
|
+
id: Joi.number(),
|
|
2879
3071
|
name: Joi.string().allow(""),
|
|
2880
3072
|
uid: Joi.number(),
|
|
2881
3073
|
});
|
|
@@ -2884,7 +3076,7 @@ class ConfigurationPlatformModel {
|
|
|
2884
3076
|
/** @returns {OptedInventory} */
|
|
2885
3077
|
static OptedInventory() {
|
|
2886
3078
|
return Joi.object({
|
|
2887
|
-
items: Joi.any(),
|
|
3079
|
+
items: Joi.array().items(Joi.any()),
|
|
2888
3080
|
opt_type: ConfigurationPlatformModel.OptType(),
|
|
2889
3081
|
});
|
|
2890
3082
|
}
|
|
@@ -2911,9 +3103,12 @@ class ConfigurationPlatformModel {
|
|
|
2911
3103
|
address2: Joi.string().allow(""),
|
|
2912
3104
|
city: Joi.string().allow(""),
|
|
2913
3105
|
country: Joi.string().allow(""),
|
|
3106
|
+
country_code: Joi.string().allow(""),
|
|
2914
3107
|
lat_long: ConfigurationPlatformModel.StoreLatLong(),
|
|
2915
3108
|
pincode: Joi.number(),
|
|
3109
|
+
sector: Joi.string().allow(""),
|
|
2916
3110
|
state: Joi.string().allow(""),
|
|
3111
|
+
state_code: Joi.string().allow(""),
|
|
2917
3112
|
});
|
|
2918
3113
|
}
|
|
2919
3114
|
|
|
@@ -3027,11 +3222,11 @@ class ConfigurationPlatformModel {
|
|
|
3027
3222
|
last_patch: Joi.array().items(ConfigurationPlatformModel.LastPatch()),
|
|
3028
3223
|
level: Joi.string().allow(""),
|
|
3029
3224
|
meta: Joi.array().items(Joi.any()),
|
|
3225
|
+
modified_at: Joi.string().allow(""),
|
|
3030
3226
|
opted: Joi.boolean(),
|
|
3031
3227
|
permissions: Joi.array().items(Joi.string().allow("")),
|
|
3032
3228
|
token: Joi.string().allow(""),
|
|
3033
3229
|
uid: Joi.number(),
|
|
3034
|
-
updated_at: Joi.string().allow(""),
|
|
3035
3230
|
});
|
|
3036
3231
|
}
|
|
3037
3232
|
|
|
@@ -3117,6 +3312,13 @@ class ConfigurationPlatformModel {
|
|
|
3117
3312
|
});
|
|
3118
3313
|
}
|
|
3119
3314
|
|
|
3315
|
+
/** @returns {PiiMasking} */
|
|
3316
|
+
static PiiMasking() {
|
|
3317
|
+
return Joi.object({
|
|
3318
|
+
enabled: Joi.boolean(),
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3120
3322
|
/** @returns {PinterestLink} */
|
|
3121
3323
|
static PinterestLink() {
|
|
3122
3324
|
return Joi.object({
|
|
@@ -3279,7 +3481,7 @@ class ConfigurationPlatformModel {
|
|
|
3279
3481
|
/** @returns {StoresResponse} */
|
|
3280
3482
|
static StoresResponse() {
|
|
3281
3483
|
return Joi.object({
|
|
3282
|
-
items: ConfigurationPlatformModel.AppInventoryStores(),
|
|
3484
|
+
items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
|
|
3283
3485
|
page: ConfigurationPlatformModel.Page(),
|
|
3284
3486
|
});
|
|
3285
3487
|
}
|
|
@@ -3307,8 +3509,8 @@ class ConfigurationPlatformModel {
|
|
|
3307
3509
|
_id: Joi.string().allow(""),
|
|
3308
3510
|
application: Joi.string().allow(""),
|
|
3309
3511
|
created_at: Joi.string().allow(""),
|
|
3512
|
+
modified_at: Joi.string().allow(""),
|
|
3310
3513
|
tokens: ConfigurationPlatformModel.Tokens(),
|
|
3311
|
-
updated_at: Joi.string().allow(""),
|
|
3312
3514
|
});
|
|
3313
3515
|
}
|
|
3314
3516
|
|
|
@@ -3326,6 +3528,15 @@ class ConfigurationPlatformModel {
|
|
|
3326
3528
|
});
|
|
3327
3529
|
}
|
|
3328
3530
|
|
|
3531
|
+
/** @returns {TokenSchema} */
|
|
3532
|
+
static TokenSchema() {
|
|
3533
|
+
return Joi.object({
|
|
3534
|
+
created_at: Joi.string().allow(""),
|
|
3535
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3536
|
+
token: Joi.string().allow(""),
|
|
3537
|
+
});
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3329
3540
|
/** @returns {TwitterLink} */
|
|
3330
3541
|
static TwitterLink() {
|
|
3331
3542
|
return Joi.object({
|