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