@gofynd/fdk-client-javascript 1.4.6 → 1.4.8-beta.2
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +10 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +10 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
- package/sdk/application/Content/ContentApplicationModel.js +6 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +72 -9
- package/sdk/application/Order/OrderApplicationModel.js +45 -7
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
- package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
- package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
- package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +36 -3
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
- package/sdk/platform/Cart/CartPlatformModel.js +166 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
- package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
- package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
- package/sdk/platform/Content/ContentPlatformModel.js +8 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformClient.js +82 -5
- package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
- package/sdk/platform/Order/OrderPlatformModel.js +139 -28
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
- package/sdk/platform/PlatformApplicationClient.js +4 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
- package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +24 -22
|
@@ -788,6 +788,88 @@ class Theme {
|
|
|
788
788
|
return response;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
+
/**
|
|
792
|
+
* @param {ThemePlatformApplicationValidator.GetExtensionSectionsParam} arg
|
|
793
|
+
* - Arg object
|
|
794
|
+
*
|
|
795
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
796
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
797
|
+
* @returns {Promise<ThemePlatformModel.GetExtensionSectionRes[]>} - Success response
|
|
798
|
+
* @name getExtensionSections
|
|
799
|
+
* @summary: Get extension sections
|
|
800
|
+
* @description: Retrieve the list of extension sections for a given application in the specified company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getExtensionSections/).
|
|
801
|
+
*/
|
|
802
|
+
async getExtensionSections(
|
|
803
|
+
{ type, companyMode, requestHeaders } = { requestHeaders: {} },
|
|
804
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
805
|
+
) {
|
|
806
|
+
const {
|
|
807
|
+
error,
|
|
808
|
+
} = ThemePlatformApplicationValidator.getExtensionSections().validate(
|
|
809
|
+
{
|
|
810
|
+
type,
|
|
811
|
+
companyMode,
|
|
812
|
+
},
|
|
813
|
+
{ abortEarly: false, allowUnknown: true }
|
|
814
|
+
);
|
|
815
|
+
if (error) {
|
|
816
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// Showing warrnings if extra unknown parameters are found
|
|
820
|
+
const {
|
|
821
|
+
error: warrning,
|
|
822
|
+
} = ThemePlatformApplicationValidator.getExtensionSections().validate(
|
|
823
|
+
{
|
|
824
|
+
type,
|
|
825
|
+
companyMode,
|
|
826
|
+
},
|
|
827
|
+
{ abortEarly: false, allowUnknown: false }
|
|
828
|
+
);
|
|
829
|
+
if (warrning) {
|
|
830
|
+
Logger({
|
|
831
|
+
level: "WARN",
|
|
832
|
+
message: `Parameter Validation warrnings for platform > Theme > getExtensionSections \n ${warrning}`,
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
const query_params = {};
|
|
837
|
+
query_params["type"] = type;
|
|
838
|
+
query_params["company_mode"] = companyMode;
|
|
839
|
+
|
|
840
|
+
const response = await PlatformAPIClient.execute(
|
|
841
|
+
this.config,
|
|
842
|
+
"get",
|
|
843
|
+
`/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/extension-section`,
|
|
844
|
+
query_params,
|
|
845
|
+
undefined,
|
|
846
|
+
requestHeaders,
|
|
847
|
+
{ responseHeaders }
|
|
848
|
+
);
|
|
849
|
+
|
|
850
|
+
let responseData = response;
|
|
851
|
+
if (responseHeaders) {
|
|
852
|
+
responseData = response[0];
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
const { error: res_error } = Joi.array()
|
|
856
|
+
.items(ThemePlatformModel.GetExtensionSectionRes())
|
|
857
|
+
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
858
|
+
|
|
859
|
+
if (res_error) {
|
|
860
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
861
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
862
|
+
} else {
|
|
863
|
+
Logger({
|
|
864
|
+
level: "WARN",
|
|
865
|
+
message: `Response Validation Warnings for platform > Theme > getExtensionSections \n ${res_error}`,
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return response;
|
|
871
|
+
}
|
|
872
|
+
|
|
791
873
|
/**
|
|
792
874
|
* @param {ThemePlatformApplicationValidator.GetFontsParam} arg - Arg object
|
|
793
875
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -32,6 +32,11 @@ export = ThemePlatformApplicationValidator;
|
|
|
32
32
|
/** @typedef GetApplicationThemesParam */
|
|
33
33
|
/** @typedef GetApplicationThemesCountParam */
|
|
34
34
|
/** @typedef GetAppliedThemeParam */
|
|
35
|
+
/**
|
|
36
|
+
* @typedef GetExtensionSectionsParam
|
|
37
|
+
* @property {string} [type] - The type of the theme
|
|
38
|
+
* @property {string} [companyMode] - The mode of the company
|
|
39
|
+
*/
|
|
35
40
|
/** @typedef GetFontsParam */
|
|
36
41
|
/**
|
|
37
42
|
* @typedef GetPageParam
|
|
@@ -100,6 +105,8 @@ declare class ThemePlatformApplicationValidator {
|
|
|
100
105
|
static getApplicationThemesCount(): any;
|
|
101
106
|
/** @returns {GetAppliedThemeParam} */
|
|
102
107
|
static getAppliedTheme(): any;
|
|
108
|
+
/** @returns {GetExtensionSectionsParam} */
|
|
109
|
+
static getExtensionSections(): GetExtensionSectionsParam;
|
|
103
110
|
/** @returns {GetFontsParam} */
|
|
104
111
|
static getFonts(): any;
|
|
105
112
|
/** @returns {GetPageParam} */
|
|
@@ -124,7 +131,7 @@ declare class ThemePlatformApplicationValidator {
|
|
|
124
131
|
static upgradeTheme(): UpgradeThemeParam;
|
|
125
132
|
}
|
|
126
133
|
declare namespace ThemePlatformApplicationValidator {
|
|
127
|
-
export { AddThemeToApplicationParam, ApplyThemeParam, CreatePageParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetFontsParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
|
|
134
|
+
export { AddThemeToApplicationParam, ApplyThemeParam, CreatePageParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
|
|
128
135
|
}
|
|
129
136
|
type AddThemeToApplicationParam = {
|
|
130
137
|
body: ThemePlatformModel.ThemeReq;
|
|
@@ -170,6 +177,16 @@ type GetAllPagesParam = {
|
|
|
170
177
|
*/
|
|
171
178
|
themeId: string;
|
|
172
179
|
};
|
|
180
|
+
type GetExtensionSectionsParam = {
|
|
181
|
+
/**
|
|
182
|
+
* - The type of the theme
|
|
183
|
+
*/
|
|
184
|
+
type?: string;
|
|
185
|
+
/**
|
|
186
|
+
* - The mode of the company
|
|
187
|
+
*/
|
|
188
|
+
companyMode?: string;
|
|
189
|
+
};
|
|
173
190
|
type GetPageParam = {
|
|
174
191
|
/**
|
|
175
192
|
* - ID of the theme to be retrieved
|
|
@@ -45,6 +45,12 @@ const ThemePlatformModel = require("./ThemePlatformModel");
|
|
|
45
45
|
|
|
46
46
|
/** @typedef GetAppliedThemeParam */
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @typedef GetExtensionSectionsParam
|
|
50
|
+
* @property {string} [type] - The type of the theme
|
|
51
|
+
* @property {string} [companyMode] - The mode of the company
|
|
52
|
+
*/
|
|
53
|
+
|
|
48
54
|
/** @typedef GetFontsParam */
|
|
49
55
|
|
|
50
56
|
/**
|
|
@@ -170,6 +176,14 @@ class ThemePlatformApplicationValidator {
|
|
|
170
176
|
return Joi.object({}).required();
|
|
171
177
|
}
|
|
172
178
|
|
|
179
|
+
/** @returns {GetExtensionSectionsParam} */
|
|
180
|
+
static getExtensionSections() {
|
|
181
|
+
return Joi.object({
|
|
182
|
+
type: Joi.string().allow(""),
|
|
183
|
+
companyMode: Joi.string().allow(""),
|
|
184
|
+
}).required();
|
|
185
|
+
}
|
|
186
|
+
|
|
173
187
|
/** @returns {GetFontsParam} */
|
|
174
188
|
static getFonts() {
|
|
175
189
|
return Joi.object({}).required();
|
|
@@ -1,4 +1,35 @@
|
|
|
1
1
|
export = ThemePlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef GetExtensionSectionRes
|
|
4
|
+
* @property {string} [extension_id]
|
|
5
|
+
* @property {string} [bundle_name]
|
|
6
|
+
* @property {string} [organization_id]
|
|
7
|
+
* @property {ExtensionSection[]} [sections]
|
|
8
|
+
* @property {AssetsExtension} [assets]
|
|
9
|
+
* @property {string} [status]
|
|
10
|
+
* @property {string} [type]
|
|
11
|
+
* @property {string} [created_at]
|
|
12
|
+
* @property {string} [updated_at]
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @typedef ExtensionSection
|
|
16
|
+
* @property {string} [label]
|
|
17
|
+
* @property {string} [name]
|
|
18
|
+
* @property {PropExtension[]} [props]
|
|
19
|
+
* @property {Object[]} [blocks]
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* @typedef PropExtension
|
|
23
|
+
* @property {string} [id]
|
|
24
|
+
* @property {string} [label]
|
|
25
|
+
* @property {string} [type]
|
|
26
|
+
* @property {string} [info]
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef AssetsExtension
|
|
30
|
+
* @property {string} [js]
|
|
31
|
+
* @property {string} [css]
|
|
32
|
+
*/
|
|
2
33
|
/**
|
|
3
34
|
* @typedef ThemeReq
|
|
4
35
|
* @property {string} [marketplace_theme_id] - The ID of the marketplace theme
|
|
@@ -557,8 +588,43 @@ export = ThemePlatformModel;
|
|
|
557
588
|
declare class ThemePlatformModel {
|
|
558
589
|
}
|
|
559
590
|
declare namespace ThemePlatformModel {
|
|
560
|
-
export { ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Prop, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
|
|
591
|
+
export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Prop, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
|
|
561
592
|
}
|
|
593
|
+
/** @returns {GetExtensionSectionRes} */
|
|
594
|
+
declare function GetExtensionSectionRes(): GetExtensionSectionRes;
|
|
595
|
+
type GetExtensionSectionRes = {
|
|
596
|
+
extension_id?: string;
|
|
597
|
+
bundle_name?: string;
|
|
598
|
+
organization_id?: string;
|
|
599
|
+
sections?: ExtensionSection[];
|
|
600
|
+
assets?: AssetsExtension;
|
|
601
|
+
status?: string;
|
|
602
|
+
type?: string;
|
|
603
|
+
created_at?: string;
|
|
604
|
+
updated_at?: string;
|
|
605
|
+
};
|
|
606
|
+
/** @returns {ExtensionSection} */
|
|
607
|
+
declare function ExtensionSection(): ExtensionSection;
|
|
608
|
+
type ExtensionSection = {
|
|
609
|
+
label?: string;
|
|
610
|
+
name?: string;
|
|
611
|
+
props?: PropExtension[];
|
|
612
|
+
blocks?: any[];
|
|
613
|
+
};
|
|
614
|
+
/** @returns {PropExtension} */
|
|
615
|
+
declare function PropExtension(): PropExtension;
|
|
616
|
+
type PropExtension = {
|
|
617
|
+
id?: string;
|
|
618
|
+
label?: string;
|
|
619
|
+
type?: string;
|
|
620
|
+
info?: string;
|
|
621
|
+
};
|
|
622
|
+
/** @returns {AssetsExtension} */
|
|
623
|
+
declare function AssetsExtension(): AssetsExtension;
|
|
624
|
+
type AssetsExtension = {
|
|
625
|
+
js?: string;
|
|
626
|
+
css?: string;
|
|
627
|
+
};
|
|
562
628
|
/** @returns {ThemeReq} */
|
|
563
629
|
declare function ThemeReq(): ThemeReq;
|
|
564
630
|
type ThemeReq = {
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef GetExtensionSectionRes
|
|
5
|
+
* @property {string} [extension_id]
|
|
6
|
+
* @property {string} [bundle_name]
|
|
7
|
+
* @property {string} [organization_id]
|
|
8
|
+
* @property {ExtensionSection[]} [sections]
|
|
9
|
+
* @property {AssetsExtension} [assets]
|
|
10
|
+
* @property {string} [status]
|
|
11
|
+
* @property {string} [type]
|
|
12
|
+
* @property {string} [created_at]
|
|
13
|
+
* @property {string} [updated_at]
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef ExtensionSection
|
|
18
|
+
* @property {string} [label]
|
|
19
|
+
* @property {string} [name]
|
|
20
|
+
* @property {PropExtension[]} [props]
|
|
21
|
+
* @property {Object[]} [blocks]
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef PropExtension
|
|
26
|
+
* @property {string} [id]
|
|
27
|
+
* @property {string} [label]
|
|
28
|
+
* @property {string} [type]
|
|
29
|
+
* @property {string} [info]
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @typedef AssetsExtension
|
|
34
|
+
* @property {string} [js]
|
|
35
|
+
* @property {string} [css]
|
|
36
|
+
*/
|
|
37
|
+
|
|
3
38
|
/**
|
|
4
39
|
* @typedef ThemeReq
|
|
5
40
|
* @property {string} [marketplace_theme_id] - The ID of the marketplace theme
|
|
@@ -633,6 +668,49 @@ const Joi = require("joi");
|
|
|
633
668
|
*/
|
|
634
669
|
|
|
635
670
|
class ThemePlatformModel {
|
|
671
|
+
/** @returns {GetExtensionSectionRes} */
|
|
672
|
+
static GetExtensionSectionRes() {
|
|
673
|
+
return Joi.object({
|
|
674
|
+
extension_id: Joi.string().allow(""),
|
|
675
|
+
bundle_name: Joi.string().allow(""),
|
|
676
|
+
organization_id: Joi.string().allow(""),
|
|
677
|
+
sections: Joi.array().items(ThemePlatformModel.ExtensionSection()),
|
|
678
|
+
assets: ThemePlatformModel.AssetsExtension(),
|
|
679
|
+
status: Joi.string().allow(""),
|
|
680
|
+
type: Joi.string().allow(""),
|
|
681
|
+
created_at: Joi.string().allow(""),
|
|
682
|
+
updated_at: Joi.string().allow(""),
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/** @returns {ExtensionSection} */
|
|
687
|
+
static ExtensionSection() {
|
|
688
|
+
return Joi.object({
|
|
689
|
+
label: Joi.string().allow(""),
|
|
690
|
+
name: Joi.string().allow(""),
|
|
691
|
+
props: Joi.array().items(ThemePlatformModel.PropExtension()),
|
|
692
|
+
blocks: Joi.array().items(Joi.any()),
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/** @returns {PropExtension} */
|
|
697
|
+
static PropExtension() {
|
|
698
|
+
return Joi.object({
|
|
699
|
+
id: Joi.string().allow(""),
|
|
700
|
+
label: Joi.string().allow(""),
|
|
701
|
+
type: Joi.string().allow(""),
|
|
702
|
+
info: Joi.string().allow(""),
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/** @returns {AssetsExtension} */
|
|
707
|
+
static AssetsExtension() {
|
|
708
|
+
return Joi.object({
|
|
709
|
+
js: Joi.string().allow(""),
|
|
710
|
+
css: Joi.string().allow(""),
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
636
714
|
/** @returns {ThemeReq} */
|
|
637
715
|
static ThemeReq() {
|
|
638
716
|
return Joi.object({
|
|
@@ -43,16 +43,6 @@ declare class Webhook {
|
|
|
43
43
|
* @description: Retrieve reports on the delivery status of events. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getDeliveryReports/).
|
|
44
44
|
*/
|
|
45
45
|
getDeliveryReports({ body, requestHeaders }?: WebhookPlatformValidator.GetDeliveryReportsParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.EventProcessReports>;
|
|
46
|
-
/**
|
|
47
|
-
* @param {WebhookPlatformValidator.GetEventCountsParam} arg - Arg object
|
|
48
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
49
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
50
|
-
* @returns {Promise<WebhookPlatformModel.RetryCountResponse>} - Success response
|
|
51
|
-
* @name getEventCounts
|
|
52
|
-
* @summary: Get event counts
|
|
53
|
-
* @description: Retrieve the counts of events based on their status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getEventCounts/).
|
|
54
|
-
*/
|
|
55
|
-
getEventCounts({ body, requestHeaders }?: WebhookPlatformValidator.GetEventCountsParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.RetryCountResponse>;
|
|
56
46
|
/**
|
|
57
47
|
* @param {WebhookPlatformValidator.GetHistoricalReportsParam} arg - Arg object
|
|
58
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -63,16 +53,6 @@ declare class Webhook {
|
|
|
63
53
|
* @description: Retrieve historical reports of webhook events. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getHistoricalReports/).
|
|
64
54
|
*/
|
|
65
55
|
getHistoricalReports({ body, requestHeaders }?: WebhookPlatformValidator.GetHistoricalReportsParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.HistoryResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* @param {WebhookPlatformValidator.GetManualRetryStatusParam} arg - Arg object
|
|
68
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
70
|
-
* @returns {Promise<WebhookPlatformModel.RetryStatusResponse>} - Success response
|
|
71
|
-
* @name getManualRetryStatus
|
|
72
|
-
* @summary: Get manual retry status
|
|
73
|
-
* @description: Check the status of a manual retry operation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getManualRetryStatus/).
|
|
74
|
-
*/
|
|
75
|
-
getManualRetryStatus({ requestHeaders }?: any, { responseHeaders }?: object): Promise<WebhookPlatformModel.RetryStatusResponse>;
|
|
76
56
|
/**
|
|
77
57
|
* @param {WebhookPlatformValidator.GetReportFiltersParam} arg - Arg object
|
|
78
58
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -113,26 +93,6 @@ declare class Webhook {
|
|
|
113
93
|
* @description: Retrieve subscribers associated with a specific extension. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByExtensionId/).
|
|
114
94
|
*/
|
|
115
95
|
getSubscribersByExtensionId({ extensionId, pageNo, pageSize, requestHeaders }?: WebhookPlatformValidator.GetSubscribersByExtensionIdParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigList>;
|
|
116
|
-
/**
|
|
117
|
-
* @param {WebhookPlatformValidator.ManualRetryCancelParam} arg - Arg object
|
|
118
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
119
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
120
|
-
* @returns {Promise<string>} - Success response
|
|
121
|
-
* @name manualRetryCancel
|
|
122
|
-
* @summary: Manual retry cancellation
|
|
123
|
-
* @description: Cancel a manual retry operation for a failed event. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/manualRetryCancel/).
|
|
124
|
-
*/
|
|
125
|
-
manualRetryCancel({ requestHeaders }?: any, { responseHeaders }?: object): Promise<string>;
|
|
126
|
-
/**
|
|
127
|
-
* @param {WebhookPlatformValidator.ManualRetryOfFailedEventParam} arg - Arg object
|
|
128
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
129
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
130
|
-
* @returns {Promise<WebhookPlatformModel.RetrySuccessResponse>} - Success response
|
|
131
|
-
* @name manualRetryOfFailedEvent
|
|
132
|
-
* @summary: Manual retry of failed event
|
|
133
|
-
* @description: Trigger a manual retry for an event that failed to deliver. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/manualRetryOfFailedEvent/).
|
|
134
|
-
*/
|
|
135
|
-
manualRetryOfFailedEvent({ body, requestHeaders }?: WebhookPlatformValidator.ManualRetryOfFailedEventParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.RetrySuccessResponse>;
|
|
136
96
|
/**
|
|
137
97
|
* @param {WebhookPlatformValidator.PingWebhookParam} arg - Arg object
|
|
138
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -154,6 +114,18 @@ declare class Webhook {
|
|
|
154
114
|
* @description: Add a subscriber to receive events of a specific type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/).
|
|
155
115
|
*/
|
|
156
116
|
registerSubscriberToEvent({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* @param {WebhookPlatformValidator.RegisterSubscriberToEventV2Param} arg - Arg object
|
|
119
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
120
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
121
|
+
* @returns {Promise<WebhookPlatformModel.SubscriberConfigResponse>} -
|
|
122
|
+
* Success response
|
|
123
|
+
* @name registerSubscriberToEventV2
|
|
124
|
+
* @summary: Register Subscriber.
|
|
125
|
+
* @description: Register Subscriber.
|
|
126
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEventV2/).
|
|
127
|
+
*/
|
|
128
|
+
registerSubscriberToEventV2({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventV2Param, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResponse>;
|
|
157
129
|
/**
|
|
158
130
|
* @param {WebhookPlatformValidator.UpdateSubscriberConfigParam} arg - Arg object
|
|
159
131
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -165,6 +137,18 @@ declare class Webhook {
|
|
|
165
137
|
* @description: Modify and update subscriber configuration settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberConfig/).
|
|
166
138
|
*/
|
|
167
139
|
updateSubscriberConfig({ body, requestHeaders }?: WebhookPlatformValidator.UpdateSubscriberConfigParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* @param {WebhookPlatformValidator.UpdateSubscriberV2Param} arg - Arg object
|
|
142
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
143
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
144
|
+
* @returns {Promise<WebhookPlatformModel.SubscriberConfigResponse>} -
|
|
145
|
+
* Success response
|
|
146
|
+
* @name updateSubscriberV2
|
|
147
|
+
* @summary: Update Subscriber.
|
|
148
|
+
* @description: Update Subscriber.
|
|
149
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberV2/).
|
|
150
|
+
*/
|
|
151
|
+
updateSubscriberV2({ body, requestHeaders }?: WebhookPlatformValidator.UpdateSubscriberV2Param, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResponse>;
|
|
168
152
|
}
|
|
169
153
|
import WebhookPlatformValidator = require("./WebhookPlatformValidator");
|
|
170
154
|
import WebhookPlatformModel = require("./WebhookPlatformModel");
|