@ahoo-wang/fetcher-wow 3.16.9 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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,333 @@ 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 ae = /* @__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 b(...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
- }), {
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 oe(...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 se(...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 ce(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 le(e) {
206
206
  return {
207
- operator: v.IDS,
207
+ operator: g.IDS,
208
208
  value: e
209
209
  };
210
210
  }
211
- function S(e) {
211
+ function x(e) {
212
212
  return {
213
- operator: v.AGGREGATE_ID,
213
+ operator: g.AGGREGATE_ID,
214
214
  value: e
215
215
  };
216
216
  }
217
- function C(e) {
217
+ function S(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 ue(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 de(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 fe(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 C(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 C("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 T(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 ge(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 _e(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 ve(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 ye(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 D(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 O(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 k(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 A(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 j(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 M(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 N(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 P(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 be(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 xe(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 Se(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 Ce(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 we(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 Te(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 Ee(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 De(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 Oe(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 ke(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 Ae(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 je(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 Me(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 Ne(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 Pe(e) {
479
479
  return {
480
- operator: v.RAW,
480
+ operator: g.RAW,
481
481
  value: e
482
482
  };
483
483
  }
484
484
  //#endregion
485
485
  //#region src/query/pagination.ts
486
- var O = {
486
+ var F = {
487
487
  index: 1,
488
488
  size: 10
489
489
  };
490
- function Ke({ index: e = O.index, size: t = O.size } = O) {
490
+ function Fe({ index: e = F.index, size: t = F.size } = F) {
491
491
  return {
492
492
  index: e,
493
493
  size: t
@@ -495,11 +495,11 @@ function Ke({ index: e = O.index, size: t = O.size } = O) {
495
495
  }
496
496
  //#endregion
497
497
  //#region src/query/projection.ts
498
- var k = {};
499
- function A() {
500
- return k;
498
+ var I = {};
499
+ function L() {
500
+ return I;
501
501
  }
502
- function qe({ include: e, exclude: t } = A()) {
502
+ function Ie({ include: e, exclude: t } = L()) {
503
503
  return {
504
504
  include: e,
505
505
  exclude: t
@@ -507,14 +507,14 @@ function qe({ include: e, exclude: t } = A()) {
507
507
  }
508
508
  //#endregion
509
509
  //#region src/query/queryable.ts
510
- function j({ condition: e = T(), projection: t, sort: n } = {}) {
510
+ function R({ condition: e = w(), projection: t, sort: n } = {}) {
511
511
  return {
512
512
  condition: e,
513
513
  projection: t,
514
514
  sort: n
515
515
  };
516
516
  }
517
- function M({ condition: e = T(), projection: t, sort: n, limit: r = O.size } = {}) {
517
+ function z({ condition: e = w(), projection: t, sort: n, limit: r = F.size } = {}) {
518
518
  return {
519
519
  condition: e,
520
520
  projection: t,
@@ -522,7 +522,7 @@ function M({ condition: e = T(), projection: t, sort: n, limit: r = O.size } = {
522
522
  limit: r
523
523
  };
524
524
  }
525
- function Je({ condition: e = T(), projection: t, sort: n, pagination: r = O } = {}) {
525
+ function Le({ condition: e = w(), projection: t, sort: n, pagination: r = F } = {}) {
526
526
  return {
527
527
  condition: e,
528
528
  projection: t,
@@ -530,11 +530,11 @@ function Je({ condition: e = T(), projection: t, sort: n, pagination: r = O } =
530
530
  pagination: r
531
531
  };
532
532
  }
533
- var N = {
533
+ var B = {
534
534
  total: 0,
535
535
  list: []
536
536
  };
537
- function Ye({ total: e, list: t = [] } = N) {
537
+ function Re({ total: e, list: t = [] } = B) {
538
538
  return e === void 0 && (e = t.length), {
539
539
  total: e,
540
540
  list: t
@@ -542,24 +542,24 @@ function Ye({ total: e, list: t = [] } = N) {
542
542
  }
543
543
  //#endregion
544
544
  //#region src/query/sort.ts
545
- var P = /* @__PURE__ */ function(e) {
545
+ var V = /* @__PURE__ */ function(e) {
546
546
  return e.ASC = "ASC", e.DESC = "DESC", e;
547
547
  }({});
548
- function Xe(e) {
548
+ function ze(e) {
549
549
  return {
550
550
  field: e,
551
- direction: P.ASC
551
+ direction: "ASC"
552
552
  };
553
553
  }
554
- function Ze(e) {
554
+ function Be(e) {
555
555
  return {
556
556
  field: e,
557
- direction: P.DESC
557
+ direction: "DESC"
558
558
  };
559
559
  }
560
560
  //#endregion
561
561
  //#region src/query/event/domainEventStream.ts
562
- var Qe = class e {
562
+ var Ve = class e {
563
563
  static {
564
564
  this.HEADER = "header";
565
565
  }
@@ -608,7 +608,7 @@ var Qe = class e {
608
608
  static {
609
609
  this.CREATE_TIME = "createTime";
610
610
  }
611
- }, F = class e {
611
+ }, H = class e {
612
612
  static {
613
613
  this.EVENT_STREAM_RESOURCE_NAME = "event";
614
614
  }
@@ -621,7 +621,7 @@ var Qe = class e {
621
621
  static {
622
622
  this.PAGED = `${e.EVENT_STREAM_RESOURCE_NAME}/paged`;
623
623
  }
624
- }, I, L, R, z, B, V, H, U, W, $e, et, tt, G = class {
624
+ }, U = class {
625
625
  constructor(e) {
626
626
  this.apiMetadata = e;
627
627
  }
@@ -639,29 +639,29 @@ var Qe = class e {
639
639
  }
640
640
  };
641
641
  m([
642
- u(F.COUNT),
642
+ u(H.COUNT),
643
643
  p(0, o()),
644
644
  p(1, i()),
645
645
  f("design:type", Function),
646
646
  f("design:paramtypes", [
647
647
  Object,
648
- typeof (L = typeof Record < "u" && Record) == "function" ? L : Object,
649
- typeof (R = typeof AbortController < "u" && AbortController) == "function" ? R : Object
648
+ typeof Record > "u" ? Object : Record,
649
+ typeof AbortController > "u" ? Object : AbortController
650
650
  ]),
651
- f("design:returntype", typeof (I = typeof Promise < "u" && Promise) == "function" ? I : Object)
652
- ], G.prototype, "count", null), m([
653
- u(F.LIST),
651
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
652
+ ], U.prototype, "count", null), m([
653
+ u(H.LIST),
654
654
  p(0, o()),
655
655
  p(1, i()),
656
656
  f("design:type", Function),
657
657
  f("design:paramtypes", [
658
658
  Object,
659
- typeof (B = typeof Record < "u" && Record) == "function" ? B : Object,
660
- typeof (V = typeof AbortController < "u" && AbortController) == "function" ? V : Object
659
+ typeof Record > "u" ? Object : Record,
660
+ typeof AbortController > "u" ? Object : AbortController
661
661
  ]),
662
- f("design:returntype", typeof (z = typeof Promise < "u" && Promise) == "function" ? z : Object)
663
- ], G.prototype, "list", null), m([
664
- u(F.LIST, {
662
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
663
+ ], U.prototype, "list", null), m([
664
+ u(H.LIST, {
665
665
  headers: { Accept: e.TEXT_EVENT_STREAM },
666
666
  resultExtractor: n
667
667
  }),
@@ -670,25 +670,25 @@ m([
670
670
  f("design:type", Function),
671
671
  f("design:paramtypes", [
672
672
  Object,
673
- typeof (U = typeof Record < "u" && Record) == "function" ? U : Object,
674
- typeof (W = typeof AbortController < "u" && AbortController) == "function" ? W : Object
673
+ typeof Record > "u" ? Object : Record,
674
+ typeof AbortController > "u" ? Object : AbortController
675
675
  ]),
676
- f("design:returntype", typeof (H = typeof Promise < "u" && Promise) == "function" ? H : Object)
677
- ], G.prototype, "listStream", null), m([
678
- u(F.PAGED),
676
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
677
+ ], U.prototype, "listStream", null), m([
678
+ u(H.PAGED),
679
679
  p(0, o()),
680
680
  p(1, i()),
681
681
  f("design:type", Function),
682
682
  f("design:paramtypes", [
683
683
  Object,
684
- typeof (et = typeof Record < "u" && Record) == "function" ? et : Object,
685
- typeof (tt = typeof AbortController < "u" && AbortController) == "function" ? tt : Object
684
+ typeof Record > "u" ? Object : Record,
685
+ typeof AbortController > "u" ? Object : AbortController
686
686
  ]),
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);
687
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
688
+ ], U.prototype, "paged", null), U = m([r(), f("design:paramtypes", [Object])], U);
689
689
  //#endregion
690
690
  //#region src/query/snapshot/snapshot.ts
691
- var nt = class {
691
+ var He = class {
692
692
  static {
693
693
  this.VERSION = "version";
694
694
  }
@@ -728,7 +728,7 @@ var nt = class {
728
728
  static {
729
729
  this.STATE = "state";
730
730
  }
731
- }, K = class e {
731
+ }, W = class e {
732
732
  static {
733
733
  this.SNAPSHOT_RESOURCE_NAME = "snapshot";
734
734
  }
@@ -753,7 +753,7 @@ var nt = class {
753
753
  static {
754
754
  this.SINGLE_STATE = `${e.SINGLE}/state`;
755
755
  }
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 {
756
+ }, G = class {
757
757
  constructor(e) {
758
758
  this.apiMetadata = e;
759
759
  }
@@ -785,52 +785,52 @@ var nt = class {
785
785
  throw a(e, t, n);
786
786
  }
787
787
  getById(e, t, n) {
788
- let r = j({ condition: S(e) });
788
+ let r = R({ condition: x(e) });
789
789
  return this.single(r, t, n);
790
790
  }
791
791
  getStateById(e, t, n) {
792
- let r = j({ condition: S(e) });
792
+ let r = R({ condition: x(e) });
793
793
  return this.singleState(r, t, n);
794
794
  }
795
795
  getByIds(e, t, n) {
796
- let r = M({
797
- condition: C(e),
796
+ let r = z({
797
+ condition: S(e),
798
798
  limit: e.length
799
799
  });
800
800
  return this.list(r, t, n);
801
801
  }
802
802
  getStateByIds(e, t, n) {
803
- let r = M({
804
- condition: C(e),
803
+ let r = z({
804
+ condition: S(e),
805
805
  limit: e.length
806
806
  });
807
807
  return this.listState(r, t, n);
808
808
  }
809
809
  };
810
810
  m([
811
- u(K.COUNT),
811
+ u(W.COUNT),
812
812
  p(0, o()),
813
813
  p(1, i()),
814
814
  f("design:type", Function),
815
815
  f("design:paramtypes", [
816
816
  Object,
817
- typeof (it = typeof Record < "u" && Record) == "function" ? it : Object,
818
- typeof (at = typeof AbortController < "u" && AbortController) == "function" ? at : Object
817
+ typeof Record > "u" ? Object : Record,
818
+ typeof AbortController > "u" ? Object : AbortController
819
819
  ]),
820
- f("design:returntype", typeof (rt = typeof Promise < "u" && Promise) == "function" ? rt : Object)
821
- ], q.prototype, "count", null), m([
822
- u(K.LIST),
820
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
821
+ ], G.prototype, "count", null), m([
822
+ u(W.LIST),
823
823
  p(0, o()),
824
824
  p(1, i()),
825
825
  f("design:type", Function),
826
826
  f("design:paramtypes", [
827
827
  Object,
828
- typeof (st = typeof Record < "u" && Record) == "function" ? st : Object,
829
- typeof (ct = typeof AbortController < "u" && AbortController) == "function" ? ct : Object
828
+ typeof Record > "u" ? Object : Record,
829
+ typeof AbortController > "u" ? Object : AbortController
830
830
  ]),
831
- f("design:returntype", typeof (ot = typeof Promise < "u" && Promise) == "function" ? ot : Object)
832
- ], q.prototype, "list", null), m([
833
- u(K.LIST, {
831
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
832
+ ], G.prototype, "list", null), m([
833
+ u(W.LIST, {
834
834
  headers: { Accept: e.TEXT_EVENT_STREAM },
835
835
  resultExtractor: n
836
836
  }),
@@ -839,23 +839,23 @@ m([
839
839
  f("design:type", Function),
840
840
  f("design:paramtypes", [
841
841
  Object,
842
- typeof (ut = typeof Record < "u" && Record) == "function" ? ut : Object,
843
- typeof (dt = typeof AbortController < "u" && AbortController) == "function" ? dt : Object
842
+ typeof Record > "u" ? Object : Record,
843
+ typeof AbortController > "u" ? Object : AbortController
844
844
  ]),
845
- f("design:returntype", typeof (lt = typeof Promise < "u" && Promise) == "function" ? lt : Object)
846
- ], q.prototype, "listStream", null), m([
847
- u(K.LIST_STATE),
845
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
846
+ ], G.prototype, "listStream", null), m([
847
+ u(W.LIST_STATE),
848
848
  p(0, o()),
849
849
  p(1, i()),
850
850
  f("design:type", Function),
851
851
  f("design:paramtypes", [
852
852
  Object,
853
- typeof (pt = typeof Record < "u" && Record) == "function" ? pt : Object,
854
- typeof (mt = typeof AbortController < "u" && AbortController) == "function" ? mt : Object
853
+ typeof Record > "u" ? Object : Record,
854
+ typeof AbortController > "u" ? Object : AbortController
855
855
  ]),
856
- f("design:returntype", typeof (ft = typeof Promise < "u" && Promise) == "function" ? ft : Object)
857
- ], q.prototype, "listState", null), m([
858
- u(K.LIST_STATE, {
856
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
857
+ ], G.prototype, "listState", null), m([
858
+ u(W.LIST_STATE, {
859
859
  headers: { Accept: e.TEXT_EVENT_STREAM },
860
860
  resultExtractor: n
861
861
  }),
@@ -864,94 +864,94 @@ m([
864
864
  f("design:type", Function),
865
865
  f("design:paramtypes", [
866
866
  Object,
867
- typeof (gt = typeof Record < "u" && Record) == "function" ? gt : Object,
868
- typeof (_t = typeof AbortController < "u" && AbortController) == "function" ? _t : Object
867
+ typeof Record > "u" ? Object : Record,
868
+ typeof AbortController > "u" ? Object : AbortController
869
869
  ]),
870
- f("design:returntype", typeof (ht = typeof Promise < "u" && Promise) == "function" ? ht : Object)
871
- ], q.prototype, "listStateStream", null), m([
872
- u(K.PAGED),
870
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
871
+ ], G.prototype, "listStateStream", null), m([
872
+ u(W.PAGED),
873
873
  p(0, o()),
874
874
  p(1, i()),
875
875
  f("design:type", Function),
876
876
  f("design:paramtypes", [
877
877
  Object,
878
- typeof (yt = typeof Record < "u" && Record) == "function" ? yt : Object,
879
- typeof (bt = typeof AbortController < "u" && AbortController) == "function" ? bt : Object
878
+ typeof Record > "u" ? Object : Record,
879
+ typeof AbortController > "u" ? Object : AbortController
880
880
  ]),
881
- f("design:returntype", typeof (vt = typeof Promise < "u" && Promise) == "function" ? vt : Object)
882
- ], q.prototype, "paged", null), m([
883
- u(K.PAGED_STATE),
881
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
882
+ ], G.prototype, "paged", null), m([
883
+ u(W.PAGED_STATE),
884
884
  p(0, o()),
885
885
  p(1, i()),
886
886
  f("design:type", Function),
887
887
  f("design:paramtypes", [
888
888
  Object,
889
- typeof (St = typeof Record < "u" && Record) == "function" ? St : Object,
890
- typeof (Ct = typeof AbortController < "u" && AbortController) == "function" ? Ct : Object
889
+ typeof Record > "u" ? Object : Record,
890
+ typeof AbortController > "u" ? Object : AbortController
891
891
  ]),
892
- f("design:returntype", typeof (xt = typeof Promise < "u" && Promise) == "function" ? xt : Object)
893
- ], q.prototype, "pagedState", null), m([
894
- u(K.SINGLE),
892
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
893
+ ], G.prototype, "pagedState", null), m([
894
+ u(W.SINGLE),
895
895
  p(0, o()),
896
896
  p(1, i()),
897
897
  f("design:type", Function),
898
898
  f("design:paramtypes", [
899
899
  Object,
900
- typeof (Tt = typeof Record < "u" && Record) == "function" ? Tt : Object,
901
- typeof (Et = typeof AbortController < "u" && AbortController) == "function" ? Et : Object
900
+ typeof Record > "u" ? Object : Record,
901
+ typeof AbortController > "u" ? Object : AbortController
902
902
  ]),
903
- f("design:returntype", typeof (wt = typeof Promise < "u" && Promise) == "function" ? wt : Object)
904
- ], q.prototype, "single", null), m([
905
- u(K.SINGLE_STATE),
903
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
904
+ ], G.prototype, "single", null), m([
905
+ u(W.SINGLE_STATE),
906
906
  p(0, o()),
907
907
  p(1, i()),
908
908
  f("design:type", Function),
909
909
  f("design:paramtypes", [
910
910
  Object,
911
- typeof (Ot = typeof Record < "u" && Record) == "function" ? Ot : Object,
912
- typeof (kt = typeof AbortController < "u" && AbortController) == "function" ? kt : Object
911
+ typeof Record > "u" ? Object : Record,
912
+ typeof AbortController > "u" ? Object : AbortController
913
913
  ]),
914
- f("design:returntype", typeof (Dt = typeof Promise < "u" && Promise) == "function" ? Dt : Object)
915
- ], q.prototype, "singleState", null), m([
914
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
915
+ ], G.prototype, "singleState", null), m([
916
916
  p(1, i()),
917
917
  f("design:type", Function),
918
918
  f("design:paramtypes", [
919
919
  String,
920
- typeof (jt = typeof Record < "u" && Record) == "function" ? jt : Object,
921
- typeof (Mt = typeof AbortController < "u" && AbortController) == "function" ? Mt : Object
920
+ typeof Record > "u" ? Object : Record,
921
+ typeof AbortController > "u" ? Object : AbortController
922
922
  ]),
923
- f("design:returntype", typeof (At = typeof Promise < "u" && Promise) == "function" ? At : Object)
924
- ], q.prototype, "getById", null), m([
923
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
924
+ ], G.prototype, "getById", null), m([
925
925
  p(1, i()),
926
926
  f("design:type", Function),
927
927
  f("design:paramtypes", [
928
928
  String,
929
- typeof (Pt = typeof Record < "u" && Record) == "function" ? Pt : Object,
930
- typeof (Ft = typeof AbortController < "u" && AbortController) == "function" ? Ft : Object
929
+ typeof Record > "u" ? Object : Record,
930
+ typeof AbortController > "u" ? Object : AbortController
931
931
  ]),
932
- f("design:returntype", typeof (Nt = typeof Promise < "u" && Promise) == "function" ? Nt : Object)
933
- ], q.prototype, "getStateById", null), m([
932
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
933
+ ], G.prototype, "getStateById", null), m([
934
934
  p(1, i()),
935
935
  f("design:type", Function),
936
936
  f("design:paramtypes", [
937
937
  Array,
938
- typeof (Lt = typeof Record < "u" && Record) == "function" ? Lt : Object,
939
- typeof (Rt = typeof AbortController < "u" && AbortController) == "function" ? Rt : Object
938
+ typeof Record > "u" ? Object : Record,
939
+ typeof AbortController > "u" ? Object : AbortController
940
940
  ]),
941
- f("design:returntype", typeof (It = typeof Promise < "u" && Promise) == "function" ? It : Object)
942
- ], q.prototype, "getByIds", null), m([
941
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
942
+ ], G.prototype, "getByIds", null), m([
943
943
  p(1, i()),
944
944
  f("design:type", Function),
945
945
  f("design:paramtypes", [
946
946
  Array,
947
- typeof (Bt = typeof Record < "u" && Record) == "function" ? Bt : Object,
948
- typeof (Vt = typeof AbortController < "u" && AbortController) == "function" ? Vt : Object
947
+ typeof Record > "u" ? Object : Record,
948
+ typeof AbortController > "u" ? Object : AbortController
949
949
  ]),
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);
950
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
951
+ ], G.prototype, "getStateByIds", null), G = m([r(), f("design:paramtypes", [Object])], G);
952
952
  //#endregion
953
953
  //#region src/query/state/loadStateAggregateClient.ts
954
- var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
954
+ var K = class e {
955
955
  static {
956
956
  this.LOAD = "{id}/state";
957
957
  }
@@ -961,7 +961,7 @@ var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
961
961
  static {
962
962
  this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
963
963
  }
964
- }, Y = class {
964
+ }, q = class {
965
965
  constructor(e) {
966
966
  this.apiMetadata = e;
967
967
  }
@@ -976,18 +976,18 @@ var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
976
976
  }
977
977
  };
978
978
  m([
979
- c(J.LOAD),
979
+ c(K.LOAD),
980
980
  p(0, l("id")),
981
981
  p(1, i()),
982
982
  f("design:type", Function),
983
983
  f("design:paramtypes", [
984
984
  String,
985
- typeof (Ut = typeof Record < "u" && Record) == "function" ? Ut : Object,
986
- typeof (Wt = typeof AbortController < "u" && AbortController) == "function" ? Wt : Object
985
+ typeof Record > "u" ? Object : Record,
986
+ typeof AbortController > "u" ? Object : AbortController
987
987
  ]),
988
- f("design:returntype", typeof (Ht = typeof Promise < "u" && Promise) == "function" ? Ht : Object)
989
- ], Y.prototype, "load", null), m([
990
- c(J.LOAD_VERSIONED),
988
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
989
+ ], q.prototype, "load", null), m([
990
+ c(K.LOAD_VERSIONED),
991
991
  p(0, l("id")),
992
992
  p(1, l("version")),
993
993
  p(2, i()),
@@ -995,12 +995,12 @@ m([
995
995
  f("design:paramtypes", [
996
996
  String,
997
997
  Number,
998
- typeof (Kt = typeof Record < "u" && Record) == "function" ? Kt : Object,
999
- typeof (qt = typeof AbortController < "u" && AbortController) == "function" ? qt : Object
998
+ typeof Record > "u" ? Object : Record,
999
+ typeof AbortController > "u" ? Object : AbortController
1000
1000
  ]),
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),
1001
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1002
+ ], q.prototype, "loadVersioned", null), m([
1003
+ c(K.LOAD_TIME_BASED),
1004
1004
  p(0, l("id")),
1005
1005
  p(1, l("createTime")),
1006
1006
  p(2, i()),
@@ -1008,14 +1008,14 @@ m([
1008
1008
  f("design:paramtypes", [
1009
1009
  String,
1010
1010
  Number,
1011
- typeof (Yt = typeof Record < "u" && Record) == "function" ? Yt : Object,
1012
- typeof (Xt = typeof AbortController < "u" && AbortController) == "function" ? Xt : Object
1011
+ typeof Record > "u" ? Object : Record,
1012
+ typeof AbortController > "u" ? Object : AbortController
1013
1013
  ]),
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);
1014
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1015
+ ], q.prototype, "loadTimeBased", null), q = m([r(), f("design:paramtypes", [Object])], q);
1016
1016
  //#endregion
1017
1017
  //#region src/query/state/loadOwnerStateAggregateClient.ts
1018
- var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1018
+ var J = class e {
1019
1019
  static {
1020
1020
  this.LOAD = "state";
1021
1021
  }
@@ -1025,7 +1025,7 @@ var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1025
1025
  static {
1026
1026
  this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
1027
1027
  }
1028
- }, Z = class {
1028
+ }, Y = class {
1029
1029
  constructor(e) {
1030
1030
  this.apiMetadata = e;
1031
1031
  }
@@ -1040,48 +1040,48 @@ var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
1040
1040
  }
1041
1041
  };
1042
1042
  m([
1043
- c(X.LOAD),
1043
+ c(J.LOAD),
1044
1044
  p(0, i()),
1045
1045
  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),
1046
+ f("design:paramtypes", [typeof Record > "u" ? Object : Record, typeof AbortController > "u" ? Object : AbortController]),
1047
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1048
+ ], Y.prototype, "load", null), m([
1049
+ c(J.LOAD_VERSIONED),
1050
1050
  p(0, l("version")),
1051
1051
  p(1, i()),
1052
1052
  f("design:type", Function),
1053
1053
  f("design:paramtypes", [
1054
1054
  Number,
1055
- typeof (tn = typeof Record < "u" && Record) == "function" ? tn : Object,
1056
- typeof (nn = typeof AbortController < "u" && AbortController) == "function" ? nn : Object
1055
+ typeof Record > "u" ? Object : Record,
1056
+ typeof AbortController > "u" ? Object : AbortController
1057
1057
  ]),
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),
1058
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1059
+ ], Y.prototype, "loadVersioned", null), m([
1060
+ c(J.LOAD_TIME_BASED),
1061
1061
  p(0, l("createTime")),
1062
1062
  p(1, i()),
1063
1063
  f("design:type", Function),
1064
1064
  f("design:paramtypes", [
1065
1065
  Number,
1066
- typeof (an = typeof Record < "u" && Record) == "function" ? an : Object,
1067
- typeof (on = typeof AbortController < "u" && AbortController) == "function" ? on : Object
1066
+ typeof Record > "u" ? Object : Record,
1067
+ typeof AbortController > "u" ? Object : AbortController
1068
1068
  ]),
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);
1069
+ f("design:returntype", typeof Promise > "u" ? Object : Promise)
1070
+ ], Y.prototype, "loadTimeBased", null), Y = m([r(), f("design:paramtypes", [Object])], Y);
1071
1071
  //#endregion
1072
1072
  //#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);
1073
+ var Ue = "~";
1074
+ function X({ field: e, cursorId: t = "~", direction: n = V.DESC }) {
1075
+ return n === V.ASC ? T(e, t) : E(e, t);
1076
1076
  }
1077
- function Q({ field: e, direction: t = P.DESC }) {
1077
+ function Z({ field: e, direction: t = V.DESC }) {
1078
1078
  return {
1079
1079
  field: e,
1080
1080
  direction: t
1081
1081
  };
1082
1082
  }
1083
- function ln(e) {
1084
- let t = e.query, n = ce(cn(e), t.condition), r = Q(e);
1083
+ function We(e) {
1084
+ let t = e.query, n = b(X(e), t.condition), r = Z(e);
1085
1085
  return {
1086
1086
  ...t,
1087
1087
  condition: n,
@@ -1090,46 +1090,50 @@ function ln(e) {
1090
1090
  }
1091
1091
  //#endregion
1092
1092
  //#region src/query/queryClients.ts
1093
- function $(e) {
1093
+ function Q(e) {
1094
1094
  let n = t(e.resourceAttribution ?? "", e.aggregateName ?? "");
1095
1095
  return e.contextAlias && (n = t(e.contextAlias, n)), {
1096
1096
  ...e,
1097
1097
  basePath: n
1098
1098
  };
1099
1099
  }
1100
- var un = class {
1100
+ var Ge = class {
1101
1101
  constructor(e) {
1102
1102
  this.defaultOptions = e;
1103
1103
  }
1104
1104
  createSnapshotQueryClient(e) {
1105
- return new q($({
1105
+ let t = Q({
1106
1106
  ...this.defaultOptions,
1107
1107
  ...e
1108
- }));
1108
+ });
1109
+ return new G(t);
1109
1110
  }
1110
1111
  createLoadStateAggregateClient(e) {
1111
- return new Y($({
1112
+ let t = Q({
1112
1113
  ...this.defaultOptions,
1113
1114
  ...e
1114
- }));
1115
+ });
1116
+ return new q(t);
1115
1117
  }
1116
1118
  createOwnerLoadStateAggregateClient(e) {
1117
- return new Z($({
1119
+ let t = Q({
1118
1120
  ...this.defaultOptions,
1119
1121
  ...e
1120
- }));
1122
+ });
1123
+ return new Y(t);
1121
1124
  }
1122
1125
  createEventStreamQueryClient(e) {
1123
- return new G($({
1126
+ let t = Q({
1124
1127
  ...this.defaultOptions,
1125
1128
  ...e
1126
- }));
1129
+ });
1130
+ return new U(t);
1127
1131
  }
1128
- }, dn = {}, fn = ["*"], pn = /* @__PURE__ */ function(e) {
1132
+ }, Ke = {}, qe = ["*"], Je = /* @__PURE__ */ function(e) {
1129
1133
  return e.NONE = "", e.TENANT = "/tenant/{tenantId}", e.OWNER = "/owner/{ownerId}", e.TENANT_OWNER = "/tenant/{tenantId}/owner/{ownerId}", e;
1130
- }({}), mn = /* @__PURE__ */ function(e) {
1134
+ }({}), Ye = /* @__PURE__ */ function(e) {
1131
1135
  return e.RECOVERABLE = "RECOVERABLE", e.UNKNOWN = "UNKNOWN", e.UNRECOVERABLE = "UNRECOVERABLE", e;
1132
- }({}), hn = class e {
1136
+ }({}), $ = class e {
1133
1137
  static {
1134
1138
  this.SUCCEEDED = "Ok";
1135
1139
  }
@@ -1196,14 +1200,14 @@ var un = class {
1196
1200
  static isError(t) {
1197
1201
  return !e.isSucceeded(t);
1198
1202
  }
1199
- }, gn = /* @__PURE__ */ function(e) {
1203
+ }, Xe = /* @__PURE__ */ function(e) {
1200
1204
  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) {
1205
+ }({}), Ze = "", Qe = /* @__PURE__ */ function(e) {
1202
1206
  return e.MAP = "MAP", e.STRING = "STRING", e;
1203
1207
  }({});
1204
1208
  //#endregion
1205
1209
  //#region src/getPropertyValue.ts
1206
- function yn(e, t, n) {
1210
+ function $e(e, t, n) {
1207
1211
  if (e == null) return n;
1208
1212
  let r = Array.isArray(t) ? t : t.split(".").filter(Boolean);
1209
1213
  if (r.length === 0) return e;
@@ -1220,6 +1224,6 @@ function yn(e, t, n) {
1220
1224
  return i;
1221
1225
  }
1222
1226
  //#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 };
1227
+ export { Ue as CURSOR_ID_START, h as CommandClient, ee as CommandHeaders, te as CommandStage, ie as ConditionOptionKey, Ze as DEFAULT_OWNER_ID, F as DEFAULT_PAGINATION, I as DEFAULT_PROJECTION, ae as DeletionState, Ve as DomainEventStreamMetadataFields, Ke as EMPTY_ABAC_TAGS, B as EMPTY_PAGED_LIST, re as EMPTY_VALUE_OPERATORS, $ as ErrorCodes, U as EventStreamQueryClient, H as EventStreamQueryEndpointPaths, Xe as FunctionKind, ne as LOGICAL_OPERATORS, Y as LoadOwnerStateAggregateClient, J as LoadOwnerStateAggregateEndpointPaths, q as LoadStateAggregateClient, K as LoadStateAggregateEndpointPaths, Qe as MessageHeaderSqlType, g as Operator, Ge as QueryClientFactory, Ye as RecoverableType, Je as ResourceAttributionPathSpec, He as SnapshotMetadataFields, G as SnapshotQueryClient, W as SnapshotQueryEndpointPaths, V as SortDirection, qe as WILDCARD_ABAC_TAG_VALUES, pe as active, x as aggregateId, S as aggregateIds, w as all, k as allIn, b as and, ze as asc, Te as beforeToday, O as between, ve as contains, Q as createQueryApiMetadata, X as cursorCondition, We as cursorQuery, Z as cursorSort, y as dateOptions, L as defaultProjection, C as deleted, Be as desc, Ne as earlierDays, N as elemMatch, M as endsWith, me as eq, Ce as exists, $e as getPropertyValue, T as gt, ge as gte, ce as id, le as ids, v as ignoreCaseOptions, Se as isFalse, ye as isIn, P as isNull, xe as isTrue, _ as isValidateCondition, je as lastMonth, ke as lastWeek, z as listQuery, E as lt, _e as lte, j as match, he as ne, Oe as nextWeek, se as nor, D as notIn, be as notNull, oe as or, de as ownerId, Re as pagedList, Le as pagedQuery, Fe as pagination, Ie as projection, Pe as raw, Me as recentDays, R as singleQuery, fe as spaceId, A as startsWith, ue as tenantId, Ae as thisMonth, De as thisWeek, we as today, Ee as tomorrow };
1224
1228
 
1225
1229
  //# sourceMappingURL=index.es.js.map