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