Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contember/schema

Package Overview
Dependencies
Maintainers
5
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/schema - npm Package Compare versions

Comparing version 0.8.0-alpha.0 to 0.8.0-alpha.1

dist/src/ProjectRole.d.ts

1

dist/src/index.d.ts

@@ -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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc