Skip to content

Commit 392a756

Browse files
fix: add new command
1 parent b61b0b6 commit 392a756

3 files changed

Lines changed: 53 additions & 1 deletion

File tree

command-snapshot.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"alias": [],
4+
"command": "org:create:agent-user",
5+
"flagAliases": [],
6+
"flagChars": ["o"],
7+
"flags": ["api-version", "base-username", "first-name", "flags-dir", "json", "last-name", "target-org", "username"],
8+
"plugin": "@salesforce/plugin-org"
9+
},
210
{
311
"alias": ["env:create:sandbox"],
412
"command": "org:create:sandbox",
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$ref": "#/definitions/AgentUserCreateResponse",
4+
"definitions": {
5+
"AgentUserCreateResponse": {
6+
"type": "object",
7+
"properties": {
8+
"userId": {
9+
"type": "string"
10+
},
11+
"username": {
12+
"type": "string"
13+
},
14+
"profileId": {
15+
"type": "string"
16+
},
17+
"permissionSetsAssigned": {
18+
"type": "array",
19+
"items": {
20+
"type": "string"
21+
}
22+
},
23+
"permissionSetErrors": {
24+
"type": "array",
25+
"items": {
26+
"type": "object",
27+
"properties": {
28+
"permissionSet": {
29+
"type": "string"
30+
},
31+
"error": {
32+
"type": "string"
33+
}
34+
},
35+
"required": ["permissionSet", "error"],
36+
"additionalProperties": false
37+
}
38+
}
39+
},
40+
"required": ["userId", "username", "profileId", "permissionSetsAssigned", "permissionSetErrors"],
41+
"additionalProperties": false
42+
}
43+
}
44+
}

src/commands/org/create/agent-user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
2121
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
2222
const messages = Messages.loadMessages('@salesforce/plugin-org', 'create_agent_user');
2323

24-
type AgentUserCreateResponse = {
24+
export type AgentUserCreateResponse = {
2525
userId: string;
2626
username: string;
2727
profileId: string;

0 commit comments

Comments
 (0)