@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef CompanyTaxesSerializer
|
|
5
5
|
* @property {string} [effective_date]
|
|
6
6
|
* @property {number} [rate]
|
|
7
7
|
* @property {boolean} [enable]
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @typedef
|
|
11
|
+
* @typedef UserSerializer
|
|
12
12
|
* @property {string} [user_id]
|
|
13
13
|
* @property {string} [contact]
|
|
14
14
|
* @property {string} [username]
|
|
@@ -61,7 +61,7 @@ const Joi = require("joi");
|
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* @typedef
|
|
64
|
+
* @typedef GetAddressSerializer
|
|
65
65
|
* @property {string} [landmark]
|
|
66
66
|
* @property {string} [country_code]
|
|
67
67
|
* @property {number} [pincode]
|
|
@@ -78,14 +78,14 @@ const Joi = require("joi");
|
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* @typedef
|
|
81
|
+
* @typedef GetCompanyProfileSerializerResponse
|
|
82
82
|
* @property {string} [business_info]
|
|
83
|
-
* @property {
|
|
83
|
+
* @property {CompanyTaxesSerializer[]} [taxes]
|
|
84
84
|
* @property {string} [business_type]
|
|
85
85
|
* @property {string} [name]
|
|
86
86
|
* @property {Object} [_custom_json]
|
|
87
87
|
* @property {string} [verified_on]
|
|
88
|
-
* @property {
|
|
88
|
+
* @property {UserSerializer} [created_by]
|
|
89
89
|
* @property {string} [created_on]
|
|
90
90
|
* @property {Object} [warnings]
|
|
91
91
|
* @property {BusinessDetails} [business_details]
|
|
@@ -98,14 +98,14 @@ const Joi = require("joi");
|
|
|
98
98
|
* @property {string} [stage]
|
|
99
99
|
* @property {string} company_type
|
|
100
100
|
* @property {Document[]} [documents]
|
|
101
|
-
* @property {
|
|
102
|
-
* @property {
|
|
101
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
102
|
+
* @property {UserSerializer} [verified_by]
|
|
103
103
|
* @property {string[]} [notification_emails]
|
|
104
|
-
* @property {
|
|
104
|
+
* @property {UserSerializer} [modified_by]
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* @typedef
|
|
108
|
+
* @typedef ErrorResponse
|
|
109
109
|
* @property {string} [message]
|
|
110
110
|
* @property {string} [code]
|
|
111
111
|
* @property {number} [status]
|
|
@@ -120,7 +120,7 @@ const Joi = require("joi");
|
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* @typedef
|
|
123
|
+
* @typedef CreateUpdateAddressSerializer
|
|
124
124
|
* @property {string} [landmark]
|
|
125
125
|
* @property {string} [country_code]
|
|
126
126
|
* @property {number} pincode
|
|
@@ -145,7 +145,7 @@ const Joi = require("joi");
|
|
|
145
145
|
* @property {BusinessDetails} [business_details]
|
|
146
146
|
* @property {Document[]} [documents]
|
|
147
147
|
* @property {string} [business_type]
|
|
148
|
-
* @property {
|
|
148
|
+
* @property {CreateUpdateAddressSerializer[]} [addresses]
|
|
149
149
|
* @property {string[]} [notification_emails]
|
|
150
150
|
* @property {ContactDetails} [contact_details]
|
|
151
151
|
* @property {string} [reject_reason]
|
|
@@ -153,7 +153,7 @@ const Joi = require("joi");
|
|
|
153
153
|
*/
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* @typedef
|
|
156
|
+
* @typedef ProfileSuccessResponse
|
|
157
157
|
* @property {number} [uid]
|
|
158
158
|
* @property {string} [message]
|
|
159
159
|
* @property {boolean} [success]
|
|
@@ -166,7 +166,7 @@ const Joi = require("joi");
|
|
|
166
166
|
*/
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @typedef
|
|
169
|
+
* @typedef MetricsSerializer
|
|
170
170
|
* @property {string} [stage]
|
|
171
171
|
* @property {DocumentsObj} [store]
|
|
172
172
|
* @property {DocumentsObj} [company_documents]
|
|
@@ -177,19 +177,19 @@ const Joi = require("joi");
|
|
|
177
177
|
*/
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* @typedef
|
|
180
|
+
* @typedef BrandBannerSerializer
|
|
181
181
|
* @property {string} portrait
|
|
182
182
|
* @property {string} landscape
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* @typedef
|
|
187
|
-
* @property {
|
|
188
|
-
* @property {
|
|
186
|
+
* @typedef GetBrandResponseSerializer
|
|
187
|
+
* @property {UserSerializer} [modified_by]
|
|
188
|
+
* @property {BrandBannerSerializer} [banner]
|
|
189
189
|
* @property {string} name
|
|
190
190
|
* @property {Object} [_custom_json]
|
|
191
191
|
* @property {string} [verified_on]
|
|
192
|
-
* @property {
|
|
192
|
+
* @property {UserSerializer} [created_by]
|
|
193
193
|
* @property {string} [created_on]
|
|
194
194
|
* @property {Object} [warnings]
|
|
195
195
|
* @property {Object} [_locale_language]
|
|
@@ -199,14 +199,14 @@ const Joi = require("joi");
|
|
|
199
199
|
* @property {number} [uid]
|
|
200
200
|
* @property {string} [reject_reason]
|
|
201
201
|
* @property {string} [stage]
|
|
202
|
-
* @property {
|
|
202
|
+
* @property {UserSerializer} [verified_by]
|
|
203
203
|
* @property {string} [slug_key]
|
|
204
204
|
* @property {string} [logo]
|
|
205
205
|
* @property {string} [description]
|
|
206
206
|
*/
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* @typedef
|
|
209
|
+
* @typedef CreateBrandRequestSerializer
|
|
210
210
|
* @property {Object} [_custom_json]
|
|
211
211
|
* @property {Object} [_locale_language]
|
|
212
212
|
* @property {string[]} [synonyms]
|
|
@@ -215,13 +215,13 @@ const Joi = require("joi");
|
|
|
215
215
|
* @property {string} logo
|
|
216
216
|
* @property {string} [brand_tier]
|
|
217
217
|
* @property {number} [uid]
|
|
218
|
-
* @property {
|
|
218
|
+
* @property {BrandBannerSerializer} banner
|
|
219
219
|
* @property {string} name
|
|
220
220
|
* @property {string} [slug_key]
|
|
221
221
|
*/
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* @typedef
|
|
224
|
+
* @typedef UpdateBrandRequestSerializer
|
|
225
225
|
* @property {Object} [_custom_json]
|
|
226
226
|
* @property {Object} [_locale_language]
|
|
227
227
|
* @property {string[]} [synonyms]
|
|
@@ -230,7 +230,7 @@ const Joi = require("joi");
|
|
|
230
230
|
* @property {string} logo
|
|
231
231
|
* @property {string} [brand_tier]
|
|
232
232
|
* @property {number} [uid]
|
|
233
|
-
* @property {
|
|
233
|
+
* @property {BrandBannerSerializer} banner
|
|
234
234
|
* @property {string} name
|
|
235
235
|
*/
|
|
236
236
|
|
|
@@ -247,41 +247,41 @@ const Joi = require("joi");
|
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* @typedef
|
|
250
|
+
* @typedef CompanySerializer
|
|
251
251
|
* @property {string} [stage]
|
|
252
252
|
* @property {Object} [_custom_json]
|
|
253
253
|
* @property {string} [verified_on]
|
|
254
|
-
* @property {
|
|
254
|
+
* @property {UserSerializer} [verified_by]
|
|
255
255
|
* @property {string} [created_on]
|
|
256
|
-
* @property {
|
|
256
|
+
* @property {UserSerializer} [created_by]
|
|
257
257
|
* @property {string} company_type
|
|
258
258
|
* @property {string} [modified_on]
|
|
259
259
|
* @property {string[]} [market_channels]
|
|
260
260
|
* @property {string} business_type
|
|
261
|
-
* @property {
|
|
261
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
262
262
|
* @property {string[]} [notification_emails]
|
|
263
263
|
* @property {CompanyDetails} [details]
|
|
264
264
|
* @property {BusinessCountryInfo} [business_country_info]
|
|
265
265
|
* @property {number} [uid]
|
|
266
266
|
* @property {string} [reject_reason]
|
|
267
267
|
* @property {string} [name]
|
|
268
|
-
* @property {
|
|
268
|
+
* @property {UserSerializer} [modified_by]
|
|
269
269
|
*/
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
* @typedef
|
|
272
|
+
* @typedef CompanyBrandSerializer
|
|
273
273
|
* @property {string} [stage]
|
|
274
274
|
* @property {string} [verified_on]
|
|
275
|
-
* @property {
|
|
275
|
+
* @property {UserSerializer} [verified_by]
|
|
276
276
|
* @property {string} [created_on]
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {
|
|
277
|
+
* @property {UserSerializer} [created_by]
|
|
278
|
+
* @property {CompanySerializer} [company]
|
|
279
279
|
* @property {Object} [warnings]
|
|
280
280
|
* @property {string} [modified_on]
|
|
281
281
|
* @property {number} [uid]
|
|
282
282
|
* @property {string} [reject_reason]
|
|
283
|
-
* @property {
|
|
284
|
-
* @property {
|
|
283
|
+
* @property {GetBrandResponseSerializer} [brand]
|
|
284
|
+
* @property {UserSerializer} [modified_by]
|
|
285
285
|
*/
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -296,133 +296,133 @@ const Joi = require("joi");
|
|
|
296
296
|
*/
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {
|
|
299
|
+
* @typedef CompanyBrandListSerializer
|
|
300
|
+
* @property {CompanyBrandSerializer[]} [items]
|
|
301
301
|
* @property {Page} [page]
|
|
302
302
|
*/
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
* @typedef
|
|
305
|
+
* @typedef CompanyBrandPostRequestSerializer
|
|
306
306
|
* @property {number} [uid]
|
|
307
307
|
* @property {number[]} brands
|
|
308
308
|
* @property {number} company
|
|
309
309
|
*/
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* @typedef
|
|
312
|
+
* @typedef InvoiceCredSerializer
|
|
313
313
|
* @property {string} [username]
|
|
314
314
|
* @property {boolean} [enabled]
|
|
315
315
|
* @property {string} [password]
|
|
316
316
|
*/
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @typedef
|
|
320
|
-
* @property {
|
|
321
|
-
* @property {
|
|
319
|
+
* @typedef InvoiceDetailsSerializer
|
|
320
|
+
* @property {InvoiceCredSerializer} [e_invoice]
|
|
321
|
+
* @property {InvoiceCredSerializer} [e_waybill]
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* @typedef
|
|
325
|
+
* @typedef GetCompanySerializer
|
|
326
326
|
* @property {string} [stage]
|
|
327
327
|
* @property {string} [verified_on]
|
|
328
|
-
* @property {
|
|
328
|
+
* @property {UserSerializer} [verified_by]
|
|
329
329
|
* @property {string} [created_on]
|
|
330
|
-
* @property {
|
|
330
|
+
* @property {UserSerializer} [created_by]
|
|
331
331
|
* @property {string} [company_type]
|
|
332
332
|
* @property {string} [modified_on]
|
|
333
333
|
* @property {string} [business_type]
|
|
334
|
-
* @property {
|
|
334
|
+
* @property {GetAddressSerializer[]} [addresses]
|
|
335
335
|
* @property {number} [uid]
|
|
336
336
|
* @property {string} [reject_reason]
|
|
337
337
|
* @property {string} [name]
|
|
338
|
-
* @property {
|
|
338
|
+
* @property {UserSerializer} [modified_by]
|
|
339
339
|
*/
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* @typedef
|
|
342
|
+
* @typedef LocationManagerSerializer
|
|
343
343
|
* @property {string} [email]
|
|
344
344
|
* @property {SellerPhoneNumber} mobile_no
|
|
345
345
|
* @property {string} [name]
|
|
346
346
|
*/
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* @typedef
|
|
349
|
+
* @typedef LocationTimingSerializer
|
|
350
350
|
* @property {number} hour
|
|
351
351
|
* @property {number} minute
|
|
352
352
|
*/
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
|
-
* @typedef
|
|
355
|
+
* @typedef LocationDayWiseSerializer
|
|
356
356
|
* @property {boolean} open
|
|
357
357
|
* @property {string} weekday
|
|
358
|
-
* @property {
|
|
359
|
-
* @property {
|
|
358
|
+
* @property {LocationTimingSerializer} [opening]
|
|
359
|
+
* @property {LocationTimingSerializer} [closing]
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
|
-
* @typedef
|
|
363
|
+
* @typedef HolidayDateSerializer
|
|
364
364
|
* @property {string} end_date
|
|
365
365
|
* @property {string} start_date
|
|
366
366
|
*/
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {
|
|
369
|
+
* @typedef HolidaySchemaSerializer
|
|
370
|
+
* @property {HolidayDateSerializer} date
|
|
371
371
|
* @property {string} title
|
|
372
372
|
* @property {string} holiday_type
|
|
373
373
|
*/
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
|
-
* @typedef
|
|
376
|
+
* @typedef ProductReturnConfigSerializer
|
|
377
377
|
* @property {boolean} [on_same_store]
|
|
378
378
|
* @property {number} [store_uid]
|
|
379
379
|
*/
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* @typedef
|
|
382
|
+
* @typedef GetLocationSerializer
|
|
383
383
|
* @property {string} code
|
|
384
384
|
* @property {string} [phone_number]
|
|
385
385
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
386
|
-
* @property {
|
|
386
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
387
387
|
* @property {string} name
|
|
388
388
|
* @property {Object} [_custom_json]
|
|
389
389
|
* @property {string} [verified_on]
|
|
390
|
-
* @property {
|
|
390
|
+
* @property {UserSerializer} [created_by]
|
|
391
391
|
* @property {string} [created_on]
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {
|
|
392
|
+
* @property {GetCompanySerializer} [company]
|
|
393
|
+
* @property {GetAddressSerializer} address
|
|
394
394
|
* @property {Object} [warnings]
|
|
395
395
|
* @property {string} [store_type]
|
|
396
|
-
* @property {
|
|
396
|
+
* @property {LocationManagerSerializer} [manager]
|
|
397
397
|
* @property {boolean} [auto_invoice]
|
|
398
398
|
* @property {string} [modified_on]
|
|
399
399
|
* @property {number} [uid]
|
|
400
|
-
* @property {
|
|
400
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
401
401
|
* @property {string} [stage]
|
|
402
402
|
* @property {Document[]} [documents]
|
|
403
403
|
* @property {boolean} [credit_note]
|
|
404
|
-
* @property {
|
|
404
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
405
405
|
* @property {string} display_name
|
|
406
|
-
* @property {
|
|
407
|
-
* @property {
|
|
406
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
407
|
+
* @property {UserSerializer} [verified_by]
|
|
408
408
|
* @property {string[]} [notification_emails]
|
|
409
|
-
* @property {
|
|
409
|
+
* @property {UserSerializer} [modified_by]
|
|
410
410
|
* @property {string[]} [tags]
|
|
411
411
|
* @property {boolean} [default_order_acceptance_timing]
|
|
412
|
-
* @property {
|
|
412
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing]
|
|
413
413
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
414
414
|
* @property {boolean} [bulk_shipment]
|
|
415
415
|
* @property {boolean} [auto_assign_courier_partner]
|
|
416
416
|
*/
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* @typedef
|
|
420
|
-
* @property {
|
|
419
|
+
* @typedef LocationListSerializer
|
|
420
|
+
* @property {GetLocationSerializer[]} [items]
|
|
421
421
|
* @property {Page} [page]
|
|
422
422
|
*/
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* @typedef
|
|
425
|
+
* @typedef AddressSerializer
|
|
426
426
|
* @property {string} [landmark]
|
|
427
427
|
* @property {string} country_code
|
|
428
428
|
* @property {number} [pincode]
|
|
@@ -439,31 +439,31 @@ const Joi = require("joi");
|
|
|
439
439
|
*/
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
|
-
* @typedef
|
|
442
|
+
* @typedef LocationSerializer
|
|
443
443
|
* @property {string} code
|
|
444
|
-
* @property {
|
|
444
|
+
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
445
445
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
446
446
|
* @property {string} name
|
|
447
447
|
* @property {Object} [_custom_json]
|
|
448
448
|
* @property {Object} [warnings]
|
|
449
|
-
* @property {
|
|
449
|
+
* @property {AddressSerializer} address
|
|
450
450
|
* @property {number} company
|
|
451
451
|
* @property {string} [store_type]
|
|
452
|
-
* @property {
|
|
452
|
+
* @property {LocationManagerSerializer} [manager]
|
|
453
453
|
* @property {boolean} [auto_invoice]
|
|
454
454
|
* @property {number} [uid]
|
|
455
|
-
* @property {
|
|
455
|
+
* @property {LocationDayWiseSerializer[]} [timing]
|
|
456
456
|
* @property {string} [stage]
|
|
457
457
|
* @property {Document[]} documents
|
|
458
458
|
* @property {boolean} [credit_note]
|
|
459
|
-
* @property {
|
|
460
|
-
* @property {
|
|
459
|
+
* @property {HolidaySchemaSerializer[]} [holiday]
|
|
460
|
+
* @property {ProductReturnConfigSerializer} [product_return_config]
|
|
461
461
|
* @property {string} display_name
|
|
462
462
|
* @property {string[]} [notification_emails]
|
|
463
463
|
* @property {string[]} [tags]
|
|
464
464
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
465
465
|
* order_acceptance_timing as default timing
|
|
466
|
-
* @property {
|
|
466
|
+
* @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
|
|
467
467
|
* acceptance timing of the store
|
|
468
468
|
* @property {AverageOrderProcessingTime} [avg_order_processing_time]
|
|
469
469
|
* @property {boolean} [bulk_shipment]
|
|
@@ -471,8 +471,8 @@ const Joi = require("joi");
|
|
|
471
471
|
*/
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
|
-
* @typedef
|
|
475
|
-
* @property {
|
|
474
|
+
* @typedef BulkLocationSerializer
|
|
475
|
+
* @property {LocationSerializer[]} [data]
|
|
476
476
|
*/
|
|
477
477
|
|
|
478
478
|
/**
|
|
@@ -488,8 +488,8 @@ const Joi = require("joi");
|
|
|
488
488
|
*/
|
|
489
489
|
|
|
490
490
|
class CompanyProfilePlatformModel {
|
|
491
|
-
/** @returns {
|
|
492
|
-
static
|
|
491
|
+
/** @returns {CompanyTaxesSerializer} */
|
|
492
|
+
static CompanyTaxesSerializer() {
|
|
493
493
|
return Joi.object({
|
|
494
494
|
effective_date: Joi.string().allow(""),
|
|
495
495
|
rate: Joi.number(),
|
|
@@ -497,8 +497,8 @@ class CompanyProfilePlatformModel {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
/** @returns {
|
|
501
|
-
static
|
|
500
|
+
/** @returns {UserSerializer} */
|
|
501
|
+
static UserSerializer() {
|
|
502
502
|
return Joi.object({
|
|
503
503
|
user_id: Joi.string().allow(""),
|
|
504
504
|
contact: Joi.string().allow(""),
|
|
@@ -566,8 +566,8 @@ class CompanyProfilePlatformModel {
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
/** @returns {
|
|
570
|
-
static
|
|
569
|
+
/** @returns {GetAddressSerializer} */
|
|
570
|
+
static GetAddressSerializer() {
|
|
571
571
|
return Joi.object({
|
|
572
572
|
landmark: Joi.string().allow(""),
|
|
573
573
|
country_code: Joi.string().allow(""),
|
|
@@ -585,20 +585,20 @@ class CompanyProfilePlatformModel {
|
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
-
/** @returns {
|
|
589
|
-
static
|
|
588
|
+
/** @returns {GetCompanyProfileSerializerResponse} */
|
|
589
|
+
static GetCompanyProfileSerializerResponse() {
|
|
590
590
|
return Joi.object({
|
|
591
591
|
business_info: Joi.string().allow(""),
|
|
592
592
|
taxes: Joi.array().items(
|
|
593
|
-
CompanyProfilePlatformModel.
|
|
593
|
+
CompanyProfilePlatformModel.CompanyTaxesSerializer()
|
|
594
594
|
),
|
|
595
595
|
business_type: Joi.string().allow(""),
|
|
596
596
|
name: Joi.string().allow(""),
|
|
597
|
-
_custom_json: Joi.
|
|
597
|
+
_custom_json: Joi.any(),
|
|
598
598
|
verified_on: Joi.string().allow(""),
|
|
599
|
-
created_by: CompanyProfilePlatformModel.
|
|
599
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
600
600
|
created_on: Joi.string().allow(""),
|
|
601
|
-
warnings: Joi.
|
|
601
|
+
warnings: Joi.any(),
|
|
602
602
|
business_details: CompanyProfilePlatformModel.BusinessDetails(),
|
|
603
603
|
mode: Joi.string().allow(""),
|
|
604
604
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -610,21 +610,21 @@ class CompanyProfilePlatformModel {
|
|
|
610
610
|
company_type: Joi.string().allow("").required(),
|
|
611
611
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
612
612
|
addresses: Joi.array().items(
|
|
613
|
-
CompanyProfilePlatformModel.
|
|
613
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
614
614
|
),
|
|
615
|
-
verified_by: CompanyProfilePlatformModel.
|
|
615
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
616
616
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
617
|
-
modified_by: CompanyProfilePlatformModel.
|
|
617
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
/** @returns {
|
|
622
|
-
static
|
|
621
|
+
/** @returns {ErrorResponse} */
|
|
622
|
+
static ErrorResponse() {
|
|
623
623
|
return Joi.object({
|
|
624
624
|
message: Joi.string().allow(""),
|
|
625
625
|
code: Joi.string().allow(""),
|
|
626
626
|
status: Joi.number(),
|
|
627
|
-
meta: Joi.
|
|
627
|
+
meta: Joi.any(),
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
630
|
|
|
@@ -637,8 +637,8 @@ class CompanyProfilePlatformModel {
|
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
-
/** @returns {
|
|
641
|
-
static
|
|
640
|
+
/** @returns {CreateUpdateAddressSerializer} */
|
|
641
|
+
static CreateUpdateAddressSerializer() {
|
|
642
642
|
return Joi.object({
|
|
643
643
|
landmark: Joi.string().allow(""),
|
|
644
644
|
country_code: Joi.string().allow(""),
|
|
@@ -659,9 +659,9 @@ class CompanyProfilePlatformModel {
|
|
|
659
659
|
return Joi.object({
|
|
660
660
|
franchise_enabled: Joi.boolean(),
|
|
661
661
|
business_info: Joi.string().allow(""),
|
|
662
|
-
warnings: Joi.
|
|
662
|
+
warnings: Joi.any(),
|
|
663
663
|
company_type: Joi.string().allow(""),
|
|
664
|
-
_custom_json: Joi.
|
|
664
|
+
_custom_json: Joi.any(),
|
|
665
665
|
taxes: Joi.array().items(
|
|
666
666
|
CompanyProfilePlatformModel.CompanyTaxesSerializer1()
|
|
667
667
|
),
|
|
@@ -669,7 +669,7 @@ class CompanyProfilePlatformModel {
|
|
|
669
669
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
670
670
|
business_type: Joi.string().allow(""),
|
|
671
671
|
addresses: Joi.array().items(
|
|
672
|
-
CompanyProfilePlatformModel.
|
|
672
|
+
CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
|
|
673
673
|
),
|
|
674
674
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
675
675
|
contact_details: CompanyProfilePlatformModel.ContactDetails(),
|
|
@@ -678,8 +678,8 @@ class CompanyProfilePlatformModel {
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
/** @returns {
|
|
682
|
-
static
|
|
681
|
+
/** @returns {ProfileSuccessResponse} */
|
|
682
|
+
static ProfileSuccessResponse() {
|
|
683
683
|
return Joi.object({
|
|
684
684
|
uid: Joi.number(),
|
|
685
685
|
message: Joi.string().allow(""),
|
|
@@ -695,8 +695,8 @@ class CompanyProfilePlatformModel {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
/** @returns {
|
|
699
|
-
static
|
|
698
|
+
/** @returns {MetricsSerializer} */
|
|
699
|
+
static MetricsSerializer() {
|
|
700
700
|
return Joi.object({
|
|
701
701
|
stage: Joi.string().allow(""),
|
|
702
702
|
store: CompanyProfilePlatformModel.DocumentsObj(),
|
|
@@ -708,68 +708,68 @@ class CompanyProfilePlatformModel {
|
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
/** @returns {
|
|
712
|
-
static
|
|
711
|
+
/** @returns {BrandBannerSerializer} */
|
|
712
|
+
static BrandBannerSerializer() {
|
|
713
713
|
return Joi.object({
|
|
714
714
|
portrait: Joi.string().allow("").required(),
|
|
715
715
|
landscape: Joi.string().allow("").required(),
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
/** @returns {
|
|
720
|
-
static
|
|
719
|
+
/** @returns {GetBrandResponseSerializer} */
|
|
720
|
+
static GetBrandResponseSerializer() {
|
|
721
721
|
return Joi.object({
|
|
722
|
-
modified_by: CompanyProfilePlatformModel.
|
|
723
|
-
banner: CompanyProfilePlatformModel.
|
|
722
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
723
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer(),
|
|
724
724
|
name: Joi.string().allow("").required(),
|
|
725
|
-
_custom_json: Joi.
|
|
725
|
+
_custom_json: Joi.any(),
|
|
726
726
|
verified_on: Joi.string().allow(""),
|
|
727
|
-
created_by: CompanyProfilePlatformModel.
|
|
727
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
728
728
|
created_on: Joi.string().allow(""),
|
|
729
|
-
warnings: Joi.
|
|
730
|
-
_locale_language: Joi.
|
|
729
|
+
warnings: Joi.any(),
|
|
730
|
+
_locale_language: Joi.any(),
|
|
731
731
|
mode: Joi.string().allow(""),
|
|
732
732
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
733
733
|
modified_on: Joi.string().allow(""),
|
|
734
734
|
uid: Joi.number(),
|
|
735
735
|
reject_reason: Joi.string().allow(""),
|
|
736
736
|
stage: Joi.string().allow(""),
|
|
737
|
-
verified_by: CompanyProfilePlatformModel.
|
|
737
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
738
738
|
slug_key: Joi.string().allow(""),
|
|
739
739
|
logo: Joi.string().allow(""),
|
|
740
740
|
description: Joi.string().allow(""),
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
/** @returns {
|
|
745
|
-
static
|
|
744
|
+
/** @returns {CreateBrandRequestSerializer} */
|
|
745
|
+
static CreateBrandRequestSerializer() {
|
|
746
746
|
return Joi.object({
|
|
747
|
-
_custom_json: Joi.
|
|
748
|
-
_locale_language: Joi.
|
|
747
|
+
_custom_json: Joi.any(),
|
|
748
|
+
_locale_language: Joi.any(),
|
|
749
749
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
750
750
|
company_id: Joi.number(),
|
|
751
751
|
description: Joi.string().allow(""),
|
|
752
752
|
logo: Joi.string().allow("").required(),
|
|
753
753
|
brand_tier: Joi.string().allow(""),
|
|
754
754
|
uid: Joi.number(),
|
|
755
|
-
banner: CompanyProfilePlatformModel.
|
|
755
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
|
|
756
756
|
name: Joi.string().allow("").required(),
|
|
757
757
|
slug_key: Joi.string().allow(""),
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
/** @returns {
|
|
762
|
-
static
|
|
761
|
+
/** @returns {UpdateBrandRequestSerializer} */
|
|
762
|
+
static UpdateBrandRequestSerializer() {
|
|
763
763
|
return Joi.object({
|
|
764
|
-
_custom_json: Joi.
|
|
765
|
-
_locale_language: Joi.
|
|
764
|
+
_custom_json: Joi.any(),
|
|
765
|
+
_locale_language: Joi.any(),
|
|
766
766
|
synonyms: Joi.array().items(Joi.string().allow("")),
|
|
767
767
|
company_id: Joi.number(),
|
|
768
768
|
description: Joi.string().allow(""),
|
|
769
769
|
logo: Joi.string().allow("").required(),
|
|
770
770
|
brand_tier: Joi.string().allow(""),
|
|
771
771
|
uid: Joi.number(),
|
|
772
|
-
banner: CompanyProfilePlatformModel.
|
|
772
|
+
banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
|
|
773
773
|
name: Joi.string().allow("").required(),
|
|
774
774
|
});
|
|
775
775
|
}
|
|
@@ -792,21 +792,21 @@ class CompanyProfilePlatformModel {
|
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
/** @returns {
|
|
796
|
-
static
|
|
795
|
+
/** @returns {CompanySerializer} */
|
|
796
|
+
static CompanySerializer() {
|
|
797
797
|
return Joi.object({
|
|
798
798
|
stage: Joi.string().allow(""),
|
|
799
|
-
_custom_json: Joi.
|
|
799
|
+
_custom_json: Joi.any(),
|
|
800
800
|
verified_on: Joi.string().allow(""),
|
|
801
|
-
verified_by: CompanyProfilePlatformModel.
|
|
801
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
802
802
|
created_on: Joi.string().allow(""),
|
|
803
|
-
created_by: CompanyProfilePlatformModel.
|
|
803
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
804
804
|
company_type: Joi.string().allow("").required(),
|
|
805
805
|
modified_on: Joi.string().allow(""),
|
|
806
806
|
market_channels: Joi.array().items(Joi.string().allow("")),
|
|
807
807
|
business_type: Joi.string().allow("").required(),
|
|
808
808
|
addresses: Joi.array().items(
|
|
809
|
-
CompanyProfilePlatformModel.
|
|
809
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
810
810
|
),
|
|
811
811
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
812
812
|
details: CompanyProfilePlatformModel.CompanyDetails(),
|
|
@@ -814,25 +814,25 @@ class CompanyProfilePlatformModel {
|
|
|
814
814
|
uid: Joi.number(),
|
|
815
815
|
reject_reason: Joi.string().allow(""),
|
|
816
816
|
name: Joi.string().allow(""),
|
|
817
|
-
modified_by: CompanyProfilePlatformModel.
|
|
817
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
/** @returns {
|
|
822
|
-
static
|
|
821
|
+
/** @returns {CompanyBrandSerializer} */
|
|
822
|
+
static CompanyBrandSerializer() {
|
|
823
823
|
return Joi.object({
|
|
824
824
|
stage: Joi.string().allow(""),
|
|
825
825
|
verified_on: Joi.string().allow(""),
|
|
826
|
-
verified_by: CompanyProfilePlatformModel.
|
|
826
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
827
827
|
created_on: Joi.string().allow(""),
|
|
828
|
-
created_by: CompanyProfilePlatformModel.
|
|
829
|
-
company: CompanyProfilePlatformModel.
|
|
830
|
-
warnings: Joi.
|
|
828
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
829
|
+
company: CompanyProfilePlatformModel.CompanySerializer(),
|
|
830
|
+
warnings: Joi.any(),
|
|
831
831
|
modified_on: Joi.string().allow(""),
|
|
832
832
|
uid: Joi.number(),
|
|
833
833
|
reject_reason: Joi.string().allow(""),
|
|
834
|
-
brand: CompanyProfilePlatformModel.
|
|
835
|
-
modified_by: CompanyProfilePlatformModel.
|
|
834
|
+
brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
|
|
835
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
|
|
@@ -849,18 +849,18 @@ class CompanyProfilePlatformModel {
|
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
/** @returns {
|
|
853
|
-
static
|
|
852
|
+
/** @returns {CompanyBrandListSerializer} */
|
|
853
|
+
static CompanyBrandListSerializer() {
|
|
854
854
|
return Joi.object({
|
|
855
855
|
items: Joi.array().items(
|
|
856
|
-
CompanyProfilePlatformModel.
|
|
856
|
+
CompanyProfilePlatformModel.CompanyBrandSerializer()
|
|
857
857
|
),
|
|
858
858
|
page: CompanyProfilePlatformModel.Page(),
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
/** @returns {
|
|
863
|
-
static
|
|
862
|
+
/** @returns {CompanyBrandPostRequestSerializer} */
|
|
863
|
+
static CompanyBrandPostRequestSerializer() {
|
|
864
864
|
return Joi.object({
|
|
865
865
|
uid: Joi.number(),
|
|
866
866
|
brands: Joi.array().items(Joi.number()).required(),
|
|
@@ -868,8 +868,8 @@ class CompanyProfilePlatformModel {
|
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
/** @returns {
|
|
872
|
-
static
|
|
871
|
+
/** @returns {InvoiceCredSerializer} */
|
|
872
|
+
static InvoiceCredSerializer() {
|
|
873
873
|
return Joi.object({
|
|
874
874
|
username: Joi.string().allow(""),
|
|
875
875
|
enabled: Joi.boolean(),
|
|
@@ -877,37 +877,37 @@ class CompanyProfilePlatformModel {
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
|
|
880
|
-
/** @returns {
|
|
881
|
-
static
|
|
880
|
+
/** @returns {InvoiceDetailsSerializer} */
|
|
881
|
+
static InvoiceDetailsSerializer() {
|
|
882
882
|
return Joi.object({
|
|
883
|
-
e_invoice: CompanyProfilePlatformModel.
|
|
884
|
-
e_waybill: CompanyProfilePlatformModel.
|
|
883
|
+
e_invoice: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
884
|
+
e_waybill: CompanyProfilePlatformModel.InvoiceCredSerializer(),
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
/** @returns {
|
|
889
|
-
static
|
|
888
|
+
/** @returns {GetCompanySerializer} */
|
|
889
|
+
static GetCompanySerializer() {
|
|
890
890
|
return Joi.object({
|
|
891
891
|
stage: Joi.string().allow(""),
|
|
892
892
|
verified_on: Joi.string().allow(""),
|
|
893
|
-
verified_by: CompanyProfilePlatformModel.
|
|
893
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
894
894
|
created_on: Joi.string().allow(""),
|
|
895
|
-
created_by: CompanyProfilePlatformModel.
|
|
895
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
896
896
|
company_type: Joi.string().allow(""),
|
|
897
897
|
modified_on: Joi.string().allow(""),
|
|
898
898
|
business_type: Joi.string().allow(""),
|
|
899
899
|
addresses: Joi.array().items(
|
|
900
|
-
CompanyProfilePlatformModel.
|
|
900
|
+
CompanyProfilePlatformModel.GetAddressSerializer()
|
|
901
901
|
),
|
|
902
902
|
uid: Joi.number(),
|
|
903
903
|
reject_reason: Joi.string().allow(""),
|
|
904
904
|
name: Joi.string().allow(""),
|
|
905
|
-
modified_by: CompanyProfilePlatformModel.
|
|
905
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
909
|
+
/** @returns {LocationManagerSerializer} */
|
|
910
|
+
static LocationManagerSerializer() {
|
|
911
911
|
return Joi.object({
|
|
912
912
|
email: Joi.string().allow(""),
|
|
913
913
|
mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
|
|
@@ -915,89 +915,89 @@ class CompanyProfilePlatformModel {
|
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
/** @returns {
|
|
919
|
-
static
|
|
918
|
+
/** @returns {LocationTimingSerializer} */
|
|
919
|
+
static LocationTimingSerializer() {
|
|
920
920
|
return Joi.object({
|
|
921
921
|
hour: Joi.number().required(),
|
|
922
922
|
minute: Joi.number().required(),
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
926
|
+
/** @returns {LocationDayWiseSerializer} */
|
|
927
|
+
static LocationDayWiseSerializer() {
|
|
928
928
|
return Joi.object({
|
|
929
929
|
open: Joi.boolean().required(),
|
|
930
930
|
weekday: Joi.string().allow("").required(),
|
|
931
|
-
opening: CompanyProfilePlatformModel.
|
|
932
|
-
closing: CompanyProfilePlatformModel.
|
|
931
|
+
opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
932
|
+
closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
/** @returns {
|
|
937
|
-
static
|
|
936
|
+
/** @returns {HolidayDateSerializer} */
|
|
937
|
+
static HolidayDateSerializer() {
|
|
938
938
|
return Joi.object({
|
|
939
939
|
end_date: Joi.string().allow("").required(),
|
|
940
940
|
start_date: Joi.string().allow("").required(),
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
/** @returns {
|
|
945
|
-
static
|
|
944
|
+
/** @returns {HolidaySchemaSerializer} */
|
|
945
|
+
static HolidaySchemaSerializer() {
|
|
946
946
|
return Joi.object({
|
|
947
|
-
date: CompanyProfilePlatformModel.
|
|
947
|
+
date: CompanyProfilePlatformModel.HolidayDateSerializer().required(),
|
|
948
948
|
title: Joi.string().allow("").required(),
|
|
949
949
|
holiday_type: Joi.string().allow("").required(),
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
/** @returns {
|
|
954
|
-
static
|
|
953
|
+
/** @returns {ProductReturnConfigSerializer} */
|
|
954
|
+
static ProductReturnConfigSerializer() {
|
|
955
955
|
return Joi.object({
|
|
956
956
|
on_same_store: Joi.boolean(),
|
|
957
957
|
store_uid: Joi.number(),
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
/** @returns {
|
|
962
|
-
static
|
|
961
|
+
/** @returns {GetLocationSerializer} */
|
|
962
|
+
static GetLocationSerializer() {
|
|
963
963
|
return Joi.object({
|
|
964
964
|
code: Joi.string().allow("").required(),
|
|
965
965
|
phone_number: Joi.string().allow(""),
|
|
966
966
|
contact_numbers: Joi.array().items(
|
|
967
967
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
968
968
|
),
|
|
969
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
969
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
970
970
|
name: Joi.string().allow("").required(),
|
|
971
|
-
_custom_json: Joi.
|
|
971
|
+
_custom_json: Joi.any(),
|
|
972
972
|
verified_on: Joi.string().allow(""),
|
|
973
|
-
created_by: CompanyProfilePlatformModel.
|
|
973
|
+
created_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
974
974
|
created_on: Joi.string().allow(""),
|
|
975
|
-
company: CompanyProfilePlatformModel.
|
|
976
|
-
address: CompanyProfilePlatformModel.
|
|
977
|
-
warnings: Joi.
|
|
975
|
+
company: CompanyProfilePlatformModel.GetCompanySerializer(),
|
|
976
|
+
address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
|
|
977
|
+
warnings: Joi.any(),
|
|
978
978
|
store_type: Joi.string().allow(""),
|
|
979
|
-
manager: CompanyProfilePlatformModel.
|
|
979
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
980
980
|
auto_invoice: Joi.boolean(),
|
|
981
981
|
modified_on: Joi.string().allow(""),
|
|
982
982
|
uid: Joi.number(),
|
|
983
983
|
timing: Joi.array().items(
|
|
984
|
-
CompanyProfilePlatformModel.
|
|
984
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
985
985
|
),
|
|
986
986
|
stage: Joi.string().allow(""),
|
|
987
987
|
documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
|
|
988
988
|
credit_note: Joi.boolean(),
|
|
989
989
|
holiday: Joi.array().items(
|
|
990
|
-
CompanyProfilePlatformModel.
|
|
990
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
991
991
|
),
|
|
992
992
|
display_name: Joi.string().allow("").required(),
|
|
993
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
994
|
-
verified_by: CompanyProfilePlatformModel.
|
|
993
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
994
|
+
verified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
995
995
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
996
|
-
modified_by: CompanyProfilePlatformModel.
|
|
996
|
+
modified_by: CompanyProfilePlatformModel.UserSerializer(),
|
|
997
997
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
998
998
|
default_order_acceptance_timing: Joi.boolean(),
|
|
999
999
|
order_acceptance_timing: Joi.array().items(
|
|
1000
|
-
CompanyProfilePlatformModel.
|
|
1000
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1001
1001
|
),
|
|
1002
1002
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1003
1003
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1005,16 +1005,18 @@ class CompanyProfilePlatformModel {
|
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
/** @returns {
|
|
1009
|
-
static
|
|
1008
|
+
/** @returns {LocationListSerializer} */
|
|
1009
|
+
static LocationListSerializer() {
|
|
1010
1010
|
return Joi.object({
|
|
1011
|
-
items: Joi.array().items(
|
|
1011
|
+
items: Joi.array().items(
|
|
1012
|
+
CompanyProfilePlatformModel.GetLocationSerializer()
|
|
1013
|
+
),
|
|
1012
1014
|
page: CompanyProfilePlatformModel.Page(),
|
|
1013
1015
|
});
|
|
1014
1016
|
}
|
|
1015
1017
|
|
|
1016
|
-
/** @returns {
|
|
1017
|
-
static
|
|
1018
|
+
/** @returns {AddressSerializer} */
|
|
1019
|
+
static AddressSerializer() {
|
|
1018
1020
|
return Joi.object({
|
|
1019
1021
|
landmark: Joi.string().allow(""),
|
|
1020
1022
|
country_code: Joi.string().allow("").required(),
|
|
@@ -1032,25 +1034,25 @@ class CompanyProfilePlatformModel {
|
|
|
1032
1034
|
});
|
|
1033
1035
|
}
|
|
1034
1036
|
|
|
1035
|
-
/** @returns {
|
|
1036
|
-
static
|
|
1037
|
+
/** @returns {LocationSerializer} */
|
|
1038
|
+
static LocationSerializer() {
|
|
1037
1039
|
return Joi.object({
|
|
1038
1040
|
code: Joi.string().allow("").required(),
|
|
1039
|
-
gst_credentials: CompanyProfilePlatformModel.
|
|
1041
|
+
gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
|
|
1040
1042
|
contact_numbers: Joi.array().items(
|
|
1041
1043
|
CompanyProfilePlatformModel.SellerPhoneNumber()
|
|
1042
1044
|
),
|
|
1043
1045
|
name: Joi.string().allow("").required(),
|
|
1044
|
-
_custom_json: Joi.
|
|
1045
|
-
warnings: Joi.
|
|
1046
|
-
address: CompanyProfilePlatformModel.
|
|
1046
|
+
_custom_json: Joi.any(),
|
|
1047
|
+
warnings: Joi.any(),
|
|
1048
|
+
address: CompanyProfilePlatformModel.AddressSerializer().required(),
|
|
1047
1049
|
company: Joi.number().required(),
|
|
1048
1050
|
store_type: Joi.string().allow(""),
|
|
1049
|
-
manager: CompanyProfilePlatformModel.
|
|
1051
|
+
manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
|
|
1050
1052
|
auto_invoice: Joi.boolean(),
|
|
1051
1053
|
uid: Joi.number(),
|
|
1052
1054
|
timing: Joi.array().items(
|
|
1053
|
-
CompanyProfilePlatformModel.
|
|
1055
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1054
1056
|
),
|
|
1055
1057
|
stage: Joi.string().allow(""),
|
|
1056
1058
|
documents: Joi.array()
|
|
@@ -1058,15 +1060,15 @@ class CompanyProfilePlatformModel {
|
|
|
1058
1060
|
.required(),
|
|
1059
1061
|
credit_note: Joi.boolean(),
|
|
1060
1062
|
holiday: Joi.array().items(
|
|
1061
|
-
CompanyProfilePlatformModel.
|
|
1063
|
+
CompanyProfilePlatformModel.HolidaySchemaSerializer()
|
|
1062
1064
|
),
|
|
1063
|
-
product_return_config: CompanyProfilePlatformModel.
|
|
1065
|
+
product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
|
|
1064
1066
|
display_name: Joi.string().allow("").required(),
|
|
1065
1067
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1066
1068
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1067
1069
|
default_order_acceptance_timing: Joi.boolean(),
|
|
1068
1070
|
order_acceptance_timing: Joi.array().items(
|
|
1069
|
-
CompanyProfilePlatformModel.
|
|
1071
|
+
CompanyProfilePlatformModel.LocationDayWiseSerializer()
|
|
1070
1072
|
),
|
|
1071
1073
|
avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
|
|
1072
1074
|
bulk_shipment: Joi.boolean(),
|
|
@@ -1074,10 +1076,10 @@ class CompanyProfilePlatformModel {
|
|
|
1074
1076
|
});
|
|
1075
1077
|
}
|
|
1076
1078
|
|
|
1077
|
-
/** @returns {
|
|
1078
|
-
static
|
|
1079
|
+
/** @returns {BulkLocationSerializer} */
|
|
1080
|
+
static BulkLocationSerializer() {
|
|
1079
1081
|
return Joi.object({
|
|
1080
|
-
data: Joi.array().items(CompanyProfilePlatformModel.
|
|
1082
|
+
data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
|
|
1081
1083
|
});
|
|
1082
1084
|
}
|
|
1083
1085
|
|