@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,11 +1,445 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddressSerializer
|
|
5
|
+
* @property {string} [address_type]
|
|
6
|
+
* @property {string} [address1]
|
|
7
|
+
* @property {string} [address2]
|
|
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} [state]
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef BrandBannerSerializer
|
|
20
|
+
* @property {string} landscape
|
|
21
|
+
* @property {string} portrait
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef BulkLocationSerializer
|
|
26
|
+
* @property {LocationSerializer[]} [data]
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @typedef BusinessCountryInfo
|
|
31
|
+
* @property {string} [country]
|
|
32
|
+
* @property {string} [country_code]
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef BusinessDetails
|
|
37
|
+
* @property {Website} [website]
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef CompanyBrandListSerializer
|
|
42
|
+
* @property {CompanyBrandSerializer[]} [items]
|
|
43
|
+
* @property {Page} [page]
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef CompanyBrandPostRequestSerializer
|
|
48
|
+
* @property {number[]} brands
|
|
49
|
+
* @property {number} company
|
|
50
|
+
* @property {number} [uid]
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef CompanyBrandSerializer
|
|
55
|
+
* @property {GetBrandResponseSerializer} [brand]
|
|
56
|
+
* @property {CompanySerializer} [company]
|
|
57
|
+
* @property {UserSerializer} [created_by]
|
|
58
|
+
* @property {string} [created_on]
|
|
59
|
+
* @property {UserSerializer} [modified_by]
|
|
60
|
+
* @property {string} [modified_on]
|
|
61
|
+
* @property {string} [reject_reason]
|
|
62
|
+
* @property {string} [stage]
|
|
63
|
+
* @property {number} [uid]
|
|
64
|
+
* @property {UserSerializer} [verified_by]
|
|
65
|
+
* @property {string} [verified_on]
|
|
66
|
+
* @property {Object} [warnings]
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @typedef CompanyDetails
|
|
71
|
+
* @property {CompanySocialAccounts[]} [socials]
|
|
72
|
+
* @property {string} [website_url]
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @typedef CompanySerializer
|
|
77
|
+
* @property {Object} [_custom_json]
|
|
78
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
79
|
+
* @property {BusinessCountryInfo} [business_country_info]
|
|
80
|
+
* @property {string} business_type
|
|
81
|
+
* @property {string} company_type
|
|
82
|
+
* @property {UserSerializer} [created_by]
|
|
83
|
+
* @property {string} [created_on]
|
|
84
|
+
* @property {CompanyDetails} [details]
|
|
85
|
+
* @property {string[]} [market_channels]
|
|
86
|
+
* @property {UserSerializer} [modified_by]
|
|
87
|
+
* @property {string} [modified_on]
|
|
88
|
+
* @property {string} [name]
|
|
89
|
+
* @property {string[]} [notification_emails]
|
|
90
|
+
* @property {string} [reject_reason]
|
|
91
|
+
* @property {string} [stage]
|
|
92
|
+
* @property {number} [uid]
|
|
93
|
+
* @property {UserSerializer} [verified_by]
|
|
94
|
+
* @property {string} [verified_on]
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef CompanySocialAccounts
|
|
99
|
+
* @property {string} name
|
|
100
|
+
* @property {string} url
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @typedef CompanyTaxesSerializer
|
|
105
|
+
* @property {string} [effective_date]
|
|
106
|
+
* @property {boolean} [enable]
|
|
107
|
+
* @property {number} [rate]
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @typedef CompanyTaxesSerializer1
|
|
112
|
+
* @property {string} [effective_date]
|
|
113
|
+
* @property {boolean} [enable]
|
|
114
|
+
* @property {number} [rate]
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @typedef ContactDetails
|
|
119
|
+
* @property {string[]} [emails]
|
|
120
|
+
* @property {SellerPhoneNumber[]} [phone]
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @typedef CreateUpdateAddressSerializer
|
|
125
|
+
* @property {string} address_type
|
|
126
|
+
* @property {string} address1
|
|
127
|
+
* @property {string} [address2]
|
|
128
|
+
* @property {string} city
|
|
129
|
+
* @property {string} country
|
|
130
|
+
* @property {string} [country_code]
|
|
131
|
+
* @property {string} [landmark]
|
|
132
|
+
* @property {number} latitude
|
|
133
|
+
* @property {number} longitude
|
|
134
|
+
* @property {number} pincode
|
|
135
|
+
* @property {string} state
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef CreateUpdateBrandRequestSerializer
|
|
140
|
+
* @property {Object} [_custom_json]
|
|
141
|
+
* @property {Object} [_locale_language]
|
|
142
|
+
* @property {BrandBannerSerializer} banner
|
|
143
|
+
* @property {string} [brand_tier]
|
|
144
|
+
* @property {number} [company_id]
|
|
145
|
+
* @property {string} [description]
|
|
146
|
+
* @property {string} logo
|
|
147
|
+
* @property {string} name
|
|
148
|
+
* @property {string[]} [synonyms]
|
|
149
|
+
* @property {number} [uid]
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @typedef Document
|
|
154
|
+
* @property {string} [legal_name]
|
|
155
|
+
* @property {string} type
|
|
156
|
+
* @property {string} [url]
|
|
157
|
+
* @property {string} value
|
|
158
|
+
* @property {boolean} [verified]
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @typedef DocumentsObj
|
|
163
|
+
* @property {number} [pending]
|
|
164
|
+
* @property {number} [verified]
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @typedef ErrorResponse
|
|
169
|
+
* @property {string} [code]
|
|
170
|
+
* @property {string} [message]
|
|
171
|
+
* @property {Object} [meta]
|
|
172
|
+
* @property {number} [status]
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @typedef GetAddressSerializer
|
|
177
|
+
* @property {string} [address_type]
|
|
178
|
+
* @property {string} [address1]
|
|
179
|
+
* @property {string} [address2]
|
|
180
|
+
* @property {string} [city]
|
|
181
|
+
* @property {string} [country]
|
|
182
|
+
* @property {string} [country_code]
|
|
183
|
+
* @property {string} [landmark]
|
|
184
|
+
* @property {number} latitude
|
|
185
|
+
* @property {number} longitude
|
|
186
|
+
* @property {number} [pincode]
|
|
187
|
+
* @property {string} [state]
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @typedef GetBrandResponseSerializer
|
|
192
|
+
* @property {Object} [_custom_json]
|
|
193
|
+
* @property {Object} [_locale_language]
|
|
194
|
+
* @property {BrandBannerSerializer} [banner]
|
|
195
|
+
* @property {UserSerializer} [created_by]
|
|
196
|
+
* @property {string} [created_on]
|
|
197
|
+
* @property {string} [description]
|
|
198
|
+
* @property {string} [logo]
|
|
199
|
+
* @property {string} [mode]
|
|
200
|
+
* @property {UserSerializer} [modified_by]
|
|
201
|
+
* @property {string} [modified_on]
|
|
202
|
+
* @property {string} name
|
|
203
|
+
* @property {string} [reject_reason]
|
|
204
|
+
* @property {string} [slug_key]
|
|
205
|
+
* @property {string} [stage]
|
|
206
|
+
* @property {string[]} [synonyms]
|
|
207
|
+
* @property {number} [uid]
|
|
208
|
+
* @property {UserSerializer} [verified_by]
|
|
209
|
+
* @property {string} [verified_on]
|
|
210
|
+
* @property {Object} [warnings]
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @typedef GetCompanyProfileSerializerResponse
|
|
215
|
+
* @property {Object} [_custom_json]
|
|
216
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
217
|
+
* @property {BusinessCountryInfo} [business_country_info]
|
|
218
|
+
* @property {BusinessDetails} [business_details]
|
|
219
|
+
* @property {string} [business_info]
|
|
220
|
+
* @property {string} [business_type]
|
|
221
|
+
* @property {string} company_type
|
|
222
|
+
* @property {ContactDetails} [contact_details]
|
|
223
|
+
* @property {UserSerializer} [created_by]
|
|
224
|
+
* @property {string} [created_on]
|
|
225
|
+
* @property {Document[]} [documents]
|
|
226
|
+
* @property {boolean} [franchise_enabled]
|
|
227
|
+
* @property {string} [mode]
|
|
228
|
+
* @property {UserSerializer} [modified_by]
|
|
229
|
+
* @property {string} [modified_on]
|
|
230
|
+
* @property {string} [name]
|
|
231
|
+
* @property {string[]} [notification_emails]
|
|
232
|
+
* @property {string} [stage]
|
|
233
|
+
* @property {CompanyTaxesSerializer[]} [taxes]
|
|
234
|
+
* @property {number} uid
|
|
235
|
+
* @property {UserSerializer} [verified_by]
|
|
236
|
+
* @property {string} [verified_on]
|
|
237
|
+
* @property {Object} [warnings]
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @typedef GetCompanySerializer
|
|
242
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
243
|
+
* @property {string} [business_type]
|
|
244
|
+
* @property {string} [company_type]
|
|
245
|
+
* @property {UserSerializer} [created_by]
|
|
246
|
+
* @property {string} [created_on]
|
|
247
|
+
* @property {UserSerializer} [modified_by]
|
|
248
|
+
* @property {string} [modified_on]
|
|
249
|
+
* @property {string} [name]
|
|
250
|
+
* @property {string} [reject_reason]
|
|
251
|
+
* @property {string} [stage]
|
|
252
|
+
* @property {number} [uid]
|
|
253
|
+
* @property {UserSerializer} [verified_by]
|
|
254
|
+
* @property {string} [verified_on]
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @typedef GetLocationSerializer
|
|
259
|
+
* @property {Object} [_custom_json]
|
|
260
|
+
* @property {GetAddressSerializer} address
|
|
261
|
+
* @property {boolean} [auto_invoice]
|
|
262
|
+
* @property {string} code
|
|
263
|
+
* @property {GetCompanySerializer} [company]
|
|
264
|
+
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
265
|
+
* @property {UserSerializer} [created_by]
|
|
266
|
+
* @property {string} [created_on]
|
|
267
|
+
* @property {boolean} [credit_note]
|
|
268
|
+
* @property {string} display_name
|
|
269
|
+
* @property {Document[]} [documents]
|
|
270
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
271
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
272
|
+
* @property {LocationManagerSerializer} [manager]
|
|
273
|
+
* @property {UserSerializer} [modified_by]
|
|
274
|
+
* @property {string} [modified_on]
|
|
275
|
+
* @property {string} name
|
|
276
|
+
* @property {string[]} [notification_emails]
|
|
277
|
+
* @property {string} [phone_number]
|
|
278
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
279
|
+
* @property {string} [stage]
|
|
280
|
+
* @property {string} [store_type]
|
|
281
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
282
|
+
* @property {number} [uid]
|
|
283
|
+
* @property {UserSerializer} [verified_by]
|
|
284
|
+
* @property {string} [verified_on]
|
|
285
|
+
* @property {Object} [warnings]
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @typedef HolidayDateSerializer
|
|
290
|
+
* @property {string} end_date
|
|
291
|
+
* @property {string} start_date
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @typedef HolidaySchemaSerializer
|
|
296
|
+
* @property {HolidayDateSerializer} date
|
|
297
|
+
* @property {string} holiday_type
|
|
298
|
+
* @property {string} title
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @typedef InvoiceCredSerializer
|
|
303
|
+
* @property {boolean} [enabled]
|
|
304
|
+
* @property {string} [password]
|
|
305
|
+
* @property {string} [username]
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @typedef InvoiceDetailsSerializer
|
|
310
|
+
* @property {InvoiceCredSerializer} [e_invoice]
|
|
311
|
+
* @property {InvoiceCredSerializer} [e_waybill]
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @typedef LocationDayWiseSerializer
|
|
316
|
+
* @property {LocationTimingSerializer} [closing]
|
|
317
|
+
* @property {boolean} open
|
|
318
|
+
* @property {LocationTimingSerializer} [opening]
|
|
319
|
+
* @property {string} weekday
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @typedef LocationListSerializer
|
|
324
|
+
* @property {GetLocationSerializer[]} [items]
|
|
325
|
+
* @property {Page} [page]
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @typedef LocationManagerSerializer
|
|
330
|
+
* @property {string} [email]
|
|
331
|
+
* @property {SellerPhoneNumber} mobile_no
|
|
332
|
+
* @property {string} [name]
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @typedef LocationSerializer
|
|
337
|
+
* @property {Object} [_custom_json]
|
|
338
|
+
* @property {AddressSerializer} address
|
|
339
|
+
* @property {boolean} [auto_invoice]
|
|
340
|
+
* @property {string} code
|
|
341
|
+
* @property {number} company
|
|
342
|
+
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
343
|
+
* @property {boolean} [credit_note]
|
|
344
|
+
* @property {string} display_name
|
|
345
|
+
* @property {Document[]} [documents]
|
|
346
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
347
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
348
|
+
* @property {LocationManagerSerializer} [manager]
|
|
349
|
+
* @property {string} name
|
|
350
|
+
* @property {string[]} [notification_emails]
|
|
351
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
352
|
+
* @property {string} [stage]
|
|
353
|
+
* @property {string} [store_type]
|
|
354
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
355
|
+
* @property {number} [uid]
|
|
356
|
+
* @property {Object} [warnings]
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @typedef LocationTimingSerializer
|
|
361
|
+
* @property {number} hour
|
|
362
|
+
* @property {number} minute
|
|
363
|
+
*/
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @typedef MetricsSerializer
|
|
367
|
+
* @property {DocumentsObj} [brand]
|
|
368
|
+
* @property {DocumentsObj} [company_documents]
|
|
369
|
+
* @property {DocumentsObj} [product]
|
|
370
|
+
* @property {string} [stage]
|
|
371
|
+
* @property {DocumentsObj} [store]
|
|
372
|
+
* @property {DocumentsObj} [store_documents]
|
|
373
|
+
* @property {number} [uid]
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @typedef Page
|
|
378
|
+
* @property {number} [current]
|
|
379
|
+
* @property {boolean} [has_next]
|
|
380
|
+
* @property {boolean} [has_previous]
|
|
381
|
+
* @property {number} [item_total]
|
|
382
|
+
* @property {string} [next_id]
|
|
383
|
+
* @property {number} [size]
|
|
384
|
+
* @property {string} type
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @typedef ProductReturnConfigSerializer
|
|
389
|
+
* @property {boolean} [on_same_store]
|
|
390
|
+
* @property {number} [store_uid]
|
|
391
|
+
*/
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @typedef ProfileSuccessResponse
|
|
395
|
+
* @property {string} [message]
|
|
396
|
+
* @property {boolean} [success]
|
|
397
|
+
* @property {number} [uid]
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @typedef SellerPhoneNumber
|
|
402
|
+
* @property {number} country_code
|
|
403
|
+
* @property {string} number
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @typedef UpdateCompany
|
|
408
|
+
* @property {Object} [_custom_json]
|
|
409
|
+
* @property {CreateUpdateAddressSerializer[]} [addresses]
|
|
410
|
+
* @property {BusinessDetails} [business_details]
|
|
411
|
+
* @property {string} [business_info]
|
|
412
|
+
* @property {string} [business_type]
|
|
413
|
+
* @property {string} [company_type]
|
|
414
|
+
* @property {ContactDetails} [contact_details]
|
|
415
|
+
* @property {Document[]} [documents]
|
|
416
|
+
* @property {boolean} [franchise_enabled]
|
|
417
|
+
* @property {string} [name]
|
|
418
|
+
* @property {string[]} [notification_emails]
|
|
419
|
+
* @property {string} [reject_reason]
|
|
420
|
+
* @property {CompanyTaxesSerializer1[]} [taxes]
|
|
421
|
+
* @property {Object} [warnings]
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @typedef UserSerializer
|
|
426
|
+
* @property {string} [contact]
|
|
427
|
+
* @property {string} [user_id]
|
|
428
|
+
* @property {string} [username]
|
|
429
|
+
*/
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @typedef Website
|
|
433
|
+
* @property {string} [url]
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
class CompanyProfilePlatformModel {
|
|
437
|
+
/** @returns {AddressSerializer} */
|
|
4
438
|
static AddressSerializer() {
|
|
5
439
|
return Joi.object({
|
|
440
|
+
address_type: Joi.string().allow(""),
|
|
6
441
|
address1: Joi.string().allow(""),
|
|
7
442
|
address2: Joi.string().allow(""),
|
|
8
|
-
address_type: Joi.string().allow(""),
|
|
9
443
|
city: Joi.string().allow(""),
|
|
10
444
|
country: Joi.string().allow(""),
|
|
11
445
|
country_code: Joi.string().allow(""),
|
|
@@ -16,34 +450,48 @@ class CompanyProfileModel {
|
|
|
16
450
|
state: Joi.string().allow(""),
|
|
17
451
|
});
|
|
18
452
|
}
|
|
453
|
+
|
|
454
|
+
/** @returns {BrandBannerSerializer} */
|
|
19
455
|
static BrandBannerSerializer() {
|
|
20
456
|
return Joi.object({
|
|
21
457
|
landscape: Joi.string().allow("").required(),
|
|
22
458
|
portrait: Joi.string().allow("").required(),
|
|
23
459
|
});
|
|
24
460
|
}
|
|
461
|
+
|
|
462
|
+
/** @returns {BulkLocationSerializer} */
|
|
25
463
|
static BulkLocationSerializer() {
|
|
26
464
|
return Joi.object({
|
|
27
|
-
data: Joi.array().items(
|
|
465
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
|
|
28
466
|
});
|
|
29
467
|
}
|
|
468
|
+
|
|
469
|
+
/** @returns {BusinessCountryInfo} */
|
|
30
470
|
static BusinessCountryInfo() {
|
|
31
471
|
return Joi.object({
|
|
32
472
|
country: Joi.string().allow(""),
|
|
33
473
|
country_code: Joi.string().allow(""),
|
|
34
474
|
});
|
|
35
475
|
}
|
|
476
|
+
|
|
477
|
+
/** @returns {BusinessDetails} */
|
|
36
478
|
static BusinessDetails() {
|
|
37
479
|
return Joi.object({
|
|
38
|
-
website:
|
|
480
|
+
website: CompanyProfilePlatformModel.Website(),
|
|
39
481
|
});
|
|
40
482
|
}
|
|
483
|
+
|
|
484
|
+
/** @returns {CompanyBrandListSerializer} */
|
|
41
485
|
static CompanyBrandListSerializer() {
|
|
42
486
|
return Joi.object({
|
|
43
|
-
items: Joi.array().items(
|
|
44
|
-
|
|
487
|
+
items: Joi.array().items(
|
|
488
|
+
CompanyProfilePlatformModel.CompanyBrandSerializer()
|
|
489
|
+
),
|
|
490
|
+
page: CompanyProfilePlatformModel.Page(),
|
|
45
491
|
});
|
|
46
492
|
}
|
|
493
|
+
|
|
494
|
+
/** @returns {CompanyBrandPostRequestSerializer} */
|
|
47
495
|
static CompanyBrandPostRequestSerializer() {
|
|
48
496
|
return Joi.object({
|
|
49
497
|
brands: Joi.array().items(Joi.number()).required(),
|
|
@@ -51,56 +499,70 @@ class CompanyProfileModel {
|
|
|
51
499
|
uid: Joi.number(),
|
|
52
500
|
});
|
|
53
501
|
}
|
|
502
|
+
|
|
503
|
+
/** @returns {CompanyBrandSerializer} */
|
|
54
504
|
static CompanyBrandSerializer() {
|
|
55
505
|
return Joi.object({
|
|
56
|
-
brand:
|
|
57
|
-
company:
|
|
58
|
-
created_by:
|
|
506
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
|
|
507
|
+
company: CompanyProfilePlatformModel.CompanySerializer(),
|
|
508
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
59
509
|
created_on: Joi.string().allow(""),
|
|
60
|
-
modified_by:
|
|
510
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
61
511
|
modified_on: Joi.string().allow(""),
|
|
62
512
|
reject_reason: Joi.string().allow(""),
|
|
63
513
|
stage: Joi.string().allow(""),
|
|
64
514
|
uid: Joi.number(),
|
|
65
|
-
verified_by:
|
|
515
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
66
516
|
verified_on: Joi.string().allow(""),
|
|
67
517
|
warnings: Joi.any(),
|
|
68
518
|
});
|
|
69
519
|
}
|
|
520
|
+
|
|
521
|
+
/** @returns {CompanyDetails} */
|
|
70
522
|
static CompanyDetails() {
|
|
71
523
|
return Joi.object({
|
|
72
|
-
socials: Joi.array().items(
|
|
524
|
+
socials: Joi.array().items(
|
|
525
|
+
CompanyProfilePlatformModel.CompanySocialAccounts()
|
|
526
|
+
),
|
|
73
527
|
website_url: Joi.string().allow(""),
|
|
74
528
|
});
|
|
75
529
|
}
|
|
530
|
+
|
|
531
|
+
/** @returns {CompanySerializer} */
|
|
76
532
|
static CompanySerializer() {
|
|
77
533
|
return Joi.object({
|
|
78
534
|
_custom_json: Joi.any(),
|
|
79
|
-
addresses: Joi.array().items(
|
|
80
|
-
|
|
535
|
+
addresses: Joi.array().items(
|
|
536
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
537
|
+
),
|
|
538
|
+
business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
|
|
81
539
|
business_type: Joi.string().allow("").required(),
|
|
82
540
|
company_type: Joi.string().allow("").required(),
|
|
83
|
-
created_by:
|
|
541
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
84
542
|
created_on: Joi.string().allow(""),
|
|
85
|
-
details:
|
|
543
|
+
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
86
544
|
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
87
|
-
modified_by:
|
|
545
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
88
546
|
modified_on: Joi.string().allow(""),
|
|
89
547
|
name: Joi.string().allow(""),
|
|
90
548
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
91
549
|
reject_reason: Joi.string().allow(""),
|
|
92
550
|
stage: Joi.string().allow(""),
|
|
93
551
|
uid: Joi.number(),
|
|
94
|
-
verified_by:
|
|
552
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
95
553
|
verified_on: Joi.string().allow(""),
|
|
96
554
|
});
|
|
97
555
|
}
|
|
556
|
+
|
|
557
|
+
/** @returns {CompanySocialAccounts} */
|
|
98
558
|
static CompanySocialAccounts() {
|
|
99
559
|
return Joi.object({
|
|
100
560
|
name: Joi.string().allow("").required(),
|
|
101
561
|
url: Joi.string().allow("").required(),
|
|
102
562
|
});
|
|
103
563
|
}
|
|
564
|
+
|
|
565
|
+
/** @returns {CompanyTaxesSerializer} */
|
|
104
566
|
static CompanyTaxesSerializer() {
|
|
105
567
|
return Joi.object({
|
|
106
568
|
effective_date: Joi.string().allow(""),
|
|
@@ -108,6 +570,8 @@ class CompanyProfileModel {
|
|
|
108
570
|
rate: Joi.number(),
|
|
109
571
|
});
|
|
110
572
|
}
|
|
573
|
+
|
|
574
|
+
/** @returns {CompanyTaxesSerializer1} */
|
|
111
575
|
static CompanyTaxesSerializer1() {
|
|
112
576
|
return Joi.object({
|
|
113
577
|
effective_date: Joi.string().allow(""),
|
|
@@ -115,17 +579,21 @@ class CompanyProfileModel {
|
|
|
115
579
|
rate: Joi.number(),
|
|
116
580
|
});
|
|
117
581
|
}
|
|
582
|
+
|
|
583
|
+
/** @returns {ContactDetails} */
|
|
118
584
|
static ContactDetails() {
|
|
119
585
|
return Joi.object({
|
|
120
586
|
emails: Joi.array().items(Joi.string().allow("")),
|
|
121
|
-
phone: Joi.array().items(
|
|
587
|
+
phone: Joi.array().items(CompanyProfilePlatformModel.SellerPhoneNumber()),
|
|
122
588
|
});
|
|
123
589
|
}
|
|
590
|
+
|
|
591
|
+
/** @returns {CreateUpdateAddressSerializer} */
|
|
124
592
|
static CreateUpdateAddressSerializer() {
|
|
125
593
|
return Joi.object({
|
|
594
|
+
address_type: Joi.string().allow("").required(),
|
|
126
595
|
address1: Joi.string().allow("").required(),
|
|
127
596
|
address2: Joi.string().allow(""),
|
|
128
|
-
address_type: Joi.string().allow("").required(),
|
|
129
597
|
city: Joi.string().allow("").required(),
|
|
130
598
|
country: Joi.string().allow("").required(),
|
|
131
599
|
country_code: Joi.string().allow(""),
|
|
@@ -136,11 +604,13 @@ class CompanyProfileModel {
|
|
|
136
604
|
state: Joi.string().allow("").required(),
|
|
137
605
|
});
|
|
138
606
|
}
|
|
607
|
+
|
|
608
|
+
/** @returns {CreateUpdateBrandRequestSerializer} */
|
|
139
609
|
static CreateUpdateBrandRequestSerializer() {
|
|
140
610
|
return Joi.object({
|
|
141
611
|
_custom_json: Joi.any(),
|
|
142
612
|
_locale_language: Joi.any(),
|
|
143
|
-
banner:
|
|
613
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
|
|
144
614
|
brand_tier: Joi.string().allow(""),
|
|
145
615
|
company_id: Joi.number(),
|
|
146
616
|
description: Joi.string().allow(""),
|
|
@@ -150,6 +620,8 @@ class CompanyProfileModel {
|
|
|
150
620
|
uid: Joi.number(),
|
|
151
621
|
});
|
|
152
622
|
}
|
|
623
|
+
|
|
624
|
+
/** @returns {Document} */
|
|
153
625
|
static Document() {
|
|
154
626
|
return Joi.object({
|
|
155
627
|
legal_name: Joi.string().allow(""),
|
|
@@ -159,12 +631,16 @@ class CompanyProfileModel {
|
|
|
159
631
|
verified: Joi.boolean(),
|
|
160
632
|
});
|
|
161
633
|
}
|
|
634
|
+
|
|
635
|
+
/** @returns {DocumentsObj} */
|
|
162
636
|
static DocumentsObj() {
|
|
163
637
|
return Joi.object({
|
|
164
638
|
pending: Joi.number(),
|
|
165
639
|
verified: Joi.number(),
|
|
166
640
|
});
|
|
167
641
|
}
|
|
642
|
+
|
|
643
|
+
/** @returns {ErrorResponse} */
|
|
168
644
|
static ErrorResponse() {
|
|
169
645
|
return Joi.object({
|
|
170
646
|
code: Joi.string().allow(""),
|
|
@@ -173,11 +649,13 @@ class CompanyProfileModel {
|
|
|
173
649
|
status: Joi.number(),
|
|
174
650
|
});
|
|
175
651
|
}
|
|
652
|
+
|
|
653
|
+
/** @returns {GetAddressSerializer} */
|
|
176
654
|
static GetAddressSerializer() {
|
|
177
655
|
return Joi.object({
|
|
656
|
+
address_type: Joi.string().allow(""),
|
|
178
657
|
address1: Joi.string().allow(""),
|
|
179
658
|
address2: Joi.string().allow(""),
|
|
180
|
-
address_type: Joi.string().allow(""),
|
|
181
659
|
city: Joi.string().allow(""),
|
|
182
660
|
country: Joi.string().allow(""),
|
|
183
661
|
country_code: Joi.string().allow(""),
|
|
@@ -188,17 +666,19 @@ class CompanyProfileModel {
|
|
|
188
666
|
state: Joi.string().allow(""),
|
|
189
667
|
});
|
|
190
668
|
}
|
|
669
|
+
|
|
670
|
+
/** @returns {GetBrandResponseSerializer} */
|
|
191
671
|
static GetBrandResponseSerializer() {
|
|
192
672
|
return Joi.object({
|
|
193
673
|
_custom_json: Joi.any(),
|
|
194
674
|
_locale_language: Joi.any(),
|
|
195
|
-
banner:
|
|
196
|
-
created_by:
|
|
675
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer(),
|
|
676
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
197
677
|
created_on: Joi.string().allow(""),
|
|
198
678
|
description: Joi.string().allow(""),
|
|
199
679
|
logo: Joi.string().allow(""),
|
|
200
680
|
mode: Joi.string().allow(""),
|
|
201
|
-
modified_by:
|
|
681
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
202
682
|
modified_on: Joi.string().allow(""),
|
|
203
683
|
name: Joi.string().allow("").required(),
|
|
204
684
|
reject_reason: Joi.string().allow(""),
|
|
@@ -206,103 +686,123 @@ class CompanyProfileModel {
|
|
|
206
686
|
stage: Joi.string().allow(""),
|
|
207
687
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
208
688
|
uid: Joi.number(),
|
|
209
|
-
verified_by:
|
|
689
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
210
690
|
verified_on: Joi.string().allow(""),
|
|
211
691
|
warnings: Joi.any(),
|
|
212
692
|
});
|
|
213
693
|
}
|
|
694
|
+
|
|
695
|
+
/** @returns {GetCompanyProfileSerializerResponse} */
|
|
214
696
|
static GetCompanyProfileSerializerResponse() {
|
|
215
697
|
return Joi.object({
|
|
216
698
|
_custom_json: Joi.any(),
|
|
217
|
-
addresses: Joi.array().items(
|
|
218
|
-
|
|
219
|
-
|
|
699
|
+
addresses: Joi.array().items(
|
|
700
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
701
|
+
),
|
|
702
|
+
business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
|
|
703
|
+
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
220
704
|
business_info: Joi.string().allow(""),
|
|
221
705
|
business_type: Joi.string().allow(""),
|
|
222
706
|
company_type: Joi.string().allow("").required(),
|
|
223
|
-
contact_details:
|
|
224
|
-
created_by:
|
|
707
|
+
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
708
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
225
709
|
created_on: Joi.string().allow(""),
|
|
226
|
-
documents: Joi.array().items(
|
|
710
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
227
711
|
franchise_enabled: Joi.boolean(),
|
|
228
712
|
mode: Joi.string().allow(""),
|
|
229
|
-
modified_by:
|
|
713
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
230
714
|
modified_on: Joi.string().allow(""),
|
|
231
715
|
name: Joi.string().allow(""),
|
|
232
716
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
233
717
|
stage: Joi.string().allow(""),
|
|
234
|
-
taxes: Joi.array().items(
|
|
718
|
+
taxes: Joi.array().items(
|
|
719
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer()
|
|
720
|
+
),
|
|
235
721
|
uid: Joi.number().required(),
|
|
236
|
-
verified_by:
|
|
722
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
237
723
|
verified_on: Joi.string().allow(""),
|
|
238
724
|
warnings: Joi.any(),
|
|
239
725
|
});
|
|
240
726
|
}
|
|
727
|
+
|
|
728
|
+
/** @returns {GetCompanySerializer} */
|
|
241
729
|
static GetCompanySerializer() {
|
|
242
730
|
return Joi.object({
|
|
243
|
-
addresses: Joi.array().items(
|
|
731
|
+
addresses: Joi.array().items(
|
|
732
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
733
|
+
),
|
|
244
734
|
business_type: Joi.string().allow(""),
|
|
245
735
|
company_type: Joi.string().allow(""),
|
|
246
|
-
created_by:
|
|
736
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
247
737
|
created_on: Joi.string().allow(""),
|
|
248
|
-
modified_by:
|
|
738
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
249
739
|
modified_on: Joi.string().allow(""),
|
|
250
740
|
name: Joi.string().allow(""),
|
|
251
741
|
reject_reason: Joi.string().allow(""),
|
|
252
742
|
stage: Joi.string().allow(""),
|
|
253
743
|
uid: Joi.number(),
|
|
254
|
-
verified_by:
|
|
744
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
255
745
|
verified_on: Joi.string().allow(""),
|
|
256
746
|
});
|
|
257
747
|
}
|
|
748
|
+
|
|
749
|
+
/** @returns {GetLocationSerializer} */
|
|
258
750
|
static GetLocationSerializer() {
|
|
259
751
|
return Joi.object({
|
|
260
752
|
_custom_json: Joi.any(),
|
|
261
|
-
address:
|
|
753
|
+
address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
|
|
262
754
|
auto_invoice: Joi.boolean(),
|
|
263
755
|
code: Joi.string().allow("").required(),
|
|
264
|
-
company:
|
|
756
|
+
company: CompanyProfilePlatformModel.GetCompanySerializer(),
|
|
265
757
|
contact_numbers: Joi.array().items(
|
|
266
|
-
|
|
758
|
+
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
267
759
|
),
|
|
268
|
-
created_by:
|
|
760
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
269
761
|
created_on: Joi.string().allow(""),
|
|
270
762
|
credit_note: Joi.boolean(),
|
|
271
763
|
display_name: Joi.string().allow("").required(),
|
|
272
|
-
documents: Joi.array().items(
|
|
273
|
-
gst_credentials:
|
|
274
|
-
holiday: Joi.array().items(
|
|
275
|
-
|
|
276
|
-
|
|
764
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
765
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
766
|
+
holiday: Joi.array().items(
|
|
767
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
768
|
+
),
|
|
769
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
770
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
277
771
|
modified_on: Joi.string().allow(""),
|
|
278
772
|
name: Joi.string().allow("").required(),
|
|
279
773
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
280
774
|
phone_number: Joi.string().allow(""),
|
|
281
|
-
product_return_config:
|
|
775
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
282
776
|
stage: Joi.string().allow(""),
|
|
283
777
|
store_type: Joi.string().allow(""),
|
|
284
778
|
timing: Joi.array().items(
|
|
285
|
-
|
|
779
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
286
780
|
),
|
|
287
781
|
uid: Joi.number(),
|
|
288
|
-
verified_by:
|
|
782
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
289
783
|
verified_on: Joi.string().allow(""),
|
|
290
784
|
warnings: Joi.any(),
|
|
291
785
|
});
|
|
292
786
|
}
|
|
787
|
+
|
|
788
|
+
/** @returns {HolidayDateSerializer} */
|
|
293
789
|
static HolidayDateSerializer() {
|
|
294
790
|
return Joi.object({
|
|
295
791
|
end_date: Joi.string().allow("").required(),
|
|
296
792
|
start_date: Joi.string().allow("").required(),
|
|
297
793
|
});
|
|
298
794
|
}
|
|
795
|
+
|
|
796
|
+
/** @returns {HolidaySchemaSerializer} */
|
|
299
797
|
static HolidaySchemaSerializer() {
|
|
300
798
|
return Joi.object({
|
|
301
|
-
date:
|
|
799
|
+
date: CompanyProfilePlatformModel.HolidayDateSerializer().required(),
|
|
302
800
|
holiday_type: Joi.string().allow("").required(),
|
|
303
801
|
title: Joi.string().allow("").required(),
|
|
304
802
|
});
|
|
305
803
|
}
|
|
804
|
+
|
|
805
|
+
/** @returns {InvoiceCredSerializer} */
|
|
306
806
|
static InvoiceCredSerializer() {
|
|
307
807
|
return Joi.object({
|
|
308
808
|
enabled: Joi.boolean(),
|
|
@@ -310,78 +810,98 @@ class CompanyProfileModel {
|
|
|
310
810
|
username: Joi.string().allow(""),
|
|
311
811
|
});
|
|
312
812
|
}
|
|
813
|
+
|
|
814
|
+
/** @returns {InvoiceDetailsSerializer} */
|
|
313
815
|
static InvoiceDetailsSerializer() {
|
|
314
816
|
return Joi.object({
|
|
315
|
-
e_invoice:
|
|
316
|
-
e_waybill:
|
|
817
|
+
e_invoice: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
818
|
+
e_waybill: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
317
819
|
});
|
|
318
820
|
}
|
|
821
|
+
|
|
822
|
+
/** @returns {LocationDayWiseSerializer} */
|
|
319
823
|
static LocationDayWiseSerializer() {
|
|
320
824
|
return Joi.object({
|
|
321
|
-
closing:
|
|
825
|
+
closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
322
826
|
open: Joi.boolean().required(),
|
|
323
|
-
opening:
|
|
827
|
+
opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
324
828
|
weekday: Joi.string().allow("").required(),
|
|
325
829
|
});
|
|
326
830
|
}
|
|
831
|
+
|
|
832
|
+
/** @returns {LocationListSerializer} */
|
|
327
833
|
static LocationListSerializer() {
|
|
328
834
|
return Joi.object({
|
|
329
|
-
items: Joi.array().items(
|
|
330
|
-
|
|
835
|
+
items: Joi.array().items(
|
|
836
|
+
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
837
|
+
),
|
|
838
|
+
page: CompanyProfilePlatformModel.Page(),
|
|
331
839
|
});
|
|
332
840
|
}
|
|
841
|
+
|
|
842
|
+
/** @returns {LocationManagerSerializer} */
|
|
333
843
|
static LocationManagerSerializer() {
|
|
334
844
|
return Joi.object({
|
|
335
845
|
email: Joi.string().allow(""),
|
|
336
|
-
mobile_no:
|
|
846
|
+
mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
|
|
337
847
|
name: Joi.string().allow(""),
|
|
338
848
|
});
|
|
339
849
|
}
|
|
850
|
+
|
|
851
|
+
/** @returns {LocationSerializer} */
|
|
340
852
|
static LocationSerializer() {
|
|
341
853
|
return Joi.object({
|
|
342
854
|
_custom_json: Joi.any(),
|
|
343
|
-
address:
|
|
855
|
+
address: CompanyProfilePlatformModel.AddressSerializer().required(),
|
|
344
856
|
auto_invoice: Joi.boolean(),
|
|
345
857
|
code: Joi.string().allow("").required(),
|
|
346
858
|
company: Joi.number().required(),
|
|
347
859
|
contact_numbers: Joi.array().items(
|
|
348
|
-
|
|
860
|
+
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
349
861
|
),
|
|
350
862
|
credit_note: Joi.boolean(),
|
|
351
863
|
display_name: Joi.string().allow("").required(),
|
|
352
|
-
documents: Joi.array().items(
|
|
353
|
-
gst_credentials:
|
|
354
|
-
holiday: Joi.array().items(
|
|
355
|
-
|
|
864
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
865
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
866
|
+
holiday: Joi.array().items(
|
|
867
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
868
|
+
),
|
|
869
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
356
870
|
name: Joi.string().allow("").required(),
|
|
357
871
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
358
|
-
product_return_config:
|
|
872
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
359
873
|
stage: Joi.string().allow(""),
|
|
360
874
|
store_type: Joi.string().allow(""),
|
|
361
875
|
timing: Joi.array().items(
|
|
362
|
-
|
|
876
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
363
877
|
),
|
|
364
878
|
uid: Joi.number(),
|
|
365
879
|
warnings: Joi.any(),
|
|
366
880
|
});
|
|
367
881
|
}
|
|
882
|
+
|
|
883
|
+
/** @returns {LocationTimingSerializer} */
|
|
368
884
|
static LocationTimingSerializer() {
|
|
369
885
|
return Joi.object({
|
|
370
886
|
hour: Joi.number().required(),
|
|
371
887
|
minute: Joi.number().required(),
|
|
372
888
|
});
|
|
373
889
|
}
|
|
890
|
+
|
|
891
|
+
/** @returns {MetricsSerializer} */
|
|
374
892
|
static MetricsSerializer() {
|
|
375
893
|
return Joi.object({
|
|
376
|
-
brand:
|
|
377
|
-
company_documents:
|
|
378
|
-
product:
|
|
894
|
+
brand: CompanyProfilePlatformModel.DocumentsObj(),
|
|
895
|
+
company_documents: CompanyProfilePlatformModel.DocumentsObj(),
|
|
896
|
+
product: CompanyProfilePlatformModel.DocumentsObj(),
|
|
379
897
|
stage: Joi.string().allow(""),
|
|
380
|
-
store:
|
|
381
|
-
store_documents:
|
|
898
|
+
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
899
|
+
store_documents: CompanyProfilePlatformModel.DocumentsObj(),
|
|
382
900
|
uid: Joi.number(),
|
|
383
901
|
});
|
|
384
902
|
}
|
|
903
|
+
|
|
904
|
+
/** @returns {Page} */
|
|
385
905
|
static Page() {
|
|
386
906
|
return Joi.object({
|
|
387
907
|
current: Joi.number(),
|
|
@@ -393,12 +913,16 @@ class CompanyProfileModel {
|
|
|
393
913
|
type: Joi.string().allow("").required(),
|
|
394
914
|
});
|
|
395
915
|
}
|
|
916
|
+
|
|
917
|
+
/** @returns {ProductReturnConfigSerializer} */
|
|
396
918
|
static ProductReturnConfigSerializer() {
|
|
397
919
|
return Joi.object({
|
|
398
920
|
on_same_store: Joi.boolean(),
|
|
399
921
|
store_uid: Joi.number(),
|
|
400
922
|
});
|
|
401
923
|
}
|
|
924
|
+
|
|
925
|
+
/** @returns {ProfileSuccessResponse} */
|
|
402
926
|
static ProfileSuccessResponse() {
|
|
403
927
|
return Joi.object({
|
|
404
928
|
message: Joi.string().allow(""),
|
|
@@ -406,32 +930,40 @@ class CompanyProfileModel {
|
|
|
406
930
|
uid: Joi.number(),
|
|
407
931
|
});
|
|
408
932
|
}
|
|
933
|
+
|
|
934
|
+
/** @returns {SellerPhoneNumber} */
|
|
409
935
|
static SellerPhoneNumber() {
|
|
410
936
|
return Joi.object({
|
|
411
937
|
country_code: Joi.number().required(),
|
|
412
938
|
number: Joi.string().allow("").required(),
|
|
413
939
|
});
|
|
414
940
|
}
|
|
941
|
+
|
|
942
|
+
/** @returns {UpdateCompany} */
|
|
415
943
|
static UpdateCompany() {
|
|
416
944
|
return Joi.object({
|
|
417
945
|
_custom_json: Joi.any(),
|
|
418
946
|
addresses: Joi.array().items(
|
|
419
|
-
|
|
947
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
|
|
420
948
|
),
|
|
421
|
-
business_details:
|
|
949
|
+
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
422
950
|
business_info: Joi.string().allow(""),
|
|
423
951
|
business_type: Joi.string().allow(""),
|
|
424
952
|
company_type: Joi.string().allow(""),
|
|
425
|
-
contact_details:
|
|
426
|
-
documents: Joi.array().items(
|
|
953
|
+
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
954
|
+
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
427
955
|
franchise_enabled: Joi.boolean(),
|
|
428
956
|
name: Joi.string().allow(""),
|
|
429
957
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
430
958
|
reject_reason: Joi.string().allow(""),
|
|
431
|
-
taxes: Joi.array().items(
|
|
959
|
+
taxes: Joi.array().items(
|
|
960
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer1()
|
|
961
|
+
),
|
|
432
962
|
warnings: Joi.any(),
|
|
433
963
|
});
|
|
434
964
|
}
|
|
965
|
+
|
|
966
|
+
/** @returns {UserSerializer} */
|
|
435
967
|
static UserSerializer() {
|
|
436
968
|
return Joi.object({
|
|
437
969
|
contact: Joi.string().allow(""),
|
|
@@ -439,10 +971,12 @@ class CompanyProfileModel {
|
|
|
439
971
|
username: Joi.string().allow(""),
|
|
440
972
|
});
|
|
441
973
|
}
|
|
974
|
+
|
|
975
|
+
/** @returns {Website} */
|
|
442
976
|
static Website() {
|
|
443
977
|
return Joi.object({
|
|
444
978
|
url: Joi.string().allow(""),
|
|
445
979
|
});
|
|
446
980
|
}
|
|
447
981
|
}
|
|
448
|
-
module.exports =
|
|
982
|
+
module.exports = CompanyProfilePlatformModel;
|