@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- 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 +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- 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
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -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,10 +61,10 @@ 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
|
-
* @property {
|
|
67
|
+
* @property {string} [pincode]
|
|
68
68
|
* @property {string} [address_type]
|
|
69
69
|
* @property {number} longitude
|
|
70
70
|
* @property {string} [country]
|
|
@@ -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,32 +98,32 @@ 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
|
|
109
|
-
* @property {string} [message]
|
|
110
|
-
*
|
|
111
|
-
* @property {
|
|
112
|
-
*
|
|
108
|
+
* @typedef ErrorResponseSchema
|
|
109
|
+
* @property {string} [message] - A descriptive message providing details about
|
|
110
|
+
* the error, intended to convey the nature and context of the issue.
|
|
111
|
+
* @property {Object} [error] - An object containing additional error details,
|
|
112
|
+
* which may vary depending on the error type.
|
|
113
113
|
*/
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* @typedef
|
|
116
|
+
* @typedef CompanyRequestTaxesSchema
|
|
117
117
|
* @property {string} [effective_date]
|
|
118
118
|
* @property {number} [rate]
|
|
119
119
|
* @property {boolean} [enable]
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* @typedef
|
|
123
|
+
* @typedef CreateUpdateAddressSchema
|
|
124
124
|
* @property {string} [landmark]
|
|
125
125
|
* @property {string} [country_code]
|
|
126
|
-
* @property {
|
|
126
|
+
* @property {string} pincode
|
|
127
127
|
* @property {string} address_type
|
|
128
128
|
* @property {number} longitude
|
|
129
129
|
* @property {string} country
|
|
@@ -141,11 +141,11 @@ const Joi = require("joi");
|
|
|
141
141
|
* @property {Object} [warnings]
|
|
142
142
|
* @property {string} [company_type]
|
|
143
143
|
* @property {Object} [_custom_json]
|
|
144
|
-
* @property {
|
|
144
|
+
* @property {CompanyRequestTaxesSchema[]} [taxes]
|
|
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,185 +247,189 @@ 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
|
/**
|
|
288
288
|
* @typedef Page
|
|
289
|
-
* @property {number} [item_total] - The total number of items
|
|
289
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
290
290
|
* @property {string} [next_id] - The identifier for the next page.
|
|
291
291
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
292
292
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
293
293
|
* @property {number} [current] - The current page number.
|
|
294
|
-
* @property {string} type - The type of the page,
|
|
294
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
295
295
|
* @property {number} [size] - The number of items per page.
|
|
296
|
+
* @property {number} [page_size] - The number of items per page.
|
|
296
297
|
*/
|
|
297
298
|
|
|
298
299
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {
|
|
300
|
+
* @typedef CompanyBrandListSchema
|
|
301
|
+
* @property {CompanyBrandSchema[]} [items]
|
|
301
302
|
* @property {Page} [page]
|
|
302
303
|
*/
|
|
303
304
|
|
|
304
305
|
/**
|
|
305
|
-
* @typedef
|
|
306
|
+
* @typedef CompanyBrandPostRequestSchema
|
|
306
307
|
* @property {number} [uid]
|
|
307
308
|
* @property {number[]} brands
|
|
308
309
|
* @property {number} company
|
|
309
310
|
*/
|
|
310
311
|
|
|
311
312
|
/**
|
|
312
|
-
* @typedef
|
|
313
|
+
* @typedef InvoiceCredSchema
|
|
313
314
|
* @property {string} [username]
|
|
314
315
|
* @property {boolean} [enabled]
|
|
315
316
|
* @property {string} [password]
|
|
316
317
|
*/
|
|
317
318
|
|
|
318
319
|
/**
|
|
319
|
-
* @typedef
|
|
320
|
-
* @property {
|
|
321
|
-
* @property {
|
|
320
|
+
* @typedef InvoiceDetailsSchema
|
|
321
|
+
* @property {InvoiceCredSchema} [e_invoice]
|
|
322
|
+
* @property {InvoiceCredSchema} [e_waybill]
|
|
322
323
|
*/
|
|
323
324
|
|
|
324
325
|
/**
|
|
325
|
-
* @typedef
|
|
326
|
+
* @typedef GetCompanySchema
|
|
326
327
|
* @property {string} [stage]
|
|
327
328
|
* @property {string} [verified_on]
|
|
328
|
-
* @property {
|
|
329
|
+
* @property {UserSchema} [verified_by]
|
|
329
330
|
* @property {string} [created_on]
|
|
330
|
-
* @property {
|
|
331
|
+
* @property {UserSchema} [created_by]
|
|
331
332
|
* @property {string} [company_type]
|
|
332
333
|
* @property {string} [modified_on]
|
|
333
334
|
* @property {string} [business_type]
|
|
334
|
-
* @property {
|
|
335
|
+
* @property {GetAddressSchema[]} [addresses]
|
|
335
336
|
* @property {number} [uid]
|
|
336
337
|
* @property {string} [reject_reason]
|
|
337
338
|
* @property {string} [name]
|
|
338
|
-
* @property {
|
|
339
|
+
* @property {UserSchema} [modified_by]
|
|
339
340
|
*/
|
|
340
341
|
|
|
341
342
|
/**
|
|
342
|
-
* @typedef
|
|
343
|
+
* @typedef LocationManagerSchema
|
|
343
344
|
* @property {string} [email]
|
|
344
345
|
* @property {SellerPhoneNumber} mobile_no
|
|
345
346
|
* @property {string} [name]
|
|
346
347
|
*/
|
|
347
348
|
|
|
348
349
|
/**
|
|
349
|
-
* @typedef
|
|
350
|
+
* @typedef LocationTimingSchema
|
|
350
351
|
* @property {number} hour
|
|
351
352
|
* @property {number} minute
|
|
352
353
|
*/
|
|
353
354
|
|
|
354
355
|
/**
|
|
355
|
-
* @typedef
|
|
356
|
+
* @typedef LocationDayWiseSchema
|
|
356
357
|
* @property {boolean} open
|
|
357
358
|
* @property {string} weekday
|
|
358
|
-
* @property {
|
|
359
|
-
* @property {
|
|
359
|
+
* @property {LocationTimingSchema} [opening]
|
|
360
|
+
* @property {LocationTimingSchema} [closing]
|
|
360
361
|
*/
|
|
361
362
|
|
|
362
363
|
/**
|
|
363
|
-
* @typedef
|
|
364
|
+
* @typedef HolidayDateSchema
|
|
364
365
|
* @property {string} end_date
|
|
365
366
|
* @property {string} start_date
|
|
366
367
|
*/
|
|
367
368
|
|
|
368
369
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {
|
|
370
|
+
* @typedef HolidaySchemaSchema
|
|
371
|
+
* @property {HolidayDateSchema} date
|
|
371
372
|
* @property {string} title
|
|
372
373
|
* @property {string} holiday_type
|
|
373
374
|
*/
|
|
374
375
|
|
|
375
376
|
/**
|
|
376
|
-
* @typedef
|
|
377
|
+
* @typedef ProductReturnConfigSchema
|
|
377
378
|
* @property {boolean} [on_same_store]
|
|
378
379
|
* @property {number} [store_uid]
|
|
379
380
|
*/
|
|
380
381
|
|
|
381
382
|
/**
|
|
382
|
-
* @typedef
|
|
383
|
+
* @typedef GetLocationSchema
|
|
383
384
|
* @property {string} code
|
|
384
385
|
* @property {string} [phone_number]
|
|
385
386
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
386
|
-
* @property {
|
|
387
|
+
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
387
388
|
* @property {string} name
|
|
388
389
|
* @property {Object} [_custom_json]
|
|
389
390
|
* @property {string} [verified_on]
|
|
390
|
-
* @property {
|
|
391
|
+
* @property {UserSchema} [created_by]
|
|
391
392
|
* @property {string} [created_on]
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {
|
|
393
|
+
* @property {GetCompanySchema} [company]
|
|
394
|
+
* @property {GetAddressSchema} address
|
|
394
395
|
* @property {Object} [warnings]
|
|
395
396
|
* @property {string} [store_type]
|
|
396
|
-
* @property {
|
|
397
|
+
* @property {LocationManagerSchema} [manager]
|
|
397
398
|
* @property {boolean} [auto_invoice]
|
|
398
399
|
* @property {string} [modified_on]
|
|
399
400
|
* @property {number} [uid]
|
|
400
|
-
* @property {
|
|
401
|
+
* @property {LocationDayWiseSchema[]} [timing]
|
|
401
402
|
* @property {string} [stage]
|
|
402
403
|
* @property {Document[]} [documents]
|
|
403
404
|
* @property {boolean} [credit_note]
|
|
404
|
-
* @property {
|
|
405
|
+
* @property {HolidaySchemaSchema[]} [holiday]
|
|
405
406
|
* @property {string} display_name
|
|
406
|
-
* @property {
|
|
407
|
-
* @property {
|
|
407
|
+
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
408
|
+
* @property {UserSchema} [verified_by]
|
|
408
409
|
* @property {string[]} [notification_emails]
|
|
409
|
-
* @property {
|
|
410
|
+
* @property {UserSchema} [modified_by]
|
|
410
411
|
* @property {string[]} [tags]
|
|
411
412
|
* @property {boolean} [default_order_acceptance_timing]
|
|
412
|
-
* @property {
|
|
413
|
+
* @property {LocationDayWiseSchema[]} [order_acceptance_timing]
|
|
413
414
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
414
415
|
* @property {boolean} [bulk_shipment]
|
|
416
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
417
|
+
* shipment is enabled for the location.
|
|
415
418
|
* @property {boolean} [auto_assign_courier_partner]
|
|
419
|
+
* @property {boolean} [qc_based_return_inventory_sync]
|
|
416
420
|
*/
|
|
417
421
|
|
|
418
422
|
/**
|
|
419
|
-
* @typedef
|
|
420
|
-
* @property {
|
|
423
|
+
* @typedef LocationListSchema
|
|
424
|
+
* @property {GetLocationSchema[]} [items]
|
|
421
425
|
* @property {Page} [page]
|
|
422
426
|
*/
|
|
423
427
|
|
|
424
428
|
/**
|
|
425
|
-
* @typedef
|
|
429
|
+
* @typedef AddressSchema
|
|
426
430
|
* @property {string} [landmark]
|
|
427
431
|
* @property {string} country_code
|
|
428
|
-
* @property {
|
|
432
|
+
* @property {string} [pincode]
|
|
429
433
|
* @property {string} [address_type]
|
|
430
434
|
* @property {number} longitude
|
|
431
435
|
* @property {string} [country]
|
|
@@ -439,40 +443,45 @@ const Joi = require("joi");
|
|
|
439
443
|
*/
|
|
440
444
|
|
|
441
445
|
/**
|
|
442
|
-
* @typedef
|
|
443
|
-
* @property {string} code
|
|
444
|
-
*
|
|
446
|
+
* @typedef LocationSchema
|
|
447
|
+
* @property {string} code - A unique identifier for the store location. Must be
|
|
448
|
+
* a non-empty string with a maximum length of 100 characters.
|
|
449
|
+
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
445
450
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
446
|
-
* @property {string} name
|
|
451
|
+
* @property {string} name - The value of the name. Should be a non-empty string
|
|
452
|
+
* and length should not exceed 300 characters.
|
|
447
453
|
* @property {Object} [_custom_json]
|
|
448
454
|
* @property {Object} [warnings]
|
|
449
|
-
* @property {
|
|
455
|
+
* @property {AddressSchema} address
|
|
450
456
|
* @property {number} company
|
|
451
457
|
* @property {string} [store_type]
|
|
452
|
-
* @property {
|
|
458
|
+
* @property {LocationManagerSchema} [manager]
|
|
453
459
|
* @property {boolean} [auto_invoice]
|
|
454
460
|
* @property {number} [uid]
|
|
455
|
-
* @property {
|
|
461
|
+
* @property {LocationDayWiseSchema[]} [timing]
|
|
456
462
|
* @property {string} [stage]
|
|
457
463
|
* @property {Document[]} documents
|
|
458
464
|
* @property {boolean} [credit_note]
|
|
459
|
-
* @property {
|
|
460
|
-
* @property {
|
|
461
|
-
* @property {string} display_name
|
|
465
|
+
* @property {HolidaySchemaSchema[]} [holiday]
|
|
466
|
+
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
467
|
+
* @property {string} display_name - The value of the display_name. Should be a
|
|
468
|
+
* non-empty string and length should not exceed 300 characters.
|
|
462
469
|
* @property {string[]} [notification_emails]
|
|
463
470
|
* @property {string[]} [tags]
|
|
464
471
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
465
472
|
* order_acceptance_timing as default timing
|
|
466
|
-
* @property {
|
|
473
|
+
* @property {LocationDayWiseSchema[]} [order_acceptance_timing] - Order
|
|
467
474
|
* acceptance timing of the store
|
|
468
475
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
469
476
|
* @property {boolean} [bulk_shipment]
|
|
477
|
+
* @property {boolean} [multi_piece_shipment] - Flag indicating if multi-piece
|
|
478
|
+
* shipment is enabled for the location.
|
|
470
479
|
* @property {boolean} [auto_assign_courier_partner]
|
|
471
480
|
*/
|
|
472
481
|
|
|
473
482
|
/**
|
|
474
|
-
* @typedef
|
|
475
|
-
* @property {
|
|
483
|
+
* @typedef BulkLocationSchema
|
|
484
|
+
* @property {LocationSchema[]} [data]
|
|
476
485
|
*/
|
|
477
486
|
|
|
478
487
|
/**
|
|
@@ -488,8 +497,8 @@ const Joi = require("joi");
|
|
|
488
497
|
*/
|
|
489
498
|
|
|
490
499
|
class CompanyProfilePlatformModel {
|
|
491
|
-
/** @returns {
|
|
492
|
-
static
|
|
500
|
+
/** @returns {CompanyTaxesSchema} */
|
|
501
|
+
static CompanyTaxesSchema() {
|
|
493
502
|
return Joi.object({
|
|
494
503
|
effective_date: Joi.string().allow(""),
|
|
495
504
|
rate: Joi.number(),
|
|
@@ -497,8 +506,8 @@ class CompanyProfilePlatformModel {
|
|
|
497
506
|
});
|
|
498
507
|
}
|
|
499
508
|
|
|
500
|
-
/** @returns {
|
|
501
|
-
static
|
|
509
|
+
/** @returns {UserSchema} */
|
|
510
|
+
static UserSchema() {
|
|
502
511
|
return Joi.object({
|
|
503
512
|
user_id: Joi.string().allow(""),
|
|
504
513
|
contact: Joi.string().allow(""),
|
|
@@ -566,12 +575,12 @@ class CompanyProfilePlatformModel {
|
|
|
566
575
|
});
|
|
567
576
|
}
|
|
568
577
|
|
|
569
|
-
/** @returns {
|
|
570
|
-
static
|
|
578
|
+
/** @returns {GetAddressSchema} */
|
|
579
|
+
static GetAddressSchema() {
|
|
571
580
|
return Joi.object({
|
|
572
581
|
landmark: Joi.string().allow(""),
|
|
573
582
|
country_code: Joi.string().allow(""),
|
|
574
|
-
pincode: Joi.
|
|
583
|
+
pincode: Joi.string().allow(""),
|
|
575
584
|
address_type: Joi.string().allow(""),
|
|
576
585
|
longitude: Joi.number().required(),
|
|
577
586
|
country: Joi.string().allow(""),
|
|
@@ -585,20 +594,20 @@ class CompanyProfilePlatformModel {
|
|
|
585
594
|
});
|
|
586
595
|
}
|
|
587
596
|
|
|
588
|
-
/** @returns {
|
|
589
|
-
static
|
|
597
|
+
/** @returns {GetCompanyProfileSerializerResponseSchema} */
|
|
598
|
+
static GetCompanyProfileSerializerResponseSchema() {
|
|
590
599
|
return Joi.object({
|
|
591
600
|
business_info: Joi.string().allow(""),
|
|
592
601
|
taxes: Joi.array().items(
|
|
593
|
-
CompanyProfilePlatformModel.
|
|
602
|
+
CompanyProfilePlatformModel.CompanyTaxesSchema()
|
|
594
603
|
),
|
|
595
604
|
business_type: Joi.string().allow(""),
|
|
596
605
|
name: Joi.string().allow(""),
|
|
597
|
-
_custom_json: Joi.any(),
|
|
606
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
598
607
|
verified_on: Joi.string().allow(""),
|
|
599
|
-
created_by: CompanyProfilePlatformModel.
|
|
608
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
600
609
|
created_on: Joi.string().allow(""),
|
|
601
|
-
warnings: Joi.any(),
|
|
610
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
602
611
|
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
603
612
|
mode: Joi.string().allow(""),
|
|
604
613
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -610,26 +619,24 @@ class CompanyProfilePlatformModel {
|
|
|
610
619
|
company_type: Joi.string().allow("").required(),
|
|
611
620
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
612
621
|
addresses: Joi.array().items(
|
|
613
|
-
CompanyProfilePlatformModel.
|
|
622
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
614
623
|
),
|
|
615
|
-
verified_by: CompanyProfilePlatformModel.
|
|
624
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
616
625
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
617
|
-
modified_by: CompanyProfilePlatformModel.
|
|
626
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
618
627
|
});
|
|
619
628
|
}
|
|
620
629
|
|
|
621
|
-
/** @returns {
|
|
622
|
-
static
|
|
630
|
+
/** @returns {ErrorResponseSchema} */
|
|
631
|
+
static ErrorResponseSchema() {
|
|
623
632
|
return Joi.object({
|
|
624
633
|
message: Joi.string().allow(""),
|
|
625
|
-
|
|
626
|
-
status: Joi.number(),
|
|
627
|
-
meta: Joi.any(),
|
|
634
|
+
error: Joi.object().pattern(/\S/, Joi.any()),
|
|
628
635
|
});
|
|
629
636
|
}
|
|
630
637
|
|
|
631
|
-
/** @returns {
|
|
632
|
-
static
|
|
638
|
+
/** @returns {CompanyRequestTaxesSchema} */
|
|
639
|
+
static CompanyRequestTaxesSchema() {
|
|
633
640
|
return Joi.object({
|
|
634
641
|
effective_date: Joi.string().allow(""),
|
|
635
642
|
rate: Joi.number(),
|
|
@@ -637,12 +644,12 @@ class CompanyProfilePlatformModel {
|
|
|
637
644
|
});
|
|
638
645
|
}
|
|
639
646
|
|
|
640
|
-
/** @returns {
|
|
641
|
-
static
|
|
647
|
+
/** @returns {CreateUpdateAddressSchema} */
|
|
648
|
+
static CreateUpdateAddressSchema() {
|
|
642
649
|
return Joi.object({
|
|
643
650
|
landmark: Joi.string().allow(""),
|
|
644
651
|
country_code: Joi.string().allow(""),
|
|
645
|
-
pincode: Joi.
|
|
652
|
+
pincode: Joi.string().allow("").required(),
|
|
646
653
|
address_type: Joi.string().allow("").required(),
|
|
647
654
|
longitude: Joi.number().required(),
|
|
648
655
|
country: Joi.string().allow("").required(),
|
|
@@ -659,17 +666,17 @@ class CompanyProfilePlatformModel {
|
|
|
659
666
|
return Joi.object({
|
|
660
667
|
franchise_enabled: Joi.boolean(),
|
|
661
668
|
business_info: Joi.string().allow(""),
|
|
662
|
-
warnings: Joi.any(),
|
|
669
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
663
670
|
company_type: Joi.string().allow(""),
|
|
664
|
-
_custom_json: Joi.any(),
|
|
671
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
665
672
|
taxes: Joi.array().items(
|
|
666
|
-
CompanyProfilePlatformModel.
|
|
673
|
+
CompanyProfilePlatformModel.CompanyRequestTaxesSchema()
|
|
667
674
|
),
|
|
668
675
|
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
669
676
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
670
677
|
business_type: Joi.string().allow(""),
|
|
671
678
|
addresses: Joi.array().items(
|
|
672
|
-
CompanyProfilePlatformModel.
|
|
679
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSchema()
|
|
673
680
|
),
|
|
674
681
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
675
682
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -678,8 +685,8 @@ class CompanyProfilePlatformModel {
|
|
|
678
685
|
});
|
|
679
686
|
}
|
|
680
687
|
|
|
681
|
-
/** @returns {
|
|
682
|
-
static
|
|
688
|
+
/** @returns {ProfileSuccessResponseSchema} */
|
|
689
|
+
static ProfileSuccessResponseSchema() {
|
|
683
690
|
return Joi.object({
|
|
684
691
|
uid: Joi.number(),
|
|
685
692
|
message: Joi.string().allow(""),
|
|
@@ -695,8 +702,8 @@ class CompanyProfilePlatformModel {
|
|
|
695
702
|
});
|
|
696
703
|
}
|
|
697
704
|
|
|
698
|
-
/** @returns {
|
|
699
|
-
static
|
|
705
|
+
/** @returns {MetricsSchema} */
|
|
706
|
+
static MetricsSchema() {
|
|
700
707
|
return Joi.object({
|
|
701
708
|
stage: Joi.string().allow(""),
|
|
702
709
|
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
@@ -708,68 +715,68 @@ class CompanyProfilePlatformModel {
|
|
|
708
715
|
});
|
|
709
716
|
}
|
|
710
717
|
|
|
711
|
-
/** @returns {
|
|
712
|
-
static
|
|
718
|
+
/** @returns {BrandBannerSchema} */
|
|
719
|
+
static BrandBannerSchema() {
|
|
713
720
|
return Joi.object({
|
|
714
721
|
portrait: Joi.string().allow("").required(),
|
|
715
722
|
landscape: Joi.string().allow("").required(),
|
|
716
723
|
});
|
|
717
724
|
}
|
|
718
725
|
|
|
719
|
-
/** @returns {
|
|
720
|
-
static
|
|
726
|
+
/** @returns {GetBrandResponseSchema} */
|
|
727
|
+
static GetBrandResponseSchema() {
|
|
721
728
|
return Joi.object({
|
|
722
|
-
modified_by: CompanyProfilePlatformModel.
|
|
723
|
-
banner: CompanyProfilePlatformModel.
|
|
729
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
730
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema(),
|
|
724
731
|
name: Joi.string().allow("").required(),
|
|
725
|
-
_custom_json: Joi.any(),
|
|
732
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
726
733
|
verified_on: Joi.string().allow(""),
|
|
727
|
-
created_by: CompanyProfilePlatformModel.
|
|
734
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
728
735
|
created_on: Joi.string().allow(""),
|
|
729
|
-
warnings: Joi.any(),
|
|
730
|
-
_locale_language: Joi.any(),
|
|
736
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
737
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
731
738
|
mode: Joi.string().allow(""),
|
|
732
739
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
733
740
|
modified_on: Joi.string().allow(""),
|
|
734
741
|
uid: Joi.number(),
|
|
735
742
|
reject_reason: Joi.string().allow(""),
|
|
736
743
|
stage: Joi.string().allow(""),
|
|
737
|
-
verified_by: CompanyProfilePlatformModel.
|
|
744
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
738
745
|
slug_key: Joi.string().allow(""),
|
|
739
746
|
logo: Joi.string().allow(""),
|
|
740
747
|
description: Joi.string().allow(""),
|
|
741
748
|
});
|
|
742
749
|
}
|
|
743
750
|
|
|
744
|
-
/** @returns {
|
|
745
|
-
static
|
|
751
|
+
/** @returns {CreateBrandRequestSchema} */
|
|
752
|
+
static CreateBrandRequestSchema() {
|
|
746
753
|
return Joi.object({
|
|
747
|
-
_custom_json: Joi.any(),
|
|
748
|
-
_locale_language: Joi.any(),
|
|
754
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
755
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
749
756
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
750
757
|
company_id: Joi.number(),
|
|
751
758
|
description: Joi.string().allow(""),
|
|
752
759
|
logo: Joi.string().allow("").required(),
|
|
753
760
|
brand_tier: Joi.string().allow(""),
|
|
754
761
|
uid: Joi.number(),
|
|
755
|
-
banner: CompanyProfilePlatformModel.
|
|
762
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema().required(),
|
|
756
763
|
name: Joi.string().allow("").required(),
|
|
757
764
|
slug_key: Joi.string().allow(""),
|
|
758
765
|
});
|
|
759
766
|
}
|
|
760
767
|
|
|
761
|
-
/** @returns {
|
|
762
|
-
static
|
|
768
|
+
/** @returns {UpdateBrandRequestSchema} */
|
|
769
|
+
static UpdateBrandRequestSchema() {
|
|
763
770
|
return Joi.object({
|
|
764
|
-
_custom_json: Joi.any(),
|
|
765
|
-
_locale_language: Joi.any(),
|
|
771
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
772
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
766
773
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
767
774
|
company_id: Joi.number(),
|
|
768
775
|
description: Joi.string().allow(""),
|
|
769
776
|
logo: Joi.string().allow("").required(),
|
|
770
777
|
brand_tier: Joi.string().allow(""),
|
|
771
778
|
uid: Joi.number(),
|
|
772
|
-
banner: CompanyProfilePlatformModel.
|
|
779
|
+
banner: CompanyProfilePlatformModel.BrandBannerSchema().required(),
|
|
773
780
|
name: Joi.string().allow("").required(),
|
|
774
781
|
});
|
|
775
782
|
}
|
|
@@ -792,21 +799,21 @@ class CompanyProfilePlatformModel {
|
|
|
792
799
|
});
|
|
793
800
|
}
|
|
794
801
|
|
|
795
|
-
/** @returns {
|
|
796
|
-
static
|
|
802
|
+
/** @returns {CompanySchema} */
|
|
803
|
+
static CompanySchema() {
|
|
797
804
|
return Joi.object({
|
|
798
805
|
stage: Joi.string().allow(""),
|
|
799
|
-
_custom_json: Joi.any(),
|
|
806
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
800
807
|
verified_on: Joi.string().allow(""),
|
|
801
|
-
verified_by: CompanyProfilePlatformModel.
|
|
808
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
802
809
|
created_on: Joi.string().allow(""),
|
|
803
|
-
created_by: CompanyProfilePlatformModel.
|
|
810
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
804
811
|
company_type: Joi.string().allow("").required(),
|
|
805
812
|
modified_on: Joi.string().allow(""),
|
|
806
813
|
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
807
814
|
business_type: Joi.string().allow("").required(),
|
|
808
815
|
addresses: Joi.array().items(
|
|
809
|
-
CompanyProfilePlatformModel.
|
|
816
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
810
817
|
),
|
|
811
818
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
812
819
|
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
@@ -814,25 +821,25 @@ class CompanyProfilePlatformModel {
|
|
|
814
821
|
uid: Joi.number(),
|
|
815
822
|
reject_reason: Joi.string().allow(""),
|
|
816
823
|
name: Joi.string().allow(""),
|
|
817
|
-
modified_by: CompanyProfilePlatformModel.
|
|
824
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
818
825
|
});
|
|
819
826
|
}
|
|
820
827
|
|
|
821
|
-
/** @returns {
|
|
822
|
-
static
|
|
828
|
+
/** @returns {CompanyBrandSchema} */
|
|
829
|
+
static CompanyBrandSchema() {
|
|
823
830
|
return Joi.object({
|
|
824
831
|
stage: Joi.string().allow(""),
|
|
825
832
|
verified_on: Joi.string().allow(""),
|
|
826
|
-
verified_by: CompanyProfilePlatformModel.
|
|
833
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
827
834
|
created_on: Joi.string().allow(""),
|
|
828
|
-
created_by: CompanyProfilePlatformModel.
|
|
829
|
-
company: CompanyProfilePlatformModel.
|
|
830
|
-
warnings: Joi.any(),
|
|
835
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
836
|
+
company: CompanyProfilePlatformModel.CompanySchema(),
|
|
837
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
831
838
|
modified_on: Joi.string().allow(""),
|
|
832
839
|
uid: Joi.number(),
|
|
833
840
|
reject_reason: Joi.string().allow(""),
|
|
834
|
-
brand: CompanyProfilePlatformModel.
|
|
835
|
-
modified_by: CompanyProfilePlatformModel.
|
|
841
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSchema(),
|
|
842
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
836
843
|
});
|
|
837
844
|
}
|
|
838
845
|
|
|
@@ -846,21 +853,22 @@ class CompanyProfilePlatformModel {
|
|
|
846
853
|
current: Joi.number(),
|
|
847
854
|
type: Joi.string().allow("").required(),
|
|
848
855
|
size: Joi.number(),
|
|
856
|
+
page_size: Joi.number(),
|
|
849
857
|
});
|
|
850
858
|
}
|
|
851
859
|
|
|
852
|
-
/** @returns {
|
|
853
|
-
static
|
|
860
|
+
/** @returns {CompanyBrandListSchema} */
|
|
861
|
+
static CompanyBrandListSchema() {
|
|
854
862
|
return Joi.object({
|
|
855
863
|
items: Joi.array().items(
|
|
856
|
-
CompanyProfilePlatformModel.
|
|
864
|
+
CompanyProfilePlatformModel.CompanyBrandSchema()
|
|
857
865
|
),
|
|
858
866
|
page: CompanyProfilePlatformModel.Page(),
|
|
859
867
|
});
|
|
860
868
|
}
|
|
861
869
|
|
|
862
|
-
/** @returns {
|
|
863
|
-
static
|
|
870
|
+
/** @returns {CompanyBrandPostRequestSchema} */
|
|
871
|
+
static CompanyBrandPostRequestSchema() {
|
|
864
872
|
return Joi.object({
|
|
865
873
|
uid: Joi.number(),
|
|
866
874
|
brands: Joi.array().items(Joi.number()).required(),
|
|
@@ -868,8 +876,8 @@ class CompanyProfilePlatformModel {
|
|
|
868
876
|
});
|
|
869
877
|
}
|
|
870
878
|
|
|
871
|
-
/** @returns {
|
|
872
|
-
static
|
|
879
|
+
/** @returns {InvoiceCredSchema} */
|
|
880
|
+
static InvoiceCredSchema() {
|
|
873
881
|
return Joi.object({
|
|
874
882
|
username: Joi.string().allow(""),
|
|
875
883
|
enabled: Joi.boolean(),
|
|
@@ -877,37 +885,37 @@ class CompanyProfilePlatformModel {
|
|
|
877
885
|
});
|
|
878
886
|
}
|
|
879
887
|
|
|
880
|
-
/** @returns {
|
|
881
|
-
static
|
|
888
|
+
/** @returns {InvoiceDetailsSchema} */
|
|
889
|
+
static InvoiceDetailsSchema() {
|
|
882
890
|
return Joi.object({
|
|
883
|
-
e_invoice: CompanyProfilePlatformModel.
|
|
884
|
-
e_waybill: CompanyProfilePlatformModel.
|
|
891
|
+
e_invoice: CompanyProfilePlatformModel.InvoiceCredSchema(),
|
|
892
|
+
e_waybill: CompanyProfilePlatformModel.InvoiceCredSchema(),
|
|
885
893
|
});
|
|
886
894
|
}
|
|
887
895
|
|
|
888
|
-
/** @returns {
|
|
889
|
-
static
|
|
896
|
+
/** @returns {GetCompanySchema} */
|
|
897
|
+
static GetCompanySchema() {
|
|
890
898
|
return Joi.object({
|
|
891
899
|
stage: Joi.string().allow(""),
|
|
892
900
|
verified_on: Joi.string().allow(""),
|
|
893
|
-
verified_by: CompanyProfilePlatformModel.
|
|
901
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
894
902
|
created_on: Joi.string().allow(""),
|
|
895
|
-
created_by: CompanyProfilePlatformModel.
|
|
903
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
896
904
|
company_type: Joi.string().allow(""),
|
|
897
905
|
modified_on: Joi.string().allow(""),
|
|
898
906
|
business_type: Joi.string().allow(""),
|
|
899
907
|
addresses: Joi.array().items(
|
|
900
|
-
CompanyProfilePlatformModel.
|
|
908
|
+
CompanyProfilePlatformModel.GetAddressSchema()
|
|
901
909
|
),
|
|
902
910
|
uid: Joi.number(),
|
|
903
911
|
reject_reason: Joi.string().allow(""),
|
|
904
912
|
name: Joi.string().allow(""),
|
|
905
|
-
modified_by: CompanyProfilePlatformModel.
|
|
913
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
906
914
|
});
|
|
907
915
|
}
|
|
908
916
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
917
|
+
/** @returns {LocationManagerSchema} */
|
|
918
|
+
static LocationManagerSchema() {
|
|
911
919
|
return Joi.object({
|
|
912
920
|
email: Joi.string().allow(""),
|
|
913
921
|
mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
|
|
@@ -915,112 +923,112 @@ class CompanyProfilePlatformModel {
|
|
|
915
923
|
});
|
|
916
924
|
}
|
|
917
925
|
|
|
918
|
-
/** @returns {
|
|
919
|
-
static
|
|
926
|
+
/** @returns {LocationTimingSchema} */
|
|
927
|
+
static LocationTimingSchema() {
|
|
920
928
|
return Joi.object({
|
|
921
929
|
hour: Joi.number().required(),
|
|
922
930
|
minute: Joi.number().required(),
|
|
923
931
|
});
|
|
924
932
|
}
|
|
925
933
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
934
|
+
/** @returns {LocationDayWiseSchema} */
|
|
935
|
+
static LocationDayWiseSchema() {
|
|
928
936
|
return Joi.object({
|
|
929
937
|
open: Joi.boolean().required(),
|
|
930
938
|
weekday: Joi.string().allow("").required(),
|
|
931
|
-
opening: CompanyProfilePlatformModel.
|
|
932
|
-
closing: CompanyProfilePlatformModel.
|
|
939
|
+
opening: CompanyProfilePlatformModel.LocationTimingSchema(),
|
|
940
|
+
closing: CompanyProfilePlatformModel.LocationTimingSchema(),
|
|
933
941
|
});
|
|
934
942
|
}
|
|
935
943
|
|
|
936
|
-
/** @returns {
|
|
937
|
-
static
|
|
944
|
+
/** @returns {HolidayDateSchema} */
|
|
945
|
+
static HolidayDateSchema() {
|
|
938
946
|
return Joi.object({
|
|
939
947
|
end_date: Joi.string().allow("").required(),
|
|
940
948
|
start_date: Joi.string().allow("").required(),
|
|
941
949
|
});
|
|
942
950
|
}
|
|
943
951
|
|
|
944
|
-
/** @returns {
|
|
945
|
-
static
|
|
952
|
+
/** @returns {HolidaySchemaSchema} */
|
|
953
|
+
static HolidaySchemaSchema() {
|
|
946
954
|
return Joi.object({
|
|
947
|
-
date: CompanyProfilePlatformModel.
|
|
955
|
+
date: CompanyProfilePlatformModel.HolidayDateSchema().required(),
|
|
948
956
|
title: Joi.string().allow("").required(),
|
|
949
957
|
holiday_type: Joi.string().allow("").required(),
|
|
950
958
|
});
|
|
951
959
|
}
|
|
952
960
|
|
|
953
|
-
/** @returns {
|
|
954
|
-
static
|
|
961
|
+
/** @returns {ProductReturnConfigSchema} */
|
|
962
|
+
static ProductReturnConfigSchema() {
|
|
955
963
|
return Joi.object({
|
|
956
964
|
on_same_store: Joi.boolean(),
|
|
957
965
|
store_uid: Joi.number(),
|
|
958
966
|
});
|
|
959
967
|
}
|
|
960
968
|
|
|
961
|
-
/** @returns {
|
|
962
|
-
static
|
|
969
|
+
/** @returns {GetLocationSchema} */
|
|
970
|
+
static GetLocationSchema() {
|
|
963
971
|
return Joi.object({
|
|
964
972
|
code: Joi.string().allow("").required(),
|
|
965
973
|
phone_number: Joi.string().allow(""),
|
|
966
974
|
contact_numbers: Joi.array().items(
|
|
967
975
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
968
976
|
),
|
|
969
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
977
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSchema(),
|
|
970
978
|
name: Joi.string().allow("").required(),
|
|
971
|
-
_custom_json: Joi.any(),
|
|
979
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
972
980
|
verified_on: Joi.string().allow(""),
|
|
973
|
-
created_by: CompanyProfilePlatformModel.
|
|
981
|
+
created_by: CompanyProfilePlatformModel.UserSchema(),
|
|
974
982
|
created_on: Joi.string().allow(""),
|
|
975
|
-
company: CompanyProfilePlatformModel.
|
|
976
|
-
address: CompanyProfilePlatformModel.
|
|
977
|
-
warnings: Joi.any(),
|
|
983
|
+
company: CompanyProfilePlatformModel.GetCompanySchema(),
|
|
984
|
+
address: CompanyProfilePlatformModel.GetAddressSchema().required(),
|
|
985
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
978
986
|
store_type: Joi.string().allow(""),
|
|
979
|
-
manager: CompanyProfilePlatformModel.
|
|
987
|
+
manager: CompanyProfilePlatformModel.LocationManagerSchema(),
|
|
980
988
|
auto_invoice: Joi.boolean(),
|
|
981
989
|
modified_on: Joi.string().allow(""),
|
|
982
990
|
uid: Joi.number(),
|
|
983
991
|
timing: Joi.array().items(
|
|
984
|
-
CompanyProfilePlatformModel.
|
|
992
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
985
993
|
),
|
|
986
994
|
stage: Joi.string().allow(""),
|
|
987
995
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
988
996
|
credit_note: Joi.boolean(),
|
|
989
997
|
holiday: Joi.array().items(
|
|
990
|
-
CompanyProfilePlatformModel.
|
|
998
|
+
CompanyProfilePlatformModel.HolidaySchemaSchema()
|
|
991
999
|
),
|
|
992
1000
|
display_name: Joi.string().allow("").required(),
|
|
993
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
994
|
-
verified_by: CompanyProfilePlatformModel.
|
|
1001
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSchema(),
|
|
1002
|
+
verified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
995
1003
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
996
|
-
modified_by: CompanyProfilePlatformModel.
|
|
1004
|
+
modified_by: CompanyProfilePlatformModel.UserSchema(),
|
|
997
1005
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
998
1006
|
default_order_acceptance_timing: Joi.boolean(),
|
|
999
1007
|
order_acceptance_timing: Joi.array().items(
|
|
1000
|
-
CompanyProfilePlatformModel.
|
|
1008
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1001
1009
|
),
|
|
1002
1010
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1003
1011
|
bulk_shipment: Joi.boolean(),
|
|
1012
|
+
multi_piece_shipment: Joi.boolean(),
|
|
1004
1013
|
auto_assign_courier_partner: Joi.boolean(),
|
|
1014
|
+
qc_based_return_inventory_sync: Joi.boolean(),
|
|
1005
1015
|
});
|
|
1006
1016
|
}
|
|
1007
1017
|
|
|
1008
|
-
/** @returns {
|
|
1009
|
-
static
|
|
1018
|
+
/** @returns {LocationListSchema} */
|
|
1019
|
+
static LocationListSchema() {
|
|
1010
1020
|
return Joi.object({
|
|
1011
|
-
items: Joi.array().items(
|
|
1012
|
-
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
1013
|
-
),
|
|
1021
|
+
items: Joi.array().items(CompanyProfilePlatformModel.GetLocationSchema()),
|
|
1014
1022
|
page: CompanyProfilePlatformModel.Page(),
|
|
1015
1023
|
});
|
|
1016
1024
|
}
|
|
1017
1025
|
|
|
1018
|
-
/** @returns {
|
|
1019
|
-
static
|
|
1026
|
+
/** @returns {AddressSchema} */
|
|
1027
|
+
static AddressSchema() {
|
|
1020
1028
|
return Joi.object({
|
|
1021
1029
|
landmark: Joi.string().allow(""),
|
|
1022
1030
|
country_code: Joi.string().allow("").required(),
|
|
1023
|
-
pincode: Joi.
|
|
1031
|
+
pincode: Joi.string().allow(""),
|
|
1024
1032
|
address_type: Joi.string().allow(""),
|
|
1025
1033
|
longitude: Joi.number().required(),
|
|
1026
1034
|
country: Joi.string().allow(""),
|
|
@@ -1034,25 +1042,25 @@ class CompanyProfilePlatformModel {
|
|
|
1034
1042
|
});
|
|
1035
1043
|
}
|
|
1036
1044
|
|
|
1037
|
-
/** @returns {
|
|
1038
|
-
static
|
|
1045
|
+
/** @returns {LocationSchema} */
|
|
1046
|
+
static LocationSchema() {
|
|
1039
1047
|
return Joi.object({
|
|
1040
1048
|
code: Joi.string().allow("").required(),
|
|
1041
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
1049
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSchema(),
|
|
1042
1050
|
contact_numbers: Joi.array().items(
|
|
1043
1051
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
1044
1052
|
),
|
|
1045
1053
|
name: Joi.string().allow("").required(),
|
|
1046
|
-
_custom_json: Joi.any(),
|
|
1047
|
-
warnings: Joi.any(),
|
|
1048
|
-
address: CompanyProfilePlatformModel.
|
|
1054
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1055
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
1056
|
+
address: CompanyProfilePlatformModel.AddressSchema().required(),
|
|
1049
1057
|
company: Joi.number().required(),
|
|
1050
1058
|
store_type: Joi.string().allow(""),
|
|
1051
|
-
manager: CompanyProfilePlatformModel.
|
|
1059
|
+
manager: CompanyProfilePlatformModel.LocationManagerSchema(),
|
|
1052
1060
|
auto_invoice: Joi.boolean(),
|
|
1053
1061
|
uid: Joi.number(),
|
|
1054
1062
|
timing: Joi.array().items(
|
|
1055
|
-
CompanyProfilePlatformModel.
|
|
1063
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1056
1064
|
),
|
|
1057
1065
|
stage: Joi.string().allow(""),
|
|
1058
1066
|
documents: Joi.array()
|
|
@@ -1060,26 +1068,27 @@ class CompanyProfilePlatformModel {
|
|
|
1060
1068
|
.required(),
|
|
1061
1069
|
credit_note: Joi.boolean(),
|
|
1062
1070
|
holiday: Joi.array().items(
|
|
1063
|
-
CompanyProfilePlatformModel.
|
|
1071
|
+
CompanyProfilePlatformModel.HolidaySchemaSchema()
|
|
1064
1072
|
),
|
|
1065
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
1073
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSchema(),
|
|
1066
1074
|
display_name: Joi.string().allow("").required(),
|
|
1067
1075
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1068
1076
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1069
1077
|
default_order_acceptance_timing: Joi.boolean(),
|
|
1070
1078
|
order_acceptance_timing: Joi.array().items(
|
|
1071
|
-
CompanyProfilePlatformModel.
|
|
1079
|
+
CompanyProfilePlatformModel.LocationDayWiseSchema()
|
|
1072
1080
|
),
|
|
1073
1081
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1074
1082
|
bulk_shipment: Joi.boolean(),
|
|
1083
|
+
multi_piece_shipment: Joi.boolean(),
|
|
1075
1084
|
auto_assign_courier_partner: Joi.boolean(),
|
|
1076
1085
|
});
|
|
1077
1086
|
}
|
|
1078
1087
|
|
|
1079
|
-
/** @returns {
|
|
1080
|
-
static
|
|
1088
|
+
/** @returns {BulkLocationSchema} */
|
|
1089
|
+
static BulkLocationSchema() {
|
|
1081
1090
|
return Joi.object({
|
|
1082
|
-
data: Joi.array().items(CompanyProfilePlatformModel.
|
|
1091
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSchema()),
|
|
1083
1092
|
});
|
|
1084
1093
|
}
|
|
1085
1094
|
|