contentful-import 10.2.2 → 10.3.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.
@@ -16,10 +16,15 @@ 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;
22
24
  assetsDirectory: string | undefined;
25
+ timeout: number | undefined;
26
+ "retry-limit": number | undefined;
27
+ retryLimit: number | undefined;
23
28
  "error-log-file": string | undefined;
24
29
  errorLogFile: string | undefined;
25
30
  host: string;
@@ -51,10 +56,15 @@ declare const _default: {
51
56
  skipLocales: boolean;
52
57
  "skip-content-publishing": boolean;
53
58
  skipContentPublishing: boolean;
59
+ "unpublish-draft-locales": boolean;
60
+ unpublishDraftLocales: boolean;
54
61
  "upload-assets": boolean | undefined;
55
62
  uploadAssets: boolean | undefined;
56
63
  "assets-directory": string | undefined;
57
64
  assetsDirectory: string | undefined;
65
+ timeout: number | undefined;
66
+ "retry-limit": number | undefined;
67
+ retryLimit: number | undefined;
58
68
  "error-log-file": string | undefined;
59
69
  errorLogFile: string | undefined;
60
70
  host: string;
@@ -16,10 +16,15 @@ 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;
22
24
  assetsDirectory: string | undefined;
25
+ timeout: number | undefined;
26
+ "retry-limit": number | undefined;
27
+ retryLimit: number | undefined;
23
28
  "error-log-file": string | undefined;
24
29
  errorLogFile: string | undefined;
25
30
  host: string;
@@ -51,10 +56,15 @@ declare const _default: {
51
56
  skipLocales: boolean;
52
57
  "skip-content-publishing": boolean;
53
58
  skipContentPublishing: boolean;
59
+ "unpublish-draft-locales": boolean;
60
+ unpublishDraftLocales: boolean;
54
61
  "upload-assets": boolean | undefined;
55
62
  uploadAssets: boolean | undefined;
56
63
  "assets-directory": string | undefined;
57
64
  assetsDirectory: string | undefined;
65
+ timeout: number | undefined;
66
+ "retry-limit": number | undefined;
67
+ retryLimit: number | undefined;
58
68
  "error-log-file": string | undefined;
59
69
  errorLogFile: string | undefined;
60
70
  host: string;
@@ -76,13 +76,23 @@ 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"
82
86
  }).implies("upload-assets", "assets-directory").option("assets-directory", {
83
87
  describe: "Path to a directory with an asset export made using the downloadAssets option to upload those files instead of pointing to the URLs of previously uploaded assets. Requires upload-assets",
84
88
  type: "string"
85
- }).implies("assets-directory", "upload-assets").option("error-log-file", {
89
+ }).implies("assets-directory", "upload-assets").option("timeout", {
90
+ describe: "Time between retries",
91
+ type: "number"
92
+ }).option("retry-limit", {
93
+ describe: "Maximum number of retries",
94
+ type: "number"
95
+ }).option("error-log-file", {
86
96
  describe: "Full path to the error log file",
87
97
  type: "string"
88
98
  }).option("host", {
@@ -38,13 +38,23 @@ 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"
44
48
  }).implies("upload-assets", "assets-directory").option("assets-directory", {
45
49
  describe: "Path to a directory with an asset export made using the downloadAssets option to upload those files instead of pointing to the URLs of previously uploaded assets. Requires upload-assets",
46
50
  type: "string"
47
- }).implies("assets-directory", "upload-assets").option("error-log-file", {
51
+ }).implies("assets-directory", "upload-assets").option("timeout", {
52
+ describe: "Time between retries",
53
+ type: "number"
54
+ }).option("retry-limit", {
55
+ describe: "Maximum number of retries",
56
+ type: "number"
57
+ }).option("error-log-file", {
48
58
  describe: "Full path to the error log file",
49
59
  type: "string"
50
60
  }).option("host", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-import",
3
- "version": "10.2.2",
3
+ "version": "10.3.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",