@enonic-types/lib-export 7.16.2-RC2 → 8.0.0-A2
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 +4 -4
- package/package.json +2 -2
package/export.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface ImportNodesParams {
|
|
|
22
22
|
includePermissions?: boolean;
|
|
23
23
|
nodeResolved?: (numberOfNodes: number) => void;
|
|
24
24
|
nodeImported?: (numberOfImportedNodes: number) => void;
|
|
25
|
+
nodeSkipped?: (numberOfSkippedNodes: number) => void;
|
|
25
26
|
}
|
|
26
27
|
export interface ImportNodesError {
|
|
27
28
|
exception: string;
|
|
@@ -50,6 +51,7 @@ export interface ImportNodesResult {
|
|
|
50
51
|
* @param {boolean} [params.includePermissions=false] Set to true to use Node permissions from the import, false to use target node permissions.
|
|
51
52
|
* @param {function} [params.nodeResolved] A function to be called before import starts with number of nodes to import.
|
|
52
53
|
* @param {function} [params.nodeImported] A function to be called during import with number of nodes imported since last call.
|
|
54
|
+
* @param {function} [params.nodeSkipped] A function to be called during import with number of nodes skipped since last call.
|
|
53
55
|
*
|
|
54
56
|
* @returns {ImportNodesResult} Node import results.
|
|
55
57
|
*/
|
|
@@ -57,8 +59,7 @@ export declare function importNodes(params: ImportNodesParams): ImportNodesResul
|
|
|
57
59
|
export interface ExportNodesParams {
|
|
58
60
|
sourceNodePath: string;
|
|
59
61
|
exportName: string;
|
|
60
|
-
|
|
61
|
-
includeVersions?: boolean;
|
|
62
|
+
batchSize?: number;
|
|
62
63
|
nodeResolved?: (numberOfNodes: number) => void;
|
|
63
64
|
nodeExported?: (numberOfExportedNodes: number) => void;
|
|
64
65
|
}
|
|
@@ -79,8 +80,7 @@ export interface ExportNodesResult {
|
|
|
79
80
|
* @param {object} params JSON with the parameters.
|
|
80
81
|
* @param {string} params.sourceNodePath Source nodes path.
|
|
81
82
|
* @param {string} params.exportName Export name.
|
|
82
|
-
* @param {
|
|
83
|
-
* @param {boolean} [params.includeVersions=false] Set to true to export all node versions.
|
|
83
|
+
* @param {number} [params.batchSize=1000] Number of nodes to export in each batch.
|
|
84
84
|
* @param {function} [params.nodeResolved] A function to be called before export starts with number of nodes to export.
|
|
85
85
|
* @param {function} [params.nodeExported] A function to be called during export with number of nodes exported since last call.
|
|
86
86
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-export",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-A2",
|
|
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": "
|
|
30
|
+
"@enonic-types/core": "8.0.0-A2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|