@salesforce/plugin-sobject 1.3.6 → 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.
Files changed (42) hide show
  1. package/README.md +4 -4
  2. package/lib/commands/schema/generate/field.d.ts +2 -3
  3. package/lib/commands/schema/generate/field.js.map +1 -1
  4. package/lib/commands/schema/generate/platformevent.js +1 -1
  5. package/lib/commands/schema/generate/platformevent.js.map +1 -1
  6. package/lib/commands/schema/generate/sobject.js +1 -1
  7. package/lib/commands/schema/generate/sobject.js.map +1 -1
  8. package/lib/commands/schema/generate/tab.d.ts +1 -1
  9. package/lib/commands/schema/generate/tab.js +1 -1
  10. package/lib/commands/schema/generate/tab.js.map +1 -1
  11. package/lib/shared/convert.d.ts +1 -1
  12. package/lib/shared/fs.d.ts +1 -1
  13. package/lib/shared/prompts/apiName.d.ts +1 -1
  14. package/lib/shared/prompts/apiName.js +1 -1
  15. package/lib/shared/prompts/apiName.js.map +1 -1
  16. package/lib/shared/prompts/description.d.ts +1 -1
  17. package/lib/shared/prompts/description.js +1 -1
  18. package/lib/shared/prompts/description.js.map +1 -1
  19. package/lib/shared/prompts/fields/number.d.ts +1 -1
  20. package/lib/shared/prompts/fields/number.js +1 -1
  21. package/lib/shared/prompts/fields/number.js.map +1 -1
  22. package/lib/shared/prompts/nameField.d.ts +1 -1
  23. package/lib/shared/prompts/nameField.js +1 -1
  24. package/lib/shared/prompts/nameField.js.map +1 -1
  25. package/lib/shared/prompts/picklist.d.ts +1 -1
  26. package/lib/shared/prompts/picklist.js +7 -1
  27. package/lib/shared/prompts/picklist.js.map +1 -1
  28. package/lib/shared/prompts/plural.d.ts +1 -1
  29. package/lib/shared/prompts/plural.js +1 -1
  30. package/lib/shared/prompts/plural.js.map +1 -1
  31. package/lib/shared/prompts/relationshipField.d.ts +1 -1
  32. package/lib/shared/prompts/relationshipField.js +1 -1
  33. package/lib/shared/prompts/relationshipField.js.map +1 -1
  34. package/lib/shared/types.d.ts +4 -13
  35. package/npm-shrinkwrap.json +2448 -612
  36. package/oclif.lock +623 -335
  37. package/oclif.manifest.json +1 -1
  38. package/package.json +16 -16
  39. package/schemas/schema-generate-field.json +54 -19
  40. package/schemas/schema-generate-platformevent.json +20 -8
  41. package/schemas/schema-generate-sobject.json +71 -18
  42. package/schemas/schema-generate-tab.json +2 -2
@@ -304,5 +304,5 @@
304
304
  ]
305
305
  }
306
306
  },
307
- "version": "1.3.6"
307
+ "version": "1.4.0"
308
308
  }
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-sobject",
3
3
  "description": "Create objects, fields, tabs, etc",
4
- "version": "1.3.6",
4
+ "version": "1.4.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@inquirer/confirm": "^2.0.17",
9
- "@inquirer/input": "^1.2.16",
10
- "@inquirer/select": "^1.3.3",
11
- "@oclif/core": "^3.26.3",
12
- "@salesforce/core": "^7.3.1",
8
+ "@inquirer/confirm": "^3.1.6",
9
+ "@inquirer/input": "^2.1.6",
10
+ "@inquirer/select": "^2.3.2",
11
+ "@oclif/core": "^3.26.5",
12
+ "@salesforce/core": "^7.3.3",
13
13
  "@salesforce/kit": "^3.1.0",
14
- "@salesforce/sf-plugins-core": "^9.0.5",
14
+ "@salesforce/sf-plugins-core": "^9.0.7",
15
15
  "fast-glob": "^3.3.2",
16
16
  "fast-xml-parser": "^4.3.6",
17
17
  "js2xmlparser": "^4.0.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@oclif/plugin-command-snapshot": "^5.1.5",
21
- "@salesforce/cli-plugins-testkit": "^5.2.3",
20
+ "@oclif/plugin-command-snapshot": "^5.1.7",
21
+ "@salesforce/cli-plugins-testkit": "^5.3.2",
22
22
  "@salesforce/dev-scripts": "^9.0.0",
23
- "@salesforce/plugin-command-reference": "^3.0.76",
24
- "@types/inquirer": "^8.2.0",
25
- "eslint-plugin-sf-plugin": "^1.18.0",
26
- "oclif": "^4.7.2",
23
+ "@salesforce/plugin-command-reference": "^3.0.82",
24
+ "@salesforce/types": "^1.1.0",
25
+ "eslint-plugin-sf-plugin": "^1.18.3",
26
+ "oclif": "^4.10.2",
27
27
  "ts-node": "^10.9.2",
28
- "typescript": "^5.4.4"
28
+ "typescript": "^5.4.5"
29
29
  },
30
30
  "config": {},
31
31
  "engines": {
@@ -211,7 +211,7 @@
211
211
  "exports": "./lib/index.js",
212
212
  "type": "module",
213
213
  "sfdx": {
214
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.3.6.crt",
215
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.3.6.sig"
214
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.4.0.crt",
215
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.4.0.sig"
216
216
  }
217
217
  }
@@ -9,56 +9,56 @@
9
9
  "type": "object",
10
10
  "additionalProperties": false,
11
11
  "properties": {
12
- "displayLocationInDecimal": {
13
- "type": "boolean"
14
- },
15
12
  "type": {
16
- "type": ["string", "null"]
13
+ "$ref": "#/definitions/FieldType"
17
14
  },
18
15
  "label": {
19
- "type": ["string", "null"]
16
+ "type": "string"
20
17
  },
21
18
  "description": {
22
- "type": ["string", "null"]
19
+ "type": "string"
23
20
  },
24
21
  "trackHistory": {
25
- "type": ["boolean", "null"]
22
+ "type": "boolean"
26
23
  },
27
24
  "inlineHelpText": {
28
- "type": ["string", "null"]
25
+ "type": "string"
29
26
  },
30
27
  "required": {
31
- "type": ["boolean", "null"]
28
+ "type": "boolean"
32
29
  },
33
30
  "fullName": {
34
- "type": ["string", "null"]
31
+ "type": "string"
35
32
  },
36
33
  "scale": {
37
- "type": ["number", "null"]
34
+ "type": "number"
38
35
  },
39
36
  "precision": {
40
- "type": ["number", "null"]
37
+ "type": "number"
41
38
  },
42
39
  "visibleLines": {
43
- "type": ["number", "null"]
40
+ "type": "number"
44
41
  },
45
42
  "length": {
46
- "type": ["number", "null"]
43
+ "type": "number"
47
44
  },
48
45
  "unique": {
49
- "type": ["boolean", "null"]
46
+ "type": "boolean"
50
47
  },
51
48
  "externalId": {
52
- "type": ["boolean", "null"]
49
+ "type": "boolean"
53
50
  },
54
51
  "startingNumber": {
55
- "type": ["number", "null"]
52
+ "type": "number"
56
53
  },
57
54
  "defaultValue": {
58
- "type": ["string", "null"]
55
+ "type": "string"
59
56
  },
60
57
  "securityClassification": {
61
- "type": ["string", "null"]
58
+ "type": "string"
59
+ },
60
+ "displayLocationInDecimal": {
61
+ "type": "boolean"
62
62
  }
63
63
  },
64
64
  "required": ["type"]
@@ -69,6 +69,41 @@
69
69
  },
70
70
  "required": ["field", "path"],
71
71
  "additionalProperties": false
72
+ },
73
+ "FieldType": {
74
+ "type": "string",
75
+ "enum": [
76
+ "AutoNumber",
77
+ "Lookup",
78
+ "MasterDetail",
79
+ "Checkbox",
80
+ "Currency",
81
+ "Date",
82
+ "DateTime",
83
+ "Email",
84
+ "Number",
85
+ "Percent",
86
+ "Phone",
87
+ "Picklist",
88
+ "MultiselectPicklist",
89
+ "Text",
90
+ "TextArea",
91
+ "LongTextArea",
92
+ "Html",
93
+ "Url",
94
+ "EncryptedText",
95
+ "Summary",
96
+ "Hierarchy",
97
+ "File",
98
+ "MetadataRelationship",
99
+ "Location",
100
+ "ExternalLookup",
101
+ "IndirectLookup",
102
+ "CustomDataType",
103
+ "Time",
104
+ "Address",
105
+ "Array"
106
+ ]
72
107
  }
73
108
  }
74
109
  }
@@ -19,29 +19,41 @@
19
19
  "type": "object",
20
20
  "properties": {
21
21
  "fullName": {
22
- "type": ["string", "null"]
22
+ "type": "string"
23
23
  },
24
24
  "label": {
25
- "type": ["string", "null"]
25
+ "type": "string"
26
26
  },
27
27
  "deploymentStatus": {
28
- "type": ["string", "null"]
28
+ "$ref": "#/definitions/DeploymentStatus"
29
29
  },
30
30
  "description": {
31
- "type": ["string", "null"]
31
+ "type": "string"
32
32
  },
33
33
  "pluralLabel": {
34
- "type": ["string", "null"]
34
+ "type": "string"
35
35
  },
36
36
  "eventType": {
37
- "type": ["string", "null"]
37
+ "$ref": "#/definitions/PlatformEventType"
38
38
  },
39
39
  "publishBehavior": {
40
- "type": ["string", "null"]
40
+ "$ref": "#/definitions/PlatformEventPublishBehavior"
41
41
  }
42
42
  },
43
43
  "additionalProperties": false,
44
- "description": "There are a lot of properties that we don't, and some that jsforce thinks are mandatory that aren't. Many apply to the various sub-species (mdt, external, events)\n\nThis type represents a PlatformEvent that can deploy."
44
+ "description": "This type represents a PlatformEvent that can deploy."
45
+ },
46
+ "DeploymentStatus": {
47
+ "type": "string",
48
+ "enum": ["InDevelopment", "Deployed"]
49
+ },
50
+ "PlatformEventType": {
51
+ "type": "string",
52
+ "enum": ["HighVolume", "StandardVolume", "ExternalEvent"]
53
+ },
54
+ "PlatformEventPublishBehavior": {
55
+ "type": "string",
56
+ "enum": ["PublishAfterCommit", "PublishImmediately"]
45
57
  }
46
58
  }
47
59
  }
@@ -23,66 +23,119 @@
23
23
  "$ref": "#/definitions/NameField"
24
24
  },
25
25
  "label": {
26
- "type": ["string", "null"]
26
+ "type": "string"
27
27
  },
28
28
  "deploymentStatus": {
29
- "type": ["string", "null"]
29
+ "$ref": "#/definitions/DeploymentStatus"
30
30
  },
31
31
  "description": {
32
- "type": ["string", "null"]
32
+ "type": "string"
33
33
  },
34
34
  "enableHistory": {
35
- "type": ["boolean", "null"]
35
+ "type": "boolean"
36
36
  },
37
37
  "enableActivities": {
38
- "type": ["boolean", "null"]
38
+ "type": "boolean"
39
39
  },
40
40
  "enableBulkApi": {
41
- "type": ["boolean", "null"]
41
+ "type": "boolean"
42
42
  },
43
43
  "enableFeeds": {
44
- "type": ["boolean", "null"]
44
+ "type": "boolean"
45
45
  },
46
46
  "enableReports": {
47
- "type": ["boolean", "null"]
47
+ "type": "boolean"
48
48
  },
49
49
  "enableSearch": {
50
- "type": ["boolean", "null"]
50
+ "type": "boolean"
51
51
  },
52
52
  "enableStreamingApi": {
53
- "type": ["boolean", "null"]
53
+ "type": "boolean"
54
54
  },
55
55
  "enableSharing": {
56
- "type": ["boolean", "null"]
56
+ "type": "boolean"
57
57
  },
58
58
  "pluralLabel": {
59
- "type": ["string", "null"]
59
+ "type": "string"
60
60
  },
61
61
  "sharingModel": {
62
- "type": ["string", "null"]
62
+ "$ref": "#/definitions/SharingModel"
63
63
  },
64
64
  "fullName": {
65
- "type": ["string", "null"]
65
+ "type": "string"
66
66
  }
67
67
  },
68
68
  "required": ["nameField"],
69
- "description": "There are a lot of properties that we don't, and some that jsforce thinks are mandatory that aren't. Many apply to the various sub-species (mdt, external, events)\n\nThis type represents a \"classical\" CustomObject subset that can deploy."
69
+ "description": "This type represents a \"classical\" CustomObject subset that can deploy."
70
70
  },
71
71
  "NameField": {
72
72
  "type": "object",
73
73
  "properties": {
74
74
  "label": {
75
- "type": ["string", "null"]
75
+ "type": "string"
76
76
  },
77
77
  "type": {
78
- "type": ["string", "null"]
78
+ "$ref": "#/definitions/FieldType"
79
79
  },
80
80
  "displayFormat": {
81
- "type": ["string", "null"]
81
+ "type": "string"
82
82
  }
83
83
  },
84
84
  "additionalProperties": false,
85
85
  "description": "Used by classical CustomObject"
86
+ },
87
+ "FieldType": {
88
+ "type": "string",
89
+ "enum": [
90
+ "AutoNumber",
91
+ "Lookup",
92
+ "MasterDetail",
93
+ "Checkbox",
94
+ "Currency",
95
+ "Date",
96
+ "DateTime",
97
+ "Email",
98
+ "Number",
99
+ "Percent",
100
+ "Phone",
101
+ "Picklist",
102
+ "MultiselectPicklist",
103
+ "Text",
104
+ "TextArea",
105
+ "LongTextArea",
106
+ "Html",
107
+ "Url",
108
+ "EncryptedText",
109
+ "Summary",
110
+ "Hierarchy",
111
+ "File",
112
+ "MetadataRelationship",
113
+ "Location",
114
+ "ExternalLookup",
115
+ "IndirectLookup",
116
+ "CustomDataType",
117
+ "Time",
118
+ "Address",
119
+ "Array"
120
+ ]
121
+ },
122
+ "DeploymentStatus": {
123
+ "type": "string",
124
+ "enum": ["InDevelopment", "Deployed"]
125
+ },
126
+ "SharingModel": {
127
+ "type": "string",
128
+ "enum": [
129
+ "Private",
130
+ "Read",
131
+ "ReadSelect",
132
+ "ReadWrite",
133
+ "ReadWriteTransfer",
134
+ "FullAccess",
135
+ "ControlledByParent",
136
+ "ControlledByLeadOrContact",
137
+ "ControlledByCampaign"
138
+ ]
86
139
  }
87
140
  }
88
141
  }
@@ -9,10 +9,10 @@
9
9
  "type": "object",
10
10
  "properties": {
11
11
  "customObject": {
12
- "type": ["boolean", "null"]
12
+ "type": "boolean"
13
13
  },
14
14
  "motif": {
15
- "type": ["string", "null"]
15
+ "type": "string"
16
16
  }
17
17
  },
18
18
  "additionalProperties": false