@webiny/api-page-builder-import-export 0.0.0-unstable.990c3ab1b6 → 0.0.0-unstable.cc58a6566b
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/client.d.ts +2 -2
- package/client.js.map +1 -1
- package/export/combine/blocksHandler.d.ts +6 -0
- package/export/combine/blocksHandler.js +99 -0
- package/export/combine/blocksHandler.js.map +1 -0
- package/{exportPages → export}/combine/index.d.ts +3 -2
- package/export/combine/index.js +35 -0
- package/export/combine/index.js.map +1 -0
- package/export/combine/pagesHandler.d.ts +6 -0
- package/export/combine/pagesHandler.js +99 -0
- package/export/combine/pagesHandler.js.map +1 -0
- package/export/combine/templatesHandler.d.ts +6 -0
- package/export/combine/templatesHandler.js +99 -0
- package/export/combine/templatesHandler.js.map +1 -0
- package/export/process/blocksHandler.d.ts +6 -0
- package/export/process/blocksHandler.js +162 -0
- package/export/process/blocksHandler.js.map +1 -0
- package/{exportPages → export}/process/index.d.ts +4 -6
- package/export/process/index.js +32 -0
- package/export/process/index.js.map +1 -0
- package/export/process/pagesHandler.d.ts +6 -0
- package/export/process/pagesHandler.js +189 -0
- package/export/process/pagesHandler.js.map +1 -0
- package/export/process/templatesHandler.d.ts +6 -0
- package/export/process/templatesHandler.js +166 -0
- package/export/process/templatesHandler.js.map +1 -0
- package/{exportPages → export}/s3Stream.d.ts +0 -0
- package/{exportPages → export}/s3Stream.js +0 -0
- package/{exportPages → export}/s3Stream.js.map +0 -0
- package/export/utils.d.ts +22 -0
- package/export/utils.js +160 -0
- package/export/utils.js.map +1 -0
- package/{exportPages → export}/zipper.d.ts +6 -5
- package/{exportPages → export}/zipper.js +8 -7
- package/export/zipper.js.map +1 -0
- package/graphql/crud/blocks.crud.d.ts +4 -0
- package/graphql/crud/blocks.crud.js +137 -0
- package/graphql/crud/blocks.crud.js.map +1 -0
- package/graphql/crud/importExportTasks.crud.d.ts +5 -0
- package/graphql/crud/{pageImportExportTasks.crud.js → importExportTasks.crud.js} +48 -48
- package/graphql/crud/importExportTasks.crud.js.map +1 -0
- package/graphql/crud/pages.crud.d.ts +2 -2
- package/graphql/crud/pages.crud.js +18 -14
- package/graphql/crud/pages.crud.js.map +1 -1
- package/graphql/crud/templates.crud.d.ts +4 -0
- package/graphql/crud/templates.crud.js +124 -0
- package/graphql/crud/templates.crud.js.map +1 -0
- package/graphql/crud.d.ts +2 -2
- package/graphql/crud.js +4 -2
- package/graphql/crud.js.map +1 -1
- package/graphql/graphql/blocks.gql.d.ts +4 -0
- package/graphql/graphql/blocks.gql.js +52 -0
- package/graphql/graphql/blocks.gql.js.map +1 -0
- package/graphql/graphql/importExportTasks.gql.d.ts +4 -0
- package/graphql/graphql/{pageImportExportTasks.gql.js → importExportTasks.gql.js} +17 -17
- package/graphql/graphql/importExportTasks.gql.js.map +1 -0
- package/graphql/graphql/pages.gql.d.ts +2 -2
- package/graphql/graphql/pages.gql.js +3 -9
- package/graphql/graphql/pages.gql.js.map +1 -1
- package/graphql/graphql/templates.gql.d.ts +4 -0
- package/graphql/graphql/templates.gql.js +52 -0
- package/graphql/graphql/templates.gql.js.map +1 -0
- package/graphql/graphql/utils/resolve.d.ts +1 -1
- package/graphql/graphql.js +4 -2
- package/graphql/graphql.js.map +1 -1
- package/graphql/index.d.ts +2 -2
- package/graphql/index.js.map +1 -1
- package/graphql/types.d.ts +60 -23
- package/graphql/types.js.map +1 -1
- package/import/create/blocksHandler.d.ts +3 -0
- package/import/create/blocksHandler.js +100 -0
- package/import/create/blocksHandler.js.map +1 -0
- package/{importPages → import}/create/index.d.ts +7 -5
- package/import/create/index.js +35 -0
- package/import/create/index.js.map +1 -0
- package/import/create/pagesHandler.d.ts +3 -0
- package/import/create/pagesHandler.js +102 -0
- package/import/create/pagesHandler.js.map +1 -0
- package/import/create/templatesHandler.d.ts +3 -0
- package/import/create/templatesHandler.js +98 -0
- package/import/create/templatesHandler.js.map +1 -0
- package/import/process/blocksHandler.d.ts +3 -0
- package/import/process/blocksHandler.js +169 -0
- package/import/process/blocksHandler.js.map +1 -0
- package/{importPages → import}/process/index.d.ts +5 -3
- package/import/process/index.js +32 -0
- package/import/process/index.js.map +1 -0
- package/import/process/pagesHandler.d.ts +3 -0
- package/import/process/pagesHandler.js +177 -0
- package/import/process/pagesHandler.js.map +1 -0
- package/import/process/templatesHandler.d.ts +3 -0
- package/import/process/templatesHandler.js +169 -0
- package/import/process/templatesHandler.js.map +1 -0
- package/import/utils.d.ts +56 -0
- package/{importPages → import}/utils.js +154 -35
- package/import/utils.js.map +1 -0
- package/package.json +24 -24
- package/types.d.ts +62 -65
- package/types.js +17 -17
- package/types.js.map +1 -1
- package/exportPages/combine/index.js +0 -106
- package/exportPages/combine/index.js.map +0 -1
- package/exportPages/process/index.js +0 -192
- package/exportPages/process/index.js.map +0 -1
- package/exportPages/utils.d.ts +0 -13
- package/exportPages/utils.js +0 -100
- package/exportPages/utils.js.map +0 -1
- package/exportPages/zipper.js.map +0 -1
- package/graphql/crud/pageImportExportTasks.crud.d.ts +0 -5
- package/graphql/crud/pageImportExportTasks.crud.js.map +0 -1
- package/graphql/graphql/pageImportExportTasks.gql.d.ts +0 -4
- package/graphql/graphql/pageImportExportTasks.gql.js.map +0 -1
- package/importPages/create/index.js +0 -107
- package/importPages/create/index.js.map +0 -1
- package/importPages/process/index.js +0 -180
- package/importPages/process/index.js.map +0 -1
- package/importPages/utils.d.ts +0 -50
- package/importPages/utils.js.map +0 -1
package/types.d.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
export * from "./graphql/types";
|
2
|
-
export declare enum
|
2
|
+
export declare enum ExportRevisionType {
|
3
3
|
PUBLISHED = "published",
|
4
4
|
LATEST = "latest"
|
5
5
|
}
|
6
|
-
export declare enum
|
6
|
+
export declare enum ImportExportTaskStatus {
|
7
7
|
PENDING = "pending",
|
8
8
|
PROCESSING = "processing",
|
9
9
|
COMPLETED = "completed",
|
10
10
|
FAILED = "failed"
|
11
11
|
}
|
12
|
-
export interface
|
13
|
-
[
|
14
|
-
[
|
15
|
-
[
|
16
|
-
[
|
12
|
+
export interface ImportExportTaskStats {
|
13
|
+
[ImportExportTaskStatus.PENDING]: number;
|
14
|
+
[ImportExportTaskStatus.PROCESSING]: number;
|
15
|
+
[ImportExportTaskStatus.COMPLETED]: number;
|
16
|
+
[ImportExportTaskStatus.FAILED]: number;
|
17
17
|
total: number;
|
18
18
|
}
|
19
19
|
interface CreatedBy {
|
@@ -21,12 +21,12 @@ interface CreatedBy {
|
|
21
21
|
type: string;
|
22
22
|
displayName: string | null;
|
23
23
|
}
|
24
|
-
export interface
|
24
|
+
export interface ImportExportTask {
|
25
25
|
id: string;
|
26
26
|
parent: string;
|
27
|
-
status:
|
27
|
+
status: ImportExportTaskStatus;
|
28
28
|
data: Record<string, any>;
|
29
|
-
stats:
|
29
|
+
stats: ImportExportTaskStats;
|
30
30
|
error: Record<string, any>;
|
31
31
|
input: Record<string, any>;
|
32
32
|
createdOn: string;
|
@@ -45,9 +45,9 @@ export interface MetaResponse {
|
|
45
45
|
}
|
46
46
|
/**
|
47
47
|
* @category StorageOperations
|
48
|
-
* @category
|
48
|
+
* @category ImportExportTaskStorageOperations
|
49
49
|
*/
|
50
|
-
export interface
|
50
|
+
export interface ImportExportTaskStorageOperationsGetParams {
|
51
51
|
where: {
|
52
52
|
id: string;
|
53
53
|
tenant: string;
|
@@ -56,9 +56,9 @@ export interface PageImportExportTaskStorageOperationsGetParams {
|
|
56
56
|
}
|
57
57
|
/**
|
58
58
|
* @category StorageOperations
|
59
|
-
* @category
|
59
|
+
* @category ImportExportTaskStorageOperations
|
60
60
|
*/
|
61
|
-
export interface
|
61
|
+
export interface ImportExportTaskStorageOperationsListParams {
|
62
62
|
where: {
|
63
63
|
tenant: string;
|
64
64
|
locale: string;
|
@@ -69,41 +69,38 @@ export interface PageImportExportTaskStorageOperationsListParams {
|
|
69
69
|
}
|
70
70
|
/**
|
71
71
|
* @category StorageOperations
|
72
|
-
* @category
|
72
|
+
* @category ImportExportTaskStorageOperations
|
73
73
|
*/
|
74
|
-
export declare type
|
75
|
-
PageImportExportTask[],
|
76
|
-
MetaResponse
|
77
|
-
];
|
74
|
+
export declare type ImportExportTaskStorageOperationsListResponse = [ImportExportTask[], MetaResponse];
|
78
75
|
/**
|
79
76
|
* @category StorageOperations
|
80
|
-
* @category
|
77
|
+
* @category ImportExportTaskStorageOperations
|
81
78
|
*/
|
82
|
-
export interface
|
79
|
+
export interface ImportExportTaskStorageOperationsCreateParams {
|
83
80
|
input: Record<string, any>;
|
84
|
-
task:
|
81
|
+
task: ImportExportTask;
|
85
82
|
}
|
86
83
|
/**
|
87
84
|
* @category StorageOperations
|
88
|
-
* @category
|
85
|
+
* @category ImportExportTaskStorageOperations
|
89
86
|
*/
|
90
|
-
export interface
|
87
|
+
export interface ImportExportTaskStorageOperationsUpdateParams {
|
91
88
|
input: Record<string, any>;
|
92
|
-
original:
|
93
|
-
task:
|
89
|
+
original: ImportExportTask;
|
90
|
+
task: ImportExportTask;
|
94
91
|
}
|
95
92
|
/**
|
96
93
|
* @category StorageOperations
|
97
|
-
* @category
|
94
|
+
* @category ImportExportTaskStorageOperations
|
98
95
|
*/
|
99
|
-
export interface
|
100
|
-
task:
|
96
|
+
export interface ImportExportTaskStorageOperationsDeleteParams {
|
97
|
+
task: ImportExportTask;
|
101
98
|
}
|
102
99
|
/**
|
103
100
|
* @category StorageOperations
|
104
|
-
* @category
|
101
|
+
* @category ImportExportTaskStorageOperations
|
105
102
|
*/
|
106
|
-
export interface
|
103
|
+
export interface ImportExportTaskStorageOperationsGetSubTaskParams {
|
107
104
|
where: {
|
108
105
|
id: string;
|
109
106
|
parent: string;
|
@@ -113,14 +110,14 @@ export interface PageImportExportTaskStorageOperationsGetSubTaskParams {
|
|
113
110
|
}
|
114
111
|
/**
|
115
112
|
* @category StorageOperations
|
116
|
-
* @category
|
113
|
+
* @category ImportExportTaskStorageOperations
|
117
114
|
*/
|
118
|
-
export interface
|
115
|
+
export interface ImportExportTaskStorageOperationsListSubTaskParams {
|
119
116
|
where: {
|
120
117
|
tenant: string;
|
121
118
|
locale: string;
|
122
119
|
parent: string;
|
123
|
-
status:
|
120
|
+
status: ImportExportTaskStatus;
|
124
121
|
createdBy?: string;
|
125
122
|
};
|
126
123
|
sort?: string[];
|
@@ -129,65 +126,65 @@ export interface PageImportExportTaskStorageOperationsListSubTaskParams {
|
|
129
126
|
}
|
130
127
|
/**
|
131
128
|
* @category StorageOperations
|
132
|
-
* @category
|
129
|
+
* @category ImportExportTaskStorageOperations
|
133
130
|
*/
|
134
|
-
export declare type
|
135
|
-
|
131
|
+
export declare type ImportExportTaskStorageOperationsListSubTaskResponse = [
|
132
|
+
ImportExportTask[],
|
136
133
|
MetaResponse
|
137
134
|
];
|
138
135
|
/**
|
139
136
|
* @category StorageOperations
|
140
|
-
* @category
|
137
|
+
* @category ImportExportTaskStorageOperations
|
141
138
|
*/
|
142
|
-
export interface
|
139
|
+
export interface ImportExportTaskStorageOperationsCreateSubTaskParams {
|
143
140
|
input: Record<string, any>;
|
144
|
-
subTask:
|
141
|
+
subTask: ImportExportTask;
|
145
142
|
}
|
146
143
|
/**
|
147
144
|
* @category StorageOperations
|
148
|
-
* @category
|
145
|
+
* @category ImportExportTaskStorageOperations
|
149
146
|
*/
|
150
|
-
export interface
|
147
|
+
export interface ImportExportTaskStorageOperationsUpdateSubTaskParams {
|
151
148
|
input: Record<string, any>;
|
152
|
-
original:
|
153
|
-
subTask:
|
149
|
+
original: ImportExportTask;
|
150
|
+
subTask: ImportExportTask;
|
154
151
|
}
|
155
152
|
/**
|
156
153
|
* @category StorageOperations
|
157
|
-
* @category
|
154
|
+
* @category ImportExportTaskStorageOperations
|
158
155
|
*/
|
159
|
-
export interface
|
156
|
+
export interface ImportExportTaskStorageOperationsUpdateTaskStatsParams {
|
160
157
|
input: {
|
161
|
-
prevStatus:
|
162
|
-
nextStatus:
|
158
|
+
prevStatus: ImportExportTaskStatus;
|
159
|
+
nextStatus: ImportExportTaskStatus;
|
163
160
|
};
|
164
|
-
original:
|
161
|
+
original: ImportExportTask;
|
165
162
|
}
|
166
163
|
/**
|
167
164
|
* @category StorageOperations
|
168
|
-
* @category
|
165
|
+
* @category ImportExportTaskStorageOperations
|
169
166
|
*/
|
170
|
-
export interface
|
167
|
+
export interface ImportExportTaskStorageOperations {
|
171
168
|
/**
|
172
|
-
* Get a single
|
169
|
+
* Get a single import export task item by given params.
|
173
170
|
*/
|
174
|
-
getTask(params:
|
171
|
+
getTask(params: ImportExportTaskStorageOperationsGetParams): Promise<ImportExportTask | null>;
|
175
172
|
/**
|
176
|
-
* Get all
|
173
|
+
* Get all import export tasks by given params.
|
177
174
|
*/
|
178
|
-
listTasks(params:
|
179
|
-
createTask(params:
|
180
|
-
updateTask(params:
|
181
|
-
deleteTask(params:
|
182
|
-
updateTaskStats(params:
|
175
|
+
listTasks(params: ImportExportTaskStorageOperationsListParams): Promise<ImportExportTaskStorageOperationsListResponse>;
|
176
|
+
createTask(params: ImportExportTaskStorageOperationsCreateParams): Promise<ImportExportTask>;
|
177
|
+
updateTask(params: ImportExportTaskStorageOperationsUpdateParams): Promise<ImportExportTask>;
|
178
|
+
deleteTask(params: ImportExportTaskStorageOperationsDeleteParams): Promise<ImportExportTask>;
|
179
|
+
updateTaskStats(params: ImportExportTaskStorageOperationsUpdateTaskStatsParams): Promise<ImportExportTask>;
|
183
180
|
/**
|
184
|
-
* Get a single
|
181
|
+
* Get a single import export sub-task item by given params.
|
185
182
|
*/
|
186
|
-
getSubTask(params:
|
183
|
+
getSubTask(params: ImportExportTaskStorageOperationsGetSubTaskParams): Promise<ImportExportTask | null>;
|
187
184
|
/**
|
188
|
-
* Get all
|
185
|
+
* Get all import export sub-tasks by given params.
|
189
186
|
*/
|
190
|
-
listSubTasks(params:
|
191
|
-
createSubTask(params:
|
192
|
-
updateSubTask(params:
|
187
|
+
listSubTasks(params: ImportExportTaskStorageOperationsListSubTaskParams): Promise<ImportExportTaskStorageOperationsListSubTaskResponse>;
|
188
|
+
createSubTask(params: ImportExportTaskStorageOperationsCreateSubTaskParams): Promise<ImportExportTask>;
|
189
|
+
updateSubTask(params: ImportExportTaskStorageOperationsUpdateSubTaskParams): Promise<ImportExportTask>;
|
193
190
|
}
|
package/types.js
CHANGED
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
var _exportNames = {
|
7
|
-
|
8
|
-
|
7
|
+
ExportRevisionType: true,
|
8
|
+
ImportExportTaskStatus: true
|
9
9
|
};
|
10
|
-
exports.
|
10
|
+
exports.ImportExportTaskStatus = exports.ExportRevisionType = void 0;
|
11
11
|
var _types = require("./graphql/types");
|
12
12
|
Object.keys(_types).forEach(function (key) {
|
13
13
|
if (key === "default" || key === "__esModule") return;
|
@@ -21,17 +21,17 @@ Object.keys(_types).forEach(function (key) {
|
|
21
21
|
});
|
22
22
|
});
|
23
23
|
// Entities.
|
24
|
-
let
|
25
|
-
exports.
|
26
|
-
(function (
|
27
|
-
|
28
|
-
|
29
|
-
})(
|
30
|
-
let
|
31
|
-
exports.
|
32
|
-
(function (
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
})(
|
24
|
+
let ExportRevisionType;
|
25
|
+
exports.ExportRevisionType = ExportRevisionType;
|
26
|
+
(function (ExportRevisionType) {
|
27
|
+
ExportRevisionType["PUBLISHED"] = "published";
|
28
|
+
ExportRevisionType["LATEST"] = "latest";
|
29
|
+
})(ExportRevisionType || (exports.ExportRevisionType = ExportRevisionType = {}));
|
30
|
+
let ImportExportTaskStatus;
|
31
|
+
exports.ImportExportTaskStatus = ImportExportTaskStatus;
|
32
|
+
(function (ImportExportTaskStatus) {
|
33
|
+
ImportExportTaskStatus["PENDING"] = "pending";
|
34
|
+
ImportExportTaskStatus["PROCESSING"] = "processing";
|
35
|
+
ImportExportTaskStatus["COMPLETED"] = "completed";
|
36
|
+
ImportExportTaskStatus["FAILED"] = "failed";
|
37
|
+
})(ImportExportTaskStatus || (exports.ImportExportTaskStatus = ImportExportTaskStatus = {}));
|
package/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["ExportRevisionType","ImportExportTaskStatus"],"sources":["types.ts"],"sourcesContent":["export * from \"./graphql/types\";\n\n// Entities.\nexport enum ExportRevisionType {\n PUBLISHED = \"published\",\n LATEST = \"latest\"\n}\n\nexport enum ImportExportTaskStatus {\n PENDING = \"pending\",\n PROCESSING = \"processing\",\n COMPLETED = \"completed\",\n FAILED = \"failed\"\n}\n\nexport interface ImportExportTaskStats {\n [ImportExportTaskStatus.PENDING]: number;\n [ImportExportTaskStatus.PROCESSING]: number;\n [ImportExportTaskStatus.COMPLETED]: number;\n [ImportExportTaskStatus.FAILED]: number;\n total: number;\n}\n\ninterface CreatedBy {\n id: string;\n type: string;\n displayName: string | null;\n}\n\nexport interface ImportExportTask {\n id: string;\n parent: string;\n status: ImportExportTaskStatus;\n data: Record<string, any>;\n stats: ImportExportTaskStats;\n error: Record<string, any>;\n input: Record<string, any>;\n createdOn: string;\n createdBy: CreatedBy;\n tenant: string;\n locale: string;\n}\n\nexport interface File {\n id: string;\n src: string;\n}\n\nexport interface MetaResponse {\n cursor: string | null;\n totalCount: number;\n hasMoreItems: boolean;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsGetParams {\n where: {\n id: string;\n tenant: string;\n locale: string;\n };\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsListParams {\n where: {\n tenant: string;\n locale: string;\n };\n sort?: string[];\n limit?: number;\n after?: string | null;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport type ImportExportTaskStorageOperationsListResponse = [ImportExportTask[], MetaResponse];\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsCreateParams {\n input: Record<string, any>;\n task: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsUpdateParams {\n input: Record<string, any>;\n original: ImportExportTask;\n task: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsDeleteParams {\n task: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsGetSubTaskParams {\n where: {\n id: string;\n parent: string;\n tenant: string;\n locale: string;\n };\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsListSubTaskParams {\n where: {\n tenant: string;\n locale: string;\n parent: string;\n status: ImportExportTaskStatus;\n createdBy?: string;\n };\n sort?: string[];\n limit?: number;\n after?: string | null;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport type ImportExportTaskStorageOperationsListSubTaskResponse = [\n ImportExportTask[],\n MetaResponse\n];\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsCreateSubTaskParams {\n input: Record<string, any>;\n subTask: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsUpdateSubTaskParams {\n input: Record<string, any>;\n original: ImportExportTask;\n subTask: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperationsUpdateTaskStatsParams {\n input: {\n prevStatus: ImportExportTaskStatus;\n nextStatus: ImportExportTaskStatus;\n };\n original: ImportExportTask;\n}\n\n/**\n * @category StorageOperations\n * @category ImportExportTaskStorageOperations\n */\nexport interface ImportExportTaskStorageOperations {\n /**\n * Get a single import export task item by given params.\n */\n getTask(params: ImportExportTaskStorageOperationsGetParams): Promise<ImportExportTask | null>;\n\n /**\n * Get all import export tasks by given params.\n */\n listTasks(\n params: ImportExportTaskStorageOperationsListParams\n ): Promise<ImportExportTaskStorageOperationsListResponse>;\n\n createTask(params: ImportExportTaskStorageOperationsCreateParams): Promise<ImportExportTask>;\n\n updateTask(params: ImportExportTaskStorageOperationsUpdateParams): Promise<ImportExportTask>;\n\n deleteTask(params: ImportExportTaskStorageOperationsDeleteParams): Promise<ImportExportTask>;\n\n updateTaskStats(\n params: ImportExportTaskStorageOperationsUpdateTaskStatsParams\n ): Promise<ImportExportTask>;\n\n /**\n * Get a single import export sub-task item by given params.\n */\n getSubTask(\n params: ImportExportTaskStorageOperationsGetSubTaskParams\n ): Promise<ImportExportTask | null>;\n\n /**\n * Get all import export sub-tasks by given params.\n */\n listSubTasks(\n params: ImportExportTaskStorageOperationsListSubTaskParams\n ): Promise<ImportExportTaskStorageOperationsListSubTaskResponse>;\n\n createSubTask(\n params: ImportExportTaskStorageOperationsCreateSubTaskParams\n ): Promise<ImportExportTask>;\n\n updateSubTask(\n params: ImportExportTaskStorageOperationsUpdateSubTaskParams\n ): Promise<ImportExportTask>;\n}\n"],"mappings":";;;;;;;;;;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAEA;AAAA,IACYA,kBAAkB;AAAA;AAAA,WAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;AAAA,GAAlBA,kBAAkB,kCAAlBA,kBAAkB;AAAA,IAKlBC,sBAAsB;AAAA;AAAA,WAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;AAAA,GAAtBA,sBAAsB,sCAAtBA,sBAAsB"}
|
@@ -1,106 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
var _types = require("../../types");
|
8
|
-
var _s3Stream = require("../s3Stream");
|
9
|
-
var _zipper = require("../zipper");
|
10
|
-
var _mockSecurity = require("../../mockSecurity");
|
11
|
-
var _handlerAws = require("@webiny/handler-aws");
|
12
|
-
/**
|
13
|
-
* Handles the export pages combine workflow.
|
14
|
-
*/
|
15
|
-
var _default = () => {
|
16
|
-
return (0, _handlerAws.createRawEventHandler)(async ({
|
17
|
-
payload,
|
18
|
-
context
|
19
|
-
}) => {
|
20
|
-
const log = console.log;
|
21
|
-
log("RUNNING Export Pages Combine Handler");
|
22
|
-
const {
|
23
|
-
pageBuilder
|
24
|
-
} = context;
|
25
|
-
const {
|
26
|
-
taskId,
|
27
|
-
identity
|
28
|
-
} = payload;
|
29
|
-
(0, _mockSecurity.mockSecurity)(identity, context);
|
30
|
-
try {
|
31
|
-
const task = await pageBuilder.pageImportExportTask.getTask(taskId);
|
32
|
-
if (!task) {
|
33
|
-
return {
|
34
|
-
data: null,
|
35
|
-
error: {
|
36
|
-
message: `There is no task with ID "${taskId}".`
|
37
|
-
}
|
38
|
-
};
|
39
|
-
}
|
40
|
-
const {
|
41
|
-
exportPagesDataKey
|
42
|
-
} = task.input;
|
43
|
-
|
44
|
-
// Get all files (zip) from given key
|
45
|
-
const listObjectResponse = await _s3Stream.s3Stream.listObject(exportPagesDataKey);
|
46
|
-
if (!listObjectResponse.Contents) {
|
47
|
-
return {
|
48
|
-
data: null,
|
49
|
-
error: {
|
50
|
-
message: "There is no Contents defined on S3 Stream while combining pages."
|
51
|
-
}
|
52
|
-
};
|
53
|
-
}
|
54
|
-
const zipFileKeys = listObjectResponse.Contents.filter(file => file.Key !== exportPagesDataKey).map(file => file.Key).filter(Boolean);
|
55
|
-
|
56
|
-
// Prepare zip of all zips
|
57
|
-
const zipOfZip = new _zipper.ZipOfZip(zipFileKeys);
|
58
|
-
|
59
|
-
// Upload
|
60
|
-
const pageExportUpload = await zipOfZip.process();
|
61
|
-
log(`Done uploading... File is located at ${pageExportUpload.Location} `);
|
62
|
-
|
63
|
-
// Update task status and save export page data key
|
64
|
-
await pageBuilder.pageImportExportTask.updateTask(taskId, {
|
65
|
-
status: _types.PageImportExportTaskStatus.COMPLETED,
|
66
|
-
data: {
|
67
|
-
message: `Finish uploading page export.`,
|
68
|
-
key: pageExportUpload.Key,
|
69
|
-
url: _s3Stream.s3Stream.getPresignedUrl(pageExportUpload.Key)
|
70
|
-
}
|
71
|
-
});
|
72
|
-
|
73
|
-
// Remove individual zip files from storage
|
74
|
-
const deleteFilePromises = zipFileKeys.map(key => _s3Stream.s3Stream.deleteObject(key));
|
75
|
-
await Promise.all(deleteFilePromises);
|
76
|
-
log(`Successfully deleted ${deleteFilePromises.length} zip files.`);
|
77
|
-
} catch (e) {
|
78
|
-
log("[EXPORT_PAGES_COMBINE] Error => ", e);
|
79
|
-
|
80
|
-
/**
|
81
|
-
* In case of error, we'll update the task status to "failed",
|
82
|
-
* so that, client can show notify the user appropriately.
|
83
|
-
*/
|
84
|
-
await pageBuilder.pageImportExportTask.updateTask(taskId, {
|
85
|
-
status: _types.PageImportExportTaskStatus.FAILED,
|
86
|
-
error: {
|
87
|
-
name: e.name,
|
88
|
-
message: e.message,
|
89
|
-
stack: e.stack,
|
90
|
-
code: "EXPORT_FAILED"
|
91
|
-
}
|
92
|
-
});
|
93
|
-
return {
|
94
|
-
data: null,
|
95
|
-
error: {
|
96
|
-
message: e.message
|
97
|
-
}
|
98
|
-
};
|
99
|
-
}
|
100
|
-
return {
|
101
|
-
data: "",
|
102
|
-
error: null
|
103
|
-
};
|
104
|
-
});
|
105
|
-
};
|
106
|
-
exports.default = _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["createRawEventHandler","payload","context","log","console","pageBuilder","taskId","identity","mockSecurity","task","pageImportExportTask","getTask","data","error","message","exportPagesDataKey","input","listObjectResponse","s3Stream","listObject","Contents","zipFileKeys","filter","file","Key","map","Boolean","zipOfZip","ZipOfZip","pageExportUpload","process","Location","updateTask","status","PageImportExportTaskStatus","COMPLETED","key","url","getPresignedUrl","deleteFilePromises","deleteObject","Promise","all","length","e","FAILED","name","stack","code"],"sources":["index.ts"],"sourcesContent":["import { PageImportExportTaskStatus, PbPageImportExportContext } from \"~/types\";\nimport { s3Stream } from \"../s3Stream\";\nimport { ZipOfZip } from \"../zipper\";\nimport { mockSecurity } from \"~/mockSecurity\";\nimport { SecurityIdentity } from \"@webiny/api-security/types\";\nimport { createRawEventHandler } from \"@webiny/handler-aws\";\n\nexport interface Payload {\n taskId: string;\n identity: SecurityIdentity;\n}\n\nexport interface Response {\n data: string | null;\n error: Partial<Error> | null;\n}\n\n/**\n * Handles the export pages combine workflow.\n */\nexport default () => {\n return createRawEventHandler<Payload, PbPageImportExportContext, Response>(\n async ({ payload, context }) => {\n const log = console.log;\n\n log(\"RUNNING Export Pages Combine Handler\");\n const { pageBuilder } = context;\n const { taskId, identity } = payload;\n\n mockSecurity(identity, context);\n\n try {\n const task = await pageBuilder.pageImportExportTask.getTask(taskId);\n if (!task) {\n return {\n data: null,\n error: {\n message: `There is no task with ID \"${taskId}\".`\n }\n };\n }\n\n const { exportPagesDataKey } = task.input;\n\n // Get all files (zip) from given key\n const listObjectResponse = await s3Stream.listObject(exportPagesDataKey);\n if (!listObjectResponse.Contents) {\n return {\n data: null,\n error: {\n message:\n \"There is no Contents defined on S3 Stream while combining pages.\"\n }\n };\n }\n\n const zipFileKeys = listObjectResponse.Contents.filter(\n file => file.Key !== exportPagesDataKey\n )\n .map(file => file.Key)\n .filter(Boolean) as string[];\n\n // Prepare zip of all zips\n const zipOfZip = new ZipOfZip(zipFileKeys);\n\n // Upload\n const pageExportUpload = await zipOfZip.process();\n log(`Done uploading... File is located at ${pageExportUpload.Location} `);\n\n // Update task status and save export page data key\n await pageBuilder.pageImportExportTask.updateTask(taskId, {\n status: PageImportExportTaskStatus.COMPLETED,\n data: {\n message: `Finish uploading page export.`,\n key: pageExportUpload.Key,\n url: s3Stream.getPresignedUrl(pageExportUpload.Key)\n }\n });\n\n // Remove individual zip files from storage\n const deleteFilePromises = zipFileKeys.map(key => s3Stream.deleteObject(key));\n await Promise.all(deleteFilePromises);\n log(`Successfully deleted ${deleteFilePromises.length} zip files.`);\n } catch (e) {\n log(\"[EXPORT_PAGES_COMBINE] Error => \", e);\n\n /**\n * In case of error, we'll update the task status to \"failed\",\n * so that, client can show notify the user appropriately.\n */\n await pageBuilder.pageImportExportTask.updateTask(taskId, {\n status: PageImportExportTaskStatus.FAILED,\n error: {\n name: e.name,\n message: e.message,\n stack: e.stack,\n code: \"EXPORT_FAILED\"\n }\n });\n\n return {\n data: null,\n error: {\n message: e.message\n }\n };\n }\n return {\n data: \"\",\n error: null\n };\n }\n );\n};\n"],"mappings":"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"}
|
@@ -1,192 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
var _types = require("../../types");
|
8
|
-
var _client = require("../../client");
|
9
|
-
var _handlerGraphql = require("@webiny/handler-graphql");
|
10
|
-
var _utils = require("../utils");
|
11
|
-
var _mockSecurity = require("../../mockSecurity");
|
12
|
-
var _utils2 = require("@webiny/utils");
|
13
|
-
var _handlerAws = require("@webiny/handler-aws");
|
14
|
-
/**
|
15
|
-
* Handles the export pages process workflow.
|
16
|
-
*/
|
17
|
-
var _default = configuration => {
|
18
|
-
return (0, _handlerAws.createRawEventHandler)(async ({
|
19
|
-
payload,
|
20
|
-
context
|
21
|
-
}) => {
|
22
|
-
const log = console.log;
|
23
|
-
let subTask;
|
24
|
-
let noPendingTask = true;
|
25
|
-
let prevStatusOfSubTask = _types.PageImportExportTaskStatus.PENDING;
|
26
|
-
log("RUNNING Export Pages Process Handler");
|
27
|
-
const {
|
28
|
-
pageBuilder,
|
29
|
-
fileManager
|
30
|
-
} = context;
|
31
|
-
const {
|
32
|
-
taskId,
|
33
|
-
subTaskIndex,
|
34
|
-
identity
|
35
|
-
} = payload;
|
36
|
-
// Disable authorization; this is necessary because we call Page Builder CRUD methods which include authorization checks
|
37
|
-
// and this Lambda is invoked internally, without credentials.
|
38
|
-
(0, _mockSecurity.mockSecurity)(identity, context);
|
39
|
-
try {
|
40
|
-
/*
|
41
|
-
* Note: We're not going to DB for finding the next sub-task to process,
|
42
|
-
* because the data might be out of sync due to GSI eventual consistency.
|
43
|
-
*/
|
44
|
-
subTask = await pageBuilder.pageImportExportTask.getSubTask(taskId, (0, _utils2.zeroPad)(subTaskIndex, 5));
|
45
|
-
/**
|
46
|
-
* Base condition!!
|
47
|
-
* Bail out early, if task not found or task's status is not "pending".
|
48
|
-
*/
|
49
|
-
if (!subTask || subTask.status !== _types.PageImportExportTaskStatus.PENDING) {
|
50
|
-
noPendingTask = true;
|
51
|
-
return {
|
52
|
-
data: "",
|
53
|
-
error: null
|
54
|
-
};
|
55
|
-
} else {
|
56
|
-
noPendingTask = false;
|
57
|
-
}
|
58
|
-
log(`Fetched sub task => ${subTask.id}`);
|
59
|
-
const {
|
60
|
-
input
|
61
|
-
} = subTask;
|
62
|
-
const {
|
63
|
-
pageId,
|
64
|
-
exportPagesDataKey,
|
65
|
-
revisionType
|
66
|
-
} = input;
|
67
|
-
|
68
|
-
/**
|
69
|
-
* At the moment, we only export a single revision of the page.
|
70
|
-
* It could be "published" or "latest" depending upon user input.
|
71
|
-
*
|
72
|
-
* Note: In case of no "published" revision available, we use the latest revision.
|
73
|
-
*/
|
74
|
-
let page;
|
75
|
-
try {
|
76
|
-
if (revisionType === _types.PageExportRevisionType.PUBLISHED) {
|
77
|
-
// Get "published" page.
|
78
|
-
page = await pageBuilder.getPublishedPageById({
|
79
|
-
id: pageId
|
80
|
-
});
|
81
|
-
} else {
|
82
|
-
// Get "latest" page.
|
83
|
-
page = await pageBuilder.getPage(pageId);
|
84
|
-
}
|
85
|
-
} catch (e) {
|
86
|
-
// If we're looking for "published" page and doesn't found it, get latest page.
|
87
|
-
if (revisionType === _types.PageExportRevisionType.PUBLISHED && e instanceof _handlerGraphql.NotFoundError) {
|
88
|
-
page = await pageBuilder.getPage(pageId);
|
89
|
-
} else {
|
90
|
-
throw e;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
if (!page) {
|
94
|
-
log(`Unable to load page "${pageId}"`);
|
95
|
-
throw new _handlerGraphql.NotFoundError(`Unable to load page "${pageId}"`);
|
96
|
-
}
|
97
|
-
log(`Processing page key "${pageId}" | version ${page.version} | ${page.status}`);
|
98
|
-
|
99
|
-
// Mark task status as PROCESSING
|
100
|
-
subTask = await pageBuilder.pageImportExportTask.updateSubTask(taskId, subTask.id, {
|
101
|
-
status: _types.PageImportExportTaskStatus.PROCESSING
|
102
|
-
});
|
103
|
-
// Update stats in main task
|
104
|
-
await pageBuilder.pageImportExportTask.updateStats(taskId, {
|
105
|
-
prevStatus: prevStatusOfSubTask,
|
106
|
-
nextStatus: _types.PageImportExportTaskStatus.PROCESSING
|
107
|
-
});
|
108
|
-
prevStatusOfSubTask = subTask.status;
|
109
|
-
log(`Extracting page data and uploading to storage...`);
|
110
|
-
// Extract Page
|
111
|
-
const pageDataZip = await (0, _utils.exportPage)(page, exportPagesDataKey, fileManager);
|
112
|
-
log(`Finish uploading zip...`);
|
113
|
-
// Update task record in DB
|
114
|
-
subTask = await pageBuilder.pageImportExportTask.updateSubTask(taskId, subTask.id, {
|
115
|
-
status: _types.PageImportExportTaskStatus.COMPLETED,
|
116
|
-
data: {
|
117
|
-
message: `Finish uploading data for page "${page.id}" v${page.version} (${page.status}).`,
|
118
|
-
key: pageDataZip.Key
|
119
|
-
}
|
120
|
-
});
|
121
|
-
// Update stats in main task
|
122
|
-
await pageBuilder.pageImportExportTask.updateStats(taskId, {
|
123
|
-
prevStatus: prevStatusOfSubTask,
|
124
|
-
nextStatus: _types.PageImportExportTaskStatus.COMPLETED
|
125
|
-
});
|
126
|
-
prevStatusOfSubTask = subTask.status;
|
127
|
-
} catch (e) {
|
128
|
-
log("[EXPORT_PAGES_PROCESS] Error => ", e);
|
129
|
-
if (subTask && subTask.id) {
|
130
|
-
/**
|
131
|
-
* In case of error, we'll update the task status to "failed",
|
132
|
-
* so that, client can show notify the user appropriately.
|
133
|
-
*/
|
134
|
-
subTask = await pageBuilder.pageImportExportTask.updateSubTask(taskId, subTask.id, {
|
135
|
-
status: _types.PageImportExportTaskStatus.FAILED,
|
136
|
-
error: {
|
137
|
-
name: e.name,
|
138
|
-
message: e.message,
|
139
|
-
stack: e.stack,
|
140
|
-
code: "EXPORT_FAILED"
|
141
|
-
}
|
142
|
-
});
|
143
|
-
|
144
|
-
// Update stats in main task
|
145
|
-
await pageBuilder.pageImportExportTask.updateStats(taskId, {
|
146
|
-
prevStatus: prevStatusOfSubTask,
|
147
|
-
nextStatus: _types.PageImportExportTaskStatus.FAILED
|
148
|
-
});
|
149
|
-
prevStatusOfSubTask = subTask.status;
|
150
|
-
}
|
151
|
-
return {
|
152
|
-
data: null,
|
153
|
-
error: {
|
154
|
-
message: e.message
|
155
|
-
}
|
156
|
-
};
|
157
|
-
} finally {
|
158
|
-
// Base condition!
|
159
|
-
if (noPendingTask) {
|
160
|
-
log(`No pending sub-task for task ${taskId}`);
|
161
|
-
// Combine individual page zip files.
|
162
|
-
await (0, _client.invokeHandlerClient)({
|
163
|
-
context,
|
164
|
-
name: configuration.handlers.combine,
|
165
|
-
payload: {
|
166
|
-
taskId,
|
167
|
-
identity: context.security.getIdentity()
|
168
|
-
},
|
169
|
-
description: "Export pages - combine"
|
170
|
-
});
|
171
|
-
} else {
|
172
|
-
console.log(`Invoking PROCESS for task "${subTaskIndex + 1}"`);
|
173
|
-
// We want to continue with Self invocation no matter if current page error out.
|
174
|
-
await (0, _client.invokeHandlerClient)({
|
175
|
-
context,
|
176
|
-
name: configuration.handlers.process,
|
177
|
-
payload: {
|
178
|
-
taskId,
|
179
|
-
subTaskIndex: subTaskIndex + 1,
|
180
|
-
identity: context.security.getIdentity()
|
181
|
-
},
|
182
|
-
description: "Export pages - process - subtask"
|
183
|
-
});
|
184
|
-
}
|
185
|
-
}
|
186
|
-
return {
|
187
|
-
data: "",
|
188
|
-
error: null
|
189
|
-
};
|
190
|
-
});
|
191
|
-
};
|
192
|
-
exports.default = _default;
|