@salesforce/plugin-sobject 1.4.0 → 1.4.1

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 CHANGED
@@ -164,7 +164,7 @@ FLAG DESCRIPTIONS
164
164
  If you don't specify this flag, the command prompts you to choose from your local objects.
165
165
  ```
166
166
 
167
- _See code: [src/commands/schema/generate/field.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.0/src/commands/schema/generate/field.ts)_
167
+ _See code: [src/commands/schema/generate/field.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.1/src/commands/schema/generate/field.ts)_
168
168
 
169
169
  ## `sf schema generate platformevent`
170
170
 
@@ -196,7 +196,7 @@ EXAMPLES
196
196
  $ sf schema generate platformevent --label "My Platform Event"
197
197
  ```
198
198
 
199
- _See code: [src/commands/schema/generate/platformevent.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.0/src/commands/schema/generate/platformevent.ts)_
199
+ _See code: [src/commands/schema/generate/platformevent.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.1/src/commands/schema/generate/platformevent.ts)_
200
200
 
201
201
  ## `sf schema generate sobject`
202
202
 
@@ -253,7 +253,7 @@ FLAG DESCRIPTIONS
253
253
  - Streaming API: With Bulk API and Sharing, classifies the custom object as an Enterprise Application object.
254
254
  ```
255
255
 
256
- _See code: [src/commands/schema/generate/sobject.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.0/src/commands/schema/generate/sobject.ts)_
256
+ _See code: [src/commands/schema/generate/sobject.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.1/src/commands/schema/generate/sobject.ts)_
257
257
 
258
258
  ## `sf schema generate tab`
259
259
 
@@ -301,6 +301,6 @@ FLAG DESCRIPTIONS
301
301
  The API name for a custom object always ends in `__c`, such as `MyObject__c`.
302
302
  ```
303
303
 
304
- _See code: [src/commands/schema/generate/tab.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.0/src/commands/schema/generate/tab.ts)_
304
+ _See code: [src/commands/schema/generate/tab.ts](https://github.com/salesforcecli/plugin-sobject/blob/1.4.1/src/commands/schema/generate/tab.ts)_
305
305
 
306
306
  <!-- commandsstop -->
@@ -1,6 +1,6 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
2
  import { Messages } from '@salesforce/core';
3
- import type { CustomField } from '../../../../node_modules/@salesforce/types/lib/metadata.js';
3
+ import type { CustomField } from '@salesforce/types/metadata';
4
4
  export declare const messages: Messages<string>;
5
5
  declare const supportedFieldTypesCustomObject: readonly ["AutoNumber", "Checkbox", "Currency", "DateTime", "Date", "Email", "Html", "Location", "LongTextArea", "Lookup", "MasterDetail", "Number", "Phone", "Picklist", "Text", "Time", "Url"];
6
6
  type SaveableCustomField = Pick<CustomField, 'label' | 'description' | 'trackHistory' | 'inlineHelpText' | 'required' | 'fullName' | 'type' | 'scale' | 'precision' | 'visibleLines' | 'length' | 'unique' | 'externalId' | 'startingNumber' | 'defaultValue' | 'securityClassification' | 'displayLocationInDecimal'> & {
@@ -1,5 +1,5 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import type { CustomTab } from '../../../../node_modules/@salesforce/types/lib/metadata.js';
2
+ import type { CustomTab } from '@salesforce/types/metadata';
3
3
  export type GenerateTabResult = {
4
4
  tab: Pick<CustomTab, 'customObject' | 'motif'>;
5
5
  path: string;
@@ -1,6 +1,6 @@
1
1
  import type { IOptions } from 'js2xmlparser/lib/options.js';
2
2
  import type { JsonMap } from '@salesforce/ts-types';
3
- import type { CustomObject, CustomField } from '../../node_modules/@salesforce/types/lib/metadata.js';
3
+ import type { CustomObject, CustomField } from '@salesforce/types/metadata';
4
4
  type WriteJSONasXMLInputs = {
5
5
  json: CustomField | CustomObject | JsonMap;
6
6
  type: string;
@@ -1,4 +1,4 @@
1
- import type { CustomObject } from '../../node_modules/@salesforce/types/lib/metadata.js';
1
+ import type { CustomObject } from '@salesforce/types/metadata';
2
2
  import { SaveableCustomObject, SaveablePlatformEvent } from './types.js';
3
3
  /**
4
4
  * @param targetPaths typically your pkgDirs or project path
@@ -1,2 +1,2 @@
1
- import type { ValueSet, CustomValue } from '../../../node_modules/@salesforce/types/lib/metadata.js';
1
+ import type { ValueSet, CustomValue } from '@salesforce/types/metadata';
2
2
  export declare const picklistPrompts: (soFar?: CustomValue[]) => Promise<Omit<ValueSet, 'valueSettings'>>;
@@ -1,5 +1,5 @@
1
1
  import { type NamedPackageDir } from '@salesforce/core';
2
- import type { CustomField } from '../../../node_modules/@salesforce/types/lib/metadata.js';
2
+ import type { CustomField } from '@salesforce/types/metadata';
3
3
  type RelationshipFieldProperties = Pick<CustomField, 'referenceTo' | 'relationshipLabel' | 'relationshipName' | 'deleteConstraint' | 'reparentableMasterDetail' | 'writeRequiresMasterRead' | 'relationshipOrder'>;
4
4
  export declare const relationshipFieldPrompts: ({ type, packageDirs, childObjectFolderPath, }: {
5
5
  type: 'MasterDetail' | 'Lookup';
@@ -1,4 +1,4 @@
1
- import type { CustomObject, CustomField } from '../../node_modules/@salesforce/types/lib/metadata.js';
1
+ import type { CustomObject, CustomField } from '@salesforce/types/metadata';
2
2
  /** Used by classical CustomObject */
3
3
  export type NameField = Pick<CustomField, 'label' | 'type' | 'displayFormat'>;
4
4
  /** This type represents a PlatformEvent that can deploy.*/
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-sobject",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-sobject",
9
- "version": "1.4.0",
9
+ "version": "1.4.1",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@inquirer/confirm": "^3.1.6",
package/oclif.lock CHANGED
@@ -6892,7 +6892,16 @@ srcset@^5.0.0:
6892
6892
  resolved "https://registry.yarnpkg.com/srcset/-/srcset-5.0.0.tgz#9df6c3961b5b44a02532ce6ae4544832609e2e3f"
6893
6893
  integrity sha512-SqEZaAEhe0A6ETEa9O1IhSPC7MdvehZtCnTR0AftXk3QhY2UNgb+NApFOUPZILXk/YTDfFxMTNJOBpzrJsEdIA==
6894
6894
 
6895
- "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
6895
+ "string-width-cjs@npm:string-width@^4.2.0":
6896
+ version "4.2.3"
6897
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
6898
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
6899
+ dependencies:
6900
+ emoji-regex "^8.0.0"
6901
+ is-fullwidth-code-point "^3.0.0"
6902
+ strip-ansi "^6.0.1"
6903
+
6904
+ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
6896
6905
  version "4.2.3"
6897
6906
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
6898
6907
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -6951,7 +6960,14 @@ string_decoder@~1.1.1:
6951
6960
  dependencies:
6952
6961
  safe-buffer "~5.1.0"
6953
6962
 
6954
- "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6963
+ "strip-ansi-cjs@npm:strip-ansi@^6.0.1":
6964
+ version "6.0.1"
6965
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
6966
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
6967
+ dependencies:
6968
+ ansi-regex "^5.0.1"
6969
+
6970
+ strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6955
6971
  version "6.0.1"
6956
6972
  resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
6957
6973
  integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -7489,7 +7505,7 @@ workerpool@6.2.1:
7489
7505
  resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"
7490
7506
  integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
7491
7507
 
7492
- "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
7508
+ "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
7493
7509
  version "7.0.0"
7494
7510
  resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
7495
7511
  integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -7507,6 +7523,15 @@ wrap-ansi@^6.2.0:
7507
7523
  string-width "^4.1.0"
7508
7524
  strip-ansi "^6.0.0"
7509
7525
 
7526
+ wrap-ansi@^7.0.0:
7527
+ version "7.0.0"
7528
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
7529
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
7530
+ dependencies:
7531
+ ansi-styles "^4.0.0"
7532
+ string-width "^4.1.0"
7533
+ strip-ansi "^6.0.0"
7534
+
7510
7535
  wrap-ansi@^8.1.0:
7511
7536
  version "8.1.0"
7512
7537
  resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
@@ -304,5 +304,5 @@
304
304
  ]
305
305
  }
306
306
  },
307
- "version": "1.4.0"
307
+ "version": "1.4.1"
308
308
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-sobject",
3
3
  "description": "Create objects, fields, tabs, etc",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -150,7 +150,6 @@
150
150
  "test:command-reference",
151
151
  "test:deprecation-policy",
152
152
  "lint",
153
- "test:json-schema",
154
153
  "link-check"
155
154
  ]
156
155
  },
@@ -211,7 +210,7 @@
211
210
  "exports": "./lib/index.js",
212
211
  "type": "module",
213
212
  "sfdx": {
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"
213
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.4.1.crt",
214
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-sobject/1.4.1.sig"
216
215
  }
217
216
  }
@@ -1,109 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/FieldGenerateResult",
4
- "definitions": {
5
- "FieldGenerateResult": {
6
- "type": "object",
7
- "properties": {
8
- "field": {
9
- "type": "object",
10
- "additionalProperties": false,
11
- "properties": {
12
- "type": {
13
- "$ref": "#/definitions/FieldType"
14
- },
15
- "label": {
16
- "type": "string"
17
- },
18
- "description": {
19
- "type": "string"
20
- },
21
- "trackHistory": {
22
- "type": "boolean"
23
- },
24
- "inlineHelpText": {
25
- "type": "string"
26
- },
27
- "required": {
28
- "type": "boolean"
29
- },
30
- "fullName": {
31
- "type": "string"
32
- },
33
- "scale": {
34
- "type": "number"
35
- },
36
- "precision": {
37
- "type": "number"
38
- },
39
- "visibleLines": {
40
- "type": "number"
41
- },
42
- "length": {
43
- "type": "number"
44
- },
45
- "unique": {
46
- "type": "boolean"
47
- },
48
- "externalId": {
49
- "type": "boolean"
50
- },
51
- "startingNumber": {
52
- "type": "number"
53
- },
54
- "defaultValue": {
55
- "type": "string"
56
- },
57
- "securityClassification": {
58
- "type": "string"
59
- },
60
- "displayLocationInDecimal": {
61
- "type": "boolean"
62
- }
63
- },
64
- "required": ["type"]
65
- },
66
- "path": {
67
- "type": "string"
68
- }
69
- },
70
- "required": ["field", "path"],
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
- ]
107
- }
108
- }
109
- }
@@ -1,59 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/PlatformEventGenerateResult",
4
- "definitions": {
5
- "PlatformEventGenerateResult": {
6
- "type": "object",
7
- "properties": {
8
- "object": {
9
- "$ref": "#/definitions/SaveablePlatformEvent"
10
- },
11
- "path": {
12
- "type": "string"
13
- }
14
- },
15
- "required": ["object", "path"],
16
- "additionalProperties": false
17
- },
18
- "SaveablePlatformEvent": {
19
- "type": "object",
20
- "properties": {
21
- "fullName": {
22
- "type": "string"
23
- },
24
- "label": {
25
- "type": "string"
26
- },
27
- "deploymentStatus": {
28
- "$ref": "#/definitions/DeploymentStatus"
29
- },
30
- "description": {
31
- "type": "string"
32
- },
33
- "pluralLabel": {
34
- "type": "string"
35
- },
36
- "eventType": {
37
- "$ref": "#/definitions/PlatformEventType"
38
- },
39
- "publishBehavior": {
40
- "$ref": "#/definitions/PlatformEventPublishBehavior"
41
- }
42
- },
43
- "additionalProperties": false,
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"]
57
- }
58
- }
59
- }
@@ -1,141 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/CustomObjectGenerateResult",
4
- "definitions": {
5
- "CustomObjectGenerateResult": {
6
- "type": "object",
7
- "properties": {
8
- "object": {
9
- "$ref": "#/definitions/SaveableCustomObject"
10
- },
11
- "path": {
12
- "type": "string"
13
- }
14
- },
15
- "required": ["object", "path"],
16
- "additionalProperties": false
17
- },
18
- "SaveableCustomObject": {
19
- "type": "object",
20
- "additionalProperties": false,
21
- "properties": {
22
- "nameField": {
23
- "$ref": "#/definitions/NameField"
24
- },
25
- "label": {
26
- "type": "string"
27
- },
28
- "deploymentStatus": {
29
- "$ref": "#/definitions/DeploymentStatus"
30
- },
31
- "description": {
32
- "type": "string"
33
- },
34
- "enableHistory": {
35
- "type": "boolean"
36
- },
37
- "enableActivities": {
38
- "type": "boolean"
39
- },
40
- "enableBulkApi": {
41
- "type": "boolean"
42
- },
43
- "enableFeeds": {
44
- "type": "boolean"
45
- },
46
- "enableReports": {
47
- "type": "boolean"
48
- },
49
- "enableSearch": {
50
- "type": "boolean"
51
- },
52
- "enableStreamingApi": {
53
- "type": "boolean"
54
- },
55
- "enableSharing": {
56
- "type": "boolean"
57
- },
58
- "pluralLabel": {
59
- "type": "string"
60
- },
61
- "sharingModel": {
62
- "$ref": "#/definitions/SharingModel"
63
- },
64
- "fullName": {
65
- "type": "string"
66
- }
67
- },
68
- "required": ["nameField"],
69
- "description": "This type represents a \"classical\" CustomObject subset that can deploy."
70
- },
71
- "NameField": {
72
- "type": "object",
73
- "properties": {
74
- "label": {
75
- "type": "string"
76
- },
77
- "type": {
78
- "$ref": "#/definitions/FieldType"
79
- },
80
- "displayFormat": {
81
- "type": "string"
82
- }
83
- },
84
- "additionalProperties": false,
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
- ]
139
- }
140
- }
141
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/GenerateTabResult",
4
- "definitions": {
5
- "GenerateTabResult": {
6
- "type": "object",
7
- "properties": {
8
- "tab": {
9
- "type": "object",
10
- "properties": {
11
- "customObject": {
12
- "type": "boolean"
13
- },
14
- "motif": {
15
- "type": "string"
16
- }
17
- },
18
- "additionalProperties": false
19
- },
20
- "path": {
21
- "type": "string"
22
- }
23
- },
24
- "required": ["tab", "path"],
25
- "additionalProperties": false
26
- }
27
- }
28
- }