@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.d.cts CHANGED
@@ -2427,8 +2427,8 @@ declare const MEMBERSHIP_TYPES: {
2427
2427
  readonly ORGANIZATION: 2;
2428
2428
  readonly GROUP: 3;
2429
2429
  };
2430
- type PolicyFieldType = 'string' | 'boolean' | 'integer' | 'uuid' | 'uuid[]';
2431
- type PolicyFieldComponent = 'table-select' | 'membership-type-select' | 'capability-select';
2430
+ type PolicyFieldType = 'string' | 'string[]' | 'boolean' | 'integer' | 'uuid' | 'uuid[]';
2431
+ type PolicyFieldComponent = 'table-select' | 'membership-type-select' | 'capability-select' | 'level-select';
2432
2432
  type PolicyProvisioningCategory = 'has-module' | 'needs-fields' | 'needs-table' | 'no-fields';
2433
2433
  interface PolicyFieldOverride {
2434
2434
  type?: PolicyFieldType;
package/dist/index.d.ts CHANGED
@@ -2427,8 +2427,8 @@ declare const MEMBERSHIP_TYPES: {
2427
2427
  readonly ORGANIZATION: 2;
2428
2428
  readonly GROUP: 3;
2429
2429
  };
2430
- type PolicyFieldType = 'string' | 'boolean' | 'integer' | 'uuid' | 'uuid[]';
2431
- type PolicyFieldComponent = 'table-select' | 'membership-type-select' | 'capability-select';
2430
+ type PolicyFieldType = 'string' | 'string[]' | 'boolean' | 'integer' | 'uuid' | 'uuid[]';
2431
+ type PolicyFieldComponent = 'table-select' | 'membership-type-select' | 'capability-select' | 'level-select';
2432
2432
  type PolicyProvisioningCategory = 'has-module' | 'needs-fields' | 'needs-table' | 'no-fields';
2433
2433
  interface PolicyFieldOverride {
2434
2434
  type?: PolicyFieldType;
package/dist/index.js CHANGED
@@ -4832,11 +4832,17 @@ var POLICY_PROVISIONING_CONFIG = {
4832
4832
  hidden: true,
4833
4833
  defaultValue: MEMBERSHIP_TYPES.ORGANIZATION
4834
4834
  },
4835
- permission: {
4836
- type: "string",
4835
+ capabilities: {
4836
+ type: "string[]",
4837
4837
  component: "capability-select",
4838
- label: "Required Capability",
4839
- description: "Optional capability the user must have"
4838
+ label: "Required Capabilities",
4839
+ description: "Capabilities the user must have (merged into a single mask)"
4840
+ },
4841
+ levels: {
4842
+ type: "string[]",
4843
+ component: "level-select",
4844
+ label: "Required Levels",
4845
+ description: "Trust-ladder level names to require (merged into the same mask)"
4840
4846
  },
4841
4847
  is_admin: {
4842
4848
  type: "boolean",
@@ -4868,11 +4874,17 @@ var POLICY_PROVISIONING_CONFIG = {
4868
4874
  category: "no-fields",
4869
4875
  hasDataNode: false,
4870
4876
  fieldOverrides: {
4871
- permission: {
4872
- type: "string",
4877
+ capabilities: {
4878
+ type: "string[]",
4873
4879
  component: "capability-select",
4874
- label: "Required Capability",
4875
- description: "Optional capability the user must have"
4880
+ label: "Required Capabilities",
4881
+ description: "Capabilities the user must have (merged into a single mask)"
4882
+ },
4883
+ levels: {
4884
+ type: "string[]",
4885
+ component: "level-select",
4886
+ label: "Required Levels",
4887
+ description: "Trust-ladder level names to require (merged into the same mask)"
4876
4888
  },
4877
4889
  is_admin: {
4878
4890
  type: "boolean",
@@ -5035,10 +5047,17 @@ var POLICY_PROVISIONING_CONFIG = {
5035
5047
  description: "Field containing entity ID for membership check",
5036
5048
  dependsOn: "obj_table"
5037
5049
  },
5038
- permission: {
5039
- type: "string",
5050
+ capabilities: {
5051
+ type: "string[]",
5040
5052
  component: "capability-select",
5041
- label: "Required Capability"
5053
+ label: "Required Capabilities",
5054
+ description: "Capabilities the user must have (merged into a single mask)"
5055
+ },
5056
+ levels: {
5057
+ type: "string[]",
5058
+ component: "level-select",
5059
+ label: "Required Levels",
5060
+ description: "Trust-ladder level names to require (merged into the same mask)"
5042
5061
  },
5043
5062
  is_admin: {
5044
5063
  type: "boolean",