@marsson/ciutils 0.0.12 → 0.0.14
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 +51 -2
- package/lib/commands/create/file.d.ts +16 -0
- package/lib/commands/create/file.js +87 -0
- package/lib/commands/create/file.js.map +1 -0
- package/lib/commands/remove/assignments.d.ts +1 -1
- package/lib/commands/remove/assignments.js +1 -1
- package/lib/commands/remove/assignments.js.map +1 -1
- package/lib/commands/reporton/deployment.js +1 -0
- package/lib/commands/reporton/deployment.js.map +1 -1
- package/lib/utils/fileToContentVersion.d.ts +10 -0
- package/lib/utils/fileToContentVersion.js +31 -0
- package/lib/utils/fileToContentVersion.js.map +1 -0
- package/messages/data.create.file.md +57 -0
- package/oclif.lock +2530 -5524
- package/oclif.manifest.json +100 -1
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
@@ -1,5 +1,104 @@
|
|
1
1
|
{
|
2
2
|
"commands": {
|
3
|
+
"create:file": {
|
4
|
+
"aliases": [],
|
5
|
+
"args": {},
|
6
|
+
"description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
|
7
|
+
"examples": [
|
8
|
+
"Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
|
9
|
+
"Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
|
10
|
+
"Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
|
11
|
+
],
|
12
|
+
"flags": {
|
13
|
+
"json": {
|
14
|
+
"description": "Format output as json.",
|
15
|
+
"helpGroup": "GLOBAL",
|
16
|
+
"name": "json",
|
17
|
+
"allowNo": false,
|
18
|
+
"type": "boolean"
|
19
|
+
},
|
20
|
+
"flags-dir": {
|
21
|
+
"helpGroup": "GLOBAL",
|
22
|
+
"name": "flags-dir",
|
23
|
+
"summary": "Import flag values from a directory.",
|
24
|
+
"hasDynamicHelp": false,
|
25
|
+
"multiple": false,
|
26
|
+
"type": "option"
|
27
|
+
},
|
28
|
+
"target-org": {
|
29
|
+
"char": "o",
|
30
|
+
"name": "target-org",
|
31
|
+
"noCacheDefault": true,
|
32
|
+
"required": true,
|
33
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
34
|
+
"hasDynamicHelp": true,
|
35
|
+
"multiple": false,
|
36
|
+
"type": "option"
|
37
|
+
},
|
38
|
+
"api-version": {
|
39
|
+
"description": "Override the api version used for api requests made by this command",
|
40
|
+
"name": "api-version",
|
41
|
+
"hasDynamicHelp": false,
|
42
|
+
"multiple": false,
|
43
|
+
"type": "option"
|
44
|
+
},
|
45
|
+
"title": {
|
46
|
+
"char": "t",
|
47
|
+
"name": "title",
|
48
|
+
"required": false,
|
49
|
+
"summary": "New title given to the file (ContentDocument) after it's uploaded.",
|
50
|
+
"hasDynamicHelp": false,
|
51
|
+
"multiple": false,
|
52
|
+
"type": "option"
|
53
|
+
},
|
54
|
+
"file": {
|
55
|
+
"char": "f",
|
56
|
+
"name": "file",
|
57
|
+
"required": true,
|
58
|
+
"summary": "Path of file to upload.",
|
59
|
+
"hasDynamicHelp": false,
|
60
|
+
"multiple": false,
|
61
|
+
"type": "option"
|
62
|
+
},
|
63
|
+
"parent-id": {
|
64
|
+
"char": "i",
|
65
|
+
"name": "parent-id",
|
66
|
+
"summary": "ID of the record to attach the file to.",
|
67
|
+
"hasDynamicHelp": false,
|
68
|
+
"multiple": false,
|
69
|
+
"type": "option"
|
70
|
+
},
|
71
|
+
"created-date": {
|
72
|
+
"char": "c",
|
73
|
+
"name": "created-date",
|
74
|
+
"summary": "ID of the record to attach the file to.",
|
75
|
+
"hasDynamicHelp": false,
|
76
|
+
"multiple": false,
|
77
|
+
"type": "option"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"hasDynamicHelp": true,
|
81
|
+
"hiddenAliases": [],
|
82
|
+
"id": "create:file",
|
83
|
+
"pluginAlias": "@marsson/ciutils",
|
84
|
+
"pluginName": "@marsson/ciutils",
|
85
|
+
"pluginType": "core",
|
86
|
+
"strict": true,
|
87
|
+
"summary": "Upload a local file to an org.",
|
88
|
+
"enableJsonFlag": true,
|
89
|
+
"isESM": true,
|
90
|
+
"relativePath": [
|
91
|
+
"lib",
|
92
|
+
"commands",
|
93
|
+
"create",
|
94
|
+
"file.js"
|
95
|
+
],
|
96
|
+
"aliasPermutations": [],
|
97
|
+
"permutations": [
|
98
|
+
"create:file",
|
99
|
+
"file:create"
|
100
|
+
]
|
101
|
+
},
|
3
102
|
"remove:assignments": {
|
4
103
|
"aliases": [],
|
5
104
|
"args": {},
|
@@ -162,5 +261,5 @@
|
|
162
261
|
]
|
163
262
|
}
|
164
263
|
},
|
165
|
-
"version": "0.0.
|
264
|
+
"version": "0.0.14"
|
166
265
|
}
|
package/package.json
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@marsson/ciutils",
|
3
3
|
"description": " Utilities for enabling continuous integration for Salesforce development under SF CLI",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.14",
|
5
5
|
"dependencies": {
|
6
6
|
"@oclif/core": "^3.26.2",
|
7
7
|
"@salesforce/core": "^7.2.0",
|
8
8
|
"@salesforce/sf-plugins-core": "^9.0.1",
|
9
9
|
"cli-progress": "^3.12.0",
|
10
10
|
"cli-table3": "^0.6.3",
|
11
|
+
"form-data": "^4.0.0",
|
11
12
|
"jsforce": "2.0.0-beta.29",
|
12
13
|
"moment": "^2.30.1",
|
13
14
|
"yarn": "^1.22.22"
|