@constructive-io/data 0.6.1 → 0.7.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/dist/index.cjs CHANGED
@@ -4837,11 +4837,17 @@ var POLICY_PROVISIONING_CONFIG = {
4837
4837
  hidden: true,
4838
4838
  defaultValue: MEMBERSHIP_TYPES.ORGANIZATION
4839
4839
  },
4840
- permission: {
4841
- type: "string",
4840
+ capabilities: {
4841
+ type: "string[]",
4842
4842
  component: "capability-select",
4843
- label: "Required Capability",
4844
- description: "Optional capability the user must have"
4843
+ label: "Required Capabilities",
4844
+ description: "Capabilities the user must have (merged into a single mask)"
4845
+ },
4846
+ levels: {
4847
+ type: "string[]",
4848
+ component: "level-select",
4849
+ label: "Required Levels",
4850
+ description: "Trust-ladder level names to require (merged into the same mask)"
4845
4851
  },
4846
4852
  is_admin: {
4847
4853
  type: "boolean",
@@ -4873,11 +4879,17 @@ var POLICY_PROVISIONING_CONFIG = {
4873
4879
  category: "no-fields",
4874
4880
  hasDataNode: false,
4875
4881
  fieldOverrides: {
4876
- permission: {
4877
- type: "string",
4882
+ capabilities: {
4883
+ type: "string[]",
4878
4884
  component: "capability-select",
4879
- label: "Required Capability",
4880
- description: "Optional capability the user must have"
4885
+ label: "Required Capabilities",
4886
+ description: "Capabilities the user must have (merged into a single mask)"
4887
+ },
4888
+ levels: {
4889
+ type: "string[]",
4890
+ component: "level-select",
4891
+ label: "Required Levels",
4892
+ description: "Trust-ladder level names to require (merged into the same mask)"
4881
4893
  },
4882
4894
  is_admin: {
4883
4895
  type: "boolean",
@@ -5040,10 +5052,17 @@ var POLICY_PROVISIONING_CONFIG = {
5040
5052
  description: "Field containing entity ID for membership check",
5041
5053
  dependsOn: "obj_table"
5042
5054
  },
5043
- permission: {
5044
- type: "string",
5055
+ capabilities: {
5056
+ type: "string[]",
5045
5057
  component: "capability-select",
5046
- label: "Required Capability"
5058
+ label: "Required Capabilities",
5059
+ description: "Capabilities the user must have (merged into a single mask)"
5060
+ },
5061
+ levels: {
5062
+ type: "string[]",
5063
+ component: "level-select",
5064
+ label: "Required Levels",
5065
+ description: "Trust-ladder level names to require (merged into the same mask)"
5047
5066
  },
5048
5067
  is_admin: {
5049
5068
  type: "boolean",