@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,30 +1,638 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddThemeRequestSchema
|
|
5
|
+
* @property {string} [theme_id]
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @typedef AdvanceSetting
|
|
10
|
+
* @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
|
|
11
|
+
* @property {OverlayPopupSetting} [overlay_popup]
|
|
12
|
+
* @property {UserAlertsSetting} [user_alerts]
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef AllAvailablePageSchema
|
|
17
|
+
* @property {AvailablePageSchema[]} [pages]
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef Assets
|
|
22
|
+
* @property {CommonJS} [common_js]
|
|
23
|
+
* @property {CSS} [css]
|
|
24
|
+
* @property {UMDJs} [umd_js]
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef AuthConfig
|
|
29
|
+
* @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
|
|
30
|
+
* @property {boolean} [show_header_auth] - Whether to show header authentication or not
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef AvailablePagePredicate
|
|
35
|
+
* @property {AvailablePageRoutePredicate} [route]
|
|
36
|
+
* @property {AvailablePageScreenPredicate} [screen]
|
|
37
|
+
* @property {AvailablePageUserPredicate} [user]
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef AvailablePageRoutePredicate
|
|
42
|
+
* @property {string} [exact_url]
|
|
43
|
+
* @property {Object} [query]
|
|
44
|
+
* @property {string} [selected]
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @typedef AvailablePageSchema
|
|
49
|
+
* @property {string} [_id]
|
|
50
|
+
* @property {string} [path]
|
|
51
|
+
* @property {Object[]} [props]
|
|
52
|
+
* @property {AvailablePageSchemaSections[]} [sections]
|
|
53
|
+
* @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
|
|
54
|
+
* @property {AvailablePageSeo} [seo]
|
|
55
|
+
* @property {string} [text]
|
|
56
|
+
* @property {string} [theme]
|
|
57
|
+
* @property {string} [type]
|
|
58
|
+
* @property {string} [value]
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef AvailablePageSchemaSections
|
|
63
|
+
* @property {Object[]} [blocks]
|
|
64
|
+
* @property {string} [label]
|
|
65
|
+
* @property {string} [name]
|
|
66
|
+
* @property {AvailablePagePredicate} [predicate]
|
|
67
|
+
* @property {Object} [preset]
|
|
68
|
+
* @property {Object} [props]
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @typedef AvailablePageScreenPredicate
|
|
73
|
+
* @property {boolean} [desktop]
|
|
74
|
+
* @property {boolean} [mobile]
|
|
75
|
+
* @property {boolean} [tablet]
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @typedef AvailablePageSectionMetaAttributes
|
|
80
|
+
* @property {Object} [attributes]
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef AvailablePageSeo
|
|
85
|
+
* @property {string} [_id]
|
|
86
|
+
* @property {string} [description]
|
|
87
|
+
* @property {string} [title]
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @typedef AvailablePageUserPredicate
|
|
92
|
+
* @property {boolean} [anonymous]
|
|
93
|
+
* @property {boolean} [authenticated]
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef BlitzkriegApiErrorSchema
|
|
98
|
+
* @property {string} [message]
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef BlitzkriegInternalServerErrorSchema
|
|
103
|
+
* @property {string} [message]
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef Block
|
|
108
|
+
* @property {string} [name] - The name of the block.
|
|
109
|
+
* @property {BlockProps} [props]
|
|
110
|
+
* @property {string} [type] - The type of the block.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @typedef BlockProps
|
|
115
|
+
* @property {ImagePickerProp} [image]
|
|
116
|
+
* @property {UrlProp} [slide_link]
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef ButtonSetting
|
|
121
|
+
* @property {string} [button_link] - The button link color
|
|
122
|
+
* @property {string} [button_primary] - The primary button color
|
|
123
|
+
* @property {string} [button_secondary] - The secondary button color
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @typedef CheckboxProp
|
|
128
|
+
* @property {string} [type] - The type of the property.
|
|
129
|
+
* @property {boolean} [value] - The value of the checkbox property.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @typedef Colors
|
|
134
|
+
* @property {string} [accent_color] - The accent color
|
|
135
|
+
* @property {string} [bg_color] - The background color
|
|
136
|
+
* @property {string} [button_secondary_color] - The secondary button color
|
|
137
|
+
* @property {string} [link_color] - The link color
|
|
138
|
+
* @property {string} [primary_color] - The primary color
|
|
139
|
+
* @property {string} [secondary_color] - The secondary color
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @typedef CommonJS
|
|
144
|
+
* @property {string} [link]
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @typedef CompanyThemeSchema
|
|
149
|
+
* @property {string} [_id] - The unique identifier for the theme.
|
|
150
|
+
* @property {number} [company_id] - The ID of the company that the theme belongs to.
|
|
151
|
+
* @property {string} [created_at] - The timestamp when the theme was created.
|
|
152
|
+
* @property {MarketplaceThemeId} [marketplace_theme_id]
|
|
153
|
+
* @property {ThemeMeta} [meta]
|
|
154
|
+
* @property {string} [name] - The name of the theme.
|
|
155
|
+
* @property {string} [updated_at] - The timestamp when the theme was last updated.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @typedef Config
|
|
160
|
+
* @property {string} current - The current configuration
|
|
161
|
+
* @property {GlobalSchema} [global_schema]
|
|
162
|
+
* @property {ThemeConfiguration[]} list - A list of configurations
|
|
163
|
+
* @property {Preset} [preset]
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef CSS
|
|
168
|
+
* @property {string[]} [links]
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef CustomConfig
|
|
173
|
+
* @property {CustomProps} [props]
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @typedef CustomProps
|
|
178
|
+
* @property {string} [button_add_to_cart_color] - The add to cart button color
|
|
179
|
+
* @property {string} [button_add_to_cart_label_color] - The add to cart button
|
|
180
|
+
* label color
|
|
181
|
+
* @property {string} [button_primary_color] - The primary button color
|
|
182
|
+
* @property {string} [button_primary_label_color] - The primary button label color
|
|
183
|
+
* @property {string} [button_secondary_color] - The secondary button color
|
|
184
|
+
* @property {string} [button_secondary_label_color] - The secondary button label color
|
|
185
|
+
* @property {string} [button_tertiary_color] - The tertiary button color
|
|
186
|
+
* @property {string} [button_tertiary_hover_color] - The tertiary button hover color
|
|
187
|
+
* @property {string} [button_tertiary_hover_text_color] - The tertiary button
|
|
188
|
+
* hover text color
|
|
189
|
+
* @property {string} [button_tertiary_label_color] - The tertiary button label color
|
|
190
|
+
* @property {boolean} [disable_cart] - Whether to disable the cart or not
|
|
191
|
+
* @property {string} [footer_bg_color] - The footer background color
|
|
192
|
+
* @property {string} [footer_border_color] - The footer border color
|
|
193
|
+
* @property {string} [footer_nav_hover_color] - The footer navigation hover color
|
|
194
|
+
* @property {string} [footer_text_color] - The footer text color
|
|
195
|
+
* @property {string} [header_bg_color] - The header background color
|
|
196
|
+
* @property {string} [header_border_color] - The header border color
|
|
197
|
+
* @property {string} [header_cart_notification_bg_color] - The header cart
|
|
198
|
+
* notification background color
|
|
199
|
+
* @property {string} [header_cart_notification_text_color] - The header cart
|
|
200
|
+
* notification text color
|
|
201
|
+
* @property {string} [header_icon_color] - The header icon color
|
|
202
|
+
* @property {string} [header_nav_hover_color] - The header navigation hover color
|
|
203
|
+
* @property {string} [header_text_color] - The header text color
|
|
204
|
+
* @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not
|
|
205
|
+
* @property {string} [menu_position] - The position of the menu
|
|
206
|
+
* @property {string} [text_body_color] - The text body color
|
|
207
|
+
* @property {string} [text_discount_color] - The text discount color
|
|
208
|
+
* @property {string} [text_heading_link_color] - The text heading link color
|
|
209
|
+
* @property {string} [text_price_color] - The text price color
|
|
210
|
+
* @property {string} [text_sale_price_color] - The text sale price color
|
|
211
|
+
* @property {string} [text_strikethrough_price_color] - The text strikethrough
|
|
212
|
+
* price color
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @typedef DividerStrokeHighlightSetting
|
|
217
|
+
* @property {string} [divider_strokes] - The divider strokes color
|
|
218
|
+
* @property {string} [highlight] - The highlight color
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @typedef DummyResponse
|
|
223
|
+
* @property {string} [message]
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @typedef Font
|
|
228
|
+
* @property {string} family - The font family
|
|
229
|
+
* @property {FontVariants} variants
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @typedef FontsSchema
|
|
234
|
+
* @property {FontsSchemaItems} [items]
|
|
235
|
+
* @property {string} [kind]
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @typedef FontsSchemaItems
|
|
240
|
+
* @property {string} [category]
|
|
241
|
+
* @property {string} [family]
|
|
242
|
+
* @property {FontsSchemaItemsFiles} [files]
|
|
243
|
+
* @property {string} [kind]
|
|
244
|
+
* @property {string} [last_modified]
|
|
245
|
+
* @property {string[]} [subsets]
|
|
246
|
+
* @property {string[]} [variants]
|
|
247
|
+
* @property {string} [version]
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @typedef FontsSchemaItemsFiles
|
|
252
|
+
* @property {string} [bold]
|
|
253
|
+
* @property {string} [italic]
|
|
254
|
+
* @property {string} [regular]
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @typedef FontVariant
|
|
259
|
+
* @property {string} file - The URL of the font file
|
|
260
|
+
* @property {string} name - The name of the font variant
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @typedef FontVariants
|
|
265
|
+
* @property {FontVariant} [bold]
|
|
266
|
+
* @property {FontVariant} [light]
|
|
267
|
+
* @property {FontVariant} [medium]
|
|
268
|
+
* @property {FontVariant} [regular]
|
|
269
|
+
* @property {FontVariant} [semi_bold]
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @typedef FooterSetting
|
|
274
|
+
* @property {string} [footer_background] - The footer background color
|
|
275
|
+
* @property {string} [footer_body_text] - The footer body text color
|
|
276
|
+
* @property {string} [footer_bottom_background] - The footer bottom background color
|
|
277
|
+
* @property {string} [footer_heading_text] - The footer heading text color
|
|
278
|
+
* @property {string} [footer_icon] - The footer icon color
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @typedef GeneralSetting
|
|
283
|
+
* @property {ButtonSetting} [button]
|
|
284
|
+
* @property {FooterSetting} [footer]
|
|
285
|
+
* @property {HeaderSetting} [header]
|
|
286
|
+
* @property {SaleDiscountSetting} [sale_discount]
|
|
287
|
+
* @property {TextSetting} [text]
|
|
288
|
+
* @property {ThemeSetting} [theme]
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @typedef GlobalConfig
|
|
293
|
+
* @property {CustomConfig} [custom]
|
|
294
|
+
* @property {StaticConfig} [statics]
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @typedef GlobalSchema
|
|
299
|
+
* @property {Prop[]} [props]
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @typedef HeaderSetting
|
|
304
|
+
* @property {string} [header_background] - The header background color
|
|
305
|
+
* @property {string} [header_icon] - The header icon color
|
|
306
|
+
* @property {string} [header_nav] - The header navigation color
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @typedef ImagePickerProp
|
|
311
|
+
* @property {string} [type] - The type of the property.
|
|
312
|
+
* @property {string} [value] - The value of the image picker property.
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @typedef Images
|
|
317
|
+
* @property {string} [desktop] - The URL of the desktop image
|
|
318
|
+
* @property {string} [mobile] - The URL of the mobile image
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @typedef MarketplaceThemeId
|
|
323
|
+
* @property {string} [_id] - The unique identifier for the marketplace theme.
|
|
324
|
+
* @property {boolean} [is_default] - Whether the theme is the default theme.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @typedef Meta
|
|
329
|
+
* @property {string} [description] - The description of the theme
|
|
330
|
+
* @property {Images} [images]
|
|
331
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
332
|
+
* @property {string} [name] - The name of the theme
|
|
333
|
+
* @property {ThemePayment} [payment]
|
|
334
|
+
* @property {Release} [release]
|
|
335
|
+
* @property {string} [slug] - The slug of the theme
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef OverlayPopupSetting
|
|
340
|
+
* @property {string} [dialog_backgroung] - The dialog background color
|
|
341
|
+
* @property {string} [overlay] - The overlay color
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @typedef Page
|
|
346
|
+
* @property {number} [current]
|
|
347
|
+
* @property {boolean} [has_next]
|
|
348
|
+
* @property {boolean} [has_previous]
|
|
349
|
+
* @property {number} [item_total]
|
|
350
|
+
* @property {string} [next_id]
|
|
351
|
+
* @property {number} [size]
|
|
352
|
+
* @property {string} type
|
|
353
|
+
*/
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @typedef PaletteConfig
|
|
357
|
+
* @property {AdvanceSetting} [advance_setting]
|
|
358
|
+
* @property {GeneralSetting} [general_setting]
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @typedef Predicate
|
|
363
|
+
* @property {Route} [route]
|
|
364
|
+
* @property {Screen} [screen]
|
|
365
|
+
* @property {ThemeUserSchema} [user]
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @typedef Preset
|
|
370
|
+
* @property {Page[]} [pages]
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @typedef Prop
|
|
375
|
+
* @property {string} [category] - The category of the property
|
|
376
|
+
* @property {string} [id] - The ID of the property
|
|
377
|
+
* @property {string} [info] - Additional information about the property
|
|
378
|
+
* @property {string} [label] - The label of the property
|
|
379
|
+
* @property {string} [type] - The type of the property
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @typedef RangeProp
|
|
384
|
+
* @property {string} [type] - The type of the property.
|
|
385
|
+
* @property {number} [value] - The value of the range property.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @typedef Release
|
|
390
|
+
* @property {string} [notes] - The release notes of the theme
|
|
391
|
+
* @property {string} [version] - The version of the theme
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @typedef Route
|
|
396
|
+
* @property {string} [exact_url] - The exact URL of the route.
|
|
397
|
+
* @property {string} [selected] - The selected route.
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @typedef SaleDiscountSetting
|
|
402
|
+
* @property {string} [sale_badge_background] - The sale badge background color
|
|
403
|
+
* @property {string} [sale_badge_text] - The sale badge text color
|
|
404
|
+
* @property {string} [sale_discount_text] - The sale discount text color
|
|
405
|
+
* @property {string} [sale_timer] - The sale timer color
|
|
406
|
+
*/
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @typedef Screen
|
|
410
|
+
* @property {boolean} [desktop] - True if the screen is a desktop device.
|
|
411
|
+
* @property {boolean} [mobile] - True if the screen is a mobile device.
|
|
412
|
+
* @property {boolean} [tablet] - True if the screen is a tablet device.
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @typedef Section
|
|
417
|
+
* @property {Block[]} [blocks]
|
|
418
|
+
* @property {string} [name] - The name of the section.
|
|
419
|
+
* @property {Predicate} [predicate]
|
|
420
|
+
* @property {SectionPreset} [preset]
|
|
421
|
+
* @property {SectionProps} [props]
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @typedef SectionItem
|
|
426
|
+
* @property {Object[]} [blocks] - Blocks
|
|
427
|
+
* @property {string} [label] - Label for the section
|
|
428
|
+
* @property {string} [name] - Name of the section
|
|
429
|
+
* @property {Object[]} [props]
|
|
430
|
+
*/
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @typedef SectionPreset
|
|
434
|
+
* @property {Block[]} [blocks]
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @typedef SectionProps
|
|
439
|
+
* @property {CheckboxProp} [autoplay]
|
|
440
|
+
* @property {TextProp} [item_margin]
|
|
441
|
+
* @property {RangeProp} [slide_interval]
|
|
442
|
+
* @property {TextProp} [title]
|
|
443
|
+
*/
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @typedef StaticConfig
|
|
447
|
+
* @property {StaticProps} [props]
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @typedef StaticProps
|
|
452
|
+
* @property {AuthConfig} [auth]
|
|
453
|
+
* @property {Colors} [colors]
|
|
454
|
+
* @property {PaletteConfig} [palette]
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @typedef TextProp
|
|
459
|
+
* @property {string} [type] - The type of the property.
|
|
460
|
+
* @property {string} [value] - The value of the text property.
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @typedef TextSetting
|
|
465
|
+
* @property {string} [text_body] - The text body color
|
|
466
|
+
* @property {string} [text_heading] - The text heading color
|
|
467
|
+
* @property {string} [text_label] - The text label color
|
|
468
|
+
* @property {string} [text_secondary] - The secondary text color
|
|
469
|
+
*/
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* @typedef ThemeConfiguration
|
|
473
|
+
* @property {CustomConfig} [custom]
|
|
474
|
+
* @property {Object} [global_config]
|
|
475
|
+
* @property {string} [name] - The name of the configuration
|
|
476
|
+
* @property {string[]} [page] - An array of pages
|
|
477
|
+
*/
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @typedef ThemeImages
|
|
481
|
+
* @property {string} [desktop] - The URL of the desktop image for the theme.
|
|
482
|
+
* @property {string} [mobile] - The URL of the mobile image for the theme.
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @typedef ThemeMeta
|
|
487
|
+
* @property {string} [description] - A description of the theme.
|
|
488
|
+
* @property {ThemeImages} [images]
|
|
489
|
+
* @property {string[]} [industry] - A list of industry categories the theme is
|
|
490
|
+
* suitable for.
|
|
491
|
+
* @property {ThemePayment} [payment]
|
|
492
|
+
* @property {string} [slug] - The slug for the theme.
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @typedef ThemePayment
|
|
497
|
+
* @property {number} [amount] - The amount to be paid for the theme.
|
|
498
|
+
* @property {boolean} [is_paid] - Whether the theme is a paid theme.
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @typedef ThemeReq
|
|
503
|
+
* @property {string} [marketplace_theme_id] - The ID of the marketplace theme
|
|
504
|
+
* to apply to the company.
|
|
505
|
+
*/
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @typedef ThemeSetting
|
|
509
|
+
* @property {string} [page_background] - The page background color
|
|
510
|
+
* @property {string} [theme_accent] - The theme accent color
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @typedef ThemesSchema
|
|
515
|
+
* @property {string} [_id] - The unique identifier of the theme
|
|
516
|
+
* @property {string} [application_id] - The ID of the application
|
|
517
|
+
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
518
|
+
* @property {Assets} [assets]
|
|
519
|
+
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
520
|
+
* @property {Config} [config]
|
|
521
|
+
* @property {string} [created_at] - The creation timestamp of the theme
|
|
522
|
+
* @property {Font} [font]
|
|
523
|
+
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
524
|
+
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
525
|
+
* @property {Meta} [meta]
|
|
526
|
+
* @property {string} [name] - The name of the theme
|
|
527
|
+
* @property {Object} [styles] - The styles associated with the theme
|
|
528
|
+
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
529
|
+
* @property {string} [template_theme_id] - The ID of the template theme
|
|
530
|
+
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
531
|
+
* @property {string} [version] - The version of the theme
|
|
532
|
+
*/
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @typedef ThemeUpgradableResponse
|
|
536
|
+
* @property {string} [message] - A message describing the theme upgrade status
|
|
537
|
+
* @property {boolean} [upgrade] - Indicates if the theme is upgradable or not
|
|
538
|
+
* @property {ThemeVersions} [versions]
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @typedef ThemeUserSchema
|
|
543
|
+
* @property {boolean} [anonymous] - True if the user is anonymous.
|
|
544
|
+
* @property {boolean} [authenticated] - True if the user is authenticated.
|
|
545
|
+
*/
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @typedef ThemeVersions
|
|
549
|
+
* @property {string} [applied_theme] - The version of the applied theme
|
|
550
|
+
* @property {string} [parent_theme] - The version of the parent theme
|
|
551
|
+
*/
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @typedef UMDJs
|
|
555
|
+
* @property {string[]} [links]
|
|
556
|
+
*/
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @typedef UpdateThemeNameRequestBody
|
|
560
|
+
* @property {string} [name] - The new name of the theme.
|
|
561
|
+
*/
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @typedef UpdateThemeRequestBody
|
|
565
|
+
* @property {Config} [config]
|
|
566
|
+
* @property {Font} [font]
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* @typedef UrlProp
|
|
571
|
+
* @property {string} [type] - The type of the property.
|
|
572
|
+
* @property {string} [value] - The value of the URL property.
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @typedef UserAlertsSetting
|
|
577
|
+
* @property {string} [error_background] - The error background color
|
|
578
|
+
* @property {string} [error_text] - The error text color
|
|
579
|
+
* @property {string} [info_background] - The info background color
|
|
580
|
+
* @property {string} [info_text] - The info text color
|
|
581
|
+
* @property {string} [success_background] - The success background color
|
|
582
|
+
* @property {string} [success_text] - The success text color
|
|
583
|
+
*/
|
|
584
|
+
|
|
585
|
+
class ThemePlatformModel {
|
|
586
|
+
/** @returns {AddThemeRequestSchema} */
|
|
4
587
|
static AddThemeRequestSchema() {
|
|
5
588
|
return Joi.object({
|
|
6
589
|
theme_id: Joi.string().allow(""),
|
|
7
590
|
});
|
|
8
591
|
}
|
|
592
|
+
|
|
593
|
+
/** @returns {AdvanceSetting} */
|
|
594
|
+
static AdvanceSetting() {
|
|
595
|
+
return Joi.object({
|
|
596
|
+
divider_stroke_highlight: ThemePlatformModel.DividerStrokeHighlightSetting(),
|
|
597
|
+
overlay_popup: ThemePlatformModel.OverlayPopupSetting(),
|
|
598
|
+
user_alerts: ThemePlatformModel.UserAlertsSetting(),
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/** @returns {AllAvailablePageSchema} */
|
|
9
603
|
static AllAvailablePageSchema() {
|
|
10
604
|
return Joi.object({
|
|
11
|
-
pages: Joi.array().items(
|
|
605
|
+
pages: Joi.array().items(ThemePlatformModel.AvailablePageSchema()),
|
|
12
606
|
});
|
|
13
607
|
}
|
|
14
|
-
|
|
608
|
+
|
|
609
|
+
/** @returns {Assets} */
|
|
610
|
+
static Assets() {
|
|
611
|
+
return Joi.object({
|
|
612
|
+
common_js: ThemePlatformModel.CommonJS(),
|
|
613
|
+
css: ThemePlatformModel.CSS(),
|
|
614
|
+
umd_js: ThemePlatformModel.UMDJs(),
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/** @returns {AuthConfig} */
|
|
619
|
+
static AuthConfig() {
|
|
15
620
|
return Joi.object({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
umd_js: ThemeModel.UmdJs(),
|
|
621
|
+
show_footer_auth: Joi.boolean(),
|
|
622
|
+
show_header_auth: Joi.boolean(),
|
|
19
623
|
});
|
|
20
624
|
}
|
|
625
|
+
|
|
626
|
+
/** @returns {AvailablePagePredicate} */
|
|
21
627
|
static AvailablePagePredicate() {
|
|
22
628
|
return Joi.object({
|
|
23
|
-
route:
|
|
24
|
-
screen:
|
|
25
|
-
user:
|
|
629
|
+
route: ThemePlatformModel.AvailablePageRoutePredicate(),
|
|
630
|
+
screen: ThemePlatformModel.AvailablePageScreenPredicate(),
|
|
631
|
+
user: ThemePlatformModel.AvailablePageUserPredicate(),
|
|
26
632
|
});
|
|
27
633
|
}
|
|
634
|
+
|
|
635
|
+
/** @returns {AvailablePageRoutePredicate} */
|
|
28
636
|
static AvailablePageRoutePredicate() {
|
|
29
637
|
return Joi.object({
|
|
30
638
|
exact_url: Joi.string().allow(""),
|
|
@@ -32,32 +640,40 @@ class ThemeModel {
|
|
|
32
640
|
selected: Joi.string().allow(""),
|
|
33
641
|
});
|
|
34
642
|
}
|
|
643
|
+
|
|
644
|
+
/** @returns {AvailablePageSchema} */
|
|
35
645
|
static AvailablePageSchema() {
|
|
36
646
|
return Joi.object({
|
|
37
647
|
_id: Joi.string().allow(""),
|
|
38
648
|
path: Joi.string().allow(""),
|
|
39
649
|
props: Joi.array().items(Joi.any()),
|
|
40
|
-
sections: Joi.array().items(
|
|
650
|
+
sections: Joi.array().items(
|
|
651
|
+
ThemePlatformModel.AvailablePageSchemaSections()
|
|
652
|
+
),
|
|
41
653
|
sections_meta: Joi.array().items(
|
|
42
|
-
|
|
654
|
+
ThemePlatformModel.AvailablePageSectionMetaAttributes()
|
|
43
655
|
),
|
|
44
|
-
seo:
|
|
656
|
+
seo: ThemePlatformModel.AvailablePageSeo(),
|
|
45
657
|
text: Joi.string().allow(""),
|
|
46
658
|
theme: Joi.string().allow(""),
|
|
47
659
|
type: Joi.string().allow(""),
|
|
48
660
|
value: Joi.string().allow(""),
|
|
49
661
|
});
|
|
50
662
|
}
|
|
663
|
+
|
|
664
|
+
/** @returns {AvailablePageSchemaSections} */
|
|
51
665
|
static AvailablePageSchemaSections() {
|
|
52
666
|
return Joi.object({
|
|
53
667
|
blocks: Joi.array().items(Joi.any()),
|
|
54
668
|
label: Joi.string().allow(""),
|
|
55
669
|
name: Joi.string().allow(""),
|
|
56
|
-
predicate:
|
|
670
|
+
predicate: ThemePlatformModel.AvailablePagePredicate(),
|
|
57
671
|
preset: Joi.any(),
|
|
58
672
|
props: Joi.any(),
|
|
59
673
|
});
|
|
60
674
|
}
|
|
675
|
+
|
|
676
|
+
/** @returns {AvailablePageScreenPredicate} */
|
|
61
677
|
static AvailablePageScreenPredicate() {
|
|
62
678
|
return Joi.object({
|
|
63
679
|
desktop: Joi.boolean(),
|
|
@@ -65,11 +681,15 @@ class ThemeModel {
|
|
|
65
681
|
tablet: Joi.boolean(),
|
|
66
682
|
});
|
|
67
683
|
}
|
|
684
|
+
|
|
685
|
+
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
68
686
|
static AvailablePageSectionMetaAttributes() {
|
|
69
687
|
return Joi.object({
|
|
70
688
|
attributes: Joi.any(),
|
|
71
689
|
});
|
|
72
690
|
}
|
|
691
|
+
|
|
692
|
+
/** @returns {AvailablePageSeo} */
|
|
73
693
|
static AvailablePageSeo() {
|
|
74
694
|
return Joi.object({
|
|
75
695
|
_id: Joi.string().allow(""),
|
|
@@ -77,55 +697,64 @@ class ThemeModel {
|
|
|
77
697
|
title: Joi.string().allow(""),
|
|
78
698
|
});
|
|
79
699
|
}
|
|
700
|
+
|
|
701
|
+
/** @returns {AvailablePageUserPredicate} */
|
|
80
702
|
static AvailablePageUserPredicate() {
|
|
81
703
|
return Joi.object({
|
|
82
704
|
anonymous: Joi.boolean(),
|
|
83
705
|
authenticated: Joi.boolean(),
|
|
84
706
|
});
|
|
85
707
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
blocks: Joi.array().items(ThemeModel.Blocks()),
|
|
89
|
-
label: Joi.string().allow(""),
|
|
90
|
-
name: Joi.string().allow(""),
|
|
91
|
-
props: Joi.array().items(ThemeModel.BlocksProps()),
|
|
92
|
-
});
|
|
93
|
-
}
|
|
708
|
+
|
|
709
|
+
/** @returns {BlitzkriegApiErrorSchema} */
|
|
94
710
|
static BlitzkriegApiErrorSchema() {
|
|
95
711
|
return Joi.object({
|
|
96
712
|
message: Joi.string().allow(""),
|
|
97
713
|
});
|
|
98
714
|
}
|
|
715
|
+
|
|
716
|
+
/** @returns {BlitzkriegInternalServerErrorSchema} */
|
|
99
717
|
static BlitzkriegInternalServerErrorSchema() {
|
|
100
718
|
return Joi.object({
|
|
101
719
|
message: Joi.string().allow(""),
|
|
102
720
|
});
|
|
103
721
|
}
|
|
104
|
-
|
|
722
|
+
|
|
723
|
+
/** @returns {Block} */
|
|
724
|
+
static Block() {
|
|
105
725
|
return Joi.object({
|
|
106
|
-
|
|
726
|
+
name: Joi.string().allow(""),
|
|
727
|
+
props: ThemePlatformModel.BlockProps(),
|
|
728
|
+
type: Joi.string().allow(""),
|
|
107
729
|
});
|
|
108
730
|
}
|
|
109
|
-
|
|
731
|
+
|
|
732
|
+
/** @returns {BlockProps} */
|
|
733
|
+
static BlockProps() {
|
|
110
734
|
return Joi.object({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
type: Joi.string().allow(""),
|
|
735
|
+
image: ThemePlatformModel.ImagePickerProp(),
|
|
736
|
+
slide_link: ThemePlatformModel.UrlProp(),
|
|
114
737
|
});
|
|
115
738
|
}
|
|
116
|
-
|
|
739
|
+
|
|
740
|
+
/** @returns {ButtonSetting} */
|
|
741
|
+
static ButtonSetting() {
|
|
117
742
|
return Joi.object({
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
743
|
+
button_link: Joi.string().allow(""),
|
|
744
|
+
button_primary: Joi.string().allow(""),
|
|
745
|
+
button_secondary: Joi.string().allow(""),
|
|
121
746
|
});
|
|
122
747
|
}
|
|
123
|
-
|
|
748
|
+
|
|
749
|
+
/** @returns {CheckboxProp} */
|
|
750
|
+
static CheckboxProp() {
|
|
124
751
|
return Joi.object({
|
|
125
|
-
|
|
126
|
-
|
|
752
|
+
type: Joi.string().allow(""),
|
|
753
|
+
value: Joi.boolean(),
|
|
127
754
|
});
|
|
128
755
|
}
|
|
756
|
+
|
|
757
|
+
/** @returns {Colors} */
|
|
129
758
|
static Colors() {
|
|
130
759
|
return Joi.object({
|
|
131
760
|
accent_color: Joi.string().allow(""),
|
|
@@ -136,53 +765,126 @@ class ThemeModel {
|
|
|
136
765
|
secondary_color: Joi.string().allow(""),
|
|
137
766
|
});
|
|
138
767
|
}
|
|
139
|
-
|
|
768
|
+
|
|
769
|
+
/** @returns {CommonJS} */
|
|
770
|
+
static CommonJS() {
|
|
140
771
|
return Joi.object({
|
|
141
772
|
link: Joi.string().allow(""),
|
|
142
773
|
});
|
|
143
774
|
}
|
|
144
|
-
|
|
775
|
+
|
|
776
|
+
/** @returns {CompanyThemeSchema} */
|
|
777
|
+
static CompanyThemeSchema() {
|
|
145
778
|
return Joi.object({
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
779
|
+
_id: Joi.string().allow(""),
|
|
780
|
+
company_id: Joi.number(),
|
|
781
|
+
created_at: Joi.string().allow(""),
|
|
782
|
+
marketplace_theme_id: ThemePlatformModel.MarketplaceThemeId(),
|
|
783
|
+
meta: ThemePlatformModel.ThemeMeta(),
|
|
784
|
+
name: Joi.string().allow(""),
|
|
785
|
+
updated_at: Joi.string().allow(""),
|
|
150
786
|
});
|
|
151
787
|
}
|
|
152
|
-
|
|
788
|
+
|
|
789
|
+
/** @returns {Config} */
|
|
790
|
+
static Config() {
|
|
153
791
|
return Joi.object({
|
|
154
|
-
|
|
155
|
-
|
|
792
|
+
current: Joi.string().allow("").required(),
|
|
793
|
+
global_schema: ThemePlatformModel.GlobalSchema(),
|
|
794
|
+
list: Joi.array()
|
|
795
|
+
.items(ThemePlatformModel.ThemeConfiguration())
|
|
796
|
+
.required(),
|
|
797
|
+
preset: ThemePlatformModel.Preset(),
|
|
156
798
|
});
|
|
157
799
|
}
|
|
158
|
-
|
|
800
|
+
|
|
801
|
+
/** @returns {CSS} */
|
|
802
|
+
static CSS() {
|
|
159
803
|
return Joi.object({
|
|
160
|
-
link: Joi.string().allow(""),
|
|
161
804
|
links: Joi.array().items(Joi.string().allow("")),
|
|
162
805
|
});
|
|
163
806
|
}
|
|
164
|
-
|
|
807
|
+
|
|
808
|
+
/** @returns {CustomConfig} */
|
|
809
|
+
static CustomConfig() {
|
|
165
810
|
return Joi.object({
|
|
166
|
-
props:
|
|
811
|
+
props: ThemePlatformModel.CustomProps(),
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/** @returns {CustomProps} */
|
|
816
|
+
static CustomProps() {
|
|
817
|
+
return Joi.object({
|
|
818
|
+
button_add_to_cart_color: Joi.string().allow(""),
|
|
819
|
+
button_add_to_cart_label_color: Joi.string().allow(""),
|
|
820
|
+
button_primary_color: Joi.string().allow(""),
|
|
821
|
+
button_primary_label_color: Joi.string().allow(""),
|
|
822
|
+
button_secondary_color: Joi.string().allow(""),
|
|
823
|
+
button_secondary_label_color: Joi.string().allow(""),
|
|
824
|
+
button_tertiary_color: Joi.string().allow(""),
|
|
825
|
+
button_tertiary_hover_color: Joi.string().allow(""),
|
|
826
|
+
button_tertiary_hover_text_color: Joi.string().allow(""),
|
|
827
|
+
button_tertiary_label_color: Joi.string().allow(""),
|
|
828
|
+
disable_cart: Joi.boolean(),
|
|
829
|
+
footer_bg_color: Joi.string().allow(""),
|
|
830
|
+
footer_border_color: Joi.string().allow(""),
|
|
831
|
+
footer_nav_hover_color: Joi.string().allow(""),
|
|
832
|
+
footer_text_color: Joi.string().allow(""),
|
|
833
|
+
header_bg_color: Joi.string().allow(""),
|
|
834
|
+
header_border_color: Joi.string().allow(""),
|
|
835
|
+
header_cart_notification_bg_color: Joi.string().allow(""),
|
|
836
|
+
header_cart_notification_text_color: Joi.string().allow(""),
|
|
837
|
+
header_icon_color: Joi.string().allow(""),
|
|
838
|
+
header_nav_hover_color: Joi.string().allow(""),
|
|
839
|
+
header_text_color: Joi.string().allow(""),
|
|
840
|
+
is_menu_below_logo: Joi.boolean(),
|
|
841
|
+
menu_position: Joi.string().allow(""),
|
|
842
|
+
text_body_color: Joi.string().allow(""),
|
|
843
|
+
text_discount_color: Joi.string().allow(""),
|
|
844
|
+
text_heading_link_color: Joi.string().allow(""),
|
|
845
|
+
text_price_color: Joi.string().allow(""),
|
|
846
|
+
text_sale_price_color: Joi.string().allow(""),
|
|
847
|
+
text_strikethrough_price_color: Joi.string().allow(""),
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/** @returns {DividerStrokeHighlightSetting} */
|
|
852
|
+
static DividerStrokeHighlightSetting() {
|
|
853
|
+
return Joi.object({
|
|
854
|
+
divider_strokes: Joi.string().allow(""),
|
|
855
|
+
highlight: Joi.string().allow(""),
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/** @returns {DummyResponse} */
|
|
860
|
+
static DummyResponse() {
|
|
861
|
+
return Joi.object({
|
|
862
|
+
message: Joi.string().allow(""),
|
|
167
863
|
});
|
|
168
864
|
}
|
|
865
|
+
|
|
866
|
+
/** @returns {Font} */
|
|
169
867
|
static Font() {
|
|
170
868
|
return Joi.object({
|
|
171
|
-
family: Joi.string().allow(""),
|
|
172
|
-
variants:
|
|
869
|
+
family: Joi.string().allow("").required(),
|
|
870
|
+
variants: ThemePlatformModel.FontVariants().required(),
|
|
173
871
|
});
|
|
174
872
|
}
|
|
873
|
+
|
|
874
|
+
/** @returns {FontsSchema} */
|
|
175
875
|
static FontsSchema() {
|
|
176
876
|
return Joi.object({
|
|
177
|
-
items:
|
|
877
|
+
items: ThemePlatformModel.FontsSchemaItems(),
|
|
178
878
|
kind: Joi.string().allow(""),
|
|
179
879
|
});
|
|
180
880
|
}
|
|
881
|
+
|
|
882
|
+
/** @returns {FontsSchemaItems} */
|
|
181
883
|
static FontsSchemaItems() {
|
|
182
884
|
return Joi.object({
|
|
183
885
|
category: Joi.string().allow(""),
|
|
184
886
|
family: Joi.string().allow(""),
|
|
185
|
-
files:
|
|
887
|
+
files: ThemePlatformModel.FontsSchemaItemsFiles(),
|
|
186
888
|
kind: Joi.string().allow(""),
|
|
187
889
|
last_modified: Joi.string().allow(""),
|
|
188
890
|
subsets: Joi.array().items(Joi.string().allow("")),
|
|
@@ -190,6 +892,8 @@ class ThemeModel {
|
|
|
190
892
|
version: Joi.string().allow(""),
|
|
191
893
|
});
|
|
192
894
|
}
|
|
895
|
+
|
|
896
|
+
/** @returns {FontsSchemaItemsFiles} */
|
|
193
897
|
static FontsSchemaItemsFiles() {
|
|
194
898
|
return Joi.object({
|
|
195
899
|
bold: Joi.string().allow(""),
|
|
@@ -197,144 +901,421 @@ class ThemeModel {
|
|
|
197
901
|
regular: Joi.string().allow(""),
|
|
198
902
|
});
|
|
199
903
|
}
|
|
904
|
+
|
|
905
|
+
/** @returns {FontVariant} */
|
|
906
|
+
static FontVariant() {
|
|
907
|
+
return Joi.object({
|
|
908
|
+
file: Joi.string().allow("").required(),
|
|
909
|
+
name: Joi.string().allow("").required(),
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/** @returns {FontVariants} */
|
|
914
|
+
static FontVariants() {
|
|
915
|
+
return Joi.object({
|
|
916
|
+
bold: ThemePlatformModel.FontVariant(),
|
|
917
|
+
light: ThemePlatformModel.FontVariant(),
|
|
918
|
+
medium: ThemePlatformModel.FontVariant(),
|
|
919
|
+
regular: ThemePlatformModel.FontVariant(),
|
|
920
|
+
semi_bold: ThemePlatformModel.FontVariant(),
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/** @returns {FooterSetting} */
|
|
925
|
+
static FooterSetting() {
|
|
926
|
+
return Joi.object({
|
|
927
|
+
footer_background: Joi.string().allow(""),
|
|
928
|
+
footer_body_text: Joi.string().allow(""),
|
|
929
|
+
footer_bottom_background: Joi.string().allow(""),
|
|
930
|
+
footer_heading_text: Joi.string().allow(""),
|
|
931
|
+
footer_icon: Joi.string().allow(""),
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/** @returns {GeneralSetting} */
|
|
936
|
+
static GeneralSetting() {
|
|
937
|
+
return Joi.object({
|
|
938
|
+
button: ThemePlatformModel.ButtonSetting(),
|
|
939
|
+
footer: ThemePlatformModel.FooterSetting(),
|
|
940
|
+
header: ThemePlatformModel.HeaderSetting(),
|
|
941
|
+
sale_discount: ThemePlatformModel.SaleDiscountSetting(),
|
|
942
|
+
text: ThemePlatformModel.TextSetting(),
|
|
943
|
+
theme: ThemePlatformModel.ThemeSetting(),
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/** @returns {GlobalConfig} */
|
|
948
|
+
static GlobalConfig() {
|
|
949
|
+
return Joi.object({
|
|
950
|
+
custom: ThemePlatformModel.CustomConfig(),
|
|
951
|
+
statics: ThemePlatformModel.StaticConfig(),
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/** @returns {GlobalSchema} */
|
|
200
956
|
static GlobalSchema() {
|
|
201
957
|
return Joi.object({
|
|
202
|
-
props: Joi.array().items(
|
|
958
|
+
props: Joi.array().items(ThemePlatformModel.Prop()),
|
|
203
959
|
});
|
|
204
960
|
}
|
|
205
|
-
|
|
961
|
+
|
|
962
|
+
/** @returns {HeaderSetting} */
|
|
963
|
+
static HeaderSetting() {
|
|
206
964
|
return Joi.object({
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
type: Joi.string().allow(""),
|
|
965
|
+
header_background: Joi.string().allow(""),
|
|
966
|
+
header_icon: Joi.string().allow(""),
|
|
967
|
+
header_nav: Joi.string().allow(""),
|
|
211
968
|
});
|
|
212
969
|
}
|
|
213
|
-
|
|
970
|
+
|
|
971
|
+
/** @returns {ImagePickerProp} */
|
|
972
|
+
static ImagePickerProp() {
|
|
214
973
|
return Joi.object({
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
ios: Joi.array().items(Joi.string().allow("")),
|
|
218
|
-
thumbnail: Joi.array().items(Joi.string().allow("")),
|
|
974
|
+
type: Joi.string().allow(""),
|
|
975
|
+
value: Joi.string().allow(""),
|
|
219
976
|
});
|
|
220
977
|
}
|
|
221
|
-
|
|
978
|
+
|
|
979
|
+
/** @returns {Images} */
|
|
980
|
+
static Images() {
|
|
222
981
|
return Joi.object({
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
images: ThemeModel.Images(),
|
|
226
|
-
name: Joi.string().allow(""),
|
|
982
|
+
desktop: Joi.string().allow(""),
|
|
983
|
+
mobile: Joi.string().allow(""),
|
|
227
984
|
});
|
|
228
985
|
}
|
|
229
|
-
|
|
986
|
+
|
|
987
|
+
/** @returns {MarketplaceThemeId} */
|
|
988
|
+
static MarketplaceThemeId() {
|
|
230
989
|
return Joi.object({
|
|
231
|
-
|
|
232
|
-
|
|
990
|
+
_id: Joi.string().allow(""),
|
|
991
|
+
is_default: Joi.boolean(),
|
|
233
992
|
});
|
|
234
993
|
}
|
|
235
|
-
|
|
994
|
+
|
|
995
|
+
/** @returns {Meta} */
|
|
996
|
+
static Meta() {
|
|
236
997
|
return Joi.object({
|
|
237
|
-
|
|
998
|
+
description: Joi.string().allow(""),
|
|
999
|
+
images: ThemePlatformModel.Images(),
|
|
1000
|
+
industry: Joi.array().items(Joi.string().allow("")),
|
|
238
1001
|
name: Joi.string().allow(""),
|
|
239
|
-
|
|
1002
|
+
payment: ThemePlatformModel.ThemePayment(),
|
|
1003
|
+
release: ThemePlatformModel.Release(),
|
|
1004
|
+
slug: Joi.string().allow(""),
|
|
240
1005
|
});
|
|
241
1006
|
}
|
|
242
|
-
|
|
1007
|
+
|
|
1008
|
+
/** @returns {OverlayPopupSetting} */
|
|
1009
|
+
static OverlayPopupSetting() {
|
|
243
1010
|
return Joi.object({
|
|
244
|
-
|
|
245
|
-
|
|
1011
|
+
dialog_backgroung: Joi.string().allow(""),
|
|
1012
|
+
overlay: Joi.string().allow(""),
|
|
246
1013
|
});
|
|
247
1014
|
}
|
|
248
|
-
|
|
1015
|
+
|
|
1016
|
+
/** @returns {Page} */
|
|
1017
|
+
static Page() {
|
|
249
1018
|
return Joi.object({
|
|
250
1019
|
current: Joi.number(),
|
|
251
1020
|
has_next: Joi.boolean(),
|
|
1021
|
+
has_previous: Joi.boolean(),
|
|
252
1022
|
item_total: Joi.number(),
|
|
1023
|
+
next_id: Joi.string().allow(""),
|
|
253
1024
|
size: Joi.number(),
|
|
254
|
-
type: Joi.string().allow(""),
|
|
1025
|
+
type: Joi.string().allow("").required(),
|
|
255
1026
|
});
|
|
256
1027
|
}
|
|
1028
|
+
|
|
1029
|
+
/** @returns {PaletteConfig} */
|
|
1030
|
+
static PaletteConfig() {
|
|
1031
|
+
return Joi.object({
|
|
1032
|
+
advance_setting: ThemePlatformModel.AdvanceSetting(),
|
|
1033
|
+
general_setting: ThemePlatformModel.GeneralSetting(),
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/** @returns {Predicate} */
|
|
1038
|
+
static Predicate() {
|
|
1039
|
+
return Joi.object({
|
|
1040
|
+
route: ThemePlatformModel.Route(),
|
|
1041
|
+
screen: ThemePlatformModel.Screen(),
|
|
1042
|
+
user: ThemePlatformModel.ThemeUserSchema(),
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/** @returns {Preset} */
|
|
257
1047
|
static Preset() {
|
|
258
1048
|
return Joi.object({
|
|
259
|
-
pages: Joi.array().items(
|
|
1049
|
+
pages: Joi.array().items(ThemePlatformModel.Page()),
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/** @returns {Prop} */
|
|
1054
|
+
static Prop() {
|
|
1055
|
+
return Joi.object({
|
|
1056
|
+
category: Joi.string().allow(""),
|
|
1057
|
+
id: Joi.string().allow(""),
|
|
1058
|
+
info: Joi.string().allow(""),
|
|
1059
|
+
label: Joi.string().allow(""),
|
|
1060
|
+
type: Joi.string().allow(""),
|
|
260
1061
|
});
|
|
261
1062
|
}
|
|
262
|
-
|
|
1063
|
+
|
|
1064
|
+
/** @returns {RangeProp} */
|
|
1065
|
+
static RangeProp() {
|
|
263
1066
|
return Joi.object({
|
|
264
|
-
|
|
1067
|
+
type: Joi.string().allow(""),
|
|
1068
|
+
value: Joi.number(),
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/** @returns {Release} */
|
|
1073
|
+
static Release() {
|
|
1074
|
+
return Joi.object({
|
|
1075
|
+
notes: Joi.string().allow(""),
|
|
1076
|
+
version: Joi.string().allow(""),
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/** @returns {Route} */
|
|
1081
|
+
static Route() {
|
|
1082
|
+
return Joi.object({
|
|
1083
|
+
exact_url: Joi.string().allow(""),
|
|
1084
|
+
selected: Joi.string().allow(""),
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/** @returns {SaleDiscountSetting} */
|
|
1089
|
+
static SaleDiscountSetting() {
|
|
1090
|
+
return Joi.object({
|
|
1091
|
+
sale_badge_background: Joi.string().allow(""),
|
|
1092
|
+
sale_badge_text: Joi.string().allow(""),
|
|
1093
|
+
sale_discount_text: Joi.string().allow(""),
|
|
1094
|
+
sale_timer: Joi.string().allow(""),
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/** @returns {Screen} */
|
|
1099
|
+
static Screen() {
|
|
1100
|
+
return Joi.object({
|
|
1101
|
+
desktop: Joi.boolean(),
|
|
1102
|
+
mobile: Joi.boolean(),
|
|
1103
|
+
tablet: Joi.boolean(),
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/** @returns {Section} */
|
|
1108
|
+
static Section() {
|
|
1109
|
+
return Joi.object({
|
|
1110
|
+
blocks: Joi.array().items(ThemePlatformModel.Block()),
|
|
265
1111
|
name: Joi.string().allow(""),
|
|
1112
|
+
predicate: ThemePlatformModel.Predicate(),
|
|
1113
|
+
preset: ThemePlatformModel.SectionPreset(),
|
|
1114
|
+
props: ThemePlatformModel.SectionProps(),
|
|
266
1115
|
});
|
|
267
1116
|
}
|
|
268
|
-
|
|
1117
|
+
|
|
1118
|
+
/** @returns {SectionItem} */
|
|
1119
|
+
static SectionItem() {
|
|
269
1120
|
return Joi.object({
|
|
270
|
-
|
|
1121
|
+
blocks: Joi.array().items(Joi.any()),
|
|
1122
|
+
label: Joi.string().allow(""),
|
|
1123
|
+
name: Joi.string().allow(""),
|
|
1124
|
+
props: Joi.array().items(Joi.any()),
|
|
271
1125
|
});
|
|
272
1126
|
}
|
|
273
|
-
|
|
1127
|
+
|
|
1128
|
+
/** @returns {SectionPreset} */
|
|
1129
|
+
static SectionPreset() {
|
|
274
1130
|
return Joi.object({
|
|
275
|
-
|
|
1131
|
+
blocks: Joi.array().items(ThemePlatformModel.Block()),
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/** @returns {SectionProps} */
|
|
1136
|
+
static SectionProps() {
|
|
1137
|
+
return Joi.object({
|
|
1138
|
+
autoplay: ThemePlatformModel.CheckboxProp(),
|
|
1139
|
+
item_margin: ThemePlatformModel.TextProp(),
|
|
1140
|
+
slide_interval: ThemePlatformModel.RangeProp(),
|
|
1141
|
+
title: ThemePlatformModel.TextProp(),
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/** @returns {StaticConfig} */
|
|
1146
|
+
static StaticConfig() {
|
|
1147
|
+
return Joi.object({
|
|
1148
|
+
props: ThemePlatformModel.StaticProps(),
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/** @returns {StaticProps} */
|
|
1153
|
+
static StaticProps() {
|
|
1154
|
+
return Joi.object({
|
|
1155
|
+
auth: ThemePlatformModel.AuthConfig(),
|
|
1156
|
+
colors: ThemePlatformModel.Colors(),
|
|
1157
|
+
palette: ThemePlatformModel.PaletteConfig(),
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/** @returns {TextProp} */
|
|
1162
|
+
static TextProp() {
|
|
1163
|
+
return Joi.object({
|
|
1164
|
+
type: Joi.string().allow(""),
|
|
1165
|
+
value: Joi.string().allow(""),
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/** @returns {TextSetting} */
|
|
1170
|
+
static TextSetting() {
|
|
1171
|
+
return Joi.object({
|
|
1172
|
+
text_body: Joi.string().allow(""),
|
|
1173
|
+
text_heading: Joi.string().allow(""),
|
|
1174
|
+
text_label: Joi.string().allow(""),
|
|
1175
|
+
text_secondary: Joi.string().allow(""),
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/** @returns {ThemeConfiguration} */
|
|
1180
|
+
static ThemeConfiguration() {
|
|
1181
|
+
return Joi.object({
|
|
1182
|
+
custom: ThemePlatformModel.CustomConfig(),
|
|
1183
|
+
global_config: Joi.any(),
|
|
276
1184
|
name: Joi.string().allow(""),
|
|
1185
|
+
page: Joi.array().items(Joi.string().allow("")),
|
|
277
1186
|
});
|
|
278
1187
|
}
|
|
279
|
-
|
|
1188
|
+
|
|
1189
|
+
/** @returns {ThemeImages} */
|
|
1190
|
+
static ThemeImages() {
|
|
280
1191
|
return Joi.object({
|
|
281
|
-
|
|
1192
|
+
desktop: Joi.string().allow(""),
|
|
1193
|
+
mobile: Joi.string().allow(""),
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/** @returns {ThemeMeta} */
|
|
1198
|
+
static ThemeMeta() {
|
|
1199
|
+
return Joi.object({
|
|
1200
|
+
description: Joi.string().allow(""),
|
|
1201
|
+
images: ThemePlatformModel.ThemeImages(),
|
|
1202
|
+
industry: Joi.array().items(Joi.string().allow("")),
|
|
1203
|
+
payment: ThemePlatformModel.ThemePayment(),
|
|
1204
|
+
slug: Joi.string().allow(""),
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/** @returns {ThemePayment} */
|
|
1209
|
+
static ThemePayment() {
|
|
1210
|
+
return Joi.object({
|
|
1211
|
+
amount: Joi.number(),
|
|
1212
|
+
is_paid: Joi.boolean(),
|
|
282
1213
|
});
|
|
283
1214
|
}
|
|
284
|
-
|
|
1215
|
+
|
|
1216
|
+
/** @returns {ThemeReq} */
|
|
1217
|
+
static ThemeReq() {
|
|
285
1218
|
return Joi.object({
|
|
286
|
-
|
|
287
|
-
page: ThemeModel.PaginationSchema(),
|
|
1219
|
+
marketplace_theme_id: Joi.string().allow(""),
|
|
288
1220
|
});
|
|
289
1221
|
}
|
|
1222
|
+
|
|
1223
|
+
/** @returns {ThemeSetting} */
|
|
1224
|
+
static ThemeSetting() {
|
|
1225
|
+
return Joi.object({
|
|
1226
|
+
page_background: Joi.string().allow(""),
|
|
1227
|
+
theme_accent: Joi.string().allow(""),
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/** @returns {ThemesSchema} */
|
|
290
1232
|
static ThemesSchema() {
|
|
291
1233
|
return Joi.object({
|
|
292
|
-
__v: Joi.number(),
|
|
293
1234
|
_id: Joi.string().allow(""),
|
|
294
|
-
|
|
1235
|
+
application_id: Joi.string().allow(""),
|
|
295
1236
|
applied: Joi.boolean(),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
ThemeModel.availableSectionSchema()
|
|
300
|
-
),
|
|
301
|
-
colors: ThemeModel.Colors(),
|
|
302
|
-
config: ThemeModel.Config(),
|
|
1237
|
+
assets: ThemePlatformModel.Assets(),
|
|
1238
|
+
available_sections: Joi.array().items(ThemePlatformModel.SectionItem()),
|
|
1239
|
+
config: ThemePlatformModel.Config(),
|
|
303
1240
|
created_at: Joi.string().allow(""),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
published: Joi.boolean(),
|
|
310
|
-
src: ThemeModel.Src(),
|
|
1241
|
+
font: ThemePlatformModel.Font(),
|
|
1242
|
+
is_private: Joi.boolean(),
|
|
1243
|
+
marketplace_theme_id: Joi.string().allow(""),
|
|
1244
|
+
meta: ThemePlatformModel.Meta(),
|
|
1245
|
+
name: Joi.string().allow(""),
|
|
311
1246
|
styles: Joi.any(),
|
|
312
1247
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1248
|
+
template_theme_id: Joi.string().allow(""),
|
|
313
1249
|
updated_at: Joi.string().allow(""),
|
|
314
1250
|
version: Joi.string().allow(""),
|
|
315
1251
|
});
|
|
316
1252
|
}
|
|
317
|
-
|
|
1253
|
+
|
|
1254
|
+
/** @returns {ThemeUpgradableResponse} */
|
|
1255
|
+
static ThemeUpgradableResponse() {
|
|
318
1256
|
return Joi.object({
|
|
319
|
-
|
|
320
|
-
|
|
1257
|
+
message: Joi.string().allow(""),
|
|
1258
|
+
upgrade: Joi.boolean(),
|
|
1259
|
+
versions: ThemePlatformModel.ThemeVersions(),
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/** @returns {ThemeUserSchema} */
|
|
1264
|
+
static ThemeUserSchema() {
|
|
1265
|
+
return Joi.object({
|
|
1266
|
+
anonymous: Joi.boolean(),
|
|
1267
|
+
authenticated: Joi.boolean(),
|
|
321
1268
|
});
|
|
322
1269
|
}
|
|
323
|
-
|
|
1270
|
+
|
|
1271
|
+
/** @returns {ThemeVersions} */
|
|
1272
|
+
static ThemeVersions() {
|
|
324
1273
|
return Joi.object({
|
|
325
1274
|
applied_theme: Joi.string().allow(""),
|
|
326
1275
|
parent_theme: Joi.string().allow(""),
|
|
327
|
-
upgrade: Joi.boolean(),
|
|
328
1276
|
});
|
|
329
1277
|
}
|
|
330
|
-
|
|
1278
|
+
|
|
1279
|
+
/** @returns {UMDJs} */
|
|
1280
|
+
static UMDJs() {
|
|
1281
|
+
return Joi.object({
|
|
1282
|
+
links: Joi.array().items(Joi.string().allow("")),
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/** @returns {UpdateThemeNameRequestBody} */
|
|
1287
|
+
static UpdateThemeNameRequestBody() {
|
|
1288
|
+
return Joi.object({
|
|
1289
|
+
name: Joi.string().allow(""),
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
/** @returns {UpdateThemeRequestBody} */
|
|
1294
|
+
static UpdateThemeRequestBody() {
|
|
1295
|
+
return Joi.object({
|
|
1296
|
+
config: ThemePlatformModel.Config(),
|
|
1297
|
+
font: ThemePlatformModel.Font(),
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
/** @returns {UrlProp} */
|
|
1302
|
+
static UrlProp() {
|
|
1303
|
+
return Joi.object({
|
|
1304
|
+
type: Joi.string().allow(""),
|
|
1305
|
+
value: Joi.string().allow(""),
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/** @returns {UserAlertsSetting} */
|
|
1310
|
+
static UserAlertsSetting() {
|
|
331
1311
|
return Joi.object({
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
1312
|
+
error_background: Joi.string().allow(""),
|
|
1313
|
+
error_text: Joi.string().allow(""),
|
|
1314
|
+
info_background: Joi.string().allow(""),
|
|
1315
|
+
info_text: Joi.string().allow(""),
|
|
1316
|
+
success_background: Joi.string().allow(""),
|
|
1317
|
+
success_text: Joi.string().allow(""),
|
|
337
1318
|
});
|
|
338
1319
|
}
|
|
339
1320
|
}
|
|
340
|
-
module.exports =
|
|
1321
|
+
module.exports = ThemePlatformModel;
|