@contentstack/cli-cm-export-to-csv 1.3.12 → 1.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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-export-to-csv",
3
3
  "description": "Export entities to csv",
4
- "version": "1.3.12",
4
+ "version": "1.4.0",
5
5
  "author": "Abhinav Gupta @abhinav-from-contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "^1.2.11",
9
- "@contentstack/cli-utilities": "^1.5.1",
8
+ "@contentstack/cli-command": "~1.2.11",
9
+ "@contentstack/cli-utilities": "~1.5.1",
10
10
  "chalk": "^4.1.0",
11
11
  "fast-csv": "^4.3.6",
12
12
  "inquirer": "8.2.4",
package/src/util/index.js CHANGED
@@ -380,7 +380,7 @@ function cleanEntries(entries, language, environments, contentTypeUid) {
380
380
  let workflow = '';
381
381
  const envArr = [];
382
382
  entry.publish_details.forEach((env) => {
383
- envArr.push(JSON.stringify([environments[env['environment']], env['locale']]));
383
+ envArr.push(JSON.stringify([environments[env['environment']], env['locale'], env['time']]));
384
384
  });
385
385
  delete entry.publish_details;
386
386
  if ('_workflow' in entry) {
@@ -1,101 +0,0 @@
1
- {
2
- "version": "1.3.12",
3
- "commands": {
4
- "cm:export-to-csv": {
5
- "id": "cm:export-to-csv",
6
- "description": "Export entries or organization users to csv using this command",
7
- "strict": true,
8
- "pluginName": "@contentstack/cli-cm-export-to-csv",
9
- "pluginAlias": "@contentstack/cli-cm-export-to-csv",
10
- "pluginType": "core",
11
- "aliases": [],
12
- "examples": [
13
- "csdx cm:export-to-csv",
14
- "",
15
- "Exporting entries to csv",
16
- "csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type>",
17
- "",
18
- "Exporting entries to csv with stack name provided and branch name provided",
19
- "csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name> --branch <branch-name>",
20
- "",
21
- "Exporting organization users to csv",
22
- "csdx cm:export-to-csv --action <users> --org <org-uid>",
23
- "",
24
- "Exporting organization users to csv with organization name provided",
25
- "csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>"
26
- ],
27
- "flags": {
28
- "action": {
29
- "name": "action",
30
- "type": "option",
31
- "description": "Option to export data (entries, users)",
32
- "required": false,
33
- "multiple": false,
34
- "options": [
35
- "entries",
36
- "users"
37
- ]
38
- },
39
- "alias": {
40
- "name": "alias",
41
- "type": "option",
42
- "char": "a",
43
- "description": "Alias of the management token",
44
- "multiple": false
45
- },
46
- "org": {
47
- "name": "org",
48
- "type": "option",
49
- "description": "Provide organization UID to clone org users",
50
- "required": false,
51
- "multiple": false
52
- },
53
- "stack-name": {
54
- "name": "stack-name",
55
- "type": "option",
56
- "char": "n",
57
- "description": "Name of the stack that needs to be created as csv filename.",
58
- "required": false,
59
- "multiple": false
60
- },
61
- "stack-api-key": {
62
- "name": "stack-api-key",
63
- "type": "option",
64
- "char": "k",
65
- "description": "API key of the source stack",
66
- "required": false,
67
- "multiple": false
68
- },
69
- "org-name": {
70
- "name": "org-name",
71
- "type": "option",
72
- "description": "Name of the organization that needs to be created as csv filename.",
73
- "required": false,
74
- "multiple": false
75
- },
76
- "locale": {
77
- "name": "locale",
78
- "type": "option",
79
- "description": "Locale for which entries need to be exported",
80
- "required": false,
81
- "multiple": false
82
- },
83
- "content-type": {
84
- "name": "content-type",
85
- "type": "option",
86
- "description": "Content type for which entries needs to be exported",
87
- "required": false,
88
- "multiple": false
89
- },
90
- "branch": {
91
- "name": "branch",
92
- "type": "option",
93
- "description": "Branch from which entries need to be exported",
94
- "required": false,
95
- "multiple": false
96
- }
97
- },
98
- "args": {}
99
- }
100
- }
101
- }