@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -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 +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef CompanyTaxesSerializer
|
|
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 UserSerializer
|
|
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 GetAddressSerializer
|
|
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 GetCompanyProfileSerializerResponse
|
|
82
82
|
* @property {string} [business_info]
|
|
83
|
-
* @property {
|
|
83
|
+
* @property {CompanyTaxesSerializer[]} [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 {UserSerializer} [created_by]
|
|
89
89
|
* @property {string} [created_on]
|
|
90
90
|
* @property {Object} [warnings]
|
|
91
91
|
* @property {BusinessDetails} [business_details]
|
|
@@ -98,18 +98,19 @@ 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 {GetAddressSerializer[]} [addresses]
|
|
102
|
+
* @property {UserSerializer} [verified_by]
|
|
103
103
|
* @property {string[]} [notification_emails]
|
|
104
|
-
* @property {
|
|
104
|
+
* @property {UserSerializer} [modified_by]
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* @typedef
|
|
108
|
+
* @typedef ErrorResponse
|
|
109
|
+
* @property {number} [code]
|
|
110
|
+
* @property {string} [error]
|
|
109
111
|
* @property {string} [message]
|
|
110
|
-
* @property {string} [code]
|
|
111
|
-
* @property {number} [status]
|
|
112
112
|
* @property {Object} [meta]
|
|
113
|
+
* @property {number} [status]
|
|
113
114
|
*/
|
|
114
115
|
|
|
115
116
|
/**
|
|
@@ -120,10 +121,10 @@ const Joi = require("joi");
|
|
|
120
121
|
*/
|
|
121
122
|
|
|
122
123
|
/**
|
|
123
|
-
* @typedef
|
|
124
|
+
* @typedef CreateUpdateAddressSerializer
|
|
124
125
|
* @property {string} [landmark]
|
|
125
126
|
* @property {string} [country_code]
|
|
126
|
-
* @property {
|
|
127
|
+
* @property {string} [pincode]
|
|
127
128
|
* @property {string} address_type
|
|
128
129
|
* @property {number} longitude
|
|
129
130
|
* @property {string} country
|
|
@@ -145,7 +146,7 @@ const Joi = require("joi");
|
|
|
145
146
|
* @property {BusinessDetails} [business_details]
|
|
146
147
|
* @property {Document[]} [documents]
|
|
147
148
|
* @property {string} [business_type]
|
|
148
|
-
* @property {
|
|
149
|
+
* @property {CreateUpdateAddressSerializer[]} [addresses]
|
|
149
150
|
* @property {string[]} [notification_emails]
|
|
150
151
|
* @property {ContactDetails} [contact_details]
|
|
151
152
|
* @property {string} [reject_reason]
|
|
@@ -153,8 +154,9 @@ const Joi = require("joi");
|
|
|
153
154
|
*/
|
|
154
155
|
|
|
155
156
|
/**
|
|
156
|
-
* @typedef
|
|
157
|
+
* @typedef ProfileSuccessResponse
|
|
157
158
|
* @property {number} [uid]
|
|
159
|
+
* @property {Object[]} [data]
|
|
158
160
|
* @property {string} [message]
|
|
159
161
|
* @property {boolean} [success]
|
|
160
162
|
*/
|
|
@@ -166,7 +168,7 @@ const Joi = require("joi");
|
|
|
166
168
|
*/
|
|
167
169
|
|
|
168
170
|
/**
|
|
169
|
-
* @typedef
|
|
171
|
+
* @typedef MetricsSerializer
|
|
170
172
|
* @property {string} [stage]
|
|
171
173
|
* @property {DocumentsObj} [store]
|
|
172
174
|
* @property {DocumentsObj} [company_documents]
|
|
@@ -177,19 +179,19 @@ const Joi = require("joi");
|
|
|
177
179
|
*/
|
|
178
180
|
|
|
179
181
|
/**
|
|
180
|
-
* @typedef
|
|
182
|
+
* @typedef BrandBannerSerializer
|
|
181
183
|
* @property {string} portrait
|
|
182
184
|
* @property {string} landscape
|
|
183
185
|
*/
|
|
184
186
|
|
|
185
187
|
/**
|
|
186
|
-
* @typedef
|
|
187
|
-
* @property {
|
|
188
|
-
* @property {
|
|
188
|
+
* @typedef GetBrandResponseSerializer
|
|
189
|
+
* @property {UserSerializer} [modified_by]
|
|
190
|
+
* @property {BrandBannerSerializer} [banner]
|
|
189
191
|
* @property {string} name
|
|
190
192
|
* @property {Object} [_custom_json]
|
|
191
193
|
* @property {string} [verified_on]
|
|
192
|
-
* @property {
|
|
194
|
+
* @property {UserSerializer} [created_by]
|
|
193
195
|
* @property {string} [created_on]
|
|
194
196
|
* @property {Object} [warnings]
|
|
195
197
|
* @property {Object} [_locale_language]
|
|
@@ -199,14 +201,14 @@ const Joi = require("joi");
|
|
|
199
201
|
* @property {number} [uid]
|
|
200
202
|
* @property {string} [reject_reason]
|
|
201
203
|
* @property {string} [stage]
|
|
202
|
-
* @property {
|
|
204
|
+
* @property {UserSerializer} [verified_by]
|
|
203
205
|
* @property {string} [slug_key]
|
|
204
206
|
* @property {string} [logo]
|
|
205
207
|
* @property {string} [description]
|
|
206
208
|
*/
|
|
207
209
|
|
|
208
210
|
/**
|
|
209
|
-
* @typedef
|
|
211
|
+
* @typedef CreateUpdateBrandRequestSerializer
|
|
210
212
|
* @property {Object} [_custom_json]
|
|
211
213
|
* @property {Object} [_locale_language]
|
|
212
214
|
* @property {string[]} [synonyms]
|
|
@@ -215,25 +217,11 @@ const Joi = require("joi");
|
|
|
215
217
|
* @property {string} logo
|
|
216
218
|
* @property {string} [brand_tier]
|
|
217
219
|
* @property {number} [uid]
|
|
218
|
-
* @property {
|
|
220
|
+
* @property {BrandBannerSerializer} banner
|
|
219
221
|
* @property {string} name
|
|
220
222
|
* @property {string} [slug_key]
|
|
221
223
|
*/
|
|
222
224
|
|
|
223
|
-
/**
|
|
224
|
-
* @typedef UpdateBrandRequestSchema
|
|
225
|
-
* @property {Object} [_custom_json]
|
|
226
|
-
* @property {Object} [_locale_language]
|
|
227
|
-
* @property {string[]} [synonyms]
|
|
228
|
-
* @property {number} [company_id]
|
|
229
|
-
* @property {string} [description]
|
|
230
|
-
* @property {string} logo
|
|
231
|
-
* @property {string} [brand_tier]
|
|
232
|
-
* @property {number} [uid]
|
|
233
|
-
* @property {BrandBannerSchema} banner
|
|
234
|
-
* @property {string} name
|
|
235
|
-
*/
|
|
236
|
-
|
|
237
225
|
/**
|
|
238
226
|
* @typedef CompanySocialAccounts
|
|
239
227
|
* @property {string} name
|
|
@@ -247,41 +235,41 @@ const Joi = require("joi");
|
|
|
247
235
|
*/
|
|
248
236
|
|
|
249
237
|
/**
|
|
250
|
-
* @typedef
|
|
238
|
+
* @typedef CompanySerializer
|
|
251
239
|
* @property {string} [stage]
|
|
252
240
|
* @property {Object} [_custom_json]
|
|
253
241
|
* @property {string} [verified_on]
|
|
254
|
-
* @property {
|
|
242
|
+
* @property {UserSerializer} [verified_by]
|
|
255
243
|
* @property {string} [created_on]
|
|
256
|
-
* @property {
|
|
244
|
+
* @property {UserSerializer} [created_by]
|
|
257
245
|
* @property {string} company_type
|
|
258
246
|
* @property {string} [modified_on]
|
|
259
247
|
* @property {string[]} [market_channels]
|
|
260
|
-
* @property {string} business_type
|
|
261
|
-
* @property {
|
|
248
|
+
* @property {string} [business_type]
|
|
249
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
262
250
|
* @property {string[]} [notification_emails]
|
|
263
251
|
* @property {CompanyDetails} [details]
|
|
264
252
|
* @property {BusinessCountryInfo} [business_country_info]
|
|
265
253
|
* @property {number} [uid]
|
|
266
254
|
* @property {string} [reject_reason]
|
|
267
255
|
* @property {string} [name]
|
|
268
|
-
* @property {
|
|
256
|
+
* @property {UserSerializer} [modified_by]
|
|
269
257
|
*/
|
|
270
258
|
|
|
271
259
|
/**
|
|
272
|
-
* @typedef
|
|
260
|
+
* @typedef CompanyBrandSerializer
|
|
273
261
|
* @property {string} [stage]
|
|
274
262
|
* @property {string} [verified_on]
|
|
275
|
-
* @property {
|
|
263
|
+
* @property {UserSerializer} [verified_by]
|
|
276
264
|
* @property {string} [created_on]
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {
|
|
265
|
+
* @property {UserSerializer} [created_by]
|
|
266
|
+
* @property {CompanySerializer} [company]
|
|
279
267
|
* @property {Object} [warnings]
|
|
280
268
|
* @property {string} [modified_on]
|
|
281
269
|
* @property {number} [uid]
|
|
282
270
|
* @property {string} [reject_reason]
|
|
283
|
-
* @property {
|
|
284
|
-
* @property {
|
|
271
|
+
* @property {GetBrandResponseSerializer} [brand]
|
|
272
|
+
* @property {UserSerializer} [modified_by]
|
|
285
273
|
*/
|
|
286
274
|
|
|
287
275
|
/**
|
|
@@ -293,139 +281,140 @@ const Joi = require("joi");
|
|
|
293
281
|
* @property {number} [current] - The current page number.
|
|
294
282
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
295
283
|
* @property {number} [size] - The number of items per page.
|
|
284
|
+
* @property {number} [total] - Total number of items.
|
|
296
285
|
*/
|
|
297
286
|
|
|
298
287
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {
|
|
288
|
+
* @typedef CompanyBrandListSerializer
|
|
289
|
+
* @property {CompanyBrandSerializer[]} [items]
|
|
301
290
|
* @property {Page} [page]
|
|
302
291
|
*/
|
|
303
292
|
|
|
304
293
|
/**
|
|
305
|
-
* @typedef
|
|
294
|
+
* @typedef CompanyBrandPostRequestSerializer
|
|
306
295
|
* @property {number} [uid]
|
|
307
296
|
* @property {number[]} brands
|
|
308
297
|
* @property {number} company
|
|
309
298
|
*/
|
|
310
299
|
|
|
311
300
|
/**
|
|
312
|
-
* @typedef
|
|
301
|
+
* @typedef InvoiceCredSerializer
|
|
313
302
|
* @property {string} [username]
|
|
314
303
|
* @property {boolean} [enabled]
|
|
315
304
|
* @property {string} [password]
|
|
316
305
|
*/
|
|
317
306
|
|
|
318
307
|
/**
|
|
319
|
-
* @typedef
|
|
320
|
-
* @property {
|
|
321
|
-
* @property {
|
|
308
|
+
* @typedef InvoiceDetailsSerializer
|
|
309
|
+
* @property {InvoiceCredSerializer} [e_invoice]
|
|
310
|
+
* @property {InvoiceCredSerializer} [e_waybill]
|
|
322
311
|
*/
|
|
323
312
|
|
|
324
313
|
/**
|
|
325
|
-
* @typedef
|
|
314
|
+
* @typedef GetCompanySerializer
|
|
326
315
|
* @property {string} [stage]
|
|
327
316
|
* @property {string} [verified_on]
|
|
328
|
-
* @property {
|
|
317
|
+
* @property {UserSerializer} [verified_by]
|
|
329
318
|
* @property {string} [created_on]
|
|
330
|
-
* @property {
|
|
319
|
+
* @property {UserSerializer} [created_by]
|
|
331
320
|
* @property {string} [company_type]
|
|
332
321
|
* @property {string} [modified_on]
|
|
333
322
|
* @property {string} [business_type]
|
|
334
|
-
* @property {
|
|
323
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
335
324
|
* @property {number} [uid]
|
|
336
325
|
* @property {string} [reject_reason]
|
|
337
326
|
* @property {string} [name]
|
|
338
|
-
* @property {
|
|
327
|
+
* @property {UserSerializer} [modified_by]
|
|
339
328
|
*/
|
|
340
329
|
|
|
341
330
|
/**
|
|
342
|
-
* @typedef
|
|
331
|
+
* @typedef LocationManagerSerializer
|
|
343
332
|
* @property {string} [email]
|
|
344
333
|
* @property {SellerPhoneNumber} mobile_no
|
|
345
334
|
* @property {string} [name]
|
|
346
335
|
*/
|
|
347
336
|
|
|
348
337
|
/**
|
|
349
|
-
* @typedef
|
|
338
|
+
* @typedef LocationTimingSerializer
|
|
350
339
|
* @property {number} hour
|
|
351
340
|
* @property {number} minute
|
|
352
341
|
*/
|
|
353
342
|
|
|
354
343
|
/**
|
|
355
|
-
* @typedef
|
|
344
|
+
* @typedef LocationDayWiseSerializer
|
|
356
345
|
* @property {boolean} open
|
|
357
346
|
* @property {string} weekday
|
|
358
|
-
* @property {
|
|
359
|
-
* @property {
|
|
347
|
+
* @property {LocationTimingSerializer} [opening]
|
|
348
|
+
* @property {LocationTimingSerializer} [closing]
|
|
360
349
|
*/
|
|
361
350
|
|
|
362
351
|
/**
|
|
363
|
-
* @typedef
|
|
352
|
+
* @typedef HolidayDateSerializer
|
|
364
353
|
* @property {string} end_date
|
|
365
354
|
* @property {string} start_date
|
|
366
355
|
*/
|
|
367
356
|
|
|
368
357
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {
|
|
358
|
+
* @typedef HolidaySchemaSerializer
|
|
359
|
+
* @property {HolidayDateSerializer} date
|
|
371
360
|
* @property {string} title
|
|
372
361
|
* @property {string} holiday_type
|
|
373
362
|
*/
|
|
374
363
|
|
|
375
364
|
/**
|
|
376
|
-
* @typedef
|
|
365
|
+
* @typedef ProductReturnConfigSerializer
|
|
377
366
|
* @property {boolean} [on_same_store]
|
|
378
367
|
* @property {number} [store_uid]
|
|
379
368
|
*/
|
|
380
369
|
|
|
381
370
|
/**
|
|
382
|
-
* @typedef
|
|
371
|
+
* @typedef GetLocationSerializer
|
|
383
372
|
* @property {string} code
|
|
384
373
|
* @property {string} [phone_number]
|
|
385
374
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
386
|
-
* @property {
|
|
375
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
387
376
|
* @property {string} name
|
|
388
377
|
* @property {Object} [_custom_json]
|
|
389
378
|
* @property {string} [verified_on]
|
|
390
|
-
* @property {
|
|
379
|
+
* @property {UserSerializer} [created_by]
|
|
391
380
|
* @property {string} [created_on]
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {
|
|
381
|
+
* @property {GetCompanySerializer} [company]
|
|
382
|
+
* @property {GetAddressSerializer} address
|
|
394
383
|
* @property {Object} [warnings]
|
|
395
384
|
* @property {string} [store_type]
|
|
396
|
-
* @property {
|
|
385
|
+
* @property {LocationManagerSerializer} [manager]
|
|
397
386
|
* @property {boolean} [auto_invoice]
|
|
398
387
|
* @property {string} [modified_on]
|
|
399
388
|
* @property {number} [uid]
|
|
400
|
-
* @property {
|
|
389
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
401
390
|
* @property {string} [stage]
|
|
402
391
|
* @property {Document[]} [documents]
|
|
403
392
|
* @property {boolean} [credit_note]
|
|
404
|
-
* @property {
|
|
393
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
405
394
|
* @property {string} display_name
|
|
406
|
-
* @property {
|
|
407
|
-
* @property {
|
|
395
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
396
|
+
* @property {UserSerializer} [verified_by]
|
|
408
397
|
* @property {string[]} [notification_emails]
|
|
409
|
-
* @property {
|
|
398
|
+
* @property {UserSerializer} [modified_by]
|
|
410
399
|
* @property {string[]} [tags]
|
|
411
400
|
* @property {boolean} [default_order_acceptance_timing]
|
|
412
|
-
* @property {
|
|
401
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing]
|
|
413
402
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
414
403
|
* @property {boolean} [bulk_shipment]
|
|
415
404
|
* @property {boolean} [auto_assign_courier_partner]
|
|
416
405
|
*/
|
|
417
406
|
|
|
418
407
|
/**
|
|
419
|
-
* @typedef
|
|
420
|
-
* @property {
|
|
408
|
+
* @typedef LocationListSerializer
|
|
409
|
+
* @property {GetLocationSerializer[]} [items]
|
|
421
410
|
* @property {Page} [page]
|
|
422
411
|
*/
|
|
423
412
|
|
|
424
413
|
/**
|
|
425
|
-
* @typedef
|
|
414
|
+
* @typedef AddressSerializer
|
|
426
415
|
* @property {string} [landmark]
|
|
427
416
|
* @property {string} country_code
|
|
428
|
-
* @property {
|
|
417
|
+
* @property {string} [pincode]
|
|
429
418
|
* @property {string} [address_type]
|
|
430
419
|
* @property {number} longitude
|
|
431
420
|
* @property {string} [country]
|
|
@@ -439,31 +428,31 @@ const Joi = require("joi");
|
|
|
439
428
|
*/
|
|
440
429
|
|
|
441
430
|
/**
|
|
442
|
-
* @typedef
|
|
431
|
+
* @typedef LocationSerializer
|
|
443
432
|
* @property {string} code
|
|
444
|
-
* @property {
|
|
433
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
445
434
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
446
435
|
* @property {string} name
|
|
447
436
|
* @property {Object} [_custom_json]
|
|
448
437
|
* @property {Object} [warnings]
|
|
449
|
-
* @property {
|
|
438
|
+
* @property {AddressSerializer} address
|
|
450
439
|
* @property {number} company
|
|
451
440
|
* @property {string} [store_type]
|
|
452
|
-
* @property {
|
|
441
|
+
* @property {LocationManagerSerializer} [manager]
|
|
453
442
|
* @property {boolean} [auto_invoice]
|
|
454
443
|
* @property {number} [uid]
|
|
455
|
-
* @property {
|
|
444
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
456
445
|
* @property {string} [stage]
|
|
457
446
|
* @property {Document[]} documents
|
|
458
447
|
* @property {boolean} [credit_note]
|
|
459
|
-
* @property {
|
|
460
|
-
* @property {
|
|
448
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
449
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
461
450
|
* @property {string} display_name
|
|
462
451
|
* @property {string[]} [notification_emails]
|
|
463
452
|
* @property {string[]} [tags]
|
|
464
453
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
465
454
|
* order_acceptance_timing as default timing
|
|
466
|
-
* @property {
|
|
455
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
|
|
467
456
|
* acceptance timing of the store
|
|
468
457
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
469
458
|
* @property {boolean} [bulk_shipment]
|
|
@@ -471,8 +460,8 @@ const Joi = require("joi");
|
|
|
471
460
|
*/
|
|
472
461
|
|
|
473
462
|
/**
|
|
474
|
-
* @typedef
|
|
475
|
-
* @property {
|
|
463
|
+
* @typedef BulkLocationSerializer
|
|
464
|
+
* @property {LocationSerializer[]} [data]
|
|
476
465
|
*/
|
|
477
466
|
|
|
478
467
|
/**
|
|
@@ -488,8 +477,8 @@ const Joi = require("joi");
|
|
|
488
477
|
*/
|
|
489
478
|
|
|
490
479
|
class CompanyProfilePlatformModel {
|
|
491
|
-
/** @returns {
|
|
492
|
-
static
|
|
480
|
+
/** @returns {CompanyTaxesSerializer} */
|
|
481
|
+
static CompanyTaxesSerializer() {
|
|
493
482
|
return Joi.object({
|
|
494
483
|
effective_date: Joi.string().allow(""),
|
|
495
484
|
rate: Joi.number(),
|
|
@@ -497,8 +486,8 @@ class CompanyProfilePlatformModel {
|
|
|
497
486
|
});
|
|
498
487
|
}
|
|
499
488
|
|
|
500
|
-
/** @returns {
|
|
501
|
-
static
|
|
489
|
+
/** @returns {UserSerializer} */
|
|
490
|
+
static UserSerializer() {
|
|
502
491
|
return Joi.object({
|
|
503
492
|
user_id: Joi.string().allow(""),
|
|
504
493
|
contact: Joi.string().allow(""),
|
|
@@ -566,12 +555,12 @@ class CompanyProfilePlatformModel {
|
|
|
566
555
|
});
|
|
567
556
|
}
|
|
568
557
|
|
|
569
|
-
/** @returns {
|
|
570
|
-
static
|
|
558
|
+
/** @returns {GetAddressSerializer} */
|
|
559
|
+
static GetAddressSerializer() {
|
|
571
560
|
return Joi.object({
|
|
572
561
|
landmark: Joi.string().allow(""),
|
|
573
562
|
country_code: Joi.string().allow(""),
|
|
574
|
-
pincode: Joi.
|
|
563
|
+
pincode: Joi.string().allow(""),
|
|
575
564
|
address_type: Joi.string().allow(""),
|
|
576
565
|
longitude: Joi.number().required(),
|
|
577
566
|
country: Joi.string().allow(""),
|
|
@@ -585,20 +574,20 @@ class CompanyProfilePlatformModel {
|
|
|
585
574
|
});
|
|
586
575
|
}
|
|
587
576
|
|
|
588
|
-
/** @returns {
|
|
589
|
-
static
|
|
577
|
+
/** @returns {GetCompanyProfileSerializerResponse} */
|
|
578
|
+
static GetCompanyProfileSerializerResponse() {
|
|
590
579
|
return Joi.object({
|
|
591
580
|
business_info: Joi.string().allow(""),
|
|
592
581
|
taxes: Joi.array().items(
|
|
593
|
-
CompanyProfilePlatformModel.
|
|
582
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer()
|
|
594
583
|
),
|
|
595
584
|
business_type: Joi.string().allow(""),
|
|
596
585
|
name: Joi.string().allow(""),
|
|
597
|
-
_custom_json: Joi.
|
|
586
|
+
_custom_json: Joi.any(),
|
|
598
587
|
verified_on: Joi.string().allow(""),
|
|
599
|
-
created_by: CompanyProfilePlatformModel.
|
|
588
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
600
589
|
created_on: Joi.string().allow(""),
|
|
601
|
-
warnings: Joi.
|
|
590
|
+
warnings: Joi.any(),
|
|
602
591
|
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
603
592
|
mode: Joi.string().allow(""),
|
|
604
593
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -610,21 +599,22 @@ class CompanyProfilePlatformModel {
|
|
|
610
599
|
company_type: Joi.string().allow("").required(),
|
|
611
600
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
612
601
|
addresses: Joi.array().items(
|
|
613
|
-
CompanyProfilePlatformModel.
|
|
602
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
614
603
|
),
|
|
615
|
-
verified_by: CompanyProfilePlatformModel.
|
|
604
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
616
605
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
617
|
-
modified_by: CompanyProfilePlatformModel.
|
|
606
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
618
607
|
});
|
|
619
608
|
}
|
|
620
609
|
|
|
621
|
-
/** @returns {
|
|
622
|
-
static
|
|
610
|
+
/** @returns {ErrorResponse} */
|
|
611
|
+
static ErrorResponse() {
|
|
623
612
|
return Joi.object({
|
|
613
|
+
code: Joi.number(),
|
|
614
|
+
error: Joi.string().allow(""),
|
|
624
615
|
message: Joi.string().allow(""),
|
|
625
|
-
|
|
616
|
+
meta: Joi.any(),
|
|
626
617
|
status: Joi.number(),
|
|
627
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
628
618
|
});
|
|
629
619
|
}
|
|
630
620
|
|
|
@@ -637,12 +627,12 @@ class CompanyProfilePlatformModel {
|
|
|
637
627
|
});
|
|
638
628
|
}
|
|
639
629
|
|
|
640
|
-
/** @returns {
|
|
641
|
-
static
|
|
630
|
+
/** @returns {CreateUpdateAddressSerializer} */
|
|
631
|
+
static CreateUpdateAddressSerializer() {
|
|
642
632
|
return Joi.object({
|
|
643
633
|
landmark: Joi.string().allow(""),
|
|
644
634
|
country_code: Joi.string().allow(""),
|
|
645
|
-
pincode: Joi.
|
|
635
|
+
pincode: Joi.string().allow(""),
|
|
646
636
|
address_type: Joi.string().allow("").required(),
|
|
647
637
|
longitude: Joi.number().required(),
|
|
648
638
|
country: Joi.string().allow("").required(),
|
|
@@ -659,9 +649,9 @@ class CompanyProfilePlatformModel {
|
|
|
659
649
|
return Joi.object({
|
|
660
650
|
franchise_enabled: Joi.boolean(),
|
|
661
651
|
business_info: Joi.string().allow(""),
|
|
662
|
-
warnings: Joi.
|
|
652
|
+
warnings: Joi.any(),
|
|
663
653
|
company_type: Joi.string().allow(""),
|
|
664
|
-
_custom_json: Joi.
|
|
654
|
+
_custom_json: Joi.any(),
|
|
665
655
|
taxes: Joi.array().items(
|
|
666
656
|
CompanyProfilePlatformModel.CompanyTaxesSerializer1()
|
|
667
657
|
),
|
|
@@ -669,7 +659,7 @@ class CompanyProfilePlatformModel {
|
|
|
669
659
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
670
660
|
business_type: Joi.string().allow(""),
|
|
671
661
|
addresses: Joi.array().items(
|
|
672
|
-
CompanyProfilePlatformModel.
|
|
662
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
|
|
673
663
|
),
|
|
674
664
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
675
665
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -678,10 +668,11 @@ class CompanyProfilePlatformModel {
|
|
|
678
668
|
});
|
|
679
669
|
}
|
|
680
670
|
|
|
681
|
-
/** @returns {
|
|
682
|
-
static
|
|
671
|
+
/** @returns {ProfileSuccessResponse} */
|
|
672
|
+
static ProfileSuccessResponse() {
|
|
683
673
|
return Joi.object({
|
|
684
674
|
uid: Joi.number(),
|
|
675
|
+
data: Joi.array().items(Joi.any()),
|
|
685
676
|
message: Joi.string().allow(""),
|
|
686
677
|
success: Joi.boolean(),
|
|
687
678
|
});
|
|
@@ -695,8 +686,8 @@ class CompanyProfilePlatformModel {
|
|
|
695
686
|
});
|
|
696
687
|
}
|
|
697
688
|
|
|
698
|
-
/** @returns {
|
|
699
|
-
static
|
|
689
|
+
/** @returns {MetricsSerializer} */
|
|
690
|
+
static MetricsSerializer() {
|
|
700
691
|
return Joi.object({
|
|
701
692
|
stage: Joi.string().allow(""),
|
|
702
693
|
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
@@ -708,72 +699,56 @@ class CompanyProfilePlatformModel {
|
|
|
708
699
|
});
|
|
709
700
|
}
|
|
710
701
|
|
|
711
|
-
/** @returns {
|
|
712
|
-
static
|
|
702
|
+
/** @returns {BrandBannerSerializer} */
|
|
703
|
+
static BrandBannerSerializer() {
|
|
713
704
|
return Joi.object({
|
|
714
705
|
portrait: Joi.string().allow("").required(),
|
|
715
706
|
landscape: Joi.string().allow("").required(),
|
|
716
707
|
});
|
|
717
708
|
}
|
|
718
709
|
|
|
719
|
-
/** @returns {
|
|
720
|
-
static
|
|
710
|
+
/** @returns {GetBrandResponseSerializer} */
|
|
711
|
+
static GetBrandResponseSerializer() {
|
|
721
712
|
return Joi.object({
|
|
722
|
-
modified_by: CompanyProfilePlatformModel.
|
|
723
|
-
banner: CompanyProfilePlatformModel.
|
|
713
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
714
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer(),
|
|
724
715
|
name: Joi.string().allow("").required(),
|
|
725
|
-
_custom_json: Joi.
|
|
716
|
+
_custom_json: Joi.any(),
|
|
726
717
|
verified_on: Joi.string().allow(""),
|
|
727
|
-
created_by: CompanyProfilePlatformModel.
|
|
718
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
728
719
|
created_on: Joi.string().allow(""),
|
|
729
|
-
warnings: Joi.
|
|
730
|
-
_locale_language: Joi.
|
|
720
|
+
warnings: Joi.any(),
|
|
721
|
+
_locale_language: Joi.any(),
|
|
731
722
|
mode: Joi.string().allow(""),
|
|
732
723
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
733
724
|
modified_on: Joi.string().allow(""),
|
|
734
725
|
uid: Joi.number(),
|
|
735
726
|
reject_reason: Joi.string().allow(""),
|
|
736
727
|
stage: Joi.string().allow(""),
|
|
737
|
-
verified_by: CompanyProfilePlatformModel.
|
|
728
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
738
729
|
slug_key: Joi.string().allow(""),
|
|
739
730
|
logo: Joi.string().allow(""),
|
|
740
731
|
description: Joi.string().allow(""),
|
|
741
732
|
});
|
|
742
733
|
}
|
|
743
734
|
|
|
744
|
-
/** @returns {
|
|
745
|
-
static
|
|
735
|
+
/** @returns {CreateUpdateBrandRequestSerializer} */
|
|
736
|
+
static CreateUpdateBrandRequestSerializer() {
|
|
746
737
|
return Joi.object({
|
|
747
|
-
_custom_json: Joi.
|
|
748
|
-
_locale_language: Joi.
|
|
738
|
+
_custom_json: Joi.any(),
|
|
739
|
+
_locale_language: Joi.any(),
|
|
749
740
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
750
741
|
company_id: Joi.number(),
|
|
751
742
|
description: Joi.string().allow(""),
|
|
752
743
|
logo: Joi.string().allow("").required(),
|
|
753
744
|
brand_tier: Joi.string().allow(""),
|
|
754
745
|
uid: Joi.number(),
|
|
755
|
-
banner: CompanyProfilePlatformModel.
|
|
746
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
|
|
756
747
|
name: Joi.string().allow("").required(),
|
|
757
748
|
slug_key: Joi.string().allow(""),
|
|
758
749
|
});
|
|
759
750
|
}
|
|
760
751
|
|
|
761
|
-
/** @returns {UpdateBrandRequestSchema} */
|
|
762
|
-
static UpdateBrandRequestSchema() {
|
|
763
|
-
return Joi.object({
|
|
764
|
-
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
765
|
-
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
766
|
-
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
767
|
-
company_id: Joi.number(),
|
|
768
|
-
description: Joi.string().allow(""),
|
|
769
|
-
logo: Joi.string().allow("").required(),
|
|
770
|
-
brand_tier: Joi.string().allow(""),
|
|
771
|
-
uid: Joi.number(),
|
|
772
|
-
banner: CompanyProfilePlatformModel.BrandBannerSchema().required(),
|
|
773
|
-
name: Joi.string().allow("").required(),
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
|
|
777
752
|
/** @returns {CompanySocialAccounts} */
|
|
778
753
|
static CompanySocialAccounts() {
|
|
779
754
|
return Joi.object({
|
|
@@ -792,21 +767,21 @@ class CompanyProfilePlatformModel {
|
|
|
792
767
|
});
|
|
793
768
|
}
|
|
794
769
|
|
|
795
|
-
/** @returns {
|
|
796
|
-
static
|
|
770
|
+
/** @returns {CompanySerializer} */
|
|
771
|
+
static CompanySerializer() {
|
|
797
772
|
return Joi.object({
|
|
798
773
|
stage: Joi.string().allow(""),
|
|
799
|
-
_custom_json: Joi.
|
|
774
|
+
_custom_json: Joi.any(),
|
|
800
775
|
verified_on: Joi.string().allow(""),
|
|
801
|
-
verified_by: CompanyProfilePlatformModel.
|
|
776
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
802
777
|
created_on: Joi.string().allow(""),
|
|
803
|
-
created_by: CompanyProfilePlatformModel.
|
|
778
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
804
779
|
company_type: Joi.string().allow("").required(),
|
|
805
780
|
modified_on: Joi.string().allow(""),
|
|
806
781
|
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
807
|
-
business_type: Joi.string().allow("")
|
|
782
|
+
business_type: Joi.string().allow(""),
|
|
808
783
|
addresses: Joi.array().items(
|
|
809
|
-
CompanyProfilePlatformModel.
|
|
784
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
810
785
|
),
|
|
811
786
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
812
787
|
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
@@ -814,25 +789,25 @@ class CompanyProfilePlatformModel {
|
|
|
814
789
|
uid: Joi.number(),
|
|
815
790
|
reject_reason: Joi.string().allow(""),
|
|
816
791
|
name: Joi.string().allow(""),
|
|
817
|
-
modified_by: CompanyProfilePlatformModel.
|
|
792
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
818
793
|
});
|
|
819
794
|
}
|
|
820
795
|
|
|
821
|
-
/** @returns {
|
|
822
|
-
static
|
|
796
|
+
/** @returns {CompanyBrandSerializer} */
|
|
797
|
+
static CompanyBrandSerializer() {
|
|
823
798
|
return Joi.object({
|
|
824
799
|
stage: Joi.string().allow(""),
|
|
825
800
|
verified_on: Joi.string().allow(""),
|
|
826
|
-
verified_by: CompanyProfilePlatformModel.
|
|
801
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
827
802
|
created_on: Joi.string().allow(""),
|
|
828
|
-
created_by: CompanyProfilePlatformModel.
|
|
829
|
-
company: CompanyProfilePlatformModel.
|
|
830
|
-
warnings: Joi.
|
|
803
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
804
|
+
company: CompanyProfilePlatformModel.CompanySerializer(),
|
|
805
|
+
warnings: Joi.any(),
|
|
831
806
|
modified_on: Joi.string().allow(""),
|
|
832
807
|
uid: Joi.number(),
|
|
833
808
|
reject_reason: Joi.string().allow(""),
|
|
834
|
-
brand: CompanyProfilePlatformModel.
|
|
835
|
-
modified_by: CompanyProfilePlatformModel.
|
|
809
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
|
|
810
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
836
811
|
});
|
|
837
812
|
}
|
|
838
813
|
|
|
@@ -846,21 +821,22 @@ class CompanyProfilePlatformModel {
|
|
|
846
821
|
current: Joi.number(),
|
|
847
822
|
type: Joi.string().allow("").required(),
|
|
848
823
|
size: Joi.number(),
|
|
824
|
+
total: Joi.number(),
|
|
849
825
|
});
|
|
850
826
|
}
|
|
851
827
|
|
|
852
|
-
/** @returns {
|
|
853
|
-
static
|
|
828
|
+
/** @returns {CompanyBrandListSerializer} */
|
|
829
|
+
static CompanyBrandListSerializer() {
|
|
854
830
|
return Joi.object({
|
|
855
831
|
items: Joi.array().items(
|
|
856
|
-
CompanyProfilePlatformModel.
|
|
832
|
+
CompanyProfilePlatformModel.CompanyBrandSerializer()
|
|
857
833
|
),
|
|
858
834
|
page: CompanyProfilePlatformModel.Page(),
|
|
859
835
|
});
|
|
860
836
|
}
|
|
861
837
|
|
|
862
|
-
/** @returns {
|
|
863
|
-
static
|
|
838
|
+
/** @returns {CompanyBrandPostRequestSerializer} */
|
|
839
|
+
static CompanyBrandPostRequestSerializer() {
|
|
864
840
|
return Joi.object({
|
|
865
841
|
uid: Joi.number(),
|
|
866
842
|
brands: Joi.array().items(Joi.number()).required(),
|
|
@@ -868,8 +844,8 @@ class CompanyProfilePlatformModel {
|
|
|
868
844
|
});
|
|
869
845
|
}
|
|
870
846
|
|
|
871
|
-
/** @returns {
|
|
872
|
-
static
|
|
847
|
+
/** @returns {InvoiceCredSerializer} */
|
|
848
|
+
static InvoiceCredSerializer() {
|
|
873
849
|
return Joi.object({
|
|
874
850
|
username: Joi.string().allow(""),
|
|
875
851
|
enabled: Joi.boolean(),
|
|
@@ -877,37 +853,37 @@ class CompanyProfilePlatformModel {
|
|
|
877
853
|
});
|
|
878
854
|
}
|
|
879
855
|
|
|
880
|
-
/** @returns {
|
|
881
|
-
static
|
|
856
|
+
/** @returns {InvoiceDetailsSerializer} */
|
|
857
|
+
static InvoiceDetailsSerializer() {
|
|
882
858
|
return Joi.object({
|
|
883
|
-
e_invoice: CompanyProfilePlatformModel.
|
|
884
|
-
e_waybill: CompanyProfilePlatformModel.
|
|
859
|
+
e_invoice: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
860
|
+
e_waybill: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
885
861
|
});
|
|
886
862
|
}
|
|
887
863
|
|
|
888
|
-
/** @returns {
|
|
889
|
-
static
|
|
864
|
+
/** @returns {GetCompanySerializer} */
|
|
865
|
+
static GetCompanySerializer() {
|
|
890
866
|
return Joi.object({
|
|
891
867
|
stage: Joi.string().allow(""),
|
|
892
868
|
verified_on: Joi.string().allow(""),
|
|
893
|
-
verified_by: CompanyProfilePlatformModel.
|
|
869
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
894
870
|
created_on: Joi.string().allow(""),
|
|
895
|
-
created_by: CompanyProfilePlatformModel.
|
|
871
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
896
872
|
company_type: Joi.string().allow(""),
|
|
897
873
|
modified_on: Joi.string().allow(""),
|
|
898
874
|
business_type: Joi.string().allow(""),
|
|
899
875
|
addresses: Joi.array().items(
|
|
900
|
-
CompanyProfilePlatformModel.
|
|
876
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
901
877
|
),
|
|
902
878
|
uid: Joi.number(),
|
|
903
879
|
reject_reason: Joi.string().allow(""),
|
|
904
880
|
name: Joi.string().allow(""),
|
|
905
|
-
modified_by: CompanyProfilePlatformModel.
|
|
881
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
906
882
|
});
|
|
907
883
|
}
|
|
908
884
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
885
|
+
/** @returns {LocationManagerSerializer} */
|
|
886
|
+
static LocationManagerSerializer() {
|
|
911
887
|
return Joi.object({
|
|
912
888
|
email: Joi.string().allow(""),
|
|
913
889
|
mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
|
|
@@ -915,89 +891,89 @@ class CompanyProfilePlatformModel {
|
|
|
915
891
|
});
|
|
916
892
|
}
|
|
917
893
|
|
|
918
|
-
/** @returns {
|
|
919
|
-
static
|
|
894
|
+
/** @returns {LocationTimingSerializer} */
|
|
895
|
+
static LocationTimingSerializer() {
|
|
920
896
|
return Joi.object({
|
|
921
897
|
hour: Joi.number().required(),
|
|
922
898
|
minute: Joi.number().required(),
|
|
923
899
|
});
|
|
924
900
|
}
|
|
925
901
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
902
|
+
/** @returns {LocationDayWiseSerializer} */
|
|
903
|
+
static LocationDayWiseSerializer() {
|
|
928
904
|
return Joi.object({
|
|
929
905
|
open: Joi.boolean().required(),
|
|
930
906
|
weekday: Joi.string().allow("").required(),
|
|
931
|
-
opening: CompanyProfilePlatformModel.
|
|
932
|
-
closing: CompanyProfilePlatformModel.
|
|
907
|
+
opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
908
|
+
closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
933
909
|
});
|
|
934
910
|
}
|
|
935
911
|
|
|
936
|
-
/** @returns {
|
|
937
|
-
static
|
|
912
|
+
/** @returns {HolidayDateSerializer} */
|
|
913
|
+
static HolidayDateSerializer() {
|
|
938
914
|
return Joi.object({
|
|
939
915
|
end_date: Joi.string().allow("").required(),
|
|
940
916
|
start_date: Joi.string().allow("").required(),
|
|
941
917
|
});
|
|
942
918
|
}
|
|
943
919
|
|
|
944
|
-
/** @returns {
|
|
945
|
-
static
|
|
920
|
+
/** @returns {HolidaySchemaSerializer} */
|
|
921
|
+
static HolidaySchemaSerializer() {
|
|
946
922
|
return Joi.object({
|
|
947
|
-
date: CompanyProfilePlatformModel.
|
|
923
|
+
date: CompanyProfilePlatformModel.HolidayDateSerializer().required(),
|
|
948
924
|
title: Joi.string().allow("").required(),
|
|
949
925
|
holiday_type: Joi.string().allow("").required(),
|
|
950
926
|
});
|
|
951
927
|
}
|
|
952
928
|
|
|
953
|
-
/** @returns {
|
|
954
|
-
static
|
|
929
|
+
/** @returns {ProductReturnConfigSerializer} */
|
|
930
|
+
static ProductReturnConfigSerializer() {
|
|
955
931
|
return Joi.object({
|
|
956
932
|
on_same_store: Joi.boolean(),
|
|
957
933
|
store_uid: Joi.number(),
|
|
958
934
|
});
|
|
959
935
|
}
|
|
960
936
|
|
|
961
|
-
/** @returns {
|
|
962
|
-
static
|
|
937
|
+
/** @returns {GetLocationSerializer} */
|
|
938
|
+
static GetLocationSerializer() {
|
|
963
939
|
return Joi.object({
|
|
964
940
|
code: Joi.string().allow("").required(),
|
|
965
941
|
phone_number: Joi.string().allow(""),
|
|
966
942
|
contact_numbers: Joi.array().items(
|
|
967
943
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
968
944
|
),
|
|
969
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
945
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
970
946
|
name: Joi.string().allow("").required(),
|
|
971
|
-
_custom_json: Joi.
|
|
947
|
+
_custom_json: Joi.any(),
|
|
972
948
|
verified_on: Joi.string().allow(""),
|
|
973
|
-
created_by: CompanyProfilePlatformModel.
|
|
949
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
974
950
|
created_on: Joi.string().allow(""),
|
|
975
|
-
company: CompanyProfilePlatformModel.
|
|
976
|
-
address: CompanyProfilePlatformModel.
|
|
977
|
-
warnings: Joi.
|
|
951
|
+
company: CompanyProfilePlatformModel.GetCompanySerializer(),
|
|
952
|
+
address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
|
|
953
|
+
warnings: Joi.any(),
|
|
978
954
|
store_type: Joi.string().allow(""),
|
|
979
|
-
manager: CompanyProfilePlatformModel.
|
|
955
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
980
956
|
auto_invoice: Joi.boolean(),
|
|
981
957
|
modified_on: Joi.string().allow(""),
|
|
982
958
|
uid: Joi.number(),
|
|
983
959
|
timing: Joi.array().items(
|
|
984
|
-
CompanyProfilePlatformModel.
|
|
960
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
985
961
|
),
|
|
986
962
|
stage: Joi.string().allow(""),
|
|
987
963
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
988
964
|
credit_note: Joi.boolean(),
|
|
989
965
|
holiday: Joi.array().items(
|
|
990
|
-
CompanyProfilePlatformModel.
|
|
966
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
991
967
|
),
|
|
992
968
|
display_name: Joi.string().allow("").required(),
|
|
993
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
994
|
-
verified_by: CompanyProfilePlatformModel.
|
|
969
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
970
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
995
971
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
996
|
-
modified_by: CompanyProfilePlatformModel.
|
|
972
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
997
973
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
998
974
|
default_order_acceptance_timing: Joi.boolean(),
|
|
999
975
|
order_acceptance_timing: Joi.array().items(
|
|
1000
|
-
CompanyProfilePlatformModel.
|
|
976
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1001
977
|
),
|
|
1002
978
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1003
979
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1005,20 +981,22 @@ class CompanyProfilePlatformModel {
|
|
|
1005
981
|
});
|
|
1006
982
|
}
|
|
1007
983
|
|
|
1008
|
-
/** @returns {
|
|
1009
|
-
static
|
|
984
|
+
/** @returns {LocationListSerializer} */
|
|
985
|
+
static LocationListSerializer() {
|
|
1010
986
|
return Joi.object({
|
|
1011
|
-
items: Joi.array().items(
|
|
987
|
+
items: Joi.array().items(
|
|
988
|
+
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
989
|
+
),
|
|
1012
990
|
page: CompanyProfilePlatformModel.Page(),
|
|
1013
991
|
});
|
|
1014
992
|
}
|
|
1015
993
|
|
|
1016
|
-
/** @returns {
|
|
1017
|
-
static
|
|
994
|
+
/** @returns {AddressSerializer} */
|
|
995
|
+
static AddressSerializer() {
|
|
1018
996
|
return Joi.object({
|
|
1019
997
|
landmark: Joi.string().allow(""),
|
|
1020
998
|
country_code: Joi.string().allow("").required(),
|
|
1021
|
-
pincode: Joi.
|
|
999
|
+
pincode: Joi.string().allow(""),
|
|
1022
1000
|
address_type: Joi.string().allow(""),
|
|
1023
1001
|
longitude: Joi.number().required(),
|
|
1024
1002
|
country: Joi.string().allow(""),
|
|
@@ -1032,25 +1010,25 @@ class CompanyProfilePlatformModel {
|
|
|
1032
1010
|
});
|
|
1033
1011
|
}
|
|
1034
1012
|
|
|
1035
|
-
/** @returns {
|
|
1036
|
-
static
|
|
1013
|
+
/** @returns {LocationSerializer} */
|
|
1014
|
+
static LocationSerializer() {
|
|
1037
1015
|
return Joi.object({
|
|
1038
1016
|
code: Joi.string().allow("").required(),
|
|
1039
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
1017
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
1040
1018
|
contact_numbers: Joi.array().items(
|
|
1041
1019
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
1042
1020
|
),
|
|
1043
1021
|
name: Joi.string().allow("").required(),
|
|
1044
|
-
_custom_json: Joi.
|
|
1045
|
-
warnings: Joi.
|
|
1046
|
-
address: CompanyProfilePlatformModel.
|
|
1022
|
+
_custom_json: Joi.any(),
|
|
1023
|
+
warnings: Joi.any(),
|
|
1024
|
+
address: CompanyProfilePlatformModel.AddressSerializer().required(),
|
|
1047
1025
|
company: Joi.number().required(),
|
|
1048
1026
|
store_type: Joi.string().allow(""),
|
|
1049
|
-
manager: CompanyProfilePlatformModel.
|
|
1027
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
1050
1028
|
auto_invoice: Joi.boolean(),
|
|
1051
1029
|
uid: Joi.number(),
|
|
1052
1030
|
timing: Joi.array().items(
|
|
1053
|
-
CompanyProfilePlatformModel.
|
|
1031
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1054
1032
|
),
|
|
1055
1033
|
stage: Joi.string().allow(""),
|
|
1056
1034
|
documents: Joi.array()
|
|
@@ -1058,15 +1036,15 @@ class CompanyProfilePlatformModel {
|
|
|
1058
1036
|
.required(),
|
|
1059
1037
|
credit_note: Joi.boolean(),
|
|
1060
1038
|
holiday: Joi.array().items(
|
|
1061
|
-
CompanyProfilePlatformModel.
|
|
1039
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
1062
1040
|
),
|
|
1063
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
1041
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
1064
1042
|
display_name: Joi.string().allow("").required(),
|
|
1065
1043
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1066
1044
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1067
1045
|
default_order_acceptance_timing: Joi.boolean(),
|
|
1068
1046
|
order_acceptance_timing: Joi.array().items(
|
|
1069
|
-
CompanyProfilePlatformModel.
|
|
1047
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1070
1048
|
),
|
|
1071
1049
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1072
1050
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1074,10 +1052,10 @@ class CompanyProfilePlatformModel {
|
|
|
1074
1052
|
});
|
|
1075
1053
|
}
|
|
1076
1054
|
|
|
1077
|
-
/** @returns {
|
|
1078
|
-
static
|
|
1055
|
+
/** @returns {BulkLocationSerializer} */
|
|
1056
|
+
static BulkLocationSerializer() {
|
|
1079
1057
|
return Joi.object({
|
|
1080
|
-
data: Joi.array().items(CompanyProfilePlatformModel.
|
|
1058
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
|
|
1081
1059
|
});
|
|
1082
1060
|
}
|
|
1083
1061
|
|