@enonic-types/lib-export 8.0.0-A2 → 8.0.0-A6
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/export.d.ts +16 -0
- package/package.json +2 -2
package/export.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface ImportNodesParams {
|
|
|
20
20
|
xsltParams?: unknown;
|
|
21
21
|
includeNodeIds?: boolean;
|
|
22
22
|
includePermissions?: boolean;
|
|
23
|
+
versionAttributes?: Record<string, unknown>;
|
|
23
24
|
nodeResolved?: (numberOfNodes: number) => void;
|
|
24
25
|
nodeImported?: (numberOfImportedNodes: number) => void;
|
|
25
26
|
nodeSkipped?: (numberOfSkippedNodes: number) => void;
|
|
@@ -49,6 +50,7 @@ export interface ImportNodesResult {
|
|
|
49
50
|
* @param {object} [params.xsltParams] Parameters used in XSLT transformation.
|
|
50
51
|
* @param {boolean} [params.includeNodeIds=false] Set to true to use node IDs from the import, false to generate new node IDs.
|
|
51
52
|
* @param {boolean} [params.includePermissions=false] Set to true to use Node permissions from the import, false to use target node permissions.
|
|
53
|
+
* @param {object} [params.versionAttributes] Optional attributes to attach to the node version of every imported node.
|
|
52
54
|
* @param {function} [params.nodeResolved] A function to be called before import starts with number of nodes to import.
|
|
53
55
|
* @param {function} [params.nodeImported] A function to be called during import with number of nodes imported since last call.
|
|
54
56
|
* @param {function} [params.nodeSkipped] A function to be called during import with number of nodes skipped since last call.
|
|
@@ -86,4 +88,18 @@ export interface ExportNodesResult {
|
|
|
86
88
|
*
|
|
87
89
|
* @returns {ExportNodesResult} Node export results.
|
|
88
90
|
*/
|
|
91
|
+
export interface ExportInfo {
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
export interface ListExportsResult {
|
|
95
|
+
exports: ExportInfo[];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* List the available node-exports stored in the exports directory.
|
|
99
|
+
*
|
|
100
|
+
* @example-ref examples/export/listExports.js
|
|
101
|
+
*
|
|
102
|
+
* @returns {ListExportsResult} Names of all available exports.
|
|
103
|
+
*/
|
|
104
|
+
export declare function list(): ListExportsResult;
|
|
89
105
|
export declare function exportNodes(params: ExportNodesParams): ExportNodesResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-export",
|
|
3
|
-
"version": "8.0.0-
|
|
3
|
+
"version": "8.0.0-A6",
|
|
4
4
|
"description": "Type definitions for lib-export.",
|
|
5
5
|
"types": "export.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/enonic/xp/tree/master#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enonic-types/core": "8.0.0-
|
|
30
|
+
"@enonic-types/core": "8.0.0-A6"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|