@contember/schema
Advanced tools
Comparing version 0.8.0-alpha.0 to 0.8.0-alpha.1
@@ -7,2 +7,3 @@ import Input from './schema/input'; | ||
import Result from './schema/result'; | ||
export * from './ProjectRole'; | ||
declare type Schema = { | ||
@@ -9,0 +10,0 @@ model: Model.Schema; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -13,2 +16,3 @@ const input_1 = require("./schema/input"); | ||
exports.Result = result_1.default; | ||
__export(require("./ProjectRole")); | ||
//# sourceMappingURL=index.js.map |
@@ -44,4 +44,28 @@ import Input from './input'; | ||
type StagesDefinition = AnyStage | string[]; | ||
type TenantManagePermissions = { | ||
[role: string]: { | ||
variables: Record<string, string>; | ||
}; | ||
}; | ||
interface TenantPermissions { | ||
invite: boolean; | ||
manage: TenantManagePermissions; | ||
} | ||
enum SystemPermissionsLevel { | ||
none = "none", | ||
any = "any", | ||
some = "some" | ||
} | ||
type LimitedSystemPermissionsLevel = SystemPermissionsLevel.any | SystemPermissionsLevel.none; | ||
interface SystemPermissions { | ||
diff?: SystemPermissionsLevel; | ||
history?: LimitedSystemPermissionsLevel; | ||
release?: SystemPermissionsLevel; | ||
rebase?: LimitedSystemPermissionsLevel; | ||
migrate?: boolean; | ||
} | ||
type RolePermissions = { | ||
inherits?: string[]; | ||
tenant?: TenantPermissions; | ||
system?: SystemPermissions; | ||
variables: Acl.Variables; | ||
@@ -48,0 +72,0 @@ stages: StagesDefinition; |
@@ -18,4 +18,10 @@ "use strict"; | ||
})(Operation = Acl.Operation || (Acl.Operation = {})); | ||
let SystemPermissionsLevel; | ||
(function (SystemPermissionsLevel) { | ||
SystemPermissionsLevel["none"] = "none"; | ||
SystemPermissionsLevel["any"] = "any"; | ||
SystemPermissionsLevel["some"] = "some"; | ||
})(SystemPermissionsLevel = Acl.SystemPermissionsLevel || (Acl.SystemPermissionsLevel = {})); | ||
})(Acl || (Acl = {})); | ||
exports.default = Acl; | ||
//# sourceMappingURL=acl.js.map |
{ | ||
"name": "@contember/schema", | ||
"version": "0.8.0-alpha.0", | ||
"version": "0.8.0-alpha.1", | ||
"license": "Apache-2.0", | ||
@@ -11,3 +11,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "e8480ed2e4f612537e229c6017565ec43917618e" | ||
"gitHead": "c20d28db4163768b7e479fabf8ffb2d15a7fc153" | ||
} |
@@ -8,2 +8,4 @@ import Input from './schema/input' | ||
export * from './ProjectRole' | ||
type Schema = { | ||
@@ -10,0 +12,0 @@ model: Model.Schema |
@@ -64,4 +64,32 @@ import Input from './input' | ||
export type TenantManagePermissions = { | ||
[role: string]: { | ||
variables: Record<string, string> // target variable => source variable | ||
} | ||
} | ||
export interface TenantPermissions { | ||
invite: boolean | ||
manage: TenantManagePermissions | ||
} | ||
export enum SystemPermissionsLevel { | ||
none = 'none', | ||
any = 'any', | ||
some = 'some', | ||
} | ||
export type LimitedSystemPermissionsLevel = SystemPermissionsLevel.any | SystemPermissionsLevel.none | ||
export interface SystemPermissions { | ||
diff?: SystemPermissionsLevel | ||
history?: LimitedSystemPermissionsLevel | ||
release?: SystemPermissionsLevel | ||
rebase?: LimitedSystemPermissionsLevel | ||
migrate?: boolean | ||
} | ||
export type RolePermissions = { | ||
inherits?: string[] | ||
tenant?: TenantPermissions | ||
system?: SystemPermissions | ||
variables: Acl.Variables | ||
@@ -68,0 +96,0 @@ stages: StagesDefinition |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174724
47
1251