@gofynd/fdk-client-javascript 0.1.36 → 1.0.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 +24 -0
- package/application.d.ts +2 -1
- package/application.js +2 -1
- package/documentation/application/CART.md +313 -281
- package/documentation/application/CATALOG.md +458 -435
- package/documentation/application/FILESTORAGE.md +2 -0
- package/documentation/application/LEAD.md +18 -18
- package/documentation/application/LOGISTIC.md +424 -102
- package/documentation/application/ORDER.md +293 -293
- package/documentation/application/PAYMENT.md +278 -278
- package/documentation/application/POSCART.md +350 -318
- package/documentation/application/README.md +1 -1
- package/documentation/application/REWARDS.md +1 -0
- package/documentation/application/USER.md +19 -14
- package/documentation/platform/AUDITTRAIL.md +2 -2
- package/documentation/platform/CART.md +442 -439
- package/documentation/platform/CATALOG.md +2925 -2641
- package/documentation/platform/COMPANYPROFILE.md +228 -369
- package/documentation/platform/DISCOUNT.md +86 -0
- package/documentation/platform/FILESTORAGE.md +2 -0
- package/documentation/platform/LEAD.md +60 -60
- package/documentation/platform/ORDER.md +1296 -1618
- package/documentation/platform/PAYMENT.md +89 -89
- package/documentation/platform/REWARDS.md +145 -0
- package/documentation/platform/USER.md +24 -14
- package/index.d.ts +4 -1
- package/index.js +6 -3
- package/package.json +9 -9
- package/platform.d.ts +2 -1
- package/platform.js +3 -2
- package/public.d.ts +1 -0
- package/public.js +3 -2
- package/sdk/application/ApplicationAPIClient.js +6 -1
- package/sdk/application/ApplicationClient.d.ts +17 -16
- package/sdk/application/ApplicationClient.js +43 -17
- package/sdk/application/ApplicationConfig.d.ts +1 -0
- package/sdk/application/ApplicationConfig.js +4 -2
- package/sdk/application/ApplicationModels.d.ts +0 -827
- package/sdk/application/ApplicationModels.js +6 -10486
- package/sdk/application/{client → Cart}/CartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → Cart}/CartApplicationClient.js +14 -8
- package/sdk/application/Cart/CartApplicationModel.d.ts +81 -0
- package/sdk/application/Cart/CartApplicationModel.js +1136 -0
- package/sdk/application/{models/CartValidator.js → Cart/CartApplicationValidator.js} +16 -12
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.d.ts +8 -5
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.js +11 -8
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +117 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +1606 -0
- package/sdk/application/{models/CatalogValidator.js → Catalog/CatalogApplicationValidator.js} +3 -1
- package/sdk/application/{client → Common}/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +20 -0
- package/sdk/application/Common/CommonApplicationModel.js +228 -0
- package/sdk/{platform/models/CommonValidator.js → application/Common/CommonApplicationValidator.js} +2 -1
- package/sdk/application/{client → Communication}/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +15 -0
- package/sdk/application/Communication/CommunicationApplicationModel.js +144 -0
- package/sdk/application/{models/CommunicationValidator.js → Communication/CommunicationApplicationValidator.js} +4 -3
- package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.js +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +111 -0
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1182 -0
- package/sdk/application/{models/ConfigurationValidator.js → Configuration/ConfigurationApplicationValidator.js} +3 -2
- package/sdk/application/{client → Content}/ContentApplicationClient.js +2 -2
- package/sdk/application/Content/ContentApplicationModel.d.ts +105 -0
- package/sdk/application/Content/ContentApplicationModel.js +1349 -0
- package/sdk/application/{models/ContentValidator.js → Content/ContentApplicationValidator.js} +2 -1
- package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.js +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +21 -0
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +244 -0
- package/sdk/application/{models/FileStorageValidator.js → FileStorage/FileStorageApplicationValidator.js} +5 -4
- package/sdk/application/{client → Lead}/LeadApplicationClient.js +2 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +55 -0
- package/sdk/application/Lead/LeadApplicationModel.js +690 -0
- package/sdk/application/{models/LeadValidator.js → Lead/LeadApplicationValidator.js} +5 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +53 -0
- package/sdk/application/{client → Logistic}/LogisticApplicationClient.js +64 -29
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +26 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +286 -0
- package/sdk/application/{models/LogisticValidator.d.ts → Logistic/LogisticApplicationValidator.d.ts} +2 -1
- package/sdk/application/{models/LogisticValidator.js → Logistic/LogisticApplicationValidator.js} +13 -7
- package/sdk/application/{client → Order}/OrderApplicationClient.js +2 -2
- package/sdk/application/Order/OrderApplicationModel.d.ts +67 -0
- package/sdk/application/Order/OrderApplicationModel.js +872 -0
- package/sdk/application/{models/OrderValidator.js → Order/OrderApplicationValidator.js} +4 -3
- package/sdk/application/{client → Payment}/PaymentApplicationClient.js +2 -2
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +96 -0
- package/sdk/application/Payment/PaymentApplicationModel.js +1318 -0
- package/sdk/application/{models/PaymentValidator.js → Payment/PaymentApplicationValidator.js} +24 -23
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.js +14 -8
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +79 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +1132 -0
- package/sdk/application/{models/PosCartValidator.js → PosCart/PosCartApplicationValidator.js} +17 -13
- package/sdk/application/{client → Rewards}/RewardsApplicationClient.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +23 -0
- package/sdk/application/Rewards/RewardsApplicationModel.js +276 -0
- package/sdk/application/{models/RewardsValidator.js → Rewards/RewardsApplicationValidator.js} +5 -4
- package/sdk/application/{client → Share}/ShareApplicationClient.js +2 -2
- package/sdk/application/Share/ShareApplicationModel.d.ts +16 -0
- package/sdk/application/Share/ShareApplicationModel.js +178 -0
- package/sdk/application/{models/ShareValidator.js → Share/ShareApplicationValidator.js} +3 -2
- package/sdk/application/{client → Theme}/ThemeApplicationClient.js +2 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +49 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +486 -0
- package/sdk/application/{models/ThemeValidator.js → Theme/ThemeApplicationValidator.js} +2 -1
- package/sdk/application/{client → User}/UserApplicationClient.js +2 -2
- package/sdk/application/User/UserApplicationModel.d.ts +95 -0
- package/sdk/application/User/UserApplicationModel.js +998 -0
- package/sdk/application/{models/UserValidator.js → User/UserApplicationValidator.js} +30 -29
- package/sdk/application/index.d.ts +18 -0
- package/sdk/application/index.js +33 -0
- package/sdk/common/AxiosHelper.js +23 -10
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +6 -0
- package/sdk/common/curlHelper.d.ts +2 -0
- package/sdk/common/curlHelper.js +95 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +101 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +285 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +11 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +56 -0
- package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.js +2 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +23 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +252 -0
- package/sdk/platform/{models/AnalyticsValidator.js → Analytics/AnalyticsPlatformValidator.js} +5 -4
- package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +18 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +144 -0
- package/sdk/platform/{models/AuditTrailValidator.js → AuditTrail/AuditTrailPlatformValidator.js} +3 -2
- package/sdk/platform/{client → Billing}/BillingPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +65 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +906 -0
- package/sdk/platform/{models/BillingValidator.js → Billing/BillingPlatformValidator.js} +6 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +293 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +755 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +20 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +138 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +104 -0
- package/sdk/platform/Cart/CartPlatformModel.js +1516 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +856 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2136 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +56 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +389 -0
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.d.ts +132 -123
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.js +354 -323
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +316 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4690 -0
- package/sdk/platform/{models/CatalogValidator.d.ts → Catalog/CatalogPlatformValidator.d.ts} +15 -14
- package/sdk/platform/{models/CatalogValidator.js → Catalog/CatalogPlatformValidator.js} +91 -84
- package/sdk/platform/{client → Common}/CommonPlatformClient.js +2 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +20 -0
- package/sdk/platform/Common/CommonPlatformModel.js +228 -0
- package/sdk/{application/models/CommonValidator.js → platform/Common/CommonPlatformValidator.js} +2 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +611 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1656 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +43 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +277 -0
- package/sdk/platform/{client → Communication}/CommunicationPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +102 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1312 -0
- package/sdk/platform/{models/CommunicationValidator.js → Communication/CommunicationPlatformValidator.js} +2 -1
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.d.ts +0 -9
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.js +2 -33
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +44 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +706 -0
- package/sdk/platform/{models/CompanyProfileValidator.d.ts → CompanyProfile/CompanyProfilePlatformValidator.d.ts} +0 -1
- package/sdk/platform/{models/CompanyProfileValidator.js → CompanyProfile/CompanyProfilePlatformValidator.js} +9 -14
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +309 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +940 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +31 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +164 -0
- package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.js +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +185 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2072 -0
- package/sdk/platform/{models/ConfigurationValidator.js → Configuration/ConfigurationPlatformValidator.js} +9 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +781 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2208 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +71 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +422 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +105 -0
- package/sdk/platform/Content/ContentPlatformModel.js +1349 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.d.ts +11 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.js +35 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +15 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +176 -0
- package/sdk/platform/{models/DiscountValidator.d.ts → Discount/DiscountPlatformValidator.d.ts} +1 -0
- package/sdk/platform/{models/DiscountValidator.js → Discount/DiscountPlatformValidator.js} +13 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +114 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +247 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +38 -0
- package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +21 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +244 -0
- package/sdk/platform/{models/FileStorageValidator.js → FileStorage/FileStoragePlatformValidator.js} +6 -5
- package/sdk/platform/{client → Inventory}/InventoryPlatformClient.js +2 -2
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +62 -0
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1178 -0
- package/sdk/platform/{models/InventoryValidator.js → Inventory/InventoryPlatformValidator.js} +5 -4
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +138 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +397 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +90 -0
- package/sdk/platform/{client → Lead}/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +55 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +690 -0
- package/sdk/platform/{models/LeadValidator.js → Lead/LeadPlatformValidator.js} +7 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +59 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +152 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +37 -0
- package/sdk/platform/{client → Order}/OrderPlatformClient.d.ts +9 -49
- package/sdk/platform/{client → Order}/OrderPlatformClient.js +18 -130
- package/sdk/platform/Order/OrderPlatformModel.d.ts +215 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3530 -0
- package/sdk/platform/{models/OrderValidator.d.ts → Order/OrderPlatformValidator.d.ts} +0 -2
- package/sdk/platform/{models/OrderValidator.js → Order/OrderPlatformValidator.js} +22 -44
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +30 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +74 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +7 -0
- package/sdk/platform/Partner/PartnerPlatformModel.js +54 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +108 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +333 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +14 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +73 -0
- package/sdk/platform/{client → Payment}/PaymentPlatformClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +552 -0
- package/sdk/platform/{models/PaymentValidator.js → Payment/PaymentPlatformValidator.js} +6 -5
- package/sdk/platform/PlatformAPIClient.js +2 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +2884 -18377
- package/sdk/platform/PlatformApplicationClient.js +3750 -13814
- package/sdk/platform/PlatformClient.d.ts +2898 -2861
- package/sdk/platform/PlatformClient.js +3714 -3057
- package/sdk/platform/PlatformConfig.js +2 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +150 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +428 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +24 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +294 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +72 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +182 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +35 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +15 -0
- package/sdk/platform/Share/SharePlatformModel.js +170 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +238 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +704 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +155 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +49 -0
- package/sdk/platform/Theme/ThemePlatformModel.js +486 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +121 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +361 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +79 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +95 -0
- package/sdk/platform/User/UserPlatformModel.js +998 -0
- package/sdk/platform/{client → Webhook}/WebhookPlatformClient.js +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +17 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +208 -0
- package/sdk/platform/{models/WebhookValidator.js → Webhook/WebhookPlatformValidator.js} +4 -3
- package/sdk/platform/index.d.ts +24 -0
- package/sdk/platform/index.js +45 -0
- package/sdk/public/{client → Configuration}/ConfigurationPublicClient.js +1 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +20 -0
- package/sdk/public/Configuration/ConfigurationPublicModel.js +230 -0
- package/sdk/public/{models/ConfigurationValidator.js → Configuration/ConfigurationPublicValidator.js} +1 -1
- package/sdk/public/{client → Inventory}/InventoryPublicClient.js +1 -1
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +22 -0
- package/sdk/public/Inventory/InventoryPublicModel.js +334 -0
- package/sdk/public/{models/InventoryValidator.js → Inventory/InventoryPublicValidator.js} +2 -2
- package/sdk/public/PublicClient.d.ts +3 -3
- package/sdk/public/PublicClient.js +8 -3
- package/sdk/public/{client → Webhook}/WebhookPublicClient.js +1 -1
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +17 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +208 -0
- package/sdk/public/{models/WebhookValidator.js → Webhook/WebhookPublicValidator.js} +2 -2
- package/sdk/public/index.d.ts +5 -0
- package/sdk/public/index.js +7 -0
- package/sdk/application/client/LogisticApplicationClient.d.ts +0 -42
- package/sdk/platform/PlatformApplicationModels.d.ts +0 -328
- package/sdk/platform/PlatformApplicationModels.js +0 -22522
- package/sdk/platform/PlatformModels.d.ts +0 -1470
- package/sdk/platform/PlatformModels.js +0 -20510
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/public/PublicModels.d.ts +0 -50
- package/sdk/public/PublicModels.js +0 -712
- /package/sdk/application/{models/CartValidator.d.ts → Cart/CartApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{models/CatalogValidator.d.ts → Catalog/CatalogApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Common}/CommonApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/CommonValidator.d.ts → Common/CommonApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Communication}/CommunicationApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/CommunicationValidator.d.ts → Communication/CommunicationApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Content}/ContentApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/ContentValidator.d.ts → Content/ContentApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/FileStorageValidator.d.ts → FileStorage/FileStorageApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Lead}/LeadApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/LeadValidator.d.ts → Lead/LeadApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Order}/OrderApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/OrderValidator.d.ts → Order/OrderApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Payment}/PaymentApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/PaymentValidator.d.ts → Payment/PaymentApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{models/PosCartValidator.d.ts → PosCart/PosCartApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Rewards}/RewardsApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/RewardsValidator.d.ts → Rewards/RewardsApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Share}/ShareApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/ShareValidator.d.ts → Share/ShareApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → Theme}/ThemeApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/ThemeValidator.d.ts → Theme/ThemeApplicationValidator.d.ts} +0 -0
- /package/sdk/application/{client → User}/UserApplicationClient.d.ts +0 -0
- /package/sdk/application/{models/UserValidator.d.ts → User/UserApplicationValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/AnalyticsValidator.d.ts → Analytics/AnalyticsPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/AuditTrailValidator.d.ts → AuditTrail/AuditTrailPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Billing}/BillingPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/BillingValidator.d.ts → Billing/BillingPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Common}/CommonPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommonValidator.d.ts → Common/CommonPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Communication}/CommunicationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommunicationValidator.d.ts → Communication/CommunicationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/FileStorageValidator.d.ts → FileStorage/FileStoragePlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Inventory}/InventoryPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/InventoryValidator.d.ts → Inventory/InventoryPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Lead}/LeadPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/LeadValidator.d.ts → Lead/LeadPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Payment}/PaymentPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/PaymentValidator.d.ts → Payment/PaymentPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Webhook}/WebhookPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/WebhookValidator.d.ts → Webhook/WebhookPlatformValidator.d.ts} +0 -0
- /package/sdk/public/{client → Configuration}/ConfigurationPublicClient.d.ts +0 -0
- /package/sdk/public/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Inventory}/InventoryPublicClient.d.ts +0 -0
- /package/sdk/public/{models/InventoryValidator.d.ts → Inventory/InventoryPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Webhook}/WebhookPublicClient.d.ts +0 -0
- /package/sdk/public/{models/WebhookValidator.d.ts → Webhook/WebhookPublicValidator.d.ts} +0 -0
|
@@ -0,0 +1,1182 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
|
|
3
|
+
class ConfigurationModel {
|
|
4
|
+
static ApplicationAboutResponse() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
application_info: ConfigurationModel.ApplicationInfo(),
|
|
7
|
+
|
|
8
|
+
company_info: ConfigurationModel.CompanyInfo(),
|
|
9
|
+
|
|
10
|
+
owner_info: ConfigurationModel.OwnerInfo(),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static ApplicationInfo() {
|
|
15
|
+
return Joi.object({
|
|
16
|
+
_id: Joi.string().allow(""),
|
|
17
|
+
|
|
18
|
+
domain: ConfigurationModel.Domain(),
|
|
19
|
+
|
|
20
|
+
website: ConfigurationModel.ApplicationWebsite(),
|
|
21
|
+
|
|
22
|
+
cors: ConfigurationModel.ApplicationCors(),
|
|
23
|
+
|
|
24
|
+
description: Joi.string().allow(""),
|
|
25
|
+
|
|
26
|
+
name: Joi.string().allow(""),
|
|
27
|
+
|
|
28
|
+
meta: ConfigurationModel.ApplicationMeta(),
|
|
29
|
+
|
|
30
|
+
token: Joi.string().allow(""),
|
|
31
|
+
|
|
32
|
+
secret: Joi.string().allow(""),
|
|
33
|
+
|
|
34
|
+
created_at: Joi.string().allow(""),
|
|
35
|
+
|
|
36
|
+
banner: ConfigurationModel.SecureUrl(),
|
|
37
|
+
|
|
38
|
+
logo: ConfigurationModel.SecureUrl(),
|
|
39
|
+
|
|
40
|
+
is_active: Joi.boolean(),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static CompanyInfo() {
|
|
45
|
+
return Joi.object({
|
|
46
|
+
_id: Joi.string().allow(""),
|
|
47
|
+
|
|
48
|
+
uid: Joi.number(),
|
|
49
|
+
|
|
50
|
+
created_on: Joi.string().allow(""),
|
|
51
|
+
|
|
52
|
+
is_active: Joi.boolean(),
|
|
53
|
+
|
|
54
|
+
name: Joi.string().allow(""),
|
|
55
|
+
|
|
56
|
+
addresses: Joi.array().items(ConfigurationModel.CompanyAboutAddress()),
|
|
57
|
+
|
|
58
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static OwnerInfo() {
|
|
63
|
+
return Joi.object({
|
|
64
|
+
_id: Joi.string().allow(""),
|
|
65
|
+
|
|
66
|
+
emails: Joi.array().items(ConfigurationModel.UserEmail()),
|
|
67
|
+
|
|
68
|
+
phone_numbers: Joi.array().items(ConfigurationModel.UserPhoneNumber()),
|
|
69
|
+
|
|
70
|
+
first_name: Joi.string().allow(""),
|
|
71
|
+
|
|
72
|
+
last_name: Joi.string().allow(""),
|
|
73
|
+
|
|
74
|
+
profile_pic: Joi.string().allow(""),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static AppVersionRequest() {
|
|
79
|
+
return Joi.object({
|
|
80
|
+
application: ConfigurationModel.ApplicationVersionRequest().required(),
|
|
81
|
+
|
|
82
|
+
device: ConfigurationModel.Device().required(),
|
|
83
|
+
|
|
84
|
+
locale: Joi.string().allow(""),
|
|
85
|
+
|
|
86
|
+
timezone: Joi.string().allow(""),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static ApplicationVersionRequest() {
|
|
91
|
+
return Joi.object({
|
|
92
|
+
id: Joi.string().allow(""),
|
|
93
|
+
|
|
94
|
+
name: Joi.string().allow("").required(),
|
|
95
|
+
|
|
96
|
+
namespace: Joi.string().allow(""),
|
|
97
|
+
|
|
98
|
+
token: Joi.string().allow(""),
|
|
99
|
+
|
|
100
|
+
version: Joi.string().allow("").required(),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static Device() {
|
|
105
|
+
return Joi.object({
|
|
106
|
+
build: Joi.number(),
|
|
107
|
+
|
|
108
|
+
model: Joi.string().allow(""),
|
|
109
|
+
|
|
110
|
+
os: ConfigurationModel.OS().required(),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static OS() {
|
|
115
|
+
return Joi.object({
|
|
116
|
+
name: Joi.string().allow("").required(),
|
|
117
|
+
|
|
118
|
+
version: Joi.string().allow(""),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static SupportedLanguage() {
|
|
123
|
+
return Joi.object({
|
|
124
|
+
name: Joi.string().allow(""),
|
|
125
|
+
|
|
126
|
+
code: Joi.string().allow(""),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
static LanguageResponse() {
|
|
131
|
+
return Joi.object({
|
|
132
|
+
items: Joi.array().items(ConfigurationModel.SupportedLanguage()),
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static AppStaffResponse() {
|
|
137
|
+
return Joi.object({
|
|
138
|
+
staff_users: Joi.array().items(ConfigurationModel.AppStaff()),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static AppStaffListResponse() {
|
|
143
|
+
return Joi.object({
|
|
144
|
+
page: ConfigurationModel.Page(),
|
|
145
|
+
|
|
146
|
+
items: Joi.array().items(ConfigurationModel.AppStaff()),
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static UpdateDialog() {
|
|
151
|
+
return Joi.object({
|
|
152
|
+
type: Joi.string().allow(""),
|
|
153
|
+
|
|
154
|
+
interval: Joi.number(),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
static OrderingStoreSelectRequest() {
|
|
159
|
+
return Joi.object({
|
|
160
|
+
ordering_store: ConfigurationModel.OrderingStoreSelect().required(),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static OrderingStoreSelect() {
|
|
165
|
+
return Joi.object({
|
|
166
|
+
uid: Joi.number().required(),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
static AppStaff() {
|
|
171
|
+
return Joi.object({
|
|
172
|
+
_id: Joi.string().allow(""),
|
|
173
|
+
|
|
174
|
+
order_incent: Joi.boolean(),
|
|
175
|
+
|
|
176
|
+
stores: Joi.array().items(Joi.number()),
|
|
177
|
+
|
|
178
|
+
application: Joi.string().allow(""),
|
|
179
|
+
|
|
180
|
+
title: Joi.string().allow(""),
|
|
181
|
+
|
|
182
|
+
user: Joi.string().allow(""),
|
|
183
|
+
|
|
184
|
+
employee_code: Joi.string().allow(""),
|
|
185
|
+
|
|
186
|
+
first_name: Joi.string().allow(""),
|
|
187
|
+
|
|
188
|
+
last_name: Joi.string().allow(""),
|
|
189
|
+
|
|
190
|
+
profile_pic_url: Joi.string().allow(""),
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static AppTokenResponse() {
|
|
195
|
+
return Joi.object({
|
|
196
|
+
tokens: ConfigurationModel.Tokens(),
|
|
197
|
+
|
|
198
|
+
_id: Joi.string().allow(""),
|
|
199
|
+
|
|
200
|
+
application: Joi.string().allow(""),
|
|
201
|
+
|
|
202
|
+
created_at: Joi.string().allow(""),
|
|
203
|
+
|
|
204
|
+
updated_at: Joi.string().allow(""),
|
|
205
|
+
|
|
206
|
+
__v: Joi.number(),
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
static Tokens() {
|
|
211
|
+
return Joi.object({
|
|
212
|
+
firebase: ConfigurationModel.Firebase(),
|
|
213
|
+
|
|
214
|
+
moengage: ConfigurationModel.Moengage(),
|
|
215
|
+
|
|
216
|
+
segment: ConfigurationModel.Segment(),
|
|
217
|
+
|
|
218
|
+
gtm: ConfigurationModel.Gtm(),
|
|
219
|
+
|
|
220
|
+
freshchat: ConfigurationModel.Freshchat(),
|
|
221
|
+
|
|
222
|
+
safetynet: ConfigurationModel.Safetynet(),
|
|
223
|
+
|
|
224
|
+
fynd_rewards: ConfigurationModel.FyndRewards(),
|
|
225
|
+
|
|
226
|
+
google_map: ConfigurationModel.GoogleMap(),
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
static Firebase() {
|
|
231
|
+
return Joi.object({
|
|
232
|
+
credentials: ConfigurationModel.Credentials(),
|
|
233
|
+
|
|
234
|
+
enabled: Joi.boolean(),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
static Credentials() {
|
|
239
|
+
return Joi.object({
|
|
240
|
+
ios: ConfigurationModel.Ios(),
|
|
241
|
+
|
|
242
|
+
android: ConfigurationModel.Android(),
|
|
243
|
+
|
|
244
|
+
project_id: Joi.string().allow(""),
|
|
245
|
+
|
|
246
|
+
gcm_sender_id: Joi.string().allow(""),
|
|
247
|
+
|
|
248
|
+
application_id: Joi.string().allow(""),
|
|
249
|
+
|
|
250
|
+
api_key: Joi.string().allow(""),
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static Ios() {
|
|
255
|
+
return Joi.object({
|
|
256
|
+
application_id: Joi.string().allow(""),
|
|
257
|
+
|
|
258
|
+
api_key: Joi.string().allow(""),
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
static Android() {
|
|
263
|
+
return Joi.object({
|
|
264
|
+
application_id: Joi.string().allow(""),
|
|
265
|
+
|
|
266
|
+
api_key: Joi.string().allow(""),
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
static Moengage() {
|
|
271
|
+
return Joi.object({
|
|
272
|
+
credentials: ConfigurationModel.MoengageCredentials(),
|
|
273
|
+
|
|
274
|
+
enabled: Joi.boolean(),
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
static MoengageCredentials() {
|
|
279
|
+
return Joi.object({
|
|
280
|
+
app_id: Joi.string().allow(""),
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
static Segment() {
|
|
285
|
+
return Joi.object({
|
|
286
|
+
credentials: ConfigurationModel.SegmentCredentials(),
|
|
287
|
+
|
|
288
|
+
enabled: Joi.boolean(),
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
static SegmentCredentials() {
|
|
293
|
+
return Joi.object({
|
|
294
|
+
write_key: Joi.string().allow(""),
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
static Gtm() {
|
|
299
|
+
return Joi.object({
|
|
300
|
+
credentials: ConfigurationModel.GtmCredentials(),
|
|
301
|
+
|
|
302
|
+
enabled: Joi.boolean(),
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static GtmCredentials() {
|
|
307
|
+
return Joi.object({
|
|
308
|
+
api_key: Joi.string().allow(""),
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
static Freshchat() {
|
|
313
|
+
return Joi.object({
|
|
314
|
+
credentials: ConfigurationModel.FreshchatCredentials(),
|
|
315
|
+
|
|
316
|
+
enabled: Joi.boolean(),
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
static FreshchatCredentials() {
|
|
321
|
+
return Joi.object({
|
|
322
|
+
app_id: Joi.string().allow(""),
|
|
323
|
+
|
|
324
|
+
app_key: Joi.string().allow(""),
|
|
325
|
+
|
|
326
|
+
web_token: Joi.string().allow(""),
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
static Safetynet() {
|
|
331
|
+
return Joi.object({
|
|
332
|
+
credentials: ConfigurationModel.SafetynetCredentials(),
|
|
333
|
+
|
|
334
|
+
enabled: Joi.boolean(),
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
static SafetynetCredentials() {
|
|
339
|
+
return Joi.object({
|
|
340
|
+
api_key: Joi.string().allow(""),
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
static FyndRewards() {
|
|
345
|
+
return Joi.object({
|
|
346
|
+
credentials: ConfigurationModel.FyndRewardsCredentials(),
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
static FyndRewardsCredentials() {
|
|
351
|
+
return Joi.object({
|
|
352
|
+
public_key: Joi.string().allow(""),
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
static GoogleMap() {
|
|
357
|
+
return Joi.object({
|
|
358
|
+
credentials: ConfigurationModel.GoogleMapCredentials(),
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
static GoogleMapCredentials() {
|
|
363
|
+
return Joi.object({
|
|
364
|
+
api_key: Joi.string().allow(""),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
static RewardPointsConfig() {
|
|
369
|
+
return Joi.object({
|
|
370
|
+
credit: ConfigurationModel.Credit(),
|
|
371
|
+
|
|
372
|
+
debit: ConfigurationModel.Debit(),
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
static Credit() {
|
|
377
|
+
return Joi.object({
|
|
378
|
+
enabled: Joi.boolean(),
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
static Debit() {
|
|
383
|
+
return Joi.object({
|
|
384
|
+
enabled: Joi.boolean(),
|
|
385
|
+
|
|
386
|
+
auto_apply: Joi.boolean(),
|
|
387
|
+
|
|
388
|
+
strategy_channel: Joi.string().allow(""),
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
static ProductDetailFeature() {
|
|
393
|
+
return Joi.object({
|
|
394
|
+
similar: Joi.array().items(Joi.string().allow("")),
|
|
395
|
+
|
|
396
|
+
seller_selection: Joi.boolean(),
|
|
397
|
+
|
|
398
|
+
update_product_meta: Joi.boolean(),
|
|
399
|
+
|
|
400
|
+
request_product: Joi.boolean(),
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static LaunchPage() {
|
|
405
|
+
return Joi.object({
|
|
406
|
+
page_type: Joi.string().allow(""),
|
|
407
|
+
|
|
408
|
+
params: Joi.any(),
|
|
409
|
+
|
|
410
|
+
query: Joi.any(),
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
static LandingPageFeature() {
|
|
415
|
+
return Joi.object({
|
|
416
|
+
launch_page: ConfigurationModel.LaunchPage(),
|
|
417
|
+
|
|
418
|
+
continue_as_guest: Joi.boolean(),
|
|
419
|
+
|
|
420
|
+
login_btn_text: Joi.string().allow(""),
|
|
421
|
+
|
|
422
|
+
show_domain_textbox: Joi.boolean(),
|
|
423
|
+
|
|
424
|
+
show_register_btn: Joi.boolean(),
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
static RegistrationPageFeature() {
|
|
429
|
+
return Joi.object({
|
|
430
|
+
ask_store_address: Joi.boolean(),
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
static AppFeature() {
|
|
435
|
+
return Joi.object({
|
|
436
|
+
product_detail: ConfigurationModel.ProductDetailFeature(),
|
|
437
|
+
|
|
438
|
+
landing_page: ConfigurationModel.LandingPageFeature(),
|
|
439
|
+
|
|
440
|
+
registration_page: ConfigurationModel.RegistrationPageFeature(),
|
|
441
|
+
|
|
442
|
+
home_page: ConfigurationModel.HomePageFeature(),
|
|
443
|
+
|
|
444
|
+
common: ConfigurationModel.CommonFeature(),
|
|
445
|
+
|
|
446
|
+
cart: ConfigurationModel.CartFeature(),
|
|
447
|
+
|
|
448
|
+
qr: ConfigurationModel.QrFeature(),
|
|
449
|
+
|
|
450
|
+
pcr: ConfigurationModel.PcrFeature(),
|
|
451
|
+
|
|
452
|
+
order: ConfigurationModel.OrderFeature(),
|
|
453
|
+
|
|
454
|
+
_id: Joi.string().allow(""),
|
|
455
|
+
|
|
456
|
+
app: Joi.string().allow(""),
|
|
457
|
+
|
|
458
|
+
created_at: Joi.string().allow(""),
|
|
459
|
+
|
|
460
|
+
updated_at: Joi.string().allow(""),
|
|
461
|
+
|
|
462
|
+
__v: Joi.number(),
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
static HomePageFeature() {
|
|
467
|
+
return Joi.object({
|
|
468
|
+
order_processing: Joi.boolean(),
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
static CommonFeature() {
|
|
473
|
+
return Joi.object({
|
|
474
|
+
communication_optin_dialog: ConfigurationModel.CommunicationOptinDialogFeature(),
|
|
475
|
+
|
|
476
|
+
deployment_store_selection: ConfigurationModel.DeploymentStoreSelectionFeature(),
|
|
477
|
+
|
|
478
|
+
listing_price: ConfigurationModel.ListingPriceFeature(),
|
|
479
|
+
|
|
480
|
+
currency: ConfigurationModel.CurrencyFeature(),
|
|
481
|
+
|
|
482
|
+
revenue_engine: ConfigurationModel.RevenueEngineFeature(),
|
|
483
|
+
|
|
484
|
+
feedback: ConfigurationModel.FeedbackFeature(),
|
|
485
|
+
|
|
486
|
+
compare_products: ConfigurationModel.CompareProductsFeature(),
|
|
487
|
+
|
|
488
|
+
reward_points: ConfigurationModel.RewardPointsConfig(),
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
static CommunicationOptinDialogFeature() {
|
|
493
|
+
return Joi.object({
|
|
494
|
+
visibility: Joi.boolean(),
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
static DeploymentStoreSelectionFeature() {
|
|
499
|
+
return Joi.object({
|
|
500
|
+
enabled: Joi.boolean(),
|
|
501
|
+
|
|
502
|
+
type: Joi.string().allow(""),
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
static ListingPriceFeature() {
|
|
507
|
+
return Joi.object({
|
|
508
|
+
value: Joi.string().allow(""),
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
static CurrencyFeature() {
|
|
513
|
+
return Joi.object({
|
|
514
|
+
value: Joi.array().items(Joi.string().allow("")),
|
|
515
|
+
|
|
516
|
+
type: Joi.string().allow(""),
|
|
517
|
+
|
|
518
|
+
default_currency: Joi.string().allow(""),
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
static RevenueEngineFeature() {
|
|
523
|
+
return Joi.object({
|
|
524
|
+
enabled: Joi.boolean(),
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
static FeedbackFeature() {
|
|
529
|
+
return Joi.object({
|
|
530
|
+
enabled: Joi.boolean(),
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
static CompareProductsFeature() {
|
|
535
|
+
return Joi.object({
|
|
536
|
+
enabled: Joi.boolean(),
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
static CartFeature() {
|
|
541
|
+
return Joi.object({
|
|
542
|
+
gst_input: Joi.boolean(),
|
|
543
|
+
|
|
544
|
+
staff_selection: Joi.boolean(),
|
|
545
|
+
|
|
546
|
+
placing_for_customer: Joi.boolean(),
|
|
547
|
+
|
|
548
|
+
google_map: Joi.boolean(),
|
|
549
|
+
|
|
550
|
+
revenue_engine_coupon: Joi.boolean(),
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
static QrFeature() {
|
|
555
|
+
return Joi.object({
|
|
556
|
+
application: Joi.boolean(),
|
|
557
|
+
|
|
558
|
+
products: Joi.boolean(),
|
|
559
|
+
|
|
560
|
+
collections: Joi.boolean(),
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
static PcrFeature() {
|
|
565
|
+
return Joi.object({
|
|
566
|
+
staff_selection: Joi.boolean(),
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
static OrderFeature() {
|
|
571
|
+
return Joi.object({
|
|
572
|
+
buy_again: Joi.boolean(),
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
static AppFeatureRequest() {
|
|
577
|
+
return Joi.object({
|
|
578
|
+
feature: ConfigurationModel.AppFeature(),
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
static AppFeatureResponse() {
|
|
583
|
+
return Joi.object({
|
|
584
|
+
feature: ConfigurationModel.AppFeature(),
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
static Currency() {
|
|
589
|
+
return Joi.object({
|
|
590
|
+
_id: Joi.string().allow(""),
|
|
591
|
+
|
|
592
|
+
is_active: Joi.boolean(),
|
|
593
|
+
|
|
594
|
+
name: Joi.string().allow(""),
|
|
595
|
+
|
|
596
|
+
code: Joi.string().allow(""),
|
|
597
|
+
|
|
598
|
+
created_at: Joi.string().allow(""),
|
|
599
|
+
|
|
600
|
+
updated_at: Joi.string().allow(""),
|
|
601
|
+
|
|
602
|
+
decimal_digits: Joi.number(),
|
|
603
|
+
|
|
604
|
+
symbol: Joi.string().allow(""),
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
static Domain() {
|
|
609
|
+
return Joi.object({
|
|
610
|
+
verified: Joi.boolean(),
|
|
611
|
+
|
|
612
|
+
is_primary: Joi.boolean(),
|
|
613
|
+
|
|
614
|
+
is_shortlink: Joi.boolean(),
|
|
615
|
+
|
|
616
|
+
_id: Joi.string().allow(""),
|
|
617
|
+
|
|
618
|
+
name: Joi.string().allow(""),
|
|
619
|
+
|
|
620
|
+
is_predefined: Joi.boolean(),
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
static ApplicationWebsite() {
|
|
625
|
+
return Joi.object({
|
|
626
|
+
enabled: Joi.boolean(),
|
|
627
|
+
|
|
628
|
+
basepath: Joi.string().allow(""),
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
static ApplicationCors() {
|
|
633
|
+
return Joi.object({
|
|
634
|
+
domains: Joi.array().items(Joi.string().allow("")),
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
static ApplicationAuth() {
|
|
639
|
+
return Joi.object({
|
|
640
|
+
enabled: Joi.boolean(),
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
static ApplicationRedirections() {
|
|
645
|
+
return Joi.object({
|
|
646
|
+
redirect_from: Joi.string().allow(""),
|
|
647
|
+
|
|
648
|
+
redirect_to: Joi.string().allow(""),
|
|
649
|
+
|
|
650
|
+
type: Joi.string().allow(""),
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
static ApplicationMeta() {
|
|
655
|
+
return Joi.object({
|
|
656
|
+
name: Joi.string().allow(""),
|
|
657
|
+
|
|
658
|
+
value: Joi.string().allow(""),
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
static SecureUrl() {
|
|
663
|
+
return Joi.object({
|
|
664
|
+
secure_url: Joi.string().allow(""),
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
static Application() {
|
|
669
|
+
return Joi.object({
|
|
670
|
+
website: ConfigurationModel.ApplicationWebsite(),
|
|
671
|
+
|
|
672
|
+
cors: ConfigurationModel.ApplicationCors(),
|
|
673
|
+
|
|
674
|
+
auth: ConfigurationModel.ApplicationAuth(),
|
|
675
|
+
|
|
676
|
+
description: Joi.string().allow(""),
|
|
677
|
+
|
|
678
|
+
channel_type: Joi.string().allow(""),
|
|
679
|
+
|
|
680
|
+
cache_ttl: Joi.number(),
|
|
681
|
+
|
|
682
|
+
is_internal: Joi.boolean(),
|
|
683
|
+
|
|
684
|
+
is_active: Joi.boolean(),
|
|
685
|
+
|
|
686
|
+
_id: Joi.string().allow(""),
|
|
687
|
+
|
|
688
|
+
name: Joi.string().allow(""),
|
|
689
|
+
|
|
690
|
+
owner: Joi.string().allow(""),
|
|
691
|
+
|
|
692
|
+
company_id: Joi.number(),
|
|
693
|
+
|
|
694
|
+
token: Joi.string().allow(""),
|
|
695
|
+
|
|
696
|
+
redirections: Joi.array().items(
|
|
697
|
+
ConfigurationModel.ApplicationRedirections()
|
|
698
|
+
),
|
|
699
|
+
|
|
700
|
+
meta: Joi.array().items(ConfigurationModel.ApplicationMeta()),
|
|
701
|
+
|
|
702
|
+
created_at: Joi.string().allow(""),
|
|
703
|
+
|
|
704
|
+
updated_at: Joi.string().allow(""),
|
|
705
|
+
|
|
706
|
+
__v: Joi.number(),
|
|
707
|
+
|
|
708
|
+
banner: ConfigurationModel.SecureUrl(),
|
|
709
|
+
|
|
710
|
+
logo: ConfigurationModel.SecureUrl(),
|
|
711
|
+
|
|
712
|
+
favicon: ConfigurationModel.SecureUrl(),
|
|
713
|
+
|
|
714
|
+
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
715
|
+
|
|
716
|
+
app_type: Joi.string().allow(""),
|
|
717
|
+
|
|
718
|
+
mobile_logo: ConfigurationModel.SecureUrl(),
|
|
719
|
+
|
|
720
|
+
domain: ConfigurationModel.Domain(),
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
static NotFound() {
|
|
725
|
+
return Joi.object({
|
|
726
|
+
message: Joi.string().allow(""),
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
static UnhandledError() {
|
|
731
|
+
return Joi.object({
|
|
732
|
+
message: Joi.string().allow(""),
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
static InvalidPayloadRequest() {
|
|
737
|
+
return Joi.object({
|
|
738
|
+
message: Joi.string().allow(""),
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
static SuccessMessageResponse() {
|
|
743
|
+
return Joi.object({
|
|
744
|
+
message: Joi.string().allow(""),
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
static InventoryBrandRule() {
|
|
749
|
+
return Joi.object({
|
|
750
|
+
criteria: Joi.string().allow(""),
|
|
751
|
+
|
|
752
|
+
brands: Joi.array().items(Joi.number()),
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
static StoreCriteriaRule() {
|
|
757
|
+
return Joi.object({
|
|
758
|
+
companies: Joi.array().items(Joi.number()),
|
|
759
|
+
|
|
760
|
+
brands: Joi.array().items(Joi.number()),
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
static InventoryStoreRule() {
|
|
765
|
+
return Joi.object({
|
|
766
|
+
criteria: Joi.string().allow(""),
|
|
767
|
+
|
|
768
|
+
rules: Joi.array().items(ConfigurationModel.StoreCriteriaRule()),
|
|
769
|
+
|
|
770
|
+
stores: Joi.array().items(Joi.number()),
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
static InventoryPaymentConfig() {
|
|
775
|
+
return Joi.object({
|
|
776
|
+
mode_of_payment: Joi.string().allow(""),
|
|
777
|
+
|
|
778
|
+
source: Joi.string().allow(""),
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
static StorePriorityRule() {
|
|
783
|
+
return Joi.object({
|
|
784
|
+
enabled: Joi.boolean(),
|
|
785
|
+
|
|
786
|
+
storetype_order: Joi.array().items(Joi.string().allow("")),
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
static ArticleAssignmentRule() {
|
|
791
|
+
return Joi.object({
|
|
792
|
+
store_priority: ConfigurationModel.StorePriorityRule(),
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
static InventoryArticleAssignment() {
|
|
797
|
+
return Joi.object({
|
|
798
|
+
post_order_reassignment: Joi.boolean(),
|
|
799
|
+
|
|
800
|
+
rules: ConfigurationModel.ArticleAssignmentRule(),
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
static CompanyAboutAddress() {
|
|
805
|
+
return Joi.object({
|
|
806
|
+
pincode: Joi.number(),
|
|
807
|
+
|
|
808
|
+
address1: Joi.string().allow(""),
|
|
809
|
+
|
|
810
|
+
address2: Joi.string().allow(""),
|
|
811
|
+
|
|
812
|
+
city: Joi.string().allow(""),
|
|
813
|
+
|
|
814
|
+
state: Joi.string().allow(""),
|
|
815
|
+
|
|
816
|
+
country: Joi.string().allow(""),
|
|
817
|
+
|
|
818
|
+
address_type: Joi.string().allow(""),
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
static UserEmail() {
|
|
823
|
+
return Joi.object({
|
|
824
|
+
active: Joi.boolean(),
|
|
825
|
+
|
|
826
|
+
primary: Joi.boolean(),
|
|
827
|
+
|
|
828
|
+
verified: Joi.boolean(),
|
|
829
|
+
|
|
830
|
+
email: Joi.string().allow(""),
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
static UserPhoneNumber() {
|
|
835
|
+
return Joi.object({
|
|
836
|
+
active: Joi.boolean(),
|
|
837
|
+
|
|
838
|
+
primary: Joi.boolean(),
|
|
839
|
+
|
|
840
|
+
verified: Joi.boolean(),
|
|
841
|
+
|
|
842
|
+
country_code: Joi.number(),
|
|
843
|
+
|
|
844
|
+
phone: Joi.string().allow(""),
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
static Page() {
|
|
849
|
+
return Joi.object({
|
|
850
|
+
item_total: Joi.number(),
|
|
851
|
+
|
|
852
|
+
next_id: Joi.string().allow(""),
|
|
853
|
+
|
|
854
|
+
has_previous: Joi.boolean(),
|
|
855
|
+
|
|
856
|
+
has_next: Joi.boolean(),
|
|
857
|
+
|
|
858
|
+
current: Joi.number(),
|
|
859
|
+
|
|
860
|
+
type: Joi.string().allow("").required(),
|
|
861
|
+
|
|
862
|
+
size: Joi.number(),
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
static ApplicationInformation() {
|
|
867
|
+
return Joi.object({
|
|
868
|
+
address: ConfigurationModel.InformationAddress(),
|
|
869
|
+
|
|
870
|
+
support: ConfigurationModel.InformationSupport(),
|
|
871
|
+
|
|
872
|
+
social_links: ConfigurationModel.SocialLinks(),
|
|
873
|
+
|
|
874
|
+
links: ConfigurationModel.Links(),
|
|
875
|
+
|
|
876
|
+
copyright_text: Joi.string().allow(""),
|
|
877
|
+
|
|
878
|
+
_id: Joi.string().allow(""),
|
|
879
|
+
|
|
880
|
+
business_highlights: ConfigurationModel.BusinessHighlights(),
|
|
881
|
+
|
|
882
|
+
application: Joi.string().allow(""),
|
|
883
|
+
|
|
884
|
+
created_at: Joi.string().allow(""),
|
|
885
|
+
|
|
886
|
+
updated_at: Joi.string().allow(""),
|
|
887
|
+
|
|
888
|
+
__v: Joi.number(),
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
static InformationAddress() {
|
|
893
|
+
return Joi.object({
|
|
894
|
+
loc: Joi.string().allow(""),
|
|
895
|
+
|
|
896
|
+
address_line: Joi.array().items(Joi.string().allow("")),
|
|
897
|
+
|
|
898
|
+
phone: ConfigurationModel.InformationPhone(),
|
|
899
|
+
|
|
900
|
+
city: Joi.string().allow(""),
|
|
901
|
+
|
|
902
|
+
country: Joi.string().allow(""),
|
|
903
|
+
|
|
904
|
+
pincode: Joi.number(),
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
static InformationPhone() {
|
|
909
|
+
return Joi.object({
|
|
910
|
+
code: Joi.string().allow(""),
|
|
911
|
+
|
|
912
|
+
number: Joi.string().allow(""),
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
static InformationSupport() {
|
|
917
|
+
return Joi.object({
|
|
918
|
+
phone: Joi.array().items(Joi.string().allow("")),
|
|
919
|
+
|
|
920
|
+
email: Joi.array().items(Joi.string().allow("")),
|
|
921
|
+
|
|
922
|
+
timing: Joi.string().allow(""),
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
static SocialLinks() {
|
|
927
|
+
return Joi.object({
|
|
928
|
+
facebook: ConfigurationModel.FacebookLink(),
|
|
929
|
+
|
|
930
|
+
instagram: ConfigurationModel.InstagramLink(),
|
|
931
|
+
|
|
932
|
+
twitter: ConfigurationModel.TwitterLink(),
|
|
933
|
+
|
|
934
|
+
pinterest: ConfigurationModel.PinterestLink(),
|
|
935
|
+
|
|
936
|
+
google_plus: ConfigurationModel.GooglePlusLink(),
|
|
937
|
+
|
|
938
|
+
youtube: ConfigurationModel.YoutubeLink(),
|
|
939
|
+
|
|
940
|
+
linked_in: ConfigurationModel.LinkedInLink(),
|
|
941
|
+
|
|
942
|
+
vimeo: ConfigurationModel.VimeoLink(),
|
|
943
|
+
|
|
944
|
+
blog_link: ConfigurationModel.BlogLink(),
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
static FacebookLink() {
|
|
949
|
+
return Joi.object({
|
|
950
|
+
title: Joi.string().allow(""),
|
|
951
|
+
|
|
952
|
+
icon: Joi.string().allow(""),
|
|
953
|
+
|
|
954
|
+
link: Joi.string().allow(""),
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
static InstagramLink() {
|
|
959
|
+
return Joi.object({
|
|
960
|
+
title: Joi.string().allow(""),
|
|
961
|
+
|
|
962
|
+
icon: Joi.string().allow(""),
|
|
963
|
+
|
|
964
|
+
link: Joi.string().allow(""),
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
static TwitterLink() {
|
|
969
|
+
return Joi.object({
|
|
970
|
+
title: Joi.string().allow(""),
|
|
971
|
+
|
|
972
|
+
icon: Joi.string().allow(""),
|
|
973
|
+
|
|
974
|
+
link: Joi.string().allow(""),
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
static PinterestLink() {
|
|
979
|
+
return Joi.object({
|
|
980
|
+
title: Joi.string().allow(""),
|
|
981
|
+
|
|
982
|
+
icon: Joi.string().allow(""),
|
|
983
|
+
|
|
984
|
+
link: Joi.string().allow(""),
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
static GooglePlusLink() {
|
|
989
|
+
return Joi.object({
|
|
990
|
+
title: Joi.string().allow(""),
|
|
991
|
+
|
|
992
|
+
icon: Joi.string().allow(""),
|
|
993
|
+
|
|
994
|
+
link: Joi.string().allow(""),
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
static YoutubeLink() {
|
|
999
|
+
return Joi.object({
|
|
1000
|
+
title: Joi.string().allow(""),
|
|
1001
|
+
|
|
1002
|
+
icon: Joi.string().allow(""),
|
|
1003
|
+
|
|
1004
|
+
link: Joi.string().allow(""),
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
static LinkedInLink() {
|
|
1009
|
+
return Joi.object({
|
|
1010
|
+
title: Joi.string().allow(""),
|
|
1011
|
+
|
|
1012
|
+
icon: Joi.string().allow(""),
|
|
1013
|
+
|
|
1014
|
+
link: Joi.string().allow(""),
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
static VimeoLink() {
|
|
1019
|
+
return Joi.object({
|
|
1020
|
+
title: Joi.string().allow(""),
|
|
1021
|
+
|
|
1022
|
+
icon: Joi.string().allow(""),
|
|
1023
|
+
|
|
1024
|
+
link: Joi.string().allow(""),
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
static BlogLink() {
|
|
1029
|
+
return Joi.object({
|
|
1030
|
+
title: Joi.string().allow(""),
|
|
1031
|
+
|
|
1032
|
+
icon: Joi.string().allow(""),
|
|
1033
|
+
|
|
1034
|
+
link: Joi.string().allow(""),
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
static Links() {
|
|
1039
|
+
return Joi.object({
|
|
1040
|
+
title: Joi.string().allow(""),
|
|
1041
|
+
|
|
1042
|
+
link: Joi.string().allow(""),
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
static BusinessHighlights() {
|
|
1047
|
+
return Joi.object({
|
|
1048
|
+
_id: Joi.string().allow(""),
|
|
1049
|
+
|
|
1050
|
+
title: Joi.string().allow(""),
|
|
1051
|
+
|
|
1052
|
+
icon: Joi.string().allow(""),
|
|
1053
|
+
|
|
1054
|
+
sub_title: Joi.string().allow(""),
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
static ApplicationDetail() {
|
|
1059
|
+
return Joi.object({
|
|
1060
|
+
name: Joi.string().allow("").required(),
|
|
1061
|
+
|
|
1062
|
+
description: Joi.string().allow("").required(),
|
|
1063
|
+
|
|
1064
|
+
logo: ConfigurationModel.SecureUrl().required(),
|
|
1065
|
+
|
|
1066
|
+
mobile_logo: ConfigurationModel.SecureUrl().required(),
|
|
1067
|
+
|
|
1068
|
+
favicon: ConfigurationModel.SecureUrl().required(),
|
|
1069
|
+
|
|
1070
|
+
banner: ConfigurationModel.SecureUrl().required(),
|
|
1071
|
+
|
|
1072
|
+
domain: ConfigurationModel.Domain(),
|
|
1073
|
+
|
|
1074
|
+
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
1075
|
+
|
|
1076
|
+
_id: Joi.string().allow(""),
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
static CurrenciesResponse() {
|
|
1081
|
+
return Joi.object({
|
|
1082
|
+
items: Joi.array().items(ConfigurationModel.Currency()),
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
static DefaultCurrency() {
|
|
1087
|
+
return Joi.object({
|
|
1088
|
+
ref: Joi.string().allow(""),
|
|
1089
|
+
|
|
1090
|
+
code: Joi.string().allow(""),
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
static AppCurrencyResponse() {
|
|
1095
|
+
return Joi.object({
|
|
1096
|
+
application: Joi.string().allow(""),
|
|
1097
|
+
|
|
1098
|
+
default_currency: ConfigurationModel.DefaultCurrency(),
|
|
1099
|
+
|
|
1100
|
+
supported_currency: Joi.array().items(ConfigurationModel.Currency()),
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
static StoreLatLong() {
|
|
1105
|
+
return Joi.object({
|
|
1106
|
+
type: Joi.string().allow(""),
|
|
1107
|
+
|
|
1108
|
+
coordinates: Joi.array().items(Joi.number()),
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
static OptedStoreAddress() {
|
|
1113
|
+
return Joi.object({
|
|
1114
|
+
state: Joi.string().allow(""),
|
|
1115
|
+
|
|
1116
|
+
address1: Joi.string().allow(""),
|
|
1117
|
+
|
|
1118
|
+
lat_long: ConfigurationModel.StoreLatLong(),
|
|
1119
|
+
|
|
1120
|
+
address2: Joi.string().allow(""),
|
|
1121
|
+
|
|
1122
|
+
pincode: Joi.number(),
|
|
1123
|
+
|
|
1124
|
+
country: Joi.string().allow(""),
|
|
1125
|
+
|
|
1126
|
+
city: Joi.string().allow(""),
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
static OrderingStore() {
|
|
1131
|
+
return Joi.object({
|
|
1132
|
+
address: ConfigurationModel.OptedStoreAddress(),
|
|
1133
|
+
|
|
1134
|
+
_id: Joi.string().allow(""),
|
|
1135
|
+
|
|
1136
|
+
uid: Joi.number(),
|
|
1137
|
+
|
|
1138
|
+
name: Joi.string().allow(""),
|
|
1139
|
+
|
|
1140
|
+
display_name: Joi.string().allow(""),
|
|
1141
|
+
|
|
1142
|
+
store_type: Joi.string().allow(""),
|
|
1143
|
+
|
|
1144
|
+
store_code: Joi.string().allow(""),
|
|
1145
|
+
|
|
1146
|
+
pincode: Joi.number(),
|
|
1147
|
+
|
|
1148
|
+
code: Joi.string().allow(""),
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
static OrderingStores() {
|
|
1153
|
+
return Joi.object({
|
|
1154
|
+
page: ConfigurationModel.Page(),
|
|
1155
|
+
|
|
1156
|
+
items: Joi.array().items(ConfigurationModel.OrderingStore()),
|
|
1157
|
+
|
|
1158
|
+
deployed_stores: Joi.array().items(Joi.number()),
|
|
1159
|
+
|
|
1160
|
+
all_stores: Joi.boolean(),
|
|
1161
|
+
|
|
1162
|
+
enabled: Joi.boolean(),
|
|
1163
|
+
|
|
1164
|
+
type: Joi.string().allow(""),
|
|
1165
|
+
|
|
1166
|
+
_id: Joi.string().allow(""),
|
|
1167
|
+
|
|
1168
|
+
app: Joi.string().allow(""),
|
|
1169
|
+
|
|
1170
|
+
__v: Joi.number(),
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
static OrderingStoresResponse() {
|
|
1175
|
+
return Joi.object({
|
|
1176
|
+
page: ConfigurationModel.Page(),
|
|
1177
|
+
|
|
1178
|
+
items: Joi.array().items(ConfigurationModel.OrderingStore()),
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
module.exports = ConfigurationModel;
|