@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,5 +1,20 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef Action
|
|
5
|
+
* @property {ActionPage} [page]
|
|
6
|
+
* @property {ActionPage} [popup]
|
|
7
|
+
* @property {string} [type]
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef ActionPage
|
|
12
|
+
* @property {Object} [params]
|
|
13
|
+
* @property {Object} [query]
|
|
14
|
+
* @property {PageType} type
|
|
15
|
+
* @property {string} [url]
|
|
16
|
+
*/
|
|
17
|
+
|
|
3
18
|
/**
|
|
4
19
|
* @typedef AddThemeRequestSchema
|
|
5
20
|
* @property {string} [theme_id]
|
|
@@ -10,6 +25,12 @@ const Joi = require("joi");
|
|
|
10
25
|
* @property {AvailablePageSchema[]} [pages]
|
|
11
26
|
*/
|
|
12
27
|
|
|
28
|
+
/**
|
|
29
|
+
* @typedef AppliedThemes
|
|
30
|
+
* @property {string} [_id] - ID of the application theme
|
|
31
|
+
* @property {string} [application_id] - ID of the application
|
|
32
|
+
*/
|
|
33
|
+
|
|
13
34
|
/**
|
|
14
35
|
* @typedef Assets
|
|
15
36
|
* @property {CommonJS} [common_js]
|
|
@@ -17,11 +38,21 @@ const Joi = require("joi");
|
|
|
17
38
|
* @property {UMDJs} [umd_js]
|
|
18
39
|
*/
|
|
19
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @typedef AvailablePagePlatformPredicate
|
|
43
|
+
* @property {boolean} [android] - Section visibility on android platform
|
|
44
|
+
* @property {boolean} [ios] - Section visibility on ios platform
|
|
45
|
+
* @property {boolean} [web] - Section visibility on web platform
|
|
46
|
+
*/
|
|
47
|
+
|
|
20
48
|
/**
|
|
21
49
|
* @typedef AvailablePagePredicate
|
|
50
|
+
* @property {AvailablePagePlatformPredicate} [platform]
|
|
22
51
|
* @property {AvailablePageRoutePredicate} [route]
|
|
52
|
+
* @property {AvailablePageSchedulePredicate} [schedule]
|
|
23
53
|
* @property {AvailablePageScreenPredicate} [screen]
|
|
24
54
|
* @property {AvailablePageUserPredicate} [user]
|
|
55
|
+
* @property {string[]} [zones] - An array of zone ids associated with the section
|
|
25
56
|
*/
|
|
26
57
|
|
|
27
58
|
/**
|
|
@@ -31,6 +62,13 @@ const Joi = require("joi");
|
|
|
31
62
|
* @property {string} [selected]
|
|
32
63
|
*/
|
|
33
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @typedef AvailablePageSchedulePredicate
|
|
67
|
+
* @property {string} [cron]
|
|
68
|
+
* @property {string} [end]
|
|
69
|
+
* @property {string} [start]
|
|
70
|
+
*/
|
|
71
|
+
|
|
34
72
|
/**
|
|
35
73
|
* @typedef AvailablePageSchema
|
|
36
74
|
* @property {string} [_id]
|
|
@@ -70,7 +108,11 @@ const Joi = require("joi");
|
|
|
70
108
|
/**
|
|
71
109
|
* @typedef AvailablePageSeo
|
|
72
110
|
* @property {string} [_id]
|
|
111
|
+
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
112
|
+
* @property {string} [canonical_url]
|
|
73
113
|
* @property {string} [description]
|
|
114
|
+
* @property {SEOMetaItem[]} [meta_tags]
|
|
115
|
+
* @property {SEOSitemap} [sitemap]
|
|
74
116
|
* @property {string} [title]
|
|
75
117
|
*/
|
|
76
118
|
|
|
@@ -114,13 +156,38 @@ const Joi = require("joi");
|
|
|
114
156
|
* @property {string} [link]
|
|
115
157
|
*/
|
|
116
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @typedef CompanyPrivateTheme
|
|
161
|
+
* @property {string} [_id] - Unique identifier for the theme
|
|
162
|
+
* @property {string} [application_id] - Identifier for the application
|
|
163
|
+
* @property {boolean} [applied] - Whether the theme is applied or not
|
|
164
|
+
* @property {string} [created_at] - Date and time when the theme was created
|
|
165
|
+
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
166
|
+
* @property {CompanyThemeMeta} [meta]
|
|
167
|
+
* @property {string} [name] - Name of the theme
|
|
168
|
+
* @property {string} [theme_type] - Type of the theme
|
|
169
|
+
* @property {string} [updated_at] - Date and time when the theme was last updated
|
|
170
|
+
* @property {string} [version] - Version of the theme
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @typedef CompanyThemeMeta
|
|
175
|
+
* @property {string} [description] - A description of the theme.
|
|
176
|
+
* @property {ThemeImages} [images]
|
|
177
|
+
* @property {string[]} [industry] - A list of industry categories the theme is
|
|
178
|
+
* suitable for.
|
|
179
|
+
* @property {ThemePayment} [payment]
|
|
180
|
+
* @property {string} [slug] - The slug for the theme.
|
|
181
|
+
*/
|
|
182
|
+
|
|
117
183
|
/**
|
|
118
184
|
* @typedef CompanyThemeSchema
|
|
119
185
|
* @property {string} [_id] - The unique identifier for the theme.
|
|
186
|
+
* @property {AppliedThemes[]} [applied_themes]
|
|
120
187
|
* @property {number} [company_id] - The ID of the company that the theme belongs to.
|
|
121
188
|
* @property {string} [created_at] - The timestamp when the theme was created.
|
|
122
189
|
* @property {MarketplaceThemeId} [marketplace_theme_id]
|
|
123
|
-
* @property {
|
|
190
|
+
* @property {CompanyThemeMeta} [meta]
|
|
124
191
|
* @property {string} [name] - The name of the theme.
|
|
125
192
|
* @property {string} [updated_at] - The timestamp when the theme was last updated.
|
|
126
193
|
*/
|
|
@@ -253,18 +320,10 @@ const Joi = require("joi");
|
|
|
253
320
|
/**
|
|
254
321
|
* @typedef MarketplaceThemeId
|
|
255
322
|
* @property {string} [_id] - The unique identifier for the marketplace theme.
|
|
323
|
+
* @property {string} [created_at] - Creation date of the theme
|
|
256
324
|
* @property {boolean} [is_default] - Whether the theme is the default theme.
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @typedef Meta
|
|
261
|
-
* @property {string} [description] - The description of the theme
|
|
262
|
-
* @property {Images} [images]
|
|
263
|
-
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
264
|
-
* @property {string} [name] - The name of the theme
|
|
265
|
-
* @property {ThemePayment} [payment]
|
|
266
|
-
* @property {Release} [release]
|
|
267
|
-
* @property {string} [slug] - The slug of the theme
|
|
325
|
+
* @property {ReleaseVersionOnly} [release]
|
|
326
|
+
* @property {string} [updated_at] - Update date of the theme
|
|
268
327
|
*/
|
|
269
328
|
|
|
270
329
|
/**
|
|
@@ -311,6 +370,11 @@ const Joi = require("joi");
|
|
|
311
370
|
* @property {string} [version] - The version of the theme
|
|
312
371
|
*/
|
|
313
372
|
|
|
373
|
+
/**
|
|
374
|
+
* @typedef ReleaseVersionOnly
|
|
375
|
+
* @property {string} [version] - The version of the theme
|
|
376
|
+
*/
|
|
377
|
+
|
|
314
378
|
/**
|
|
315
379
|
* @typedef Route
|
|
316
380
|
* @property {string} [exact_url] - The exact URL of the route.
|
|
@@ -354,6 +418,30 @@ const Joi = require("joi");
|
|
|
354
418
|
* @property {TextProp} [title]
|
|
355
419
|
*/
|
|
356
420
|
|
|
421
|
+
/**
|
|
422
|
+
* @typedef SEObreadcrumb
|
|
423
|
+
* @property {Action} [action]
|
|
424
|
+
* @property {string} [url]
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* @typedef SEOMetaItem
|
|
429
|
+
* @property {SEOMetaItems[]} [items]
|
|
430
|
+
* @property {string} [title]
|
|
431
|
+
*/
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @typedef SEOMetaItems
|
|
435
|
+
* @property {string} [key]
|
|
436
|
+
* @property {string} [value]
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @typedef SEOSitemap
|
|
441
|
+
* @property {string} [frequency]
|
|
442
|
+
* @property {number} [priority]
|
|
443
|
+
*/
|
|
444
|
+
|
|
357
445
|
/**
|
|
358
446
|
* @typedef TextProp
|
|
359
447
|
* @property {string} [type] - The type of the property.
|
|
@@ -376,12 +464,13 @@ const Joi = require("joi");
|
|
|
376
464
|
|
|
377
465
|
/**
|
|
378
466
|
* @typedef ThemeMeta
|
|
379
|
-
* @property {string} [description] -
|
|
380
|
-
* @property {
|
|
381
|
-
* @property {string[]} [industry] -
|
|
382
|
-
*
|
|
467
|
+
* @property {string} [description] - The description of the theme
|
|
468
|
+
* @property {Images} [images]
|
|
469
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
470
|
+
* @property {string} [name] - The name of the theme
|
|
383
471
|
* @property {ThemePayment} [payment]
|
|
384
|
-
* @property {
|
|
472
|
+
* @property {Release} [release]
|
|
473
|
+
* @property {string} [slug] - The slug of the theme
|
|
385
474
|
*/
|
|
386
475
|
|
|
387
476
|
/**
|
|
@@ -403,16 +492,18 @@ const Joi = require("joi");
|
|
|
403
492
|
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
404
493
|
* @property {Assets} [assets]
|
|
405
494
|
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
495
|
+
* @property {number} [company_id] - The company id in which sales channel exists
|
|
406
496
|
* @property {Config} [config]
|
|
407
497
|
* @property {string} [created_at] - The creation timestamp of the theme
|
|
408
498
|
* @property {Font} [font]
|
|
409
499
|
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
410
500
|
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
411
|
-
* @property {
|
|
501
|
+
* @property {ThemeMeta} [meta]
|
|
412
502
|
* @property {string} [name] - The name of the theme
|
|
413
503
|
* @property {Object} [styles] - The styles associated with the theme
|
|
414
504
|
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
415
505
|
* @property {string} [template_theme_id] - The ID of the template theme
|
|
506
|
+
* @property {string} [theme_type]
|
|
416
507
|
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
417
508
|
* @property {string} [version] - The version of the theme
|
|
418
509
|
*/
|
|
@@ -438,7 +529,7 @@ const Joi = require("joi");
|
|
|
438
529
|
|
|
439
530
|
/**
|
|
440
531
|
* @typedef UMDJs
|
|
441
|
-
* @property {string[]} [links]
|
|
532
|
+
* @property {string[]} [links] - An array of pages
|
|
442
533
|
*/
|
|
443
534
|
|
|
444
535
|
/**
|
|
@@ -458,7 +549,81 @@ const Joi = require("joi");
|
|
|
458
549
|
* @property {string} [value] - The value of the URL property.
|
|
459
550
|
*/
|
|
460
551
|
|
|
552
|
+
/**
|
|
553
|
+
* @typedef {| "about-us"
|
|
554
|
+
* | "addresses"
|
|
555
|
+
* | "blog"
|
|
556
|
+
* | "brands"
|
|
557
|
+
* | "cards"
|
|
558
|
+
* | "cart"
|
|
559
|
+
* | "categories"
|
|
560
|
+
* | "brand"
|
|
561
|
+
* | "category"
|
|
562
|
+
* | "collection"
|
|
563
|
+
* | "collections"
|
|
564
|
+
* | "contact-us"
|
|
565
|
+
* | "external"
|
|
566
|
+
* | "faq"
|
|
567
|
+
* | "freshchat"
|
|
568
|
+
* | "home"
|
|
569
|
+
* | "notification-settings"
|
|
570
|
+
* | "orders"
|
|
571
|
+
* | "page"
|
|
572
|
+
* | "policy"
|
|
573
|
+
* | "product"
|
|
574
|
+
* | "product-request"
|
|
575
|
+
* | "products"
|
|
576
|
+
* | "profile"
|
|
577
|
+
* | "profile-order-shipment"
|
|
578
|
+
* | "profile-basic"
|
|
579
|
+
* | "profile-company"
|
|
580
|
+
* | "profile-emails"
|
|
581
|
+
* | "profile-phones"
|
|
582
|
+
* | "rate-us"
|
|
583
|
+
* | "refer-earn"
|
|
584
|
+
* | "settings"
|
|
585
|
+
* | "shared-cart"
|
|
586
|
+
* | "tnc"
|
|
587
|
+
* | "track-order"
|
|
588
|
+
* | "wishlist"
|
|
589
|
+
* | "sections"
|
|
590
|
+
* | "form"
|
|
591
|
+
* | "cart-delivery"
|
|
592
|
+
* | "cart-payment"
|
|
593
|
+
* | "cart-review"
|
|
594
|
+
* | "login"
|
|
595
|
+
* | "register"
|
|
596
|
+
* | "shipping-policy"
|
|
597
|
+
* | "return-policy"
|
|
598
|
+
* | "order-status"} PageType
|
|
599
|
+
*/
|
|
600
|
+
|
|
461
601
|
class ThemePlatformModel {
|
|
602
|
+
/** @returns {Action} */
|
|
603
|
+
static Action() {
|
|
604
|
+
return Joi.object({
|
|
605
|
+
page: ThemePlatformModel.ActionPage(),
|
|
606
|
+
popup: ThemePlatformModel.ActionPage(),
|
|
607
|
+
type: Joi.string().allow(""),
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** @returns {ActionPage} */
|
|
612
|
+
static ActionPage() {
|
|
613
|
+
return Joi.object({
|
|
614
|
+
params: Joi.object().pattern(
|
|
615
|
+
/\S/,
|
|
616
|
+
Joi.array().items(Joi.string().allow(""))
|
|
617
|
+
),
|
|
618
|
+
query: Joi.object().pattern(
|
|
619
|
+
/\S/,
|
|
620
|
+
Joi.array().items(Joi.string().allow(""))
|
|
621
|
+
),
|
|
622
|
+
type: ThemePlatformModel.PageType().required(),
|
|
623
|
+
url: Joi.string().allow(""),
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
|
|
462
627
|
/** @returns {AddThemeRequestSchema} */
|
|
463
628
|
static AddThemeRequestSchema() {
|
|
464
629
|
return Joi.object({
|
|
@@ -473,6 +638,14 @@ class ThemePlatformModel {
|
|
|
473
638
|
});
|
|
474
639
|
}
|
|
475
640
|
|
|
641
|
+
/** @returns {AppliedThemes} */
|
|
642
|
+
static AppliedThemes() {
|
|
643
|
+
return Joi.object({
|
|
644
|
+
_id: Joi.string().allow(""),
|
|
645
|
+
application_id: Joi.string().allow(""),
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
|
|
476
649
|
/** @returns {Assets} */
|
|
477
650
|
static Assets() {
|
|
478
651
|
return Joi.object({
|
|
@@ -482,12 +655,24 @@ class ThemePlatformModel {
|
|
|
482
655
|
});
|
|
483
656
|
}
|
|
484
657
|
|
|
658
|
+
/** @returns {AvailablePagePlatformPredicate} */
|
|
659
|
+
static AvailablePagePlatformPredicate() {
|
|
660
|
+
return Joi.object({
|
|
661
|
+
android: Joi.boolean(),
|
|
662
|
+
ios: Joi.boolean(),
|
|
663
|
+
web: Joi.boolean(),
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
|
|
485
667
|
/** @returns {AvailablePagePredicate} */
|
|
486
668
|
static AvailablePagePredicate() {
|
|
487
669
|
return Joi.object({
|
|
670
|
+
platform: ThemePlatformModel.AvailablePagePlatformPredicate(),
|
|
488
671
|
route: ThemePlatformModel.AvailablePageRoutePredicate(),
|
|
672
|
+
schedule: ThemePlatformModel.AvailablePageSchedulePredicate(),
|
|
489
673
|
screen: ThemePlatformModel.AvailablePageScreenPredicate(),
|
|
490
674
|
user: ThemePlatformModel.AvailablePageUserPredicate(),
|
|
675
|
+
zones: Joi.array().items(Joi.string().allow("")),
|
|
491
676
|
});
|
|
492
677
|
}
|
|
493
678
|
|
|
@@ -500,6 +685,15 @@ class ThemePlatformModel {
|
|
|
500
685
|
});
|
|
501
686
|
}
|
|
502
687
|
|
|
688
|
+
/** @returns {AvailablePageSchedulePredicate} */
|
|
689
|
+
static AvailablePageSchedulePredicate() {
|
|
690
|
+
return Joi.object({
|
|
691
|
+
cron: Joi.string().allow(""),
|
|
692
|
+
end: Joi.string().allow(""),
|
|
693
|
+
start: Joi.string().allow(""),
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
|
|
503
697
|
/** @returns {AvailablePageSchema} */
|
|
504
698
|
static AvailablePageSchema() {
|
|
505
699
|
return Joi.object({
|
|
@@ -552,7 +746,11 @@ class ThemePlatformModel {
|
|
|
552
746
|
static AvailablePageSeo() {
|
|
553
747
|
return Joi.object({
|
|
554
748
|
_id: Joi.string().allow(""),
|
|
749
|
+
breadcrumb: Joi.array().items(ThemePlatformModel.SEObreadcrumb()),
|
|
750
|
+
canonical_url: Joi.string().allow(""),
|
|
555
751
|
description: Joi.string().allow(""),
|
|
752
|
+
meta_tags: Joi.array().items(ThemePlatformModel.SEOMetaItem()),
|
|
753
|
+
sitemap: ThemePlatformModel.SEOSitemap(),
|
|
556
754
|
title: Joi.string().allow(""),
|
|
557
755
|
});
|
|
558
756
|
}
|
|
@@ -611,14 +809,42 @@ class ThemePlatformModel {
|
|
|
611
809
|
});
|
|
612
810
|
}
|
|
613
811
|
|
|
812
|
+
/** @returns {CompanyPrivateTheme} */
|
|
813
|
+
static CompanyPrivateTheme() {
|
|
814
|
+
return Joi.object({
|
|
815
|
+
_id: Joi.string().allow(""),
|
|
816
|
+
application_id: Joi.string().allow(""),
|
|
817
|
+
applied: Joi.boolean(),
|
|
818
|
+
created_at: Joi.string().allow(""),
|
|
819
|
+
is_private: Joi.boolean(),
|
|
820
|
+
meta: ThemePlatformModel.CompanyThemeMeta(),
|
|
821
|
+
name: Joi.string().allow(""),
|
|
822
|
+
theme_type: Joi.string().allow(""),
|
|
823
|
+
updated_at: Joi.string().allow(""),
|
|
824
|
+
version: Joi.string().allow(""),
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/** @returns {CompanyThemeMeta} */
|
|
829
|
+
static CompanyThemeMeta() {
|
|
830
|
+
return Joi.object({
|
|
831
|
+
description: Joi.string().allow(""),
|
|
832
|
+
images: ThemePlatformModel.ThemeImages(),
|
|
833
|
+
industry: Joi.array().items(Joi.string().allow("")),
|
|
834
|
+
payment: ThemePlatformModel.ThemePayment(),
|
|
835
|
+
slug: Joi.string().allow(""),
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
|
|
614
839
|
/** @returns {CompanyThemeSchema} */
|
|
615
840
|
static CompanyThemeSchema() {
|
|
616
841
|
return Joi.object({
|
|
617
842
|
_id: Joi.string().allow(""),
|
|
843
|
+
applied_themes: Joi.array().items(ThemePlatformModel.AppliedThemes()),
|
|
618
844
|
company_id: Joi.number(),
|
|
619
845
|
created_at: Joi.string().allow(""),
|
|
620
846
|
marketplace_theme_id: ThemePlatformModel.MarketplaceThemeId(),
|
|
621
|
-
meta: ThemePlatformModel.
|
|
847
|
+
meta: ThemePlatformModel.CompanyThemeMeta(),
|
|
622
848
|
name: Joi.string().allow(""),
|
|
623
849
|
updated_at: Joi.string().allow(""),
|
|
624
850
|
});
|
|
@@ -778,20 +1004,10 @@ class ThemePlatformModel {
|
|
|
778
1004
|
static MarketplaceThemeId() {
|
|
779
1005
|
return Joi.object({
|
|
780
1006
|
_id: Joi.string().allow(""),
|
|
1007
|
+
created_at: Joi.string().allow(""),
|
|
781
1008
|
is_default: Joi.boolean(),
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
/** @returns {Meta} */
|
|
786
|
-
static Meta() {
|
|
787
|
-
return Joi.object({
|
|
788
|
-
description: Joi.string().allow(""),
|
|
789
|
-
images: ThemePlatformModel.Images(),
|
|
790
|
-
industry: Joi.array().items(Joi.string().allow("")),
|
|
791
|
-
name: Joi.string().allow(""),
|
|
792
|
-
payment: ThemePlatformModel.ThemePayment(),
|
|
793
|
-
release: ThemePlatformModel.Release(),
|
|
794
|
-
slug: Joi.string().allow(""),
|
|
1009
|
+
release: ThemePlatformModel.ReleaseVersionOnly(),
|
|
1010
|
+
updated_at: Joi.string().allow(""),
|
|
795
1011
|
});
|
|
796
1012
|
}
|
|
797
1013
|
|
|
@@ -851,6 +1067,13 @@ class ThemePlatformModel {
|
|
|
851
1067
|
});
|
|
852
1068
|
}
|
|
853
1069
|
|
|
1070
|
+
/** @returns {ReleaseVersionOnly} */
|
|
1071
|
+
static ReleaseVersionOnly() {
|
|
1072
|
+
return Joi.object({
|
|
1073
|
+
version: Joi.string().allow(""),
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
|
|
854
1077
|
/** @returns {Route} */
|
|
855
1078
|
static Route() {
|
|
856
1079
|
return Joi.object({
|
|
@@ -906,6 +1129,38 @@ class ThemePlatformModel {
|
|
|
906
1129
|
});
|
|
907
1130
|
}
|
|
908
1131
|
|
|
1132
|
+
/** @returns {SEObreadcrumb} */
|
|
1133
|
+
static SEObreadcrumb() {
|
|
1134
|
+
return Joi.object({
|
|
1135
|
+
action: ThemePlatformModel.Action(),
|
|
1136
|
+
url: Joi.string().allow(""),
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/** @returns {SEOMetaItem} */
|
|
1141
|
+
static SEOMetaItem() {
|
|
1142
|
+
return Joi.object({
|
|
1143
|
+
items: Joi.array().items(ThemePlatformModel.SEOMetaItems()),
|
|
1144
|
+
title: Joi.string().allow(""),
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/** @returns {SEOMetaItems} */
|
|
1149
|
+
static SEOMetaItems() {
|
|
1150
|
+
return Joi.object({
|
|
1151
|
+
key: Joi.string().allow(""),
|
|
1152
|
+
value: Joi.string().allow(""),
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/** @returns {SEOSitemap} */
|
|
1157
|
+
static SEOSitemap() {
|
|
1158
|
+
return Joi.object({
|
|
1159
|
+
frequency: Joi.string().allow(""),
|
|
1160
|
+
priority: Joi.number(),
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
|
|
909
1164
|
/** @returns {TextProp} */
|
|
910
1165
|
static TextProp() {
|
|
911
1166
|
return Joi.object({
|
|
@@ -936,9 +1191,11 @@ class ThemePlatformModel {
|
|
|
936
1191
|
static ThemeMeta() {
|
|
937
1192
|
return Joi.object({
|
|
938
1193
|
description: Joi.string().allow(""),
|
|
939
|
-
images: ThemePlatformModel.
|
|
1194
|
+
images: ThemePlatformModel.Images(),
|
|
940
1195
|
industry: Joi.array().items(Joi.string().allow("")),
|
|
1196
|
+
name: Joi.string().allow(""),
|
|
941
1197
|
payment: ThemePlatformModel.ThemePayment(),
|
|
1198
|
+
release: ThemePlatformModel.Release(),
|
|
942
1199
|
slug: Joi.string().allow(""),
|
|
943
1200
|
});
|
|
944
1201
|
}
|
|
@@ -966,16 +1223,18 @@ class ThemePlatformModel {
|
|
|
966
1223
|
applied: Joi.boolean(),
|
|
967
1224
|
assets: ThemePlatformModel.Assets(),
|
|
968
1225
|
available_sections: Joi.array().items(ThemePlatformModel.SectionItem()),
|
|
1226
|
+
company_id: Joi.number(),
|
|
969
1227
|
config: ThemePlatformModel.Config(),
|
|
970
1228
|
created_at: Joi.string().allow(""),
|
|
971
1229
|
font: ThemePlatformModel.Font(),
|
|
972
1230
|
is_private: Joi.boolean(),
|
|
973
1231
|
marketplace_theme_id: Joi.string().allow(""),
|
|
974
|
-
meta: ThemePlatformModel.
|
|
1232
|
+
meta: ThemePlatformModel.ThemeMeta(),
|
|
975
1233
|
name: Joi.string().allow(""),
|
|
976
1234
|
styles: Joi.any(),
|
|
977
1235
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
978
1236
|
template_theme_id: Joi.string().allow(""),
|
|
1237
|
+
theme_type: Joi.string().allow(""),
|
|
979
1238
|
updated_at: Joi.string().allow(""),
|
|
980
1239
|
version: Joi.string().allow(""),
|
|
981
1240
|
});
|
|
@@ -1035,5 +1294,106 @@ class ThemePlatformModel {
|
|
|
1035
1294
|
value: Joi.string().allow(""),
|
|
1036
1295
|
});
|
|
1037
1296
|
}
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* Enum: PageType Used By: Theme
|
|
1300
|
+
*
|
|
1301
|
+
* @returns {PageType}
|
|
1302
|
+
*/
|
|
1303
|
+
static PageType() {
|
|
1304
|
+
return Joi.string().valid(
|
|
1305
|
+
"about-us",
|
|
1306
|
+
|
|
1307
|
+
"addresses",
|
|
1308
|
+
|
|
1309
|
+
"blog",
|
|
1310
|
+
|
|
1311
|
+
"brands",
|
|
1312
|
+
|
|
1313
|
+
"cards",
|
|
1314
|
+
|
|
1315
|
+
"cart",
|
|
1316
|
+
|
|
1317
|
+
"categories",
|
|
1318
|
+
|
|
1319
|
+
"brand",
|
|
1320
|
+
|
|
1321
|
+
"category",
|
|
1322
|
+
|
|
1323
|
+
"collection",
|
|
1324
|
+
|
|
1325
|
+
"collections",
|
|
1326
|
+
|
|
1327
|
+
"contact-us",
|
|
1328
|
+
|
|
1329
|
+
"external",
|
|
1330
|
+
|
|
1331
|
+
"faq",
|
|
1332
|
+
|
|
1333
|
+
"freshchat",
|
|
1334
|
+
|
|
1335
|
+
"home",
|
|
1336
|
+
|
|
1337
|
+
"notification-settings",
|
|
1338
|
+
|
|
1339
|
+
"orders",
|
|
1340
|
+
|
|
1341
|
+
"page",
|
|
1342
|
+
|
|
1343
|
+
"policy",
|
|
1344
|
+
|
|
1345
|
+
"product",
|
|
1346
|
+
|
|
1347
|
+
"product-request",
|
|
1348
|
+
|
|
1349
|
+
"products",
|
|
1350
|
+
|
|
1351
|
+
"profile",
|
|
1352
|
+
|
|
1353
|
+
"profile-order-shipment",
|
|
1354
|
+
|
|
1355
|
+
"profile-basic",
|
|
1356
|
+
|
|
1357
|
+
"profile-company",
|
|
1358
|
+
|
|
1359
|
+
"profile-emails",
|
|
1360
|
+
|
|
1361
|
+
"profile-phones",
|
|
1362
|
+
|
|
1363
|
+
"rate-us",
|
|
1364
|
+
|
|
1365
|
+
"refer-earn",
|
|
1366
|
+
|
|
1367
|
+
"settings",
|
|
1368
|
+
|
|
1369
|
+
"shared-cart",
|
|
1370
|
+
|
|
1371
|
+
"tnc",
|
|
1372
|
+
|
|
1373
|
+
"track-order",
|
|
1374
|
+
|
|
1375
|
+
"wishlist",
|
|
1376
|
+
|
|
1377
|
+
"sections",
|
|
1378
|
+
|
|
1379
|
+
"form",
|
|
1380
|
+
|
|
1381
|
+
"cart-delivery",
|
|
1382
|
+
|
|
1383
|
+
"cart-payment",
|
|
1384
|
+
|
|
1385
|
+
"cart-review",
|
|
1386
|
+
|
|
1387
|
+
"login",
|
|
1388
|
+
|
|
1389
|
+
"register",
|
|
1390
|
+
|
|
1391
|
+
"shipping-policy",
|
|
1392
|
+
|
|
1393
|
+
"return-policy",
|
|
1394
|
+
|
|
1395
|
+
"order-status"
|
|
1396
|
+
);
|
|
1397
|
+
}
|
|
1038
1398
|
}
|
|
1039
1399
|
module.exports = ThemePlatformModel;
|
|
@@ -7,17 +7,28 @@ export = ThemePlatformValidator;
|
|
|
7
7
|
* @typedef DeleteCompanyThemeParam
|
|
8
8
|
* @property {string} themeId - The ID of the theme.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @typedef GetCompanyLevelPrivateThemesParam
|
|
12
|
+
* @property {string} [searchText] - Search Text to match the Theme Names and
|
|
13
|
+
* return the response.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @typedef GetCompanyLevelThemesParam
|
|
17
|
+
* @property {string} [searchText] - Search Text to match the Theme Names and
|
|
18
|
+
* return the response.
|
|
19
|
+
*/
|
|
11
20
|
declare class ThemePlatformValidator {
|
|
12
21
|
/** @returns {AddMarketplaceThemeToCompanyParam} */
|
|
13
22
|
static addMarketplaceThemeToCompany(): AddMarketplaceThemeToCompanyParam;
|
|
14
23
|
/** @returns {DeleteCompanyThemeParam} */
|
|
15
24
|
static deleteCompanyTheme(): DeleteCompanyThemeParam;
|
|
25
|
+
/** @returns {GetCompanyLevelPrivateThemesParam} */
|
|
26
|
+
static getCompanyLevelPrivateThemes(): GetCompanyLevelPrivateThemesParam;
|
|
16
27
|
/** @returns {GetCompanyLevelThemesParam} */
|
|
17
|
-
static getCompanyLevelThemes():
|
|
28
|
+
static getCompanyLevelThemes(): GetCompanyLevelThemesParam;
|
|
18
29
|
}
|
|
19
30
|
declare namespace ThemePlatformValidator {
|
|
20
|
-
export { AddMarketplaceThemeToCompanyParam, DeleteCompanyThemeParam, GetCompanyLevelThemesParam };
|
|
31
|
+
export { AddMarketplaceThemeToCompanyParam, DeleteCompanyThemeParam, GetCompanyLevelPrivateThemesParam, GetCompanyLevelThemesParam };
|
|
21
32
|
}
|
|
22
33
|
type AddMarketplaceThemeToCompanyParam = {
|
|
23
34
|
body: ThemePlatformModel.ThemeReq;
|
|
@@ -28,5 +39,18 @@ type DeleteCompanyThemeParam = {
|
|
|
28
39
|
*/
|
|
29
40
|
themeId: string;
|
|
30
41
|
};
|
|
31
|
-
type
|
|
42
|
+
type GetCompanyLevelPrivateThemesParam = {
|
|
43
|
+
/**
|
|
44
|
+
* - Search Text to match the Theme Names and
|
|
45
|
+
* return the response.
|
|
46
|
+
*/
|
|
47
|
+
searchText?: string;
|
|
48
|
+
};
|
|
49
|
+
type GetCompanyLevelThemesParam = {
|
|
50
|
+
/**
|
|
51
|
+
* - Search Text to match the Theme Names and
|
|
52
|
+
* return the response.
|
|
53
|
+
*/
|
|
54
|
+
searchText?: string;
|
|
55
|
+
};
|
|
32
56
|
import ThemePlatformModel = require("./ThemePlatformModel");
|