@flexbe/sdk 0.2.14 → 0.2.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, GetPagesParams, PageListResponse, PageFolder, PageFolderListResponse, UpdateFolderParams, CreateFolderParams, UpdatePageParams, BulkUpdatePageItem, BulkUpdateResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse,
|
|
1
|
+
import { Page, GetPagesParams, PageListResponse, PageFolder, PageFolderListResponse, UpdateFolderParams, CreateFolderParams, UpdatePageParams, BulkUpdatePageItem, BulkUpdateResponse, BulkUpdateFolderItem, BulkUpdateFolderResponse, BulkDeleteResponse, PageContent } from '../types/pages';
|
|
2
2
|
import { ApiClient } from './api-client';
|
|
3
3
|
export declare class Pages {
|
|
4
4
|
private readonly api;
|
|
@@ -168,7 +168,7 @@ export declare class Pages {
|
|
|
168
168
|
* @throws {ServerException} When the server encounters an error
|
|
169
169
|
* @throws {TimeoutException} When the request times out
|
|
170
170
|
*/
|
|
171
|
-
bulkDeletePages(ids: number[]): Promise<
|
|
171
|
+
bulkDeletePages(ids: number[]): Promise<BulkDeleteResponse>;
|
|
172
172
|
/**
|
|
173
173
|
* Get page content
|
|
174
174
|
* @param pageId - ID of the page to get content for
|
|
@@ -179,7 +179,7 @@ export declare class Pages {
|
|
|
179
179
|
* @throws {ServerException} When the server encounters an error
|
|
180
180
|
* @throws {TimeoutException} When the request times out
|
|
181
181
|
*/
|
|
182
|
-
getPageContent(pageId: number): Promise<
|
|
182
|
+
getPageContent(pageId: number): Promise<PageContent>;
|
|
183
183
|
/**
|
|
184
184
|
* Update page content
|
|
185
185
|
* @param pageId - ID of the page to update content for
|
|
@@ -192,5 +192,5 @@ export declare class Pages {
|
|
|
192
192
|
* @throws {ServerException} When the server encounters an error
|
|
193
193
|
* @throws {TimeoutException} When the request times out
|
|
194
194
|
*/
|
|
195
|
-
updatePageContent(pageId: number, content:
|
|
195
|
+
updatePageContent(pageId: number, content: Partial<PageContent>): Promise<PageContent>;
|
|
196
196
|
}
|
|
@@ -120,7 +120,7 @@ export interface BulkUpdateFolderResponse {
|
|
|
120
120
|
updated: PageFolder[];
|
|
121
121
|
errors: BulkUpdateFolderError[];
|
|
122
122
|
}
|
|
123
|
-
export interface
|
|
123
|
+
export interface BulkDeletePages {
|
|
124
124
|
pageIds: number[];
|
|
125
125
|
}
|
|
126
126
|
export interface BulkDeleteError {
|
|
@@ -128,7 +128,7 @@ export interface BulkDeleteError {
|
|
|
128
128
|
code: number;
|
|
129
129
|
message: string;
|
|
130
130
|
}
|
|
131
|
-
export interface
|
|
131
|
+
export interface BulkDeleteResponse {
|
|
132
132
|
deleted: number[];
|
|
133
133
|
errors: BulkDeleteError[];
|
|
134
134
|
}
|
|
@@ -278,7 +278,7 @@ export interface PageModal {
|
|
|
278
278
|
transparent: number;
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
export interface
|
|
281
|
+
export interface PageContent {
|
|
282
282
|
blocks: PageBlock[];
|
|
283
283
|
modals: PageModal[];
|
|
284
284
|
elements: PageElement[];
|
|
@@ -289,15 +289,3 @@ export interface PageContentDto {
|
|
|
289
289
|
abtests: PageABTest[];
|
|
290
290
|
responsive: string | boolean;
|
|
291
291
|
}
|
|
292
|
-
export interface UpdatePageContentDto {
|
|
293
|
-
id: number;
|
|
294
|
-
blocks?: PageBlock[];
|
|
295
|
-
modals?: PageModal[];
|
|
296
|
-
elements?: PageElement[];
|
|
297
|
-
widgets?: PageWidget[];
|
|
298
|
-
codes?: string[];
|
|
299
|
-
background?: PageBackground;
|
|
300
|
-
fonts?: PageFont;
|
|
301
|
-
abtests?: PageABTest[];
|
|
302
|
-
responsive?: string | boolean;
|
|
303
|
-
}
|