@simplysf/simply-permissions 2.0.0 → 5.0.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.
package/README.md CHANGED
@@ -66,7 +66,7 @@ FLAG DESCRIPTIONS
66
66
  The path to write the generated HTML report to.
67
67
  ```
68
68
 
69
- _See code: [lib/commands/simply/permissions/analyze.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@2.0.0/packages/simply-permissions/lib/commands/simply/permissions/analyze.js)_
69
+ _See code: [lib/commands/simply/permissions/analyze.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@5.0.0/packages/simply-permissions/lib/commands/simply/permissions/analyze.js)_
70
70
 
71
71
  ## `sf simply permissions assignment delete`
72
72
 
@@ -109,7 +109,7 @@ EXAMPLES
109
109
  $ sf simply permissions assignment delete --permission-set-group-name My_Permission_Set_Group --target-org myOrg
110
110
  ```
111
111
 
112
- _See code: [lib/commands/simply/permissions/assignment/delete.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@2.0.0/packages/simply-permissions/lib/commands/simply/permissions/assignment/delete.js)_
112
+ _See code: [lib/commands/simply/permissions/assignment/delete.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@5.0.0/packages/simply-permissions/lib/commands/simply/permissions/assignment/delete.js)_
113
113
 
114
114
  ## `sf simply permissions build`
115
115
 
@@ -224,7 +224,7 @@ FLAG DESCRIPTIONS
224
224
  Required to build a single permission set.
225
225
  ```
226
226
 
227
- _See code: [lib/commands/simply/permissions/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@2.0.0/packages/simply-permissions/lib/commands/simply/permissions/build.js)_
227
+ _See code: [lib/commands/simply/permissions/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@5.0.0/packages/simply-permissions/lib/commands/simply/permissions/build.js)_
228
228
  <!-- commandsstop -->
229
229
 
230
230
  ## Configuration Files
@@ -235,14 +235,14 @@ The `--config` flag on `sf simply permissions build` takes the path to a JSON fi
235
235
 
236
236
  ```json
237
237
  {
238
- "objects": {
239
- "Account": { "read": true, "create": true, "edit": true, "viewAll": true }
238
+ "objectPermissions": {
239
+ "Account": { "allowRead": true, "allowCreate": true, "allowEdit": true, "viewAllRecords": true }
240
240
  },
241
- "fields": {
241
+ "fieldPermissions": {
242
242
  "Account.AnnualRevenue": { "readable": true, "editable": false }
243
243
  },
244
- "tabs": {
245
- "Account": { "visible": true }
244
+ "tabSettings": {
245
+ "Account": { "visibility": "Visible" }
246
246
  },
247
247
  "recordTypeVisibilities": {
248
248
  "Account.Enterprise": { "visible": true }
@@ -254,14 +254,14 @@ The `--config` flag on `sf simply permissions build` takes the path to a JSON fi
254
254
  }
255
255
  ```
256
256
 
257
- | Field | Type | Keyed by | Description |
258
- | ------------------------ | -------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
259
- | `objects` | `Record<string, ObjectPerm>` | Object API name | Overrides object-level access. `ObjectPerm` fields: `read`, `create`, `edit`, `delete`, `modifyAll`, `viewAll`, `viewAllFields` (all optional booleans). |
260
- | `fields` | `Record<string, FieldPerm>` | `Object.Field` API name | Overrides field-level access. `FieldPerm` fields: `readable`, `editable` (optional booleans). |
261
- | `tabs` | `Record<string, TabSetting>` | Tab API name | Overrides tab visibility. `TabSetting` fields: `visible` (optional boolean). |
262
- | `recordTypeVisibilities` | `Record<string, RecordTypeVisibility>` | `Object.RecordType` API name | Overrides record type visibility. Fields: `visible` (optional boolean). Only applied when `--include-record-types` is also passed. |
263
- | `userPermissions` | `Record<string, boolean>` | User permission API name | Enables (`true`) or disables (`false`) individual user permissions. |
264
- | `hasActivationRequired` | `boolean` | — | Whether the generated permission set requires activation before it grants access. Defaults to `false`. |
257
+ | Field | Type | Keyed by | Description |
258
+ | ------------------------ | -------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
259
+ | `objectPermissions` | `Record<string, ObjectPerm>` | Object API name | Overrides object-level access. `ObjectPerm` fields: `allowRead`, `allowCreate`, `allowEdit`, `allowDelete`, `modifyAllRecords`, `viewAllRecords`, `viewAllFields` (all optional booleans). |
260
+ | `fieldPermissions` | `Record<string, FieldPerm>` | `Object.Field` API name | Overrides field-level access. `FieldPerm` fields: `readable`, `editable` (optional booleans). |
261
+ | `tabSettings` | `Record<string, TabSetting>` | Tab API name | Overrides tab visibility. `TabSetting` fields: `visibility`: `Visible`, `Available`, or `None` (optional). A tab only the config names defaults to `None`. |
262
+ | `recordTypeVisibilities` | `Record<string, RecordTypeVisibility>` | `Object.RecordType` API name | Overrides record type visibility. Fields: `visible` (optional boolean). Only applied when `--include-record-types` is also passed. |
263
+ | `userPermissions` | `Record<string, boolean>` | User permission API name | Enables (`true`) or disables (`false`) individual user permissions. |
264
+ | `hasActivationRequired` | `boolean` | — | Whether the generated permission set requires activation before it grants access. Defaults to `false`. |
265
265
 
266
266
  ## License
267
267
 
@@ -329,5 +329,5 @@
329
329
  ]
330
330
  }
331
331
  },
332
- "version": "2.0.0"
332
+ "version": "5.0.0"
333
333
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-permissions",
3
3
  "description": "Utilities for working with permissions",
4
- "version": "2.0.0",
4
+ "version": "5.0.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -61,8 +61,8 @@
61
61
  "@salesforce/kit": "^3.2.6",
62
62
  "@salesforce/sf-plugins-core": "^12.2.16",
63
63
  "@salesforce/source-deploy-retrieve": "^12.37.2",
64
- "@simplysf/simply-core": "^1.6.7",
65
- "@simplysf/simply-permissions-core": "^0.7.0",
64
+ "@simplysf/simply-core": "^1.6.11",
65
+ "@simplysf/simply-permissions-core": "^0.10.1",
66
66
  "@simplysf/simply-plugin-kit": "^1.0.9",
67
67
  "zod": "^4.6.5"
68
68
  },
@@ -202,5 +202,5 @@
202
202
  "output": []
203
203
  }
204
204
  },
205
- "gitHead": "c6b42eec62005e590b6eb019df0d317c4e200e62"
205
+ "gitHead": "eb8e8c056d4ce3532539a5a23bf4178784622018"
206
206
  }