@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -181,7 +181,7 @@ const Joi = require("joi");
|
|
|
181
181
|
*/
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* @typedef
|
|
184
|
+
* @typedef ErrorResponseSchema
|
|
185
185
|
* @property {string} [error] - A brief description of the error.
|
|
186
186
|
*/
|
|
187
187
|
|
|
@@ -296,14 +296,14 @@ const Joi = require("joi");
|
|
|
296
296
|
*/
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
|
-
* @typedef
|
|
299
|
+
* @typedef ProductsComparisonResponseSchema
|
|
300
300
|
* @property {ProductDetail[]} [items] - List of product details for comparison.
|
|
301
301
|
* @property {AttributeMetadata[]} [attributes_metadata] - Metadata about
|
|
302
302
|
* attributes used for comparing products.
|
|
303
303
|
*/
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
* @typedef
|
|
306
|
+
* @typedef ProductCompareResponseSchema
|
|
307
307
|
* @property {string} [title] - Title or name of the comparison.
|
|
308
308
|
* @property {ProductDetail[]} [items] - List of product details for comparison.
|
|
309
309
|
* @property {AttributeMetadata[]} [attributes_metadata] - Metadata about
|
|
@@ -312,12 +312,12 @@ const Joi = require("joi");
|
|
|
312
312
|
*/
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
|
-
* @typedef
|
|
316
|
-
* @property {
|
|
315
|
+
* @typedef ProductFrequentlyComparedSimilarResponseSchema
|
|
316
|
+
* @property {ProductCompareResponseSchema} [similars]
|
|
317
317
|
*/
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* @typedef
|
|
320
|
+
* @typedef ProductVariantItemResponseSchema
|
|
321
321
|
* @property {number} [uid] - Unique identifier for the product variant.
|
|
322
322
|
* @property {string} [color_name] - Name of the color for the variant.
|
|
323
323
|
* @property {string} [color] - Color code or representation for the variant.
|
|
@@ -335,21 +335,21 @@ const Joi = require("joi");
|
|
|
335
335
|
*/
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
|
-
* @typedef
|
|
338
|
+
* @typedef ProductVariantResponseSchema
|
|
339
339
|
* @property {string} [display_type] - The type of display for the product
|
|
340
340
|
* variant (e.g., image, text, image, color).
|
|
341
341
|
* @property {string} [header] - Header or title for the product variant section.
|
|
342
342
|
* @property {string} [group_id] - Group ID used to group variants.
|
|
343
|
-
* @property {
|
|
343
|
+
* @property {ProductVariantItemResponseSchema[]} [items] - List of product variant items.
|
|
344
344
|
* @property {string} [key] - Attribute identifier of the variant.
|
|
345
345
|
* @property {string} [logo] - URL or path to the logo associated with the
|
|
346
346
|
* product variant.
|
|
347
347
|
*/
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
|
-
* @typedef
|
|
351
|
-
* @property {
|
|
352
|
-
* responses, each detailing a specific variant.
|
|
350
|
+
* @typedef ProductVariantsResponseSchema
|
|
351
|
+
* @property {ProductVariantResponseSchema[]} [variants] - A list of product
|
|
352
|
+
* variant responses, each detailing a specific variant.
|
|
353
353
|
*/
|
|
354
354
|
|
|
355
355
|
/**
|
|
@@ -390,11 +390,11 @@ const Joi = require("joi");
|
|
|
390
390
|
* @property {CompanyDetail} [company]
|
|
391
391
|
* @property {number} [item_id] - NA.
|
|
392
392
|
* @property {Seller} [seller]
|
|
393
|
-
* @property {
|
|
393
|
+
* @property {Identifier} [identifier]
|
|
394
394
|
*/
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* @typedef
|
|
397
|
+
* @typedef ProductStockStatusResponseSchema
|
|
398
398
|
* @property {ProductStockStatusItem[]} [items] - NA.
|
|
399
399
|
*/
|
|
400
400
|
|
|
@@ -416,10 +416,10 @@ const Joi = require("joi");
|
|
|
416
416
|
*/
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* @typedef
|
|
419
|
+
* @typedef ProductVariantListingResponseSchema
|
|
420
420
|
* @property {string} [header] - Header or title for the product variant section.
|
|
421
|
-
* @property {
|
|
422
|
-
* variant items.
|
|
421
|
+
* @property {ProductVariantItemResponseSchema[]} [items] - List of Upto 5
|
|
422
|
+
* product variant items.
|
|
423
423
|
* @property {number} [total] - The total number of product variants available.
|
|
424
424
|
* @property {string} [key] - Attribute identifier of the variant.
|
|
425
425
|
* @property {string} [display_type] - The type of display for the product
|
|
@@ -464,8 +464,8 @@ const Joi = require("joi");
|
|
|
464
464
|
* @property {boolean} [sellable] - Indicates whether the product is available for sale.
|
|
465
465
|
* @property {Object} [attributes] - Additional attributes or characteristics of
|
|
466
466
|
* the product.
|
|
467
|
-
* @property {
|
|
468
|
-
* variants available for the product.
|
|
467
|
+
* @property {ProductVariantListingResponseSchema[]} [variants] - List of
|
|
468
|
+
* product variants available for the product.
|
|
469
469
|
* @property {string} [discount] - Discount details or percentage applied to the product.
|
|
470
470
|
* @property {string[]} [tryouts] - List of tryout options available for the product.
|
|
471
471
|
* @property {string[]} [identifiers] - List of seller identifiers for the product.
|
|
@@ -530,7 +530,7 @@ const Joi = require("joi");
|
|
|
530
530
|
*/
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
|
-
* @typedef
|
|
533
|
+
* @typedef ProductListingResponseSchema
|
|
534
534
|
* @property {ProductListingDetail[]} [items] - List of product details included
|
|
535
535
|
* in the response.
|
|
536
536
|
* @property {ProductFilters[]} [filters] - List of filters available for
|
|
@@ -564,13 +564,13 @@ const Joi = require("joi");
|
|
|
564
564
|
*/
|
|
565
565
|
|
|
566
566
|
/**
|
|
567
|
-
* @typedef
|
|
567
|
+
* @typedef BrandListingResponseSchema
|
|
568
568
|
* @property {BrandItem[]} [items] - List of brand items included in the response.
|
|
569
569
|
* @property {Page} page
|
|
570
570
|
*/
|
|
571
571
|
|
|
572
572
|
/**
|
|
573
|
-
* @typedef
|
|
573
|
+
* @typedef BrandDetailResponseSchema
|
|
574
574
|
* @property {Media} [logo]
|
|
575
575
|
* @property {number} [uid] - The unique identifier for the brand.
|
|
576
576
|
* @property {string} [description] - Detailed description of the brand,
|
|
@@ -646,13 +646,13 @@ const Joi = require("joi");
|
|
|
646
646
|
*/
|
|
647
647
|
|
|
648
648
|
/**
|
|
649
|
-
* @typedef
|
|
649
|
+
* @typedef CategoryListingResponseSchema
|
|
650
650
|
* @property {DepartmentCategoryTree[]} [data] - List of department category trees.
|
|
651
651
|
* @property {DepartmentIdentifier[]} [departments] - List of departments.
|
|
652
652
|
*/
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* @typedef
|
|
655
|
+
* @typedef CategoryMetaResponseSchema
|
|
656
656
|
* @property {Media} [logo]
|
|
657
657
|
* @property {number} [uid] - Unique identifier for the category.
|
|
658
658
|
* @property {ImageUrls} [banners]
|
|
@@ -662,7 +662,7 @@ const Joi = require("joi");
|
|
|
662
662
|
*/
|
|
663
663
|
|
|
664
664
|
/**
|
|
665
|
-
* @typedef
|
|
665
|
+
* @typedef HomeListingResponseSchema
|
|
666
666
|
* @property {ProductListingDetail[]} [items] - List of product details
|
|
667
667
|
* displayed on the home page.
|
|
668
668
|
* @property {Page} page
|
|
@@ -682,7 +682,7 @@ const Joi = require("joi");
|
|
|
682
682
|
*/
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
|
-
* @typedef
|
|
685
|
+
* @typedef DepartmentResponseSchema
|
|
686
686
|
* @property {Department[]} [items] - List of department detail objects.
|
|
687
687
|
*/
|
|
688
688
|
|
|
@@ -698,7 +698,7 @@ const Joi = require("joi");
|
|
|
698
698
|
*/
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
|
-
* @typedef
|
|
701
|
+
* @typedef AutoCompleteResponseSchema
|
|
702
702
|
* @property {AutocompleteItem[]} [items] - List of autocomplete items suggested
|
|
703
703
|
* based on user input.
|
|
704
704
|
*/
|
|
@@ -775,7 +775,7 @@ const Joi = require("joi");
|
|
|
775
775
|
*/
|
|
776
776
|
|
|
777
777
|
/**
|
|
778
|
-
* @typedef
|
|
778
|
+
* @typedef GetCollectionListingResponseSchema
|
|
779
779
|
* @property {GetCollectionDetailNest[]} [items] - An array of collection
|
|
780
780
|
* details. Each item in the array represents a collection with various
|
|
781
781
|
* attributes and configurations.
|
|
@@ -784,7 +784,7 @@ const Joi = require("joi");
|
|
|
784
784
|
*/
|
|
785
785
|
|
|
786
786
|
/**
|
|
787
|
-
* @typedef
|
|
787
|
+
* @typedef CollectionDetailResponseSchema
|
|
788
788
|
* @property {boolean} [is_active] - Indicates whether the collection is active.
|
|
789
789
|
* @property {string} [sort_on] - Criteria used to sort the items within the
|
|
790
790
|
* collection, such as price, popularity, or newest first.
|
|
@@ -817,7 +817,7 @@ const Joi = require("joi");
|
|
|
817
817
|
*/
|
|
818
818
|
|
|
819
819
|
/**
|
|
820
|
-
* @typedef
|
|
820
|
+
* @typedef GetFollowListingResponseSchema
|
|
821
821
|
* @property {ProductListingDetail[]} items - An array of product details that
|
|
822
822
|
* the user is following. Each item includes information such as the product
|
|
823
823
|
* name, price, and other attributes.
|
|
@@ -825,7 +825,7 @@ const Joi = require("joi");
|
|
|
825
825
|
*/
|
|
826
826
|
|
|
827
827
|
/**
|
|
828
|
-
* @typedef
|
|
828
|
+
* @typedef FollowPostResponseSchema
|
|
829
829
|
* @property {string} message - A message indicating the result of the follow or
|
|
830
830
|
* unfollow operation. This could be a confirmation message or an error message.
|
|
831
831
|
* @property {string} id - A unique identifier for the follow operation, which
|
|
@@ -833,7 +833,7 @@ const Joi = require("joi");
|
|
|
833
833
|
*/
|
|
834
834
|
|
|
835
835
|
/**
|
|
836
|
-
* @typedef
|
|
836
|
+
* @typedef FollowerCountResponseSchema
|
|
837
837
|
* @property {number} [count] - The number of followers for the item. This count
|
|
838
838
|
* indicates how many users are following the specified item.
|
|
839
839
|
*/
|
|
@@ -849,7 +849,7 @@ const Joi = require("joi");
|
|
|
849
849
|
*/
|
|
850
850
|
|
|
851
851
|
/**
|
|
852
|
-
* @typedef
|
|
852
|
+
* @typedef FollowIdsResponseSchema
|
|
853
853
|
* @property {FollowIdsData} [data]
|
|
854
854
|
*/
|
|
855
855
|
|
|
@@ -861,6 +861,12 @@ const Joi = require("joi");
|
|
|
861
861
|
* For example, "Point" indicates a single point in a geographic coordinate system.
|
|
862
862
|
*/
|
|
863
863
|
|
|
864
|
+
/**
|
|
865
|
+
* @typedef StoreContact
|
|
866
|
+
* @property {string} [number] - The contact number of the Store Manager.
|
|
867
|
+
* @property {number} [country_code] - The country code for the contact number.
|
|
868
|
+
*/
|
|
869
|
+
|
|
864
870
|
/**
|
|
865
871
|
* @typedef Store
|
|
866
872
|
* @property {number} [uid] - A unique identifier for the store.
|
|
@@ -875,10 +881,11 @@ const Joi = require("joi");
|
|
|
875
881
|
* @property {LatLong} [lat_long]
|
|
876
882
|
* @property {string} [name] - The name of the store.
|
|
877
883
|
* @property {string[]} [tags] - The list of tags mapped to the store.
|
|
884
|
+
* @property {StoreContact[]} [contacts] - List of contact numbers for the store.
|
|
878
885
|
*/
|
|
879
886
|
|
|
880
887
|
/**
|
|
881
|
-
* @typedef
|
|
888
|
+
* @typedef StoreListingResponseSchema
|
|
882
889
|
* @property {Store[]} items - An array of store details. Each store includes
|
|
883
890
|
* information such as name, address, and geographic coordinates.
|
|
884
891
|
* @property {Page} page
|
|
@@ -919,14 +926,14 @@ const Joi = require("joi");
|
|
|
919
926
|
*/
|
|
920
927
|
|
|
921
928
|
/**
|
|
922
|
-
* @typedef
|
|
929
|
+
* @typedef StoreManagerSchema
|
|
923
930
|
* @property {string} [name] - The name of the store manager.
|
|
924
931
|
* @property {string} [email] - The email address of the store manager.
|
|
925
932
|
* @property {SellerPhoneNumber} [mobile_no]
|
|
926
933
|
*/
|
|
927
934
|
|
|
928
935
|
/**
|
|
929
|
-
* @typedef
|
|
936
|
+
* @typedef StoreAddressSchema
|
|
930
937
|
* @property {number} [latitude] - The latitude of the store's location.
|
|
931
938
|
* @property {string} [state] - The state where the store is located.
|
|
932
939
|
* @property {string} [country] - The country where the store is located.
|
|
@@ -943,9 +950,9 @@ const Joi = require("joi");
|
|
|
943
950
|
* @property {number} [uid] - The unique identifier for the application store.
|
|
944
951
|
* @property {StoreDepartments[]} [departments] - A list of departments within the store.
|
|
945
952
|
* @property {CompanyStore} [company]
|
|
946
|
-
* @property {
|
|
953
|
+
* @property {StoreManagerSchema} [manager]
|
|
947
954
|
* @property {string} [store_code] - A unique code for identifying the store.
|
|
948
|
-
* @property {
|
|
955
|
+
* @property {StoreAddressSchema} [address]
|
|
949
956
|
* @property {string} [name] - The name of the store.
|
|
950
957
|
* @property {SellerPhoneNumber[]} [contact_numbers] - A list of contact numbers
|
|
951
958
|
* for the store.
|
|
@@ -977,11 +984,11 @@ const Joi = require("joi");
|
|
|
977
984
|
* @property {number} [uid] - The unique identifier for the store.
|
|
978
985
|
* @property {StoreDepartments[]} [departments] - A list of departments within the store.
|
|
979
986
|
* @property {CompanyStore} [company]
|
|
980
|
-
* @property {
|
|
987
|
+
* @property {StoreManagerSchema} [manager]
|
|
981
988
|
* @property {string} [store_code] - A unique code for identifying the store.
|
|
982
989
|
* @property {StoreTiming[]} [timing] - The opening and closing times for the
|
|
983
990
|
* store throughout the week.
|
|
984
|
-
* @property {
|
|
991
|
+
* @property {StoreAddressSchema} [address]
|
|
985
992
|
* @property {Object} [_custom_json] - Custom JSON data for the store.
|
|
986
993
|
* @property {string} [name] - The name of the store.
|
|
987
994
|
* @property {SellerPhoneNumber[]} [contact_numbers] - A list of contact numbers
|
|
@@ -1033,7 +1040,7 @@ const Joi = require("joi");
|
|
|
1033
1040
|
* @property {Object[]} [images] - A list of image URLs for the product.
|
|
1034
1041
|
* @property {Object} [slug] - The slug of the product.
|
|
1035
1042
|
* @property {number} [rating] - The rating of the product.
|
|
1036
|
-
* @property {
|
|
1043
|
+
* @property {Identifier} [identifier]
|
|
1037
1044
|
* @property {Object[]} [highlights] - A list of highlights for the product.
|
|
1038
1045
|
* @property {number} [brand_uid] - The unique ID of the product's brand.
|
|
1039
1046
|
*/
|
|
@@ -1247,6 +1254,17 @@ const Joi = require("joi");
|
|
|
1247
1254
|
* and filtering criteria applied to the sellers' data.
|
|
1248
1255
|
*/
|
|
1249
1256
|
|
|
1257
|
+
/**
|
|
1258
|
+
* @typedef Identifier
|
|
1259
|
+
* @property {string} [ean] - The European Article Number (EAN) of the item.
|
|
1260
|
+
* @property {string} [sku_code] - The Stock Keeping Unit (SKU) code of the item.
|
|
1261
|
+
* @property {string} [alu] - The Alternative Lookup Product of the item.
|
|
1262
|
+
* @property {string} [upc] - Universal Product Code of the item.
|
|
1263
|
+
* @property {string} [isbn] - ISBN (International Standard Book Number) is a
|
|
1264
|
+
* unique identifier used globally to identify books and other non-periodical
|
|
1265
|
+
* publications
|
|
1266
|
+
*/
|
|
1267
|
+
|
|
1250
1268
|
class CatalogApplicationModel {
|
|
1251
1269
|
/** @returns {ProductDetailCustomOrder} */
|
|
1252
1270
|
static ProductDetailCustomOrder() {
|
|
@@ -1278,8 +1296,8 @@ class CatalogApplicationModel {
|
|
|
1278
1296
|
static ProductListingActionPage() {
|
|
1279
1297
|
return Joi.object({
|
|
1280
1298
|
type: Joi.string().allow(""),
|
|
1281
|
-
query: Joi.any(),
|
|
1282
|
-
params: Joi.any(),
|
|
1299
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
1300
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
1283
1301
|
});
|
|
1284
1302
|
}
|
|
1285
1303
|
|
|
@@ -1425,13 +1443,13 @@ class CatalogApplicationModel {
|
|
|
1425
1443
|
color: Joi.string().allow(""),
|
|
1426
1444
|
type: Joi.string().allow(""),
|
|
1427
1445
|
product_online_date: Joi.string().allow(""),
|
|
1428
|
-
_custom_json: Joi.any(),
|
|
1446
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1429
1447
|
item_code: Joi.string().allow(""),
|
|
1430
1448
|
name: Joi.string().allow(""),
|
|
1431
1449
|
moq: CatalogApplicationModel.ApplicationItemMOQ(),
|
|
1432
1450
|
short_description: Joi.string().allow(""),
|
|
1433
1451
|
categories: Joi.array().items(CatalogApplicationModel.ProductBrand()),
|
|
1434
|
-
attributes: Joi.any(),
|
|
1452
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
1435
1453
|
discount: Joi.string().allow(""),
|
|
1436
1454
|
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
1437
1455
|
slug: Joi.string().allow("").required(),
|
|
@@ -1447,8 +1465,8 @@ class CatalogApplicationModel {
|
|
|
1447
1465
|
});
|
|
1448
1466
|
}
|
|
1449
1467
|
|
|
1450
|
-
/** @returns {
|
|
1451
|
-
static
|
|
1468
|
+
/** @returns {ErrorResponseSchema} */
|
|
1469
|
+
static ErrorResponseSchema() {
|
|
1452
1470
|
return Joi.object({
|
|
1453
1471
|
error: Joi.string().allow(""),
|
|
1454
1472
|
});
|
|
@@ -1582,8 +1600,8 @@ class CatalogApplicationModel {
|
|
|
1582
1600
|
});
|
|
1583
1601
|
}
|
|
1584
1602
|
|
|
1585
|
-
/** @returns {
|
|
1586
|
-
static
|
|
1603
|
+
/** @returns {ProductsComparisonResponseSchema} */
|
|
1604
|
+
static ProductsComparisonResponseSchema() {
|
|
1587
1605
|
return Joi.object({
|
|
1588
1606
|
items: Joi.array().items(CatalogApplicationModel.ProductDetail()),
|
|
1589
1607
|
attributes_metadata: Joi.array().items(
|
|
@@ -1592,8 +1610,8 @@ class CatalogApplicationModel {
|
|
|
1592
1610
|
});
|
|
1593
1611
|
}
|
|
1594
1612
|
|
|
1595
|
-
/** @returns {
|
|
1596
|
-
static
|
|
1613
|
+
/** @returns {ProductCompareResponseSchema} */
|
|
1614
|
+
static ProductCompareResponseSchema() {
|
|
1597
1615
|
return Joi.object({
|
|
1598
1616
|
title: Joi.string().allow(""),
|
|
1599
1617
|
items: Joi.array().items(CatalogApplicationModel.ProductDetail()),
|
|
@@ -1604,15 +1622,15 @@ class CatalogApplicationModel {
|
|
|
1604
1622
|
});
|
|
1605
1623
|
}
|
|
1606
1624
|
|
|
1607
|
-
/** @returns {
|
|
1608
|
-
static
|
|
1625
|
+
/** @returns {ProductFrequentlyComparedSimilarResponseSchema} */
|
|
1626
|
+
static ProductFrequentlyComparedSimilarResponseSchema() {
|
|
1609
1627
|
return Joi.object({
|
|
1610
|
-
similars: CatalogApplicationModel.
|
|
1628
|
+
similars: CatalogApplicationModel.ProductCompareResponseSchema(),
|
|
1611
1629
|
});
|
|
1612
1630
|
}
|
|
1613
1631
|
|
|
1614
|
-
/** @returns {
|
|
1615
|
-
static
|
|
1632
|
+
/** @returns {ProductVariantItemResponseSchema} */
|
|
1633
|
+
static ProductVariantItemResponseSchema() {
|
|
1616
1634
|
return Joi.object({
|
|
1617
1635
|
uid: Joi.number(),
|
|
1618
1636
|
color_name: Joi.string().allow(""),
|
|
@@ -1630,25 +1648,25 @@ class CatalogApplicationModel {
|
|
|
1630
1648
|
});
|
|
1631
1649
|
}
|
|
1632
1650
|
|
|
1633
|
-
/** @returns {
|
|
1634
|
-
static
|
|
1651
|
+
/** @returns {ProductVariantResponseSchema} */
|
|
1652
|
+
static ProductVariantResponseSchema() {
|
|
1635
1653
|
return Joi.object({
|
|
1636
1654
|
display_type: Joi.string().allow(""),
|
|
1637
1655
|
header: Joi.string().allow(""),
|
|
1638
1656
|
group_id: Joi.string().allow(""),
|
|
1639
1657
|
items: Joi.array().items(
|
|
1640
|
-
CatalogApplicationModel.
|
|
1658
|
+
CatalogApplicationModel.ProductVariantItemResponseSchema()
|
|
1641
1659
|
),
|
|
1642
1660
|
key: Joi.string().allow(""),
|
|
1643
1661
|
logo: Joi.string().allow(""),
|
|
1644
1662
|
});
|
|
1645
1663
|
}
|
|
1646
1664
|
|
|
1647
|
-
/** @returns {
|
|
1648
|
-
static
|
|
1665
|
+
/** @returns {ProductVariantsResponseSchema} */
|
|
1666
|
+
static ProductVariantsResponseSchema() {
|
|
1649
1667
|
return Joi.object({
|
|
1650
1668
|
variants: Joi.array().items(
|
|
1651
|
-
CatalogApplicationModel.
|
|
1669
|
+
CatalogApplicationModel.ProductVariantResponseSchema()
|
|
1652
1670
|
),
|
|
1653
1671
|
});
|
|
1654
1672
|
}
|
|
@@ -1700,12 +1718,12 @@ class CatalogApplicationModel {
|
|
|
1700
1718
|
company: CatalogApplicationModel.CompanyDetail(),
|
|
1701
1719
|
item_id: Joi.number(),
|
|
1702
1720
|
seller: CatalogApplicationModel.Seller(),
|
|
1703
|
-
identifier:
|
|
1721
|
+
identifier: CatalogApplicationModel.Identifier(),
|
|
1704
1722
|
});
|
|
1705
1723
|
}
|
|
1706
1724
|
|
|
1707
|
-
/** @returns {
|
|
1708
|
-
static
|
|
1725
|
+
/** @returns {ProductStockStatusResponseSchema} */
|
|
1726
|
+
static ProductStockStatusResponseSchema() {
|
|
1709
1727
|
return Joi.object({
|
|
1710
1728
|
items: Joi.array().items(
|
|
1711
1729
|
CatalogApplicationModel.ProductStockStatusItem()
|
|
@@ -1736,12 +1754,12 @@ class CatalogApplicationModel {
|
|
|
1736
1754
|
});
|
|
1737
1755
|
}
|
|
1738
1756
|
|
|
1739
|
-
/** @returns {
|
|
1740
|
-
static
|
|
1757
|
+
/** @returns {ProductVariantListingResponseSchema} */
|
|
1758
|
+
static ProductVariantListingResponseSchema() {
|
|
1741
1759
|
return Joi.object({
|
|
1742
1760
|
header: Joi.string().allow(""),
|
|
1743
1761
|
items: Joi.array().items(
|
|
1744
|
-
CatalogApplicationModel.
|
|
1762
|
+
CatalogApplicationModel.ProductVariantItemResponseSchema()
|
|
1745
1763
|
),
|
|
1746
1764
|
total: Joi.number(),
|
|
1747
1765
|
key: Joi.string().allow(""),
|
|
@@ -1775,16 +1793,16 @@ class CatalogApplicationModel {
|
|
|
1775
1793
|
color: Joi.string().allow(""),
|
|
1776
1794
|
type: Joi.string().allow(""),
|
|
1777
1795
|
product_online_date: Joi.string().allow(""),
|
|
1778
|
-
_custom_json: Joi.any(),
|
|
1796
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1779
1797
|
item_code: Joi.string().allow(""),
|
|
1780
1798
|
name: Joi.string().allow(""),
|
|
1781
1799
|
moq: CatalogApplicationModel.ApplicationItemMOQ(),
|
|
1782
1800
|
short_description: Joi.string().allow(""),
|
|
1783
1801
|
categories: Joi.array().items(CatalogApplicationModel.ProductBrand()),
|
|
1784
1802
|
sellable: Joi.boolean(),
|
|
1785
|
-
attributes: Joi.any(),
|
|
1803
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
1786
1804
|
variants: Joi.array().items(
|
|
1787
|
-
CatalogApplicationModel.
|
|
1805
|
+
CatalogApplicationModel.ProductVariantListingResponseSchema()
|
|
1788
1806
|
),
|
|
1789
1807
|
discount: Joi.string().allow(""),
|
|
1790
1808
|
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
@@ -1850,8 +1868,8 @@ class CatalogApplicationModel {
|
|
|
1850
1868
|
});
|
|
1851
1869
|
}
|
|
1852
1870
|
|
|
1853
|
-
/** @returns {
|
|
1854
|
-
static
|
|
1871
|
+
/** @returns {ProductListingResponseSchema} */
|
|
1872
|
+
static ProductListingResponseSchema() {
|
|
1855
1873
|
return Joi.object({
|
|
1856
1874
|
items: Joi.array().items(CatalogApplicationModel.ProductListingDetail()),
|
|
1857
1875
|
filters: Joi.array().items(CatalogApplicationModel.ProductFilters()),
|
|
@@ -1883,22 +1901,22 @@ class CatalogApplicationModel {
|
|
|
1883
1901
|
});
|
|
1884
1902
|
}
|
|
1885
1903
|
|
|
1886
|
-
/** @returns {
|
|
1887
|
-
static
|
|
1904
|
+
/** @returns {BrandListingResponseSchema} */
|
|
1905
|
+
static BrandListingResponseSchema() {
|
|
1888
1906
|
return Joi.object({
|
|
1889
1907
|
items: Joi.array().items(CatalogApplicationModel.BrandItem()),
|
|
1890
1908
|
page: CatalogApplicationModel.Page().required(),
|
|
1891
1909
|
});
|
|
1892
1910
|
}
|
|
1893
1911
|
|
|
1894
|
-
/** @returns {
|
|
1895
|
-
static
|
|
1912
|
+
/** @returns {BrandDetailResponseSchema} */
|
|
1913
|
+
static BrandDetailResponseSchema() {
|
|
1896
1914
|
return Joi.object({
|
|
1897
1915
|
logo: CatalogApplicationModel.Media(),
|
|
1898
1916
|
uid: Joi.number(),
|
|
1899
1917
|
description: Joi.string().allow(""),
|
|
1900
1918
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
1901
|
-
_custom_json: Joi.any(),
|
|
1919
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1902
1920
|
name: Joi.string().allow(""),
|
|
1903
1921
|
});
|
|
1904
1922
|
}
|
|
@@ -1916,8 +1934,8 @@ class CatalogApplicationModel {
|
|
|
1916
1934
|
return Joi.object({
|
|
1917
1935
|
uid: Joi.number(),
|
|
1918
1936
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
1919
|
-
childs: Joi.array().items(Joi.any()),
|
|
1920
|
-
_custom_json: Joi.any(),
|
|
1937
|
+
childs: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
1938
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1921
1939
|
name: Joi.string().allow(""),
|
|
1922
1940
|
slug: Joi.string().allow(""),
|
|
1923
1941
|
action: CatalogApplicationModel.ProductListingAction(),
|
|
@@ -1930,7 +1948,7 @@ class CatalogApplicationModel {
|
|
|
1930
1948
|
uid: Joi.number(),
|
|
1931
1949
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
1932
1950
|
childs: Joi.array().items(CatalogApplicationModel.ThirdLevelChild()),
|
|
1933
|
-
_custom_json: Joi.any(),
|
|
1951
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1934
1952
|
name: Joi.string().allow(""),
|
|
1935
1953
|
slug: Joi.string().allow(""),
|
|
1936
1954
|
action: CatalogApplicationModel.ProductListingAction(),
|
|
@@ -1943,7 +1961,7 @@ class CatalogApplicationModel {
|
|
|
1943
1961
|
uid: Joi.number(),
|
|
1944
1962
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
1945
1963
|
childs: Joi.array().items(CatalogApplicationModel.SecondLevelChild()),
|
|
1946
|
-
_custom_json: Joi.any(),
|
|
1964
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1947
1965
|
name: Joi.string().allow(""),
|
|
1948
1966
|
slug: Joi.string().allow(""),
|
|
1949
1967
|
action: CatalogApplicationModel.ProductListingAction(),
|
|
@@ -1978,8 +1996,8 @@ class CatalogApplicationModel {
|
|
|
1978
1996
|
});
|
|
1979
1997
|
}
|
|
1980
1998
|
|
|
1981
|
-
/** @returns {
|
|
1982
|
-
static
|
|
1999
|
+
/** @returns {CategoryListingResponseSchema} */
|
|
2000
|
+
static CategoryListingResponseSchema() {
|
|
1983
2001
|
return Joi.object({
|
|
1984
2002
|
data: Joi.array().items(CatalogApplicationModel.DepartmentCategoryTree()),
|
|
1985
2003
|
departments: Joi.array().items(
|
|
@@ -1988,19 +2006,19 @@ class CatalogApplicationModel {
|
|
|
1988
2006
|
});
|
|
1989
2007
|
}
|
|
1990
2008
|
|
|
1991
|
-
/** @returns {
|
|
1992
|
-
static
|
|
2009
|
+
/** @returns {CategoryMetaResponseSchema} */
|
|
2010
|
+
static CategoryMetaResponseSchema() {
|
|
1993
2011
|
return Joi.object({
|
|
1994
2012
|
logo: CatalogApplicationModel.Media(),
|
|
1995
2013
|
uid: Joi.number(),
|
|
1996
2014
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
1997
|
-
_custom_json: Joi.any(),
|
|
2015
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1998
2016
|
name: Joi.string().allow(""),
|
|
1999
2017
|
});
|
|
2000
2018
|
}
|
|
2001
2019
|
|
|
2002
|
-
/** @returns {
|
|
2003
|
-
static
|
|
2020
|
+
/** @returns {HomeListingResponseSchema} */
|
|
2021
|
+
static HomeListingResponseSchema() {
|
|
2004
2022
|
return Joi.object({
|
|
2005
2023
|
items: Joi.array().items(CatalogApplicationModel.ProductListingDetail()),
|
|
2006
2024
|
page: CatalogApplicationModel.Page().required(),
|
|
@@ -2019,8 +2037,8 @@ class CatalogApplicationModel {
|
|
|
2019
2037
|
});
|
|
2020
2038
|
}
|
|
2021
2039
|
|
|
2022
|
-
/** @returns {
|
|
2023
|
-
static
|
|
2040
|
+
/** @returns {DepartmentResponseSchema} */
|
|
2041
|
+
static DepartmentResponseSchema() {
|
|
2024
2042
|
return Joi.object({
|
|
2025
2043
|
items: Joi.array().items(CatalogApplicationModel.Department()),
|
|
2026
2044
|
});
|
|
@@ -2032,13 +2050,13 @@ class CatalogApplicationModel {
|
|
|
2032
2050
|
logo: CatalogApplicationModel.Media(),
|
|
2033
2051
|
display: Joi.string().allow(""),
|
|
2034
2052
|
type: Joi.string().allow(""),
|
|
2035
|
-
_custom_json: Joi.any(),
|
|
2053
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2036
2054
|
action: CatalogApplicationModel.ProductListingAction(),
|
|
2037
2055
|
});
|
|
2038
2056
|
}
|
|
2039
2057
|
|
|
2040
|
-
/** @returns {
|
|
2041
|
-
static
|
|
2058
|
+
/** @returns {AutoCompleteResponseSchema} */
|
|
2059
|
+
static AutoCompleteResponseSchema() {
|
|
2042
2060
|
return Joi.object({
|
|
2043
2061
|
items: Joi.array().items(CatalogApplicationModel.AutocompleteItem()),
|
|
2044
2062
|
});
|
|
@@ -2059,18 +2077,18 @@ class CatalogApplicationModel {
|
|
|
2059
2077
|
is_active: Joi.boolean(),
|
|
2060
2078
|
uid: Joi.string().allow(""),
|
|
2061
2079
|
sort_on: Joi.string().allow(""),
|
|
2062
|
-
meta: Joi.any(),
|
|
2080
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2063
2081
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
2064
|
-
cron: Joi.any(),
|
|
2065
|
-
_schedule: Joi.any(),
|
|
2082
|
+
cron: Joi.object().pattern(/\S/, Joi.any()),
|
|
2083
|
+
_schedule: Joi.object().pattern(/\S/, Joi.any()),
|
|
2066
2084
|
query: Joi.array().items(CatalogApplicationModel.CollectionQuery()),
|
|
2067
2085
|
description: Joi.string().allow(""),
|
|
2068
2086
|
type: Joi.string().allow(""),
|
|
2069
|
-
_custom_json: Joi.any(),
|
|
2087
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2070
2088
|
name: Joi.string().allow(""),
|
|
2071
2089
|
allow_sort: Joi.boolean(),
|
|
2072
2090
|
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
2073
|
-
badge: Joi.any(),
|
|
2091
|
+
badge: Joi.object().pattern(/\S/, Joi.any()),
|
|
2074
2092
|
slug: Joi.string().allow(""),
|
|
2075
2093
|
action: CatalogApplicationModel.ProductListingAction(),
|
|
2076
2094
|
allow_facets: Joi.boolean(),
|
|
@@ -2111,8 +2129,8 @@ class CatalogApplicationModel {
|
|
|
2111
2129
|
});
|
|
2112
2130
|
}
|
|
2113
2131
|
|
|
2114
|
-
/** @returns {
|
|
2115
|
-
static
|
|
2132
|
+
/** @returns {GetCollectionListingResponseSchema} */
|
|
2133
|
+
static GetCollectionListingResponseSchema() {
|
|
2116
2134
|
return Joi.object({
|
|
2117
2135
|
items: Joi.array().items(
|
|
2118
2136
|
CatalogApplicationModel.GetCollectionDetailNest()
|
|
@@ -2122,23 +2140,23 @@ class CatalogApplicationModel {
|
|
|
2122
2140
|
});
|
|
2123
2141
|
}
|
|
2124
2142
|
|
|
2125
|
-
/** @returns {
|
|
2126
|
-
static
|
|
2143
|
+
/** @returns {CollectionDetailResponseSchema} */
|
|
2144
|
+
static CollectionDetailResponseSchema() {
|
|
2127
2145
|
return Joi.object({
|
|
2128
2146
|
is_active: Joi.boolean(),
|
|
2129
2147
|
sort_on: Joi.string().allow(""),
|
|
2130
|
-
meta: Joi.any(),
|
|
2148
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2131
2149
|
banners: CatalogApplicationModel.ImageUrls(),
|
|
2132
|
-
cron: Joi.any(),
|
|
2133
|
-
_schedule: Joi.any(),
|
|
2150
|
+
cron: Joi.object().pattern(/\S/, Joi.any()),
|
|
2151
|
+
_schedule: Joi.object().pattern(/\S/, Joi.any()),
|
|
2134
2152
|
query: Joi.array().items(CatalogApplicationModel.CollectionQuery()),
|
|
2135
2153
|
description: Joi.string().allow(""),
|
|
2136
2154
|
type: Joi.string().allow(""),
|
|
2137
|
-
_custom_json: Joi.any(),
|
|
2155
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2138
2156
|
name: Joi.string().allow(""),
|
|
2139
2157
|
allow_sort: Joi.boolean(),
|
|
2140
2158
|
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
2141
|
-
badge: Joi.any(),
|
|
2159
|
+
badge: Joi.object().pattern(/\S/, Joi.any()),
|
|
2142
2160
|
slug: Joi.string().allow(""),
|
|
2143
2161
|
allow_facets: Joi.boolean(),
|
|
2144
2162
|
logo: CatalogApplicationModel.Media(),
|
|
@@ -2148,8 +2166,8 @@ class CatalogApplicationModel {
|
|
|
2148
2166
|
});
|
|
2149
2167
|
}
|
|
2150
2168
|
|
|
2151
|
-
/** @returns {
|
|
2152
|
-
static
|
|
2169
|
+
/** @returns {GetFollowListingResponseSchema} */
|
|
2170
|
+
static GetFollowListingResponseSchema() {
|
|
2153
2171
|
return Joi.object({
|
|
2154
2172
|
items: Joi.array()
|
|
2155
2173
|
.items(CatalogApplicationModel.ProductListingDetail())
|
|
@@ -2158,16 +2176,16 @@ class CatalogApplicationModel {
|
|
|
2158
2176
|
});
|
|
2159
2177
|
}
|
|
2160
2178
|
|
|
2161
|
-
/** @returns {
|
|
2162
|
-
static
|
|
2179
|
+
/** @returns {FollowPostResponseSchema} */
|
|
2180
|
+
static FollowPostResponseSchema() {
|
|
2163
2181
|
return Joi.object({
|
|
2164
2182
|
message: Joi.string().allow("").required(),
|
|
2165
2183
|
id: Joi.string().allow("").required(),
|
|
2166
2184
|
});
|
|
2167
2185
|
}
|
|
2168
2186
|
|
|
2169
|
-
/** @returns {
|
|
2170
|
-
static
|
|
2187
|
+
/** @returns {FollowerCountResponseSchema} */
|
|
2188
|
+
static FollowerCountResponseSchema() {
|
|
2171
2189
|
return Joi.object({
|
|
2172
2190
|
count: Joi.number(),
|
|
2173
2191
|
});
|
|
@@ -2182,8 +2200,8 @@ class CatalogApplicationModel {
|
|
|
2182
2200
|
});
|
|
2183
2201
|
}
|
|
2184
2202
|
|
|
2185
|
-
/** @returns {
|
|
2186
|
-
static
|
|
2203
|
+
/** @returns {FollowIdsResponseSchema} */
|
|
2204
|
+
static FollowIdsResponseSchema() {
|
|
2187
2205
|
return Joi.object({
|
|
2188
2206
|
data: CatalogApplicationModel.FollowIdsData(),
|
|
2189
2207
|
});
|
|
@@ -2197,6 +2215,14 @@ class CatalogApplicationModel {
|
|
|
2197
2215
|
});
|
|
2198
2216
|
}
|
|
2199
2217
|
|
|
2218
|
+
/** @returns {StoreContact} */
|
|
2219
|
+
static StoreContact() {
|
|
2220
|
+
return Joi.object({
|
|
2221
|
+
number: Joi.string().allow(""),
|
|
2222
|
+
country_code: Joi.number(),
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2200
2226
|
/** @returns {Store} */
|
|
2201
2227
|
static Store() {
|
|
2202
2228
|
return Joi.object({
|
|
@@ -2211,11 +2237,12 @@ class CatalogApplicationModel {
|
|
|
2211
2237
|
lat_long: CatalogApplicationModel.LatLong(),
|
|
2212
2238
|
name: Joi.string().allow(""),
|
|
2213
2239
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2240
|
+
contacts: Joi.array().items(CatalogApplicationModel.StoreContact()),
|
|
2214
2241
|
});
|
|
2215
2242
|
}
|
|
2216
2243
|
|
|
2217
|
-
/** @returns {
|
|
2218
|
-
static
|
|
2244
|
+
/** @returns {StoreListingResponseSchema} */
|
|
2245
|
+
static StoreListingResponseSchema() {
|
|
2219
2246
|
return Joi.object({
|
|
2220
2247
|
items: Joi.array().items(CatalogApplicationModel.Store()).required(),
|
|
2221
2248
|
page: CatalogApplicationModel.Page().required(),
|
|
@@ -2226,7 +2253,7 @@ class CatalogApplicationModel {
|
|
|
2226
2253
|
static StoreDepartments() {
|
|
2227
2254
|
return Joi.object({
|
|
2228
2255
|
uid: Joi.number(),
|
|
2229
|
-
logo: Joi.any(),
|
|
2256
|
+
logo: Joi.object().pattern(/\S/, Joi.any()),
|
|
2230
2257
|
priority_order: Joi.number(),
|
|
2231
2258
|
name: Joi.string().allow(""),
|
|
2232
2259
|
slug: Joi.string().allow(""),
|
|
@@ -2251,8 +2278,8 @@ class CatalogApplicationModel {
|
|
|
2251
2278
|
});
|
|
2252
2279
|
}
|
|
2253
2280
|
|
|
2254
|
-
/** @returns {
|
|
2255
|
-
static
|
|
2281
|
+
/** @returns {StoreManagerSchema} */
|
|
2282
|
+
static StoreManagerSchema() {
|
|
2256
2283
|
return Joi.object({
|
|
2257
2284
|
name: Joi.string().allow(""),
|
|
2258
2285
|
email: Joi.string().allow(""),
|
|
@@ -2260,8 +2287,8 @@ class CatalogApplicationModel {
|
|
|
2260
2287
|
});
|
|
2261
2288
|
}
|
|
2262
2289
|
|
|
2263
|
-
/** @returns {
|
|
2264
|
-
static
|
|
2290
|
+
/** @returns {StoreAddressSchema} */
|
|
2291
|
+
static StoreAddressSchema() {
|
|
2265
2292
|
return Joi.object({
|
|
2266
2293
|
latitude: Joi.number(),
|
|
2267
2294
|
state: Joi.string().allow(""),
|
|
@@ -2283,9 +2310,9 @@ class CatalogApplicationModel {
|
|
|
2283
2310
|
CatalogApplicationModel.StoreDepartments()
|
|
2284
2311
|
),
|
|
2285
2312
|
company: CatalogApplicationModel.CompanyStore(),
|
|
2286
|
-
manager: CatalogApplicationModel.
|
|
2313
|
+
manager: CatalogApplicationModel.StoreManagerSchema(),
|
|
2287
2314
|
store_code: Joi.string().allow(""),
|
|
2288
|
-
address: CatalogApplicationModel.
|
|
2315
|
+
address: CatalogApplicationModel.StoreAddressSchema(),
|
|
2289
2316
|
name: Joi.string().allow(""),
|
|
2290
2317
|
contact_numbers: Joi.array().items(
|
|
2291
2318
|
CatalogApplicationModel.SellerPhoneNumber()
|
|
@@ -2296,7 +2323,7 @@ class CatalogApplicationModel {
|
|
|
2296
2323
|
/** @returns {ApplicationStoreListing} */
|
|
2297
2324
|
static ApplicationStoreListing() {
|
|
2298
2325
|
return Joi.object({
|
|
2299
|
-
filters: Joi.array().items(Joi.any()),
|
|
2326
|
+
filters: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
2300
2327
|
items: Joi.array().items(CatalogApplicationModel.AppStore()),
|
|
2301
2328
|
page: CatalogApplicationModel.Page(),
|
|
2302
2329
|
});
|
|
@@ -2328,11 +2355,11 @@ class CatalogApplicationModel {
|
|
|
2328
2355
|
CatalogApplicationModel.StoreDepartments()
|
|
2329
2356
|
),
|
|
2330
2357
|
company: CatalogApplicationModel.CompanyStore(),
|
|
2331
|
-
manager: CatalogApplicationModel.
|
|
2358
|
+
manager: CatalogApplicationModel.StoreManagerSchema(),
|
|
2332
2359
|
store_code: Joi.string().allow(""),
|
|
2333
2360
|
timing: Joi.array().items(CatalogApplicationModel.StoreTiming()),
|
|
2334
|
-
address: CatalogApplicationModel.
|
|
2335
|
-
_custom_json: Joi.any(),
|
|
2361
|
+
address: CatalogApplicationModel.StoreAddressSchema(),
|
|
2362
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2336
2363
|
name: Joi.string().allow(""),
|
|
2337
2364
|
contact_numbers: Joi.array().items(
|
|
2338
2365
|
CatalogApplicationModel.SellerPhoneNumber()
|
|
@@ -2381,18 +2408,18 @@ class CatalogApplicationModel {
|
|
|
2381
2408
|
description: Joi.any(),
|
|
2382
2409
|
out_of_stock: Joi.boolean(),
|
|
2383
2410
|
hsn_code: Joi.number(),
|
|
2384
|
-
grouped_attributes: Joi.any(),
|
|
2411
|
+
grouped_attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
2385
2412
|
item_code: Joi.any(),
|
|
2386
2413
|
name: Joi.any(),
|
|
2387
2414
|
country_of_origin: Joi.any(),
|
|
2388
2415
|
short_description: Joi.any(),
|
|
2389
|
-
media: Joi.array().items(Joi.any()),
|
|
2390
|
-
attributes: Joi.any(),
|
|
2416
|
+
media: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
2417
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
2391
2418
|
is_set: Joi.boolean(),
|
|
2392
2419
|
images: Joi.array().items(Joi.any()),
|
|
2393
2420
|
slug: Joi.any(),
|
|
2394
2421
|
rating: Joi.number(),
|
|
2395
|
-
identifier:
|
|
2422
|
+
identifier: CatalogApplicationModel.Identifier(),
|
|
2396
2423
|
highlights: Joi.array().items(Joi.any()),
|
|
2397
2424
|
brand_uid: Joi.number(),
|
|
2398
2425
|
});
|
|
@@ -2418,7 +2445,7 @@ class CatalogApplicationModel {
|
|
|
2418
2445
|
return Joi.object({
|
|
2419
2446
|
logo: Joi.string().allow("").allow(null),
|
|
2420
2447
|
is_active: Joi.boolean(),
|
|
2421
|
-
meta: Joi.any(),
|
|
2448
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2422
2449
|
verified_by: CatalogApplicationModel.UserDetail(),
|
|
2423
2450
|
created_on: Joi.string().allow("").required(),
|
|
2424
2451
|
company_id: Joi.number(),
|
|
@@ -2625,5 +2652,16 @@ class CatalogApplicationModel {
|
|
|
2625
2652
|
),
|
|
2626
2653
|
});
|
|
2627
2654
|
}
|
|
2655
|
+
|
|
2656
|
+
/** @returns {Identifier} */
|
|
2657
|
+
static Identifier() {
|
|
2658
|
+
return Joi.object({
|
|
2659
|
+
ean: Joi.string().allow(""),
|
|
2660
|
+
sku_code: Joi.string().allow(""),
|
|
2661
|
+
alu: Joi.string().allow(""),
|
|
2662
|
+
upc: Joi.string().allow(""),
|
|
2663
|
+
isbn: Joi.string().allow(""),
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2628
2666
|
}
|
|
2629
2667
|
module.exports = CatalogApplicationModel;
|