@zenstackhq/sdk 3.0.0-beta.8 → 3.0.0-beta.9

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/schema.d.cts CHANGED
@@ -1,49 +1,8 @@
1
+ import { E as Expression } from './expression-Ce_oulwU.cjs';
2
+ export { A as ArrayExpression, B as BinaryExpression, b as BinaryOperator, C as CallExpression, F as FieldExpression, L as LiteralExpression, M as MemberExpression, N as NullExpression, T as ThisExpression, U as UnaryExpression, a as UnaryOperator } from './expression-Ce_oulwU.cjs';
1
3
  import Decimal from 'decimal.js';
2
4
  export { OperandExpression } from 'kysely';
3
5
 
4
- type Expression = LiteralExpression | ArrayExpression | FieldExpression | MemberExpression | CallExpression | UnaryExpression | BinaryExpression | ThisExpression | NullExpression;
5
- type LiteralExpression = {
6
- kind: 'literal';
7
- value: string | number | boolean;
8
- };
9
- type ArrayExpression = {
10
- kind: 'array';
11
- items: Expression[];
12
- };
13
- type FieldExpression = {
14
- kind: 'field';
15
- field: string;
16
- };
17
- type MemberExpression = {
18
- kind: 'member';
19
- receiver: Expression;
20
- members: string[];
21
- };
22
- type UnaryExpression = {
23
- kind: 'unary';
24
- op: UnaryOperator;
25
- operand: Expression;
26
- };
27
- type BinaryExpression = {
28
- kind: 'binary';
29
- op: BinaryOperator;
30
- left: Expression;
31
- right: Expression;
32
- };
33
- type CallExpression = {
34
- kind: 'call';
35
- function: string;
36
- args?: Expression[];
37
- };
38
- type ThisExpression = {
39
- kind: 'this';
40
- };
41
- type NullExpression = {
42
- kind: 'null';
43
- };
44
- type UnaryOperator = '!';
45
- type BinaryOperator = '&&' | '||' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '?' | '!' | '^' | 'in';
46
-
47
6
  type DataSourceProviderType = 'sqlite' | 'postgresql';
48
7
  type DataSourceProvider = {
49
8
  type: DataSourceProviderType;
@@ -163,4 +122,4 @@ type IsDelegateModel<Schema extends SchemaDef, Model extends GetModels<Schema>>
163
122
  type FieldIsDelegateRelation<Schema extends SchemaDef, Model extends GetModels<Schema>, Field extends RelationFields<Schema, Model>> = GetModelFieldType<Schema, Model, Field> extends GetModels<Schema> ? IsDelegateModel<Schema, GetModelFieldType<Schema, Model, Field>> : false;
164
123
  type FieldIsDelegateDiscriminator<Schema extends SchemaDef, Model extends GetModels<Schema>, Field extends GetModelFields<Schema, Model>> = GetModelField<Schema, Model, Field>['isDiscriminator'] extends true ? true : false;
165
124
 
166
- export type { ArrayExpression, AttributeApplication, AttributeArg, BinaryExpression, BinaryOperator, BuiltinType, CallExpression, CascadeAction, DataSourceProvider, DataSourceProviderType, EnumDef, Expression, FieldDef, FieldExpression, FieldHasDefault, FieldIsArray, FieldIsComputed, FieldIsDelegateDiscriminator, FieldIsDelegateRelation, FieldIsRelation, FieldIsRelationArray, FieldType, ForeignKeyFields, GetDelegateModels, GetEnum, GetEnums, GetModel, GetModelDiscriminator, GetModelField, GetModelFieldType, GetModelFields, GetModels, GetSubModels, GetTypeDef, GetTypeDefField, GetTypeDefFields, GetTypeDefs, IsDelegateModel, LiteralExpression, MappedBuiltinType, MemberExpression, ModelDef, ModelFieldIsOptional, NonRelationFields, NullExpression, ProcedureDef, ProcedureParam, RelationFieldType, RelationFields, RelationInfo, ScalarFields, SchemaDef, ThisExpression, TypeDefDef, TypeDefFieldIsOptional, UnaryExpression, UnaryOperator };
125
+ export { type AttributeApplication, type AttributeArg, type BuiltinType, type CascadeAction, type DataSourceProvider, type DataSourceProviderType, type EnumDef, Expression, type FieldDef, type FieldHasDefault, type FieldIsArray, type FieldIsComputed, type FieldIsDelegateDiscriminator, type FieldIsDelegateRelation, type FieldIsRelation, type FieldIsRelationArray, type FieldType, type ForeignKeyFields, type GetDelegateModels, type GetEnum, type GetEnums, type GetModel, type GetModelDiscriminator, type GetModelField, type GetModelFieldType, type GetModelFields, type GetModels, type GetSubModels, type GetTypeDef, type GetTypeDefField, type GetTypeDefFields, type GetTypeDefs, type IsDelegateModel, type MappedBuiltinType, type ModelDef, type ModelFieldIsOptional, type NonRelationFields, type ProcedureDef, type ProcedureParam, type RelationFieldType, type RelationFields, type RelationInfo, type ScalarFields, type SchemaDef, type TypeDefDef, type TypeDefFieldIsOptional };
package/dist/schema.d.ts CHANGED
@@ -1,49 +1,8 @@
1
+ import { E as Expression } from './expression-Ce_oulwU.js';
2
+ export { A as ArrayExpression, B as BinaryExpression, b as BinaryOperator, C as CallExpression, F as FieldExpression, L as LiteralExpression, M as MemberExpression, N as NullExpression, T as ThisExpression, U as UnaryExpression, a as UnaryOperator } from './expression-Ce_oulwU.js';
1
3
  import Decimal from 'decimal.js';
2
4
  export { OperandExpression } from 'kysely';
3
5
 
4
- type Expression = LiteralExpression | ArrayExpression | FieldExpression | MemberExpression | CallExpression | UnaryExpression | BinaryExpression | ThisExpression | NullExpression;
5
- type LiteralExpression = {
6
- kind: 'literal';
7
- value: string | number | boolean;
8
- };
9
- type ArrayExpression = {
10
- kind: 'array';
11
- items: Expression[];
12
- };
13
- type FieldExpression = {
14
- kind: 'field';
15
- field: string;
16
- };
17
- type MemberExpression = {
18
- kind: 'member';
19
- receiver: Expression;
20
- members: string[];
21
- };
22
- type UnaryExpression = {
23
- kind: 'unary';
24
- op: UnaryOperator;
25
- operand: Expression;
26
- };
27
- type BinaryExpression = {
28
- kind: 'binary';
29
- op: BinaryOperator;
30
- left: Expression;
31
- right: Expression;
32
- };
33
- type CallExpression = {
34
- kind: 'call';
35
- function: string;
36
- args?: Expression[];
37
- };
38
- type ThisExpression = {
39
- kind: 'this';
40
- };
41
- type NullExpression = {
42
- kind: 'null';
43
- };
44
- type UnaryOperator = '!';
45
- type BinaryOperator = '&&' | '||' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '?' | '!' | '^' | 'in';
46
-
47
6
  type DataSourceProviderType = 'sqlite' | 'postgresql';
48
7
  type DataSourceProvider = {
49
8
  type: DataSourceProviderType;
@@ -163,4 +122,4 @@ type IsDelegateModel<Schema extends SchemaDef, Model extends GetModels<Schema>>
163
122
  type FieldIsDelegateRelation<Schema extends SchemaDef, Model extends GetModels<Schema>, Field extends RelationFields<Schema, Model>> = GetModelFieldType<Schema, Model, Field> extends GetModels<Schema> ? IsDelegateModel<Schema, GetModelFieldType<Schema, Model, Field>> : false;
164
123
  type FieldIsDelegateDiscriminator<Schema extends SchemaDef, Model extends GetModels<Schema>, Field extends GetModelFields<Schema, Model>> = GetModelField<Schema, Model, Field>['isDiscriminator'] extends true ? true : false;
165
124
 
166
- export type { ArrayExpression, AttributeApplication, AttributeArg, BinaryExpression, BinaryOperator, BuiltinType, CallExpression, CascadeAction, DataSourceProvider, DataSourceProviderType, EnumDef, Expression, FieldDef, FieldExpression, FieldHasDefault, FieldIsArray, FieldIsComputed, FieldIsDelegateDiscriminator, FieldIsDelegateRelation, FieldIsRelation, FieldIsRelationArray, FieldType, ForeignKeyFields, GetDelegateModels, GetEnum, GetEnums, GetModel, GetModelDiscriminator, GetModelField, GetModelFieldType, GetModelFields, GetModels, GetSubModels, GetTypeDef, GetTypeDefField, GetTypeDefFields, GetTypeDefs, IsDelegateModel, LiteralExpression, MappedBuiltinType, MemberExpression, ModelDef, ModelFieldIsOptional, NonRelationFields, NullExpression, ProcedureDef, ProcedureParam, RelationFieldType, RelationFields, RelationInfo, ScalarFields, SchemaDef, ThisExpression, TypeDefDef, TypeDefFieldIsOptional, UnaryExpression, UnaryOperator };
125
+ export { type AttributeApplication, type AttributeArg, type BuiltinType, type CascadeAction, type DataSourceProvider, type DataSourceProviderType, type EnumDef, Expression, type FieldDef, type FieldHasDefault, type FieldIsArray, type FieldIsComputed, type FieldIsDelegateDiscriminator, type FieldIsDelegateRelation, type FieldIsRelation, type FieldIsRelationArray, type FieldType, type ForeignKeyFields, type GetDelegateModels, type GetEnum, type GetEnums, type GetModel, type GetModelDiscriminator, type GetModelField, type GetModelFieldType, type GetModelFields, type GetModels, type GetSubModels, type GetTypeDef, type GetTypeDefField, type GetTypeDefFields, type GetTypeDefs, type IsDelegateModel, type MappedBuiltinType, type ModelDef, type ModelFieldIsOptional, type NonRelationFields, type ProcedureDef, type ProcedureParam, type RelationFieldType, type RelationFields, type RelationInfo, type ScalarFields, type SchemaDef, type TypeDefDef, type TypeDefFieldIsOptional };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenstackhq/sdk",
3
- "version": "3.0.0-beta.8",
3
+ "version": "3.0.0-beta.9",
4
4
  "description": "ZenStack SDK",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -35,14 +35,14 @@
35
35
  "langium": "3.5.0",
36
36
  "ts-pattern": "^5.7.1",
37
37
  "typescript": "^5.8.0",
38
- "@zenstackhq/common-helpers": "3.0.0-beta.8",
39
- "@zenstackhq/language": "3.0.0-beta.8"
38
+ "@zenstackhq/language": "3.0.0-beta.9",
39
+ "@zenstackhq/common-helpers": "3.0.0-beta.9"
40
40
  },
41
41
  "devDependencies": {
42
42
  "decimal.js": "^10.4.3",
43
43
  "kysely": "^0.27.6",
44
- "@zenstackhq/eslint-config": "3.0.0-beta.8",
45
- "@zenstackhq/typescript-config": "3.0.0-beta.8"
44
+ "@zenstackhq/eslint-config": "3.0.0-beta.9",
45
+ "@zenstackhq/typescript-config": "3.0.0-beta.9"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsc --noEmit && tsup-node",