@zenstackhq/runtime 3.0.0-alpha.2 → 3.0.0-alpha.4
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/client.cjs +2 -12
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -12
- package/dist/client.js.map +1 -1
- package/dist/{contract-DguafRNB.d.cts → contract-BBUC-uVq.d.cts} +2 -2
- package/dist/{contract-DguafRNB.d.ts → contract-BBUC-uVq.d.ts} +2 -2
- package/dist/index.cjs +2 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/plugins/policy.d.cts +1 -1
- package/dist/plugins/policy.d.ts +1 -1
- package/package.json +4 -25
- package/dist/utils/pg-utils.cjs +0 -39
- package/dist/utils/pg-utils.cjs.map +0 -1
- package/dist/utils/pg-utils.d.cts +0 -8
- package/dist/utils/pg-utils.d.ts +0 -8
- package/dist/utils/pg-utils.js +0 -16
- package/dist/utils/pg-utils.js.map +0 -1
- package/dist/utils/sqlite-utils.cjs +0 -55
- package/dist/utils/sqlite-utils.cjs.map +0 -1
- package/dist/utils/sqlite-utils.d.cts +0 -8
- package/dist/utils/sqlite-utils.d.ts +0 -8
- package/dist/utils/sqlite-utils.js +0 -22
- package/dist/utils/sqlite-utils.js.map +0 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ZenStackClient } from './index.cjs';
|
|
2
|
-
export { K as AggregateArgs, L as AggregateResult, B as BatchResult, f as BooleanFilter, e as BytesFilter, c as CliGenerator, C as ClientConstructor, a as ClientContract, b as ClientOptions, d as CommonPrimitiveFilter, I as CountAggregateInput, H as CountArgs, J as CountResult, r as CreateArgs, u as CreateInput, t as CreateManyAndReturnArgs, s as CreateManyArgs, D as DateTimeFilter, E as DeleteArgs, G as DeleteManyArgs, F as FindArgs, q as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, m as MapFieldType, R as ModelOperations, M as ModelResult, h as NullsOrder, N as NumberFilter, p as OppositeRelationAndFK, o as OppositeRelationFields, n as OptionalFieldsForCreate, O as OrderBy, j as SelectIncludeOmit, l as SelectSubset, g as SortOrder, S as StringFilter, k as Subset, T as ToKysely, U as UpdateArgs, A as UpdateInput, w as UpdateManyAndReturnArgs, v as UpdateManyArgs, z as UpdateRelationInput, y as UpdateScalarInput, x as UpsertArgs, W as WhereInput, i as WhereUniqueInput } from './contract-
|
|
2
|
+
export { K as AggregateArgs, L as AggregateResult, B as BatchResult, f as BooleanFilter, e as BytesFilter, c as CliGenerator, C as ClientConstructor, a as ClientContract, b as ClientOptions, d as CommonPrimitiveFilter, I as CountAggregateInput, H as CountArgs, J as CountResult, r as CreateArgs, u as CreateInput, t as CreateManyAndReturnArgs, s as CreateManyArgs, D as DateTimeFilter, E as DeleteArgs, G as DeleteManyArgs, F as FindArgs, q as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, m as MapFieldType, R as ModelOperations, M as ModelResult, h as NullsOrder, N as NumberFilter, p as OppositeRelationAndFK, o as OppositeRelationFields, n as OptionalFieldsForCreate, O as OrderBy, j as SelectIncludeOmit, l as SelectSubset, g as SortOrder, S as StringFilter, k as Subset, T as ToKysely, U as UpdateArgs, A as UpdateInput, w as UpdateManyAndReturnArgs, v as UpdateManyArgs, z as UpdateRelationInput, y as UpdateScalarInput, x as UpsertArgs, W as WhereInput, i as WhereUniqueInput } from './contract-BBUC-uVq.cjs';
|
|
3
3
|
import '@zenstackhq/sdk/schema';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
import 'kysely';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ZenStackClient } from './index.js';
|
|
2
|
-
export { K as AggregateArgs, L as AggregateResult, B as BatchResult, f as BooleanFilter, e as BytesFilter, c as CliGenerator, C as ClientConstructor, a as ClientContract, b as ClientOptions, d as CommonPrimitiveFilter, I as CountAggregateInput, H as CountArgs, J as CountResult, r as CreateArgs, u as CreateInput, t as CreateManyAndReturnArgs, s as CreateManyArgs, D as DateTimeFilter, E as DeleteArgs, G as DeleteManyArgs, F as FindArgs, q as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, m as MapFieldType, R as ModelOperations, M as ModelResult, h as NullsOrder, N as NumberFilter, p as OppositeRelationAndFK, o as OppositeRelationFields, n as OptionalFieldsForCreate, O as OrderBy, j as SelectIncludeOmit, l as SelectSubset, g as SortOrder, S as StringFilter, k as Subset, T as ToKysely, U as UpdateArgs, A as UpdateInput, w as UpdateManyAndReturnArgs, v as UpdateManyArgs, z as UpdateRelationInput, y as UpdateScalarInput, x as UpsertArgs, W as WhereInput, i as WhereUniqueInput } from './contract-
|
|
2
|
+
export { K as AggregateArgs, L as AggregateResult, B as BatchResult, f as BooleanFilter, e as BytesFilter, c as CliGenerator, C as ClientConstructor, a as ClientContract, b as ClientOptions, d as CommonPrimitiveFilter, I as CountAggregateInput, H as CountArgs, J as CountResult, r as CreateArgs, u as CreateInput, t as CreateManyAndReturnArgs, s as CreateManyArgs, D as DateTimeFilter, E as DeleteArgs, G as DeleteManyArgs, F as FindArgs, q as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, m as MapFieldType, R as ModelOperations, M as ModelResult, h as NullsOrder, N as NumberFilter, p as OppositeRelationAndFK, o as OppositeRelationFields, n as OptionalFieldsForCreate, O as OrderBy, j as SelectIncludeOmit, l as SelectSubset, g as SortOrder, S as StringFilter, k as Subset, T as ToKysely, U as UpdateArgs, A as UpdateInput, w as UpdateManyAndReturnArgs, v as UpdateManyArgs, z as UpdateRelationInput, y as UpdateScalarInput, x as UpsertArgs, W as WhereInput, i as WhereUniqueInput } from './contract-BBUC-uVq.js';
|
|
3
3
|
import '@zenstackhq/sdk/schema';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
import 'kysely';
|
package/dist/client.js
CHANGED
|
@@ -5863,20 +5863,10 @@ var ClientImpl = class _ClientImpl {
|
|
|
5863
5863
|
return match19(this.schema.provider.type).with("sqlite", () => this.makeSqliteKyselyDialect()).with("postgresql", () => this.makePostgresKyselyDialect()).exhaustive();
|
|
5864
5864
|
}
|
|
5865
5865
|
makePostgresKyselyDialect() {
|
|
5866
|
-
|
|
5867
|
-
const mergedConfig = {
|
|
5868
|
-
...dialectConfigProvider(),
|
|
5869
|
-
...this.options?.dialectConfig
|
|
5870
|
-
};
|
|
5871
|
-
return new PostgresDialect(mergedConfig);
|
|
5866
|
+
return new PostgresDialect(this.options.dialectConfig);
|
|
5872
5867
|
}
|
|
5873
5868
|
makeSqliteKyselyDialect() {
|
|
5874
|
-
|
|
5875
|
-
const mergedConfig = {
|
|
5876
|
-
...dialectConfigProvider(),
|
|
5877
|
-
...this.options?.dialectConfig
|
|
5878
|
-
};
|
|
5879
|
-
return new SqliteDialect(mergedConfig);
|
|
5869
|
+
return new SqliteDialect(this.options.dialectConfig);
|
|
5880
5870
|
}
|
|
5881
5871
|
async $transaction(callback) {
|
|
5882
5872
|
return this.kysely.transaction().execute((tx) => {
|