@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export = ThemeApplicationModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Action
|
|
4
|
+
* @property {ActionPage} [page]
|
|
5
|
+
* @property {ActionPage} [popup]
|
|
6
|
+
* @property {string} [type]
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @typedef ActionPage
|
|
10
|
+
* @property {Object} [params]
|
|
11
|
+
* @property {Object} [query]
|
|
12
|
+
* @property {PageType} type
|
|
13
|
+
* @property {string} [url]
|
|
14
|
+
*/
|
|
2
15
|
/**
|
|
3
16
|
* @typedef AdvanceSetting
|
|
4
17
|
* @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
|
|
@@ -20,11 +33,20 @@ export = ThemeApplicationModel;
|
|
|
20
33
|
* @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
|
|
21
34
|
* @property {boolean} [show_header_auth] - Whether to show header authentication or not
|
|
22
35
|
*/
|
|
36
|
+
/**
|
|
37
|
+
* @typedef AvailablePagePlatformPredicate
|
|
38
|
+
* @property {boolean} [android] - Section visibility on android platform
|
|
39
|
+
* @property {boolean} [ios] - Section visibility on ios platform
|
|
40
|
+
* @property {boolean} [web] - Section visibility on web platform
|
|
41
|
+
*/
|
|
23
42
|
/**
|
|
24
43
|
* @typedef AvailablePagePredicate
|
|
44
|
+
* @property {AvailablePagePlatformPredicate} [platform]
|
|
25
45
|
* @property {AvailablePageRoutePredicate} [route]
|
|
46
|
+
* @property {AvailablePageSchedulePredicate} [schedule]
|
|
26
47
|
* @property {AvailablePageScreenPredicate} [screen]
|
|
27
48
|
* @property {AvailablePageUserPredicate} [user]
|
|
49
|
+
* @property {string[]} [zones] - An array of zone ids associated with the section
|
|
28
50
|
*/
|
|
29
51
|
/**
|
|
30
52
|
* @typedef AvailablePageRoutePredicate
|
|
@@ -32,6 +54,12 @@ export = ThemeApplicationModel;
|
|
|
32
54
|
* @property {Object} [query]
|
|
33
55
|
* @property {string} [selected]
|
|
34
56
|
*/
|
|
57
|
+
/**
|
|
58
|
+
* @typedef AvailablePageSchedulePredicate
|
|
59
|
+
* @property {string} [cron]
|
|
60
|
+
* @property {string} [end]
|
|
61
|
+
* @property {string} [start]
|
|
62
|
+
*/
|
|
35
63
|
/**
|
|
36
64
|
* @typedef AvailablePageSchema
|
|
37
65
|
* @property {string} [_id]
|
|
@@ -67,7 +95,11 @@ export = ThemeApplicationModel;
|
|
|
67
95
|
/**
|
|
68
96
|
* @typedef AvailablePageSeo
|
|
69
97
|
* @property {string} [_id]
|
|
98
|
+
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
99
|
+
* @property {string} [canonical_url]
|
|
70
100
|
* @property {string} [description]
|
|
101
|
+
* @property {SEOMetaItem[]} [meta_tags]
|
|
102
|
+
* @property {SEOSitemap} [sitemap]
|
|
71
103
|
* @property {string} [title]
|
|
72
104
|
*/
|
|
73
105
|
/**
|
|
@@ -236,16 +268,6 @@ export = ThemeApplicationModel;
|
|
|
236
268
|
* @property {string} [desktop] - The URL of the desktop image
|
|
237
269
|
* @property {string} [mobile] - The URL of the mobile image
|
|
238
270
|
*/
|
|
239
|
-
/**
|
|
240
|
-
* @typedef Meta
|
|
241
|
-
* @property {string} [description] - The description of the theme
|
|
242
|
-
* @property {Images} [images]
|
|
243
|
-
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
244
|
-
* @property {string} [name] - The name of the theme
|
|
245
|
-
* @property {ThemePayment} [payment]
|
|
246
|
-
* @property {Release} [release]
|
|
247
|
-
* @property {string} [slug] - The slug of the theme
|
|
248
|
-
*/
|
|
249
271
|
/**
|
|
250
272
|
* @typedef OverlayPopupSetting
|
|
251
273
|
* @property {string} [dialog_backgroung] - The dialog background color
|
|
@@ -338,6 +360,26 @@ export = ThemeApplicationModel;
|
|
|
338
360
|
* @property {RangeProp} [slide_interval]
|
|
339
361
|
* @property {TextProp} [title]
|
|
340
362
|
*/
|
|
363
|
+
/**
|
|
364
|
+
* @typedef SEObreadcrumb
|
|
365
|
+
* @property {Action} [action]
|
|
366
|
+
* @property {string} [url]
|
|
367
|
+
*/
|
|
368
|
+
/**
|
|
369
|
+
* @typedef SEOMetaItem
|
|
370
|
+
* @property {SEOMetaItems[]} [items]
|
|
371
|
+
* @property {string} [title]
|
|
372
|
+
*/
|
|
373
|
+
/**
|
|
374
|
+
* @typedef SEOMetaItems
|
|
375
|
+
* @property {string} [key]
|
|
376
|
+
* @property {string} [value]
|
|
377
|
+
*/
|
|
378
|
+
/**
|
|
379
|
+
* @typedef SEOSitemap
|
|
380
|
+
* @property {string} [frequency]
|
|
381
|
+
* @property {number} [priority]
|
|
382
|
+
*/
|
|
341
383
|
/**
|
|
342
384
|
* @typedef StaticConfig
|
|
343
385
|
* @property {StaticProps} [props]
|
|
@@ -366,6 +408,16 @@ export = ThemeApplicationModel;
|
|
|
366
408
|
* @property {string} [name] - The name of the configuration
|
|
367
409
|
* @property {string[]} [page] - An array of pages
|
|
368
410
|
*/
|
|
411
|
+
/**
|
|
412
|
+
* @typedef ThemeMeta
|
|
413
|
+
* @property {string} [description] - The description of the theme
|
|
414
|
+
* @property {Images} [images]
|
|
415
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
416
|
+
* @property {string} [name] - The name of the theme
|
|
417
|
+
* @property {ThemePayment} [payment]
|
|
418
|
+
* @property {Release} [release]
|
|
419
|
+
* @property {string} [slug] - The slug of the theme
|
|
420
|
+
*/
|
|
369
421
|
/**
|
|
370
422
|
* @typedef ThemePayment
|
|
371
423
|
* @property {number} [amount] - The amount of the theme
|
|
@@ -383,16 +435,18 @@ export = ThemeApplicationModel;
|
|
|
383
435
|
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
384
436
|
* @property {Assets} [assets]
|
|
385
437
|
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
438
|
+
* @property {number} [company_id] - The company id in which sales channel exists
|
|
386
439
|
* @property {Config} [config]
|
|
387
440
|
* @property {string} [created_at] - The creation timestamp of the theme
|
|
388
441
|
* @property {Font} [font]
|
|
389
442
|
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
390
443
|
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
391
|
-
* @property {
|
|
444
|
+
* @property {ThemeMeta} [meta]
|
|
392
445
|
* @property {string} [name] - The name of the theme
|
|
393
446
|
* @property {Object} [styles] - The styles associated with the theme
|
|
394
447
|
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
395
448
|
* @property {string} [template_theme_id] - The ID of the template theme
|
|
449
|
+
* @property {string} [theme_type]
|
|
396
450
|
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
397
451
|
* @property {string} [version] - The version of the theme
|
|
398
452
|
*/
|
|
@@ -419,11 +473,74 @@ export = ThemeApplicationModel;
|
|
|
419
473
|
* @property {string} [success_background] - The success background color
|
|
420
474
|
* @property {string} [success_text] - The success text color
|
|
421
475
|
*/
|
|
476
|
+
/**
|
|
477
|
+
* @typedef {| "about-us"
|
|
478
|
+
* | "addresses"
|
|
479
|
+
* | "blog"
|
|
480
|
+
* | "brands"
|
|
481
|
+
* | "cards"
|
|
482
|
+
* | "cart"
|
|
483
|
+
* | "categories"
|
|
484
|
+
* | "brand"
|
|
485
|
+
* | "category"
|
|
486
|
+
* | "collection"
|
|
487
|
+
* | "collections"
|
|
488
|
+
* | "contact-us"
|
|
489
|
+
* | "external"
|
|
490
|
+
* | "faq"
|
|
491
|
+
* | "freshchat"
|
|
492
|
+
* | "home"
|
|
493
|
+
* | "notification-settings"
|
|
494
|
+
* | "orders"
|
|
495
|
+
* | "page"
|
|
496
|
+
* | "policy"
|
|
497
|
+
* | "product"
|
|
498
|
+
* | "product-request"
|
|
499
|
+
* | "products"
|
|
500
|
+
* | "profile"
|
|
501
|
+
* | "profile-order-shipment"
|
|
502
|
+
* | "profile-basic"
|
|
503
|
+
* | "profile-company"
|
|
504
|
+
* | "profile-emails"
|
|
505
|
+
* | "profile-phones"
|
|
506
|
+
* | "rate-us"
|
|
507
|
+
* | "refer-earn"
|
|
508
|
+
* | "settings"
|
|
509
|
+
* | "shared-cart"
|
|
510
|
+
* | "tnc"
|
|
511
|
+
* | "track-order"
|
|
512
|
+
* | "wishlist"
|
|
513
|
+
* | "sections"
|
|
514
|
+
* | "form"
|
|
515
|
+
* | "cart-delivery"
|
|
516
|
+
* | "cart-payment"
|
|
517
|
+
* | "cart-review"
|
|
518
|
+
* | "login"
|
|
519
|
+
* | "register"
|
|
520
|
+
* | "shipping-policy"
|
|
521
|
+
* | "return-policy"
|
|
522
|
+
* | "order-status"} PageType
|
|
523
|
+
*/
|
|
422
524
|
declare class ThemeApplicationModel {
|
|
423
525
|
}
|
|
424
526
|
declare namespace ThemeApplicationModel {
|
|
425
|
-
export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CheckboxProp, Colors, CommonJS, Config, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, ImagePickerProp, Images,
|
|
527
|
+
export { Action, ActionPage, AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePlatformPredicate, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CheckboxProp, Colors, CommonJS, Config, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, ImagePickerProp, Images, OverlayPopupSetting, Page, PaletteConfig, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, SEObreadcrumb, SEOMetaItem, SEOMetaItems, SEOSitemap, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemeMeta, ThemePayment, ThemeSetting, ThemesSchema, ThemeUserSchema, UMDJs, UrlProp, UserAlertsSetting, PageType };
|
|
426
528
|
}
|
|
529
|
+
/** @returns {Action} */
|
|
530
|
+
declare function Action(): Action;
|
|
531
|
+
type Action = {
|
|
532
|
+
page?: ActionPage;
|
|
533
|
+
popup?: ActionPage;
|
|
534
|
+
type?: string;
|
|
535
|
+
};
|
|
536
|
+
/** @returns {ActionPage} */
|
|
537
|
+
declare function ActionPage(): ActionPage;
|
|
538
|
+
type ActionPage = {
|
|
539
|
+
params?: any;
|
|
540
|
+
query?: any;
|
|
541
|
+
type: PageType;
|
|
542
|
+
url?: string;
|
|
543
|
+
};
|
|
427
544
|
/** @returns {AdvanceSetting} */
|
|
428
545
|
declare function AdvanceSetting(): AdvanceSetting;
|
|
429
546
|
type AdvanceSetting = {
|
|
@@ -455,12 +572,34 @@ type AuthConfig = {
|
|
|
455
572
|
*/
|
|
456
573
|
show_header_auth?: boolean;
|
|
457
574
|
};
|
|
575
|
+
/** @returns {AvailablePagePlatformPredicate} */
|
|
576
|
+
declare function AvailablePagePlatformPredicate(): AvailablePagePlatformPredicate;
|
|
577
|
+
type AvailablePagePlatformPredicate = {
|
|
578
|
+
/**
|
|
579
|
+
* - Section visibility on android platform
|
|
580
|
+
*/
|
|
581
|
+
android?: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* - Section visibility on ios platform
|
|
584
|
+
*/
|
|
585
|
+
ios?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* - Section visibility on web platform
|
|
588
|
+
*/
|
|
589
|
+
web?: boolean;
|
|
590
|
+
};
|
|
458
591
|
/** @returns {AvailablePagePredicate} */
|
|
459
592
|
declare function AvailablePagePredicate(): AvailablePagePredicate;
|
|
460
593
|
type AvailablePagePredicate = {
|
|
594
|
+
platform?: AvailablePagePlatformPredicate;
|
|
461
595
|
route?: AvailablePageRoutePredicate;
|
|
596
|
+
schedule?: AvailablePageSchedulePredicate;
|
|
462
597
|
screen?: AvailablePageScreenPredicate;
|
|
463
598
|
user?: AvailablePageUserPredicate;
|
|
599
|
+
/**
|
|
600
|
+
* - An array of zone ids associated with the section
|
|
601
|
+
*/
|
|
602
|
+
zones?: string[];
|
|
464
603
|
};
|
|
465
604
|
/** @returns {AvailablePageRoutePredicate} */
|
|
466
605
|
declare function AvailablePageRoutePredicate(): AvailablePageRoutePredicate;
|
|
@@ -469,6 +608,13 @@ type AvailablePageRoutePredicate = {
|
|
|
469
608
|
query?: any;
|
|
470
609
|
selected?: string;
|
|
471
610
|
};
|
|
611
|
+
/** @returns {AvailablePageSchedulePredicate} */
|
|
612
|
+
declare function AvailablePageSchedulePredicate(): AvailablePageSchedulePredicate;
|
|
613
|
+
type AvailablePageSchedulePredicate = {
|
|
614
|
+
cron?: string;
|
|
615
|
+
end?: string;
|
|
616
|
+
start?: string;
|
|
617
|
+
};
|
|
472
618
|
/** @returns {AvailablePageSchema} */
|
|
473
619
|
declare function AvailablePageSchema(): AvailablePageSchema;
|
|
474
620
|
type AvailablePageSchema = {
|
|
@@ -509,7 +655,11 @@ type AvailablePageSectionMetaAttributes = {
|
|
|
509
655
|
declare function AvailablePageSeo(): AvailablePageSeo;
|
|
510
656
|
type AvailablePageSeo = {
|
|
511
657
|
_id?: string;
|
|
658
|
+
breadcrumb?: SEObreadcrumb[];
|
|
659
|
+
canonical_url?: string;
|
|
512
660
|
description?: string;
|
|
661
|
+
meta_tags?: SEOMetaItem[];
|
|
662
|
+
sitemap?: SEOSitemap;
|
|
513
663
|
title?: string;
|
|
514
664
|
};
|
|
515
665
|
/** @returns {AvailablePageUserPredicate} */
|
|
@@ -888,29 +1038,6 @@ type Images = {
|
|
|
888
1038
|
*/
|
|
889
1039
|
mobile?: string;
|
|
890
1040
|
};
|
|
891
|
-
/** @returns {Meta} */
|
|
892
|
-
declare function Meta(): Meta;
|
|
893
|
-
type Meta = {
|
|
894
|
-
/**
|
|
895
|
-
* - The description of the theme
|
|
896
|
-
*/
|
|
897
|
-
description?: string;
|
|
898
|
-
images?: Images;
|
|
899
|
-
/**
|
|
900
|
-
* - An array of industries associated with the theme
|
|
901
|
-
*/
|
|
902
|
-
industry?: string[];
|
|
903
|
-
/**
|
|
904
|
-
* - The name of the theme
|
|
905
|
-
*/
|
|
906
|
-
name?: string;
|
|
907
|
-
payment?: ThemePayment;
|
|
908
|
-
release?: Release;
|
|
909
|
-
/**
|
|
910
|
-
* - The slug of the theme
|
|
911
|
-
*/
|
|
912
|
-
slug?: string;
|
|
913
|
-
};
|
|
914
1041
|
/** @returns {OverlayPopupSetting} */
|
|
915
1042
|
declare function OverlayPopupSetting(): OverlayPopupSetting;
|
|
916
1043
|
type OverlayPopupSetting = {
|
|
@@ -1090,6 +1217,30 @@ type SectionProps = {
|
|
|
1090
1217
|
slide_interval?: RangeProp;
|
|
1091
1218
|
title?: TextProp;
|
|
1092
1219
|
};
|
|
1220
|
+
/** @returns {SEObreadcrumb} */
|
|
1221
|
+
declare function SEObreadcrumb(): SEObreadcrumb;
|
|
1222
|
+
type SEObreadcrumb = {
|
|
1223
|
+
action?: Action;
|
|
1224
|
+
url?: string;
|
|
1225
|
+
};
|
|
1226
|
+
/** @returns {SEOMetaItem} */
|
|
1227
|
+
declare function SEOMetaItem(): SEOMetaItem;
|
|
1228
|
+
type SEOMetaItem = {
|
|
1229
|
+
items?: SEOMetaItems[];
|
|
1230
|
+
title?: string;
|
|
1231
|
+
};
|
|
1232
|
+
/** @returns {SEOMetaItems} */
|
|
1233
|
+
declare function SEOMetaItems(): SEOMetaItems;
|
|
1234
|
+
type SEOMetaItems = {
|
|
1235
|
+
key?: string;
|
|
1236
|
+
value?: string;
|
|
1237
|
+
};
|
|
1238
|
+
/** @returns {SEOSitemap} */
|
|
1239
|
+
declare function SEOSitemap(): SEOSitemap;
|
|
1240
|
+
type SEOSitemap = {
|
|
1241
|
+
frequency?: string;
|
|
1242
|
+
priority?: number;
|
|
1243
|
+
};
|
|
1093
1244
|
/** @returns {StaticConfig} */
|
|
1094
1245
|
declare function StaticConfig(): StaticConfig;
|
|
1095
1246
|
type StaticConfig = {
|
|
@@ -1147,6 +1298,29 @@ type ThemeConfiguration = {
|
|
|
1147
1298
|
*/
|
|
1148
1299
|
page?: string[];
|
|
1149
1300
|
};
|
|
1301
|
+
/** @returns {ThemeMeta} */
|
|
1302
|
+
declare function ThemeMeta(): ThemeMeta;
|
|
1303
|
+
type ThemeMeta = {
|
|
1304
|
+
/**
|
|
1305
|
+
* - The description of the theme
|
|
1306
|
+
*/
|
|
1307
|
+
description?: string;
|
|
1308
|
+
images?: Images;
|
|
1309
|
+
/**
|
|
1310
|
+
* - An array of industries associated with the theme
|
|
1311
|
+
*/
|
|
1312
|
+
industry?: string[];
|
|
1313
|
+
/**
|
|
1314
|
+
* - The name of the theme
|
|
1315
|
+
*/
|
|
1316
|
+
name?: string;
|
|
1317
|
+
payment?: ThemePayment;
|
|
1318
|
+
release?: Release;
|
|
1319
|
+
/**
|
|
1320
|
+
* - The slug of the theme
|
|
1321
|
+
*/
|
|
1322
|
+
slug?: string;
|
|
1323
|
+
};
|
|
1150
1324
|
/** @returns {ThemePayment} */
|
|
1151
1325
|
declare function ThemePayment(): ThemePayment;
|
|
1152
1326
|
type ThemePayment = {
|
|
@@ -1191,6 +1365,10 @@ type ThemesSchema = {
|
|
|
1191
1365
|
* - Available sections information
|
|
1192
1366
|
*/
|
|
1193
1367
|
available_sections?: SectionItem[];
|
|
1368
|
+
/**
|
|
1369
|
+
* - The company id in which sales channel exists
|
|
1370
|
+
*/
|
|
1371
|
+
company_id?: number;
|
|
1194
1372
|
config?: Config;
|
|
1195
1373
|
/**
|
|
1196
1374
|
* - The creation timestamp of the theme
|
|
@@ -1205,7 +1383,7 @@ type ThemesSchema = {
|
|
|
1205
1383
|
* - The ID of the theme in the marketplace
|
|
1206
1384
|
*/
|
|
1207
1385
|
marketplace_theme_id?: string;
|
|
1208
|
-
meta?:
|
|
1386
|
+
meta?: ThemeMeta;
|
|
1209
1387
|
/**
|
|
1210
1388
|
* - The name of the theme
|
|
1211
1389
|
*/
|
|
@@ -1222,6 +1400,7 @@ type ThemesSchema = {
|
|
|
1222
1400
|
* - The ID of the template theme
|
|
1223
1401
|
*/
|
|
1224
1402
|
template_theme_id?: string;
|
|
1403
|
+
theme_type?: string;
|
|
1225
1404
|
/**
|
|
1226
1405
|
* - The last update timestamp of the theme
|
|
1227
1406
|
*/
|
|
@@ -1288,3 +1467,10 @@ type UserAlertsSetting = {
|
|
|
1288
1467
|
*/
|
|
1289
1468
|
success_text?: string;
|
|
1290
1469
|
};
|
|
1470
|
+
/**
|
|
1471
|
+
* Enum: PageType Used By: Theme
|
|
1472
|
+
*
|
|
1473
|
+
* @returns {PageType}
|
|
1474
|
+
*/
|
|
1475
|
+
declare function PageType(): PageType;
|
|
1476
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|