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