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