@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef CompanyTaxesSchema
|
|
5
5
|
* @property {string} [effective_date]
|
|
6
6
|
* @property {number} [rate]
|
|
7
7
|
* @property {boolean} [enable]
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @typedef
|
|
11
|
+
* @typedef UserSchema
|
|
12
12
|
* @property {string} [user_id]
|
|
13
13
|
* @property {string} [contact]
|
|
14
14
|
* @property {string} [username]
|
|
@@ -61,7 +61,7 @@ const Joi = require("joi");
|
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* @typedef
|
|
64
|
+
* @typedef GetAddressSchema
|
|
65
65
|
* @property {string} [landmark]
|
|
66
66
|
* @property {string} [country_code]
|
|
67
67
|
* @property {number} [pincode]
|
|
@@ -78,14 +78,14 @@ const Joi = require("joi");
|
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* @typedef
|
|
81
|
+
* @typedef GetCompanyProfileSerializerResponseSchema
|
|
82
82
|
* @property {string} [business_info]
|
|
83
|
-
* @property {
|
|
83
|
+
* @property {CompanyTaxesSchema[]} [taxes]
|
|
84
84
|
* @property {string} [business_type]
|
|
85
85
|
* @property {string} [name]
|
|
86
86
|
* @property {Object} [_custom_json]
|
|
87
87
|
* @property {string} [verified_on]
|
|
88
|
-
* @property {
|
|
88
|
+
* @property {UserSchema} [created_by]
|
|
89
89
|
* @property {string} [created_on]
|
|
90
90
|
* @property {Object} [warnings]
|
|
91
91
|
* @property {BusinessDetails} [business_details]
|
|
@@ -98,14 +98,14 @@ const Joi = require("joi");
|
|
|
98
98
|
* @property {string} [stage]
|
|
99
99
|
* @property {string} company_type
|
|
100
100
|
* @property {Document[]} [documents]
|
|
101
|
-
* @property {
|
|
102
|
-
* @property {
|
|
101
|
+
* @property {GetAddressSchema[]} [addresses]
|
|
102
|
+
* @property {UserSchema} [verified_by]
|
|
103
103
|
* @property {string[]} [notification_emails]
|
|
104
|
-
* @property {
|
|
104
|
+
* @property {UserSchema} [modified_by]
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* @typedef
|
|
108
|
+
* @typedef ErrorResponseSchema
|
|
109
109
|
* @property {string} [message]
|
|
110
110
|
* @property {string} [code]
|
|
111
111
|
* @property {number} [status]
|
|
@@ -120,7 +120,7 @@ const Joi = require("joi");
|
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* @typedef
|
|
123
|
+
* @typedef CreateUpdateAddressSchema
|
|
124
124
|
* @property {string} [landmark]
|
|
125
125
|
* @property {string} [country_code]
|
|
126
126
|
* @property {number} pincode
|
|
@@ -145,7 +145,7 @@ const Joi = require("joi");
|
|
|
145
145
|
* @property {BusinessDetails} [business_details]
|
|
146
146
|
* @property {Document[]} [documents]
|
|
147
147
|
* @property {string} [business_type]
|
|
148
|
-
* @property {
|
|
148
|
+
* @property {CreateUpdateAddressSchema[]} [addresses]
|
|
149
149
|
* @property {string[]} [notification_emails]
|
|
150
150
|
* @property {ContactDetails} [contact_details]
|
|
151
151
|
* @property {string} [reject_reason]
|
|
@@ -153,7 +153,7 @@ const Joi = require("joi");
|
|
|
153
153
|
*/
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* @typedef
|
|
156
|
+
* @typedef ProfileSuccessResponseSchema
|
|
157
157
|
* @property {number} [uid]
|
|
158
158
|
* @property {string} [message]
|
|
159
159
|
* @property {boolean} [success]
|
|
@@ -166,7 +166,7 @@ const Joi = require("joi");
|
|
|
166
166
|
*/
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @typedef
|
|
169
|
+
* @typedef MetricsSchema
|
|
170
170
|
* @property {string} [stage]
|
|
171
171
|
* @property {DocumentsObj} [store]
|
|
172
172
|
* @property {DocumentsObj} [company_documents]
|
|
@@ -177,19 +177,19 @@ const Joi = require("joi");
|
|
|
177
177
|
*/
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* @typedef
|
|
180
|
+
* @typedef BrandBannerSchema
|
|
181
181
|
* @property {string} portrait
|
|
182
182
|
* @property {string} landscape
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* @typedef
|
|
187
|
-
* @property {
|
|
188
|
-
* @property {
|
|
186
|
+
* @typedef GetBrandResponseSchema
|
|
187
|
+
* @property {UserSchema} [modified_by]
|
|
188
|
+
* @property {BrandBannerSchema} [banner]
|
|
189
189
|
* @property {string} name
|
|
190
190
|
* @property {Object} [_custom_json]
|
|
191
191
|
* @property {string} [verified_on]
|
|
192
|
-
* @property {
|
|
192
|
+
* @property {UserSchema} [created_by]
|
|
193
193
|
* @property {string} [created_on]
|
|
194
194
|
* @property {Object} [warnings]
|
|
195
195
|
* @property {Object} [_locale_language]
|
|
@@ -199,14 +199,14 @@ const Joi = require("joi");
|
|
|
199
199
|
* @property {number} [uid]
|
|
200
200
|
* @property {string} [reject_reason]
|
|
201
201
|
* @property {string} [stage]
|
|
202
|
-
* @property {
|
|
202
|
+
* @property {UserSchema} [verified_by]
|
|
203
203
|
* @property {string} [slug_key]
|
|
204
204
|
* @property {string} [logo]
|
|
205
205
|
* @property {string} [description]
|
|
206
206
|
*/
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* @typedef
|
|
209
|
+
* @typedef CreateBrandRequestSchema
|
|
210
210
|
* @property {Object} [_custom_json]
|
|
211
211
|
* @property {Object} [_locale_language]
|
|
212
212
|
* @property {string[]} [synonyms]
|
|
@@ -215,13 +215,13 @@ const Joi = require("joi");
|
|
|
215
215
|
* @property {string} logo
|
|
216
216
|
* @property {string} [brand_tier]
|
|
217
217
|
* @property {number} [uid]
|
|
218
|
-
* @property {
|
|
218
|
+
* @property {BrandBannerSchema} banner
|
|
219
219
|
* @property {string} name
|
|
220
220
|
* @property {string} [slug_key]
|
|
221
221
|
*/
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* @typedef
|
|
224
|
+
* @typedef UpdateBrandRequestSchema
|
|
225
225
|
* @property {Object} [_custom_json]
|
|
226
226
|
* @property {Object} [_locale_language]
|
|
227
227
|
* @property {string[]} [synonyms]
|
|
@@ -230,7 +230,7 @@ const Joi = require("joi");
|
|
|
230
230
|
* @property {string} logo
|
|
231
231
|
* @property {string} [brand_tier]
|
|
232
232
|
* @property {number} [uid]
|
|
233
|
-
* @property {
|
|
233
|
+
* @property {BrandBannerSchema} banner
|
|
234
234
|
* @property {string} name
|
|
235
235
|
*/
|
|
236
236
|
|
|
@@ -247,41 +247,41 @@ const Joi = require("joi");
|
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* @typedef
|
|
250
|
+
* @typedef CompanySchema
|
|
251
251
|
* @property {string} [stage]
|
|
252
252
|
* @property {Object} [_custom_json]
|
|
253
253
|
* @property {string} [verified_on]
|
|
254
|
-
* @property {
|
|
254
|
+
* @property {UserSchema} [verified_by]
|
|
255
255
|
* @property {string} [created_on]
|
|
256
|
-
* @property {
|
|
256
|
+
* @property {UserSchema} [created_by]
|
|
257
257
|
* @property {string} company_type
|
|
258
258
|
* @property {string} [modified_on]
|
|
259
259
|
* @property {string[]} [market_channels]
|
|
260
260
|
* @property {string} business_type
|
|
261
|
-
* @property {
|
|
261
|
+
* @property {GetAddressSchema[]} [addresses]
|
|
262
262
|
* @property {string[]} [notification_emails]
|
|
263
263
|
* @property {CompanyDetails} [details]
|
|
264
264
|
* @property {BusinessCountryInfo} [business_country_info]
|
|
265
265
|
* @property {number} [uid]
|
|
266
266
|
* @property {string} [reject_reason]
|
|
267
267
|
* @property {string} [name]
|
|
268
|
-
* @property {
|
|
268
|
+
* @property {UserSchema} [modified_by]
|
|
269
269
|
*/
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
* @typedef
|
|
272
|
+
* @typedef CompanyBrandSchema
|
|
273
273
|
* @property {string} [stage]
|
|
274
274
|
* @property {string} [verified_on]
|
|
275
|
-
* @property {
|
|
275
|
+
* @property {UserSchema} [verified_by]
|
|
276
276
|
* @property {string} [created_on]
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {
|
|
277
|
+
* @property {UserSchema} [created_by]
|
|
278
|
+
* @property {CompanySchema} [company]
|
|
279
279
|
* @property {Object} [warnings]
|
|
280
280
|
* @property {string} [modified_on]
|
|
281
281
|
* @property {number} [uid]
|
|
282
282
|
* @property {string} [reject_reason]
|
|
283
|
-
* @property {
|
|
284
|
-
* @property {
|
|
283
|
+
* @property {GetBrandResponseSchema} [brand]
|
|
284
|
+
* @property {UserSchema} [modified_by]
|
|
285
285
|
*/
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -296,133 +296,133 @@ const Joi = require("joi");
|
|
|
296
296
|
*/
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {
|
|
299
|
+
* @typedef CompanyBrandListSchema
|
|
300
|
+
* @property {CompanyBrandSchema[]} [items]
|
|
301
301
|
* @property {Page} [page]
|
|
302
302
|
*/
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
* @typedef
|
|
305
|
+
* @typedef CompanyBrandPostRequestSchema
|
|
306
306
|
* @property {number} [uid]
|
|
307
307
|
* @property {number[]} brands
|
|
308
308
|
* @property {number} company
|
|
309
309
|
*/
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* @typedef
|
|
312
|
+
* @typedef InvoiceCredSchema
|
|
313
313
|
* @property {string} [username]
|
|
314
314
|
* @property {boolean} [enabled]
|
|
315
315
|
* @property {string} [password]
|
|
316
316
|
*/
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @typedef
|
|
320
|
-
* @property {
|
|
321
|
-
* @property {
|
|
319
|
+
* @typedef InvoiceDetailsSchema
|
|
320
|
+
* @property {InvoiceCredSchema} [e_invoice]
|
|
321
|
+
* @property {InvoiceCredSchema} [e_waybill]
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* @typedef
|
|
325
|
+
* @typedef GetCompanySchema
|
|
326
326
|
* @property {string} [stage]
|
|
327
327
|
* @property {string} [verified_on]
|
|
328
|
-
* @property {
|
|
328
|
+
* @property {UserSchema} [verified_by]
|
|
329
329
|
* @property {string} [created_on]
|
|
330
|
-
* @property {
|
|
330
|
+
* @property {UserSchema} [created_by]
|
|
331
331
|
* @property {string} [company_type]
|
|
332
332
|
* @property {string} [modified_on]
|
|
333
333
|
* @property {string} [business_type]
|
|
334
|
-
* @property {
|
|
334
|
+
* @property {GetAddressSchema[]} [addresses]
|
|
335
335
|
* @property {number} [uid]
|
|
336
336
|
* @property {string} [reject_reason]
|
|
337
337
|
* @property {string} [name]
|
|
338
|
-
* @property {
|
|
338
|
+
* @property {UserSchema} [modified_by]
|
|
339
339
|
*/
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* @typedef
|
|
342
|
+
* @typedef LocationManagerSchema
|
|
343
343
|
* @property {string} [email]
|
|
344
344
|
* @property {SellerPhoneNumber} mobile_no
|
|
345
345
|
* @property {string} [name]
|
|
346
346
|
*/
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* @typedef
|
|
349
|
+
* @typedef LocationTimingSchema
|
|
350
350
|
* @property {number} hour
|
|
351
351
|
* @property {number} minute
|
|
352
352
|
*/
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
|
-
* @typedef
|
|
355
|
+
* @typedef LocationDayWiseSchema
|
|
356
356
|
* @property {boolean} open
|
|
357
357
|
* @property {string} weekday
|
|
358
|
-
* @property {
|
|
359
|
-
* @property {
|
|
358
|
+
* @property {LocationTimingSchema} [opening]
|
|
359
|
+
* @property {LocationTimingSchema} [closing]
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
|
-
* @typedef
|
|
363
|
+
* @typedef HolidayDateSchema
|
|
364
364
|
* @property {string} end_date
|
|
365
365
|
* @property {string} start_date
|
|
366
366
|
*/
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {
|
|
369
|
+
* @typedef HolidaySchemaSchema
|
|
370
|
+
* @property {HolidayDateSchema} date
|
|
371
371
|
* @property {string} title
|
|
372
372
|
* @property {string} holiday_type
|
|
373
373
|
*/
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
|
-
* @typedef
|
|
376
|
+
* @typedef ProductReturnConfigSchema
|
|
377
377
|
* @property {boolean} [on_same_store]
|
|
378
378
|
* @property {number} [store_uid]
|
|
379
379
|
*/
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* @typedef
|
|
382
|
+
* @typedef GetLocationSchema
|
|
383
383
|
* @property {string} code
|
|
384
384
|
* @property {string} [phone_number]
|
|
385
385
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
386
|
-
* @property {
|
|
386
|
+
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
387
387
|
* @property {string} name
|
|
388
388
|
* @property {Object} [_custom_json]
|
|
389
389
|
* @property {string} [verified_on]
|
|
390
|
-
* @property {
|
|
390
|
+
* @property {UserSchema} [created_by]
|
|
391
391
|
* @property {string} [created_on]
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {
|
|
392
|
+
* @property {GetCompanySchema} [company]
|
|
393
|
+
* @property {GetAddressSchema} address
|
|
394
394
|
* @property {Object} [warnings]
|
|
395
395
|
* @property {string} [store_type]
|
|
396
|
-
* @property {
|
|
396
|
+
* @property {LocationManagerSchema} [manager]
|
|
397
397
|
* @property {boolean} [auto_invoice]
|
|
398
398
|
* @property {string} [modified_on]
|
|
399
399
|
* @property {number} [uid]
|
|
400
|
-
* @property {
|
|
400
|
+
* @property {LocationDayWiseSchema[]} [timing]
|
|
401
401
|
* @property {string} [stage]
|
|
402
402
|
* @property {Document[]} [documents]
|
|
403
403
|
* @property {boolean} [credit_note]
|
|
404
|
-
* @property {
|
|
404
|
+
* @property {HolidaySchemaSchema[]} [holiday]
|
|
405
405
|
* @property {string} display_name
|
|
406
|
-
* @property {
|
|
407
|
-
* @property {
|
|
406
|
+
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
407
|
+
* @property {UserSchema} [verified_by]
|
|
408
408
|
* @property {string[]} [notification_emails]
|
|
409
|
-
* @property {
|
|
409
|
+
* @property {UserSchema} [modified_by]
|
|
410
410
|
* @property {string[]} [tags]
|
|
411
411
|
* @property {boolean} [default_order_acceptance_timing]
|
|
412
|
-
* @property {
|
|
412
|
+
* @property {LocationDayWiseSchema[]} [order_acceptance_timing]
|
|
413
413
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
414
414
|
* @property {boolean} [bulk_shipment]
|
|
415
415
|
* @property {boolean} [auto_assign_courier_partner]
|
|
416
416
|
*/
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* @typedef
|
|
420
|
-
* @property {
|
|
419
|
+
* @typedef LocationListSchema
|
|
420
|
+
* @property {GetLocationSchema[]} [items]
|
|
421
421
|
* @property {Page} [page]
|
|
422
422
|
*/
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* @typedef
|
|
425
|
+
* @typedef AddressSchema
|
|
426
426
|
* @property {string} [landmark]
|
|
427
427
|
* @property {string} country_code
|
|
428
428
|
* @property {number} [pincode]
|
|
@@ -439,31 +439,31 @@ const Joi = require("joi");
|
|
|
439
439
|
*/
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
|
-
* @typedef
|
|
442
|
+
* @typedef LocationSchema
|
|
443
443
|
* @property {string} code
|
|
444
|
-
* @property {
|
|
444
|
+
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
445
445
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
446
446
|
* @property {string} name
|
|
447
447
|
* @property {Object} [_custom_json]
|
|
448
448
|
* @property {Object} [warnings]
|
|
449
|
-
* @property {
|
|
449
|
+
* @property {AddressSchema} address
|
|
450
450
|
* @property {number} company
|
|
451
451
|
* @property {string} [store_type]
|
|
452
|
-
* @property {
|
|
452
|
+
* @property {LocationManagerSchema} [manager]
|
|
453
453
|
* @property {boolean} [auto_invoice]
|
|
454
454
|
* @property {number} [uid]
|
|
455
|
-
* @property {
|
|
455
|
+
* @property {LocationDayWiseSchema[]} [timing]
|
|
456
456
|
* @property {string} [stage]
|
|
457
457
|
* @property {Document[]} documents
|
|
458
458
|
* @property {boolean} [credit_note]
|
|
459
|
-
* @property {
|
|
460
|
-
* @property {
|
|
459
|
+
* @property {HolidaySchemaSchema[]} [holiday]
|
|
460
|
+
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
461
461
|
* @property {string} display_name
|
|
462
462
|
* @property {string[]} [notification_emails]
|
|
463
463
|
* @property {string[]} [tags]
|
|
464
464
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
465
465
|
* order_acceptance_timing as default timing
|
|
466
|
-
* @property {
|
|
466
|
+
* @property {LocationDayWiseSchema[]} [order_acceptance_timing] - Order
|
|
467
467
|
* acceptance timing of the store
|
|
468
468
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
469
469
|
* @property {boolean} [bulk_shipment]
|
|
@@ -471,8 +471,8 @@ const Joi = require("joi");
|
|
|
471
471
|
*/
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
|
-
* @typedef
|
|
475
|
-
* @property {
|
|
474
|
+
* @typedef BulkLocationSchema
|
|
475
|
+
* @property {LocationSchema[]} [data]
|
|
476
476
|
*/
|
|
477
477
|
|
|
478
478
|
/**
|
|
@@ -488,8 +488,8 @@ const Joi = require("joi");
|
|
|
488
488
|
*/
|
|
489
489
|
|
|
490
490
|
class CompanyProfilePlatformModel {
|
|
491
|
-
/** @returns {
|
|
492
|
-
static
|
|
491
|
+
/** @returns {CompanyTaxesSchema} */
|
|
492
|
+
static CompanyTaxesSchema() {
|
|
493
493
|
return Joi.object({
|
|
494
494
|
effective_date: Joi.string().allow(""),
|
|
495
495
|
rate: Joi.number(),
|
|
@@ -497,8 +497,8 @@ class CompanyProfilePlatformModel {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
/** @returns {
|
|
501
|
-
static
|
|
500
|
+
/** @returns {UserSchema} */
|
|
501
|
+
static UserSchema() {
|
|
502
502
|
return Joi.object({
|
|
503
503
|
user_id: Joi.string().allow(""),
|
|
504
504
|
contact: Joi.string().allow(""),
|
|
@@ -566,8 +566,8 @@ class CompanyProfilePlatformModel {
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
/** @returns {
|
|
570
|
-
static
|
|
569
|
+
/** @returns {GetAddressSchema} */
|
|
570
|
+
static GetAddressSchema() {
|
|
571
571
|
return Joi.object({
|
|
572
572
|
landmark: Joi.string().allow(""),
|
|
573
573
|
country_code: Joi.string().allow(""),
|
|
@@ -585,20 +585,20 @@ class CompanyProfilePlatformModel {
|
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
-
/** @returns {
|
|
589
|
-
static
|
|
588
|
+
/** @returns {GetCompanyProfileSerializerResponseSchema} */
|
|
589
|
+
static GetCompanyProfileSerializerResponseSchema() {
|
|
590
590
|
return Joi.object({
|
|
591
591
|
business_info: Joi.string().allow(""),
|
|
592
592
|
taxes: Joi.array().items(
|
|
593
|
-
CompanyProfilePlatformModel.
|
|
593
|
+
CompanyProfilePlatformModel.CompanyTaxesSchema()
|
|
594
594
|
),
|
|
595
595
|
business_type: Joi.string().allow(""),
|
|
596
596
|
name: Joi.string().allow(""),
|
|
597
|
-
_custom_json: Joi.any(),
|
|
597
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
598
598
|
verified_on: Joi.string().allow(""),
|
|
599
|
-
created_by: CompanyProfilePlatformModel.
|
|
599
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
600
600
|
created_on: Joi.string().allow(""),
|
|
601
|
-
warnings: Joi.any(),
|
|
601
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
602
602
|
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
603
603
|
mode: Joi.string().allow(""),
|
|
604
604
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -610,21 +610,21 @@ class CompanyProfilePlatformModel {
|
|
|
610
610
|
company_type: Joi.string().allow("").required(),
|
|
611
611
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
612
612
|
addresses: Joi.array().items(
|
|
613
|
-
CompanyProfilePlatformModel.
|
|
613
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
614
614
|
),
|
|
615
|
-
verified_by: CompanyProfilePlatformModel.
|
|
615
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
616
616
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
617
|
-
modified_by: CompanyProfilePlatformModel.
|
|
617
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
/** @returns {
|
|
622
|
-
static
|
|
621
|
+
/** @returns {ErrorResponseSchema} */
|
|
622
|
+
static ErrorResponseSchema() {
|
|
623
623
|
return Joi.object({
|
|
624
624
|
message: Joi.string().allow(""),
|
|
625
625
|
code: Joi.string().allow(""),
|
|
626
626
|
status: Joi.number(),
|
|
627
|
-
meta: Joi.any(),
|
|
627
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
630
|
|
|
@@ -637,8 +637,8 @@ class CompanyProfilePlatformModel {
|
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
-
/** @returns {
|
|
641
|
-
static
|
|
640
|
+
/** @returns {CreateUpdateAddressSchema} */
|
|
641
|
+
static CreateUpdateAddressSchema() {
|
|
642
642
|
return Joi.object({
|
|
643
643
|
landmark: Joi.string().allow(""),
|
|
644
644
|
country_code: Joi.string().allow(""),
|
|
@@ -659,9 +659,9 @@ class CompanyProfilePlatformModel {
|
|
|
659
659
|
return Joi.object({
|
|
660
660
|
franchise_enabled: Joi.boolean(),
|
|
661
661
|
business_info: Joi.string().allow(""),
|
|
662
|
-
warnings: Joi.any(),
|
|
662
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
663
663
|
company_type: Joi.string().allow(""),
|
|
664
|
-
_custom_json: Joi.any(),
|
|
664
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
665
665
|
taxes: Joi.array().items(
|
|
666
666
|
CompanyProfilePlatformModel.CompanyTaxesSerializer1()
|
|
667
667
|
),
|
|
@@ -669,7 +669,7 @@ class CompanyProfilePlatformModel {
|
|
|
669
669
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
670
670
|
business_type: Joi.string().allow(""),
|
|
671
671
|
addresses: Joi.array().items(
|
|
672
|
-
CompanyProfilePlatformModel.
|
|
672
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSchema()
|
|
673
673
|
),
|
|
674
674
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
675
675
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -678,8 +678,8 @@ class CompanyProfilePlatformModel {
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
/** @returns {
|
|
682
|
-
static
|
|
681
|
+
/** @returns {ProfileSuccessResponseSchema} */
|
|
682
|
+
static ProfileSuccessResponseSchema() {
|
|
683
683
|
return Joi.object({
|
|
684
684
|
uid: Joi.number(),
|
|
685
685
|
message: Joi.string().allow(""),
|
|
@@ -695,8 +695,8 @@ class CompanyProfilePlatformModel {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
/** @returns {
|
|
699
|
-
static
|
|
698
|
+
/** @returns {MetricsSchema} */
|
|
699
|
+
static MetricsSchema() {
|
|
700
700
|
return Joi.object({
|
|
701
701
|
stage: Joi.string().allow(""),
|
|
702
702
|
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
@@ -708,68 +708,68 @@ class CompanyProfilePlatformModel {
|
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
/** @returns {
|
|
712
|
-
static
|
|
711
|
+
/** @returns {BrandBannerSchema} */
|
|
712
|
+
static BrandBannerSchema() {
|
|
713
713
|
return Joi.object({
|
|
714
714
|
portrait: Joi.string().allow("").required(),
|
|
715
715
|
landscape: Joi.string().allow("").required(),
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
/** @returns {
|
|
720
|
-
static
|
|
719
|
+
/** @returns {GetBrandResponseSchema} */
|
|
720
|
+
static GetBrandResponseSchema() {
|
|
721
721
|
return Joi.object({
|
|
722
|
-
modified_by: CompanyProfilePlatformModel.
|
|
723
|
-
banner: CompanyProfilePlatformModel.
|
|
722
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
723
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema(),
|
|
724
724
|
name: Joi.string().allow("").required(),
|
|
725
|
-
_custom_json: Joi.any(),
|
|
725
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
726
726
|
verified_on: Joi.string().allow(""),
|
|
727
|
-
created_by: CompanyProfilePlatformModel.
|
|
727
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
728
728
|
created_on: Joi.string().allow(""),
|
|
729
|
-
warnings: Joi.any(),
|
|
730
|
-
_locale_language: Joi.any(),
|
|
729
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
730
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
731
731
|
mode: Joi.string().allow(""),
|
|
732
732
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
733
733
|
modified_on: Joi.string().allow(""),
|
|
734
734
|
uid: Joi.number(),
|
|
735
735
|
reject_reason: Joi.string().allow(""),
|
|
736
736
|
stage: Joi.string().allow(""),
|
|
737
|
-
verified_by: CompanyProfilePlatformModel.
|
|
737
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
738
738
|
slug_key: Joi.string().allow(""),
|
|
739
739
|
logo: Joi.string().allow(""),
|
|
740
740
|
description: Joi.string().allow(""),
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
/** @returns {
|
|
745
|
-
static
|
|
744
|
+
/** @returns {CreateBrandRequestSchema} */
|
|
745
|
+
static CreateBrandRequestSchema() {
|
|
746
746
|
return Joi.object({
|
|
747
|
-
_custom_json: Joi.any(),
|
|
748
|
-
_locale_language: Joi.any(),
|
|
747
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
748
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
749
749
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
750
750
|
company_id: Joi.number(),
|
|
751
751
|
description: Joi.string().allow(""),
|
|
752
752
|
logo: Joi.string().allow("").required(),
|
|
753
753
|
brand_tier: Joi.string().allow(""),
|
|
754
754
|
uid: Joi.number(),
|
|
755
|
-
banner: CompanyProfilePlatformModel.
|
|
755
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema().required(),
|
|
756
756
|
name: Joi.string().allow("").required(),
|
|
757
757
|
slug_key: Joi.string().allow(""),
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
/** @returns {
|
|
762
|
-
static
|
|
761
|
+
/** @returns {UpdateBrandRequestSchema} */
|
|
762
|
+
static UpdateBrandRequestSchema() {
|
|
763
763
|
return Joi.object({
|
|
764
|
-
_custom_json: Joi.any(),
|
|
765
|
-
_locale_language: Joi.any(),
|
|
764
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
765
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
766
766
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
767
767
|
company_id: Joi.number(),
|
|
768
768
|
description: Joi.string().allow(""),
|
|
769
769
|
logo: Joi.string().allow("").required(),
|
|
770
770
|
brand_tier: Joi.string().allow(""),
|
|
771
771
|
uid: Joi.number(),
|
|
772
|
-
banner: CompanyProfilePlatformModel.
|
|
772
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema().required(),
|
|
773
773
|
name: Joi.string().allow("").required(),
|
|
774
774
|
});
|
|
775
775
|
}
|
|
@@ -792,21 +792,21 @@ class CompanyProfilePlatformModel {
|
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
/** @returns {
|
|
796
|
-
static
|
|
795
|
+
/** @returns {CompanySchema} */
|
|
796
|
+
static CompanySchema() {
|
|
797
797
|
return Joi.object({
|
|
798
798
|
stage: Joi.string().allow(""),
|
|
799
|
-
_custom_json: Joi.any(),
|
|
799
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
800
800
|
verified_on: Joi.string().allow(""),
|
|
801
|
-
verified_by: CompanyProfilePlatformModel.
|
|
801
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
802
802
|
created_on: Joi.string().allow(""),
|
|
803
|
-
created_by: CompanyProfilePlatformModel.
|
|
803
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
804
804
|
company_type: Joi.string().allow("").required(),
|
|
805
805
|
modified_on: Joi.string().allow(""),
|
|
806
806
|
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
807
807
|
business_type: Joi.string().allow("").required(),
|
|
808
808
|
addresses: Joi.array().items(
|
|
809
|
-
CompanyProfilePlatformModel.
|
|
809
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
810
810
|
),
|
|
811
811
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
812
812
|
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
@@ -814,25 +814,25 @@ class CompanyProfilePlatformModel {
|
|
|
814
814
|
uid: Joi.number(),
|
|
815
815
|
reject_reason: Joi.string().allow(""),
|
|
816
816
|
name: Joi.string().allow(""),
|
|
817
|
-
modified_by: CompanyProfilePlatformModel.
|
|
817
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
/** @returns {
|
|
822
|
-
static
|
|
821
|
+
/** @returns {CompanyBrandSchema} */
|
|
822
|
+
static CompanyBrandSchema() {
|
|
823
823
|
return Joi.object({
|
|
824
824
|
stage: Joi.string().allow(""),
|
|
825
825
|
verified_on: Joi.string().allow(""),
|
|
826
|
-
verified_by: CompanyProfilePlatformModel.
|
|
826
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
827
827
|
created_on: Joi.string().allow(""),
|
|
828
|
-
created_by: CompanyProfilePlatformModel.
|
|
829
|
-
company: CompanyProfilePlatformModel.
|
|
830
|
-
warnings: Joi.any(),
|
|
828
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
829
|
+
company: CompanyProfilePlatformModel.CompanySchema(),
|
|
830
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
831
831
|
modified_on: Joi.string().allow(""),
|
|
832
832
|
uid: Joi.number(),
|
|
833
833
|
reject_reason: Joi.string().allow(""),
|
|
834
|
-
brand: CompanyProfilePlatformModel.
|
|
835
|
-
modified_by: CompanyProfilePlatformModel.
|
|
834
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSchema(),
|
|
835
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
|
|
@@ -849,18 +849,18 @@ class CompanyProfilePlatformModel {
|
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
/** @returns {
|
|
853
|
-
static
|
|
852
|
+
/** @returns {CompanyBrandListSchema} */
|
|
853
|
+
static CompanyBrandListSchema() {
|
|
854
854
|
return Joi.object({
|
|
855
855
|
items: Joi.array().items(
|
|
856
|
-
CompanyProfilePlatformModel.
|
|
856
|
+
CompanyProfilePlatformModel.CompanyBrandSchema()
|
|
857
857
|
),
|
|
858
858
|
page: CompanyProfilePlatformModel.Page(),
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
/** @returns {
|
|
863
|
-
static
|
|
862
|
+
/** @returns {CompanyBrandPostRequestSchema} */
|
|
863
|
+
static CompanyBrandPostRequestSchema() {
|
|
864
864
|
return Joi.object({
|
|
865
865
|
uid: Joi.number(),
|
|
866
866
|
brands: Joi.array().items(Joi.number()).required(),
|
|
@@ -868,8 +868,8 @@ class CompanyProfilePlatformModel {
|
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
/** @returns {
|
|
872
|
-
static
|
|
871
|
+
/** @returns {InvoiceCredSchema} */
|
|
872
|
+
static InvoiceCredSchema() {
|
|
873
873
|
return Joi.object({
|
|
874
874
|
username: Joi.string().allow(""),
|
|
875
875
|
enabled: Joi.boolean(),
|
|
@@ -877,37 +877,37 @@ class CompanyProfilePlatformModel {
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
|
|
880
|
-
/** @returns {
|
|
881
|
-
static
|
|
880
|
+
/** @returns {InvoiceDetailsSchema} */
|
|
881
|
+
static InvoiceDetailsSchema() {
|
|
882
882
|
return Joi.object({
|
|
883
|
-
e_invoice: CompanyProfilePlatformModel.
|
|
884
|
-
e_waybill: CompanyProfilePlatformModel.
|
|
883
|
+
e_invoice: CompanyProfilePlatformModel.InvoiceCredSchema(),
|
|
884
|
+
e_waybill: CompanyProfilePlatformModel.InvoiceCredSchema(),
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
/** @returns {
|
|
889
|
-
static
|
|
888
|
+
/** @returns {GetCompanySchema} */
|
|
889
|
+
static GetCompanySchema() {
|
|
890
890
|
return Joi.object({
|
|
891
891
|
stage: Joi.string().allow(""),
|
|
892
892
|
verified_on: Joi.string().allow(""),
|
|
893
|
-
verified_by: CompanyProfilePlatformModel.
|
|
893
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
894
894
|
created_on: Joi.string().allow(""),
|
|
895
|
-
created_by: CompanyProfilePlatformModel.
|
|
895
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
896
896
|
company_type: Joi.string().allow(""),
|
|
897
897
|
modified_on: Joi.string().allow(""),
|
|
898
898
|
business_type: Joi.string().allow(""),
|
|
899
899
|
addresses: Joi.array().items(
|
|
900
|
-
CompanyProfilePlatformModel.
|
|
900
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
901
901
|
),
|
|
902
902
|
uid: Joi.number(),
|
|
903
903
|
reject_reason: Joi.string().allow(""),
|
|
904
904
|
name: Joi.string().allow(""),
|
|
905
|
-
modified_by: CompanyProfilePlatformModel.
|
|
905
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
909
|
+
/** @returns {LocationManagerSchema} */
|
|
910
|
+
static LocationManagerSchema() {
|
|
911
911
|
return Joi.object({
|
|
912
912
|
email: Joi.string().allow(""),
|
|
913
913
|
mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
|
|
@@ -915,89 +915,89 @@ class CompanyProfilePlatformModel {
|
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
/** @returns {
|
|
919
|
-
static
|
|
918
|
+
/** @returns {LocationTimingSchema} */
|
|
919
|
+
static LocationTimingSchema() {
|
|
920
920
|
return Joi.object({
|
|
921
921
|
hour: Joi.number().required(),
|
|
922
922
|
minute: Joi.number().required(),
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
926
|
+
/** @returns {LocationDayWiseSchema} */
|
|
927
|
+
static LocationDayWiseSchema() {
|
|
928
928
|
return Joi.object({
|
|
929
929
|
open: Joi.boolean().required(),
|
|
930
930
|
weekday: Joi.string().allow("").required(),
|
|
931
|
-
opening: CompanyProfilePlatformModel.
|
|
932
|
-
closing: CompanyProfilePlatformModel.
|
|
931
|
+
opening: CompanyProfilePlatformModel.LocationTimingSchema(),
|
|
932
|
+
closing: CompanyProfilePlatformModel.LocationTimingSchema(),
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
/** @returns {
|
|
937
|
-
static
|
|
936
|
+
/** @returns {HolidayDateSchema} */
|
|
937
|
+
static HolidayDateSchema() {
|
|
938
938
|
return Joi.object({
|
|
939
939
|
end_date: Joi.string().allow("").required(),
|
|
940
940
|
start_date: Joi.string().allow("").required(),
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
/** @returns {
|
|
945
|
-
static
|
|
944
|
+
/** @returns {HolidaySchemaSchema} */
|
|
945
|
+
static HolidaySchemaSchema() {
|
|
946
946
|
return Joi.object({
|
|
947
|
-
date: CompanyProfilePlatformModel.
|
|
947
|
+
date: CompanyProfilePlatformModel.HolidayDateSchema().required(),
|
|
948
948
|
title: Joi.string().allow("").required(),
|
|
949
949
|
holiday_type: Joi.string().allow("").required(),
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
/** @returns {
|
|
954
|
-
static
|
|
953
|
+
/** @returns {ProductReturnConfigSchema} */
|
|
954
|
+
static ProductReturnConfigSchema() {
|
|
955
955
|
return Joi.object({
|
|
956
956
|
on_same_store: Joi.boolean(),
|
|
957
957
|
store_uid: Joi.number(),
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
/** @returns {
|
|
962
|
-
static
|
|
961
|
+
/** @returns {GetLocationSchema} */
|
|
962
|
+
static GetLocationSchema() {
|
|
963
963
|
return Joi.object({
|
|
964
964
|
code: Joi.string().allow("").required(),
|
|
965
965
|
phone_number: Joi.string().allow(""),
|
|
966
966
|
contact_numbers: Joi.array().items(
|
|
967
967
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
968
968
|
),
|
|
969
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
969
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSchema(),
|
|
970
970
|
name: Joi.string().allow("").required(),
|
|
971
|
-
_custom_json: Joi.any(),
|
|
971
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
972
972
|
verified_on: Joi.string().allow(""),
|
|
973
|
-
created_by: CompanyProfilePlatformModel.
|
|
973
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
974
974
|
created_on: Joi.string().allow(""),
|
|
975
|
-
company: CompanyProfilePlatformModel.
|
|
976
|
-
address: CompanyProfilePlatformModel.
|
|
977
|
-
warnings: Joi.any(),
|
|
975
|
+
company: CompanyProfilePlatformModel.GetCompanySchema(),
|
|
976
|
+
address: CompanyProfilePlatformModel.GetAddressSchema().required(),
|
|
977
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
978
978
|
store_type: Joi.string().allow(""),
|
|
979
|
-
manager: CompanyProfilePlatformModel.
|
|
979
|
+
manager: CompanyProfilePlatformModel.LocationManagerSchema(),
|
|
980
980
|
auto_invoice: Joi.boolean(),
|
|
981
981
|
modified_on: Joi.string().allow(""),
|
|
982
982
|
uid: Joi.number(),
|
|
983
983
|
timing: Joi.array().items(
|
|
984
|
-
CompanyProfilePlatformModel.
|
|
984
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
985
985
|
),
|
|
986
986
|
stage: Joi.string().allow(""),
|
|
987
987
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
988
988
|
credit_note: Joi.boolean(),
|
|
989
989
|
holiday: Joi.array().items(
|
|
990
|
-
CompanyProfilePlatformModel.
|
|
990
|
+
CompanyProfilePlatformModel.HolidaySchemaSchema()
|
|
991
991
|
),
|
|
992
992
|
display_name: Joi.string().allow("").required(),
|
|
993
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
994
|
-
verified_by: CompanyProfilePlatformModel.
|
|
993
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSchema(),
|
|
994
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
995
995
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
996
|
-
modified_by: CompanyProfilePlatformModel.
|
|
996
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
997
997
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
998
998
|
default_order_acceptance_timing: Joi.boolean(),
|
|
999
999
|
order_acceptance_timing: Joi.array().items(
|
|
1000
|
-
CompanyProfilePlatformModel.
|
|
1000
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1001
1001
|
),
|
|
1002
1002
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1003
1003
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1005,18 +1005,16 @@ class CompanyProfilePlatformModel {
|
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
/** @returns {
|
|
1009
|
-
static
|
|
1008
|
+
/** @returns {LocationListSchema} */
|
|
1009
|
+
static LocationListSchema() {
|
|
1010
1010
|
return Joi.object({
|
|
1011
|
-
items: Joi.array().items(
|
|
1012
|
-
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
1013
|
-
),
|
|
1011
|
+
items: Joi.array().items(CompanyProfilePlatformModel.GetLocationSchema()),
|
|
1014
1012
|
page: CompanyProfilePlatformModel.Page(),
|
|
1015
1013
|
});
|
|
1016
1014
|
}
|
|
1017
1015
|
|
|
1018
|
-
/** @returns {
|
|
1019
|
-
static
|
|
1016
|
+
/** @returns {AddressSchema} */
|
|
1017
|
+
static AddressSchema() {
|
|
1020
1018
|
return Joi.object({
|
|
1021
1019
|
landmark: Joi.string().allow(""),
|
|
1022
1020
|
country_code: Joi.string().allow("").required(),
|
|
@@ -1034,25 +1032,25 @@ class CompanyProfilePlatformModel {
|
|
|
1034
1032
|
});
|
|
1035
1033
|
}
|
|
1036
1034
|
|
|
1037
|
-
/** @returns {
|
|
1038
|
-
static
|
|
1035
|
+
/** @returns {LocationSchema} */
|
|
1036
|
+
static LocationSchema() {
|
|
1039
1037
|
return Joi.object({
|
|
1040
1038
|
code: Joi.string().allow("").required(),
|
|
1041
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
1039
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSchema(),
|
|
1042
1040
|
contact_numbers: Joi.array().items(
|
|
1043
1041
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
1044
1042
|
),
|
|
1045
1043
|
name: Joi.string().allow("").required(),
|
|
1046
|
-
_custom_json: Joi.any(),
|
|
1047
|
-
warnings: Joi.any(),
|
|
1048
|
-
address: CompanyProfilePlatformModel.
|
|
1044
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1045
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
1046
|
+
address: CompanyProfilePlatformModel.AddressSchema().required(),
|
|
1049
1047
|
company: Joi.number().required(),
|
|
1050
1048
|
store_type: Joi.string().allow(""),
|
|
1051
|
-
manager: CompanyProfilePlatformModel.
|
|
1049
|
+
manager: CompanyProfilePlatformModel.LocationManagerSchema(),
|
|
1052
1050
|
auto_invoice: Joi.boolean(),
|
|
1053
1051
|
uid: Joi.number(),
|
|
1054
1052
|
timing: Joi.array().items(
|
|
1055
|
-
CompanyProfilePlatformModel.
|
|
1053
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1056
1054
|
),
|
|
1057
1055
|
stage: Joi.string().allow(""),
|
|
1058
1056
|
documents: Joi.array()
|
|
@@ -1060,15 +1058,15 @@ class CompanyProfilePlatformModel {
|
|
|
1060
1058
|
.required(),
|
|
1061
1059
|
credit_note: Joi.boolean(),
|
|
1062
1060
|
holiday: Joi.array().items(
|
|
1063
|
-
CompanyProfilePlatformModel.
|
|
1061
|
+
CompanyProfilePlatformModel.HolidaySchemaSchema()
|
|
1064
1062
|
),
|
|
1065
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
1063
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSchema(),
|
|
1066
1064
|
display_name: Joi.string().allow("").required(),
|
|
1067
1065
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1068
1066
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1069
1067
|
default_order_acceptance_timing: Joi.boolean(),
|
|
1070
1068
|
order_acceptance_timing: Joi.array().items(
|
|
1071
|
-
CompanyProfilePlatformModel.
|
|
1069
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1072
1070
|
),
|
|
1073
1071
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1074
1072
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1076,10 +1074,10 @@ class CompanyProfilePlatformModel {
|
|
|
1076
1074
|
});
|
|
1077
1075
|
}
|
|
1078
1076
|
|
|
1079
|
-
/** @returns {
|
|
1080
|
-
static
|
|
1077
|
+
/** @returns {BulkLocationSchema} */
|
|
1078
|
+
static BulkLocationSchema() {
|
|
1081
1079
|
return Joi.object({
|
|
1082
|
-
data: Joi.array().items(CompanyProfilePlatformModel.
|
|
1080
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSchema()),
|
|
1083
1081
|
});
|
|
1084
1082
|
}
|
|
1085
1083
|
|