contentful-import 10.2.3 → 10.4.0
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 +32 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +514 -89
- package/dist/index.mjs +511 -86
- package/dist/usageParams.d.mts +8 -0
- package/dist/usageParams.d.ts +8 -0
- package/dist/usageParams.js +8 -0
- package/dist/usageParams.mjs +8 -0
- package/package.json +2 -2
package/dist/usageParams.d.mts
CHANGED
|
@@ -16,6 +16,8 @@ declare const _default: {
|
|
|
16
16
|
skipLocales: boolean;
|
|
17
17
|
"skip-content-publishing": boolean;
|
|
18
18
|
skipContentPublishing: boolean;
|
|
19
|
+
"unpublish-draft-locales": boolean;
|
|
20
|
+
unpublishDraftLocales: boolean;
|
|
19
21
|
"upload-assets": boolean | undefined;
|
|
20
22
|
uploadAssets: boolean | undefined;
|
|
21
23
|
"assets-directory": string | undefined;
|
|
@@ -34,6 +36,8 @@ declare const _default: {
|
|
|
34
36
|
header: string | undefined;
|
|
35
37
|
"include-experience-orchestration": boolean;
|
|
36
38
|
includeExperienceOrchestration: boolean;
|
|
39
|
+
"skip-exo-variants": boolean;
|
|
40
|
+
skipExoVariants: boolean;
|
|
37
41
|
_: (string | number)[];
|
|
38
42
|
$0: string;
|
|
39
43
|
} | Promise<{
|
|
@@ -54,6 +58,8 @@ declare const _default: {
|
|
|
54
58
|
skipLocales: boolean;
|
|
55
59
|
"skip-content-publishing": boolean;
|
|
56
60
|
skipContentPublishing: boolean;
|
|
61
|
+
"unpublish-draft-locales": boolean;
|
|
62
|
+
unpublishDraftLocales: boolean;
|
|
57
63
|
"upload-assets": boolean | undefined;
|
|
58
64
|
uploadAssets: boolean | undefined;
|
|
59
65
|
"assets-directory": string | undefined;
|
|
@@ -72,6 +78,8 @@ declare const _default: {
|
|
|
72
78
|
header: string | undefined;
|
|
73
79
|
"include-experience-orchestration": boolean;
|
|
74
80
|
includeExperienceOrchestration: boolean;
|
|
81
|
+
"skip-exo-variants": boolean;
|
|
82
|
+
skipExoVariants: boolean;
|
|
75
83
|
_: (string | number)[];
|
|
76
84
|
$0: string;
|
|
77
85
|
}>;
|
package/dist/usageParams.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ declare const _default: {
|
|
|
16
16
|
skipLocales: boolean;
|
|
17
17
|
"skip-content-publishing": boolean;
|
|
18
18
|
skipContentPublishing: boolean;
|
|
19
|
+
"unpublish-draft-locales": boolean;
|
|
20
|
+
unpublishDraftLocales: boolean;
|
|
19
21
|
"upload-assets": boolean | undefined;
|
|
20
22
|
uploadAssets: boolean | undefined;
|
|
21
23
|
"assets-directory": string | undefined;
|
|
@@ -34,6 +36,8 @@ declare const _default: {
|
|
|
34
36
|
header: string | undefined;
|
|
35
37
|
"include-experience-orchestration": boolean;
|
|
36
38
|
includeExperienceOrchestration: boolean;
|
|
39
|
+
"skip-exo-variants": boolean;
|
|
40
|
+
skipExoVariants: boolean;
|
|
37
41
|
_: (string | number)[];
|
|
38
42
|
$0: string;
|
|
39
43
|
} | Promise<{
|
|
@@ -54,6 +58,8 @@ declare const _default: {
|
|
|
54
58
|
skipLocales: boolean;
|
|
55
59
|
"skip-content-publishing": boolean;
|
|
56
60
|
skipContentPublishing: boolean;
|
|
61
|
+
"unpublish-draft-locales": boolean;
|
|
62
|
+
unpublishDraftLocales: boolean;
|
|
57
63
|
"upload-assets": boolean | undefined;
|
|
58
64
|
uploadAssets: boolean | undefined;
|
|
59
65
|
"assets-directory": string | undefined;
|
|
@@ -72,6 +78,8 @@ declare const _default: {
|
|
|
72
78
|
header: string | undefined;
|
|
73
79
|
"include-experience-orchestration": boolean;
|
|
74
80
|
includeExperienceOrchestration: boolean;
|
|
81
|
+
"skip-exo-variants": boolean;
|
|
82
|
+
skipExoVariants: boolean;
|
|
75
83
|
_: (string | number)[];
|
|
76
84
|
$0: string;
|
|
77
85
|
}>;
|
package/dist/usageParams.js
CHANGED
|
@@ -76,6 +76,10 @@ var usageParams_default = import_yargs.default.version(version || "Version only
|
|
|
76
76
|
describe: "Skips content publishing. Creates content but does not publish it",
|
|
77
77
|
type: "boolean",
|
|
78
78
|
default: false
|
|
79
|
+
}).option("unpublish-draft-locales", {
|
|
80
|
+
describe: "Unpublish locales that the content file marks as draft but that are still published in the destination. Only relevant when importing over content that is already published",
|
|
81
|
+
type: "boolean",
|
|
82
|
+
default: false
|
|
79
83
|
}).option("upload-assets", {
|
|
80
84
|
describe: "Uses local asset files and uploads them instead of pointing to the URLs of previously uploaded assets. Requires assets-directory",
|
|
81
85
|
type: "boolean"
|
|
@@ -114,5 +118,9 @@ var usageParams_default = import_yargs.default.version(version || "Version only
|
|
|
114
118
|
describe: "Import Experience Orchestration entities (designTokens, components, experienceTemplates, experienceFragments, dataAssemblies, experiences). Requires a space with ExO enabled.",
|
|
115
119
|
type: "boolean",
|
|
116
120
|
default: true
|
|
121
|
+
}).option("skip-exo-variants", {
|
|
122
|
+
describe: "Skip importing Experience and Experience Fragment Optimization Variants",
|
|
123
|
+
type: "boolean",
|
|
124
|
+
default: false
|
|
117
125
|
}).config("config", "An optional configuration JSON file containing all the options for a single run").argv;
|
|
118
126
|
module.exports = module.exports.default || module.exports;
|
package/dist/usageParams.mjs
CHANGED
|
@@ -38,6 +38,10 @@ var usageParams_default = yargs.version(version || "Version only available on in
|
|
|
38
38
|
describe: "Skips content publishing. Creates content but does not publish it",
|
|
39
39
|
type: "boolean",
|
|
40
40
|
default: false
|
|
41
|
+
}).option("unpublish-draft-locales", {
|
|
42
|
+
describe: "Unpublish locales that the content file marks as draft but that are still published in the destination. Only relevant when importing over content that is already published",
|
|
43
|
+
type: "boolean",
|
|
44
|
+
default: false
|
|
41
45
|
}).option("upload-assets", {
|
|
42
46
|
describe: "Uses local asset files and uploads them instead of pointing to the URLs of previously uploaded assets. Requires assets-directory",
|
|
43
47
|
type: "boolean"
|
|
@@ -76,6 +80,10 @@ var usageParams_default = yargs.version(version || "Version only available on in
|
|
|
76
80
|
describe: "Import Experience Orchestration entities (designTokens, components, experienceTemplates, experienceFragments, dataAssemblies, experiences). Requires a space with ExO enabled.",
|
|
77
81
|
type: "boolean",
|
|
78
82
|
default: true
|
|
83
|
+
}).option("skip-exo-variants", {
|
|
84
|
+
describe: "Skip importing Experience and Experience Fragment Optimization Variants",
|
|
85
|
+
type: "boolean",
|
|
86
|
+
default: false
|
|
79
87
|
}).config("config", "An optional configuration JSON file containing all the options for a single run").argv;
|
|
80
88
|
export {
|
|
81
89
|
usageParams_default as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-import",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "this tool allows you to import JSON dump exported by contentful-export",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"bluebird": "^3.7.2",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
66
66
|
"contentful-batch-libs": "^9.7.0",
|
|
67
|
-
"contentful-management": "^12.
|
|
67
|
+
"contentful-management": "^12.17.0",
|
|
68
68
|
"date-fns": "^4.4.0",
|
|
69
69
|
"joi": "^18.2.3",
|
|
70
70
|
"listr": "^0.14.3",
|