@gofynd/fdk-client-javascript 1.3.11-beta.6 → 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 +1030 -468
- package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
- 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
|
@@ -1529,5 +1529,85 @@ class Theme {
|
|
|
1529
1529
|
|
|
1530
1530
|
return response;
|
|
1531
1531
|
}
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* @param {ThemePartnerValidator.CreateThemeParam} arg - Arg object.
|
|
1535
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1536
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1537
|
+
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
1538
|
+
* @name createTheme
|
|
1539
|
+
* @summary: Create a new theme
|
|
1540
|
+
* @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createTheme/).
|
|
1541
|
+
*/
|
|
1542
|
+
async createTheme(
|
|
1543
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
1544
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1545
|
+
) {
|
|
1546
|
+
const { error } = ThemePartnerValidator.createTheme().validate(
|
|
1547
|
+
{
|
|
1548
|
+
companyId,
|
|
1549
|
+
applicationId,
|
|
1550
|
+
body,
|
|
1551
|
+
},
|
|
1552
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1553
|
+
);
|
|
1554
|
+
if (error) {
|
|
1555
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1559
|
+
const { error: warrning } = ThemePartnerValidator.createTheme().validate(
|
|
1560
|
+
{
|
|
1561
|
+
companyId,
|
|
1562
|
+
applicationId,
|
|
1563
|
+
|
|
1564
|
+
body,
|
|
1565
|
+
},
|
|
1566
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1567
|
+
);
|
|
1568
|
+
if (warrning) {
|
|
1569
|
+
Logger({
|
|
1570
|
+
level: "WARN",
|
|
1571
|
+
message: `Parameter Validation warrnings for partner > Theme > createTheme \n ${warrning}`,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
const query_params = {};
|
|
1576
|
+
|
|
1577
|
+
const response = await PartnerAPIClient.execute(
|
|
1578
|
+
this.config,
|
|
1579
|
+
"post",
|
|
1580
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}`,
|
|
1581
|
+
query_params,
|
|
1582
|
+
body,
|
|
1583
|
+
requestHeaders,
|
|
1584
|
+
{ responseHeaders }
|
|
1585
|
+
);
|
|
1586
|
+
|
|
1587
|
+
let responseData = response;
|
|
1588
|
+
if (responseHeaders) {
|
|
1589
|
+
responseData = response[0];
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
const {
|
|
1593
|
+
error: res_error,
|
|
1594
|
+
} = ThemePartnerModel.ThemesSchema().validate(responseData, {
|
|
1595
|
+
abortEarly: false,
|
|
1596
|
+
allowUnknown: true,
|
|
1597
|
+
});
|
|
1598
|
+
|
|
1599
|
+
if (res_error) {
|
|
1600
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1601
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1602
|
+
} else {
|
|
1603
|
+
Logger({
|
|
1604
|
+
level: "WARN",
|
|
1605
|
+
message: `Response Validation Warnings for partner > Theme > createTheme \n ${res_error}`,
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
return response;
|
|
1611
|
+
}
|
|
1532
1612
|
}
|
|
1533
1613
|
module.exports = Theme;
|
|
@@ -145,6 +145,18 @@ export = ThemePartnerModel;
|
|
|
145
145
|
* @property {string[]} [developer_contact] - Developer contact information
|
|
146
146
|
* @property {string} [seller_contact] - Seller contact information
|
|
147
147
|
*/
|
|
148
|
+
/**
|
|
149
|
+
* @typedef CreateNewTheme
|
|
150
|
+
* @property {SectionItem[]} available_sections - Available sections information
|
|
151
|
+
* @property {string} [current] - The current configuration
|
|
152
|
+
* @property {GlobalSchema} [global_schema]
|
|
153
|
+
* @property {ThemeConfiguration[]} [list] - A list of configurations
|
|
154
|
+
* @property {string} name - The name of the theme
|
|
155
|
+
* @property {Page[]} [pages]
|
|
156
|
+
* @property {Preset} [preset]
|
|
157
|
+
* @property {string} theme_type - Type of the Theme
|
|
158
|
+
* @property {string} version - The version of the theme
|
|
159
|
+
*/
|
|
148
160
|
/**
|
|
149
161
|
* @typedef CSS
|
|
150
162
|
* @property {string[]} [links]
|
|
@@ -324,16 +336,6 @@ export = ThemePartnerModel;
|
|
|
324
336
|
* @property {PaginationSchema} [page]
|
|
325
337
|
* @property {MarketplaceTheme[]} [themes]
|
|
326
338
|
*/
|
|
327
|
-
/**
|
|
328
|
-
* @typedef Meta
|
|
329
|
-
* @property {string} [description] - The description of the theme
|
|
330
|
-
* @property {Images} [images]
|
|
331
|
-
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
332
|
-
* @property {string} [name] - The name of the theme
|
|
333
|
-
* @property {ThemePayment} [payment]
|
|
334
|
-
* @property {Release} [release]
|
|
335
|
-
* @property {string} [slug] - The slug of the theme
|
|
336
|
-
*/
|
|
337
339
|
/**
|
|
338
340
|
* @typedef OverlayPopupSetting
|
|
339
341
|
* @property {string} [dialog_backgroung] - The dialog background color
|
|
@@ -341,8 +343,13 @@ export = ThemePartnerModel;
|
|
|
341
343
|
*/
|
|
342
344
|
/**
|
|
343
345
|
* @typedef Page
|
|
344
|
-
* @property {
|
|
345
|
-
* @property {
|
|
346
|
+
* @property {number} [current]
|
|
347
|
+
* @property {boolean} [has_next]
|
|
348
|
+
* @property {boolean} [has_previous]
|
|
349
|
+
* @property {number} [item_total]
|
|
350
|
+
* @property {string} [next_id]
|
|
351
|
+
* @property {number} [size]
|
|
352
|
+
* @property {string} type
|
|
346
353
|
*/
|
|
347
354
|
/**
|
|
348
355
|
* @typedef PaginationSchema
|
|
@@ -462,6 +469,16 @@ export = ThemePartnerModel;
|
|
|
462
469
|
* @property {string} [name] - The name of the configuration
|
|
463
470
|
* @property {string[]} [page] - An array of pages
|
|
464
471
|
*/
|
|
472
|
+
/**
|
|
473
|
+
* @typedef ThemeMeta
|
|
474
|
+
* @property {string} [description] - The description of the theme
|
|
475
|
+
* @property {Images} [images]
|
|
476
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
477
|
+
* @property {string} [name] - The name of the theme
|
|
478
|
+
* @property {ThemePayment} [payment]
|
|
479
|
+
* @property {Release} [release]
|
|
480
|
+
* @property {string} [slug] - The slug of the theme
|
|
481
|
+
*/
|
|
465
482
|
/**
|
|
466
483
|
* @typedef ThemePayment
|
|
467
484
|
* @property {number} [amount] - The amount of the theme
|
|
@@ -494,16 +511,18 @@ export = ThemePartnerModel;
|
|
|
494
511
|
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
495
512
|
* @property {Assets} [assets]
|
|
496
513
|
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
514
|
+
* @property {number} [company_id] - The company id in which sales channel exists
|
|
497
515
|
* @property {Config} [config]
|
|
498
516
|
* @property {string} [created_at] - The creation timestamp of the theme
|
|
499
517
|
* @property {Font} [font]
|
|
500
518
|
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
501
519
|
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
502
|
-
* @property {
|
|
520
|
+
* @property {ThemeMeta} [meta]
|
|
503
521
|
* @property {string} [name] - The name of the theme
|
|
504
522
|
* @property {Object} [styles] - The styles associated with the theme
|
|
505
523
|
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
506
524
|
* @property {string} [template_theme_id] - The ID of the template theme
|
|
525
|
+
* @property {string} [theme_type]
|
|
507
526
|
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
508
527
|
* @property {string} [version] - The version of the theme
|
|
509
528
|
*/
|
|
@@ -545,7 +564,7 @@ export = ThemePartnerModel;
|
|
|
545
564
|
declare class ThemePartnerModel {
|
|
546
565
|
}
|
|
547
566
|
declare namespace ThemePartnerModel {
|
|
548
|
-
export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CarouselItem, CatalogSize, CheckboxProp, Colors, Comments, CommonJS, Config, ContactInfo, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema,
|
|
567
|
+
export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CarouselItem, CatalogSize, CheckboxProp, Colors, Comments, CommonJS, Config, ContactInfo, CreateNewTheme, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema, OverlayPopupSetting, Page, PaginationSchema, PaletteConfig, PaymentInfo, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemeMeta, ThemePayment, ThemeRejectionReasons, ThemeSetting, ThemesSchema, ThemeUserSchema, UMDJs, UpdateThemeRequestBody, UrlProp, UserAlertsSetting, Variation };
|
|
549
568
|
}
|
|
550
569
|
/** @returns {AdvanceSetting} */
|
|
551
570
|
declare function AdvanceSetting(): AdvanceSetting;
|
|
@@ -793,6 +812,37 @@ type ContactInfo = {
|
|
|
793
812
|
*/
|
|
794
813
|
seller_contact?: string;
|
|
795
814
|
};
|
|
815
|
+
/** @returns {CreateNewTheme} */
|
|
816
|
+
declare function CreateNewTheme(): CreateNewTheme;
|
|
817
|
+
type CreateNewTheme = {
|
|
818
|
+
/**
|
|
819
|
+
* - Available sections information
|
|
820
|
+
*/
|
|
821
|
+
available_sections: SectionItem[];
|
|
822
|
+
/**
|
|
823
|
+
* - The current configuration
|
|
824
|
+
*/
|
|
825
|
+
current?: string;
|
|
826
|
+
global_schema?: GlobalSchema;
|
|
827
|
+
/**
|
|
828
|
+
* - A list of configurations
|
|
829
|
+
*/
|
|
830
|
+
list?: ThemeConfiguration[];
|
|
831
|
+
/**
|
|
832
|
+
* - The name of the theme
|
|
833
|
+
*/
|
|
834
|
+
name: string;
|
|
835
|
+
pages?: Page[];
|
|
836
|
+
preset?: Preset;
|
|
837
|
+
/**
|
|
838
|
+
* - Type of the Theme
|
|
839
|
+
*/
|
|
840
|
+
theme_type: string;
|
|
841
|
+
/**
|
|
842
|
+
* - The version of the theme
|
|
843
|
+
*/
|
|
844
|
+
version: string;
|
|
845
|
+
};
|
|
796
846
|
/** @returns {CSS} */
|
|
797
847
|
declare function CSS(): CSS;
|
|
798
848
|
type CSS = {
|
|
@@ -1219,29 +1269,6 @@ type MarketplaceThemeSchema = {
|
|
|
1219
1269
|
page?: PaginationSchema;
|
|
1220
1270
|
themes?: MarketplaceTheme[];
|
|
1221
1271
|
};
|
|
1222
|
-
/** @returns {Meta} */
|
|
1223
|
-
declare function Meta(): Meta;
|
|
1224
|
-
type Meta = {
|
|
1225
|
-
/**
|
|
1226
|
-
* - The description of the theme
|
|
1227
|
-
*/
|
|
1228
|
-
description?: string;
|
|
1229
|
-
images?: Images;
|
|
1230
|
-
/**
|
|
1231
|
-
* - An array of industries associated with the theme
|
|
1232
|
-
*/
|
|
1233
|
-
industry?: string[];
|
|
1234
|
-
/**
|
|
1235
|
-
* - The name of the theme
|
|
1236
|
-
*/
|
|
1237
|
-
name?: string;
|
|
1238
|
-
payment?: ThemePayment;
|
|
1239
|
-
release?: Release;
|
|
1240
|
-
/**
|
|
1241
|
-
* - The slug of the theme
|
|
1242
|
-
*/
|
|
1243
|
-
slug?: string;
|
|
1244
|
-
};
|
|
1245
1272
|
/** @returns {OverlayPopupSetting} */
|
|
1246
1273
|
declare function OverlayPopupSetting(): OverlayPopupSetting;
|
|
1247
1274
|
type OverlayPopupSetting = {
|
|
@@ -1257,11 +1284,13 @@ type OverlayPopupSetting = {
|
|
|
1257
1284
|
/** @returns {Page} */
|
|
1258
1285
|
declare function Page(): Page;
|
|
1259
1286
|
type Page = {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1287
|
+
current?: number;
|
|
1288
|
+
has_next?: boolean;
|
|
1289
|
+
has_previous?: boolean;
|
|
1290
|
+
item_total?: number;
|
|
1291
|
+
next_id?: string;
|
|
1292
|
+
size?: number;
|
|
1293
|
+
type: string;
|
|
1265
1294
|
};
|
|
1266
1295
|
/** @returns {PaginationSchema} */
|
|
1267
1296
|
declare function PaginationSchema(): PaginationSchema;
|
|
@@ -1497,6 +1526,29 @@ type ThemeConfiguration = {
|
|
|
1497
1526
|
*/
|
|
1498
1527
|
page?: string[];
|
|
1499
1528
|
};
|
|
1529
|
+
/** @returns {ThemeMeta} */
|
|
1530
|
+
declare function ThemeMeta(): ThemeMeta;
|
|
1531
|
+
type ThemeMeta = {
|
|
1532
|
+
/**
|
|
1533
|
+
* - The description of the theme
|
|
1534
|
+
*/
|
|
1535
|
+
description?: string;
|
|
1536
|
+
images?: Images;
|
|
1537
|
+
/**
|
|
1538
|
+
* - An array of industries associated with the theme
|
|
1539
|
+
*/
|
|
1540
|
+
industry?: string[];
|
|
1541
|
+
/**
|
|
1542
|
+
* - The name of the theme
|
|
1543
|
+
*/
|
|
1544
|
+
name?: string;
|
|
1545
|
+
payment?: ThemePayment;
|
|
1546
|
+
release?: Release;
|
|
1547
|
+
/**
|
|
1548
|
+
* - The slug of the theme
|
|
1549
|
+
*/
|
|
1550
|
+
slug?: string;
|
|
1551
|
+
};
|
|
1500
1552
|
/** @returns {ThemePayment} */
|
|
1501
1553
|
declare function ThemePayment(): ThemePayment;
|
|
1502
1554
|
type ThemePayment = {
|
|
@@ -1584,6 +1636,10 @@ type ThemesSchema = {
|
|
|
1584
1636
|
* - Available sections information
|
|
1585
1637
|
*/
|
|
1586
1638
|
available_sections?: SectionItem[];
|
|
1639
|
+
/**
|
|
1640
|
+
* - The company id in which sales channel exists
|
|
1641
|
+
*/
|
|
1642
|
+
company_id?: number;
|
|
1587
1643
|
config?: Config;
|
|
1588
1644
|
/**
|
|
1589
1645
|
* - The creation timestamp of the theme
|
|
@@ -1598,7 +1654,7 @@ type ThemesSchema = {
|
|
|
1598
1654
|
* - The ID of the theme in the marketplace
|
|
1599
1655
|
*/
|
|
1600
1656
|
marketplace_theme_id?: string;
|
|
1601
|
-
meta?:
|
|
1657
|
+
meta?: ThemeMeta;
|
|
1602
1658
|
/**
|
|
1603
1659
|
* - The name of the theme
|
|
1604
1660
|
*/
|
|
@@ -1615,6 +1671,7 @@ type ThemesSchema = {
|
|
|
1615
1671
|
* - The ID of the template theme
|
|
1616
1672
|
*/
|
|
1617
1673
|
template_theme_id?: string;
|
|
1674
|
+
theme_type?: string;
|
|
1618
1675
|
/**
|
|
1619
1676
|
* - The last update timestamp of the theme
|
|
1620
1677
|
*/
|
|
@@ -171,6 +171,19 @@ const Joi = require("joi");
|
|
|
171
171
|
* @property {string} [seller_contact] - Seller contact information
|
|
172
172
|
*/
|
|
173
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @typedef CreateNewTheme
|
|
176
|
+
* @property {SectionItem[]} available_sections - Available sections information
|
|
177
|
+
* @property {string} [current] - The current configuration
|
|
178
|
+
* @property {GlobalSchema} [global_schema]
|
|
179
|
+
* @property {ThemeConfiguration[]} [list] - A list of configurations
|
|
180
|
+
* @property {string} name - The name of the theme
|
|
181
|
+
* @property {Page[]} [pages]
|
|
182
|
+
* @property {Preset} [preset]
|
|
183
|
+
* @property {string} theme_type - Type of the Theme
|
|
184
|
+
* @property {string} version - The version of the theme
|
|
185
|
+
*/
|
|
186
|
+
|
|
174
187
|
/**
|
|
175
188
|
* @typedef CSS
|
|
176
189
|
* @property {string[]} [links]
|
|
@@ -372,17 +385,6 @@ const Joi = require("joi");
|
|
|
372
385
|
* @property {MarketplaceTheme[]} [themes]
|
|
373
386
|
*/
|
|
374
387
|
|
|
375
|
-
/**
|
|
376
|
-
* @typedef Meta
|
|
377
|
-
* @property {string} [description] - The description of the theme
|
|
378
|
-
* @property {Images} [images]
|
|
379
|
-
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
380
|
-
* @property {string} [name] - The name of the theme
|
|
381
|
-
* @property {ThemePayment} [payment]
|
|
382
|
-
* @property {Release} [release]
|
|
383
|
-
* @property {string} [slug] - The slug of the theme
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
388
|
/**
|
|
387
389
|
* @typedef OverlayPopupSetting
|
|
388
390
|
* @property {string} [dialog_backgroung] - The dialog background color
|
|
@@ -391,8 +393,13 @@ const Joi = require("joi");
|
|
|
391
393
|
|
|
392
394
|
/**
|
|
393
395
|
* @typedef Page
|
|
394
|
-
* @property {
|
|
395
|
-
* @property {
|
|
396
|
+
* @property {number} [current]
|
|
397
|
+
* @property {boolean} [has_next]
|
|
398
|
+
* @property {boolean} [has_previous]
|
|
399
|
+
* @property {number} [item_total]
|
|
400
|
+
* @property {string} [next_id]
|
|
401
|
+
* @property {number} [size]
|
|
402
|
+
* @property {string} type
|
|
396
403
|
*/
|
|
397
404
|
|
|
398
405
|
/**
|
|
@@ -533,6 +540,17 @@ const Joi = require("joi");
|
|
|
533
540
|
* @property {string[]} [page] - An array of pages
|
|
534
541
|
*/
|
|
535
542
|
|
|
543
|
+
/**
|
|
544
|
+
* @typedef ThemeMeta
|
|
545
|
+
* @property {string} [description] - The description of the theme
|
|
546
|
+
* @property {Images} [images]
|
|
547
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
548
|
+
* @property {string} [name] - The name of the theme
|
|
549
|
+
* @property {ThemePayment} [payment]
|
|
550
|
+
* @property {Release} [release]
|
|
551
|
+
* @property {string} [slug] - The slug of the theme
|
|
552
|
+
*/
|
|
553
|
+
|
|
536
554
|
/**
|
|
537
555
|
* @typedef ThemePayment
|
|
538
556
|
* @property {number} [amount] - The amount of the theme
|
|
@@ -568,16 +586,18 @@ const Joi = require("joi");
|
|
|
568
586
|
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
569
587
|
* @property {Assets} [assets]
|
|
570
588
|
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
589
|
+
* @property {number} [company_id] - The company id in which sales channel exists
|
|
571
590
|
* @property {Config} [config]
|
|
572
591
|
* @property {string} [created_at] - The creation timestamp of the theme
|
|
573
592
|
* @property {Font} [font]
|
|
574
593
|
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
575
594
|
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
576
|
-
* @property {
|
|
595
|
+
* @property {ThemeMeta} [meta]
|
|
577
596
|
* @property {string} [name] - The name of the theme
|
|
578
597
|
* @property {Object} [styles] - The styles associated with the theme
|
|
579
598
|
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
580
599
|
* @property {string} [template_theme_id] - The ID of the template theme
|
|
600
|
+
* @property {string} [theme_type]
|
|
581
601
|
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
582
602
|
* @property {string} [version] - The version of the theme
|
|
583
603
|
*/
|
|
@@ -851,6 +871,23 @@ class ThemePartnerModel {
|
|
|
851
871
|
});
|
|
852
872
|
}
|
|
853
873
|
|
|
874
|
+
/** @returns {CreateNewTheme} */
|
|
875
|
+
static CreateNewTheme() {
|
|
876
|
+
return Joi.object({
|
|
877
|
+
available_sections: Joi.array()
|
|
878
|
+
.items(ThemePartnerModel.SectionItem())
|
|
879
|
+
.required(),
|
|
880
|
+
current: Joi.string().allow(""),
|
|
881
|
+
global_schema: ThemePartnerModel.GlobalSchema(),
|
|
882
|
+
list: Joi.array().items(ThemePartnerModel.ThemeConfiguration()),
|
|
883
|
+
name: Joi.string().allow("").required(),
|
|
884
|
+
pages: Joi.array().items(ThemePartnerModel.Page()),
|
|
885
|
+
preset: ThemePartnerModel.Preset(),
|
|
886
|
+
theme_type: Joi.string().allow("").required(),
|
|
887
|
+
version: Joi.string().allow("").required(),
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
|
|
854
891
|
/** @returns {CSS} */
|
|
855
892
|
static CSS() {
|
|
856
893
|
return Joi.object({
|
|
@@ -1091,19 +1128,6 @@ class ThemePartnerModel {
|
|
|
1091
1128
|
});
|
|
1092
1129
|
}
|
|
1093
1130
|
|
|
1094
|
-
/** @returns {Meta} */
|
|
1095
|
-
static Meta() {
|
|
1096
|
-
return Joi.object({
|
|
1097
|
-
description: Joi.string().allow(""),
|
|
1098
|
-
images: ThemePartnerModel.Images(),
|
|
1099
|
-
industry: Joi.array().items(Joi.string().allow("")),
|
|
1100
|
-
name: Joi.string().allow(""),
|
|
1101
|
-
payment: ThemePartnerModel.ThemePayment(),
|
|
1102
|
-
release: ThemePartnerModel.Release(),
|
|
1103
|
-
slug: Joi.string().allow(""),
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
1131
|
/** @returns {OverlayPopupSetting} */
|
|
1108
1132
|
static OverlayPopupSetting() {
|
|
1109
1133
|
return Joi.object({
|
|
@@ -1115,8 +1139,13 @@ class ThemePartnerModel {
|
|
|
1115
1139
|
/** @returns {Page} */
|
|
1116
1140
|
static Page() {
|
|
1117
1141
|
return Joi.object({
|
|
1118
|
-
|
|
1119
|
-
|
|
1142
|
+
current: Joi.number(),
|
|
1143
|
+
has_next: Joi.boolean(),
|
|
1144
|
+
has_previous: Joi.boolean(),
|
|
1145
|
+
item_total: Joi.number(),
|
|
1146
|
+
next_id: Joi.string().allow(""),
|
|
1147
|
+
size: Joi.number(),
|
|
1148
|
+
type: Joi.string().allow("").required(),
|
|
1120
1149
|
});
|
|
1121
1150
|
}
|
|
1122
1151
|
|
|
@@ -1298,6 +1327,19 @@ class ThemePartnerModel {
|
|
|
1298
1327
|
});
|
|
1299
1328
|
}
|
|
1300
1329
|
|
|
1330
|
+
/** @returns {ThemeMeta} */
|
|
1331
|
+
static ThemeMeta() {
|
|
1332
|
+
return Joi.object({
|
|
1333
|
+
description: Joi.string().allow(""),
|
|
1334
|
+
images: ThemePartnerModel.Images(),
|
|
1335
|
+
industry: Joi.array().items(Joi.string().allow("")),
|
|
1336
|
+
name: Joi.string().allow(""),
|
|
1337
|
+
payment: ThemePartnerModel.ThemePayment(),
|
|
1338
|
+
release: ThemePartnerModel.Release(),
|
|
1339
|
+
slug: Joi.string().allow(""),
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1301
1343
|
/** @returns {ThemePayment} */
|
|
1302
1344
|
static ThemePayment() {
|
|
1303
1345
|
return Joi.object({
|
|
@@ -1338,16 +1380,18 @@ class ThemePartnerModel {
|
|
|
1338
1380
|
applied: Joi.boolean(),
|
|
1339
1381
|
assets: ThemePartnerModel.Assets(),
|
|
1340
1382
|
available_sections: Joi.array().items(ThemePartnerModel.SectionItem()),
|
|
1383
|
+
company_id: Joi.number(),
|
|
1341
1384
|
config: ThemePartnerModel.Config(),
|
|
1342
1385
|
created_at: Joi.string().allow(""),
|
|
1343
1386
|
font: ThemePartnerModel.Font(),
|
|
1344
1387
|
is_private: Joi.boolean(),
|
|
1345
1388
|
marketplace_theme_id: Joi.string().allow(""),
|
|
1346
|
-
meta: ThemePartnerModel.
|
|
1389
|
+
meta: ThemePartnerModel.ThemeMeta(),
|
|
1347
1390
|
name: Joi.string().allow(""),
|
|
1348
1391
|
styles: Joi.any(),
|
|
1349
1392
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1350
1393
|
template_theme_id: Joi.string().allow(""),
|
|
1394
|
+
theme_type: Joi.string().allow(""),
|
|
1351
1395
|
updated_at: Joi.string().allow(""),
|
|
1352
1396
|
version: Joi.string().allow(""),
|
|
1353
1397
|
});
|
|
@@ -152,6 +152,15 @@ class ThemeValidator {
|
|
|
152
152
|
pageNo: Joi.number(),
|
|
153
153
|
}).required();
|
|
154
154
|
}
|
|
155
|
+
|
|
156
|
+
static createTheme() {
|
|
157
|
+
return Joi.object({
|
|
158
|
+
companyId: Joi.number().required(),
|
|
159
|
+
applicationId: Joi.string().allow("").required(),
|
|
160
|
+
|
|
161
|
+
body: ThemeModel.CreateNewTheme().required(),
|
|
162
|
+
}).required();
|
|
163
|
+
}
|
|
155
164
|
}
|
|
156
165
|
|
|
157
166
|
module.exports = ThemeValidator;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export = Webhook;
|
|
2
|
+
declare class Webhook {
|
|
3
|
+
constructor(config: any);
|
|
4
|
+
config: any;
|
|
5
|
+
/**
|
|
6
|
+
* @param {WebhookPartnerValidator.FetchDeliverySummaryParam} arg - Arg object.
|
|
7
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
9
|
+
* @returns {Promise<WebhookPartnerModel.DeliverySummaryResponse>} - Success response
|
|
10
|
+
* @name fetchDeliverySummary
|
|
11
|
+
* @summary: Webhook delivery summary
|
|
12
|
+
* @description: Webhook delivery summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliverySummary/).
|
|
13
|
+
*/
|
|
14
|
+
fetchDeliverySummary({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliverySummaryParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliverySummaryResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* @param {WebhookPartnerValidator.GetDeliveryDetailInsightsParam} arg - Arg object.
|
|
17
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
19
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryDetailsResponse>} - Success response
|
|
20
|
+
* @name getDeliveryDetailInsights
|
|
21
|
+
* @summary: Get the insights of delivery details of the events that was pushed to subscribers
|
|
22
|
+
* @description: Get the delivery details insights - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getDeliveryDetailInsights/).
|
|
23
|
+
*/
|
|
24
|
+
getDeliveryDetailInsights({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetDeliveryDetailInsightsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryDetailsResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* @param {WebhookPartnerValidator.FetchDeliveryTsParam} arg - Arg object.
|
|
27
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
28
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
29
|
+
* @returns {Promise<WebhookPartnerModel.DeliveryTsResponse>} - Success response
|
|
30
|
+
* @name fetchDeliveryTs
|
|
31
|
+
* @summary: Webhook delivery ts
|
|
32
|
+
* @description: Webhook delivery ts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliveryTs/).
|
|
33
|
+
*/
|
|
34
|
+
fetchDeliveryTs({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliveryTsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryTsResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @param {WebhookPartnerValidator.FetchReportFiltersParam} arg - Arg object.
|
|
37
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
38
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
39
|
+
* @returns {Promise<WebhookPartnerModel.FilterReportResponse[]>} - Success response
|
|
40
|
+
* @name fetchReportFilters
|
|
41
|
+
* @summary: Fetch webhook report filters
|
|
42
|
+
* @description: Fetch webhook report filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchReportFilters/).
|
|
43
|
+
*/
|
|
44
|
+
fetchReportFilters({ extensionId, startDate, endDate, pageNo, pageSize, requestHeaders }?: WebhookPartnerValidator.FetchReportFiltersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.FilterReportResponse[]>;
|
|
45
|
+
/**
|
|
46
|
+
* @param {WebhookPartnerValidator.CancelReportDownloadParam} arg - Arg object.
|
|
47
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
49
|
+
* @returns {Promise<WebhookPartnerModel.CancelDownloadResponse>} - Success response
|
|
50
|
+
* @name cancelReportDownload
|
|
51
|
+
* @summary: Cancel report download job
|
|
52
|
+
* @description: Cancel report download job - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/cancelReportDownload/).
|
|
53
|
+
*/
|
|
54
|
+
cancelReportDownload({ extensionId, filename, requestHeaders }?: WebhookPartnerValidator.CancelReportDownloadParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.CancelDownloadResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* @param {WebhookPartnerValidator.GetHistoricalReportsParam} arg - Arg object.
|
|
57
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
58
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
59
|
+
* @returns {Promise<WebhookPartnerModel.HistoryResponse>} - Success response
|
|
60
|
+
* @name getHistoricalReports
|
|
61
|
+
* @summary: Get report download history.
|
|
62
|
+
* @description: Retrieve history reports for a specific company based on the provided filters.
|
|
63
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getHistoricalReports/).
|
|
64
|
+
*/
|
|
65
|
+
getHistoricalReports({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetHistoricalReportsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.HistoryResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* @param {WebhookPartnerValidator.GetInvalidEventListParam} arg - Arg object.
|
|
68
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
70
|
+
* @returns {Promise<WebhookPartnerModel.InvalidEventsResponse[]>} - Success response
|
|
71
|
+
* @name getInvalidEventList
|
|
72
|
+
* @summary: Get invalid event list
|
|
73
|
+
* @description: Get invalid event list.
|
|
74
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getInvalidEventList/).
|
|
75
|
+
*/
|
|
76
|
+
getInvalidEventList({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetInvalidEventListParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.InvalidEventsResponse[]>;
|
|
77
|
+
/**
|
|
78
|
+
* @param {WebhookPartnerValidator.FetchSubscribersParam} arg - Arg object.
|
|
79
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
80
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
81
|
+
* @returns {Promise<WebhookPartnerModel.SubscriberConfigResponse>} - Success response
|
|
82
|
+
* @name fetchSubscribers
|
|
83
|
+
* @summary: Fetch subscriber by filters
|
|
84
|
+
* @description: Fetch subscriber by filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchSubscribers/).
|
|
85
|
+
*/
|
|
86
|
+
fetchSubscribers({ extensionId, requestHeaders }?: WebhookPartnerValidator.FetchSubscribersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.SubscriberConfigResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* @param {WebhookPartnerValidator.UpdateSubscriberParam} arg - Arg object.
|
|
89
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
91
|
+
* @returns {Promise<WebhookPartnerModel.UpdateSubscriberResponse>} - Success response
|
|
92
|
+
* @name updateSubscriber
|
|
93
|
+
* @summary: Update subscriber status by id.
|
|
94
|
+
* @description: Update subscriber status by id.
|
|
95
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateSubscriber/).
|
|
96
|
+
*/
|
|
97
|
+
updateSubscriber({ extensionId, subscriberId, body, requestHeaders }?: WebhookPartnerValidator.UpdateSubscriberParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.UpdateSubscriberResponse>;
|
|
98
|
+
}
|
|
99
|
+
import WebhookPartnerModel = require("./WebhookPartnerModel");
|