@salesforce/plugin-sobject 0.2.6 → 0.2.8
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 +38 -18
- package/oclif.manifest.json +1 -1
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -113,18 +113,18 @@ sf plugins
|
|
|
113
113
|
|
|
114
114
|
<!-- commands -->
|
|
115
115
|
|
|
116
|
-
- [`sf generate
|
|
117
|
-
- [`sf generate
|
|
118
|
-
- [`sf generate
|
|
119
|
-
- [`sf generate
|
|
116
|
+
- [`sf schema generate field`](#sf-schema-generate-field)
|
|
117
|
+
- [`sf schema generate platformevent`](#sf-schema-generate-platformevent)
|
|
118
|
+
- [`sf schema generate sobject`](#sf-schema-generate-sobject)
|
|
119
|
+
- [`sf schema generate tab`](#sf-schema-generate-tab)
|
|
120
120
|
|
|
121
|
-
## `sf generate
|
|
121
|
+
## `sf schema generate field`
|
|
122
122
|
|
|
123
123
|
Generate metadata source files for a new custom field on a specified object.
|
|
124
124
|
|
|
125
125
|
```
|
|
126
126
|
USAGE
|
|
127
|
-
$ sf generate
|
|
127
|
+
$ sf schema generate field -l <value> [-o <value>]
|
|
128
128
|
|
|
129
129
|
FLAGS
|
|
130
130
|
-l, --label=<value> (required) The field's label.
|
|
@@ -144,14 +144,17 @@ DESCRIPTION
|
|
|
144
144
|
your org. To create a custom object, run the "sf generate metadata sobject" command or use the Object Manager UI in
|
|
145
145
|
your Salesforce org.
|
|
146
146
|
|
|
147
|
+
ALIASES
|
|
148
|
+
$ sf generate metadata field
|
|
149
|
+
|
|
147
150
|
EXAMPLES
|
|
148
151
|
Create a field with the specified label; the command prompts you for the object:
|
|
149
152
|
|
|
150
|
-
$ sf generate
|
|
153
|
+
$ sf schema generate field --label "My Field"
|
|
151
154
|
|
|
152
155
|
Specify the local path to the object's folder:
|
|
153
156
|
|
|
154
|
-
$ sf generate
|
|
157
|
+
$ sf schema generate field --label "My Field" --object force-app/main/default/objects/MyObject__c
|
|
155
158
|
|
|
156
159
|
FLAG DESCRIPTIONS
|
|
157
160
|
-o, --object=<value> The directory that contains the object's source files.
|
|
@@ -164,13 +167,15 @@ FLAG DESCRIPTIONS
|
|
|
164
167
|
If you don't specify this flag, the command prompts you to choose from your local objects.
|
|
165
168
|
```
|
|
166
169
|
|
|
167
|
-
|
|
170
|
+
_See code: [src/commands/schema/generate/field.ts](https://github.com/salesforcecli/plugin-sobject/blob/0.2.8/src/commands/schema/generate/field.ts)_
|
|
171
|
+
|
|
172
|
+
## `sf schema generate platformevent`
|
|
168
173
|
|
|
169
174
|
Generate metadata source files for a new platform event.
|
|
170
175
|
|
|
171
176
|
```
|
|
172
177
|
USAGE
|
|
173
|
-
$ sf generate
|
|
178
|
+
$ sf schema generate platformevent -l <value>
|
|
174
179
|
|
|
175
180
|
FLAGS
|
|
176
181
|
-l, --label=<value> (required) The platform event's label.
|
|
@@ -182,19 +187,24 @@ DESCRIPTION
|
|
|
182
187
|
event's label with the "--label" flag. The command uses this label to provide intelligent suggestions for other event
|
|
183
188
|
properties, such as its API name.
|
|
184
189
|
|
|
190
|
+
ALIASES
|
|
191
|
+
$ sf generate metadata platformevent
|
|
192
|
+
|
|
185
193
|
EXAMPLES
|
|
186
194
|
Create a platform event with the specified label:
|
|
187
195
|
|
|
188
|
-
$ sf generate
|
|
196
|
+
$ sf schema generate platformevent --label "My Platform Event"
|
|
189
197
|
```
|
|
190
198
|
|
|
191
|
-
|
|
199
|
+
_See code: [src/commands/schema/generate/platformevent.ts](https://github.com/salesforcecli/plugin-sobject/blob/0.2.8/src/commands/schema/generate/platformevent.ts)_
|
|
200
|
+
|
|
201
|
+
## `sf schema generate sobject`
|
|
192
202
|
|
|
193
203
|
Generate metadata source files for a new custom object.
|
|
194
204
|
|
|
195
205
|
```
|
|
196
206
|
USAGE
|
|
197
|
-
$ sf generate
|
|
207
|
+
$ sf schema generate sobject -l <value> [-f]
|
|
198
208
|
|
|
199
209
|
FLAGS
|
|
200
210
|
-f, --use-default-features Enable all optional features without prompting.
|
|
@@ -213,14 +223,17 @@ DESCRIPTION
|
|
|
213
223
|
To reduce the number of prompts, use the "--use-default-features" flag to automatically enable some features, such as
|
|
214
224
|
reporting and search on the object.
|
|
215
225
|
|
|
226
|
+
ALIASES
|
|
227
|
+
$ sf generate metadata sobject
|
|
228
|
+
|
|
216
229
|
EXAMPLES
|
|
217
230
|
Create a custom object with the specified label and be prompted for additional information:
|
|
218
231
|
|
|
219
|
-
$ sf generate
|
|
232
|
+
$ sf schema generate sobject --label "My Object"
|
|
220
233
|
|
|
221
234
|
Create a custom object and enable optional features without prompting:
|
|
222
235
|
|
|
223
|
-
$ sf generate
|
|
236
|
+
$ sf schema generate sobject --label "My Object" --use-default-features
|
|
224
237
|
|
|
225
238
|
FLAG DESCRIPTIONS
|
|
226
239
|
-f, --use-default-features Enable all optional features without prompting.
|
|
@@ -237,13 +250,15 @@ FLAG DESCRIPTIONS
|
|
|
237
250
|
* Streaming API: With Bulk API and Sharing, classifies the custom object as an Enterprise Application object.
|
|
238
251
|
```
|
|
239
252
|
|
|
240
|
-
|
|
253
|
+
_See code: [src/commands/schema/generate/sobject.ts](https://github.com/salesforcecli/plugin-sobject/blob/0.2.8/src/commands/schema/generate/sobject.ts)_
|
|
254
|
+
|
|
255
|
+
## `sf schema generate tab`
|
|
241
256
|
|
|
242
257
|
Generate the metadata source files for a new custom tab on a custom object.
|
|
243
258
|
|
|
244
259
|
```
|
|
245
260
|
USAGE
|
|
246
|
-
$ sf generate
|
|
261
|
+
$ sf schema generate tab -o <value> -d <value> -i <value> [--json]
|
|
247
262
|
|
|
248
263
|
FLAGS
|
|
249
264
|
-d, --directory=<value> (required) Path to a "tabs" directory that will contain the source files for your new tab.
|
|
@@ -264,10 +279,13 @@ DESCRIPTION
|
|
|
264
279
|
required flags. The source files for the custom object for which you're generating a tab don't need to exist in your
|
|
265
280
|
local project.
|
|
266
281
|
|
|
282
|
+
ALIASES
|
|
283
|
+
$ sf generate metadata tab
|
|
284
|
+
|
|
267
285
|
EXAMPLES
|
|
268
286
|
Create a tab on the MyObject__c custom object:
|
|
269
287
|
|
|
270
|
-
$ sf generate
|
|
288
|
+
$ sf schema generate tab --object MyObject__c --icon 54 --directory force-app/main/default/tabs
|
|
271
289
|
|
|
272
290
|
FLAG DESCRIPTIONS
|
|
273
291
|
-i, --icon=<value> Number from 1 to 100 that specifies the color scheme and icon for the custom tab.
|
|
@@ -279,4 +297,6 @@ FLAG DESCRIPTIONS
|
|
|
279
297
|
The API name for a custom object always ends in "__c", such as "MyObject__c".
|
|
280
298
|
```
|
|
281
299
|
|
|
300
|
+
_See code: [src/commands/schema/generate/tab.ts](https://github.com/salesforcecli/plugin-sobject/blob/0.2.8/src/commands/schema/generate/tab.ts)_
|
|
301
|
+
|
|
282
302
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-sobject",
|
|
3
3
|
"description": "Create objects, fields, tabs, etc",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^2.
|
|
8
|
+
"@oclif/core": "^2.15.0",
|
|
9
9
|
"@salesforce/core": "^5.2.0",
|
|
10
10
|
"@salesforce/kit": "^3.0.9",
|
|
11
|
-
"@salesforce/sf-plugins-core": "^3.1.
|
|
11
|
+
"@salesforce/sf-plugins-core": "^3.1.22",
|
|
12
12
|
"change-case": "^4.1.2",
|
|
13
13
|
"fast-glob": "^3.3.1",
|
|
14
14
|
"fast-xml-parser": "^4.2.7",
|
|
@@ -17,33 +17,33 @@
|
|
|
17
17
|
"tslib": "^2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@oclif/plugin-command-snapshot": "^4.0.
|
|
21
|
-
"@oclif/test": "^2.
|
|
22
|
-
"@salesforce/cli-plugins-testkit": "^4.3.
|
|
20
|
+
"@oclif/plugin-command-snapshot": "^4.0.14",
|
|
21
|
+
"@oclif/test": "^2.5.4",
|
|
22
|
+
"@salesforce/cli-plugins-testkit": "^4.3.6",
|
|
23
23
|
"@salesforce/dev-config": "^4.0.1",
|
|
24
|
-
"@salesforce/dev-scripts": "^5.
|
|
25
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
24
|
+
"@salesforce/dev-scripts": "^5.10.0",
|
|
25
|
+
"@salesforce/plugin-command-reference": "^3.0.33",
|
|
26
26
|
"@salesforce/prettier-config": "^0.0.3",
|
|
27
|
-
"@salesforce/ts-sinon": "1.4.
|
|
27
|
+
"@salesforce/ts-sinon": "1.4.15",
|
|
28
28
|
"@swc/core": "^1.3.37",
|
|
29
29
|
"@types/inquirer": "^8.2.0",
|
|
30
30
|
"@types/shelljs": "^0.8.12",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
32
32
|
"@typescript-eslint/parser": "^5.61.0",
|
|
33
|
-
"chai": "^4.3.
|
|
34
|
-
"eslint": "^8.
|
|
35
|
-
"eslint-config-prettier": "^8.
|
|
33
|
+
"chai": "^4.3.8",
|
|
34
|
+
"eslint": "^8.50.0",
|
|
35
|
+
"eslint-config-prettier": "^8.10.0",
|
|
36
36
|
"eslint-config-salesforce": "^2.0.2",
|
|
37
37
|
"eslint-config-salesforce-license": "^0.2.0",
|
|
38
38
|
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
39
39
|
"eslint-plugin-header": "^3.1.1",
|
|
40
|
-
"eslint-plugin-import": "2.28.
|
|
40
|
+
"eslint-plugin-import": "2.28.1",
|
|
41
41
|
"eslint-plugin-jsdoc": "^43.0.5",
|
|
42
|
-
"eslint-plugin-sf-plugin": "^1.16.
|
|
42
|
+
"eslint-plugin-sf-plugin": "^1.16.7",
|
|
43
43
|
"husky": "^7.0.4",
|
|
44
44
|
"mocha": "^9.2.2",
|
|
45
45
|
"nyc": "^15.1.0",
|
|
46
|
-
"oclif": "^3.
|
|
46
|
+
"oclif": "^3.17.1",
|
|
47
47
|
"prettier": "^2.8.8",
|
|
48
48
|
"pretty-quick": "^3.1.3",
|
|
49
49
|
"shelljs": "^0.8.4",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"sinon": "10.0.0",
|
|
52
52
|
"ts-node": "^10.9.1",
|
|
53
53
|
"typescript": "^4.9.5",
|
|
54
|
-
"wireit": "^0.
|
|
54
|
+
"wireit": "^0.14.0"
|
|
55
55
|
},
|
|
56
56
|
"config": {},
|
|
57
57
|
"engines": {
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
"sfdx": {
|
|
226
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/0.2.
|
|
227
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/0.2.
|
|
226
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/0.2.8.crt",
|
|
227
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/0.2.8.sig"
|
|
228
228
|
}
|
|
229
229
|
}
|