@spine-event-engine/client-node 2.0.0-snapshot.2 → 2.0.0-snapshot.21

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.
@@ -11,293 +11,11 @@
11
11
  * or implied. See the License for the specific language governing permissions and limitations under
12
12
  * the License.
13
13
  */
14
- import { getOption, hasOption, } from "@bufbuild/protobuf";
15
- import { column, entity, EntityOption_Kind } from "@spine-event-engine/proto";
16
- import { EntityFieldClassification } from "../../codegen/entity-field-classification.mjs";
14
+ import { EntityColumn as CoreEntityColumn, } from "@spine-event-engine/core";
15
+ import { GeneratedEntityColumns } from "@spine-event-engine/core/codegen";
17
16
  /**
18
- * Creates immutable Entity-column metadata emitted by the companion generator.
17
+ * Exposes the canonical Entity-column constructor through this compatibility package.
19
18
  */
20
- export const GeneratedEntityColumns = Object.freeze({
21
- define(schema, entries) {
22
- const captured = EntityColumnFacts.captureDefinition(schema, entries);
23
- const copiedEntries = Object.fromEntries(Object.entries(entries).map(([name, entry]) => {
24
- EntityColumnFacts.deepFreeze(entry.field);
25
- return [name, Object.freeze({ field: entry.field, comparison: entry.comparison })];
26
- }));
27
- const definition = Object.freeze({
28
- entries: Object.freeze(copiedEntries),
29
- });
30
- capturedDefinitions.set(definition, captured);
31
- return definition;
32
- },
33
- });
34
- const equalityOperators = Object.freeze(["equal"]);
35
- const orderingOperators = Object.freeze([
36
- "equal",
37
- "greaterThan",
38
- "lessThan",
39
- "greaterOrEqual",
40
- "lessOrEqual",
41
- ]);
42
- const systemNames = new Set(["version", "archived", "deleted"]);
43
- const cache = new WeakMap();
44
- const entityColumnConstructionToken = Symbol("EntityColumnConstructionToken");
45
- const capturedDefinitions = new WeakMap();
46
- /**
47
- * An immutable, nominal, descriptor-backed Entity column.
48
- *
49
- * Instances can only be obtained by registering generated metadata for a
50
- * Entity schema. This prevents consumers from constructing arbitrary
51
- * string columns that have no corresponding Protobuf declaration.
52
- */
53
- export class EntityColumn {
54
- /**
55
- * Generated Protobuf schema that owns this column.
56
- */
57
- schema;
58
- /**
59
- * Protobuf field name, or the canonical system-column name.
60
- */
61
- name;
62
- /**
63
- * Protobuf-ES property name, or the canonical system-column name.
64
- */
65
- localName;
66
- /**
67
- * Whether the column came from the state descriptor or Entity storage metadata.
68
- */
69
- source;
70
- /**
71
- * Exact declared field descriptor; system columns have no state field.
72
- */
73
- descriptor;
74
- /**
75
- * Runtime value category derived from the descriptor.
76
- */
77
- valueKind;
78
- /**
79
- * Fully qualified message type for message-valued columns.
80
- */
81
- messageType;
82
- /**
83
- * Supported comparison family.
84
- */
85
- comparison;
86
- /**
87
- * Exact operator set accepted for this column.
88
- */
89
- operators;
90
- constructor(input, token) {
91
- if (token !== entityColumnConstructionToken) {
92
- throw new TypeError("Entity columns can only be constructed during registration.");
93
- }
94
- this.schema = input.schema;
95
- this.name = input.name;
96
- this.localName = input.localName;
97
- this.source = input.source;
98
- this.descriptor = input.descriptor;
99
- this.valueKind = input.valueKind;
100
- this.messageType = input.messageType;
101
- this.comparison = input.comparison;
102
- this.operators = input.operators;
103
- Object.freeze(this);
104
- }
105
- /**
106
- * Registers generated Entity-column metadata for a schema.
107
- *
108
- * @param schema Generated Entity schema that owns the metadata.
109
- * @param definition Immutable generated field metadata.
110
- * @returns Stable immutable columns for the Entity schema.
111
- */
112
- static register(schema, definition) {
113
- const existing = cache.get(schema);
114
- if (existing?.definitions.has(definition) === true) {
115
- return existing.columns;
116
- }
117
- const captured = capturedDefinitions.get(definition);
118
- EntityColumnFacts.validateSchema(schema, captured);
119
- const declared = EntityColumnFacts.validateDefinition(schema, definition, captured);
120
- if (existing !== undefined) {
121
- existing.definitions.add(definition);
122
- return existing.columns;
123
- }
124
- const result = {};
125
- for (const [localName, field, fieldName, metadata] of declared) {
126
- result[localName] = new EntityColumn({
127
- schema,
128
- name: fieldName,
129
- localName,
130
- source: "declared",
131
- descriptor: field,
132
- valueKind: metadata.valueKind,
133
- messageType: metadata.messageType,
134
- comparison: metadata.comparison,
135
- operators: EntityColumnFacts.operatorsFor(metadata.comparison),
136
- }, entityColumnConstructionToken);
137
- }
138
- result.version = new EntityColumn({
139
- schema,
140
- name: "version",
141
- localName: "version",
142
- source: "system",
143
- valueKind: "message",
144
- messageType: "spine.core.Version",
145
- comparison: "ordering",
146
- operators: orderingOperators,
147
- }, entityColumnConstructionToken);
148
- for (const name of ["archived", "deleted"]) {
149
- result[name] = new EntityColumn({
150
- schema,
151
- name,
152
- localName: name,
153
- source: "system",
154
- valueKind: "boolean",
155
- comparison: "equality",
156
- operators: equalityOperators,
157
- }, entityColumnConstructionToken);
158
- }
159
- const columns = Object.freeze(result);
160
- cache.set(schema, {
161
- definitions: new WeakSet([definition]),
162
- columns,
163
- });
164
- return columns;
165
- }
166
- }
167
- /**
168
- * Internal descriptor facts used while generated column metadata is registered.
169
- */
170
- const EntityColumnFacts = Object.freeze({
171
- // prettier-ignore
172
- /**
173
- * Validates that a schema declares one supported Entity kind.
174
- */
175
- validateSchema(schema, captured) {
176
- const entityKind = captured?.schema === schema
177
- ? captured.entityKind
178
- : hasOption(schema, entity)
179
- ? getOption(schema, entity).kind
180
- : undefined;
181
- if (entityKind !== EntityOption_Kind.AGGREGATE &&
182
- entityKind !== EntityOption_Kind.PROJECTION &&
183
- entityKind !== EntityOption_Kind.PROCESS_MANAGER) {
184
- throw new TypeError(`Entity column schema "${schema.typeName}" must declare Entity kind.`);
185
- }
186
- },
187
- /**
188
- * Validates and describes every declared generated column.
189
- */
190
- validateDefinition(schema, definition, captured) {
191
- const facts = captured?.schema === schema
192
- ? captured
193
- : EntityColumnFacts.captureDefinition(schema, definition.entries);
194
- const annotated = new Map(facts.annotated);
195
- const result = [];
196
- for (const [localName, entry] of Object.entries(definition.entries)) {
197
- if (systemNames.has(localName)) {
198
- throw new TypeError(`Entity column definition cannot replace system column "${localName}".`);
199
- }
200
- if (entry === undefined)
201
- continue;
202
- const fieldFacts = facts.entries.get(localName) ?? EntityColumnFacts.captureField(entry.field);
203
- if (fieldFacts.parent !== schema || fieldFacts.localName !== localName) {
204
- throw new TypeError(`Entity column definition key "${localName}" must reference field "${localName}".`);
205
- }
206
- if (!fieldFacts.markedColumn) {
207
- throw new TypeError(`Entity field "${localName}" is not marked (column).`);
208
- }
209
- const metadata = EntityColumnFacts.describeField(fieldFacts);
210
- if (entry.comparison !== metadata.comparison) {
211
- throw new TypeError(`Entity column "${localName}" requires ${metadata.comparison} comparison metadata.`);
212
- }
213
- annotated.delete(localName);
214
- result.push([localName, fieldFacts.field, fieldFacts.name, metadata]);
215
- }
216
- const missing = annotated.keys().next().value;
217
- if (missing !== undefined) {
218
- throw new TypeError(`Entity column definition is missing annotated field "${missing}".`);
219
- }
220
- return result;
221
- },
222
- /**
223
- * Derives runtime metadata from one validated descriptor.
224
- */
225
- describeField(field) {
226
- const metadata = field.classification;
227
- if (!metadata.supported && metadata.reason === "singular") {
228
- throw new TypeError(`Entity column "${field.localName}" must be singular; repeated and map fields are unsupported.`);
229
- }
230
- if (!metadata.supported) {
231
- throw new TypeError(`Entity column "${field.localName}" cannot belong to a oneof.`);
232
- }
233
- return metadata;
234
- },
235
- /**
236
- * Captures immutable facts from one generated definition.
237
- */
238
- captureDefinition(schema, entries) {
239
- const annotated = new Map(schema.fields
240
- .filter((field) => hasOption(field, column) && getOption(field, column))
241
- .map((field) => [field.localName, field]));
242
- const capturedEntries = new Map();
243
- for (const [localName, entry] of Object.entries(entries)) {
244
- capturedEntries.set(localName, EntityColumnFacts.captureField(entry.field));
245
- }
246
- return Object.freeze({
247
- schema,
248
- entityKind: hasOption(schema, entity) ? getOption(schema, entity).kind : undefined,
249
- annotated,
250
- entries: capturedEntries,
251
- });
252
- },
253
- /**
254
- * Captures immutable facts from one generated field descriptor.
255
- */
256
- captureField(field) {
257
- return Object.freeze({
258
- field,
259
- parent: field.parent,
260
- localName: field.localName,
261
- name: field.name,
262
- markedColumn: hasOption(field, column) && getOption(field, column),
263
- classification: Object.freeze(EntityFieldClassification.classify(field)),
264
- });
265
- },
266
- /**
267
- * Deeply freezes a descriptor graph without freezing typed-array views.
268
- */
269
- deepFreeze(root) {
270
- const pending = [root];
271
- const visited = new WeakSet();
272
- while (pending.length > 0) {
273
- const current = pending.pop();
274
- if (current === undefined || visited.has(current))
275
- continue;
276
- visited.add(current);
277
- if (ArrayBuffer.isView(current))
278
- continue;
279
- for (const key of Reflect.ownKeys(current)) {
280
- const property = Object.getOwnPropertyDescriptor(current, key);
281
- if (property !== undefined &&
282
- "value" in property &&
283
- EntityColumnFacts.isObject(property.value)) {
284
- pending.push(property.value);
285
- }
286
- }
287
- Object.freeze(current);
288
- }
289
- },
290
- /**
291
- * Checks whether a value can participate in a descriptor graph.
292
- */
293
- isObject(value) {
294
- return (typeof value === "object" && value !== null) || typeof value === "function";
295
- },
296
- /**
297
- * Returns the supported operator set for a comparison family.
298
- */
299
- operatorsFor(comparison) {
300
- return comparison === "ordering" ? orderingOperators : equalityOperators;
301
- },
302
- });
19
+ export const EntityColumn = CoreEntityColumn;
20
+ export { GeneratedEntityColumns };
303
21
  //# sourceMappingURL=entity-column.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-column.js","sourceRoot":"","sources":["../../src/entity/entity-column.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,SAAS,EACT,SAAS,GAIV,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAgB,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAqG1F;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAc9B,MAAM,CAAC,MAAM,CAAC;IACjB,MAAM,CACJ,MAAc,EACd,OAAqE;QAErE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,MAAM,CAAC,WAAW,CACrC,MAAM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,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;gBAC/D,IACE,QAAQ,KAAK,SAAS;oBACtB,OAAO,IAAI,QAAQ;oBACnB,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC1C,CAAC;oBACD,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAc;QACrB,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,UAA4B;QACvC,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC3E,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"entity-column.js","sourceRoot":"","sources":["../../src/entity/entity-column.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EACL,YAAY,IAAI,gBAAgB,GAWjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAiF1E;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAA4B,gBAAgB,CAAC;AAEtE,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,180 +1,38 @@
1
- import { type Message, type MessageShape } from "@bufbuild/protobuf";
1
+ import type { Message } from "@bufbuild/protobuf";
2
2
  import type { GenMessage } from "@bufbuild/protobuf/codegenv2";
3
- import { type ActorContext } from "@spine-event-engine/proto";
4
- import { type Query } from "@spine-event-engine/proto/client";
5
- import { EntityColumn, type EntityColumnOperator, type EntityColumnValue } from "../entity/entity-column.js";
6
- type EntityColumnCollection<Schema extends GenMessage<Message>> = Readonly<Record<string, EntityColumn<Schema>>>;
7
- type PredicateColumn<Predicate> = Predicate extends EntityPredicate<infer Column> ? Column : never;
8
- type ColumnSchema<Column> = Column extends EntityColumn<infer Schema> ? Schema : never;
9
- type ColumnName<Column> = Column extends EntityColumn<GenMessage<Message>, infer Name> ? Name : never;
10
- type StateName<Schema extends GenMessage<Message>> = Exclude<keyof MessageShape<Schema>, "$typeName" | "$unknown"> & string;
3
+ import { EntityQuery as CoreEntityQuery, EntityQueryBuilder as CoreEntityQueryBuilder, type EntityComparisonPredicate as CoreEntityComparisonPredicate, type EntityGroup as CoreEntityGroup, type EntityPredicate as CoreEntityPredicate, type EntityQueryBuilder as CoreQueryBuilderType } from "@spine-event-engine/core";
4
+ import type { EntityColumn } from "../entity/entity-column.js";
11
5
  /**
12
6
  * Represents one typed leaf comparison in an Entity query predicate.
7
+ *
8
+ * @typeParam Column Entity column compared by this predicate.
13
9
  */
14
- export interface EntityComparisonPredicate<Column extends EntityColumn = EntityColumn> {
15
- /**
16
- * Identifies this predicate as a leaf comparison.
17
- */
18
- readonly kind: "comparison";
19
- /**
20
- * Identifies the column compared by this predicate.
21
- */
22
- readonly column: Column;
23
- /**
24
- * Identifies the comparison operator applied to the column.
25
- */
26
- readonly operator: EntityColumnOperator<Column>;
27
- /**
28
- * Stores the value compared with the column.
29
- */
30
- readonly value: Exclude<EntityColumnValue<Column>, undefined>;
31
- }
10
+ export type EntityComparisonPredicate<Column extends EntityColumn = EntityColumn> = CoreEntityComparisonPredicate<Column>;
32
11
  /**
33
12
  * Represents a nested conjunction or disjunction in an Entity query predicate.
13
+ *
14
+ * @typeParam Column Entity column used by the nested predicates.
34
15
  */
35
- export interface EntityGroup<Column extends EntityColumn = EntityColumn> {
36
- /**
37
- * Identifies the logical operation that combines the predicates.
38
- */
39
- readonly kind: "all" | "either";
40
- /**
41
- * Lists the predicates combined by this group.
42
- */
43
- readonly predicates: readonly EntityPredicate<Column>[];
44
- }
16
+ export type EntityGroup<Column extends EntityColumn = EntityColumn> = CoreEntityGroup<Column>;
45
17
  /**
46
18
  * Represents a typed predicate accepted by the Entity query builder.
19
+ *
20
+ * @typeParam Column Entity column used by the predicate.
47
21
  */
48
- export type EntityPredicate<Column extends EntityColumn = EntityColumn> = EntityComparisonPredicate<Column> | EntityGroup<Column>;
22
+ export type EntityPredicate<Column extends EntityColumn = EntityColumn> = CoreEntityPredicate<Column>;
49
23
  /**
50
24
  * Builds a typed Entity query for the frozen Spine wire contract.
25
+ *
26
+ * @typeParam Schema Generated Protobuf state schema read by the query.
27
+ * @typeParam Columns Registered descriptor-backed columns for the schema.
51
28
  */
52
- export declare class EntityQueryBuilder<Schema extends GenMessage<Message>, Columns extends EntityColumnCollection<Schema>> {
53
- #private;
54
- /**
55
- * Creates a builder for one Entity query.
56
- *
57
- * @param input Schema, registered columns, and actor context for the query.
58
- */
59
- constructor(input: {
60
- readonly schema: Schema;
61
- readonly columns: Columns;
62
- readonly context: ActorContext;
63
- });
64
- /**
65
- * Adds Entity IDs to the query target.
66
- *
67
- * @param ids Entity IDs to include.
68
- * @returns This builder.
69
- */
70
- byId(...ids: readonly unknown[]): this;
71
- /**
72
- * Adds a typed predicate. Repeated calls are combined with `ALL`.
73
- *
74
- * @param predicate Predicate owned by this builder's registered columns.
75
- * @returns This builder.
76
- */
77
- where<Predicate extends EntityPredicate>(predicate: ColumnSchema<PredicateColumn<Predicate>> extends Schema ? ColumnName<PredicateColumn<Predicate>> extends keyof Columns ? Predicate : never : never): this;
78
- /**
79
- * Adds top-level state fields returned by the server.
80
- *
81
- * @param paths Generated property names of state fields.
82
- * @returns This builder.
83
- */
84
- mask(...paths: readonly StateName<Schema>[]): this;
85
- /**
86
- * Adds one ordering clause in caller order.
87
- *
88
- * @param column Ordered column owned by this builder's Entity schema.
89
- * @param direction Sort direction, ascending by default.
90
- * @returns This builder.
91
- */
92
- orderBy<Column extends EntityColumn<Schema>>(column: "greaterThan" extends EntityColumnOperator<Column> ? Column : never, direction?: "asc" | "desc"): this;
93
- /**
94
- * Sets a positive result limit that requires ordering.
95
- *
96
- * @param value Positive maximum number of returned entities.
97
- * @returns This builder.
98
- */
99
- limit(value: number): this;
100
- /**
101
- * Builds the `spine.client.Query` message.
102
- *
103
- * @returns The wire query message.
104
- */
105
- build(): Query;
106
- }
29
+ export type EntityQueryBuilder<Schema extends GenMessage<Message>, Columns extends Readonly<Record<string, EntityColumn<Schema>>>> = CoreQueryBuilderType<Schema, Columns>;
107
30
  /**
108
- * Creates typed predicates and builders for Entity queries.
31
+ * Exposes the canonical Entity query builder through this compatibility package.
109
32
  */
110
- export declare const EntityQuery: Readonly<{
111
- /**
112
- * Creates an equality predicate for a descriptor-backed Entity column.
113
- *
114
- * @param column Column to compare.
115
- * @param value Value to match.
116
- * @returns Immutable equality predicate.
117
- */
118
- eq<Column extends EntityColumn>(column: Column, value: Exclude<EntityColumnValue<Column>, undefined>): EntityComparisonPredicate<Column>;
119
- /**
120
- * Creates a greater-than predicate for an ordered Entity column.
121
- *
122
- * @param column Ordered column to compare.
123
- * @param value Lower exclusive bound.
124
- * @returns Immutable greater-than predicate.
125
- */
126
- gt<Column extends EntityColumn>(column: "greaterThan" extends EntityColumnOperator<Column> ? Column : never, value: Exclude<EntityColumnValue<Column>, undefined>): EntityComparisonPredicate<Column>;
127
- /**
128
- * Creates a less-than predicate for an ordered Entity column.
129
- *
130
- * @param column Ordered column to compare.
131
- * @param value Upper exclusive bound.
132
- * @returns Immutable less-than predicate.
133
- */
134
- lt<Column extends EntityColumn>(column: "lessThan" extends EntityColumnOperator<Column> ? Column : never, value: Exclude<EntityColumnValue<Column>, undefined>): EntityComparisonPredicate<Column>;
135
- /**
136
- * Creates a greater-than-or-equal predicate for an ordered Entity column.
137
- *
138
- * @param column Ordered column to compare.
139
- * @param value Lower inclusive bound.
140
- * @returns Immutable inclusive lower-bound predicate.
141
- */
142
- ge<Column extends EntityColumn>(column: "greaterOrEqual" extends EntityColumnOperator<Column> ? Column : never, value: Exclude<EntityColumnValue<Column>, undefined>): EntityComparisonPredicate<Column>;
143
- /**
144
- * Creates a less-than-or-equal predicate for an ordered Entity column.
145
- *
146
- * @param column Ordered column to compare.
147
- * @param value Upper inclusive bound.
148
- * @returns Immutable inclusive upper-bound predicate.
149
- */
150
- le<Column extends EntityColumn>(column: "lessOrEqual" extends EntityColumnOperator<Column> ? Column : never, value: Exclude<EntityColumnValue<Column>, undefined>): EntityComparisonPredicate<Column>;
151
- /**
152
- * Combines predicates conjunctively.
153
- *
154
- * @param first First predicate in the group.
155
- * @param rest Remaining predicates in the group.
156
- * @returns Immutable conjunction predicate.
157
- */
158
- all<First extends EntityPredicate, Rest extends readonly EntityPredicate[]>(first: First, ...rest: Rest): EntityGroup<PredicateColumn<First | Rest[number]>>;
159
- /**
160
- * Combines predicates disjunctively.
161
- *
162
- * @param first First predicate in the group.
163
- * @param rest Remaining predicates in the group.
164
- * @returns Immutable disjunction predicate.
165
- */
166
- either<First extends EntityPredicate, Rest extends readonly EntityPredicate[]>(first: First, ...rest: Rest): EntityGroup<PredicateColumn<First | Rest[number]>>;
167
- /**
168
- * Creates a builder for one Entity schema.
169
- *
170
- * @param input Schema, registered columns, and actor context for the query.
171
- * @returns A mutable query builder.
172
- */
173
- select<Schema extends GenMessage<Message>, Columns extends EntityColumnCollection<Schema>>(input: {
174
- readonly schema: Schema;
175
- readonly columns: Columns;
176
- readonly context: ActorContext;
177
- }): EntityQueryBuilder<Schema, Columns>;
178
- }>;
179
- export {};
33
+ export declare const EntityQueryBuilder: typeof CoreEntityQueryBuilder;
34
+ /**
35
+ * Exposes typed Entity query predicates and builders through this compatibility package.
36
+ */
37
+ export declare const EntityQuery: typeof CoreEntityQuery;
180
38
  //# sourceMappingURL=entity-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-query.d.ts","sourceRoot":"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