New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@contember/schema

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/schema - npm Package Compare versions

Comparing version

to
1.0.0-alpha.2

import Input from './input';
declare namespace Acl {
enum VariableType {
enum = "enum",
entity = "entity",
column = "column"
predefined = "predefined"
}
type Variable = EntityVariable;
type Variable = EntityVariable | PredefinedVariable;
interface EntityVariable {

@@ -13,3 +12,7 @@ type: VariableType.entity;

}
type VariableValue = string | number | (string | number)[];
interface PredefinedVariable {
type: VariableType.predefined;
value: 'identityID' | 'personID';
}
type VariableValue = string | number | readonly (string | number)[];
interface VariablesMap {

@@ -16,0 +19,0 @@ [name: string]: VariableValue;

@@ -7,5 +7,7 @@ "use strict";

(function (VariableType) {
VariableType["enum"] = "enum";
VariableType["entity"] = "entity";
VariableType["column"] = "column";
VariableType["predefined"] = "predefined";
// currently unsupported
// enum = 'enum',
// column = 'column',
})(VariableType = Acl.VariableType || (Acl.VariableType = {}));

@@ -12,0 +14,0 @@ let Operation;

@@ -16,2 +16,3 @@ import Input from './input';

sql: string;
dependencies?: string[];
}

@@ -18,0 +19,0 @@ type FieldType = RelationType | ColumnType;

{
"name": "@contember/schema",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -5,8 +5,11 @@ import Input from './input'

export enum VariableType {
enum = 'enum',
entity = 'entity',
column = 'column',
predefined = 'predefined',
// currently unsupported
// enum = 'enum',
// column = 'column',
}
export type Variable = EntityVariable // | EnumVariable | ColumnValueVariable
export type Variable = EntityVariable | PredefinedVariable // | EnumVariable | ColumnValueVariable

@@ -23,2 +26,8 @@ // export interface EnumVariable {

export interface PredefinedVariable {
type: VariableType.predefined
value: 'identityID' | 'personID'
}
// export interface ColumnValueVariable {

@@ -30,3 +39,3 @@ // type: VariableType.column

export type VariableValue = string | number | (string | number)[]
export type VariableValue = string | number | readonly (string | number)[]

@@ -33,0 +42,0 @@ export interface VariablesMap {

@@ -16,2 +16,3 @@ import Input from './input'

sql: string
dependencies?: string[]
}

@@ -18,0 +19,0 @@

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