@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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +312 -308
- package/dist/index.es.js.map +1 -1
- package/dist/query/condition.d.ts.map +1 -1
- package/dist/query/locale/en_US.cjs.js.map +1 -1
- package/dist/query/locale/en_US.es.js.map +1 -1
- package/dist/query/locale/zh_CN.cjs.js.map +1 -1
- package/dist/query/locale/zh_CN.es.js.map +1 -1
- package/package.json +13 -13
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.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
42
|
-
f("design:returntype", typeof
|
|
43
|
-
],
|
|
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
|
|
52
|
-
f("design:returntype", typeof
|
|
53
|
-
],
|
|
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
|
|
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
|
-
},
|
|
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
|
-
}({}),
|
|
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
|
-
}({}),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
]),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
|
150
|
+
function _(e) {
|
|
151
151
|
return !!e;
|
|
152
152
|
}
|
|
153
|
-
var
|
|
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
|
|
164
|
+
function v(e) {
|
|
165
165
|
if (e !== void 0) return { ignoreCase: e };
|
|
166
166
|
}
|
|
167
|
-
function
|
|
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
|
|
172
|
+
var ae = /* @__PURE__ */ function(e) {
|
|
173
173
|
return e.ACTIVE = "ACTIVE", e.DELETED = "DELETED", e.ALL = "ALL", e;
|
|
174
174
|
}({});
|
|
175
|
-
function
|
|
176
|
-
if (e.length === 0) return
|
|
177
|
-
if (e.length === 1) return
|
|
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 ===
|
|
181
|
-
}), {
|
|
182
|
-
operator:
|
|
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
|
|
187
|
-
let t = e?.filter((e) =>
|
|
188
|
-
return t.length === 0 ?
|
|
189
|
-
operator:
|
|
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
|
|
194
|
-
return e.length === 0 ?
|
|
195
|
-
operator:
|
|
193
|
+
function se(...e) {
|
|
194
|
+
return e.length === 0 ? w() : {
|
|
195
|
+
operator: g.NOR,
|
|
196
196
|
children: e
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ce(e) {
|
|
200
200
|
return {
|
|
201
|
-
operator:
|
|
201
|
+
operator: g.ID,
|
|
202
202
|
value: e
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function le(e) {
|
|
206
206
|
return {
|
|
207
|
-
operator:
|
|
207
|
+
operator: g.IDS,
|
|
208
208
|
value: e
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function x(e) {
|
|
212
212
|
return {
|
|
213
|
-
operator:
|
|
213
|
+
operator: g.AGGREGATE_ID,
|
|
214
214
|
value: e
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function S(e) {
|
|
218
218
|
return {
|
|
219
|
-
operator:
|
|
219
|
+
operator: g.AGGREGATE_IDS,
|
|
220
220
|
value: e
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ue(e) {
|
|
224
224
|
return {
|
|
225
|
-
operator:
|
|
225
|
+
operator: g.TENANT_ID,
|
|
226
226
|
value: e
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function de(e) {
|
|
230
230
|
return {
|
|
231
|
-
operator:
|
|
231
|
+
operator: g.OWNER_ID,
|
|
232
232
|
value: e
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function fe(e) {
|
|
236
236
|
return {
|
|
237
|
-
operator:
|
|
237
|
+
operator: g.SPACE_ID,
|
|
238
238
|
value: e
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function C(e) {
|
|
242
242
|
return {
|
|
243
|
-
operator:
|
|
243
|
+
operator: g.DELETED,
|
|
244
244
|
value: e
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
247
|
+
function pe() {
|
|
248
|
+
return C("ACTIVE");
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return { operator:
|
|
250
|
+
function w() {
|
|
251
|
+
return { operator: g.ALL };
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function me(e, t) {
|
|
254
254
|
return {
|
|
255
255
|
field: e,
|
|
256
|
-
operator:
|
|
256
|
+
operator: g.EQ,
|
|
257
257
|
value: t
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function he(e, t) {
|
|
261
261
|
return {
|
|
262
262
|
field: e,
|
|
263
|
-
operator:
|
|
263
|
+
operator: g.NE,
|
|
264
264
|
value: t
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function T(e, t) {
|
|
268
268
|
return {
|
|
269
269
|
field: e,
|
|
270
|
-
operator:
|
|
270
|
+
operator: g.GT,
|
|
271
271
|
value: t
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function E(e, t) {
|
|
275
275
|
return {
|
|
276
276
|
field: e,
|
|
277
|
-
operator:
|
|
277
|
+
operator: g.LT,
|
|
278
278
|
value: t
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ge(e, t) {
|
|
282
282
|
return {
|
|
283
283
|
field: e,
|
|
284
|
-
operator:
|
|
284
|
+
operator: g.GTE,
|
|
285
285
|
value: t
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function _e(e, t) {
|
|
289
289
|
return {
|
|
290
290
|
field: e,
|
|
291
|
-
operator:
|
|
291
|
+
operator: g.LTE,
|
|
292
292
|
value: t
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
let r =
|
|
295
|
+
function ve(e, t, n) {
|
|
296
|
+
let r = v(n);
|
|
297
297
|
return {
|
|
298
298
|
field: e,
|
|
299
|
-
operator:
|
|
299
|
+
operator: g.CONTAINS,
|
|
300
300
|
value: t,
|
|
301
301
|
options: r
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function ye(e, ...t) {
|
|
305
305
|
return {
|
|
306
306
|
field: e,
|
|
307
|
-
operator:
|
|
307
|
+
operator: g.IN,
|
|
308
308
|
value: t
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function D(e, ...t) {
|
|
312
312
|
return {
|
|
313
313
|
field: e,
|
|
314
|
-
operator:
|
|
314
|
+
operator: g.NOT_IN,
|
|
315
315
|
value: t
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function O(e, t, n) {
|
|
319
319
|
return {
|
|
320
320
|
field: e,
|
|
321
|
-
operator:
|
|
321
|
+
operator: g.BETWEEN,
|
|
322
322
|
value: [t, n]
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function k(e, ...t) {
|
|
326
326
|
return {
|
|
327
327
|
field: e,
|
|
328
|
-
operator:
|
|
328
|
+
operator: g.ALL_IN,
|
|
329
329
|
value: t
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
let r =
|
|
332
|
+
function A(e, t, n) {
|
|
333
|
+
let r = v(n);
|
|
334
334
|
return {
|
|
335
335
|
field: e,
|
|
336
|
-
operator:
|
|
336
|
+
operator: g.STARTS_WITH,
|
|
337
337
|
value: t,
|
|
338
338
|
options: r
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function j(e, t) {
|
|
342
342
|
return {
|
|
343
343
|
field: e,
|
|
344
|
-
operator:
|
|
344
|
+
operator: g.MATCH,
|
|
345
345
|
value: t
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
let r =
|
|
348
|
+
function M(e, t, n) {
|
|
349
|
+
let r = v(n);
|
|
350
350
|
return {
|
|
351
351
|
field: e,
|
|
352
|
-
operator:
|
|
352
|
+
operator: g.ENDS_WITH,
|
|
353
353
|
value: t,
|
|
354
354
|
options: r
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function N(e, t) {
|
|
358
358
|
return {
|
|
359
359
|
field: e,
|
|
360
|
-
operator:
|
|
360
|
+
operator: g.ELEM_MATCH,
|
|
361
361
|
children: [t]
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function P(e) {
|
|
365
365
|
return {
|
|
366
366
|
field: e,
|
|
367
|
-
operator:
|
|
367
|
+
operator: g.NULL
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function be(e) {
|
|
371
371
|
return {
|
|
372
372
|
field: e,
|
|
373
|
-
operator:
|
|
373
|
+
operator: g.NOT_NULL
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function xe(e) {
|
|
377
377
|
return {
|
|
378
378
|
field: e,
|
|
379
|
-
operator:
|
|
379
|
+
operator: g.TRUE
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Se(e) {
|
|
383
383
|
return {
|
|
384
384
|
field: e,
|
|
385
|
-
operator:
|
|
385
|
+
operator: g.FALSE
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ce(e, t = !0) {
|
|
389
389
|
return {
|
|
390
390
|
field: e,
|
|
391
|
-
operator:
|
|
391
|
+
operator: g.EXISTS,
|
|
392
392
|
value: t
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let r =
|
|
395
|
+
function we(e, t, n) {
|
|
396
|
+
let r = y(t, n);
|
|
397
397
|
return {
|
|
398
398
|
field: e,
|
|
399
|
-
operator:
|
|
399
|
+
operator: g.TODAY,
|
|
400
400
|
options: r
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
let i =
|
|
403
|
+
function Te(e, t, n, r) {
|
|
404
|
+
let i = y(n, r);
|
|
405
405
|
return {
|
|
406
406
|
field: e,
|
|
407
|
-
operator:
|
|
407
|
+
operator: g.BEFORE_TODAY,
|
|
408
408
|
value: t,
|
|
409
409
|
options: i
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
let r =
|
|
412
|
+
function Ee(e, t, n) {
|
|
413
|
+
let r = y(t, n);
|
|
414
414
|
return {
|
|
415
415
|
field: e,
|
|
416
|
-
operator:
|
|
416
|
+
operator: g.TOMORROW,
|
|
417
417
|
options: r
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
let r =
|
|
420
|
+
function De(e, t, n) {
|
|
421
|
+
let r = y(t, n);
|
|
422
422
|
return {
|
|
423
423
|
field: e,
|
|
424
|
-
operator:
|
|
424
|
+
operator: g.THIS_WEEK,
|
|
425
425
|
options: r
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
let r =
|
|
428
|
+
function Oe(e, t, n) {
|
|
429
|
+
let r = y(t, n);
|
|
430
430
|
return {
|
|
431
431
|
field: e,
|
|
432
|
-
operator:
|
|
432
|
+
operator: g.NEXT_WEEK,
|
|
433
433
|
options: r
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
let r =
|
|
436
|
+
function ke(e, t, n) {
|
|
437
|
+
let r = y(t, n);
|
|
438
438
|
return {
|
|
439
439
|
field: e,
|
|
440
|
-
operator:
|
|
440
|
+
operator: g.LAST_WEEK,
|
|
441
441
|
options: r
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
let r =
|
|
444
|
+
function Ae(e, t, n) {
|
|
445
|
+
let r = y(t, n);
|
|
446
446
|
return {
|
|
447
447
|
field: e,
|
|
448
|
-
operator:
|
|
448
|
+
operator: g.THIS_MONTH,
|
|
449
449
|
options: r
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
let r =
|
|
452
|
+
function je(e, t, n) {
|
|
453
|
+
let r = y(t, n);
|
|
454
454
|
return {
|
|
455
455
|
field: e,
|
|
456
|
-
operator:
|
|
456
|
+
operator: g.LAST_MONTH,
|
|
457
457
|
options: r
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
let i =
|
|
460
|
+
function Me(e, t, n, r) {
|
|
461
|
+
let i = y(n, r);
|
|
462
462
|
return {
|
|
463
463
|
field: e,
|
|
464
|
-
operator:
|
|
464
|
+
operator: g.RECENT_DAYS,
|
|
465
465
|
value: t,
|
|
466
466
|
options: i
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
let i =
|
|
469
|
+
function Ne(e, t, n, r) {
|
|
470
|
+
let i = y(n, r);
|
|
471
471
|
return {
|
|
472
472
|
field: e,
|
|
473
|
-
operator:
|
|
473
|
+
operator: g.EARLIER_DAYS,
|
|
474
474
|
value: t,
|
|
475
475
|
options: i
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Pe(e) {
|
|
479
479
|
return {
|
|
480
|
-
operator:
|
|
480
|
+
operator: g.RAW,
|
|
481
481
|
value: e
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
//#endregion
|
|
485
485
|
//#region src/query/pagination.ts
|
|
486
|
-
var
|
|
486
|
+
var F = {
|
|
487
487
|
index: 1,
|
|
488
488
|
size: 10
|
|
489
489
|
};
|
|
490
|
-
function
|
|
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
|
|
499
|
-
function
|
|
500
|
-
return
|
|
498
|
+
var I = {};
|
|
499
|
+
function L() {
|
|
500
|
+
return I;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
533
|
+
var B = {
|
|
534
534
|
total: 0,
|
|
535
535
|
list: []
|
|
536
536
|
};
|
|
537
|
-
function
|
|
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
|
|
545
|
+
var V = /* @__PURE__ */ function(e) {
|
|
546
546
|
return e.ASC = "ASC", e.DESC = "DESC", e;
|
|
547
547
|
}({});
|
|
548
|
-
function
|
|
548
|
+
function ze(e) {
|
|
549
549
|
return {
|
|
550
550
|
field: e,
|
|
551
|
-
direction:
|
|
551
|
+
direction: "ASC"
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Be(e) {
|
|
555
555
|
return {
|
|
556
556
|
field: e,
|
|
557
|
-
direction:
|
|
557
|
+
direction: "DESC"
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
560
|
//#endregion
|
|
561
561
|
//#region src/query/event/domainEventStream.ts
|
|
562
|
-
var
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
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
|
|
649
|
-
typeof
|
|
648
|
+
typeof Record > "u" ? Object : Record,
|
|
649
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
650
650
|
]),
|
|
651
|
-
f("design:returntype", typeof
|
|
652
|
-
],
|
|
653
|
-
u(
|
|
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
|
|
660
|
-
typeof
|
|
659
|
+
typeof Record > "u" ? Object : Record,
|
|
660
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
661
661
|
]),
|
|
662
|
-
f("design:returntype", typeof
|
|
663
|
-
],
|
|
664
|
-
u(
|
|
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
|
|
674
|
-
typeof
|
|
673
|
+
typeof Record > "u" ? Object : Record,
|
|
674
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
675
675
|
]),
|
|
676
|
-
f("design:returntype", typeof
|
|
677
|
-
],
|
|
678
|
-
u(
|
|
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
|
|
685
|
-
typeof
|
|
684
|
+
typeof Record > "u" ? Object : Record,
|
|
685
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
686
686
|
]),
|
|
687
|
-
f("design:returntype", typeof
|
|
688
|
-
],
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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 =
|
|
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 =
|
|
797
|
-
condition:
|
|
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 =
|
|
804
|
-
condition:
|
|
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(
|
|
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
|
|
818
|
-
typeof
|
|
817
|
+
typeof Record > "u" ? Object : Record,
|
|
818
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
819
819
|
]),
|
|
820
|
-
f("design:returntype", typeof
|
|
821
|
-
],
|
|
822
|
-
u(
|
|
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
|
|
829
|
-
typeof
|
|
828
|
+
typeof Record > "u" ? Object : Record,
|
|
829
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
830
830
|
]),
|
|
831
|
-
f("design:returntype", typeof
|
|
832
|
-
],
|
|
833
|
-
u(
|
|
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
|
|
843
|
-
typeof
|
|
842
|
+
typeof Record > "u" ? Object : Record,
|
|
843
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
844
844
|
]),
|
|
845
|
-
f("design:returntype", typeof
|
|
846
|
-
],
|
|
847
|
-
u(
|
|
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
|
|
854
|
-
typeof
|
|
853
|
+
typeof Record > "u" ? Object : Record,
|
|
854
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
855
855
|
]),
|
|
856
|
-
f("design:returntype", typeof
|
|
857
|
-
],
|
|
858
|
-
u(
|
|
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
|
|
868
|
-
typeof
|
|
867
|
+
typeof Record > "u" ? Object : Record,
|
|
868
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
869
869
|
]),
|
|
870
|
-
f("design:returntype", typeof
|
|
871
|
-
],
|
|
872
|
-
u(
|
|
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
|
|
879
|
-
typeof
|
|
878
|
+
typeof Record > "u" ? Object : Record,
|
|
879
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
880
880
|
]),
|
|
881
|
-
f("design:returntype", typeof
|
|
882
|
-
],
|
|
883
|
-
u(
|
|
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
|
|
890
|
-
typeof
|
|
889
|
+
typeof Record > "u" ? Object : Record,
|
|
890
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
891
891
|
]),
|
|
892
|
-
f("design:returntype", typeof
|
|
893
|
-
],
|
|
894
|
-
u(
|
|
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
|
|
901
|
-
typeof
|
|
900
|
+
typeof Record > "u" ? Object : Record,
|
|
901
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
902
902
|
]),
|
|
903
|
-
f("design:returntype", typeof
|
|
904
|
-
],
|
|
905
|
-
u(
|
|
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
|
|
912
|
-
typeof
|
|
911
|
+
typeof Record > "u" ? Object : Record,
|
|
912
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
913
913
|
]),
|
|
914
|
-
f("design:returntype", typeof
|
|
915
|
-
],
|
|
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
|
|
921
|
-
typeof
|
|
920
|
+
typeof Record > "u" ? Object : Record,
|
|
921
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
922
922
|
]),
|
|
923
|
-
f("design:returntype", typeof
|
|
924
|
-
],
|
|
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
|
|
930
|
-
typeof
|
|
929
|
+
typeof Record > "u" ? Object : Record,
|
|
930
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
931
931
|
]),
|
|
932
|
-
f("design:returntype", typeof
|
|
933
|
-
],
|
|
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
|
|
939
|
-
typeof
|
|
938
|
+
typeof Record > "u" ? Object : Record,
|
|
939
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
940
940
|
]),
|
|
941
|
-
f("design:returntype", typeof
|
|
942
|
-
],
|
|
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
|
|
948
|
-
typeof
|
|
947
|
+
typeof Record > "u" ? Object : Record,
|
|
948
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
949
949
|
]),
|
|
950
|
-
f("design:returntype", typeof
|
|
951
|
-
],
|
|
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
|
|
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
|
-
},
|
|
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(
|
|
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
|
|
986
|
-
typeof
|
|
985
|
+
typeof Record > "u" ? Object : Record,
|
|
986
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
987
987
|
]),
|
|
988
|
-
f("design:returntype", typeof
|
|
989
|
-
],
|
|
990
|
-
c(
|
|
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
|
|
999
|
-
typeof
|
|
998
|
+
typeof Record > "u" ? Object : Record,
|
|
999
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
1000
1000
|
]),
|
|
1001
|
-
f("design:returntype", typeof
|
|
1002
|
-
],
|
|
1003
|
-
c(
|
|
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
|
|
1012
|
-
typeof
|
|
1011
|
+
typeof Record > "u" ? Object : Record,
|
|
1012
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
1013
1013
|
]),
|
|
1014
|
-
f("design:returntype", typeof
|
|
1015
|
-
],
|
|
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
|
|
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
|
-
},
|
|
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(
|
|
1043
|
+
c(J.LOAD),
|
|
1044
1044
|
p(0, i()),
|
|
1045
1045
|
f("design:type", Function),
|
|
1046
|
-
f("design:paramtypes", [typeof
|
|
1047
|
-
f("design:returntype", typeof
|
|
1048
|
-
],
|
|
1049
|
-
c(
|
|
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
|
|
1056
|
-
typeof
|
|
1055
|
+
typeof Record > "u" ? Object : Record,
|
|
1056
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
1057
1057
|
]),
|
|
1058
|
-
f("design:returntype", typeof
|
|
1059
|
-
],
|
|
1060
|
-
c(
|
|
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
|
|
1067
|
-
typeof
|
|
1066
|
+
typeof Record > "u" ? Object : Record,
|
|
1067
|
+
typeof AbortController > "u" ? Object : AbortController
|
|
1068
1068
|
]),
|
|
1069
|
-
f("design:returntype", typeof
|
|
1070
|
-
],
|
|
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
|
|
1074
|
-
function
|
|
1075
|
-
return n ===
|
|
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
|
|
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
|
|
1084
|
-
let t = e.query, n =
|
|
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
|
|
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
|
|
1100
|
+
var Ge = class {
|
|
1101
1101
|
constructor(e) {
|
|
1102
1102
|
this.defaultOptions = e;
|
|
1103
1103
|
}
|
|
1104
1104
|
createSnapshotQueryClient(e) {
|
|
1105
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1126
|
+
let t = Q({
|
|
1124
1127
|
...this.defaultOptions,
|
|
1125
1128
|
...e
|
|
1126
|
-
})
|
|
1129
|
+
});
|
|
1130
|
+
return new U(t);
|
|
1127
1131
|
}
|
|
1128
|
-
},
|
|
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
|
-
}({}),
|
|
1134
|
+
}({}), Ye = /* @__PURE__ */ function(e) {
|
|
1131
1135
|
return e.RECOVERABLE = "RECOVERABLE", e.UNKNOWN = "UNKNOWN", e.UNRECOVERABLE = "UNRECOVERABLE", e;
|
|
1132
|
-
}({}),
|
|
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
|
-
},
|
|
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
|
-
}({}),
|
|
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
|
|
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 {
|
|
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
|