@zenstackhq/runtime 3.0.0-alpha.27 → 3.0.0-alpha.28

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/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { C as ClientConstructor } from './contract-c8GpEAl3.cjs';
2
- export { K as AggregateArgs, L as AggregateResult, B as BatchResult, i as BooleanFilter, h as BytesFilter, c as ClientContract, d as ClientOptions, G as CountArgs, H as CountResult, u as CreateArgs, w as CreateManyAndReturnArgs, v as CreateManyArgs, D as DateTimeFilter, A as DeleteArgs, E as DeleteManyArgs, F as FindArgs, s as FindFirstArgs, r as FindManyArgs, t as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, I as IncludeInput, J as JsonArray, a as JsonObject, b as JsonValue, M as ModelResult, k as NullsOrder, N as NumberFilter, m as OmitInput, O as OrderBy, n as SelectIncludeOmit, o as SelectInput, q as SelectSubset, S as SimplifiedModelResult, j as SortOrder, g as StringFilter, p as Subset, T as ToKysely, f as TypeDefResult, U as UpdateArgs, y as UpdateManyAndReturnArgs, x as UpdateManyArgs, z as UpsertArgs, W as WhereInput, l as WhereUniqueInput, e as definePlugin } from './contract-c8GpEAl3.cjs';
1
+ import { C as ClientConstructor } from './contract-cndmlzV3.cjs';
2
+ export { K as AggregateArgs, L as AggregateResult, B as BatchResult, i as BooleanFilter, h as BytesFilter, c as ClientContract, d as ClientOptions, G as CountArgs, H as CountResult, u as CreateArgs, w as CreateManyAndReturnArgs, v as CreateManyArgs, D as DateTimeFilter, A as DeleteArgs, E as DeleteManyArgs, F as FindArgs, s as FindFirstArgs, r as FindManyArgs, t as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, I as IncludeInput, J as JsonArray, a as JsonObject, b as JsonValue, M as ModelResult, k as NullsOrder, N as NumberFilter, m as OmitInput, O as OrderBy, n as SelectIncludeOmit, o as SelectInput, q as SelectSubset, S as SimplifiedModelResult, j as SortOrder, g as StringFilter, p as Subset, T as ToKysely, f as TypeDefResult, U as UpdateArgs, y as UpdateManyAndReturnArgs, x as UpdateManyArgs, z as UpsertArgs, W as WhereInput, l as WhereUniqueInput, e as definePlugin } from './contract-cndmlzV3.cjs';
3
3
  import 'decimal.js';
4
4
  import '@zenstackhq/sdk/schema';
5
5
  import 'kysely';
6
6
 
7
7
  /**
8
- * ZenStack client.
8
+ * ZenStack ORM client.
9
9
  */
10
10
  declare const ZenStackClient: ClientConstructor;
11
11
 
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { C as ClientConstructor } from './contract-c8GpEAl3.js';
2
- export { K as AggregateArgs, L as AggregateResult, B as BatchResult, i as BooleanFilter, h as BytesFilter, c as ClientContract, d as ClientOptions, G as CountArgs, H as CountResult, u as CreateArgs, w as CreateManyAndReturnArgs, v as CreateManyArgs, D as DateTimeFilter, A as DeleteArgs, E as DeleteManyArgs, F as FindArgs, s as FindFirstArgs, r as FindManyArgs, t as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, I as IncludeInput, J as JsonArray, a as JsonObject, b as JsonValue, M as ModelResult, k as NullsOrder, N as NumberFilter, m as OmitInput, O as OrderBy, n as SelectIncludeOmit, o as SelectInput, q as SelectSubset, S as SimplifiedModelResult, j as SortOrder, g as StringFilter, p as Subset, T as ToKysely, f as TypeDefResult, U as UpdateArgs, y as UpdateManyAndReturnArgs, x as UpdateManyArgs, z as UpsertArgs, W as WhereInput, l as WhereUniqueInput, e as definePlugin } from './contract-c8GpEAl3.js';
1
+ import { C as ClientConstructor } from './contract-cndmlzV3.js';
2
+ export { K as AggregateArgs, L as AggregateResult, B as BatchResult, i as BooleanFilter, h as BytesFilter, c as ClientContract, d as ClientOptions, G as CountArgs, H as CountResult, u as CreateArgs, w as CreateManyAndReturnArgs, v as CreateManyArgs, D as DateTimeFilter, A as DeleteArgs, E as DeleteManyArgs, F as FindArgs, s as FindFirstArgs, r as FindManyArgs, t as FindUniqueArgs, P as GroupByArgs, Q as GroupByResult, I as IncludeInput, J as JsonArray, a as JsonObject, b as JsonValue, M as ModelResult, k as NullsOrder, N as NumberFilter, m as OmitInput, O as OrderBy, n as SelectIncludeOmit, o as SelectInput, q as SelectSubset, S as SimplifiedModelResult, j as SortOrder, g as StringFilter, p as Subset, T as ToKysely, f as TypeDefResult, U as UpdateArgs, y as UpdateManyAndReturnArgs, x as UpdateManyArgs, z as UpsertArgs, W as WhereInput, l as WhereUniqueInput, e as definePlugin } from './contract-cndmlzV3.js';
3
3
  import 'decimal.js';
4
4
  import '@zenstackhq/sdk/schema';
5
5
  import 'kysely';
6
6
 
7
7
  /**
8
- * ZenStack client.
8
+ * ZenStack ORM client.
9
9
  */
10
10
  declare const ZenStackClient: ClientConstructor;
11
11
 
package/dist/index.js CHANGED
@@ -420,7 +420,6 @@ import { createId } from "@paralleldrive/cuid2";
420
420
  import { invariant as invariant7, isPlainObject as isPlainObject3 } from "@zenstackhq/common-helpers";
421
421
  import { expressionBuilder as expressionBuilder3, sql as sql4 } from "kysely";
422
422
  import { nanoid } from "nanoid";
423
- import { inspect } from "util";
424
423
  import { match as match9 } from "ts-pattern";
425
424
  import { ulid } from "ulid";
426
425
  import * as uuid from "uuid";
@@ -2754,11 +2753,7 @@ var BaseOperationHandler = class {
2754
2753
  const r = await kysely.getExecutor().executeQuery(compiled, queryId);
2755
2754
  result = r.rows;
2756
2755
  } catch (err) {
2757
- let message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
2758
- if (this.options.debug) {
2759
- message += `, parameters:
2760
- ${compiled.parameters.map((p) => inspect(p)).join("\n")}`;
2761
- }
2756
+ const message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
2762
2757
  throw new QueryError(message, err);
2763
2758
  }
2764
2759
  return result;
@@ -5598,7 +5593,6 @@ __name(performanceNow, "performanceNow");
5598
5593
  // src/client/executor/zenstack-query-executor.ts
5599
5594
  import { AndNode as AndNode2, DefaultQueryExecutor, DeleteQueryNode as DeleteQueryNode2, InsertQueryNode as InsertQueryNode2, ReturningNode as ReturningNode3, SelectionNode as SelectionNode4, UpdateQueryNode as UpdateQueryNode2, WhereNode as WhereNode3 } from "kysely";
5600
5595
  import { nanoid as nanoid2 } from "nanoid";
5601
- import { inspect as inspect2 } from "util";
5602
5596
  import { match as match16 } from "ts-pattern";
5603
5597
 
5604
5598
  // src/client/executor/name-mapper.ts
@@ -5906,11 +5900,7 @@ var ZenStackQueryExecutor = class _ZenStackQueryExecutor extends DefaultQueryExe
5906
5900
  };
5907
5901
  });
5908
5902
  } catch (err) {
5909
- let message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
5910
- if (this.options.debug) {
5911
- message += `, parameters:
5912
- ${compiled.parameters.map((p) => inspect2(p)).join("\n")}`;
5913
- }
5903
+ const message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
5914
5904
  throw new QueryError(message, err);
5915
5905
  }
5916
5906
  }