@ahoo-wang/fetcher-wow 3.16.10 → 3.17.1

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.
Files changed (37) hide show
  1. package/README.md +83 -62
  2. package/README.zh-CN.md +70 -51
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.es.js +793 -317
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/query/condition.d.ts +52 -0
  8. package/dist/query/condition.d.ts.map +1 -1
  9. package/dist/query/cursorQuery.d.ts +10 -1
  10. package/dist/query/cursorQuery.d.ts.map +1 -1
  11. package/dist/query/event/eventStreamQueryClient.d.ts +21 -21
  12. package/dist/query/event/eventStreamQueryClient.d.ts.map +1 -1
  13. package/dist/query/filter.d.ts +204 -0
  14. package/dist/query/filter.d.ts.map +1 -0
  15. package/dist/query/index.d.ts +1 -0
  16. package/dist/query/index.d.ts.map +1 -1
  17. package/dist/query/locale/en_US.cjs.js.map +1 -1
  18. package/dist/query/locale/en_US.d.ts +1 -0
  19. package/dist/query/locale/en_US.d.ts.map +1 -1
  20. package/dist/query/locale/en_US.es.js.map +1 -1
  21. package/dist/query/locale/operatorLocale.d.ts +1 -0
  22. package/dist/query/locale/operatorLocale.d.ts.map +1 -1
  23. package/dist/query/locale/zh_CN.cjs.js.map +1 -1
  24. package/dist/query/locale/zh_CN.d.ts +1 -0
  25. package/dist/query/locale/zh_CN.d.ts.map +1 -1
  26. package/dist/query/locale/zh_CN.es.js.map +1 -1
  27. package/dist/query/operator.d.ts +3 -0
  28. package/dist/query/operator.d.ts.map +1 -1
  29. package/dist/query/queryApi.d.ts +9 -8
  30. package/dist/query/queryApi.d.ts.map +1 -1
  31. package/dist/query/queryable.d.ts +34 -4
  32. package/dist/query/queryable.d.ts.map +1 -1
  33. package/dist/query/snapshot/snapshotQueryApi.d.ts +5 -5
  34. package/dist/query/snapshot/snapshotQueryApi.d.ts.map +1 -1
  35. package/dist/query/snapshot/snapshotQueryClient.d.ts +40 -42
  36. package/dist/query/snapshot/snapshotQueryClient.d.ts.map +1 -1
  37. package/package.json +15 -14
package/dist/index.es.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { ContentTypeValues as e, combineURLs as t } from "@ahoo-wang/fetcher";
2
2
  import { JsonEventStreamResultExtractor as n } from "@ahoo-wang/fetcher-eventstream";
3
3
  import { api as r, attribute as i, autoGeneratedError as a, body as o, endpoint as s, get as c, path as l, post as u, request as d } from "@ahoo-wang/fetcher-decorator";
4
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateMetadata.js
4
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/decorateMetadata.js
5
5
  function f(e, t) {
6
6
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
7
7
  }
8
8
  //#endregion
9
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateParam.js
9
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/decorateParam.js
10
10
  function p(e, t) {
11
11
  return function(n, r) {
12
12
  t(n, r, e);
13
13
  };
14
14
  }
15
15
  //#endregion
16
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
16
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/decorate.js
17
17
  function m(e, t, n, r) {
18
18
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
19
19
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
@@ -22,7 +22,7 @@ function m(e, t, n, r) {
22
22
  }
23
23
  //#endregion
24
24
  //#region src/command/commandClient.ts
25
- var h, g, ee, te, _ = class {
25
+ var h = class {
26
26
  constructor(e) {
27
27
  this.apiMetadata = e;
28
28
  }
@@ -38,9 +38,9 @@ m([
38
38
  p(0, d()),
39
39
  p(1, i()),
40
40
  f("design:type", Function),
41
- f("design:paramtypes", [Object, typeof (g = typeof Record < "u" && Record) == "function" ? g : Object]),
42
- f("design:returntype", typeof (h = typeof Promise < "u" && Promise) == "function" ? h : Object)
43
- ], _.prototype, "send", null), m([
41
+ f("design:paramtypes", [Object, typeof Record > "u" ? Object : Record]),
42
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
43
+ ], h.prototype, "send", null), m([
44
44
  s(void 0, void 0, {
45
45
  headers: { Accept: e.TEXT_EVENT_STREAM },
46
46
  resultExtractor: n
@@ -48,12 +48,12 @@ m([
48
48
  p(0, d()),
49
49
  p(1, i()),
50
50
  f("design:type", Function),
51
- f("design:paramtypes", [Object, typeof (te = typeof Record < "u" && Record) == "function" ? te : Object]),
52
- f("design:returntype", typeof (ee = typeof Promise < "u" && Promise) == "function" ? ee : Object)
53
- ], _.prototype, "sendAndWaitStream", null), _ = m([r(), f("design:paramtypes", [Object])], _);
51
+ f("design:paramtypes", [Object, typeof Record > "u" ? Object : Record]),
52
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
53
+ ], h.prototype, "sendAndWaitStream", null), h = m([r(), f("design:paramtypes", [Object])], h);
54
54
  //#endregion
55
55
  //#region src/command/commandHeaders.ts
56
- var ne = class e {
56
+ var ee = class e {
57
57
  static {
58
58
  this.COMMAND_HEADERS_PREFIX = "Command-";
59
59
  }
@@ -123,34 +123,34 @@ var ne = class e {
123
123
  static {
124
124
  this.COMMAND_HEADER_X_PREFIX = `${e.COMMAND_HEADERS_PREFIX}Header-`;
125
125
  }
126
- }, re = /* @__PURE__ */ function(e) {
126
+ }, te = /* @__PURE__ */ function(e) {
127
127
  return e.SENT = "SENT", e.PROCESSED = "PROCESSED", e.SNAPSHOT = "SNAPSHOT", e.PROJECTED = "PROJECTED", e.EVENT_HANDLED = "EVENT_HANDLED", e.SAGA_HANDLED = "SAGA_HANDLED", e;
128
- }({}), v = /* @__PURE__ */ function(e) {
128
+ }({}), g = /* @__PURE__ */ function(e) {
129
129
  return e.AND = "AND", e.OR = "OR", e.NOR = "NOR", e.ID = "ID", e.IDS = "IDS", e.AGGREGATE_ID = "AGGREGATE_ID", e.AGGREGATE_IDS = "AGGREGATE_IDS", e.TENANT_ID = "TENANT_ID", e.OWNER_ID = "OWNER_ID", e.SPACE_ID = "SPACE_ID", e.DELETED = "DELETED", e.ALL = "ALL", e.EQ = "EQ", e.NE = "NE", e.GT = "GT", e.LT = "LT", e.GTE = "GTE", e.LTE = "LTE", e.CONTAINS = "CONTAINS", e.IN = "IN", e.NOT_IN = "NOT_IN", e.BETWEEN = "BETWEEN", e.ALL_IN = "ALL_IN", e.STARTS_WITH = "STARTS_WITH", e.ENDS_WITH = "ENDS_WITH", e.ELEM_MATCH = "ELEM_MATCH", e.NULL = "NULL", e.NOT_NULL = "NOT_NULL", e.TRUE = "TRUE", e.FALSE = "FALSE", e.EXISTS = "EXISTS", e.TODAY = "TODAY", e.BEFORE_TODAY = "BEFORE_TODAY", e.TOMORROW = "TOMORROW", e.THIS_WEEK = "THIS_WEEK", e.NEXT_WEEK = "NEXT_WEEK", e.LAST_WEEK = "LAST_WEEK", e.THIS_MONTH = "THIS_MONTH", e.LAST_MONTH = "LAST_MONTH", e.RECENT_DAYS = "RECENT_DAYS", e.EARLIER_DAYS = "EARLIER_DAYS", e.MATCH = "MATCH", e.RAW = "RAW", e;
130
- }({}), ie = new Set([
131
- v.AND,
132
- v.OR,
133
- v.NOR
134
- ]), ae = new Set([
135
- v.NULL,
136
- v.NOT_NULL,
137
- v.TRUE,
138
- v.FALSE,
139
- v.EXISTS,
140
- v.TODAY,
141
- v.TOMORROW,
142
- v.THIS_WEEK,
143
- v.NEXT_WEEK,
144
- v.LAST_WEEK,
145
- v.THIS_MONTH,
146
- v.LAST_MONTH
130
+ }({}), ne = /* @__PURE__ */ new Set([
131
+ "AND",
132
+ "OR",
133
+ "NOR"
134
+ ]), re = /* @__PURE__ */ new Set([
135
+ "NULL",
136
+ "NOT_NULL",
137
+ "TRUE",
138
+ "FALSE",
139
+ "EXISTS",
140
+ "TODAY",
141
+ "TOMORROW",
142
+ "THIS_WEEK",
143
+ "NEXT_WEEK",
144
+ "LAST_WEEK",
145
+ "THIS_MONTH",
146
+ "LAST_MONTH"
147
147
  ]);
148
148
  //#endregion
149
149
  //#region src/query/condition.ts
150
- function y(e) {
150
+ function _(e) {
151
151
  return !!e;
152
152
  }
153
- var oe = class {
153
+ var ie = class {
154
154
  static {
155
155
  this.IGNORE_CASE_OPTION_KEY = "ignoreCase";
156
156
  }
@@ -161,333 +161,781 @@ var oe = class {
161
161
  this.DATE_PATTERN_OPTION_KEY = "datePattern";
162
162
  }
163
163
  };
164
- function b(e) {
164
+ function v(e) {
165
165
  if (e !== void 0) return { ignoreCase: e };
166
166
  }
167
- function x(e, t) {
167
+ function y(e, t) {
168
168
  if (e === void 0 && t === void 0) return;
169
169
  let n = {};
170
170
  return e !== void 0 && (n.datePattern = e), t !== void 0 && (n.zoneId = t), n;
171
171
  }
172
- var se = /* @__PURE__ */ function(e) {
172
+ var b = /* @__PURE__ */ function(e) {
173
173
  return e.ACTIVE = "ACTIVE", e.DELETED = "DELETED", e.ALL = "ALL", e;
174
174
  }({});
175
- function ce(...e) {
176
- if (e.length === 0) return T();
177
- if (e.length === 1) return y(e[0]) ? e[0] : T();
175
+ function x(...e) {
176
+ if (e.length === 0) return w();
177
+ if (e.length === 1) return _(e[0]) ? e[0] : w();
178
178
  let t = [];
179
179
  return e.forEach((e) => {
180
- e?.operator === v.ALL || !y(e) || (e.operator === v.AND && e.children ? t.push(...e.children) : t.push(e));
181
- }), t.length === 0 ? T() : {
182
- operator: v.AND,
180
+ e?.operator === g.ALL || !_(e) || (e.operator === g.AND && e.children ? t.push(...e.children) : t.push(e));
181
+ }), t.length === 0 ? w() : {
182
+ operator: g.AND,
183
183
  children: t
184
184
  };
185
185
  }
186
- function le(...e) {
187
- let t = e?.filter((e) => y(e));
188
- return t.length === 0 ? T() : {
189
- operator: v.OR,
186
+ function ae(...e) {
187
+ let t = e?.filter((e) => _(e));
188
+ return t.length === 0 ? w() : {
189
+ operator: g.OR,
190
190
  children: t
191
191
  };
192
192
  }
193
- function ue(...e) {
194
- return e.length === 0 ? T() : {
195
- operator: v.NOR,
193
+ function oe(...e) {
194
+ return e.length === 0 ? w() : {
195
+ operator: g.NOR,
196
196
  children: e
197
197
  };
198
198
  }
199
- function de(e) {
199
+ function se(e) {
200
200
  return {
201
- operator: v.ID,
201
+ operator: g.ID,
202
202
  value: e
203
203
  };
204
204
  }
205
- function fe(e) {
205
+ function ce(e) {
206
206
  return {
207
- operator: v.IDS,
207
+ operator: g.IDS,
208
208
  value: e
209
209
  };
210
210
  }
211
211
  function S(e) {
212
212
  return {
213
- operator: v.AGGREGATE_ID,
213
+ operator: g.AGGREGATE_ID,
214
214
  value: e
215
215
  };
216
216
  }
217
217
  function C(e) {
218
218
  return {
219
- operator: v.AGGREGATE_IDS,
219
+ operator: g.AGGREGATE_IDS,
220
220
  value: e
221
221
  };
222
222
  }
223
- function pe(e) {
223
+ function le(e) {
224
224
  return {
225
- operator: v.TENANT_ID,
225
+ operator: g.TENANT_ID,
226
226
  value: e
227
227
  };
228
228
  }
229
- function me(e) {
229
+ function ue(e) {
230
230
  return {
231
- operator: v.OWNER_ID,
231
+ operator: g.OWNER_ID,
232
232
  value: e
233
233
  };
234
234
  }
235
- function he(e) {
235
+ function de(e) {
236
236
  return {
237
- operator: v.SPACE_ID,
237
+ operator: g.SPACE_ID,
238
238
  value: e
239
239
  };
240
240
  }
241
- function w(e) {
241
+ function fe(e) {
242
242
  return {
243
- operator: v.DELETED,
243
+ operator: g.DELETED,
244
244
  value: e
245
245
  };
246
246
  }
247
- function ge() {
248
- return w(se.ACTIVE);
247
+ function pe() {
248
+ return fe("ACTIVE");
249
249
  }
250
- function T() {
251
- return { operator: v.ALL };
250
+ function w() {
251
+ return { operator: g.ALL };
252
252
  }
253
- function _e(e, t) {
253
+ function me(e, t) {
254
254
  return {
255
255
  field: e,
256
- operator: v.EQ,
256
+ operator: g.EQ,
257
257
  value: t
258
258
  };
259
259
  }
260
- function ve(e, t) {
260
+ function he(e, t) {
261
261
  return {
262
262
  field: e,
263
- operator: v.NE,
263
+ operator: g.NE,
264
264
  value: t
265
265
  };
266
266
  }
267
- function E(e, t) {
267
+ function ge(e, t) {
268
268
  return {
269
269
  field: e,
270
- operator: v.GT,
270
+ operator: g.GT,
271
271
  value: t
272
272
  };
273
273
  }
274
- function D(e, t) {
274
+ function _e(e, t) {
275
275
  return {
276
276
  field: e,
277
- operator: v.LT,
277
+ operator: g.LT,
278
278
  value: t
279
279
  };
280
280
  }
281
- function ye(e, t) {
281
+ function ve(e, t) {
282
282
  return {
283
283
  field: e,
284
- operator: v.GTE,
284
+ operator: g.GTE,
285
285
  value: t
286
286
  };
287
287
  }
288
- function be(e, t) {
288
+ function ye(e, t) {
289
289
  return {
290
290
  field: e,
291
- operator: v.LTE,
291
+ operator: g.LTE,
292
292
  value: t
293
293
  };
294
294
  }
295
- function xe(e, t, n) {
296
- let r = b(n);
295
+ function be(e, t, n) {
296
+ let r = v(n);
297
297
  return {
298
298
  field: e,
299
- operator: v.CONTAINS,
299
+ operator: g.CONTAINS,
300
300
  value: t,
301
301
  options: r
302
302
  };
303
303
  }
304
- function Se(e, ...t) {
304
+ function xe(e, ...t) {
305
305
  return {
306
306
  field: e,
307
- operator: v.IN,
307
+ operator: g.IN,
308
308
  value: t
309
309
  };
310
310
  }
311
- function Ce(e, ...t) {
311
+ function Se(e, ...t) {
312
312
  return {
313
313
  field: e,
314
- operator: v.NOT_IN,
314
+ operator: g.NOT_IN,
315
315
  value: t
316
316
  };
317
317
  }
318
- function we(e, t, n) {
318
+ function Ce(e, t, n) {
319
319
  return {
320
320
  field: e,
321
- operator: v.BETWEEN,
321
+ operator: g.BETWEEN,
322
322
  value: [t, n]
323
323
  };
324
324
  }
325
- function Te(e, ...t) {
325
+ function we(e, ...t) {
326
326
  return {
327
327
  field: e,
328
- operator: v.ALL_IN,
328
+ operator: g.ALL_IN,
329
329
  value: t
330
330
  };
331
331
  }
332
- function Ee(e, t, n) {
333
- let r = b(n);
332
+ function Te(e, t, n) {
333
+ let r = v(n);
334
334
  return {
335
335
  field: e,
336
- operator: v.STARTS_WITH,
336
+ operator: g.STARTS_WITH,
337
337
  value: t,
338
338
  options: r
339
339
  };
340
340
  }
341
- function De(e, t) {
341
+ function Ee(e, t) {
342
342
  return {
343
343
  field: e,
344
- operator: v.MATCH,
344
+ operator: g.MATCH,
345
345
  value: t
346
346
  };
347
347
  }
348
- function Oe(e, t, n) {
349
- let r = b(n);
348
+ function De(e, t, n) {
349
+ let r = v(n);
350
350
  return {
351
351
  field: e,
352
- operator: v.ENDS_WITH,
352
+ operator: g.ENDS_WITH,
353
353
  value: t,
354
354
  options: r
355
355
  };
356
356
  }
357
- function ke(e, t) {
357
+ function Oe(e, t) {
358
358
  return {
359
359
  field: e,
360
- operator: v.ELEM_MATCH,
360
+ operator: g.ELEM_MATCH,
361
361
  children: [t]
362
362
  };
363
363
  }
364
- function Ae(e) {
364
+ function ke(e) {
365
365
  return {
366
366
  field: e,
367
- operator: v.NULL
367
+ operator: g.NULL
368
368
  };
369
369
  }
370
- function je(e) {
370
+ function Ae(e) {
371
371
  return {
372
372
  field: e,
373
- operator: v.NOT_NULL
373
+ operator: g.NOT_NULL
374
374
  };
375
375
  }
376
- function Me(e) {
376
+ function je(e) {
377
377
  return {
378
378
  field: e,
379
- operator: v.TRUE
379
+ operator: g.TRUE
380
380
  };
381
381
  }
382
- function Ne(e) {
382
+ function Me(e) {
383
383
  return {
384
384
  field: e,
385
- operator: v.FALSE
385
+ operator: g.FALSE
386
386
  };
387
387
  }
388
- function Pe(e, t = !0) {
388
+ function Ne(e, t = !0) {
389
389
  return {
390
390
  field: e,
391
- operator: v.EXISTS,
391
+ operator: g.EXISTS,
392
392
  value: t
393
393
  };
394
394
  }
395
- function Fe(e, t, n) {
396
- let r = x(t, n);
395
+ function Pe(e, t, n) {
396
+ let r = y(t, n);
397
397
  return {
398
398
  field: e,
399
- operator: v.TODAY,
399
+ operator: g.TODAY,
400
400
  options: r
401
401
  };
402
402
  }
403
- function Ie(e, t, n, r) {
404
- let i = x(n, r);
403
+ function Fe(e, t, n, r) {
404
+ let i = y(n, r);
405
405
  return {
406
406
  field: e,
407
- operator: v.BEFORE_TODAY,
407
+ operator: g.BEFORE_TODAY,
408
408
  value: t,
409
409
  options: i
410
410
  };
411
411
  }
412
- function Le(e, t, n) {
413
- let r = x(t, n);
412
+ function Ie(e, t, n) {
413
+ let r = y(t, n);
414
414
  return {
415
415
  field: e,
416
- operator: v.TOMORROW,
416
+ operator: g.TOMORROW,
417
417
  options: r
418
418
  };
419
419
  }
420
- function Re(e, t, n) {
421
- let r = x(t, n);
420
+ function Le(e, t, n) {
421
+ let r = y(t, n);
422
422
  return {
423
423
  field: e,
424
- operator: v.THIS_WEEK,
424
+ operator: g.THIS_WEEK,
425
425
  options: r
426
426
  };
427
427
  }
428
- function ze(e, t, n) {
429
- let r = x(t, n);
428
+ function Re(e, t, n) {
429
+ let r = y(t, n);
430
430
  return {
431
431
  field: e,
432
- operator: v.NEXT_WEEK,
432
+ operator: g.NEXT_WEEK,
433
433
  options: r
434
434
  };
435
435
  }
436
- function Be(e, t, n) {
437
- let r = x(t, n);
436
+ function ze(e, t, n) {
437
+ let r = y(t, n);
438
438
  return {
439
439
  field: e,
440
- operator: v.LAST_WEEK,
440
+ operator: g.LAST_WEEK,
441
441
  options: r
442
442
  };
443
443
  }
444
- function Ve(e, t, n) {
445
- let r = x(t, n);
444
+ function Be(e, t, n) {
445
+ let r = y(t, n);
446
446
  return {
447
447
  field: e,
448
- operator: v.THIS_MONTH,
448
+ operator: g.THIS_MONTH,
449
449
  options: r
450
450
  };
451
451
  }
452
- function He(e, t, n) {
453
- let r = x(t, n);
452
+ function Ve(e, t, n) {
453
+ let r = y(t, n);
454
454
  return {
455
455
  field: e,
456
- operator: v.LAST_MONTH,
456
+ operator: g.LAST_MONTH,
457
457
  options: r
458
458
  };
459
459
  }
460
- function Ue(e, t, n, r) {
461
- let i = x(n, r);
460
+ function He(e, t, n, r) {
461
+ let i = y(n, r);
462
462
  return {
463
463
  field: e,
464
- operator: v.RECENT_DAYS,
464
+ operator: g.RECENT_DAYS,
465
465
  value: t,
466
466
  options: i
467
467
  };
468
468
  }
469
- function We(e, t, n, r) {
470
- let i = x(n, r);
469
+ function Ue(e, t, n, r) {
470
+ let i = y(n, r);
471
471
  return {
472
472
  field: e,
473
- operator: v.EARLIER_DAYS,
473
+ operator: g.EARLIER_DAYS,
474
474
  value: t,
475
475
  options: i
476
476
  };
477
477
  }
478
- function Ge(e) {
478
+ function We(e) {
479
479
  return {
480
- operator: v.RAW,
480
+ operator: g.RAW,
481
481
  value: e
482
482
  };
483
483
  }
484
484
  //#endregion
485
- //#region src/query/pagination.ts
486
- var O = {
485
+ //#region src/query/filter.ts
486
+ var Ge = /* @__PURE__ */ function(e) {
487
+ return e.MATCH_ALL = "MATCH_ALL", e.MATCH_NONE = "MATCH_NONE", e.ID = "ID", e.IDS = "IDS", e.AGGREGATE_ID = "AGGREGATE_ID", e.AGGREGATE_IDS = "AGGREGATE_IDS", e.TENANT_ID = "TENANT_ID", e.OWNER_ID = "OWNER_ID", e.SPACE_ID = "SPACE_ID", e.AND = "AND", e.OR = "OR", e.NOR = "NOR", e.EQ = "EQ", e.NE = "NE", e.GT = "GT", e.GTE = "GTE", e.LT = "LT", e.LTE = "LTE", e.CONTAINS = "CONTAINS", e.STARTS_WITH = "STARTS_WITH", e.ENDS_WITH = "ENDS_WITH", e.IN = "IN", e.NOT_IN = "NOT_IN", e.BETWEEN = "BETWEEN", e.CONTAINS_ALL = "CONTAINS_ALL", e.IS_EMPTY = "IS_EMPTY", e.IS_NULL = "IS_NULL", e.IS_NOT_NULL = "IS_NOT_NULL", e.EXISTS = "EXISTS", e.NOT_EXISTS = "NOT_EXISTS", e.DELETION = "DELETION", e.ELEMENT_MATCH = "ELEMENT_MATCH", e.SEARCH = "SEARCH", e.TODAY = "TODAY", e.BEFORE_TODAY = "BEFORE_TODAY", e.TOMORROW = "TOMORROW", e.THIS_WEEK = "THIS_WEEK", e.NEXT_WEEK = "NEXT_WEEK", e.LAST_WEEK = "LAST_WEEK", e.THIS_MONTH = "THIS_MONTH", e.LAST_MONTH = "LAST_MONTH", e.RECENT_DAYS = "RECENT_DAYS", e.EARLIER_DAYS = "EARLIER_DAYS", e;
488
+ }({}), Ke = /* @__PURE__ */ function(e) {
489
+ return e.CASE_SENSITIVE = "CASE_SENSITIVE", e.CASE_INSENSITIVE = "CASE_INSENSITIVE", e;
490
+ }({}), qe = /^([01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?$/, Je = /^@?[A-Za-z_][A-Za-z0-9_-]*(\.(?:@?[A-Za-z_][A-Za-z0-9_-]*|[0-9]+))*$/, Ye = /^(?:UTC|GMT|UT)?[+-](\d{1,2}|\d{4}|\d{6}|\d{2}:\d{2}|\d{2}:\d{2}:\d{2})$/, Xe = /^(?:UTC|GMT|UT)?[+-]/, Ze = {
491
+ G: 5,
492
+ u: 19,
493
+ y: 19,
494
+ Q: 5,
495
+ q: 5,
496
+ M: 5,
497
+ L: 5,
498
+ D: 3,
499
+ d: 2,
500
+ F: 1,
501
+ E: 5,
502
+ e: 5,
503
+ c: [
504
+ 1,
505
+ 3,
506
+ 4,
507
+ 5
508
+ ],
509
+ a: 1,
510
+ B: [
511
+ 1,
512
+ 4,
513
+ 5
514
+ ],
515
+ h: 2,
516
+ H: 2,
517
+ k: 2,
518
+ K: 2,
519
+ m: 2,
520
+ s: 2,
521
+ S: 9,
522
+ A: 19,
523
+ n: 19,
524
+ N: 19,
525
+ V: [2],
526
+ v: [1, 4],
527
+ z: 4,
528
+ O: [1, 4],
529
+ X: 5,
530
+ x: 5,
531
+ Z: 5,
532
+ W: 1,
533
+ w: 2,
534
+ Y: Infinity,
535
+ g: 19
536
+ };
537
+ function T(e) {
538
+ if (typeof e != "string" || !Je.test(e)) throw TypeError(`Logical field is invalid: [${String(e)}].`);
539
+ return e;
540
+ }
541
+ function E(e, t) {
542
+ if (!(e === null ? t : typeof e == "string" || typeof e == "boolean" || typeof e == "number" && Number.isFinite(e))) throw TypeError("Filter value must be a JSON scalar.");
543
+ return e;
544
+ }
545
+ function D(e) {
546
+ return Array.isArray(e) ? (e.forEach((e) => E(e, !0)), e) : E(e, !0);
547
+ }
548
+ function O(e, t) {
549
+ if (typeof t != "string") throw TypeError(`${e} must be a string.`);
550
+ return t;
551
+ }
552
+ function k(e) {
553
+ if (e !== "CASE_SENSITIVE" && e !== "CASE_INSENSITIVE") throw TypeError(`String comparison is invalid: [${String(e)}].`);
554
+ }
555
+ function A(e, t) {
556
+ if (t.length === 0) throw TypeError(`${e} cannot be empty.`);
557
+ if (t.some((e) => e == null)) throw TypeError(`${e} cannot contain null.`);
558
+ }
559
+ function Qe(e) {
560
+ let t = Ye.exec(e);
561
+ if (!t) return !1;
562
+ let n = t[1], [r, i = 0, a = 0] = (n.includes(":") ? n.split(":") : n.length <= 2 ? [n] : [
563
+ n.slice(0, 2),
564
+ n.slice(2, 4),
565
+ n.slice(4, 6)
566
+ ]).map(Number);
567
+ return i <= 59 && a <= 59 && (r < 18 || r === 18 && i === 0 && a === 0);
568
+ }
569
+ function j({ zoneId: e, datePattern: t }) {
570
+ if (e !== void 0) {
571
+ if (typeof e != "string" || !e.trim()) throw TypeError("zoneId cannot be blank.");
572
+ if (Xe.test(e) && !Qe(e)) throw TypeError(`zoneId is invalid: [${e}].`);
573
+ }
574
+ return t !== void 0 && et(t), {
575
+ ...e === void 0 ? {} : { zoneId: e },
576
+ ...t === void 0 ? {} : { datePattern: t }
577
+ };
578
+ }
579
+ function $e(e, t, n) {
580
+ let r = Ze[t];
581
+ if (!(typeof r == "number" ? n <= r : r?.includes(n) === !0)) throw TypeError(`datePattern is invalid: [${e}].`);
582
+ }
583
+ function M(e, t) {
584
+ return e !== void 0 && ("uyDFdhHkKmsSgAnNWwY".includes(e) || e === "c" && t === 1 || "eMLQq".includes(e) && t <= 2);
585
+ }
586
+ function et(e) {
587
+ if (typeof e != "string" || !e.trim()) throw TypeError("datePattern cannot be blank.");
588
+ let t = !1, n = 0;
589
+ for (let r = 0; r < e.length; r++) {
590
+ let i = e[r];
591
+ if (i === "'") {
592
+ e[r + 1] === "'" ? r++ : t = !t;
593
+ continue;
594
+ }
595
+ if (!t) {
596
+ if (/[A-Za-z]/.test(i)) {
597
+ let t = i, n = r + 1;
598
+ for (; e[n] === t;) n++;
599
+ let a = n - r, o = !1;
600
+ if (t === "p") {
601
+ if (o = !0, t = e[n], !t || !/[A-Za-z]/.test(t) || t === "p") throw TypeError(`datePattern is invalid: [${e}].`);
602
+ let r = n++;
603
+ for (; e[n] === t;) n++;
604
+ a = n - r;
605
+ }
606
+ if ($e(e, t, a), o && M(t, a)) {
607
+ let t = e[n], r = n;
608
+ for (; r < e.length && e[r] === t;) r++;
609
+ if (M(t, r - n)) throw TypeError(`datePattern is invalid: [${e}].`);
610
+ }
611
+ r = n - 1;
612
+ } else if (i === "[") n++;
613
+ else if (i === "]") {
614
+ if (n === 0) throw TypeError(`datePattern is invalid: [${e}].`);
615
+ n--;
616
+ } else if ("{}#".includes(i)) throw TypeError(`datePattern is invalid: [${e}].`);
617
+ }
618
+ }
619
+ if (t) throw TypeError(`datePattern is invalid: [${e}].`);
620
+ }
621
+ function N(e, t) {
622
+ if (!Number.isInteger(t) || t < 1 || t > 2147483647) throw TypeError(`${e} days must be a positive JVM Int.`);
623
+ }
624
+ function P(e) {
625
+ switch (e.op) {
626
+ case "ID":
627
+ case "IDS":
628
+ case "AGGREGATE_ID":
629
+ case "AGGREGATE_IDS":
630
+ case "TENANT_ID":
631
+ case "OWNER_ID":
632
+ case "SPACE_ID":
633
+ case "DELETION":
634
+ case "SEARCH": throw TypeError("ELEMENT_MATCH predicate cannot contain root filters.");
635
+ case "AND":
636
+ case "OR":
637
+ case "NOR":
638
+ A(`${e.op} operands`, e.operands), e.operands.forEach(P);
639
+ break;
640
+ case "ELEMENT_MATCH": P(e.predicate);
641
+ }
642
+ }
643
+ function tt(...e) {
644
+ return A("AND operands", e), {
645
+ op: "AND",
646
+ operands: e
647
+ };
648
+ }
649
+ function nt(...e) {
650
+ return A("OR operands", e), {
651
+ op: "OR",
652
+ operands: e
653
+ };
654
+ }
655
+ function rt(...e) {
656
+ return A("NOR operands", e), {
657
+ op: "NOR",
658
+ operands: e
659
+ };
660
+ }
661
+ var F = {
662
+ matchAll() {
663
+ return { op: "MATCH_ALL" };
664
+ },
665
+ matchNone() {
666
+ return { op: "MATCH_NONE" };
667
+ },
668
+ id(e) {
669
+ return {
670
+ op: "ID",
671
+ value: O("ID value", e)
672
+ };
673
+ },
674
+ ids(...e) {
675
+ return A("IDS values", e), e.forEach((e) => O("IDS value", e)), {
676
+ op: "IDS",
677
+ values: e
678
+ };
679
+ },
680
+ aggregateId(e) {
681
+ return {
682
+ op: "AGGREGATE_ID",
683
+ value: O("AGGREGATE_ID value", e)
684
+ };
685
+ },
686
+ aggregateIds(...e) {
687
+ return A("AGGREGATE_IDS values", e), e.forEach((e) => O("AGGREGATE_IDS value", e)), {
688
+ op: "AGGREGATE_IDS",
689
+ values: e
690
+ };
691
+ },
692
+ tenantId(e) {
693
+ return {
694
+ op: "TENANT_ID",
695
+ value: O("TENANT_ID value", e)
696
+ };
697
+ },
698
+ ownerId(e) {
699
+ return {
700
+ op: "OWNER_ID",
701
+ value: O("OWNER_ID value", e)
702
+ };
703
+ },
704
+ spaceId(e) {
705
+ return {
706
+ op: "SPACE_ID",
707
+ value: O("SPACE_ID value", e)
708
+ };
709
+ },
710
+ and: tt,
711
+ or: nt,
712
+ nor: rt,
713
+ eq(e, t) {
714
+ return {
715
+ op: "EQ",
716
+ field: T(e),
717
+ value: D(t)
718
+ };
719
+ },
720
+ ne(e, t) {
721
+ return {
722
+ op: "NE",
723
+ field: T(e),
724
+ value: D(t)
725
+ };
726
+ },
727
+ gt(e, t) {
728
+ return {
729
+ op: "GT",
730
+ field: T(e),
731
+ value: E(t, !1)
732
+ };
733
+ },
734
+ gte(e, t) {
735
+ return {
736
+ op: "GTE",
737
+ field: T(e),
738
+ value: E(t, !1)
739
+ };
740
+ },
741
+ lt(e, t) {
742
+ return {
743
+ op: "LT",
744
+ field: T(e),
745
+ value: E(t, !1)
746
+ };
747
+ },
748
+ lte(e, t) {
749
+ return {
750
+ op: "LTE",
751
+ field: T(e),
752
+ value: E(t, !1)
753
+ };
754
+ },
755
+ contains(e, t, n = "CASE_SENSITIVE") {
756
+ return k(n), {
757
+ op: "CONTAINS",
758
+ field: T(e),
759
+ value: O("CONTAINS value", t),
760
+ stringComparison: n
761
+ };
762
+ },
763
+ startsWith(e, t, n = "CASE_SENSITIVE") {
764
+ return k(n), {
765
+ op: "STARTS_WITH",
766
+ field: T(e),
767
+ value: O("STARTS_WITH value", t),
768
+ stringComparison: n
769
+ };
770
+ },
771
+ endsWith(e, t, n = "CASE_SENSITIVE") {
772
+ return k(n), {
773
+ op: "ENDS_WITH",
774
+ field: T(e),
775
+ value: O("ENDS_WITH value", t),
776
+ stringComparison: n
777
+ };
778
+ },
779
+ isIn(e, ...t) {
780
+ return A("IN values", t), t.forEach((e) => E(e, !1)), {
781
+ op: "IN",
782
+ field: T(e),
783
+ values: t
784
+ };
785
+ },
786
+ notIn(e, ...t) {
787
+ return A("NOT_IN values", t), t.forEach((e) => E(e, !1)), {
788
+ op: "NOT_IN",
789
+ field: T(e),
790
+ values: t
791
+ };
792
+ },
793
+ containsAll(e, ...t) {
794
+ return A("CONTAINS_ALL values", t), t.forEach((e) => E(e, !1)), {
795
+ op: "CONTAINS_ALL",
796
+ field: T(e),
797
+ values: t
798
+ };
799
+ },
800
+ between(e, t, n) {
801
+ return {
802
+ op: "BETWEEN",
803
+ field: T(e),
804
+ lowerBound: E(t, !1),
805
+ upperBound: E(n, !1)
806
+ };
807
+ },
808
+ isEmpty(e) {
809
+ return {
810
+ op: "IS_EMPTY",
811
+ field: T(e)
812
+ };
813
+ },
814
+ isNull(e) {
815
+ return {
816
+ op: "IS_NULL",
817
+ field: T(e)
818
+ };
819
+ },
820
+ isNotNull(e) {
821
+ return {
822
+ op: "IS_NOT_NULL",
823
+ field: T(e)
824
+ };
825
+ },
826
+ exists(e) {
827
+ return {
828
+ op: "EXISTS",
829
+ field: T(e)
830
+ };
831
+ },
832
+ notExists(e) {
833
+ return {
834
+ op: "NOT_EXISTS",
835
+ field: T(e)
836
+ };
837
+ },
838
+ deletion(e) {
839
+ if (e !== b.ACTIVE && e !== b.DELETED && e !== b.ALL) throw TypeError(`Deletion state is invalid: [${String(e)}].`);
840
+ return {
841
+ op: "DELETION",
842
+ state: e
843
+ };
844
+ },
845
+ elementMatch(e, t) {
846
+ return P(t), {
847
+ op: "ELEMENT_MATCH",
848
+ field: T(e),
849
+ predicate: t
850
+ };
851
+ },
852
+ search(e, ...t) {
853
+ if (typeof e != "string" || !e.trim()) throw TypeError("SEARCH query cannot be blank.");
854
+ return {
855
+ op: "SEARCH",
856
+ query: e,
857
+ fields: t.map(T)
858
+ };
859
+ },
860
+ today(e, t = {}) {
861
+ return {
862
+ ...j(t),
863
+ op: "TODAY",
864
+ field: T(e)
865
+ };
866
+ },
867
+ beforeToday(e, t, n = {}) {
868
+ if (typeof t != "string" || !qe.test(t)) throw TypeError("BEFORE_TODAY time is invalid.");
869
+ return {
870
+ ...j(n),
871
+ op: "BEFORE_TODAY",
872
+ field: T(e),
873
+ time: t
874
+ };
875
+ },
876
+ tomorrow(e, t = {}) {
877
+ return {
878
+ ...j(t),
879
+ op: "TOMORROW",
880
+ field: T(e)
881
+ };
882
+ },
883
+ thisWeek(e, t = {}) {
884
+ return {
885
+ ...j(t),
886
+ op: "THIS_WEEK",
887
+ field: T(e)
888
+ };
889
+ },
890
+ nextWeek(e, t = {}) {
891
+ return {
892
+ ...j(t),
893
+ op: "NEXT_WEEK",
894
+ field: T(e)
895
+ };
896
+ },
897
+ lastWeek(e, t = {}) {
898
+ return {
899
+ ...j(t),
900
+ op: "LAST_WEEK",
901
+ field: T(e)
902
+ };
903
+ },
904
+ thisMonth(e, t = {}) {
905
+ return {
906
+ ...j(t),
907
+ op: "THIS_MONTH",
908
+ field: T(e)
909
+ };
910
+ },
911
+ lastMonth(e, t = {}) {
912
+ return {
913
+ ...j(t),
914
+ op: "LAST_MONTH",
915
+ field: T(e)
916
+ };
917
+ },
918
+ recentDays(e, t, n = {}) {
919
+ return N("RECENT_DAYS", t), {
920
+ ...j(n),
921
+ op: "RECENT_DAYS",
922
+ field: T(e),
923
+ days: t
924
+ };
925
+ },
926
+ earlierDays(e, t, n = {}) {
927
+ return N("EARLIER_DAYS", t), {
928
+ ...j(n),
929
+ op: "EARLIER_DAYS",
930
+ field: T(e),
931
+ days: t
932
+ };
933
+ }
934
+ }, I = {
487
935
  index: 1,
488
936
  size: 10
489
937
  };
490
- function Ke({ index: e = O.index, size: t = O.size } = O) {
938
+ function it({ index: e = I.index, size: t = I.size } = I) {
491
939
  return {
492
940
  index: e,
493
941
  size: t
@@ -495,11 +943,11 @@ function Ke({ index: e = O.index, size: t = O.size } = O) {
495
943
  }
496
944
  //#endregion
497
945
  //#region src/query/projection.ts
498
- var k = {};
499
- function A() {
500
- return k;
946
+ var L = {};
947
+ function R() {
948
+ return L;
501
949
  }
502
- function qe({ include: e, exclude: t } = A()) {
950
+ function at({ include: e, exclude: t } = R()) {
503
951
  return {
504
952
  include: e,
505
953
  exclude: t
@@ -507,34 +955,49 @@ function qe({ include: e, exclude: t } = A()) {
507
955
  }
508
956
  //#endregion
509
957
  //#region src/query/queryable.ts
510
- function j({ condition: e = T(), projection: t, sort: n } = {}) {
958
+ function z({ condition: e, filter: t }) {
959
+ if (t === null) throw TypeError("filter cannot be null.");
960
+ if (t !== void 0) return { filter: t };
961
+ if (e === null) throw TypeError("condition cannot be null.");
962
+ return { condition: e === void 0 ? w() : e };
963
+ }
964
+ function B({ condition: e, filter: t, projection: n, sort: r } = {}) {
511
965
  return {
512
- condition: e,
513
- projection: t,
514
- sort: n
966
+ ...z({
967
+ condition: e,
968
+ filter: t
969
+ }),
970
+ projection: n,
971
+ sort: r
515
972
  };
516
973
  }
517
- function M({ condition: e = T(), projection: t, sort: n, limit: r = O.size } = {}) {
974
+ function V({ condition: e, filter: t, projection: n, sort: r, limit: i } = {}) {
518
975
  return {
519
- condition: e,
520
- projection: t,
521
- sort: n,
522
- limit: r
976
+ ...z({
977
+ condition: e,
978
+ filter: t
979
+ }),
980
+ projection: n,
981
+ sort: r,
982
+ limit: i ?? (t === void 0 ? I.size : 0)
523
983
  };
524
984
  }
525
- function Je({ condition: e = T(), projection: t, sort: n, pagination: r = O } = {}) {
985
+ function ot({ condition: e, filter: t, projection: n, sort: r, pagination: i = I } = {}) {
526
986
  return {
527
- condition: e,
528
- projection: t,
529
- sort: n,
530
- pagination: r
987
+ ...z({
988
+ condition: e,
989
+ filter: t
990
+ }),
991
+ projection: n,
992
+ sort: r,
993
+ pagination: i
531
994
  };
532
995
  }
533
- var N = {
996
+ var st = {
534
997
  total: 0,
535
998
  list: []
536
999
  };
537
- function Ye({ total: e, list: t = [] } = N) {
1000
+ function ct({ total: e, list: t = [] } = st) {
538
1001
  return e === void 0 && (e = t.length), {
539
1002
  total: e,
540
1003
  list: t
@@ -542,24 +1005,24 @@ function Ye({ total: e, list: t = [] } = N) {
542
1005
  }
543
1006
  //#endregion
544
1007
  //#region src/query/sort.ts
545
- var P = /* @__PURE__ */ function(e) {
1008
+ var H = /* @__PURE__ */ function(e) {
546
1009
  return e.ASC = "ASC", e.DESC = "DESC", e;
547
1010
  }({});
548
- function Xe(e) {
1011
+ function lt(e) {
549
1012
  return {
550
1013
  field: e,
551
- direction: P.ASC
1014
+ direction: "ASC"
552
1015
  };
553
1016
  }
554
- function Ze(e) {
1017
+ function ut(e) {
555
1018
  return {
556
1019
  field: e,
557
- direction: P.DESC
1020
+ direction: "DESC"
558
1021
  };
559
1022
  }
560
1023
  //#endregion
561
1024
  //#region src/query/event/domainEventStream.ts
562
- var Qe = class e {
1025
+ var dt = class e {
563
1026
  static {
564
1027
  this.HEADER = "header";
565
1028
  }
@@ -608,7 +1071,7 @@ var Qe = class e {
608
1071
  static {
609
1072
  this.CREATE_TIME = "createTime";
610
1073
  }
611
- }, F = class e {
1074
+ }, U = class e {
612
1075
  static {
613
1076
  this.EVENT_STREAM_RESOURCE_NAME = "event";
614
1077
  }
@@ -621,7 +1084,7 @@ var Qe = class e {
621
1084
  static {
622
1085
  this.PAGED = `${e.EVENT_STREAM_RESOURCE_NAME}/paged`;
623
1086
  }
624
- }, I, L, R, z, B, V, H, U, W, $e, et, tt, G = class {
1087
+ }, W = class {
625
1088
  constructor(e) {
626
1089
  this.apiMetadata = e;
627
1090
  }
@@ -639,29 +1102,29 @@ var Qe = class e {
639
1102
  }
640
1103
  };
641
1104
  m([
642
- u(F.COUNT),
1105
+ u(U.COUNT),
643
1106
  p(0, o()),
644
1107
  p(1, i()),
645
1108
  f("design:type", Function),
646
1109
  f("design:paramtypes", [
647
1110
  Object,
648
- typeof (L = typeof Record < "u" && Record) == "function" ? L : Object,
649
- typeof (R = typeof AbortController < "u" && AbortController) == "function" ? R : Object
1111
+ typeof Record > "u" ? Object : Record,
1112
+ typeof AbortController > "u" ? Object : AbortController
650
1113
  ]),
651
- f("design:returntype", typeof (I = typeof Promise < "u" && Promise) == "function" ? I : Object)
652
- ], G.prototype, "count", null), m([
653
- u(F.LIST),
1114
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1115
+ ], W.prototype, "count", null), m([
1116
+ u(U.LIST),
654
1117
  p(0, o()),
655
1118
  p(1, i()),
656
1119
  f("design:type", Function),
657
1120
  f("design:paramtypes", [
658
1121
  Object,
659
- typeof (B = typeof Record < "u" && Record) == "function" ? B : Object,
660
- typeof (V = typeof AbortController < "u" && AbortController) == "function" ? V : Object
1122
+ typeof Record > "u" ? Object : Record,
1123
+ typeof AbortController > "u" ? Object : AbortController
661
1124
  ]),
662
- f("design:returntype", typeof (z = typeof Promise < "u" && Promise) == "function" ? z : Object)
663
- ], G.prototype, "list", null), m([
664
- u(F.LIST, {
1125
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1126
+ ], W.prototype, "list", null), m([
1127
+ u(U.LIST, {
665
1128
  headers: { Accept: e.TEXT_EVENT_STREAM },
666
1129
  resultExtractor: n
667
1130
  }),
@@ -670,25 +1133,25 @@ m([
670
1133
  f("design:type", Function),
671
1134
  f("design:paramtypes", [
672
1135
  Object,
673
- typeof (U = typeof Record < "u" && Record) == "function" ? U : Object,
674
- typeof (W = typeof AbortController < "u" && AbortController) == "function" ? W : Object
1136
+ typeof Record > "u" ? Object : Record,
1137
+ typeof AbortController > "u" ? Object : AbortController
675
1138
  ]),
676
- f("design:returntype", typeof (H = typeof Promise < "u" && Promise) == "function" ? H : Object)
677
- ], G.prototype, "listStream", null), m([
678
- u(F.PAGED),
1139
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1140
+ ], W.prototype, "listStream", null), m([
1141
+ u(U.PAGED),
679
1142
  p(0, o()),
680
1143
  p(1, i()),
681
1144
  f("design:type", Function),
682
1145
  f("design:paramtypes", [
683
1146
  Object,
684
- typeof (et = typeof Record < "u" && Record) == "function" ? et : Object,
685
- typeof (tt = typeof AbortController < "u" && AbortController) == "function" ? tt : Object
1147
+ typeof Record > "u" ? Object : Record,
1148
+ typeof AbortController > "u" ? Object : AbortController
686
1149
  ]),
687
- f("design:returntype", typeof ($e = typeof Promise < "u" && Promise) == "function" ? $e : Object)
688
- ], G.prototype, "paged", null), G = m([r(), f("design:paramtypes", [Object])], G);
1150
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1151
+ ], W.prototype, "paged", null), W = m([r(), f("design:paramtypes", [Object])], W);
689
1152
  //#endregion
690
1153
  //#region src/query/snapshot/snapshot.ts
691
- var nt = class {
1154
+ var ft = class {
692
1155
  static {
693
1156
  this.VERSION = "version";
694
1157
  }
@@ -728,7 +1191,7 @@ var nt = class {
728
1191
  static {
729
1192
  this.STATE = "state";
730
1193
  }
731
- }, K = class e {
1194
+ }, G = class e {
732
1195
  static {
733
1196
  this.SNAPSHOT_RESOURCE_NAME = "snapshot";
734
1197
  }
@@ -753,7 +1216,7 @@ var nt = class {
753
1216
  static {
754
1217
  this.SINGLE_STATE = `${e.SINGLE}/state`;
755
1218
  }
756
- }, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt, q = class {
1219
+ }, K = class {
757
1220
  constructor(e) {
758
1221
  this.apiMetadata = e;
759
1222
  }
@@ -785,22 +1248,22 @@ var nt = class {
785
1248
  throw a(e, t, n);
786
1249
  }
787
1250
  getById(e, t, n) {
788
- let r = j({ condition: S(e) });
1251
+ let r = B({ condition: S(e) });
789
1252
  return this.single(r, t, n);
790
1253
  }
791
1254
  getStateById(e, t, n) {
792
- let r = j({ condition: S(e) });
1255
+ let r = B({ condition: S(e) });
793
1256
  return this.singleState(r, t, n);
794
1257
  }
795
1258
  getByIds(e, t, n) {
796
- let r = M({
1259
+ let r = V({
797
1260
  condition: C(e),
798
1261
  limit: e.length
799
1262
  });
800
1263
  return this.list(r, t, n);
801
1264
  }
802
1265
  getStateByIds(e, t, n) {
803
- let r = M({
1266
+ let r = V({
804
1267
  condition: C(e),
805
1268
  limit: e.length
806
1269
  });
@@ -808,29 +1271,29 @@ var nt = class {
808
1271
  }
809
1272
  };
810
1273
  m([
811
- u(K.COUNT),
1274
+ u(G.COUNT),
812
1275
  p(0, o()),
813
1276
  p(1, i()),
814
1277
  f("design:type", Function),
815
1278
  f("design:paramtypes", [
816
1279
  Object,
817
- typeof (it = typeof Record < "u" && Record) == "function" ? it : Object,
818
- typeof (at = typeof AbortController < "u" && AbortController) == "function" ? at : Object
1280
+ typeof Record > "u" ? Object : Record,
1281
+ typeof AbortController > "u" ? Object : AbortController
819
1282
  ]),
820
- f("design:returntype", typeof (rt = typeof Promise < "u" && Promise) == "function" ? rt : Object)
821
- ], q.prototype, "count", null), m([
822
- u(K.LIST),
1283
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1284
+ ], K.prototype, "count", null), m([
1285
+ u(G.LIST),
823
1286
  p(0, o()),
824
1287
  p(1, i()),
825
1288
  f("design:type", Function),
826
1289
  f("design:paramtypes", [
827
1290
  Object,
828
- typeof (st = typeof Record < "u" && Record) == "function" ? st : Object,
829
- typeof (ct = typeof AbortController < "u" && AbortController) == "function" ? ct : Object
1291
+ typeof Record > "u" ? Object : Record,
1292
+ typeof AbortController > "u" ? Object : AbortController
830
1293
  ]),
831
- f("design:returntype", typeof (ot = typeof Promise < "u" && Promise) == "function" ? ot : Object)
832
- ], q.prototype, "list", null), m([
833
- u(K.LIST, {
1294
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1295
+ ], K.prototype, "list", null), m([
1296
+ u(G.LIST, {
834
1297
  headers: { Accept: e.TEXT_EVENT_STREAM },
835
1298
  resultExtractor: n
836
1299
  }),
@@ -839,23 +1302,23 @@ m([
839
1302
  f("design:type", Function),
840
1303
  f("design:paramtypes", [
841
1304
  Object,
842
- typeof (ut = typeof Record < "u" && Record) == "function" ? ut : Object,
843
- typeof (dt = typeof AbortController < "u" && AbortController) == "function" ? dt : Object
1305
+ typeof Record > "u" ? Object : Record,
1306
+ typeof AbortController > "u" ? Object : AbortController
844
1307
  ]),
845
- f("design:returntype", typeof (lt = typeof Promise < "u" && Promise) == "function" ? lt : Object)
846
- ], q.prototype, "listStream", null), m([
847
- u(K.LIST_STATE),
1308
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1309
+ ], K.prototype, "listStream", null), m([
1310
+ u(G.LIST_STATE),
848
1311
  p(0, o()),
849
1312
  p(1, i()),
850
1313
  f("design:type", Function),
851
1314
  f("design:paramtypes", [
852
1315
  Object,
853
- typeof (pt = typeof Record < "u" && Record) == "function" ? pt : Object,
854
- typeof (mt = typeof AbortController < "u" && AbortController) == "function" ? mt : Object
1316
+ typeof Record > "u" ? Object : Record,
1317
+ typeof AbortController > "u" ? Object : AbortController
855
1318
  ]),
856
- f("design:returntype", typeof (ft = typeof Promise < "u" && Promise) == "function" ? ft : Object)
857
- ], q.prototype, "listState", null), m([
858
- u(K.LIST_STATE, {
1319
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1320
+ ], K.prototype, "listState", null), m([
1321
+ u(G.LIST_STATE, {
859
1322
  headers: { Accept: e.TEXT_EVENT_STREAM },
860
1323
  resultExtractor: n
861
1324
  }),
@@ -864,94 +1327,94 @@ m([
864
1327
  f("design:type", Function),
865
1328
  f("design:paramtypes", [
866
1329
  Object,
867
- typeof (gt = typeof Record < "u" && Record) == "function" ? gt : Object,
868
- typeof (_t = typeof AbortController < "u" && AbortController) == "function" ? _t : Object
1330
+ typeof Record > "u" ? Object : Record,
1331
+ typeof AbortController > "u" ? Object : AbortController
869
1332
  ]),
870
- f("design:returntype", typeof (ht = typeof Promise < "u" && Promise) == "function" ? ht : Object)
871
- ], q.prototype, "listStateStream", null), m([
872
- u(K.PAGED),
1333
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1334
+ ], K.prototype, "listStateStream", null), m([
1335
+ u(G.PAGED),
873
1336
  p(0, o()),
874
1337
  p(1, i()),
875
1338
  f("design:type", Function),
876
1339
  f("design:paramtypes", [
877
1340
  Object,
878
- typeof (yt = typeof Record < "u" && Record) == "function" ? yt : Object,
879
- typeof (bt = typeof AbortController < "u" && AbortController) == "function" ? bt : Object
1341
+ typeof Record > "u" ? Object : Record,
1342
+ typeof AbortController > "u" ? Object : AbortController
880
1343
  ]),
881
- f("design:returntype", typeof (vt = typeof Promise < "u" && Promise) == "function" ? vt : Object)
882
- ], q.prototype, "paged", null), m([
883
- u(K.PAGED_STATE),
1344
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1345
+ ], K.prototype, "paged", null), m([
1346
+ u(G.PAGED_STATE),
884
1347
  p(0, o()),
885
1348
  p(1, i()),
886
1349
  f("design:type", Function),
887
1350
  f("design:paramtypes", [
888
1351
  Object,
889
- typeof (St = typeof Record < "u" && Record) == "function" ? St : Object,
890
- typeof (Ct = typeof AbortController < "u" && AbortController) == "function" ? Ct : Object
1352
+ typeof Record > "u" ? Object : Record,
1353
+ typeof AbortController > "u" ? Object : AbortController
891
1354
  ]),
892
- f("design:returntype", typeof (xt = typeof Promise < "u" && Promise) == "function" ? xt : Object)
893
- ], q.prototype, "pagedState", null), m([
894
- u(K.SINGLE),
1355
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1356
+ ], K.prototype, "pagedState", null), m([
1357
+ u(G.SINGLE),
895
1358
  p(0, o()),
896
1359
  p(1, i()),
897
1360
  f("design:type", Function),
898
1361
  f("design:paramtypes", [
899
1362
  Object,
900
- typeof (Tt = typeof Record < "u" && Record) == "function" ? Tt : Object,
901
- typeof (Et = typeof AbortController < "u" && AbortController) == "function" ? Et : Object
1363
+ typeof Record > "u" ? Object : Record,
1364
+ typeof AbortController > "u" ? Object : AbortController
902
1365
  ]),
903
- f("design:returntype", typeof (wt = typeof Promise < "u" && Promise) == "function" ? wt : Object)
904
- ], q.prototype, "single", null), m([
905
- u(K.SINGLE_STATE),
1366
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1367
+ ], K.prototype, "single", null), m([
1368
+ u(G.SINGLE_STATE),
906
1369
  p(0, o()),
907
1370
  p(1, i()),
908
1371
  f("design:type", Function),
909
1372
  f("design:paramtypes", [
910
1373
  Object,
911
- typeof (Ot = typeof Record < "u" && Record) == "function" ? Ot : Object,
912
- typeof (kt = typeof AbortController < "u" && AbortController) == "function" ? kt : Object
1374
+ typeof Record > "u" ? Object : Record,
1375
+ typeof AbortController > "u" ? Object : AbortController
913
1376
  ]),
914
- f("design:returntype", typeof (Dt = typeof Promise < "u" && Promise) == "function" ? Dt : Object)
915
- ], q.prototype, "singleState", null), m([
1377
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1378
+ ], K.prototype, "singleState", null), m([
916
1379
  p(1, i()),
917
1380
  f("design:type", Function),
918
1381
  f("design:paramtypes", [
919
1382
  String,
920
- typeof (jt = typeof Record < "u" && Record) == "function" ? jt : Object,
921
- typeof (Mt = typeof AbortController < "u" && AbortController) == "function" ? Mt : Object
1383
+ typeof Record > "u" ? Object : Record,
1384
+ typeof AbortController > "u" ? Object : AbortController
922
1385
  ]),
923
- f("design:returntype", typeof (At = typeof Promise < "u" && Promise) == "function" ? At : Object)
924
- ], q.prototype, "getById", null), m([
1386
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1387
+ ], K.prototype, "getById", null), m([
925
1388
  p(1, i()),
926
1389
  f("design:type", Function),
927
1390
  f("design:paramtypes", [
928
1391
  String,
929
- typeof (Pt = typeof Record < "u" && Record) == "function" ? Pt : Object,
930
- typeof (Ft = typeof AbortController < "u" && AbortController) == "function" ? Ft : Object
1392
+ typeof Record > "u" ? Object : Record,
1393
+ typeof AbortController > "u" ? Object : AbortController
931
1394
  ]),
932
- f("design:returntype", typeof (Nt = typeof Promise < "u" && Promise) == "function" ? Nt : Object)
933
- ], q.prototype, "getStateById", null), m([
1395
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1396
+ ], K.prototype, "getStateById", null), m([
934
1397
  p(1, i()),
935
1398
  f("design:type", Function),
936
1399
  f("design:paramtypes", [
937
1400
  Array,
938
- typeof (Lt = typeof Record < "u" && Record) == "function" ? Lt : Object,
939
- typeof (Rt = typeof AbortController < "u" && AbortController) == "function" ? Rt : Object
1401
+ typeof Record > "u" ? Object : Record,
1402
+ typeof AbortController > "u" ? Object : AbortController
940
1403
  ]),
941
- f("design:returntype", typeof (It = typeof Promise < "u" && Promise) == "function" ? It : Object)
942
- ], q.prototype, "getByIds", null), m([
1404
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1405
+ ], K.prototype, "getByIds", null), m([
943
1406
  p(1, i()),
944
1407
  f("design:type", Function),
945
1408
  f("design:paramtypes", [
946
1409
  Array,
947
- typeof (Bt = typeof Record < "u" && Record) == "function" ? Bt : Object,
948
- typeof (Vt = typeof AbortController < "u" && AbortController) == "function" ? Vt : Object
1410
+ typeof Record > "u" ? Object : Record,
1411
+ typeof AbortController > "u" ? Object : AbortController
949
1412
  ]),
950
- f("design:returntype", typeof (zt = typeof Promise < "u" && Promise) == "function" ? zt : Object)
951
- ], q.prototype, "getStateByIds", null), q = m([r(), f("design:paramtypes", [Object])], q);
1413
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1414
+ ], K.prototype, "getStateByIds", null), K = m([r(), f("design:paramtypes", [Object])], K);
952
1415
  //#endregion
953
1416
  //#region src/query/state/loadStateAggregateClient.ts
954
- var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
1417
+ var q = class e {
955
1418
  static {
956
1419
  this.LOAD = "{id}/state";
957
1420
  }
@@ -961,7 +1424,7 @@ var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
961
1424
  static {
962
1425
  this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
963
1426
  }
964
- }, Y = class {
1427
+ }, J = class {
965
1428
  constructor(e) {
966
1429
  this.apiMetadata = e;
967
1430
  }
@@ -976,18 +1439,18 @@ var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
976
1439
  }
977
1440
  };
978
1441
  m([
979
- c(J.LOAD),
1442
+ c(q.LOAD),
980
1443
  p(0, l("id")),
981
1444
  p(1, i()),
982
1445
  f("design:type", Function),
983
1446
  f("design:paramtypes", [
984
1447
  String,
985
- typeof (Ut = typeof Record < "u" && Record) == "function" ? Ut : Object,
986
- typeof (Wt = typeof AbortController < "u" && AbortController) == "function" ? Wt : Object
1448
+ typeof Record > "u" ? Object : Record,
1449
+ typeof AbortController > "u" ? Object : AbortController
987
1450
  ]),
988
- f("design:returntype", typeof (Ht = typeof Promise < "u" && Promise) == "function" ? Ht : Object)
989
- ], Y.prototype, "load", null), m([
990
- c(J.LOAD_VERSIONED),
1451
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1452
+ ], J.prototype, "load", null), m([
1453
+ c(q.LOAD_VERSIONED),
991
1454
  p(0, l("id")),
992
1455
  p(1, l("version")),
993
1456
  p(2, i()),
@@ -995,12 +1458,12 @@ m([
995
1458
  f("design:paramtypes", [
996
1459
  String,
997
1460
  Number,
998
- typeof (Kt = typeof Record < "u" && Record) == "function" ? Kt : Object,
999
- typeof (qt = typeof AbortController < "u" && AbortController) == "function" ? qt : Object
1461
+ typeof Record > "u" ? Object : Record,
1462
+ typeof AbortController > "u" ? Object : AbortController
1000
1463
  ]),
1001
- f("design:returntype", typeof (Gt = typeof Promise < "u" && Promise) == "function" ? Gt : Object)
1002
- ], Y.prototype, "loadVersioned", null), m([
1003
- c(J.LOAD_TIME_BASED),
1464
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1465
+ ], J.prototype, "loadVersioned", null), m([
1466
+ c(q.LOAD_TIME_BASED),
1004
1467
  p(0, l("id")),
1005
1468
  p(1, l("createTime")),
1006
1469
  p(2, i()),
@@ -1008,14 +1471,14 @@ m([
1008
1471
  f("design:paramtypes", [
1009
1472
  String,
1010
1473
  Number,
1011
- typeof (Yt = typeof Record < "u" && Record) == "function" ? Yt : Object,
1012
- typeof (Xt = typeof AbortController < "u" && AbortController) == "function" ? Xt : Object
1474
+ typeof Record > "u" ? Object : Record,
1475
+ typeof AbortController > "u" ? Object : AbortController
1013
1476
  ]),
1014
- f("design:returntype", typeof (Jt = typeof Promise < "u" && Promise) == "function" ? Jt : Object)
1015
- ], Y.prototype, "loadTimeBased", null), Y = m([r(), f("design:paramtypes", [Object])], Y);
1477
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1478
+ ], J.prototype, "loadTimeBased", null), J = m([r(), f("design:paramtypes", [Object])], J);
1016
1479
  //#endregion
1017
1480
  //#region src/query/state/loadOwnerStateAggregateClient.ts
1018
- var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1481
+ var Y = class e {
1019
1482
  static {
1020
1483
  this.LOAD = "state";
1021
1484
  }
@@ -1025,7 +1488,7 @@ var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1025
1488
  static {
1026
1489
  this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
1027
1490
  }
1028
- }, Z = class {
1491
+ }, X = class {
1029
1492
  constructor(e) {
1030
1493
  this.apiMetadata = e;
1031
1494
  }
@@ -1040,52 +1503,61 @@ var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1040
1503
  }
1041
1504
  };
1042
1505
  m([
1043
- c(X.LOAD),
1506
+ c(Y.LOAD),
1044
1507
  p(0, i()),
1045
1508
  f("design:type", Function),
1046
- f("design:paramtypes", [typeof (Qt = typeof Record < "u" && Record) == "function" ? Qt : Object, typeof ($t = typeof AbortController < "u" && AbortController) == "function" ? $t : Object]),
1047
- f("design:returntype", typeof (Zt = typeof Promise < "u" && Promise) == "function" ? Zt : Object)
1048
- ], Z.prototype, "load", null), m([
1049
- c(X.LOAD_VERSIONED),
1509
+ f("design:paramtypes", [typeof Record > "u" ? Object : Record, typeof AbortController > "u" ? Object : AbortController]),
1510
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1511
+ ], X.prototype, "load", null), m([
1512
+ c(Y.LOAD_VERSIONED),
1050
1513
  p(0, l("version")),
1051
1514
  p(1, i()),
1052
1515
  f("design:type", Function),
1053
1516
  f("design:paramtypes", [
1054
1517
  Number,
1055
- typeof (tn = typeof Record < "u" && Record) == "function" ? tn : Object,
1056
- typeof (nn = typeof AbortController < "u" && AbortController) == "function" ? nn : Object
1518
+ typeof Record > "u" ? Object : Record,
1519
+ typeof AbortController > "u" ? Object : AbortController
1057
1520
  ]),
1058
- f("design:returntype", typeof (en = typeof Promise < "u" && Promise) == "function" ? en : Object)
1059
- ], Z.prototype, "loadVersioned", null), m([
1060
- c(X.LOAD_TIME_BASED),
1521
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1522
+ ], X.prototype, "loadVersioned", null), m([
1523
+ c(Y.LOAD_TIME_BASED),
1061
1524
  p(0, l("createTime")),
1062
1525
  p(1, i()),
1063
1526
  f("design:type", Function),
1064
1527
  f("design:paramtypes", [
1065
1528
  Number,
1066
- typeof (an = typeof Record < "u" && Record) == "function" ? an : Object,
1067
- typeof (on = typeof AbortController < "u" && AbortController) == "function" ? on : Object
1529
+ typeof Record > "u" ? Object : Record,
1530
+ typeof AbortController > "u" ? Object : AbortController
1068
1531
  ]),
1069
- f("design:returntype", typeof (rn = typeof Promise < "u" && Promise) == "function" ? rn : Object)
1070
- ], Z.prototype, "loadTimeBased", null), Z = m([r(), f("design:paramtypes", [Object])], Z);
1532
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1533
+ ], X.prototype, "loadTimeBased", null), X = m([r(), f("design:paramtypes", [Object])], X);
1071
1534
  //#endregion
1072
1535
  //#region src/query/cursorQuery.ts
1073
- var sn = "~";
1074
- function cn({ field: e, cursorId: t = "~", direction: n = P.DESC }) {
1075
- return n === P.ASC ? E(e, t) : D(e, t);
1536
+ var pt = "~";
1537
+ function mt({ field: e, cursorId: t = "~", direction: n = H.DESC }) {
1538
+ return n === H.ASC ? ge(e, t) : _e(e, t);
1539
+ }
1540
+ function Z({ field: e, cursorId: t = "~", direction: n = H.DESC }) {
1541
+ return n === H.ASC ? F.gt(e, t) : F.lt(e, t);
1076
1542
  }
1077
- function Q({ field: e, direction: t = P.DESC }) {
1543
+ function Q({ field: e, direction: t = H.DESC }) {
1078
1544
  return {
1079
1545
  field: e,
1080
1546
  direction: t
1081
1547
  };
1082
1548
  }
1083
- function ln(e) {
1084
- let t = e.query, n = ce(cn(e), t.condition), r = Q(e);
1549
+ function ht(e) {
1550
+ let t = e.query, n = Q(e), r = "filter" in t ? t.filter : void 0;
1551
+ if (r !== void 0) return {
1552
+ ...t,
1553
+ filter: F.and(Z(e), r),
1554
+ sort: [n]
1555
+ };
1556
+ let i = t;
1085
1557
  return {
1086
1558
  ...t,
1087
- condition: n,
1088
- sort: [r]
1559
+ condition: x(mt(e), i.condition),
1560
+ sort: [n]
1089
1561
  };
1090
1562
  }
1091
1563
  //#endregion
@@ -1097,39 +1569,43 @@ function $(e) {
1097
1569
  basePath: n
1098
1570
  };
1099
1571
  }
1100
- var un = class {
1572
+ var gt = class {
1101
1573
  constructor(e) {
1102
1574
  this.defaultOptions = e;
1103
1575
  }
1104
1576
  createSnapshotQueryClient(e) {
1105
- return new q($({
1577
+ let t = $({
1106
1578
  ...this.defaultOptions,
1107
1579
  ...e
1108
- }));
1580
+ });
1581
+ return new K(t);
1109
1582
  }
1110
1583
  createLoadStateAggregateClient(e) {
1111
- return new Y($({
1584
+ let t = $({
1112
1585
  ...this.defaultOptions,
1113
1586
  ...e
1114
- }));
1587
+ });
1588
+ return new J(t);
1115
1589
  }
1116
1590
  createOwnerLoadStateAggregateClient(e) {
1117
- return new Z($({
1591
+ let t = $({
1118
1592
  ...this.defaultOptions,
1119
1593
  ...e
1120
- }));
1594
+ });
1595
+ return new X(t);
1121
1596
  }
1122
1597
  createEventStreamQueryClient(e) {
1123
- return new G($({
1598
+ let t = $({
1124
1599
  ...this.defaultOptions,
1125
1600
  ...e
1126
- }));
1601
+ });
1602
+ return new W(t);
1127
1603
  }
1128
- }, dn = {}, fn = ["*"], pn = /* @__PURE__ */ function(e) {
1604
+ }, _t = {}, vt = ["*"], yt = /* @__PURE__ */ function(e) {
1129
1605
  return e.NONE = "", e.TENANT = "/tenant/{tenantId}", e.OWNER = "/owner/{ownerId}", e.TENANT_OWNER = "/tenant/{tenantId}/owner/{ownerId}", e;
1130
- }({}), mn = /* @__PURE__ */ function(e) {
1606
+ }({}), bt = /* @__PURE__ */ function(e) {
1131
1607
  return e.RECOVERABLE = "RECOVERABLE", e.UNKNOWN = "UNKNOWN", e.UNRECOVERABLE = "UNRECOVERABLE", e;
1132
- }({}), hn = class e {
1608
+ }({}), xt = class e {
1133
1609
  static {
1134
1610
  this.SUCCEEDED = "Ok";
1135
1611
  }
@@ -1196,14 +1672,14 @@ var un = class {
1196
1672
  static isError(t) {
1197
1673
  return !e.isSucceeded(t);
1198
1674
  }
1199
- }, gn = /* @__PURE__ */ function(e) {
1675
+ }, St = /* @__PURE__ */ function(e) {
1200
1676
  return e.COMMAND = "COMMAND", e.ERROR = "ERROR", e.EVENT = "EVENT", e.SOURCING = "SOURCING", e.STATE_EVENT = "STATE_EVENT", e;
1201
- }({}), _n = "", vn = /* @__PURE__ */ function(e) {
1677
+ }({}), Ct = "", wt = /* @__PURE__ */ function(e) {
1202
1678
  return e.MAP = "MAP", e.STRING = "STRING", e;
1203
1679
  }({});
1204
1680
  //#endregion
1205
1681
  //#region src/getPropertyValue.ts
1206
- function yn(e, t, n) {
1682
+ function Tt(e, t, n) {
1207
1683
  if (e == null) return n;
1208
1684
  let r = Array.isArray(t) ? t : t.split(".").filter(Boolean);
1209
1685
  if (r.length === 0) return e;
@@ -1220,6 +1696,6 @@ function yn(e, t, n) {
1220
1696
  return i;
1221
1697
  }
1222
1698
  //#endregion
1223
- export { sn as CURSOR_ID_START, _ as CommandClient, ne as CommandHeaders, re as CommandStage, oe as ConditionOptionKey, _n as DEFAULT_OWNER_ID, O as DEFAULT_PAGINATION, k as DEFAULT_PROJECTION, se as DeletionState, Qe as DomainEventStreamMetadataFields, dn as EMPTY_ABAC_TAGS, N as EMPTY_PAGED_LIST, ae as EMPTY_VALUE_OPERATORS, hn as ErrorCodes, G as EventStreamQueryClient, F as EventStreamQueryEndpointPaths, gn as FunctionKind, ie as LOGICAL_OPERATORS, Z as LoadOwnerStateAggregateClient, X as LoadOwnerStateAggregateEndpointPaths, Y as LoadStateAggregateClient, J as LoadStateAggregateEndpointPaths, vn as MessageHeaderSqlType, v as Operator, un as QueryClientFactory, mn as RecoverableType, pn as ResourceAttributionPathSpec, nt as SnapshotMetadataFields, q as SnapshotQueryClient, K as SnapshotQueryEndpointPaths, P as SortDirection, fn as WILDCARD_ABAC_TAG_VALUES, ge as active, S as aggregateId, C as aggregateIds, T as all, Te as allIn, ce as and, Xe as asc, Ie as beforeToday, we as between, xe as contains, $ as createQueryApiMetadata, cn as cursorCondition, ln as cursorQuery, Q as cursorSort, x as dateOptions, A as defaultProjection, w as deleted, Ze as desc, We as earlierDays, ke as elemMatch, Oe as endsWith, _e as eq, Pe as exists, yn as getPropertyValue, E as gt, ye as gte, de as id, fe as ids, b as ignoreCaseOptions, Ne as isFalse, Se as isIn, Ae as isNull, Me as isTrue, y as isValidateCondition, He as lastMonth, Be as lastWeek, M as listQuery, D as lt, be as lte, De as match, ve as ne, ze as nextWeek, ue as nor, Ce as notIn, je as notNull, le as or, me as ownerId, Ye as pagedList, Je as pagedQuery, Ke as pagination, qe as projection, Ge as raw, Ue as recentDays, j as singleQuery, he as spaceId, Ee as startsWith, pe as tenantId, Ve as thisMonth, Re as thisWeek, Fe as today, Le as tomorrow };
1699
+ export { pt as CURSOR_ID_START, h as CommandClient, ee as CommandHeaders, te as CommandStage, ie as ConditionOptionKey, Ct as DEFAULT_OWNER_ID, I as DEFAULT_PAGINATION, L as DEFAULT_PROJECTION, b as DeletionState, dt as DomainEventStreamMetadataFields, _t as EMPTY_ABAC_TAGS, st as EMPTY_PAGED_LIST, re as EMPTY_VALUE_OPERATORS, xt as ErrorCodes, W as EventStreamQueryClient, U as EventStreamQueryEndpointPaths, Ge as FilterOperator, St as FunctionKind, ne as LOGICAL_OPERATORS, X as LoadOwnerStateAggregateClient, Y as LoadOwnerStateAggregateEndpointPaths, J as LoadStateAggregateClient, q as LoadStateAggregateEndpointPaths, wt as MessageHeaderSqlType, g as Operator, gt as QueryClientFactory, bt as RecoverableType, yt as ResourceAttributionPathSpec, ft as SnapshotMetadataFields, K as SnapshotQueryClient, G as SnapshotQueryEndpointPaths, H as SortDirection, Ke as StringComparison, vt as WILDCARD_ABAC_TAG_VALUES, pe as active, S as aggregateId, C as aggregateIds, w as all, we as allIn, x as and, lt as asc, Fe as beforeToday, Ce as between, be as contains, $ as createQueryApiMetadata, mt as cursorCondition, Z as cursorFilter, ht as cursorQuery, Q as cursorSort, y as dateOptions, R as defaultProjection, fe as deleted, ut as desc, Ue as earlierDays, Oe as elemMatch, De as endsWith, me as eq, Ne as exists, F as filter, Tt as getPropertyValue, ge as gt, ve as gte, se as id, ce as ids, v as ignoreCaseOptions, Me as isFalse, xe as isIn, ke as isNull, je as isTrue, _ as isValidateCondition, Ve as lastMonth, ze as lastWeek, V as listQuery, _e as lt, ye as lte, Ee as match, he as ne, Re as nextWeek, oe as nor, Se as notIn, Ae as notNull, ae as or, ue as ownerId, ct as pagedList, ot as pagedQuery, it as pagination, at as projection, We as raw, He as recentDays, B as singleQuery, de as spaceId, Te as startsWith, le as tenantId, Be as thisMonth, Le as thisWeek, Pe as today, Ie as tomorrow };
1224
1700
 
1225
1701
  //# sourceMappingURL=index.es.js.map