@ahoo-wang/fetcher-wow 3.13.14 → 3.15.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/command/commandClient.d.ts.map +1 -1
- package/dist/command/commandRequest.d.ts.map +1 -1
- package/dist/command/types.d.ts.map +1 -1
- package/dist/configuration/wowMetadata.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1170 -926
- package/dist/index.es.js.map +1 -1
- package/dist/query/condition.d.ts +8 -0
- package/dist/query/condition.d.ts.map +1 -1
- package/dist/query/cursorQuery.d.ts.map +1 -1
- package/dist/query/event/eventStreamQueryClient.d.ts.map +1 -1
- package/dist/query/locale/en_US.cjs.js +2 -2
- package/dist/query/locale/en_US.cjs.js.map +1 -1
- package/dist/query/locale/en_US.d.ts.map +1 -1
- package/dist/query/locale/en_US.es.js +49 -47
- package/dist/query/locale/en_US.es.js.map +1 -1
- package/dist/query/locale/operatorLocale.d.ts.map +1 -1
- package/dist/query/locale/zh_CN.cjs.js +2 -2
- package/dist/query/locale/zh_CN.cjs.js.map +1 -1
- package/dist/query/locale/zh_CN.d.ts.map +1 -1
- package/dist/query/locale/zh_CN.es.js +49 -47
- package/dist/query/locale/zh_CN.es.js.map +1 -1
- package/dist/query/operator.d.ts +10 -0
- package/dist/query/operator.d.ts.map +1 -1
- package/dist/query/queryApi.d.ts.map +1 -1
- package/dist/query/queryClients.d.ts.map +1 -1
- package/dist/query/snapshot/snapshotQueryClient.d.ts.map +1 -1
- package/dist/query/state/loadOwnerStateAggregateClient.d.ts.map +1 -1
- package/dist/query/state/loadStateAggregateClient.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,981 +1,1225 @@
|
|
|
1
|
-
import { ContentTypeValues as
|
|
2
|
-
import { JsonEventStreamResultExtractor as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
], b);
|
|
36
|
-
const T = class T {
|
|
1
|
+
import { ContentTypeValues as e, combineURLs as t } from "@ahoo-wang/fetcher";
|
|
2
|
+
import { JsonEventStreamResultExtractor as n } from "@ahoo-wang/fetcher-eventstream";
|
|
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.123.0/helpers/decorateMetadata.js
|
|
5
|
+
function f(e, t) {
|
|
6
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region \0@oxc-project+runtime@0.123.0/helpers/decorateParam.js
|
|
10
|
+
function p(e, t) {
|
|
11
|
+
return function(n, r) {
|
|
12
|
+
t(n, r, e);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region \0@oxc-project+runtime@0.123.0/helpers/decorate.js
|
|
17
|
+
function m(e, t, n, r) {
|
|
18
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
19
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
20
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
21
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/command/commandClient.ts
|
|
25
|
+
var h, g, ee, te, _ = class {
|
|
26
|
+
constructor(e) {
|
|
27
|
+
this.apiMetadata = e;
|
|
28
|
+
}
|
|
29
|
+
send(e, t) {
|
|
30
|
+
throw a(e, t);
|
|
31
|
+
}
|
|
32
|
+
sendAndWaitStream(e, t) {
|
|
33
|
+
throw a(e, t);
|
|
34
|
+
}
|
|
37
35
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
m([
|
|
37
|
+
s(),
|
|
38
|
+
p(0, d()),
|
|
39
|
+
p(1, i()),
|
|
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([
|
|
44
|
+
s(void 0, void 0, {
|
|
45
|
+
headers: { Accept: e.TEXT_EVENT_STREAM },
|
|
46
|
+
resultExtractor: n
|
|
47
|
+
}),
|
|
48
|
+
p(0, d()),
|
|
49
|
+
p(1, i()),
|
|
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])], _);
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/command/commandHeaders.ts
|
|
56
|
+
var ne = class e {
|
|
57
|
+
static {
|
|
58
|
+
this.COMMAND_HEADERS_PREFIX = "Command-";
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.TENANT_ID = `${e.COMMAND_HEADERS_PREFIX}Tenant-Id`;
|
|
62
|
+
}
|
|
63
|
+
static {
|
|
64
|
+
this.OWNER_ID = `${e.COMMAND_HEADERS_PREFIX}Owner-Id`;
|
|
65
|
+
}
|
|
66
|
+
static {
|
|
67
|
+
this.SPACE_ID = `${e.COMMAND_HEADERS_PREFIX}Space-Id`;
|
|
68
|
+
}
|
|
69
|
+
static {
|
|
70
|
+
this.AGGREGATE_ID = `${e.COMMAND_HEADERS_PREFIX}Aggregate-Id`;
|
|
71
|
+
}
|
|
72
|
+
static {
|
|
73
|
+
this.AGGREGATE_VERSION = `${e.COMMAND_HEADERS_PREFIX}Aggregate-Version`;
|
|
74
|
+
}
|
|
75
|
+
static {
|
|
76
|
+
this.WAIT_PREFIX = `${e.COMMAND_HEADERS_PREFIX}Wait-`;
|
|
77
|
+
}
|
|
78
|
+
static {
|
|
79
|
+
this.WAIT_TIME_OUT = `${e.WAIT_PREFIX}Timeout`;
|
|
80
|
+
}
|
|
81
|
+
static {
|
|
82
|
+
this.WAIT_STAGE = `${e.WAIT_PREFIX}Stage`;
|
|
83
|
+
}
|
|
84
|
+
static {
|
|
85
|
+
this.WAIT_CONTEXT = `${e.WAIT_PREFIX}Context`;
|
|
86
|
+
}
|
|
87
|
+
static {
|
|
88
|
+
this.WAIT_PROCESSOR = `${e.WAIT_PREFIX}Processor`;
|
|
89
|
+
}
|
|
90
|
+
static {
|
|
91
|
+
this.WAIT_FUNCTION = `${e.WAIT_PREFIX}Function`;
|
|
92
|
+
}
|
|
93
|
+
static {
|
|
94
|
+
this.WAIT_TAIL_PREFIX = `${e.WAIT_PREFIX}Tail-`;
|
|
95
|
+
}
|
|
96
|
+
static {
|
|
97
|
+
this.WAIT_TAIL_STAGE = `${e.WAIT_TAIL_PREFIX}Stage`;
|
|
98
|
+
}
|
|
99
|
+
static {
|
|
100
|
+
this.WAIT_TAIL_CONTEXT = `${e.WAIT_TAIL_PREFIX}Context`;
|
|
101
|
+
}
|
|
102
|
+
static {
|
|
103
|
+
this.WAIT_TAIL_PROCESSOR = `${e.WAIT_TAIL_PREFIX}Processor`;
|
|
104
|
+
}
|
|
105
|
+
static {
|
|
106
|
+
this.WAIT_TAIL_FUNCTION = `${e.WAIT_TAIL_PREFIX}Function`;
|
|
107
|
+
}
|
|
108
|
+
static {
|
|
109
|
+
this.REQUEST_ID = `${e.COMMAND_HEADERS_PREFIX}Request-Id`;
|
|
110
|
+
}
|
|
111
|
+
static {
|
|
112
|
+
this.LOCAL_FIRST = `${e.COMMAND_HEADERS_PREFIX}Local-First`;
|
|
113
|
+
}
|
|
114
|
+
static {
|
|
115
|
+
this.COMMAND_AGGREGATE_CONTEXT = `${e.COMMAND_HEADERS_PREFIX}Aggregate-Context`;
|
|
116
|
+
}
|
|
117
|
+
static {
|
|
118
|
+
this.COMMAND_AGGREGATE_NAME = `${e.COMMAND_HEADERS_PREFIX}Aggregate-Name`;
|
|
119
|
+
}
|
|
120
|
+
static {
|
|
121
|
+
this.COMMAND_TYPE = `${e.COMMAND_HEADERS_PREFIX}Type`;
|
|
122
|
+
}
|
|
123
|
+
static {
|
|
124
|
+
this.COMMAND_HEADER_X_PREFIX = `${e.COMMAND_HEADERS_PREFIX}Header-`;
|
|
125
|
+
}
|
|
126
|
+
}, re = /* @__PURE__ */ function(e) {
|
|
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) {
|
|
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
|
|
60
147
|
]);
|
|
61
|
-
|
|
62
|
-
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/query/condition.ts
|
|
150
|
+
function y(e) {
|
|
151
|
+
return !!e;
|
|
63
152
|
}
|
|
64
|
-
|
|
153
|
+
var oe = class {
|
|
154
|
+
static {
|
|
155
|
+
this.IGNORE_CASE_OPTION_KEY = "ignoreCase";
|
|
156
|
+
}
|
|
157
|
+
static {
|
|
158
|
+
this.ZONE_ID_OPTION_KEY = "zoneId";
|
|
159
|
+
}
|
|
160
|
+
static {
|
|
161
|
+
this.DATE_PATTERN_OPTION_KEY = "datePattern";
|
|
162
|
+
}
|
|
65
163
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
function d(t) {
|
|
69
|
-
if (!(typeof t > "u"))
|
|
70
|
-
return { ignoreCase: t };
|
|
164
|
+
function b(e) {
|
|
165
|
+
if (e !== void 0) return { ignoreCase: e };
|
|
71
166
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return typeof t < "u" && (i.datePattern = t), typeof E < "u" && (i.zoneId = E), i;
|
|
167
|
+
function x(e, t) {
|
|
168
|
+
if (e === void 0 && t === void 0) return;
|
|
169
|
+
let n = {};
|
|
170
|
+
return e !== void 0 && (n.datePattern = e), t !== void 0 && (n.zoneId = t), n;
|
|
77
171
|
}
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
172
|
+
var se = /* @__PURE__ */ function(e) {
|
|
173
|
+
return e.ACTIVE = "ACTIVE", e.DELETED = "DELETED", e.ALL = "ALL", e;
|
|
174
|
+
}({});
|
|
175
|
+
function ce(...e) {
|
|
176
|
+
if (e.length === 0) return T();
|
|
177
|
+
if (e.length === 1) return y(e[0]) ? e[0] : T();
|
|
178
|
+
let t = [];
|
|
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,
|
|
183
|
+
children: t
|
|
184
|
+
};
|
|
88
185
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
186
|
+
function le(...e) {
|
|
187
|
+
let t = e?.filter((e) => y(e));
|
|
188
|
+
return t.length === 0 ? T() : {
|
|
189
|
+
operator: v.OR,
|
|
190
|
+
children: t
|
|
191
|
+
};
|
|
94
192
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
193
|
+
function ue(...e) {
|
|
194
|
+
return e.length === 0 ? T() : {
|
|
195
|
+
operator: v.NOR,
|
|
196
|
+
children: e
|
|
197
|
+
};
|
|
97
198
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
199
|
+
function de(e) {
|
|
200
|
+
return {
|
|
201
|
+
operator: v.ID,
|
|
202
|
+
value: e
|
|
203
|
+
};
|
|
100
204
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
205
|
+
function fe(e) {
|
|
206
|
+
return {
|
|
207
|
+
operator: v.IDS,
|
|
208
|
+
value: e
|
|
209
|
+
};
|
|
103
210
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
211
|
+
function S(e) {
|
|
212
|
+
return {
|
|
213
|
+
operator: v.AGGREGATE_ID,
|
|
214
|
+
value: e
|
|
215
|
+
};
|
|
106
216
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
217
|
+
function C(e) {
|
|
218
|
+
return {
|
|
219
|
+
operator: v.AGGREGATE_IDS,
|
|
220
|
+
value: e
|
|
221
|
+
};
|
|
109
222
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
223
|
+
function pe(e) {
|
|
224
|
+
return {
|
|
225
|
+
operator: v.TENANT_ID,
|
|
226
|
+
value: e
|
|
227
|
+
};
|
|
112
228
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
229
|
+
function me(e) {
|
|
230
|
+
return {
|
|
231
|
+
operator: v.OWNER_ID,
|
|
232
|
+
value: e
|
|
233
|
+
};
|
|
115
234
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
235
|
+
function he(e) {
|
|
236
|
+
return {
|
|
237
|
+
operator: v.SPACE_ID,
|
|
238
|
+
value: e
|
|
239
|
+
};
|
|
118
240
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
241
|
+
function w(e) {
|
|
242
|
+
return {
|
|
243
|
+
operator: v.DELETED,
|
|
244
|
+
value: e
|
|
245
|
+
};
|
|
121
246
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
"ACTIVE"
|
|
125
|
-
/* ACTIVE */
|
|
126
|
-
);
|
|
247
|
+
function ge() {
|
|
248
|
+
return w(se.ACTIVE);
|
|
127
249
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
operator: s.ALL
|
|
131
|
-
};
|
|
250
|
+
function T() {
|
|
251
|
+
return { operator: v.ALL };
|
|
132
252
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
253
|
+
function _e(e, t) {
|
|
254
|
+
return {
|
|
255
|
+
field: e,
|
|
256
|
+
operator: v.EQ,
|
|
257
|
+
value: t
|
|
258
|
+
};
|
|
135
259
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
260
|
+
function ve(e, t) {
|
|
261
|
+
return {
|
|
262
|
+
field: e,
|
|
263
|
+
operator: v.NE,
|
|
264
|
+
value: t
|
|
265
|
+
};
|
|
138
266
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
267
|
+
function E(e, t) {
|
|
268
|
+
return {
|
|
269
|
+
field: e,
|
|
270
|
+
operator: v.GT,
|
|
271
|
+
value: t
|
|
272
|
+
};
|
|
141
273
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
274
|
+
function D(e, t) {
|
|
275
|
+
return {
|
|
276
|
+
field: e,
|
|
277
|
+
operator: v.LT,
|
|
278
|
+
value: t
|
|
279
|
+
};
|
|
144
280
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
281
|
+
function ye(e, t) {
|
|
282
|
+
return {
|
|
283
|
+
field: e,
|
|
284
|
+
operator: v.GTE,
|
|
285
|
+
value: t
|
|
286
|
+
};
|
|
147
287
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
288
|
+
function be(e, t) {
|
|
289
|
+
return {
|
|
290
|
+
field: e,
|
|
291
|
+
operator: v.LTE,
|
|
292
|
+
value: t
|
|
293
|
+
};
|
|
150
294
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
295
|
+
function xe(e, t, n) {
|
|
296
|
+
let r = b(n);
|
|
297
|
+
return {
|
|
298
|
+
field: e,
|
|
299
|
+
operator: v.CONTAINS,
|
|
300
|
+
value: t,
|
|
301
|
+
options: r
|
|
302
|
+
};
|
|
154
303
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
304
|
+
function Se(e, ...t) {
|
|
305
|
+
return {
|
|
306
|
+
field: e,
|
|
307
|
+
operator: v.IN,
|
|
308
|
+
value: t
|
|
309
|
+
};
|
|
157
310
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
311
|
+
function Ce(e, ...t) {
|
|
312
|
+
return {
|
|
313
|
+
field: e,
|
|
314
|
+
operator: v.NOT_IN,
|
|
315
|
+
value: t
|
|
316
|
+
};
|
|
160
317
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
318
|
+
function we(e, t, n) {
|
|
319
|
+
return {
|
|
320
|
+
field: e,
|
|
321
|
+
operator: v.BETWEEN,
|
|
322
|
+
value: [t, n]
|
|
323
|
+
};
|
|
163
324
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
325
|
+
function Te(e, ...t) {
|
|
326
|
+
return {
|
|
327
|
+
field: e,
|
|
328
|
+
operator: v.ALL_IN,
|
|
329
|
+
value: t
|
|
330
|
+
};
|
|
166
331
|
}
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
|
|
332
|
+
function Ee(e, t, n) {
|
|
333
|
+
let r = b(n);
|
|
334
|
+
return {
|
|
335
|
+
field: e,
|
|
336
|
+
operator: v.STARTS_WITH,
|
|
337
|
+
value: t,
|
|
338
|
+
options: r
|
|
339
|
+
};
|
|
170
340
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
|
|
341
|
+
function De(e, t) {
|
|
342
|
+
return {
|
|
343
|
+
field: e,
|
|
344
|
+
operator: v.MATCH,
|
|
345
|
+
value: t
|
|
346
|
+
};
|
|
174
347
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
348
|
+
function Oe(e, t, n) {
|
|
349
|
+
let r = b(n);
|
|
350
|
+
return {
|
|
351
|
+
field: e,
|
|
352
|
+
operator: v.ENDS_WITH,
|
|
353
|
+
value: t,
|
|
354
|
+
options: r
|
|
355
|
+
};
|
|
177
356
|
}
|
|
178
|
-
function
|
|
179
|
-
|
|
357
|
+
function ke(e, t) {
|
|
358
|
+
return {
|
|
359
|
+
field: e,
|
|
360
|
+
operator: v.ELEM_MATCH,
|
|
361
|
+
children: [t]
|
|
362
|
+
};
|
|
180
363
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
364
|
+
function Ae(e) {
|
|
365
|
+
return {
|
|
366
|
+
field: e,
|
|
367
|
+
operator: v.NULL
|
|
368
|
+
};
|
|
183
369
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
370
|
+
function je(e) {
|
|
371
|
+
return {
|
|
372
|
+
field: e,
|
|
373
|
+
operator: v.NOT_NULL
|
|
374
|
+
};
|
|
186
375
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
376
|
+
function Me(e) {
|
|
377
|
+
return {
|
|
378
|
+
field: e,
|
|
379
|
+
operator: v.TRUE
|
|
380
|
+
};
|
|
189
381
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
382
|
+
function Ne(e) {
|
|
383
|
+
return {
|
|
384
|
+
field: e,
|
|
385
|
+
operator: v.FALSE
|
|
386
|
+
};
|
|
192
387
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
195
|
-
|
|
388
|
+
function Pe(e, t = !0) {
|
|
389
|
+
return {
|
|
390
|
+
field: e,
|
|
391
|
+
operator: v.EXISTS,
|
|
392
|
+
value: t
|
|
393
|
+
};
|
|
196
394
|
}
|
|
197
|
-
function
|
|
198
|
-
|
|
199
|
-
|
|
395
|
+
function Fe(e, t, n) {
|
|
396
|
+
let r = x(t, n);
|
|
397
|
+
return {
|
|
398
|
+
field: e,
|
|
399
|
+
operator: v.TODAY,
|
|
400
|
+
options: r
|
|
401
|
+
};
|
|
200
402
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
|
|
403
|
+
function Ie(e, t, n, r) {
|
|
404
|
+
let i = x(n, r);
|
|
405
|
+
return {
|
|
406
|
+
field: e,
|
|
407
|
+
operator: v.BEFORE_TODAY,
|
|
408
|
+
value: t,
|
|
409
|
+
options: i
|
|
410
|
+
};
|
|
204
411
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
207
|
-
|
|
412
|
+
function Le(e, t, n) {
|
|
413
|
+
let r = x(t, n);
|
|
414
|
+
return {
|
|
415
|
+
field: e,
|
|
416
|
+
operator: v.TOMORROW,
|
|
417
|
+
options: r
|
|
418
|
+
};
|
|
208
419
|
}
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
|
|
420
|
+
function Re(e, t, n) {
|
|
421
|
+
let r = x(t, n);
|
|
422
|
+
return {
|
|
423
|
+
field: e,
|
|
424
|
+
operator: v.THIS_WEEK,
|
|
425
|
+
options: r
|
|
426
|
+
};
|
|
212
427
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
215
|
-
|
|
428
|
+
function ze(e, t, n) {
|
|
429
|
+
let r = x(t, n);
|
|
430
|
+
return {
|
|
431
|
+
field: e,
|
|
432
|
+
operator: v.NEXT_WEEK,
|
|
433
|
+
options: r
|
|
434
|
+
};
|
|
216
435
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
219
|
-
|
|
436
|
+
function Be(e, t, n) {
|
|
437
|
+
let r = x(t, n);
|
|
438
|
+
return {
|
|
439
|
+
field: e,
|
|
440
|
+
operator: v.LAST_WEEK,
|
|
441
|
+
options: r
|
|
442
|
+
};
|
|
220
443
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
223
|
-
|
|
444
|
+
function Ve(e, t, n) {
|
|
445
|
+
let r = x(t, n);
|
|
446
|
+
return {
|
|
447
|
+
field: e,
|
|
448
|
+
operator: v.THIS_MONTH,
|
|
449
|
+
options: r
|
|
450
|
+
};
|
|
224
451
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
227
|
-
|
|
452
|
+
function He(e, t, n) {
|
|
453
|
+
let r = x(t, n);
|
|
454
|
+
return {
|
|
455
|
+
field: e,
|
|
456
|
+
operator: v.LAST_MONTH,
|
|
457
|
+
options: r
|
|
458
|
+
};
|
|
228
459
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
231
|
-
|
|
460
|
+
function Ue(e, t, n, r) {
|
|
461
|
+
let i = x(n, r);
|
|
462
|
+
return {
|
|
463
|
+
field: e,
|
|
464
|
+
operator: v.RECENT_DAYS,
|
|
465
|
+
value: t,
|
|
466
|
+
options: i
|
|
467
|
+
};
|
|
232
468
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
469
|
+
function We(e, t, n, r) {
|
|
470
|
+
let i = x(n, r);
|
|
471
|
+
return {
|
|
472
|
+
field: e,
|
|
473
|
+
operator: v.EARLIER_DAYS,
|
|
474
|
+
value: t,
|
|
475
|
+
options: i
|
|
476
|
+
};
|
|
235
477
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
const _t = {};
|
|
250
|
-
function Lt() {
|
|
251
|
-
return _t;
|
|
252
|
-
}
|
|
253
|
-
function pE({ include: t, exclude: E } = Lt()) {
|
|
254
|
-
return {
|
|
255
|
-
include: t,
|
|
256
|
-
exclude: E
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function rt({
|
|
260
|
-
condition: t = P(),
|
|
261
|
-
projection: E,
|
|
262
|
-
sort: i
|
|
263
|
-
} = {}) {
|
|
264
|
-
return {
|
|
265
|
-
condition: t,
|
|
266
|
-
projection: E,
|
|
267
|
-
sort: i
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
function et({
|
|
271
|
-
condition: t = P(),
|
|
272
|
-
projection: E,
|
|
273
|
-
sort: i,
|
|
274
|
-
limit: r = v.size
|
|
275
|
-
} = {}) {
|
|
276
|
-
return {
|
|
277
|
-
condition: t,
|
|
278
|
-
projection: E,
|
|
279
|
-
sort: i,
|
|
280
|
-
limit: r
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
function CE({
|
|
284
|
-
condition: t = P(),
|
|
285
|
-
projection: E,
|
|
286
|
-
sort: i,
|
|
287
|
-
pagination: r = v
|
|
288
|
-
} = {}) {
|
|
289
|
-
return {
|
|
290
|
-
condition: t,
|
|
291
|
-
projection: E,
|
|
292
|
-
sort: i,
|
|
293
|
-
pagination: r
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
const lt = {
|
|
297
|
-
total: 0,
|
|
298
|
-
list: []
|
|
299
|
-
};
|
|
300
|
-
function GE({
|
|
301
|
-
total: t,
|
|
302
|
-
list: E = []
|
|
303
|
-
} = lt) {
|
|
304
|
-
return t === void 0 && (t = E.length), {
|
|
305
|
-
total: t,
|
|
306
|
-
list: E
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
var q = /* @__PURE__ */ ((t) => (t.ASC = "ASC", t.DESC = "DESC", t))(q || {});
|
|
310
|
-
function ME(t) {
|
|
311
|
-
return {
|
|
312
|
-
field: t,
|
|
313
|
-
direction: "ASC"
|
|
314
|
-
/* ASC */
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
function PE(t) {
|
|
318
|
-
return {
|
|
319
|
-
field: t,
|
|
320
|
-
direction: "DESC"
|
|
321
|
-
/* DESC */
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
const n = class n {
|
|
325
|
-
};
|
|
326
|
-
n.HEADER = "header", n.COMMAND_OPERATOR = `${n.HEADER}.command_operator`, n.AGGREGATE_ID = "aggregateId", n.TENANT_ID = "tenantId", n.OWNER_ID = "ownerId", n.SPACE_ID = "spaceId", n.COMMAND_ID = "commandId", n.REQUEST_ID = "requestId", n.VERSION = "version", n.BODY = "body", n.BODY_ID = `${n.BODY}.id`, n.BODY_NAME = `${n.BODY}.name`, n.BODY_TYPE = `${n.BODY}.bodyType`, n.BODY_REVISION = `${n.BODY}.revision`, n.BODY_BODY = `${n.BODY}.body`, n.CREATE_TIME = "createTime";
|
|
327
|
-
let Tt = n;
|
|
328
|
-
const a = class a {
|
|
329
|
-
};
|
|
330
|
-
a.EVENT_STREAM_RESOURCE_NAME = "event", a.COUNT = `${a.EVENT_STREAM_RESOURCE_NAME}/count`, a.LIST = `${a.EVENT_STREAM_RESOURCE_NAME}/list`, a.PAGED = `${a.EVENT_STREAM_RESOURCE_NAME}/paged`;
|
|
331
|
-
let W = a;
|
|
332
|
-
var ft = Object.defineProperty, at = Object.getOwnPropertyDescriptor, H = (t, E, i, r) => {
|
|
333
|
-
for (var e = r > 1 ? void 0 : r ? at(E, i) : E, I = t.length - 1, c; I >= 0; I--)
|
|
334
|
-
(c = t[I]) && (e = (r ? c(E, i, e) : c(e)) || e);
|
|
335
|
-
return r && e && ft(E, i, e), e;
|
|
336
|
-
}, p = (t, E) => (i, r) => E(i, r, t);
|
|
337
|
-
let g = class {
|
|
338
|
-
/**
|
|
339
|
-
* Creates a new EventStreamQueryClient instance.
|
|
340
|
-
*/
|
|
341
|
-
constructor(t) {
|
|
342
|
-
this.apiMetadata = t;
|
|
343
|
-
}
|
|
344
|
-
count(t, E, i) {
|
|
345
|
-
throw u(t, E, i);
|
|
346
|
-
}
|
|
347
|
-
list(t, E, i) {
|
|
348
|
-
throw u(t, E, i);
|
|
349
|
-
}
|
|
350
|
-
listStream(t, E, i) {
|
|
351
|
-
throw u(t, E, i);
|
|
352
|
-
}
|
|
353
|
-
paged(t, E, i) {
|
|
354
|
-
throw u(t, E, i);
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
H([
|
|
358
|
-
_(W.COUNT),
|
|
359
|
-
p(0, L()),
|
|
360
|
-
p(1, A())
|
|
361
|
-
], g.prototype, "count", 1);
|
|
362
|
-
H([
|
|
363
|
-
_(W.LIST),
|
|
364
|
-
p(0, L()),
|
|
365
|
-
p(1, A())
|
|
366
|
-
], g.prototype, "list", 1);
|
|
367
|
-
H([
|
|
368
|
-
_(W.LIST, {
|
|
369
|
-
headers: { Accept: j.TEXT_EVENT_STREAM },
|
|
370
|
-
resultExtractor: K
|
|
371
|
-
}),
|
|
372
|
-
p(0, L()),
|
|
373
|
-
p(1, A())
|
|
374
|
-
], g.prototype, "listStream", 1);
|
|
375
|
-
H([
|
|
376
|
-
_(W.PAGED),
|
|
377
|
-
p(0, L()),
|
|
378
|
-
p(1, A())
|
|
379
|
-
], g.prototype, "paged", 1);
|
|
380
|
-
g = H([
|
|
381
|
-
Y()
|
|
382
|
-
], g);
|
|
383
|
-
const O = class O {
|
|
384
|
-
};
|
|
385
|
-
O.VERSION = "version", O.TENANT_ID = "tenantId", O.OWNER_ID = "ownerId", O.SPACE_ID = "spaceId", O.EVENT_ID = "eventId", O.FIRST_EVENT_TIME = "firstEventTime", O.EVENT_TIME = "eventTime", O.FIRST_OPERATOR = "firstOperator", O.OPERATOR = "operator", O.SNAPSHOT_TIME = "snapshotTime", O.TAGS = "tags", O.DELETED = "deleted", O.STATE = "state";
|
|
386
|
-
let st = O;
|
|
387
|
-
const R = class R {
|
|
388
|
-
};
|
|
389
|
-
R.SNAPSHOT_RESOURCE_NAME = "snapshot", R.COUNT = `${R.SNAPSHOT_RESOURCE_NAME}/count`, R.LIST = `${R.SNAPSHOT_RESOURCE_NAME}/list`, R.LIST_STATE = `${R.LIST}/state`, R.PAGED = `${R.SNAPSHOT_RESOURCE_NAME}/paged`, R.PAGED_STATE = `${R.PAGED}/state`, R.SINGLE = `${R.SNAPSHOT_RESOURCE_NAME}/single`, R.SINGLE_STATE = `${R.SINGLE}/state`;
|
|
390
|
-
let l = R;
|
|
391
|
-
var ht = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, S = (t, E, i, r) => {
|
|
392
|
-
for (var e = r > 1 ? void 0 : r ? pt(E, i) : E, I = t.length - 1, c; I >= 0; I--)
|
|
393
|
-
(c = t[I]) && (e = (r ? c(E, i, e) : c(e)) || e);
|
|
394
|
-
return r && e && ht(E, i, e), e;
|
|
395
|
-
}, N = (t, E) => (i, r) => E(i, r, t);
|
|
396
|
-
let D = class {
|
|
397
|
-
/**
|
|
398
|
-
* Creates a new SnapshotQueryClient instance.
|
|
399
|
-
*/
|
|
400
|
-
constructor(t) {
|
|
401
|
-
this.apiMetadata = t;
|
|
402
|
-
}
|
|
403
|
-
count(t, E, i) {
|
|
404
|
-
throw u(t, E, i);
|
|
405
|
-
}
|
|
406
|
-
list(t, E, i) {
|
|
407
|
-
throw u(t, E, i);
|
|
408
|
-
}
|
|
409
|
-
listStream(t, E, i) {
|
|
410
|
-
throw u(t, E, i);
|
|
411
|
-
}
|
|
412
|
-
listState(t, E, i) {
|
|
413
|
-
throw u(t, E, i);
|
|
414
|
-
}
|
|
415
|
-
listStateStream(t, E, i) {
|
|
416
|
-
throw u(t, E, i);
|
|
417
|
-
}
|
|
418
|
-
paged(t, E, i) {
|
|
419
|
-
throw u(t, E, i);
|
|
420
|
-
}
|
|
421
|
-
pagedState(t, E, i) {
|
|
422
|
-
throw u(t, E, i);
|
|
423
|
-
}
|
|
424
|
-
single(t, E, i) {
|
|
425
|
-
throw u(t, E, i);
|
|
426
|
-
}
|
|
427
|
-
singleState(t, E, i) {
|
|
428
|
-
throw u(t, E, i);
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* Retrieves a single materialized snapshot by its ID.
|
|
432
|
-
*
|
|
433
|
-
* @param id - The unique identifier of the snapshot to retrieve
|
|
434
|
-
* @param attributes - Optional shared attributes that can be accessed by interceptors
|
|
435
|
-
* throughout the request lifecycle. These attributes allow passing
|
|
436
|
-
* custom data between different interceptors.
|
|
437
|
-
* @param abortController - Optional AbortController for cancelling the request.
|
|
438
|
-
* @returns A promise that resolves to the materialized snapshot with the specified ID
|
|
439
|
-
*
|
|
440
|
-
* @example
|
|
441
|
-
* ```typescript
|
|
442
|
-
* const snapshot = await snapshotQueryClient.getById('snapshot-123');
|
|
443
|
-
* console.log('Snapshot:', snapshot);
|
|
444
|
-
* ```
|
|
445
|
-
*/
|
|
446
|
-
getById(t, E, i) {
|
|
447
|
-
const r = rt({
|
|
448
|
-
condition: Et(t)
|
|
449
|
-
});
|
|
450
|
-
return this.single(r, E, i);
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Retrieves a single snapshot state by its ID.
|
|
454
|
-
*
|
|
455
|
-
* @param id - The unique identifier of the snapshot whose state to retrieve
|
|
456
|
-
* @param attributes - Optional shared attributes that can be accessed by interceptors
|
|
457
|
-
* throughout the request lifecycle. These attributes allow passing
|
|
458
|
-
* custom data between different interceptors.
|
|
459
|
-
* @param abortController - Optional AbortController for cancelling the request.
|
|
460
|
-
* @returns A promise that resolves to the snapshot state with the specified ID
|
|
461
|
-
*
|
|
462
|
-
* @example
|
|
463
|
-
* ```typescript
|
|
464
|
-
* const state = await snapshotQueryClient.getStateById('snapshot-123');
|
|
465
|
-
* console.log('State:', state);
|
|
466
|
-
* ```
|
|
467
|
-
*/
|
|
468
|
-
getStateById(t, E, i) {
|
|
469
|
-
const r = rt({
|
|
470
|
-
condition: Et(t)
|
|
471
|
-
});
|
|
472
|
-
return this.singleState(r, E, i);
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Retrieves multiple materialized snapshots by their IDs.
|
|
476
|
-
*
|
|
477
|
-
* @param ids - An array of unique identifiers of the snapshots to retrieve
|
|
478
|
-
* @param attributes - Optional shared attributes that can be accessed by interceptors
|
|
479
|
-
* throughout the request lifecycle. These attributes allow passing
|
|
480
|
-
* custom data between different interceptors.
|
|
481
|
-
* @param abortController - Optional AbortController for cancelling the request.
|
|
482
|
-
* @returns A promise that resolves to an array of materialized snapshots with the specified IDs
|
|
483
|
-
*
|
|
484
|
-
* @example
|
|
485
|
-
* ```typescript
|
|
486
|
-
* const snapshots = await snapshotQueryClient.getByIds(['snapshot-123', 'snapshot-456']);
|
|
487
|
-
* for (const snapshot of snapshots) {
|
|
488
|
-
* console.log('Snapshot:', snapshot);
|
|
489
|
-
* }
|
|
490
|
-
* ```
|
|
491
|
-
*/
|
|
492
|
-
getByIds(t, E, i) {
|
|
493
|
-
const r = et({
|
|
494
|
-
condition: it(t),
|
|
495
|
-
limit: t.length
|
|
496
|
-
});
|
|
497
|
-
return this.list(r, E, i);
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Retrieves multiple snapshot states by their IDs.
|
|
501
|
-
*
|
|
502
|
-
* @param ids - An array of unique identifiers of the snapshots whose states to retrieve
|
|
503
|
-
* @param attributes - Optional shared attributes that can be accessed by interceptors
|
|
504
|
-
* throughout the request lifecycle. These attributes allow passing
|
|
505
|
-
* custom data between different interceptors.
|
|
506
|
-
* @param abortController - Optional AbortController for cancelling the request.
|
|
507
|
-
* @returns A promise that resolves to an array of snapshot states with the specified IDs
|
|
508
|
-
*
|
|
509
|
-
* @example
|
|
510
|
-
* ```typescript
|
|
511
|
-
* const states = await snapshotQueryClient.getStateByIds(['snapshot-123', 'snapshot-456']);
|
|
512
|
-
* for (const state of states) {
|
|
513
|
-
* console.log('State:', state);
|
|
514
|
-
* }
|
|
515
|
-
* ```
|
|
516
|
-
*/
|
|
517
|
-
getStateByIds(t, E, i) {
|
|
518
|
-
const r = et({
|
|
519
|
-
condition: it(t),
|
|
520
|
-
limit: t.length
|
|
521
|
-
});
|
|
522
|
-
return this.listState(r, E, i);
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
S([
|
|
526
|
-
_(l.COUNT),
|
|
527
|
-
N(0, L()),
|
|
528
|
-
N(1, A())
|
|
529
|
-
], D.prototype, "count", 1);
|
|
530
|
-
S([
|
|
531
|
-
_(l.LIST),
|
|
532
|
-
N(0, L()),
|
|
533
|
-
N(1, A())
|
|
534
|
-
], D.prototype, "list", 1);
|
|
535
|
-
S([
|
|
536
|
-
_(l.LIST, {
|
|
537
|
-
headers: { Accept: j.TEXT_EVENT_STREAM },
|
|
538
|
-
resultExtractor: K
|
|
539
|
-
}),
|
|
540
|
-
N(0, L()),
|
|
541
|
-
N(1, A())
|
|
542
|
-
], D.prototype, "listStream", 1);
|
|
543
|
-
S([
|
|
544
|
-
_(l.LIST_STATE),
|
|
545
|
-
N(0, L()),
|
|
546
|
-
N(1, A())
|
|
547
|
-
], D.prototype, "listState", 1);
|
|
548
|
-
S([
|
|
549
|
-
_(l.LIST_STATE, {
|
|
550
|
-
headers: { Accept: j.TEXT_EVENT_STREAM },
|
|
551
|
-
resultExtractor: K
|
|
552
|
-
}),
|
|
553
|
-
N(0, L()),
|
|
554
|
-
N(1, A())
|
|
555
|
-
], D.prototype, "listStateStream", 1);
|
|
556
|
-
S([
|
|
557
|
-
_(l.PAGED),
|
|
558
|
-
N(0, L()),
|
|
559
|
-
N(1, A())
|
|
560
|
-
], D.prototype, "paged", 1);
|
|
561
|
-
S([
|
|
562
|
-
_(l.PAGED_STATE),
|
|
563
|
-
N(0, L()),
|
|
564
|
-
N(1, A())
|
|
565
|
-
], D.prototype, "pagedState", 1);
|
|
566
|
-
S([
|
|
567
|
-
_(l.SINGLE),
|
|
568
|
-
N(0, L()),
|
|
569
|
-
N(1, A())
|
|
570
|
-
], D.prototype, "single", 1);
|
|
571
|
-
S([
|
|
572
|
-
_(l.SINGLE_STATE),
|
|
573
|
-
N(0, L()),
|
|
574
|
-
N(1, A())
|
|
575
|
-
], D.prototype, "singleState", 1);
|
|
576
|
-
S([
|
|
577
|
-
N(1, A())
|
|
578
|
-
], D.prototype, "getById", 1);
|
|
579
|
-
S([
|
|
580
|
-
N(1, A())
|
|
581
|
-
], D.prototype, "getStateById", 1);
|
|
582
|
-
S([
|
|
583
|
-
N(1, A())
|
|
584
|
-
], D.prototype, "getByIds", 1);
|
|
585
|
-
S([
|
|
586
|
-
N(1, A())
|
|
587
|
-
], D.prototype, "getStateByIds", 1);
|
|
588
|
-
D = S([
|
|
589
|
-
Y()
|
|
590
|
-
], D);
|
|
591
|
-
var Ct = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, Q = (t, E, i, r) => {
|
|
592
|
-
for (var e = r > 1 ? void 0 : r ? Gt(E, i) : E, I = t.length - 1, c; I >= 0; I--)
|
|
593
|
-
(c = t[I]) && (e = (r ? c(E, i, e) : c(e)) || e);
|
|
594
|
-
return r && e && Ct(E, i, e), e;
|
|
595
|
-
}, h = (t, E) => (i, r) => E(i, r, t);
|
|
596
|
-
const C = class C {
|
|
478
|
+
function Ge(e) {
|
|
479
|
+
return {
|
|
480
|
+
operator: v.RAW,
|
|
481
|
+
value: e
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region src/query/pagination.ts
|
|
486
|
+
var O = {
|
|
487
|
+
index: 1,
|
|
488
|
+
size: 10
|
|
597
489
|
};
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
490
|
+
function Ke({ index: e = O.index, size: t = O.size } = O) {
|
|
491
|
+
return {
|
|
492
|
+
index: e,
|
|
493
|
+
size: t
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region src/query/projection.ts
|
|
498
|
+
var k = {};
|
|
499
|
+
function A() {
|
|
500
|
+
return k;
|
|
501
|
+
}
|
|
502
|
+
function qe({ include: e, exclude: t } = A()) {
|
|
503
|
+
return {
|
|
504
|
+
include: e,
|
|
505
|
+
exclude: t
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region src/query/queryable.ts
|
|
510
|
+
function j({ condition: e = T(), projection: t, sort: n } = {}) {
|
|
511
|
+
return {
|
|
512
|
+
condition: e,
|
|
513
|
+
projection: t,
|
|
514
|
+
sort: n
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
function M({ condition: e = T(), projection: t, sort: n, limit: r = O.size } = {}) {
|
|
518
|
+
return {
|
|
519
|
+
condition: e,
|
|
520
|
+
projection: t,
|
|
521
|
+
sort: n,
|
|
522
|
+
limit: r
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function Je({ condition: e = T(), projection: t, sort: n, pagination: r = O } = {}) {
|
|
526
|
+
return {
|
|
527
|
+
condition: e,
|
|
528
|
+
projection: t,
|
|
529
|
+
sort: n,
|
|
530
|
+
pagination: r
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
var N = {
|
|
534
|
+
total: 0,
|
|
535
|
+
list: []
|
|
612
536
|
};
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
537
|
+
function Ye({ total: e, list: t = [] } = N) {
|
|
538
|
+
return e === void 0 && (e = t.length), {
|
|
539
|
+
total: e,
|
|
540
|
+
list: t
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region src/query/sort.ts
|
|
545
|
+
var P = /* @__PURE__ */ function(e) {
|
|
546
|
+
return e.ASC = "ASC", e.DESC = "DESC", e;
|
|
547
|
+
}({});
|
|
548
|
+
function Xe(e) {
|
|
549
|
+
return {
|
|
550
|
+
field: e,
|
|
551
|
+
direction: P.ASC
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
function Ze(e) {
|
|
555
|
+
return {
|
|
556
|
+
field: e,
|
|
557
|
+
direction: P.DESC
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/query/event/domainEventStream.ts
|
|
562
|
+
var Qe = class e {
|
|
563
|
+
static {
|
|
564
|
+
this.HEADER = "header";
|
|
565
|
+
}
|
|
566
|
+
static {
|
|
567
|
+
this.COMMAND_OPERATOR = `${e.HEADER}.command_operator`;
|
|
568
|
+
}
|
|
569
|
+
static {
|
|
570
|
+
this.AGGREGATE_ID = "aggregateId";
|
|
571
|
+
}
|
|
572
|
+
static {
|
|
573
|
+
this.TENANT_ID = "tenantId";
|
|
574
|
+
}
|
|
575
|
+
static {
|
|
576
|
+
this.OWNER_ID = "ownerId";
|
|
577
|
+
}
|
|
578
|
+
static {
|
|
579
|
+
this.SPACE_ID = "spaceId";
|
|
580
|
+
}
|
|
581
|
+
static {
|
|
582
|
+
this.COMMAND_ID = "commandId";
|
|
583
|
+
}
|
|
584
|
+
static {
|
|
585
|
+
this.REQUEST_ID = "requestId";
|
|
586
|
+
}
|
|
587
|
+
static {
|
|
588
|
+
this.VERSION = "version";
|
|
589
|
+
}
|
|
590
|
+
static {
|
|
591
|
+
this.BODY = "body";
|
|
592
|
+
}
|
|
593
|
+
static {
|
|
594
|
+
this.BODY_ID = `${e.BODY}.id`;
|
|
595
|
+
}
|
|
596
|
+
static {
|
|
597
|
+
this.BODY_NAME = `${e.BODY}.name`;
|
|
598
|
+
}
|
|
599
|
+
static {
|
|
600
|
+
this.BODY_TYPE = `${e.BODY}.bodyType`;
|
|
601
|
+
}
|
|
602
|
+
static {
|
|
603
|
+
this.BODY_REVISION = `${e.BODY}.revision`;
|
|
604
|
+
}
|
|
605
|
+
static {
|
|
606
|
+
this.BODY_BODY = `${e.BODY}.body`;
|
|
607
|
+
}
|
|
608
|
+
static {
|
|
609
|
+
this.CREATE_TIME = "createTime";
|
|
610
|
+
}
|
|
611
|
+
}, F = class e {
|
|
612
|
+
static {
|
|
613
|
+
this.EVENT_STREAM_RESOURCE_NAME = "event";
|
|
614
|
+
}
|
|
615
|
+
static {
|
|
616
|
+
this.COUNT = `${e.EVENT_STREAM_RESOURCE_NAME}/count`;
|
|
617
|
+
}
|
|
618
|
+
static {
|
|
619
|
+
this.LIST = `${e.EVENT_STREAM_RESOURCE_NAME}/list`;
|
|
620
|
+
}
|
|
621
|
+
static {
|
|
622
|
+
this.PAGED = `${e.EVENT_STREAM_RESOURCE_NAME}/paged`;
|
|
623
|
+
}
|
|
624
|
+
}, I, L, R, z, B, V, H, U, W, $e, et, tt, G = class {
|
|
625
|
+
constructor(e) {
|
|
626
|
+
this.apiMetadata = e;
|
|
627
|
+
}
|
|
628
|
+
count(e, t, n) {
|
|
629
|
+
throw a(e, t, n);
|
|
630
|
+
}
|
|
631
|
+
list(e, t, n) {
|
|
632
|
+
throw a(e, t, n);
|
|
633
|
+
}
|
|
634
|
+
listStream(e, t, n) {
|
|
635
|
+
throw a(e, t, n);
|
|
636
|
+
}
|
|
637
|
+
paged(e, t, n) {
|
|
638
|
+
throw a(e, t, n);
|
|
639
|
+
}
|
|
639
640
|
};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
641
|
+
m([
|
|
642
|
+
u(F.COUNT),
|
|
643
|
+
p(0, o()),
|
|
644
|
+
p(1, i()),
|
|
645
|
+
f("design:type", Function),
|
|
646
|
+
f("design:paramtypes", [
|
|
647
|
+
Object,
|
|
648
|
+
typeof (L = typeof Record < "u" && Record) == "function" ? L : Object,
|
|
649
|
+
typeof (R = typeof AbortController < "u" && AbortController) == "function" ? R : Object
|
|
650
|
+
]),
|
|
651
|
+
f("design:returntype", typeof (I = typeof Promise < "u" && Promise) == "function" ? I : Object)
|
|
652
|
+
], G.prototype, "count", null), m([
|
|
653
|
+
u(F.LIST),
|
|
654
|
+
p(0, o()),
|
|
655
|
+
p(1, i()),
|
|
656
|
+
f("design:type", Function),
|
|
657
|
+
f("design:paramtypes", [
|
|
658
|
+
Object,
|
|
659
|
+
typeof (B = typeof Record < "u" && Record) == "function" ? B : Object,
|
|
660
|
+
typeof (V = typeof AbortController < "u" && AbortController) == "function" ? V : Object
|
|
661
|
+
]),
|
|
662
|
+
f("design:returntype", typeof (z = typeof Promise < "u" && Promise) == "function" ? z : Object)
|
|
663
|
+
], G.prototype, "list", null), m([
|
|
664
|
+
u(F.LIST, {
|
|
665
|
+
headers: { Accept: e.TEXT_EVENT_STREAM },
|
|
666
|
+
resultExtractor: n
|
|
667
|
+
}),
|
|
668
|
+
p(0, o()),
|
|
669
|
+
p(1, i()),
|
|
670
|
+
f("design:type", Function),
|
|
671
|
+
f("design:paramtypes", [
|
|
672
|
+
Object,
|
|
673
|
+
typeof (U = typeof Record < "u" && Record) == "function" ? U : Object,
|
|
674
|
+
typeof (W = typeof AbortController < "u" && AbortController) == "function" ? W : Object
|
|
675
|
+
]),
|
|
676
|
+
f("design:returntype", typeof (H = typeof Promise < "u" && Promise) == "function" ? H : Object)
|
|
677
|
+
], G.prototype, "listStream", null), m([
|
|
678
|
+
u(F.PAGED),
|
|
679
|
+
p(0, o()),
|
|
680
|
+
p(1, i()),
|
|
681
|
+
f("design:type", Function),
|
|
682
|
+
f("design:paramtypes", [
|
|
683
|
+
Object,
|
|
684
|
+
typeof (et = typeof Record < "u" && Record) == "function" ? et : Object,
|
|
685
|
+
typeof (tt = typeof AbortController < "u" && AbortController) == "function" ? tt : Object
|
|
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);
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region src/query/snapshot/snapshot.ts
|
|
691
|
+
var nt = class {
|
|
692
|
+
static {
|
|
693
|
+
this.VERSION = "version";
|
|
694
|
+
}
|
|
695
|
+
static {
|
|
696
|
+
this.TENANT_ID = "tenantId";
|
|
697
|
+
}
|
|
698
|
+
static {
|
|
699
|
+
this.OWNER_ID = "ownerId";
|
|
700
|
+
}
|
|
701
|
+
static {
|
|
702
|
+
this.SPACE_ID = "spaceId";
|
|
703
|
+
}
|
|
704
|
+
static {
|
|
705
|
+
this.EVENT_ID = "eventId";
|
|
706
|
+
}
|
|
707
|
+
static {
|
|
708
|
+
this.FIRST_EVENT_TIME = "firstEventTime";
|
|
709
|
+
}
|
|
710
|
+
static {
|
|
711
|
+
this.EVENT_TIME = "eventTime";
|
|
712
|
+
}
|
|
713
|
+
static {
|
|
714
|
+
this.FIRST_OPERATOR = "firstOperator";
|
|
715
|
+
}
|
|
716
|
+
static {
|
|
717
|
+
this.OPERATOR = "operator";
|
|
718
|
+
}
|
|
719
|
+
static {
|
|
720
|
+
this.SNAPSHOT_TIME = "snapshotTime";
|
|
721
|
+
}
|
|
722
|
+
static {
|
|
723
|
+
this.TAGS = "tags";
|
|
724
|
+
}
|
|
725
|
+
static {
|
|
726
|
+
this.DELETED = "deleted";
|
|
727
|
+
}
|
|
728
|
+
static {
|
|
729
|
+
this.STATE = "state";
|
|
730
|
+
}
|
|
731
|
+
}, K = class e {
|
|
732
|
+
static {
|
|
733
|
+
this.SNAPSHOT_RESOURCE_NAME = "snapshot";
|
|
734
|
+
}
|
|
735
|
+
static {
|
|
736
|
+
this.COUNT = `${e.SNAPSHOT_RESOURCE_NAME}/count`;
|
|
737
|
+
}
|
|
738
|
+
static {
|
|
739
|
+
this.LIST = `${e.SNAPSHOT_RESOURCE_NAME}/list`;
|
|
740
|
+
}
|
|
741
|
+
static {
|
|
742
|
+
this.LIST_STATE = `${e.LIST}/state`;
|
|
743
|
+
}
|
|
744
|
+
static {
|
|
745
|
+
this.PAGED = `${e.SNAPSHOT_RESOURCE_NAME}/paged`;
|
|
746
|
+
}
|
|
747
|
+
static {
|
|
748
|
+
this.PAGED_STATE = `${e.PAGED}/state`;
|
|
749
|
+
}
|
|
750
|
+
static {
|
|
751
|
+
this.SINGLE = `${e.SNAPSHOT_RESOURCE_NAME}/single`;
|
|
752
|
+
}
|
|
753
|
+
static {
|
|
754
|
+
this.SINGLE_STATE = `${e.SINGLE}/state`;
|
|
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 {
|
|
757
|
+
constructor(e) {
|
|
758
|
+
this.apiMetadata = e;
|
|
759
|
+
}
|
|
760
|
+
count(e, t, n) {
|
|
761
|
+
throw a(e, t, n);
|
|
762
|
+
}
|
|
763
|
+
list(e, t, n) {
|
|
764
|
+
throw a(e, t, n);
|
|
765
|
+
}
|
|
766
|
+
listStream(e, t, n) {
|
|
767
|
+
throw a(e, t, n);
|
|
768
|
+
}
|
|
769
|
+
listState(e, t, n) {
|
|
770
|
+
throw a(e, t, n);
|
|
771
|
+
}
|
|
772
|
+
listStateStream(e, t, n) {
|
|
773
|
+
throw a(e, t, n);
|
|
774
|
+
}
|
|
775
|
+
paged(e, t, n) {
|
|
776
|
+
throw a(e, t, n);
|
|
777
|
+
}
|
|
778
|
+
pagedState(e, t, n) {
|
|
779
|
+
throw a(e, t, n);
|
|
780
|
+
}
|
|
781
|
+
single(e, t, n) {
|
|
782
|
+
throw a(e, t, n);
|
|
783
|
+
}
|
|
784
|
+
singleState(e, t, n) {
|
|
785
|
+
throw a(e, t, n);
|
|
786
|
+
}
|
|
787
|
+
getById(e, t, n) {
|
|
788
|
+
let r = j({ condition: S(e) });
|
|
789
|
+
return this.single(r, t, n);
|
|
790
|
+
}
|
|
791
|
+
getStateById(e, t, n) {
|
|
792
|
+
let r = j({ condition: S(e) });
|
|
793
|
+
return this.singleState(r, t, n);
|
|
794
|
+
}
|
|
795
|
+
getByIds(e, t, n) {
|
|
796
|
+
let r = M({
|
|
797
|
+
condition: C(e),
|
|
798
|
+
limit: e.length
|
|
799
|
+
});
|
|
800
|
+
return this.list(r, t, n);
|
|
801
|
+
}
|
|
802
|
+
getStateByIds(e, t, n) {
|
|
803
|
+
let r = M({
|
|
804
|
+
condition: C(e),
|
|
805
|
+
limit: e.length
|
|
806
|
+
});
|
|
807
|
+
return this.listState(r, t, n);
|
|
808
|
+
}
|
|
654
809
|
};
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
function
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
*
|
|
823
|
-
* @example
|
|
824
|
-
* ```typescript
|
|
825
|
-
* const eventClient = factory.createEventStreamQueryClient({
|
|
826
|
-
* aggregateName: 'cart',
|
|
827
|
-
* });
|
|
828
|
-
*
|
|
829
|
-
* const events = await eventClient.list({ condition: all() });
|
|
830
|
-
* ```
|
|
831
|
-
*/
|
|
832
|
-
createEventStreamQueryClient(E) {
|
|
833
|
-
const i = x({
|
|
834
|
-
...this.defaultOptions,
|
|
835
|
-
...E
|
|
836
|
-
});
|
|
837
|
-
return new g(i);
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
const $E = {}, UE = ["*"];
|
|
841
|
-
var Ut = /* @__PURE__ */ ((t) => (t.NONE = "", t.TENANT = "/tenant/{tenantId}", t.OWNER = "/owner/{ownerId}", t.TENANT_OWNER = "/tenant/{tenantId}/owner/{ownerId}", t))(Ut || {}), yt = /* @__PURE__ */ ((t) => (t.RECOVERABLE = "RECOVERABLE", t.UNKNOWN = "UNKNOWN", t.UNRECOVERABLE = "UNRECOVERABLE", t))(yt || {});
|
|
842
|
-
const o = class o {
|
|
843
|
-
/**
|
|
844
|
-
* Checks if the provided error code represents a successful operation.
|
|
845
|
-
*
|
|
846
|
-
* @param errorCode The error code to check
|
|
847
|
-
* @returns true if the error code is 'Ok', false otherwise
|
|
848
|
-
*/
|
|
849
|
-
static isSucceeded(E) {
|
|
850
|
-
return E === o.SUCCEEDED;
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* Checks if the provided error code represents an error condition.
|
|
854
|
-
*
|
|
855
|
-
* @param errorCode The error code to check
|
|
856
|
-
* @returns true if the error code is not 'Ok', false otherwise
|
|
857
|
-
*/
|
|
858
|
-
static isError(E) {
|
|
859
|
-
return !o.isSucceeded(E);
|
|
860
|
-
}
|
|
810
|
+
m([
|
|
811
|
+
u(K.COUNT),
|
|
812
|
+
p(0, o()),
|
|
813
|
+
p(1, i()),
|
|
814
|
+
f("design:type", Function),
|
|
815
|
+
f("design:paramtypes", [
|
|
816
|
+
Object,
|
|
817
|
+
typeof (it = typeof Record < "u" && Record) == "function" ? it : Object,
|
|
818
|
+
typeof (at = typeof AbortController < "u" && AbortController) == "function" ? at : Object
|
|
819
|
+
]),
|
|
820
|
+
f("design:returntype", typeof (rt = typeof Promise < "u" && Promise) == "function" ? rt : Object)
|
|
821
|
+
], q.prototype, "count", null), m([
|
|
822
|
+
u(K.LIST),
|
|
823
|
+
p(0, o()),
|
|
824
|
+
p(1, i()),
|
|
825
|
+
f("design:type", Function),
|
|
826
|
+
f("design:paramtypes", [
|
|
827
|
+
Object,
|
|
828
|
+
typeof (st = typeof Record < "u" && Record) == "function" ? st : Object,
|
|
829
|
+
typeof (ct = typeof AbortController < "u" && AbortController) == "function" ? ct : Object
|
|
830
|
+
]),
|
|
831
|
+
f("design:returntype", typeof (ot = typeof Promise < "u" && Promise) == "function" ? ot : Object)
|
|
832
|
+
], q.prototype, "list", null), m([
|
|
833
|
+
u(K.LIST, {
|
|
834
|
+
headers: { Accept: e.TEXT_EVENT_STREAM },
|
|
835
|
+
resultExtractor: n
|
|
836
|
+
}),
|
|
837
|
+
p(0, o()),
|
|
838
|
+
p(1, i()),
|
|
839
|
+
f("design:type", Function),
|
|
840
|
+
f("design:paramtypes", [
|
|
841
|
+
Object,
|
|
842
|
+
typeof (ut = typeof Record < "u" && Record) == "function" ? ut : Object,
|
|
843
|
+
typeof (dt = typeof AbortController < "u" && AbortController) == "function" ? dt : Object
|
|
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),
|
|
848
|
+
p(0, o()),
|
|
849
|
+
p(1, i()),
|
|
850
|
+
f("design:type", Function),
|
|
851
|
+
f("design:paramtypes", [
|
|
852
|
+
Object,
|
|
853
|
+
typeof (pt = typeof Record < "u" && Record) == "function" ? pt : Object,
|
|
854
|
+
typeof (mt = typeof AbortController < "u" && AbortController) == "function" ? mt : Object
|
|
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, {
|
|
859
|
+
headers: { Accept: e.TEXT_EVENT_STREAM },
|
|
860
|
+
resultExtractor: n
|
|
861
|
+
}),
|
|
862
|
+
p(0, o()),
|
|
863
|
+
p(1, i()),
|
|
864
|
+
f("design:type", Function),
|
|
865
|
+
f("design:paramtypes", [
|
|
866
|
+
Object,
|
|
867
|
+
typeof (gt = typeof Record < "u" && Record) == "function" ? gt : Object,
|
|
868
|
+
typeof (_t = typeof AbortController < "u" && AbortController) == "function" ? _t : Object
|
|
869
|
+
]),
|
|
870
|
+
f("design:returntype", typeof (ht = typeof Promise < "u" && Promise) == "function" ? ht : Object)
|
|
871
|
+
], q.prototype, "listStateStream", null), m([
|
|
872
|
+
u(K.PAGED),
|
|
873
|
+
p(0, o()),
|
|
874
|
+
p(1, i()),
|
|
875
|
+
f("design:type", Function),
|
|
876
|
+
f("design:paramtypes", [
|
|
877
|
+
Object,
|
|
878
|
+
typeof (yt = typeof Record < "u" && Record) == "function" ? yt : Object,
|
|
879
|
+
typeof (bt = typeof AbortController < "u" && AbortController) == "function" ? bt : Object
|
|
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),
|
|
884
|
+
p(0, o()),
|
|
885
|
+
p(1, i()),
|
|
886
|
+
f("design:type", Function),
|
|
887
|
+
f("design:paramtypes", [
|
|
888
|
+
Object,
|
|
889
|
+
typeof (St = typeof Record < "u" && Record) == "function" ? St : Object,
|
|
890
|
+
typeof (Ct = typeof AbortController < "u" && AbortController) == "function" ? Ct : Object
|
|
891
|
+
]),
|
|
892
|
+
f("design:returntype", typeof (xt = typeof Promise < "u" && Promise) == "function" ? xt : Object)
|
|
893
|
+
], q.prototype, "pagedState", null), m([
|
|
894
|
+
u(K.SINGLE),
|
|
895
|
+
p(0, o()),
|
|
896
|
+
p(1, i()),
|
|
897
|
+
f("design:type", Function),
|
|
898
|
+
f("design:paramtypes", [
|
|
899
|
+
Object,
|
|
900
|
+
typeof (Tt = typeof Record < "u" && Record) == "function" ? Tt : Object,
|
|
901
|
+
typeof (Et = typeof AbortController < "u" && AbortController) == "function" ? Et : Object
|
|
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),
|
|
906
|
+
p(0, o()),
|
|
907
|
+
p(1, i()),
|
|
908
|
+
f("design:type", Function),
|
|
909
|
+
f("design:paramtypes", [
|
|
910
|
+
Object,
|
|
911
|
+
typeof (Ot = typeof Record < "u" && Record) == "function" ? Ot : Object,
|
|
912
|
+
typeof (kt = typeof AbortController < "u" && AbortController) == "function" ? kt : Object
|
|
913
|
+
]),
|
|
914
|
+
f("design:returntype", typeof (Dt = typeof Promise < "u" && Promise) == "function" ? Dt : Object)
|
|
915
|
+
], q.prototype, "singleState", null), m([
|
|
916
|
+
p(1, i()),
|
|
917
|
+
f("design:type", Function),
|
|
918
|
+
f("design:paramtypes", [
|
|
919
|
+
String,
|
|
920
|
+
typeof (jt = typeof Record < "u" && Record) == "function" ? jt : Object,
|
|
921
|
+
typeof (Mt = typeof AbortController < "u" && AbortController) == "function" ? Mt : Object
|
|
922
|
+
]),
|
|
923
|
+
f("design:returntype", typeof (At = typeof Promise < "u" && Promise) == "function" ? At : Object)
|
|
924
|
+
], q.prototype, "getById", null), m([
|
|
925
|
+
p(1, i()),
|
|
926
|
+
f("design:type", Function),
|
|
927
|
+
f("design:paramtypes", [
|
|
928
|
+
String,
|
|
929
|
+
typeof (Pt = typeof Record < "u" && Record) == "function" ? Pt : Object,
|
|
930
|
+
typeof (Ft = typeof AbortController < "u" && AbortController) == "function" ? Ft : Object
|
|
931
|
+
]),
|
|
932
|
+
f("design:returntype", typeof (Nt = typeof Promise < "u" && Promise) == "function" ? Nt : Object)
|
|
933
|
+
], q.prototype, "getStateById", null), m([
|
|
934
|
+
p(1, i()),
|
|
935
|
+
f("design:type", Function),
|
|
936
|
+
f("design:paramtypes", [
|
|
937
|
+
Array,
|
|
938
|
+
typeof (Lt = typeof Record < "u" && Record) == "function" ? Lt : Object,
|
|
939
|
+
typeof (Rt = typeof AbortController < "u" && AbortController) == "function" ? Rt : Object
|
|
940
|
+
]),
|
|
941
|
+
f("design:returntype", typeof (It = typeof Promise < "u" && Promise) == "function" ? It : Object)
|
|
942
|
+
], q.prototype, "getByIds", null), m([
|
|
943
|
+
p(1, i()),
|
|
944
|
+
f("design:type", Function),
|
|
945
|
+
f("design:paramtypes", [
|
|
946
|
+
Array,
|
|
947
|
+
typeof (Bt = typeof Record < "u" && Record) == "function" ? Bt : Object,
|
|
948
|
+
typeof (Vt = typeof AbortController < "u" && AbortController) == "function" ? Vt : Object
|
|
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);
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region src/query/state/loadStateAggregateClient.ts
|
|
954
|
+
var Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, J = class e {
|
|
955
|
+
static {
|
|
956
|
+
this.LOAD = "{id}/state";
|
|
957
|
+
}
|
|
958
|
+
static {
|
|
959
|
+
this.LOAD_VERSIONED = `${e.LOAD}/{version}`;
|
|
960
|
+
}
|
|
961
|
+
static {
|
|
962
|
+
this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
|
|
963
|
+
}
|
|
964
|
+
}, Y = class {
|
|
965
|
+
constructor(e) {
|
|
966
|
+
this.apiMetadata = e;
|
|
967
|
+
}
|
|
968
|
+
load(e, t, n) {
|
|
969
|
+
throw a(e, t, n);
|
|
970
|
+
}
|
|
971
|
+
loadVersioned(e, t, n, r) {
|
|
972
|
+
throw a(e, t, n, r);
|
|
973
|
+
}
|
|
974
|
+
loadTimeBased(e, t, n, r) {
|
|
975
|
+
throw a(e, t, n, r);
|
|
976
|
+
}
|
|
861
977
|
};
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
Rt as and,
|
|
926
|
-
ME as asc,
|
|
927
|
-
uE as beforeToday,
|
|
928
|
-
iE as between,
|
|
929
|
-
mt as contains,
|
|
930
|
-
x as createQueryApiMetadata,
|
|
931
|
-
Wt as cursorCondition,
|
|
932
|
-
gE as cursorQuery,
|
|
933
|
-
$t as cursorSort,
|
|
934
|
-
f as dateOptions,
|
|
935
|
-
Lt as defaultProjection,
|
|
936
|
-
Dt as deleted,
|
|
937
|
-
PE as desc,
|
|
938
|
-
fE as earlierDays,
|
|
939
|
-
sE as elemMatch,
|
|
940
|
-
TE as endsWith,
|
|
941
|
-
zt as eq,
|
|
942
|
-
IE as exists,
|
|
943
|
-
vE as getPropertyValue,
|
|
944
|
-
Ot as gt,
|
|
945
|
-
dt as gte,
|
|
946
|
-
bt as id,
|
|
947
|
-
qt as ids,
|
|
948
|
-
d as ignoreCaseOptions,
|
|
949
|
-
oE as isFalse,
|
|
950
|
-
tE as isIn,
|
|
951
|
-
AE as isNull,
|
|
952
|
-
nE as isTrue,
|
|
953
|
-
z as isValidateCondition,
|
|
954
|
-
LE as lastMonth,
|
|
955
|
-
SE as lastWeek,
|
|
956
|
-
et as listQuery,
|
|
957
|
-
St as lt,
|
|
958
|
-
kt as lte,
|
|
959
|
-
Zt as ne,
|
|
960
|
-
OE as nextWeek,
|
|
961
|
-
Ft as nor,
|
|
962
|
-
EE as notIn,
|
|
963
|
-
cE as notNull,
|
|
964
|
-
xt as or,
|
|
965
|
-
Kt as ownerId,
|
|
966
|
-
GE as pagedList,
|
|
967
|
-
CE as pagedQuery,
|
|
968
|
-
hE as pagination,
|
|
969
|
-
pE as projection,
|
|
970
|
-
aE as raw,
|
|
971
|
-
lE as recentDays,
|
|
972
|
-
rt as singleQuery,
|
|
973
|
-
Qt as spaceId,
|
|
974
|
-
eE as startsWith,
|
|
975
|
-
jt as tenantId,
|
|
976
|
-
_E as thisMonth,
|
|
977
|
-
DE as thisWeek,
|
|
978
|
-
NE as today,
|
|
979
|
-
RE as tomorrow
|
|
978
|
+
m([
|
|
979
|
+
c(J.LOAD),
|
|
980
|
+
p(0, l("id")),
|
|
981
|
+
p(1, i()),
|
|
982
|
+
f("design:type", Function),
|
|
983
|
+
f("design:paramtypes", [
|
|
984
|
+
String,
|
|
985
|
+
typeof (Ut = typeof Record < "u" && Record) == "function" ? Ut : Object,
|
|
986
|
+
typeof (Wt = typeof AbortController < "u" && AbortController) == "function" ? Wt : Object
|
|
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),
|
|
991
|
+
p(0, l("id")),
|
|
992
|
+
p(1, l("version")),
|
|
993
|
+
p(2, i()),
|
|
994
|
+
f("design:type", Function),
|
|
995
|
+
f("design:paramtypes", [
|
|
996
|
+
String,
|
|
997
|
+
Number,
|
|
998
|
+
typeof (Kt = typeof Record < "u" && Record) == "function" ? Kt : Object,
|
|
999
|
+
typeof (qt = typeof AbortController < "u" && AbortController) == "function" ? qt : Object
|
|
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),
|
|
1004
|
+
p(0, l("id")),
|
|
1005
|
+
p(1, l("createTime")),
|
|
1006
|
+
p(2, i()),
|
|
1007
|
+
f("design:type", Function),
|
|
1008
|
+
f("design:paramtypes", [
|
|
1009
|
+
String,
|
|
1010
|
+
Number,
|
|
1011
|
+
typeof (Yt = typeof Record < "u" && Record) == "function" ? Yt : Object,
|
|
1012
|
+
typeof (Xt = typeof AbortController < "u" && AbortController) == "function" ? Xt : Object
|
|
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);
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/query/state/loadOwnerStateAggregateClient.ts
|
|
1018
|
+
var Zt, Qt, $t, en, tn, nn, rn, an, on, X = class e {
|
|
1019
|
+
static {
|
|
1020
|
+
this.LOAD = "state";
|
|
1021
|
+
}
|
|
1022
|
+
static {
|
|
1023
|
+
this.LOAD_VERSIONED = `${e.LOAD}/{version}`;
|
|
1024
|
+
}
|
|
1025
|
+
static {
|
|
1026
|
+
this.LOAD_TIME_BASED = `${e.LOAD}/time/{createTime}`;
|
|
1027
|
+
}
|
|
1028
|
+
}, Z = class {
|
|
1029
|
+
constructor(e) {
|
|
1030
|
+
this.apiMetadata = e;
|
|
1031
|
+
}
|
|
1032
|
+
load(e, t) {
|
|
1033
|
+
throw a(e, t);
|
|
1034
|
+
}
|
|
1035
|
+
loadVersioned(e, t, n) {
|
|
1036
|
+
throw a(e, t, n);
|
|
1037
|
+
}
|
|
1038
|
+
loadTimeBased(e, t, n) {
|
|
1039
|
+
throw a(e, t, n);
|
|
1040
|
+
}
|
|
980
1041
|
};
|
|
981
|
-
|
|
1042
|
+
m([
|
|
1043
|
+
c(X.LOAD),
|
|
1044
|
+
p(0, i()),
|
|
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),
|
|
1050
|
+
p(0, l("version")),
|
|
1051
|
+
p(1, i()),
|
|
1052
|
+
f("design:type", Function),
|
|
1053
|
+
f("design:paramtypes", [
|
|
1054
|
+
Number,
|
|
1055
|
+
typeof (tn = typeof Record < "u" && Record) == "function" ? tn : Object,
|
|
1056
|
+
typeof (nn = typeof AbortController < "u" && AbortController) == "function" ? nn : Object
|
|
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),
|
|
1061
|
+
p(0, l("createTime")),
|
|
1062
|
+
p(1, i()),
|
|
1063
|
+
f("design:type", Function),
|
|
1064
|
+
f("design:paramtypes", [
|
|
1065
|
+
Number,
|
|
1066
|
+
typeof (an = typeof Record < "u" && Record) == "function" ? an : Object,
|
|
1067
|
+
typeof (on = typeof AbortController < "u" && AbortController) == "function" ? on : Object
|
|
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);
|
|
1071
|
+
//#endregion
|
|
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);
|
|
1076
|
+
}
|
|
1077
|
+
function Q({ field: e, direction: t = P.DESC }) {
|
|
1078
|
+
return {
|
|
1079
|
+
field: e,
|
|
1080
|
+
direction: t
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
function ln(e) {
|
|
1084
|
+
let t = e.query, n = ce(cn(e), t.condition), r = Q(e);
|
|
1085
|
+
return {
|
|
1086
|
+
...t,
|
|
1087
|
+
condition: n,
|
|
1088
|
+
sort: [r]
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region src/query/queryClients.ts
|
|
1093
|
+
function $(e) {
|
|
1094
|
+
let n = t(e.resourceAttribution ?? "", e.aggregateName ?? "");
|
|
1095
|
+
return e.contextAlias && (n = t(e.contextAlias, n)), {
|
|
1096
|
+
...e,
|
|
1097
|
+
basePath: n
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
var un = class {
|
|
1101
|
+
constructor(e) {
|
|
1102
|
+
this.defaultOptions = e;
|
|
1103
|
+
}
|
|
1104
|
+
createSnapshotQueryClient(e) {
|
|
1105
|
+
return new q($({
|
|
1106
|
+
...this.defaultOptions,
|
|
1107
|
+
...e
|
|
1108
|
+
}));
|
|
1109
|
+
}
|
|
1110
|
+
createLoadStateAggregateClient(e) {
|
|
1111
|
+
return new Y($({
|
|
1112
|
+
...this.defaultOptions,
|
|
1113
|
+
...e
|
|
1114
|
+
}));
|
|
1115
|
+
}
|
|
1116
|
+
createOwnerLoadStateAggregateClient(e) {
|
|
1117
|
+
return new Z($({
|
|
1118
|
+
...this.defaultOptions,
|
|
1119
|
+
...e
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1122
|
+
createEventStreamQueryClient(e) {
|
|
1123
|
+
return new G($({
|
|
1124
|
+
...this.defaultOptions,
|
|
1125
|
+
...e
|
|
1126
|
+
}));
|
|
1127
|
+
}
|
|
1128
|
+
}, dn = {}, fn = ["*"], pn = /* @__PURE__ */ function(e) {
|
|
1129
|
+
return e.NONE = "", e.TENANT = "/tenant/{tenantId}", e.OWNER = "/owner/{ownerId}", e.TENANT_OWNER = "/tenant/{tenantId}/owner/{ownerId}", e;
|
|
1130
|
+
}({}), mn = /* @__PURE__ */ function(e) {
|
|
1131
|
+
return e.RECOVERABLE = "RECOVERABLE", e.UNKNOWN = "UNKNOWN", e.UNRECOVERABLE = "UNRECOVERABLE", e;
|
|
1132
|
+
}({}), hn = class e {
|
|
1133
|
+
static {
|
|
1134
|
+
this.SUCCEEDED = "Ok";
|
|
1135
|
+
}
|
|
1136
|
+
static {
|
|
1137
|
+
this.SUCCEEDED_MESSAGE = "";
|
|
1138
|
+
}
|
|
1139
|
+
static {
|
|
1140
|
+
this.NOT_FOUND = "NotFound";
|
|
1141
|
+
}
|
|
1142
|
+
static {
|
|
1143
|
+
this.NOT_FOUND_MESSAGE = "Not found resource!";
|
|
1144
|
+
}
|
|
1145
|
+
static {
|
|
1146
|
+
this.BAD_REQUEST = "BadRequest";
|
|
1147
|
+
}
|
|
1148
|
+
static {
|
|
1149
|
+
this.ILLEGAL_ARGUMENT = "IllegalArgument";
|
|
1150
|
+
}
|
|
1151
|
+
static {
|
|
1152
|
+
this.ILLEGAL_STATE = "IllegalState";
|
|
1153
|
+
}
|
|
1154
|
+
static {
|
|
1155
|
+
this.REQUEST_TIMEOUT = "RequestTimeout";
|
|
1156
|
+
}
|
|
1157
|
+
static {
|
|
1158
|
+
this.TOO_MANY_REQUESTS = "TooManyRequests";
|
|
1159
|
+
}
|
|
1160
|
+
static {
|
|
1161
|
+
this.DUPLICATE_REQUEST_ID = "DuplicateRequestId";
|
|
1162
|
+
}
|
|
1163
|
+
static {
|
|
1164
|
+
this.COMMAND_VALIDATION = "CommandValidation";
|
|
1165
|
+
}
|
|
1166
|
+
static {
|
|
1167
|
+
this.REWRITE_NO_COMMAND = "RewriteNoCommand";
|
|
1168
|
+
}
|
|
1169
|
+
static {
|
|
1170
|
+
this.EVENT_VERSION_CONFLICT = "EventVersionConflict";
|
|
1171
|
+
}
|
|
1172
|
+
static {
|
|
1173
|
+
this.DUPLICATE_AGGREGATE_ID = "DuplicateAggregateId";
|
|
1174
|
+
}
|
|
1175
|
+
static {
|
|
1176
|
+
this.COMMAND_EXPECT_VERSION_CONFLICT = "CommandExpectVersionConflict";
|
|
1177
|
+
}
|
|
1178
|
+
static {
|
|
1179
|
+
this.SOURCING_VERSION_CONFLICT = "SourcingVersionConflict";
|
|
1180
|
+
}
|
|
1181
|
+
static {
|
|
1182
|
+
this.ILLEGAL_ACCESS_DELETED_AGGREGATE = "IllegalAccessDeletedAggregate";
|
|
1183
|
+
}
|
|
1184
|
+
static {
|
|
1185
|
+
this.ILLEGAL_ACCESS_OWNER_AGGREGATE = "IllegalAccessOwnerAggregate";
|
|
1186
|
+
}
|
|
1187
|
+
static {
|
|
1188
|
+
this.ILLEGAL_ACCESS_SPACE_AGGREGATE = "IllegalAccessSpaceAggregate";
|
|
1189
|
+
}
|
|
1190
|
+
static {
|
|
1191
|
+
this.INTERNAL_SERVER_ERROR = "InternalServerError";
|
|
1192
|
+
}
|
|
1193
|
+
static isSucceeded(t) {
|
|
1194
|
+
return t === e.SUCCEEDED;
|
|
1195
|
+
}
|
|
1196
|
+
static isError(t) {
|
|
1197
|
+
return !e.isSucceeded(t);
|
|
1198
|
+
}
|
|
1199
|
+
}, gn = /* @__PURE__ */ function(e) {
|
|
1200
|
+
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) {
|
|
1202
|
+
return e.MAP = "MAP", e.STRING = "STRING", e;
|
|
1203
|
+
}({});
|
|
1204
|
+
//#endregion
|
|
1205
|
+
//#region src/getPropertyValue.ts
|
|
1206
|
+
function yn(e, t, n) {
|
|
1207
|
+
if (e == null) return n;
|
|
1208
|
+
let r = Array.isArray(t) ? t : t.split(".").filter(Boolean);
|
|
1209
|
+
if (r.length === 0) return e;
|
|
1210
|
+
let i = e;
|
|
1211
|
+
for (let e of r) {
|
|
1212
|
+
if (Array.isArray(i)) {
|
|
1213
|
+
let t = parseInt(e, 10);
|
|
1214
|
+
if (isNaN(t) || t < 0 || !Number.isInteger(t)) return n;
|
|
1215
|
+
i = i[t];
|
|
1216
|
+
} else if (typeof i == "object") i = i[e];
|
|
1217
|
+
else return n;
|
|
1218
|
+
if (i == null) return n;
|
|
1219
|
+
}
|
|
1220
|
+
return i;
|
|
1221
|
+
}
|
|
1222
|
+
//#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 };
|
|
1224
|
+
|
|
1225
|
+
//# sourceMappingURL=index.es.js.map
|