@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
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 +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,178 +1,151 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string} [
|
|
6
|
-
* @property {
|
|
7
|
-
* @property {
|
|
8
|
-
* @property {string} [city]
|
|
9
|
-
* @property {string} [country]
|
|
10
|
-
* @property {string} country_code
|
|
11
|
-
* @property {string} [landmark]
|
|
12
|
-
* @property {number} latitude
|
|
13
|
-
* @property {number} longitude
|
|
14
|
-
* @property {number} [pincode]
|
|
15
|
-
* @property {string} [sector]
|
|
16
|
-
* @property {string} [state]
|
|
17
|
-
* @property {string} [state_code]
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @typedef AverageOrderProcessingTime
|
|
22
|
-
* @property {number} [duration]
|
|
23
|
-
* @property {string} [duration_type]
|
|
4
|
+
* @typedef CompanyTaxesSerializer
|
|
5
|
+
* @property {string} [effective_date]
|
|
6
|
+
* @property {number} [rate]
|
|
7
|
+
* @property {boolean} [enable]
|
|
24
8
|
*/
|
|
25
9
|
|
|
26
10
|
/**
|
|
27
|
-
* @typedef
|
|
28
|
-
* @property {string}
|
|
29
|
-
* @property {string}
|
|
11
|
+
* @typedef UserSerializer
|
|
12
|
+
* @property {string} [user_id]
|
|
13
|
+
* @property {string} [contact]
|
|
14
|
+
* @property {string} [username]
|
|
30
15
|
*/
|
|
31
16
|
|
|
32
17
|
/**
|
|
33
|
-
* @typedef
|
|
34
|
-
* @property {
|
|
18
|
+
* @typedef Website
|
|
19
|
+
* @property {string} [url]
|
|
35
20
|
*/
|
|
36
21
|
|
|
37
22
|
/**
|
|
38
|
-
* @typedef
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {string} country_code
|
|
41
|
-
* @property {CountryCurrencyInfo} currency
|
|
42
|
-
* @property {string} timezone
|
|
23
|
+
* @typedef BusinessDetails
|
|
24
|
+
* @property {Website} [website]
|
|
43
25
|
*/
|
|
44
26
|
|
|
45
27
|
/**
|
|
46
|
-
* @typedef
|
|
47
|
-
* @property {
|
|
28
|
+
* @typedef SellerPhoneNumber
|
|
29
|
+
* @property {number} country_code
|
|
30
|
+
* @property {string} number
|
|
48
31
|
*/
|
|
49
32
|
|
|
50
33
|
/**
|
|
51
|
-
* @typedef
|
|
52
|
-
* @property {
|
|
53
|
-
* @property {
|
|
34
|
+
* @typedef ContactDetails
|
|
35
|
+
* @property {string[]} [emails]
|
|
36
|
+
* @property {SellerPhoneNumber[]} [phone]
|
|
54
37
|
*/
|
|
55
38
|
|
|
56
39
|
/**
|
|
57
|
-
* @typedef
|
|
58
|
-
* @property {
|
|
59
|
-
* @property {
|
|
60
|
-
* @property {number} [uid]
|
|
40
|
+
* @typedef BusinessCountryInfo
|
|
41
|
+
* @property {string} [country_code]
|
|
42
|
+
* @property {string} [country]
|
|
61
43
|
*/
|
|
62
44
|
|
|
63
45
|
/**
|
|
64
|
-
* @typedef
|
|
65
|
-
* @property {
|
|
66
|
-
* @property {
|
|
67
|
-
* @property {
|
|
68
|
-
* @property {string}
|
|
69
|
-
* @property {
|
|
70
|
-
* @property {string} [modified_on]
|
|
71
|
-
* @property {string} [reject_reason]
|
|
72
|
-
* @property {string} [stage]
|
|
73
|
-
* @property {number} [uid]
|
|
74
|
-
* @property {UserSerializer} [verified_by]
|
|
75
|
-
* @property {string} [verified_on]
|
|
76
|
-
* @property {Object} [warnings]
|
|
46
|
+
* @typedef Document
|
|
47
|
+
* @property {string} value
|
|
48
|
+
* @property {string} [legal_name]
|
|
49
|
+
* @property {boolean} [verified]
|
|
50
|
+
* @property {string} type
|
|
51
|
+
* @property {string} [url]
|
|
77
52
|
*/
|
|
78
53
|
|
|
79
54
|
/**
|
|
80
|
-
* @typedef
|
|
81
|
-
* @property {
|
|
82
|
-
* @property {string} [
|
|
55
|
+
* @typedef GetAddressSerializer
|
|
56
|
+
* @property {string} [landmark]
|
|
57
|
+
* @property {string} [country_code]
|
|
58
|
+
* @property {number} [pincode]
|
|
59
|
+
* @property {string} [address_type]
|
|
60
|
+
* @property {number} longitude
|
|
61
|
+
* @property {string} [country]
|
|
62
|
+
* @property {string} [address2]
|
|
63
|
+
* @property {string} [state]
|
|
64
|
+
* @property {string} [address1]
|
|
65
|
+
* @property {string} [city]
|
|
66
|
+
* @property {number} latitude
|
|
83
67
|
*/
|
|
84
68
|
|
|
85
69
|
/**
|
|
86
|
-
* @typedef
|
|
70
|
+
* @typedef GetCompanyProfileSerializerResponse
|
|
71
|
+
* @property {string} [business_info]
|
|
72
|
+
* @property {CompanyTaxesSerializer[]} [taxes]
|
|
73
|
+
* @property {string} [business_type]
|
|
74
|
+
* @property {string} [name]
|
|
87
75
|
* @property {Object} [_custom_json]
|
|
88
|
-
* @property {
|
|
89
|
-
* @property {BusinessCountryInfo} [business_country_info]
|
|
90
|
-
* @property {string} business_type
|
|
91
|
-
* @property {string} company_type
|
|
76
|
+
* @property {string} [verified_on]
|
|
92
77
|
* @property {UserSerializer} [created_by]
|
|
93
78
|
* @property {string} [created_on]
|
|
94
|
-
* @property {
|
|
95
|
-
* @property {
|
|
96
|
-
* @property {
|
|
79
|
+
* @property {Object} [warnings]
|
|
80
|
+
* @property {BusinessDetails} [business_details]
|
|
81
|
+
* @property {string} [mode]
|
|
82
|
+
* @property {ContactDetails} [contact_details]
|
|
83
|
+
* @property {BusinessCountryInfo} [business_country_info]
|
|
97
84
|
* @property {string} [modified_on]
|
|
98
|
-
* @property {
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {string} [reject_reason]
|
|
85
|
+
* @property {number} uid
|
|
86
|
+
* @property {boolean} [franchise_enabled]
|
|
101
87
|
* @property {string} [stage]
|
|
102
|
-
* @property {
|
|
88
|
+
* @property {string} company_type
|
|
89
|
+
* @property {Document[]} [documents]
|
|
90
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
103
91
|
* @property {UserSerializer} [verified_by]
|
|
104
|
-
* @property {string} [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @typedef CompanySocialAccounts
|
|
109
|
-
* @property {string} name
|
|
110
|
-
* @property {string} url
|
|
92
|
+
* @property {string[]} [notification_emails]
|
|
93
|
+
* @property {UserSerializer} [modified_by]
|
|
111
94
|
*/
|
|
112
95
|
|
|
113
96
|
/**
|
|
114
|
-
* @typedef
|
|
115
|
-
* @property {string} [
|
|
116
|
-
* @property {
|
|
117
|
-
* @property {number} [
|
|
97
|
+
* @typedef ErrorResponse
|
|
98
|
+
* @property {string} [message]
|
|
99
|
+
* @property {string} [code]
|
|
100
|
+
* @property {number} [status]
|
|
101
|
+
* @property {Object} [meta]
|
|
118
102
|
*/
|
|
119
103
|
|
|
120
104
|
/**
|
|
121
105
|
* @typedef CompanyTaxesSerializer1
|
|
122
106
|
* @property {string} [effective_date]
|
|
123
|
-
* @property {boolean} [enable]
|
|
124
107
|
* @property {number} [rate]
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @typedef ContactDetails
|
|
129
|
-
* @property {string[]} [emails]
|
|
130
|
-
* @property {SellerPhoneNumber[]} [phone]
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @typedef CountryCurrencyInfo
|
|
135
|
-
* @property {string} code
|
|
136
|
-
* @property {string} name
|
|
137
|
-
* @property {string} symbol
|
|
108
|
+
* @property {boolean} [enable]
|
|
138
109
|
*/
|
|
139
110
|
|
|
140
111
|
/**
|
|
141
112
|
* @typedef CreateUpdateAddressSerializer
|
|
113
|
+
* @property {string} [landmark]
|
|
114
|
+
* @property {string} [country_code]
|
|
115
|
+
* @property {number} pincode
|
|
142
116
|
* @property {string} address_type
|
|
143
|
-
* @property {
|
|
117
|
+
* @property {number} longitude
|
|
118
|
+
* @property {string} country
|
|
144
119
|
* @property {string} [address2]
|
|
120
|
+
* @property {string} state
|
|
121
|
+
* @property {string} address1
|
|
145
122
|
* @property {string} city
|
|
146
|
-
* @property {string} country
|
|
147
|
-
* @property {string} [country_code]
|
|
148
|
-
* @property {string} [landmark]
|
|
149
123
|
* @property {number} latitude
|
|
150
|
-
* @property {number} longitude
|
|
151
|
-
* @property {number} pincode
|
|
152
|
-
* @property {string} state
|
|
153
124
|
*/
|
|
154
125
|
|
|
155
126
|
/**
|
|
156
|
-
* @typedef
|
|
127
|
+
* @typedef UpdateCompany
|
|
128
|
+
* @property {boolean} [franchise_enabled]
|
|
129
|
+
* @property {string} [business_info]
|
|
130
|
+
* @property {Object} [warnings]
|
|
131
|
+
* @property {string} [company_type]
|
|
157
132
|
* @property {Object} [_custom_json]
|
|
158
|
-
* @property {
|
|
159
|
-
* @property {
|
|
160
|
-
* @property {
|
|
161
|
-
* @property {
|
|
162
|
-
* @property {
|
|
163
|
-
* @property {string}
|
|
164
|
-
* @property {
|
|
165
|
-
* @property {string
|
|
166
|
-
* @property {
|
|
133
|
+
* @property {CompanyTaxesSerializer1[]} [taxes]
|
|
134
|
+
* @property {BusinessDetails} [business_details]
|
|
135
|
+
* @property {Document[]} [documents]
|
|
136
|
+
* @property {string} [business_type]
|
|
137
|
+
* @property {CreateUpdateAddressSerializer[]} [addresses]
|
|
138
|
+
* @property {string[]} [notification_emails]
|
|
139
|
+
* @property {ContactDetails} [contact_details]
|
|
140
|
+
* @property {string} [reject_reason]
|
|
141
|
+
* @property {string} [name]
|
|
167
142
|
*/
|
|
168
143
|
|
|
169
144
|
/**
|
|
170
|
-
* @typedef
|
|
171
|
-
* @property {
|
|
172
|
-
* @property {string}
|
|
173
|
-
* @property {
|
|
174
|
-
* @property {string} value
|
|
175
|
-
* @property {boolean} [verified]
|
|
145
|
+
* @typedef ProfileSuccessResponse
|
|
146
|
+
* @property {number} [uid]
|
|
147
|
+
* @property {string} [message]
|
|
148
|
+
* @property {boolean} [success]
|
|
176
149
|
*/
|
|
177
150
|
|
|
178
151
|
/**
|
|
@@ -182,152 +155,138 @@ const Joi = require("joi");
|
|
|
182
155
|
*/
|
|
183
156
|
|
|
184
157
|
/**
|
|
185
|
-
* @typedef
|
|
186
|
-
* @property {string} [
|
|
187
|
-
* @property {
|
|
188
|
-
* @property {
|
|
189
|
-
* @property {
|
|
158
|
+
* @typedef MetricsSerializer
|
|
159
|
+
* @property {string} [stage]
|
|
160
|
+
* @property {DocumentsObj} [store]
|
|
161
|
+
* @property {DocumentsObj} [company_documents]
|
|
162
|
+
* @property {DocumentsObj} [store_documents]
|
|
163
|
+
* @property {DocumentsObj} [product]
|
|
164
|
+
* @property {number} [uid]
|
|
165
|
+
* @property {DocumentsObj} [brand]
|
|
190
166
|
*/
|
|
191
167
|
|
|
192
168
|
/**
|
|
193
|
-
* @typedef
|
|
194
|
-
* @property {string}
|
|
195
|
-
* @property {string}
|
|
196
|
-
* @property {string} [address2]
|
|
197
|
-
* @property {string} [city]
|
|
198
|
-
* @property {string} [country]
|
|
199
|
-
* @property {string} [country_code]
|
|
200
|
-
* @property {string} [landmark]
|
|
201
|
-
* @property {number} latitude
|
|
202
|
-
* @property {number} longitude
|
|
203
|
-
* @property {number} [pincode]
|
|
204
|
-
* @property {string} [sector]
|
|
205
|
-
* @property {string} [state]
|
|
206
|
-
* @property {string} [state_code]
|
|
169
|
+
* @typedef BrandBannerSerializer
|
|
170
|
+
* @property {string} portrait
|
|
171
|
+
* @property {string} landscape
|
|
207
172
|
*/
|
|
208
173
|
|
|
209
174
|
/**
|
|
210
175
|
* @typedef GetBrandResponseSerializer
|
|
211
|
-
* @property {
|
|
212
|
-
* @property {Object} [_locale_language]
|
|
176
|
+
* @property {UserSerializer} [modified_by]
|
|
213
177
|
* @property {BrandBannerSerializer} [banner]
|
|
178
|
+
* @property {string} name
|
|
179
|
+
* @property {Object} [_custom_json]
|
|
180
|
+
* @property {string} [verified_on]
|
|
214
181
|
* @property {UserSerializer} [created_by]
|
|
215
182
|
* @property {string} [created_on]
|
|
216
|
-
* @property {
|
|
217
|
-
* @property {
|
|
183
|
+
* @property {Object} [warnings]
|
|
184
|
+
* @property {Object} [_locale_language]
|
|
218
185
|
* @property {string} [mode]
|
|
219
|
-
* @property {
|
|
186
|
+
* @property {string[]} [synonyms]
|
|
220
187
|
* @property {string} [modified_on]
|
|
221
|
-
* @property {
|
|
188
|
+
* @property {number} [uid]
|
|
222
189
|
* @property {string} [reject_reason]
|
|
223
|
-
* @property {string} [slug_key]
|
|
224
190
|
* @property {string} [stage]
|
|
225
|
-
* @property {string[]} [synonyms]
|
|
226
|
-
* @property {number} [uid]
|
|
227
191
|
* @property {UserSerializer} [verified_by]
|
|
228
|
-
* @property {string} [
|
|
229
|
-
* @property {
|
|
192
|
+
* @property {string} [slug_key]
|
|
193
|
+
* @property {string} [logo]
|
|
194
|
+
* @property {string} [description]
|
|
230
195
|
*/
|
|
231
196
|
|
|
232
197
|
/**
|
|
233
|
-
* @typedef
|
|
198
|
+
* @typedef CreateUpdateBrandRequestSerializer
|
|
234
199
|
* @property {Object} [_custom_json]
|
|
235
|
-
* @property {
|
|
236
|
-
* @property {
|
|
237
|
-
* @property {
|
|
238
|
-
* @property {string} [
|
|
239
|
-
* @property {string}
|
|
240
|
-
* @property {string}
|
|
241
|
-
* @property {
|
|
242
|
-
* @property {
|
|
243
|
-
* @property {string}
|
|
244
|
-
* @property {Document[]} [documents]
|
|
245
|
-
* @property {boolean} [franchise_enabled]
|
|
246
|
-
* @property {string} [mode]
|
|
247
|
-
* @property {UserSerializer} [modified_by]
|
|
248
|
-
* @property {string} [modified_on]
|
|
249
|
-
* @property {string} [name]
|
|
250
|
-
* @property {string[]} [notification_emails]
|
|
251
|
-
* @property {string} [stage]
|
|
252
|
-
* @property {CompanyTaxesSerializer[]} [taxes]
|
|
253
|
-
* @property {number} uid
|
|
254
|
-
* @property {UserSerializer} [verified_by]
|
|
255
|
-
* @property {string} [verified_on]
|
|
256
|
-
* @property {Object} [warnings]
|
|
200
|
+
* @property {Object} [_locale_language]
|
|
201
|
+
* @property {string[]} [synonyms]
|
|
202
|
+
* @property {number} [company_id]
|
|
203
|
+
* @property {string} [description]
|
|
204
|
+
* @property {string} logo
|
|
205
|
+
* @property {string} [brand_tier]
|
|
206
|
+
* @property {number} [uid]
|
|
207
|
+
* @property {BrandBannerSerializer} banner
|
|
208
|
+
* @property {string} name
|
|
257
209
|
*/
|
|
258
210
|
|
|
259
211
|
/**
|
|
260
|
-
* @typedef
|
|
261
|
-
* @property {
|
|
262
|
-
* @property {string}
|
|
263
|
-
* @property {string} [company_type]
|
|
264
|
-
* @property {UserSerializer} [created_by]
|
|
265
|
-
* @property {string} [created_on]
|
|
266
|
-
* @property {UserSerializer} [modified_by]
|
|
267
|
-
* @property {string} [modified_on]
|
|
268
|
-
* @property {string} [name]
|
|
269
|
-
* @property {string} [reject_reason]
|
|
270
|
-
* @property {string} [stage]
|
|
271
|
-
* @property {number} [uid]
|
|
272
|
-
* @property {UserSerializer} [verified_by]
|
|
273
|
-
* @property {string} [verified_on]
|
|
212
|
+
* @typedef CompanySocialAccounts
|
|
213
|
+
* @property {string} name
|
|
214
|
+
* @property {string} url
|
|
274
215
|
*/
|
|
275
216
|
|
|
276
217
|
/**
|
|
277
|
-
* @typedef
|
|
218
|
+
* @typedef CompanyDetails
|
|
219
|
+
* @property {CompanySocialAccounts[]} [socials]
|
|
220
|
+
* @property {string} [website_url]
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @typedef CompanySerializer
|
|
225
|
+
* @property {string} [stage]
|
|
278
226
|
* @property {Object} [_custom_json]
|
|
279
|
-
* @property {
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {boolean} [auto_invoice]
|
|
282
|
-
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
283
|
-
* @property {boolean} [bulk_shipment]
|
|
284
|
-
* @property {string} code
|
|
285
|
-
* @property {GetCompanySerializer} [company]
|
|
286
|
-
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
287
|
-
* @property {UserSerializer} [created_by]
|
|
227
|
+
* @property {string} [verified_on]
|
|
228
|
+
* @property {UserSerializer} [verified_by]
|
|
288
229
|
* @property {string} [created_on]
|
|
289
|
-
* @property {
|
|
290
|
-
* @property {
|
|
291
|
-
* @property {string} display_name
|
|
292
|
-
* @property {Document[]} [documents]
|
|
293
|
-
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
294
|
-
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
295
|
-
* @property {LocationManagerSerializer} [manager]
|
|
296
|
-
* @property {UserSerializer} [modified_by]
|
|
230
|
+
* @property {UserSerializer} [created_by]
|
|
231
|
+
* @property {string} company_type
|
|
297
232
|
* @property {string} [modified_on]
|
|
298
|
-
* @property {string}
|
|
233
|
+
* @property {string[]} [market_channels]
|
|
234
|
+
* @property {string} business_type
|
|
235
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
299
236
|
* @property {string[]} [notification_emails]
|
|
300
|
-
* @property {
|
|
301
|
-
* @property {
|
|
302
|
-
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
303
|
-
* @property {string} [stage]
|
|
304
|
-
* @property {string} [store_type]
|
|
305
|
-
* @property {string[]} [tags]
|
|
306
|
-
* @property {LocationDayWiseSerializer[]} [timing]
|
|
237
|
+
* @property {CompanyDetails} [details]
|
|
238
|
+
* @property {BusinessCountryInfo} [business_country_info]
|
|
307
239
|
* @property {number} [uid]
|
|
308
|
-
* @property {
|
|
240
|
+
* @property {string} [reject_reason]
|
|
241
|
+
* @property {string} [name]
|
|
242
|
+
* @property {UserSerializer} [modified_by]
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @typedef CompanyBrandSerializer
|
|
247
|
+
* @property {string} [stage]
|
|
309
248
|
* @property {string} [verified_on]
|
|
249
|
+
* @property {UserSerializer} [verified_by]
|
|
250
|
+
* @property {string} [created_on]
|
|
251
|
+
* @property {UserSerializer} [created_by]
|
|
252
|
+
* @property {CompanySerializer} [company]
|
|
310
253
|
* @property {Object} [warnings]
|
|
254
|
+
* @property {string} [modified_on]
|
|
255
|
+
* @property {number} [uid]
|
|
256
|
+
* @property {string} [reject_reason]
|
|
257
|
+
* @property {GetBrandResponseSerializer} [brand]
|
|
258
|
+
* @property {UserSerializer} [modified_by]
|
|
311
259
|
*/
|
|
312
260
|
|
|
313
261
|
/**
|
|
314
|
-
* @typedef
|
|
315
|
-
* @property {
|
|
316
|
-
* @property {string}
|
|
262
|
+
* @typedef Page
|
|
263
|
+
* @property {number} [item_total]
|
|
264
|
+
* @property {string} [next_id]
|
|
265
|
+
* @property {boolean} [has_previous]
|
|
266
|
+
* @property {boolean} [has_next]
|
|
267
|
+
* @property {number} [current]
|
|
268
|
+
* @property {string} type
|
|
269
|
+
* @property {number} [size]
|
|
317
270
|
*/
|
|
318
271
|
|
|
319
272
|
/**
|
|
320
|
-
* @typedef
|
|
321
|
-
* @property {
|
|
322
|
-
* @property {
|
|
323
|
-
|
|
273
|
+
* @typedef CompanyBrandListSerializer
|
|
274
|
+
* @property {CompanyBrandSerializer[]} [items]
|
|
275
|
+
* @property {Page} [page]
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @typedef CompanyBrandPostRequestSerializer
|
|
280
|
+
* @property {number} [uid]
|
|
281
|
+
* @property {number[]} brands
|
|
282
|
+
* @property {number} company
|
|
324
283
|
*/
|
|
325
284
|
|
|
326
285
|
/**
|
|
327
286
|
* @typedef InvoiceCredSerializer
|
|
287
|
+
* @property {string} [username]
|
|
328
288
|
* @property {boolean} [enabled]
|
|
329
289
|
* @property {string} [password]
|
|
330
|
-
* @property {string} [username]
|
|
331
290
|
*/
|
|
332
291
|
|
|
333
292
|
/**
|
|
@@ -337,17 +296,20 @@ const Joi = require("joi");
|
|
|
337
296
|
*/
|
|
338
297
|
|
|
339
298
|
/**
|
|
340
|
-
* @typedef
|
|
341
|
-
* @property {
|
|
342
|
-
* @property {
|
|
343
|
-
* @property {
|
|
344
|
-
* @property {string}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
* @
|
|
349
|
-
* @property {
|
|
350
|
-
* @property {
|
|
299
|
+
* @typedef GetCompanySerializer
|
|
300
|
+
* @property {string} [stage]
|
|
301
|
+
* @property {string} [verified_on]
|
|
302
|
+
* @property {UserSerializer} [verified_by]
|
|
303
|
+
* @property {string} [created_on]
|
|
304
|
+
* @property {UserSerializer} [created_by]
|
|
305
|
+
* @property {string} [company_type]
|
|
306
|
+
* @property {string} [modified_on]
|
|
307
|
+
* @property {string} [business_type]
|
|
308
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
309
|
+
* @property {number} [uid]
|
|
310
|
+
* @property {string} [reject_reason]
|
|
311
|
+
* @property {string} [name]
|
|
312
|
+
* @property {UserSerializer} [modified_by]
|
|
351
313
|
*/
|
|
352
314
|
|
|
353
315
|
/**
|
|
@@ -357,38 +319,6 @@ const Joi = require("joi");
|
|
|
357
319
|
* @property {string} [name]
|
|
358
320
|
*/
|
|
359
321
|
|
|
360
|
-
/**
|
|
361
|
-
* @typedef LocationSerializer
|
|
362
|
-
* @property {Object} [_custom_json]
|
|
363
|
-
* @property {AddressSerializer} address
|
|
364
|
-
* @property {boolean} [auto_assign_courier_partner]
|
|
365
|
-
* @property {boolean} [auto_invoice]
|
|
366
|
-
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
367
|
-
* @property {boolean} [bulk_shipment]
|
|
368
|
-
* @property {string} code
|
|
369
|
-
* @property {number} company
|
|
370
|
-
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
371
|
-
* @property {boolean} [credit_note]
|
|
372
|
-
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
373
|
-
* order_acceptance_timing as default timing
|
|
374
|
-
* @property {string} display_name
|
|
375
|
-
* @property {Document[]} documents
|
|
376
|
-
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
377
|
-
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
378
|
-
* @property {LocationManagerSerializer} [manager]
|
|
379
|
-
* @property {string} name
|
|
380
|
-
* @property {string[]} [notification_emails]
|
|
381
|
-
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
|
|
382
|
-
* acceptance timing of the store
|
|
383
|
-
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
384
|
-
* @property {string} [stage]
|
|
385
|
-
* @property {string} [store_type]
|
|
386
|
-
* @property {string[]} [tags]
|
|
387
|
-
* @property {LocationDayWiseSerializer[]} [timing]
|
|
388
|
-
* @property {number} [uid]
|
|
389
|
-
* @property {Object} [warnings]
|
|
390
|
-
*/
|
|
391
|
-
|
|
392
322
|
/**
|
|
393
323
|
* @typedef LocationTimingSerializer
|
|
394
324
|
* @property {number} hour
|
|
@@ -396,25 +326,24 @@ const Joi = require("joi");
|
|
|
396
326
|
*/
|
|
397
327
|
|
|
398
328
|
/**
|
|
399
|
-
* @typedef
|
|
400
|
-
* @property {
|
|
401
|
-
* @property {
|
|
402
|
-
* @property {
|
|
403
|
-
* @property {
|
|
404
|
-
* @property {DocumentsObj} [store]
|
|
405
|
-
* @property {DocumentsObj} [store_documents]
|
|
406
|
-
* @property {number} [uid]
|
|
329
|
+
* @typedef LocationDayWiseSerializer
|
|
330
|
+
* @property {boolean} open
|
|
331
|
+
* @property {string} weekday
|
|
332
|
+
* @property {LocationTimingSerializer} [opening]
|
|
333
|
+
* @property {LocationTimingSerializer} [closing]
|
|
407
334
|
*/
|
|
408
335
|
|
|
409
336
|
/**
|
|
410
|
-
* @typedef
|
|
411
|
-
* @property {
|
|
412
|
-
* @property {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
* @
|
|
417
|
-
* @property {
|
|
337
|
+
* @typedef HolidayDateSerializer
|
|
338
|
+
* @property {string} end_date
|
|
339
|
+
* @property {string} start_date
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @typedef HolidaySchemaSerializer
|
|
344
|
+
* @property {HolidayDateSerializer} date
|
|
345
|
+
* @property {string} title
|
|
346
|
+
* @property {string} holiday_type
|
|
418
347
|
*/
|
|
419
348
|
|
|
420
349
|
/**
|
|
@@ -424,201 +353,235 @@ const Joi = require("joi");
|
|
|
424
353
|
*/
|
|
425
354
|
|
|
426
355
|
/**
|
|
427
|
-
* @typedef
|
|
428
|
-
* @property {string}
|
|
429
|
-
* @property {
|
|
356
|
+
* @typedef GetLocationSerializer
|
|
357
|
+
* @property {string} code
|
|
358
|
+
* @property {string} [phone_number]
|
|
359
|
+
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
360
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
361
|
+
* @property {string} name
|
|
362
|
+
* @property {Object} [_custom_json]
|
|
363
|
+
* @property {string} [verified_on]
|
|
364
|
+
* @property {UserSerializer} [created_by]
|
|
365
|
+
* @property {string} [created_on]
|
|
366
|
+
* @property {GetCompanySerializer} [company]
|
|
367
|
+
* @property {GetAddressSerializer} address
|
|
368
|
+
* @property {Object} [warnings]
|
|
369
|
+
* @property {string} [store_type]
|
|
370
|
+
* @property {LocationManagerSerializer} [manager]
|
|
371
|
+
* @property {boolean} [auto_invoice]
|
|
372
|
+
* @property {string} [modified_on]
|
|
430
373
|
* @property {number} [uid]
|
|
374
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
375
|
+
* @property {string} [stage]
|
|
376
|
+
* @property {Document[]} [documents]
|
|
377
|
+
* @property {boolean} [credit_note]
|
|
378
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
379
|
+
* @property {string} display_name
|
|
380
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
381
|
+
* @property {UserSerializer} [verified_by]
|
|
382
|
+
* @property {string[]} [notification_emails]
|
|
383
|
+
* @property {UserSerializer} [modified_by]
|
|
384
|
+
* @property {string[]} [tags]
|
|
385
|
+
* @property {boolean} [default_order_acceptance_timing]
|
|
386
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing]
|
|
387
|
+
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
388
|
+
* @property {boolean} [bulk_shipment]
|
|
431
389
|
*/
|
|
432
390
|
|
|
433
391
|
/**
|
|
434
|
-
* @typedef
|
|
435
|
-
* @property {
|
|
436
|
-
* @property {
|
|
392
|
+
* @typedef LocationListSerializer
|
|
393
|
+
* @property {GetLocationSerializer[]} [items]
|
|
394
|
+
* @property {Page} [page]
|
|
437
395
|
*/
|
|
438
396
|
|
|
439
397
|
/**
|
|
440
|
-
* @typedef
|
|
441
|
-
* @property {
|
|
442
|
-
* @property {string
|
|
398
|
+
* @typedef AddressSerializer
|
|
399
|
+
* @property {string} [landmark]
|
|
400
|
+
* @property {string} [country_code]
|
|
401
|
+
* @property {number} [pincode]
|
|
402
|
+
* @property {string} [address_type]
|
|
403
|
+
* @property {number} longitude
|
|
404
|
+
* @property {string} [country]
|
|
405
|
+
* @property {string} [address2]
|
|
406
|
+
* @property {string} [state]
|
|
407
|
+
* @property {string} [address1]
|
|
408
|
+
* @property {string} [city]
|
|
409
|
+
* @property {number} latitude
|
|
443
410
|
*/
|
|
444
411
|
|
|
445
412
|
/**
|
|
446
|
-
* @typedef
|
|
413
|
+
* @typedef LocationSerializer
|
|
414
|
+
* @property {string} code
|
|
415
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
416
|
+
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
417
|
+
* @property {string} name
|
|
447
418
|
* @property {Object} [_custom_json]
|
|
448
|
-
* @property {
|
|
449
|
-
* @property {
|
|
450
|
-
* @property {
|
|
451
|
-
* @property {string} [
|
|
452
|
-
* @property {
|
|
453
|
-
* @property {
|
|
419
|
+
* @property {Object} [warnings]
|
|
420
|
+
* @property {AddressSerializer} address
|
|
421
|
+
* @property {number} company
|
|
422
|
+
* @property {string} [store_type]
|
|
423
|
+
* @property {LocationManagerSerializer} [manager]
|
|
424
|
+
* @property {boolean} [auto_invoice]
|
|
425
|
+
* @property {number} [uid]
|
|
426
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
427
|
+
* @property {string} [stage]
|
|
454
428
|
* @property {Document[]} [documents]
|
|
455
|
-
* @property {boolean} [
|
|
456
|
-
* @property {
|
|
429
|
+
* @property {boolean} [credit_note]
|
|
430
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
431
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
432
|
+
* @property {string} display_name
|
|
457
433
|
* @property {string[]} [notification_emails]
|
|
458
|
-
* @property {string} [
|
|
459
|
-
* @property {
|
|
460
|
-
*
|
|
434
|
+
* @property {string[]} [tags]
|
|
435
|
+
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
436
|
+
* order_acceptance_timing as default timing
|
|
437
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
|
|
438
|
+
* acceptance timing of the store
|
|
439
|
+
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
440
|
+
* @property {boolean} [bulk_shipment]
|
|
461
441
|
*/
|
|
462
442
|
|
|
463
443
|
/**
|
|
464
|
-
* @typedef
|
|
465
|
-
* @property {
|
|
466
|
-
* @property {string} [user_id]
|
|
467
|
-
* @property {string} [username]
|
|
444
|
+
* @typedef BulkLocationSerializer
|
|
445
|
+
* @property {LocationSerializer[]} [data]
|
|
468
446
|
*/
|
|
469
447
|
|
|
470
448
|
/**
|
|
471
|
-
* @typedef
|
|
472
|
-
* @property {
|
|
449
|
+
* @typedef AverageOrderProcessingTime
|
|
450
|
+
* @property {number} [duration]
|
|
451
|
+
* @property {string} [duration_type]
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @typedef StoreTagsResponseSchema
|
|
456
|
+
* @property {string[]} [tags]
|
|
457
|
+
* @property {boolean} [success]
|
|
473
458
|
*/
|
|
474
459
|
|
|
475
460
|
class CompanyProfilePlatformModel {
|
|
476
|
-
/** @returns {
|
|
477
|
-
static
|
|
461
|
+
/** @returns {CompanyTaxesSerializer} */
|
|
462
|
+
static CompanyTaxesSerializer() {
|
|
478
463
|
return Joi.object({
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
city: Joi.string().allow(""),
|
|
483
|
-
country: Joi.string().allow(""),
|
|
484
|
-
country_code: Joi.string().allow("").required(),
|
|
485
|
-
landmark: Joi.string().allow(""),
|
|
486
|
-
latitude: Joi.number().required(),
|
|
487
|
-
longitude: Joi.number().required(),
|
|
488
|
-
pincode: Joi.number(),
|
|
489
|
-
sector: Joi.string().allow(""),
|
|
490
|
-
state: Joi.string().allow(""),
|
|
491
|
-
state_code: Joi.string().allow(""),
|
|
464
|
+
effective_date: Joi.string().allow(""),
|
|
465
|
+
rate: Joi.number(),
|
|
466
|
+
enable: Joi.boolean(),
|
|
492
467
|
});
|
|
493
468
|
}
|
|
494
469
|
|
|
495
|
-
/** @returns {
|
|
496
|
-
static
|
|
470
|
+
/** @returns {UserSerializer} */
|
|
471
|
+
static UserSerializer() {
|
|
497
472
|
return Joi.object({
|
|
498
|
-
|
|
499
|
-
|
|
473
|
+
user_id: Joi.string().allow(""),
|
|
474
|
+
contact: Joi.string().allow(""),
|
|
475
|
+
username: Joi.string().allow(""),
|
|
500
476
|
});
|
|
501
477
|
}
|
|
502
478
|
|
|
503
|
-
/** @returns {
|
|
504
|
-
static
|
|
479
|
+
/** @returns {Website} */
|
|
480
|
+
static Website() {
|
|
505
481
|
return Joi.object({
|
|
506
|
-
|
|
507
|
-
portrait: Joi.string().allow("").required(),
|
|
482
|
+
url: Joi.string().allow(""),
|
|
508
483
|
});
|
|
509
484
|
}
|
|
510
485
|
|
|
511
|
-
/** @returns {
|
|
512
|
-
static
|
|
486
|
+
/** @returns {BusinessDetails} */
|
|
487
|
+
static BusinessDetails() {
|
|
513
488
|
return Joi.object({
|
|
514
|
-
|
|
489
|
+
website: CompanyProfilePlatformModel.Website(),
|
|
515
490
|
});
|
|
516
491
|
}
|
|
517
492
|
|
|
518
|
-
/** @returns {
|
|
519
|
-
static
|
|
493
|
+
/** @returns {SellerPhoneNumber} */
|
|
494
|
+
static SellerPhoneNumber() {
|
|
520
495
|
return Joi.object({
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
currency: CompanyProfilePlatformModel.CountryCurrencyInfo().required(),
|
|
524
|
-
timezone: Joi.string().allow("").required(),
|
|
496
|
+
country_code: Joi.number().required(),
|
|
497
|
+
number: Joi.string().allow("").required(),
|
|
525
498
|
});
|
|
526
499
|
}
|
|
527
500
|
|
|
528
|
-
/** @returns {
|
|
529
|
-
static
|
|
501
|
+
/** @returns {ContactDetails} */
|
|
502
|
+
static ContactDetails() {
|
|
530
503
|
return Joi.object({
|
|
531
|
-
|
|
504
|
+
emails: Joi.array().items(Joi.string().allow("")),
|
|
505
|
+
phone: Joi.array().items(CompanyProfilePlatformModel.SellerPhoneNumber()),
|
|
532
506
|
});
|
|
533
507
|
}
|
|
534
508
|
|
|
535
|
-
/** @returns {
|
|
536
|
-
static
|
|
509
|
+
/** @returns {BusinessCountryInfo} */
|
|
510
|
+
static BusinessCountryInfo() {
|
|
537
511
|
return Joi.object({
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
),
|
|
541
|
-
page: CompanyProfilePlatformModel.Page(),
|
|
512
|
+
country_code: Joi.string().allow(""),
|
|
513
|
+
country: Joi.string().allow(""),
|
|
542
514
|
});
|
|
543
515
|
}
|
|
544
516
|
|
|
545
|
-
/** @returns {
|
|
546
|
-
static
|
|
517
|
+
/** @returns {Document} */
|
|
518
|
+
static Document() {
|
|
547
519
|
return Joi.object({
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
520
|
+
value: Joi.string().allow("").required(),
|
|
521
|
+
legal_name: Joi.string().allow(""),
|
|
522
|
+
verified: Joi.boolean(),
|
|
523
|
+
type: Joi.string().allow("").required(),
|
|
524
|
+
url: Joi.string().allow(""),
|
|
551
525
|
});
|
|
552
526
|
}
|
|
553
527
|
|
|
554
|
-
/** @returns {
|
|
555
|
-
static
|
|
528
|
+
/** @returns {GetAddressSerializer} */
|
|
529
|
+
static GetAddressSerializer() {
|
|
556
530
|
return Joi.object({
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
warnings: Joi.any(),
|
|
531
|
+
landmark: Joi.string().allow(""),
|
|
532
|
+
country_code: Joi.string().allow(""),
|
|
533
|
+
pincode: Joi.number(),
|
|
534
|
+
address_type: Joi.string().allow(""),
|
|
535
|
+
longitude: Joi.number().required(),
|
|
536
|
+
country: Joi.string().allow(""),
|
|
537
|
+
address2: Joi.string().allow(""),
|
|
538
|
+
state: Joi.string().allow(""),
|
|
539
|
+
address1: Joi.string().allow(""),
|
|
540
|
+
city: Joi.string().allow(""),
|
|
541
|
+
latitude: Joi.number().required(),
|
|
569
542
|
});
|
|
570
543
|
}
|
|
571
544
|
|
|
572
|
-
/** @returns {
|
|
573
|
-
static
|
|
545
|
+
/** @returns {GetCompanyProfileSerializerResponse} */
|
|
546
|
+
static GetCompanyProfileSerializerResponse() {
|
|
574
547
|
return Joi.object({
|
|
575
|
-
|
|
576
|
-
|
|
548
|
+
business_info: Joi.string().allow(""),
|
|
549
|
+
taxes: Joi.array().items(
|
|
550
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer()
|
|
577
551
|
),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/** @returns {CompanySerializer} */
|
|
583
|
-
static CompanySerializer() {
|
|
584
|
-
return Joi.object({
|
|
552
|
+
business_type: Joi.string().allow(""),
|
|
553
|
+
name: Joi.string().allow(""),
|
|
585
554
|
_custom_json: Joi.any(),
|
|
586
|
-
|
|
587
|
-
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
588
|
-
),
|
|
589
|
-
business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
|
|
590
|
-
business_type: Joi.string().allow("").required(),
|
|
591
|
-
company_type: Joi.string().allow("").required(),
|
|
555
|
+
verified_on: Joi.string().allow(""),
|
|
592
556
|
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
593
557
|
created_on: Joi.string().allow(""),
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
558
|
+
warnings: Joi.any(),
|
|
559
|
+
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
560
|
+
mode: Joi.string().allow(""),
|
|
561
|
+
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
562
|
+
business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
|
|
597
563
|
modified_on: Joi.string().allow(""),
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
reject_reason: Joi.string().allow(""),
|
|
564
|
+
uid: Joi.number().required(),
|
|
565
|
+
franchise_enabled: Joi.boolean(),
|
|
601
566
|
stage: Joi.string().allow(""),
|
|
602
|
-
|
|
567
|
+
company_type: Joi.string().allow("").required(),
|
|
568
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
569
|
+
addresses: Joi.array().items(
|
|
570
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
571
|
+
),
|
|
603
572
|
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/** @returns {CompanySocialAccounts} */
|
|
609
|
-
static CompanySocialAccounts() {
|
|
610
|
-
return Joi.object({
|
|
611
|
-
name: Joi.string().allow("").required(),
|
|
612
|
-
url: Joi.string().allow("").required(),
|
|
573
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
574
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
613
575
|
});
|
|
614
576
|
}
|
|
615
577
|
|
|
616
|
-
/** @returns {
|
|
617
|
-
static
|
|
578
|
+
/** @returns {ErrorResponse} */
|
|
579
|
+
static ErrorResponse() {
|
|
618
580
|
return Joi.object({
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
581
|
+
message: Joi.string().allow(""),
|
|
582
|
+
code: Joi.string().allow(""),
|
|
583
|
+
status: Joi.number(),
|
|
584
|
+
meta: Joi.any(),
|
|
622
585
|
});
|
|
623
586
|
}
|
|
624
587
|
|
|
@@ -626,69 +589,58 @@ class CompanyProfilePlatformModel {
|
|
|
626
589
|
static CompanyTaxesSerializer1() {
|
|
627
590
|
return Joi.object({
|
|
628
591
|
effective_date: Joi.string().allow(""),
|
|
629
|
-
enable: Joi.boolean(),
|
|
630
592
|
rate: Joi.number(),
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/** @returns {ContactDetails} */
|
|
635
|
-
static ContactDetails() {
|
|
636
|
-
return Joi.object({
|
|
637
|
-
emails: Joi.array().items(Joi.string().allow("")),
|
|
638
|
-
phone: Joi.array().items(CompanyProfilePlatformModel.SellerPhoneNumber()),
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/** @returns {CountryCurrencyInfo} */
|
|
643
|
-
static CountryCurrencyInfo() {
|
|
644
|
-
return Joi.object({
|
|
645
|
-
code: Joi.string().allow("").required(),
|
|
646
|
-
name: Joi.string().allow("").required(),
|
|
647
|
-
symbol: Joi.string().allow("").required(),
|
|
593
|
+
enable: Joi.boolean(),
|
|
648
594
|
});
|
|
649
595
|
}
|
|
650
596
|
|
|
651
597
|
/** @returns {CreateUpdateAddressSerializer} */
|
|
652
598
|
static CreateUpdateAddressSerializer() {
|
|
653
599
|
return Joi.object({
|
|
600
|
+
landmark: Joi.string().allow(""),
|
|
601
|
+
country_code: Joi.string().allow(""),
|
|
602
|
+
pincode: Joi.number().required(),
|
|
654
603
|
address_type: Joi.string().allow("").required(),
|
|
655
|
-
|
|
604
|
+
longitude: Joi.number().required(),
|
|
605
|
+
country: Joi.string().allow("").required(),
|
|
656
606
|
address2: Joi.string().allow(""),
|
|
607
|
+
state: Joi.string().allow("").required(),
|
|
608
|
+
address1: Joi.string().allow("").required(),
|
|
657
609
|
city: Joi.string().allow("").required(),
|
|
658
|
-
country: Joi.string().allow("").required(),
|
|
659
|
-
country_code: Joi.string().allow(""),
|
|
660
|
-
landmark: Joi.string().allow(""),
|
|
661
610
|
latitude: Joi.number().required(),
|
|
662
|
-
longitude: Joi.number().required(),
|
|
663
|
-
pincode: Joi.number().required(),
|
|
664
|
-
state: Joi.string().allow("").required(),
|
|
665
611
|
});
|
|
666
612
|
}
|
|
667
613
|
|
|
668
|
-
/** @returns {
|
|
669
|
-
static
|
|
614
|
+
/** @returns {UpdateCompany} */
|
|
615
|
+
static UpdateCompany() {
|
|
670
616
|
return Joi.object({
|
|
617
|
+
franchise_enabled: Joi.boolean(),
|
|
618
|
+
business_info: Joi.string().allow(""),
|
|
619
|
+
warnings: Joi.any(),
|
|
620
|
+
company_type: Joi.string().allow(""),
|
|
671
621
|
_custom_json: Joi.any(),
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
622
|
+
taxes: Joi.array().items(
|
|
623
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer1()
|
|
624
|
+
),
|
|
625
|
+
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
626
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
627
|
+
business_type: Joi.string().allow(""),
|
|
628
|
+
addresses: Joi.array().items(
|
|
629
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
|
|
630
|
+
),
|
|
631
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
632
|
+
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
633
|
+
reject_reason: Joi.string().allow(""),
|
|
634
|
+
name: Joi.string().allow(""),
|
|
681
635
|
});
|
|
682
636
|
}
|
|
683
637
|
|
|
684
|
-
/** @returns {
|
|
685
|
-
static
|
|
638
|
+
/** @returns {ProfileSuccessResponse} */
|
|
639
|
+
static ProfileSuccessResponse() {
|
|
686
640
|
return Joi.object({
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
value: Joi.string().allow("").required(),
|
|
691
|
-
verified: Joi.boolean(),
|
|
641
|
+
uid: Joi.number(),
|
|
642
|
+
message: Joi.string().allow(""),
|
|
643
|
+
success: Joi.boolean(),
|
|
692
644
|
});
|
|
693
645
|
}
|
|
694
646
|
|
|
@@ -700,184 +652,168 @@ class CompanyProfilePlatformModel {
|
|
|
700
652
|
});
|
|
701
653
|
}
|
|
702
654
|
|
|
703
|
-
/** @returns {
|
|
704
|
-
static
|
|
655
|
+
/** @returns {MetricsSerializer} */
|
|
656
|
+
static MetricsSerializer() {
|
|
705
657
|
return Joi.object({
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
658
|
+
stage: Joi.string().allow(""),
|
|
659
|
+
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
660
|
+
company_documents: CompanyProfilePlatformModel.DocumentsObj(),
|
|
661
|
+
store_documents: CompanyProfilePlatformModel.DocumentsObj(),
|
|
662
|
+
product: CompanyProfilePlatformModel.DocumentsObj(),
|
|
663
|
+
uid: Joi.number(),
|
|
664
|
+
brand: CompanyProfilePlatformModel.DocumentsObj(),
|
|
710
665
|
});
|
|
711
666
|
}
|
|
712
667
|
|
|
713
|
-
/** @returns {
|
|
714
|
-
static
|
|
668
|
+
/** @returns {BrandBannerSerializer} */
|
|
669
|
+
static BrandBannerSerializer() {
|
|
715
670
|
return Joi.object({
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
address2: Joi.string().allow(""),
|
|
719
|
-
city: Joi.string().allow(""),
|
|
720
|
-
country: Joi.string().allow(""),
|
|
721
|
-
country_code: Joi.string().allow(""),
|
|
722
|
-
landmark: Joi.string().allow(""),
|
|
723
|
-
latitude: Joi.number().required(),
|
|
724
|
-
longitude: Joi.number().required(),
|
|
725
|
-
pincode: Joi.number(),
|
|
726
|
-
sector: Joi.string().allow(""),
|
|
727
|
-
state: Joi.string().allow(""),
|
|
728
|
-
state_code: Joi.string().allow(""),
|
|
671
|
+
portrait: Joi.string().allow("").required(),
|
|
672
|
+
landscape: Joi.string().allow("").required(),
|
|
729
673
|
});
|
|
730
674
|
}
|
|
731
675
|
|
|
732
676
|
/** @returns {GetBrandResponseSerializer} */
|
|
733
677
|
static GetBrandResponseSerializer() {
|
|
734
678
|
return Joi.object({
|
|
735
|
-
|
|
736
|
-
_locale_language: Joi.any(),
|
|
679
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
737
680
|
banner: CompanyProfilePlatformModel.BrandBannerSerializer(),
|
|
681
|
+
name: Joi.string().allow("").required(),
|
|
682
|
+
_custom_json: Joi.any(),
|
|
683
|
+
verified_on: Joi.string().allow(""),
|
|
738
684
|
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
739
685
|
created_on: Joi.string().allow(""),
|
|
740
|
-
|
|
741
|
-
|
|
686
|
+
warnings: Joi.any(),
|
|
687
|
+
_locale_language: Joi.any(),
|
|
742
688
|
mode: Joi.string().allow(""),
|
|
743
|
-
|
|
689
|
+
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
744
690
|
modified_on: Joi.string().allow(""),
|
|
745
|
-
|
|
691
|
+
uid: Joi.number(),
|
|
746
692
|
reject_reason: Joi.string().allow(""),
|
|
747
|
-
slug_key: Joi.string().allow(""),
|
|
748
693
|
stage: Joi.string().allow(""),
|
|
694
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
695
|
+
slug_key: Joi.string().allow(""),
|
|
696
|
+
logo: Joi.string().allow(""),
|
|
697
|
+
description: Joi.string().allow(""),
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/** @returns {CreateUpdateBrandRequestSerializer} */
|
|
702
|
+
static CreateUpdateBrandRequestSerializer() {
|
|
703
|
+
return Joi.object({
|
|
704
|
+
_custom_json: Joi.any(),
|
|
705
|
+
_locale_language: Joi.any(),
|
|
749
706
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
707
|
+
company_id: Joi.number(),
|
|
708
|
+
description: Joi.string().allow(""),
|
|
709
|
+
logo: Joi.string().allow("").required(),
|
|
710
|
+
brand_tier: Joi.string().allow(""),
|
|
750
711
|
uid: Joi.number(),
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
warnings: Joi.any(),
|
|
712
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
|
|
713
|
+
name: Joi.string().allow("").required(),
|
|
754
714
|
});
|
|
755
715
|
}
|
|
756
716
|
|
|
757
|
-
/** @returns {
|
|
758
|
-
static
|
|
717
|
+
/** @returns {CompanySocialAccounts} */
|
|
718
|
+
static CompanySocialAccounts() {
|
|
719
|
+
return Joi.object({
|
|
720
|
+
name: Joi.string().allow("").required(),
|
|
721
|
+
url: Joi.string().allow("").required(),
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** @returns {CompanyDetails} */
|
|
726
|
+
static CompanyDetails() {
|
|
759
727
|
return Joi.object({
|
|
728
|
+
socials: Joi.array().items(
|
|
729
|
+
CompanyProfilePlatformModel.CompanySocialAccounts()
|
|
730
|
+
),
|
|
731
|
+
website_url: Joi.string().allow(""),
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/** @returns {CompanySerializer} */
|
|
736
|
+
static CompanySerializer() {
|
|
737
|
+
return Joi.object({
|
|
738
|
+
stage: Joi.string().allow(""),
|
|
760
739
|
_custom_json: Joi.any(),
|
|
740
|
+
verified_on: Joi.string().allow(""),
|
|
741
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
742
|
+
created_on: Joi.string().allow(""),
|
|
743
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
744
|
+
company_type: Joi.string().allow("").required(),
|
|
745
|
+
modified_on: Joi.string().allow(""),
|
|
746
|
+
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
747
|
+
business_type: Joi.string().allow("").required(),
|
|
761
748
|
addresses: Joi.array().items(
|
|
762
749
|
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
763
750
|
),
|
|
751
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
752
|
+
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
764
753
|
business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
business_type: Joi.string().allow(""),
|
|
768
|
-
company_type: Joi.string().allow("").required(),
|
|
769
|
-
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
770
|
-
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
771
|
-
created_on: Joi.string().allow(""),
|
|
772
|
-
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
773
|
-
franchise_enabled: Joi.boolean(),
|
|
774
|
-
mode: Joi.string().allow(""),
|
|
775
|
-
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
776
|
-
modified_on: Joi.string().allow(""),
|
|
754
|
+
uid: Joi.number(),
|
|
755
|
+
reject_reason: Joi.string().allow(""),
|
|
777
756
|
name: Joi.string().allow(""),
|
|
778
|
-
|
|
779
|
-
stage: Joi.string().allow(""),
|
|
780
|
-
taxes: Joi.array().items(
|
|
781
|
-
CompanyProfilePlatformModel.CompanyTaxesSerializer()
|
|
782
|
-
),
|
|
783
|
-
uid: Joi.number().required(),
|
|
784
|
-
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
785
|
-
verified_on: Joi.string().allow(""),
|
|
786
|
-
warnings: Joi.any(),
|
|
757
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
787
758
|
});
|
|
788
759
|
}
|
|
789
760
|
|
|
790
|
-
/** @returns {
|
|
791
|
-
static
|
|
761
|
+
/** @returns {CompanyBrandSerializer} */
|
|
762
|
+
static CompanyBrandSerializer() {
|
|
792
763
|
return Joi.object({
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
),
|
|
796
|
-
business_type: Joi.string().allow(""),
|
|
797
|
-
company_type: Joi.string().allow(""),
|
|
798
|
-
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
764
|
+
stage: Joi.string().allow(""),
|
|
765
|
+
verified_on: Joi.string().allow(""),
|
|
766
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
799
767
|
created_on: Joi.string().allow(""),
|
|
800
|
-
|
|
768
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
769
|
+
company: CompanyProfilePlatformModel.CompanySerializer(),
|
|
770
|
+
warnings: Joi.any(),
|
|
801
771
|
modified_on: Joi.string().allow(""),
|
|
802
|
-
name: Joi.string().allow(""),
|
|
803
|
-
reject_reason: Joi.string().allow(""),
|
|
804
|
-
stage: Joi.string().allow(""),
|
|
805
772
|
uid: Joi.number(),
|
|
806
|
-
|
|
807
|
-
|
|
773
|
+
reject_reason: Joi.string().allow(""),
|
|
774
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
|
|
775
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
808
776
|
});
|
|
809
777
|
}
|
|
810
778
|
|
|
811
|
-
/** @returns {
|
|
812
|
-
static
|
|
779
|
+
/** @returns {Page} */
|
|
780
|
+
static Page() {
|
|
813
781
|
return Joi.object({
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
company: CompanyProfilePlatformModel.GetCompanySerializer(),
|
|
822
|
-
contact_numbers: Joi.array().items(
|
|
823
|
-
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
824
|
-
),
|
|
825
|
-
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
826
|
-
created_on: Joi.string().allow(""),
|
|
827
|
-
credit_note: Joi.boolean(),
|
|
828
|
-
default_order_acceptance_timing: Joi.boolean(),
|
|
829
|
-
display_name: Joi.string().allow("").required(),
|
|
830
|
-
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
831
|
-
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
832
|
-
holiday: Joi.array().items(
|
|
833
|
-
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
834
|
-
),
|
|
835
|
-
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
836
|
-
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
837
|
-
modified_on: Joi.string().allow(""),
|
|
838
|
-
name: Joi.string().allow("").required(),
|
|
839
|
-
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
840
|
-
order_acceptance_timing: Joi.array().items(
|
|
841
|
-
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
842
|
-
),
|
|
843
|
-
phone_number: Joi.string().allow(""),
|
|
844
|
-
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
845
|
-
stage: Joi.string().allow(""),
|
|
846
|
-
store_type: Joi.string().allow(""),
|
|
847
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
848
|
-
timing: Joi.array().items(
|
|
849
|
-
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
850
|
-
),
|
|
851
|
-
uid: Joi.number(),
|
|
852
|
-
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
853
|
-
verified_on: Joi.string().allow(""),
|
|
854
|
-
warnings: Joi.any(),
|
|
782
|
+
item_total: Joi.number(),
|
|
783
|
+
next_id: Joi.string().allow(""),
|
|
784
|
+
has_previous: Joi.boolean(),
|
|
785
|
+
has_next: Joi.boolean(),
|
|
786
|
+
current: Joi.number(),
|
|
787
|
+
type: Joi.string().allow("").required(),
|
|
788
|
+
size: Joi.number(),
|
|
855
789
|
});
|
|
856
790
|
}
|
|
857
791
|
|
|
858
|
-
/** @returns {
|
|
859
|
-
static
|
|
792
|
+
/** @returns {CompanyBrandListSerializer} */
|
|
793
|
+
static CompanyBrandListSerializer() {
|
|
860
794
|
return Joi.object({
|
|
861
|
-
|
|
862
|
-
|
|
795
|
+
items: Joi.array().items(
|
|
796
|
+
CompanyProfilePlatformModel.CompanyBrandSerializer()
|
|
797
|
+
),
|
|
798
|
+
page: CompanyProfilePlatformModel.Page(),
|
|
863
799
|
});
|
|
864
800
|
}
|
|
865
801
|
|
|
866
|
-
/** @returns {
|
|
867
|
-
static
|
|
802
|
+
/** @returns {CompanyBrandPostRequestSerializer} */
|
|
803
|
+
static CompanyBrandPostRequestSerializer() {
|
|
868
804
|
return Joi.object({
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
805
|
+
uid: Joi.number(),
|
|
806
|
+
brands: Joi.array().items(Joi.number()).required(),
|
|
807
|
+
company: Joi.number().required(),
|
|
872
808
|
});
|
|
873
809
|
}
|
|
874
810
|
|
|
875
811
|
/** @returns {InvoiceCredSerializer} */
|
|
876
812
|
static InvoiceCredSerializer() {
|
|
877
813
|
return Joi.object({
|
|
814
|
+
username: Joi.string().allow(""),
|
|
878
815
|
enabled: Joi.boolean(),
|
|
879
816
|
password: Joi.string().allow(""),
|
|
880
|
-
username: Joi.string().allow(""),
|
|
881
817
|
});
|
|
882
818
|
}
|
|
883
819
|
|
|
@@ -889,23 +825,24 @@ class CompanyProfilePlatformModel {
|
|
|
889
825
|
});
|
|
890
826
|
}
|
|
891
827
|
|
|
892
|
-
/** @returns {
|
|
893
|
-
static
|
|
894
|
-
return Joi.object({
|
|
895
|
-
closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
896
|
-
open: Joi.boolean().required(),
|
|
897
|
-
opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
898
|
-
weekday: Joi.string().allow("").required(),
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
/** @returns {LocationListSerializer} */
|
|
903
|
-
static LocationListSerializer() {
|
|
828
|
+
/** @returns {GetCompanySerializer} */
|
|
829
|
+
static GetCompanySerializer() {
|
|
904
830
|
return Joi.object({
|
|
905
|
-
|
|
906
|
-
|
|
831
|
+
stage: Joi.string().allow(""),
|
|
832
|
+
verified_on: Joi.string().allow(""),
|
|
833
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
834
|
+
created_on: Joi.string().allow(""),
|
|
835
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
836
|
+
company_type: Joi.string().allow(""),
|
|
837
|
+
modified_on: Joi.string().allow(""),
|
|
838
|
+
business_type: Joi.string().allow(""),
|
|
839
|
+
addresses: Joi.array().items(
|
|
840
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
907
841
|
),
|
|
908
|
-
|
|
842
|
+
uid: Joi.number(),
|
|
843
|
+
reject_reason: Joi.string().allow(""),
|
|
844
|
+
name: Joi.string().allow(""),
|
|
845
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
909
846
|
});
|
|
910
847
|
}
|
|
911
848
|
|
|
@@ -918,48 +855,6 @@ class CompanyProfilePlatformModel {
|
|
|
918
855
|
});
|
|
919
856
|
}
|
|
920
857
|
|
|
921
|
-
/** @returns {LocationSerializer} */
|
|
922
|
-
static LocationSerializer() {
|
|
923
|
-
return Joi.object({
|
|
924
|
-
_custom_json: Joi.any(),
|
|
925
|
-
address: CompanyProfilePlatformModel.AddressSerializer().required(),
|
|
926
|
-
auto_assign_courier_partner: Joi.boolean(),
|
|
927
|
-
auto_invoice: Joi.boolean(),
|
|
928
|
-
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
929
|
-
bulk_shipment: Joi.boolean(),
|
|
930
|
-
code: Joi.string().allow("").required(),
|
|
931
|
-
company: Joi.number().required(),
|
|
932
|
-
contact_numbers: Joi.array().items(
|
|
933
|
-
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
934
|
-
),
|
|
935
|
-
credit_note: Joi.boolean(),
|
|
936
|
-
default_order_acceptance_timing: Joi.boolean(),
|
|
937
|
-
display_name: Joi.string().allow("").required(),
|
|
938
|
-
documents: Joi.array()
|
|
939
|
-
.items(CompanyProfilePlatformModel.Document())
|
|
940
|
-
.required(),
|
|
941
|
-
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
942
|
-
holiday: Joi.array().items(
|
|
943
|
-
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
944
|
-
),
|
|
945
|
-
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
946
|
-
name: Joi.string().allow("").required(),
|
|
947
|
-
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
948
|
-
order_acceptance_timing: Joi.array().items(
|
|
949
|
-
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
950
|
-
),
|
|
951
|
-
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
952
|
-
stage: Joi.string().allow(""),
|
|
953
|
-
store_type: Joi.string().allow(""),
|
|
954
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
955
|
-
timing: Joi.array().items(
|
|
956
|
-
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
957
|
-
),
|
|
958
|
-
uid: Joi.number(),
|
|
959
|
-
warnings: Joi.any(),
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
|
|
963
858
|
/** @returns {LocationTimingSerializer} */
|
|
964
859
|
static LocationTimingSerializer() {
|
|
965
860
|
return Joi.object({
|
|
@@ -968,29 +863,30 @@ class CompanyProfilePlatformModel {
|
|
|
968
863
|
});
|
|
969
864
|
}
|
|
970
865
|
|
|
971
|
-
/** @returns {
|
|
972
|
-
static
|
|
866
|
+
/** @returns {LocationDayWiseSerializer} */
|
|
867
|
+
static LocationDayWiseSerializer() {
|
|
973
868
|
return Joi.object({
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
979
|
-
store_documents: CompanyProfilePlatformModel.DocumentsObj(),
|
|
980
|
-
uid: Joi.number(),
|
|
869
|
+
open: Joi.boolean().required(),
|
|
870
|
+
weekday: Joi.string().allow("").required(),
|
|
871
|
+
opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
872
|
+
closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
981
873
|
});
|
|
982
874
|
}
|
|
983
875
|
|
|
984
|
-
/** @returns {
|
|
985
|
-
static
|
|
876
|
+
/** @returns {HolidayDateSerializer} */
|
|
877
|
+
static HolidayDateSerializer() {
|
|
986
878
|
return Joi.object({
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
879
|
+
end_date: Joi.string().allow("").required(),
|
|
880
|
+
start_date: Joi.string().allow("").required(),
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/** @returns {HolidaySchemaSerializer} */
|
|
885
|
+
static HolidaySchemaSerializer() {
|
|
886
|
+
return Joi.object({
|
|
887
|
+
date: CompanyProfilePlatformModel.HolidayDateSerializer().required(),
|
|
888
|
+
title: Joi.string().allow("").required(),
|
|
889
|
+
holiday_type: Joi.string().allow("").required(),
|
|
994
890
|
});
|
|
995
891
|
}
|
|
996
892
|
|
|
@@ -1002,68 +898,138 @@ class CompanyProfilePlatformModel {
|
|
|
1002
898
|
});
|
|
1003
899
|
}
|
|
1004
900
|
|
|
1005
|
-
/** @returns {
|
|
1006
|
-
static
|
|
901
|
+
/** @returns {GetLocationSerializer} */
|
|
902
|
+
static GetLocationSerializer() {
|
|
1007
903
|
return Joi.object({
|
|
1008
|
-
|
|
1009
|
-
|
|
904
|
+
code: Joi.string().allow("").required(),
|
|
905
|
+
phone_number: Joi.string().allow(""),
|
|
906
|
+
contact_numbers: Joi.array().items(
|
|
907
|
+
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
908
|
+
),
|
|
909
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
910
|
+
name: Joi.string().allow("").required(),
|
|
911
|
+
_custom_json: Joi.any(),
|
|
912
|
+
verified_on: Joi.string().allow(""),
|
|
913
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
914
|
+
created_on: Joi.string().allow(""),
|
|
915
|
+
company: CompanyProfilePlatformModel.GetCompanySerializer(),
|
|
916
|
+
address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
|
|
917
|
+
warnings: Joi.any(),
|
|
918
|
+
store_type: Joi.string().allow(""),
|
|
919
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
920
|
+
auto_invoice: Joi.boolean(),
|
|
921
|
+
modified_on: Joi.string().allow(""),
|
|
1010
922
|
uid: Joi.number(),
|
|
923
|
+
timing: Joi.array().items(
|
|
924
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
925
|
+
),
|
|
926
|
+
stage: Joi.string().allow(""),
|
|
927
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
928
|
+
credit_note: Joi.boolean(),
|
|
929
|
+
holiday: Joi.array().items(
|
|
930
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
931
|
+
),
|
|
932
|
+
display_name: Joi.string().allow("").required(),
|
|
933
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
934
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
935
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
936
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
937
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
938
|
+
default_order_acceptance_timing: Joi.boolean(),
|
|
939
|
+
order_acceptance_timing: Joi.array().items(
|
|
940
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
941
|
+
),
|
|
942
|
+
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
943
|
+
bulk_shipment: Joi.boolean(),
|
|
1011
944
|
});
|
|
1012
945
|
}
|
|
1013
946
|
|
|
1014
|
-
/** @returns {
|
|
1015
|
-
static
|
|
947
|
+
/** @returns {LocationListSerializer} */
|
|
948
|
+
static LocationListSerializer() {
|
|
1016
949
|
return Joi.object({
|
|
1017
|
-
|
|
1018
|
-
|
|
950
|
+
items: Joi.array().items(
|
|
951
|
+
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
952
|
+
),
|
|
953
|
+
page: CompanyProfilePlatformModel.Page(),
|
|
1019
954
|
});
|
|
1020
955
|
}
|
|
1021
956
|
|
|
1022
|
-
/** @returns {
|
|
1023
|
-
static
|
|
957
|
+
/** @returns {AddressSerializer} */
|
|
958
|
+
static AddressSerializer() {
|
|
1024
959
|
return Joi.object({
|
|
1025
|
-
|
|
1026
|
-
|
|
960
|
+
landmark: Joi.string().allow(""),
|
|
961
|
+
country_code: Joi.string().allow(""),
|
|
962
|
+
pincode: Joi.number(),
|
|
963
|
+
address_type: Joi.string().allow(""),
|
|
964
|
+
longitude: Joi.number().required(),
|
|
965
|
+
country: Joi.string().allow(""),
|
|
966
|
+
address2: Joi.string().allow(""),
|
|
967
|
+
state: Joi.string().allow(""),
|
|
968
|
+
address1: Joi.string().allow(""),
|
|
969
|
+
city: Joi.string().allow(""),
|
|
970
|
+
latitude: Joi.number().required(),
|
|
1027
971
|
});
|
|
1028
972
|
}
|
|
1029
973
|
|
|
1030
|
-
/** @returns {
|
|
1031
|
-
static
|
|
974
|
+
/** @returns {LocationSerializer} */
|
|
975
|
+
static LocationSerializer() {
|
|
1032
976
|
return Joi.object({
|
|
977
|
+
code: Joi.string().allow("").required(),
|
|
978
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
979
|
+
contact_numbers: Joi.array().items(
|
|
980
|
+
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
981
|
+
),
|
|
982
|
+
name: Joi.string().allow("").required(),
|
|
1033
983
|
_custom_json: Joi.any(),
|
|
1034
|
-
|
|
1035
|
-
|
|
984
|
+
warnings: Joi.any(),
|
|
985
|
+
address: CompanyProfilePlatformModel.AddressSerializer().required(),
|
|
986
|
+
company: Joi.number().required(),
|
|
987
|
+
store_type: Joi.string().allow(""),
|
|
988
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
989
|
+
auto_invoice: Joi.boolean(),
|
|
990
|
+
uid: Joi.number(),
|
|
991
|
+
timing: Joi.array().items(
|
|
992
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1036
993
|
),
|
|
1037
|
-
|
|
1038
|
-
business_info: Joi.string().allow(""),
|
|
1039
|
-
business_type: Joi.string().allow(""),
|
|
1040
|
-
company_type: Joi.string().allow(""),
|
|
1041
|
-
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
994
|
+
stage: Joi.string().allow(""),
|
|
1042
995
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
1043
|
-
|
|
1044
|
-
|
|
996
|
+
credit_note: Joi.boolean(),
|
|
997
|
+
holiday: Joi.array().items(
|
|
998
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
999
|
+
),
|
|
1000
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
1001
|
+
display_name: Joi.string().allow("").required(),
|
|
1045
1002
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1003
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1004
|
+
default_order_acceptance_timing: Joi.boolean(),
|
|
1005
|
+
order_acceptance_timing: Joi.array().items(
|
|
1006
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1049
1007
|
),
|
|
1050
|
-
|
|
1008
|
+
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1009
|
+
bulk_shipment: Joi.boolean(),
|
|
1051
1010
|
});
|
|
1052
1011
|
}
|
|
1053
1012
|
|
|
1054
|
-
/** @returns {
|
|
1055
|
-
static
|
|
1013
|
+
/** @returns {BulkLocationSerializer} */
|
|
1014
|
+
static BulkLocationSerializer() {
|
|
1056
1015
|
return Joi.object({
|
|
1057
|
-
|
|
1058
|
-
user_id: Joi.string().allow(""),
|
|
1059
|
-
username: Joi.string().allow(""),
|
|
1016
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
|
|
1060
1017
|
});
|
|
1061
1018
|
}
|
|
1062
1019
|
|
|
1063
|
-
/** @returns {
|
|
1064
|
-
static
|
|
1020
|
+
/** @returns {AverageOrderProcessingTime} */
|
|
1021
|
+
static AverageOrderProcessingTime() {
|
|
1065
1022
|
return Joi.object({
|
|
1066
|
-
|
|
1023
|
+
duration: Joi.number(),
|
|
1024
|
+
duration_type: Joi.string().allow(""),
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/** @returns {StoreTagsResponseSchema} */
|
|
1029
|
+
static StoreTagsResponseSchema() {
|
|
1030
|
+
return Joi.object({
|
|
1031
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1032
|
+
success: Joi.boolean(),
|
|
1067
1033
|
});
|
|
1068
1034
|
}
|
|
1069
1035
|
}
|