@zenstackhq/orm 3.9.7-beta.1 → 3.9.8

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.
@@ -0,0 +1,129 @@
1
+ //#region src/client/constants.d.ts
2
+ /**
3
+ * Client API methods that are not supported in transactions.
4
+ */
5
+ declare const TRANSACTION_UNSUPPORTED_METHODS: readonly ["$transaction", "$connect", "$disconnect", "$use"];
6
+ /**
7
+ * Logical combinators used in filters.
8
+ */
9
+ declare const LOGICAL_COMBINATORS: readonly ["AND", "OR", "NOT"];
10
+ /**
11
+ * Aggregation operators.
12
+ */
13
+ declare const AggregateOperators: readonly ["_count", "_sum", "_avg", "_min", "_max"];
14
+ type AggregateOperators = (typeof AggregateOperators)[number];
15
+ /**
16
+ * Mapping of filter operators to their corresponding filter kind categories.
17
+ */
18
+ declare const FILTER_PROPERTY_TO_KIND: {
19
+ readonly equals: "Equality";
20
+ readonly not: "Equality";
21
+ readonly in: "Equality";
22
+ readonly notIn: "Equality";
23
+ readonly lt: "Range";
24
+ readonly lte: "Range";
25
+ readonly gt: "Range";
26
+ readonly gte: "Range";
27
+ readonly between: "Range";
28
+ readonly contains: "Like";
29
+ readonly startsWith: "Like";
30
+ readonly endsWith: "Like";
31
+ readonly mode: "Like";
32
+ readonly is: "Relation";
33
+ readonly isNot: "Relation";
34
+ readonly some: "Relation";
35
+ readonly every: "Relation";
36
+ readonly none: "Relation";
37
+ readonly path: "Json";
38
+ readonly string_contains: "Json";
39
+ readonly string_starts_with: "Json";
40
+ readonly string_ends_with: "Json";
41
+ readonly array_contains: "Json";
42
+ readonly array_starts_with: "Json";
43
+ readonly array_ends_with: "Json";
44
+ readonly fuzzy: "Fuzzy";
45
+ readonly fts: "FullText";
46
+ readonly has: "List";
47
+ readonly hasEvery: "List";
48
+ readonly hasSome: "List";
49
+ readonly isEmpty: "List";
50
+ };
51
+ /**
52
+ * Mapping of filter operators to their corresponding filter kind categories.
53
+ */
54
+ type FilterPropertyToKind = typeof FILTER_PROPERTY_TO_KIND;
55
+ /**
56
+ * List of core CRUD operations. It excludes the 'orThrow' variants.
57
+ */
58
+ declare const CoreCrudOperations: readonly ["findMany", "findUnique", "findFirst", "create", "createMany", "createManyAndReturn", "update", "updateMany", "updateManyAndReturn", "upsert", "delete", "deleteMany", "count", "aggregate", "groupBy", "exists"];
59
+ /**
60
+ * List of core CRUD operations. It excludes the 'orThrow' variants.
61
+ */
62
+ type CoreCrudOperations = (typeof CoreCrudOperations)[number];
63
+ /**
64
+ * List of core read operations. It excludes the 'orThrow' variants.
65
+ */
66
+ declare const CoreReadOperations: readonly ["findMany", "findUnique", "findFirst", "count", "aggregate", "groupBy", "exists"];
67
+ /**
68
+ * List of core read operations. It excludes the 'orThrow' variants.
69
+ */
70
+ type CoreReadOperations = (typeof CoreReadOperations)[number];
71
+ /**
72
+ * List of core write operations.
73
+ */
74
+ declare const CoreWriteOperations: readonly ["create", "createMany", "createManyAndReturn", "update", "updateMany", "updateManyAndReturn", "upsert", "delete", "deleteMany"];
75
+ /**
76
+ * List of core write operations.
77
+ */
78
+ type CoreWriteOperations = (typeof CoreWriteOperations)[number];
79
+ /**
80
+ * List of core create operations.
81
+ */
82
+ declare const CoreCreateOperations: readonly ["create", "createMany", "createManyAndReturn", "upsert"];
83
+ /**
84
+ * List of core create operations.
85
+ */
86
+ type CoreCreateOperations = (typeof CoreCreateOperations)[number];
87
+ /**
88
+ * List of core update operations.
89
+ */
90
+ declare const CoreUpdateOperations: readonly ["update", "updateMany", "updateManyAndReturn", "upsert"];
91
+ /**
92
+ * List of core update operations.
93
+ */
94
+ type CoreUpdateOperations = (typeof CoreUpdateOperations)[number];
95
+ /**
96
+ * List of core delete operations.
97
+ */
98
+ declare const CoreDeleteOperations: readonly ["delete", "deleteMany"];
99
+ /**
100
+ * List of core delete operations.
101
+ */
102
+ type CoreDeleteOperations = (typeof CoreDeleteOperations)[number];
103
+ /**
104
+ * List of all CRUD operations, including 'orThrow' variants.
105
+ */
106
+ declare const AllCrudOperations: readonly ["findMany", "findUnique", "findFirst", "create", "createMany", "createManyAndReturn", "update", "updateMany", "updateManyAndReturn", "upsert", "delete", "deleteMany", "count", "aggregate", "groupBy", "exists", "findUniqueOrThrow", "findFirstOrThrow"];
107
+ /**
108
+ * List of all CRUD operations, including 'orThrow' variants.
109
+ */
110
+ type AllCrudOperations = (typeof AllCrudOperations)[number];
111
+ /**
112
+ * List of all read operations, including 'orThrow' variants.
113
+ */
114
+ declare const AllReadOperations: readonly ["findMany", "findUnique", "findFirst", "count", "aggregate", "groupBy", "exists", "findUniqueOrThrow", "findFirstOrThrow"];
115
+ /**
116
+ * List of all read operations, including 'orThrow' variants.
117
+ */
118
+ type AllReadOperations = (typeof AllReadOperations)[number];
119
+ /**
120
+ * List of all write operations - simply an alias of CoreWriteOperations.
121
+ */
122
+ declare const AllWriteOperations: readonly ["create", "createMany", "createManyAndReturn", "update", "updateMany", "updateManyAndReturn", "upsert", "delete", "deleteMany"];
123
+ /**
124
+ * List of all write operations - simply an alias of CoreWriteOperations.
125
+ */
126
+ type AllWriteOperations = CoreWriteOperations;
127
+ //#endregion
128
+ export { CoreCreateOperations as a, CoreReadOperations as c, FilterPropertyToKind as d, LOGICAL_COMBINATORS as f, AllWriteOperations as i, CoreUpdateOperations as l, AllCrudOperations as n, CoreCrudOperations as o, TRANSACTION_UNSUPPORTED_METHODS as p, AllReadOperations as r, CoreDeleteOperations as s, AggregateOperators as t, CoreWriteOperations as u };
129
+ //# sourceMappingURL=constants-lRwcp6Hv.d.cts.map
@@ -0,0 +1,11 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_constants = require("./constants-CcJSpq4B.cjs");
3
+ exports.AllCrudOperations = require_constants.AllCrudOperations;
4
+ exports.AllReadOperations = require_constants.AllReadOperations;
5
+ exports.AllWriteOperations = require_constants.AllWriteOperations;
6
+ exports.CoreCreateOperations = require_constants.CoreCreateOperations;
7
+ exports.CoreCrudOperations = require_constants.CoreCrudOperations;
8
+ exports.CoreDeleteOperations = require_constants.CoreDeleteOperations;
9
+ exports.CoreReadOperations = require_constants.CoreReadOperations;
10
+ exports.CoreUpdateOperations = require_constants.CoreUpdateOperations;
11
+ exports.CoreWriteOperations = require_constants.CoreWriteOperations;
@@ -0,0 +1,2 @@
1
+ import { a as CoreCreateOperations, c as CoreReadOperations, i as AllWriteOperations, l as CoreUpdateOperations, n as AllCrudOperations, o as CoreCrudOperations, r as AllReadOperations, s as CoreDeleteOperations, u as CoreWriteOperations } from "./constants-lRwcp6Hv.cjs";
2
+ export { AllCrudOperations, AllReadOperations, AllWriteOperations, CoreCreateOperations, CoreCrudOperations, CoreDeleteOperations, CoreReadOperations, CoreUpdateOperations, CoreWriteOperations };
@@ -0,0 +1,2 @@
1
+ import { a as CoreCreateOperations, c as CoreReadOperations, i as AllWriteOperations, l as CoreUpdateOperations, n as AllCrudOperations, o as CoreCrudOperations, r as AllReadOperations, s as CoreDeleteOperations, u as CoreWriteOperations } from "./constants-RUWhnVl4.mjs";
2
+ export { AllCrudOperations, AllReadOperations, AllWriteOperations, CoreCreateOperations, CoreCrudOperations, CoreDeleteOperations, CoreReadOperations, CoreUpdateOperations, CoreWriteOperations };
@@ -0,0 +1,2 @@
1
+ import { a as CoreCreateOperations, c as CoreReadOperations, i as AllWriteOperations, l as CoreUpdateOperations, n as AllCrudOperations, o as CoreCrudOperations, r as AllReadOperations, s as CoreDeleteOperations, u as CoreWriteOperations } from "./constants-BQEq4CBi.mjs";
2
+ export { AllCrudOperations, AllReadOperations, AllWriteOperations, CoreCreateOperations, CoreCrudOperations, CoreDeleteOperations, CoreReadOperations, CoreUpdateOperations, CoreWriteOperations };