@ahoo-wang/fetcher-wow 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,105 +1,13 @@
1
- import { ResultExtractors as f, combineURLs as V, ContentTypeValues as L, HttpMethod as Y } from "@ahoo-wang/fetcher";
2
- import { JsonEventStreamResultExtractor as _ } from "@ahoo-wang/fetcher-eventstream";
3
- class v {
4
- constructor(E) {
5
- this.options = E;
6
- }
7
- /**
8
- * Sends a command to the specified path and returns the result.
9
- * This is a protected generic method that handles the common logic for sending commands.
10
- * @template R The type of the result to be returned
11
- * @param path - The endpoint path to send the command to
12
- * @param commandHttpRequest - The command HTTP request containing headers, method, and body
13
- * @param extractor - Function to extract the result from the response, defaults to JSON extractor
14
- * @param attributes - Optional shared attributes that can be accessed by interceptors
15
- * throughout the request lifecycle. These attributes allow passing
16
- * custom data between different interceptors.
17
- * @returns A promise that resolves to the extracted result of type R
18
- */
19
- async sendCommand(E, T, s = f.Json, R) {
20
- const h = V(this.options.basePath, E), C = {
21
- ...T,
22
- url: h
23
- };
24
- return await this.options.fetcher.request(C, s, R);
25
- }
26
- /**
27
- * Send a command to the server and wait for the result.
28
- *
29
- * @param path - The endpoint path to send the command to
30
- * @param commandHttpRequest - The command request to send
31
- * @param attributes - Optional shared attributes that can be accessed by interceptors
32
- * throughout the request lifecycle. These attributes allow passing
33
- * custom data between different interceptors.
34
- * @returns A promise that resolves to the command execution result
35
- *
36
- * @example
37
- * ```typescript
38
- * const commandResult = await commandClient.send('add_cart_item', {
39
- * method: HttpMethod.POST,
40
- * body: {
41
- * productId: 'product-1',
42
- * quantity: 2
43
- * }
44
- * });
45
- * ```
46
- */
47
- send(E, T, s) {
48
- return this.sendCommand(E, T, f.Json, s);
49
- }
50
- /**
51
- * Send a command to the server and wait for the result as a stream.
52
- * This is useful for long-running commands that produce multiple events.
53
- *
54
- * @param path - The endpoint path to send the command to
55
- * @param commandHttpRequest - The command request to send
56
- * @param attributes - Optional shared attributes that can be accessed by interceptors
57
- * throughout the request lifecycle. These attributes allow passing
58
- * custom data between different interceptors.
59
- * @returns A promise that resolves to a stream of command execution results
60
- *
61
- * @example
62
- * ```typescript
63
- * const commandResultStream = await commandClient.sendAndWaitStream('add_cart_item', {
64
- * method: HttpMethod.POST,
65
- * headers: {
66
- * Accept: ContentTypeValues.TEXT_EVENT_STREAM
67
- * },
68
- * body: {
69
- * productId: 'product-1',
70
- * quantity: 2
71
- * }
72
- * });
73
- *
74
- * for await (const commandResultEvent of commandResultStream) {
75
- * console.log('Received event:', commandResultEvent.data);
76
- * }
77
- * ```
78
- */
79
- async sendAndWaitStream(E, T, s) {
80
- return T.headers = {
81
- ...T.headers,
82
- Accept: L.TEXT_EVENT_STREAM
83
- }, this.sendCommand(
84
- E,
85
- T,
86
- _,
87
- s
88
- );
89
- }
90
- }
91
- const i = class i {
92
- };
93
- i.COMMAND_HEADERS_PREFIX = "Command-", i.TENANT_ID = `${i.COMMAND_HEADERS_PREFIX}Tenant-Id`, i.OWNER_ID = `${i.COMMAND_HEADERS_PREFIX}Owner-Id`, i.AGGREGATE_ID = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Id`, i.AGGREGATE_VERSION = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Version`, i.WAIT_PREFIX = `${i.COMMAND_HEADERS_PREFIX}Wait-`, i.WAIT_TIME_OUT = `${i.WAIT_PREFIX}Timeout`, i.WAIT_STAGE = `${i.WAIT_PREFIX}Stage`, i.WAIT_CONTEXT = `${i.WAIT_PREFIX}Context`, i.WAIT_PROCESSOR = `${i.WAIT_PREFIX}Processor`, i.WAIT_FUNCTION = `${i.WAIT_PREFIX}Function`, i.WAIT_TAIL_PREFIX = `${i.WAIT_PREFIX}Tail-`, i.WAIT_TAIL_STAGE = `${i.WAIT_TAIL_PREFIX}Stage`, i.WAIT_TAIL_CONTEXT = `${i.WAIT_TAIL_PREFIX}Context`, i.WAIT_TAIL_PROCESSOR = `${i.WAIT_TAIL_PREFIX}Processor`, i.WAIT_TAIL_FUNCTION = `${i.WAIT_TAIL_PREFIX}Function`, i.REQUEST_ID = `${i.COMMAND_HEADERS_PREFIX}Request-Id`, i.LOCAL_FIRST = `${i.COMMAND_HEADERS_PREFIX}Local-First`, i.COMMAND_AGGREGATE_CONTEXT = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Context`, i.COMMAND_AGGREGATE_NAME = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Name`, i.COMMAND_TYPE = `${i.COMMAND_HEADERS_PREFIX}Type`, i.COMMAND_HEADER_X_PREFIX = `${i.COMMAND_HEADERS_PREFIX}Header-`;
94
- let W = i;
95
- var B = /* @__PURE__ */ ((t) => (t.SENT = "SENT", t.PROCESSED = "PROCESSED", t.SNAPSHOT = "SNAPSHOT", t.PROJECTED = "PROJECTED", t.EVENT_HANDLED = "EVENT_HANDLED", t.SAGA_HANDLED = "SAGA_HANDLED", t))(B || {}), A = /* @__PURE__ */ ((t) => (t.AND = "AND", t.OR = "OR", t.NOR = "NOR", t.ID = "ID", t.IDS = "IDS", t.AGGREGATE_ID = "AGGREGATE_ID", t.AGGREGATE_IDS = "AGGREGATE_IDS", t.TENANT_ID = "TENANT_ID", t.OWNER_ID = "OWNER_ID", t.DELETED = "DELETED", t.ALL = "ALL", t.EQ = "EQ", t.NE = "NE", t.GT = "GT", t.LT = "LT", t.GTE = "GTE", t.LTE = "LTE", t.CONTAINS = "CONTAINS", t.IN = "IN", t.NOT_IN = "NOT_IN", t.BETWEEN = "BETWEEN", t.ALL_IN = "ALL_IN", t.STARTS_WITH = "STARTS_WITH", t.ENDS_WITH = "ENDS_WITH", t.ELEM_MATCH = "ELEM_MATCH", t.NULL = "NULL", t.NOT_NULL = "NOT_NULL", t.TRUE = "TRUE", t.FALSE = "FALSE", t.EXISTS = "EXISTS", t.TODAY = "TODAY", t.BEFORE_TODAY = "BEFORE_TODAY", t.TOMORROW = "TOMORROW", t.THIS_WEEK = "THIS_WEEK", t.NEXT_WEEK = "NEXT_WEEK", t.LAST_WEEK = "LAST_WEEK", t.THIS_MONTH = "THIS_MONTH", t.LAST_MONTH = "LAST_MONTH", t.RECENT_DAYS = "RECENT_DAYS", t.EARLIER_DAYS = "EARLIER_DAYS", t.RAW = "RAW", t))(A || {});
1
+ import { ResultExtractors as q, ContentTypeValues as L, combineURLs as V, HttpMethod as B, mergeRequestOptions as O } from "@ahoo-wang/fetcher";
2
+ import { JsonEventStreamResultExtractor as h } from "@ahoo-wang/fetcher-eventstream";
3
+ var s = /* @__PURE__ */ ((t) => (t.AND = "AND", t.OR = "OR", t.NOR = "NOR", t.ID = "ID", t.IDS = "IDS", t.AGGREGATE_ID = "AGGREGATE_ID", t.AGGREGATE_IDS = "AGGREGATE_IDS", t.TENANT_ID = "TENANT_ID", t.OWNER_ID = "OWNER_ID", t.DELETED = "DELETED", t.ALL = "ALL", t.EQ = "EQ", t.NE = "NE", t.GT = "GT", t.LT = "LT", t.GTE = "GTE", t.LTE = "LTE", t.CONTAINS = "CONTAINS", t.IN = "IN", t.NOT_IN = "NOT_IN", t.BETWEEN = "BETWEEN", t.ALL_IN = "ALL_IN", t.STARTS_WITH = "STARTS_WITH", t.ENDS_WITH = "ENDS_WITH", t.ELEM_MATCH = "ELEM_MATCH", t.NULL = "NULL", t.NOT_NULL = "NOT_NULL", t.TRUE = "TRUE", t.FALSE = "FALSE", t.EXISTS = "EXISTS", t.TODAY = "TODAY", t.BEFORE_TODAY = "BEFORE_TODAY", t.TOMORROW = "TOMORROW", t.THIS_WEEK = "THIS_WEEK", t.NEXT_WEEK = "NEXT_WEEK", t.LAST_WEEK = "LAST_WEEK", t.THIS_MONTH = "THIS_MONTH", t.LAST_MONTH = "LAST_MONTH", t.RECENT_DAYS = "RECENT_DAYS", t.EARLIER_DAYS = "EARLIER_DAYS", t.RAW = "RAW", t))(s || {});
96
4
  function G(t) {
97
5
  return !!t;
98
6
  }
99
- const o = class o {
7
+ const _ = class _ {
100
8
  };
101
- o.IGNORE_CASE_OPTION_KEY = "ignoreCase", o.ZONE_ID_OPTION_KEY = "zoneId", o.DATE_PATTERN_OPTION_KEY = "datePattern";
102
- let l = o;
9
+ _.IGNORE_CASE_OPTION_KEY = "ignoreCase", _.ZONE_ID_OPTION_KEY = "zoneId", _.DATE_PATTERN_OPTION_KEY = "datePattern";
10
+ let C = _;
103
11
  function M(t) {
104
12
  if (!(typeof t > "u"))
105
13
  return { ignoreCase: t };
@@ -110,186 +18,186 @@ function u(t, E) {
110
18
  const T = {};
111
19
  return typeof t < "u" && (T.datePattern = t), typeof E < "u" && (T.zoneId = E), T;
112
20
  }
113
- var q = /* @__PURE__ */ ((t) => (t.ACTIVE = "ACTIVE", t.DELETED = "DELETED", t.ALL = "ALL", t))(q || {});
21
+ var y = /* @__PURE__ */ ((t) => (t.ACTIVE = "ACTIVE", t.DELETED = "DELETED", t.ALL = "ALL", t))(y || {});
114
22
  function k(...t) {
115
23
  if (t.length === 0)
116
- return D();
24
+ return S();
117
25
  if (t.length === 1)
118
- return G(t[0]) ? t[0] : D();
26
+ return G(t[0]) ? t[0] : S();
119
27
  const E = [];
120
28
  return t.forEach((T) => {
121
- T?.operator === A.ALL || !G(T) || (T.operator === A.AND && T.children ? E.push(...T.children) : E.push(T));
122
- }), { operator: A.AND, children: E };
29
+ T?.operator === s.ALL || !G(T) || (T.operator === s.AND && T.children ? E.push(...T.children) : E.push(T));
30
+ }), { operator: s.AND, children: E };
123
31
  }
124
32
  function z(...t) {
125
33
  const E = t?.filter(
126
34
  (T) => G(T)
127
35
  );
128
- return E.length === 0 ? D() : { operator: A.OR, children: E };
36
+ return E.length === 0 ? S() : { operator: s.OR, children: E };
129
37
  }
130
38
  function H(...t) {
131
- return t.length === 0 ? D() : { operator: A.NOR, children: t };
39
+ return t.length === 0 ? S() : { operator: s.NOR, children: t };
132
40
  }
133
41
  function j(t) {
134
- return { operator: A.ID, value: t };
135
- }
136
- function Q(t) {
137
- return { operator: A.IDS, value: t };
42
+ return { operator: s.ID, value: t };
138
43
  }
139
44
  function Z(t) {
140
- return { operator: A.AGGREGATE_ID, value: t };
45
+ return { operator: s.IDS, value: t };
141
46
  }
142
- function p(...t) {
143
- return { operator: A.AGGREGATE_IDS, value: t };
47
+ function p(t) {
48
+ return { operator: s.AGGREGATE_ID, value: t };
144
49
  }
145
- function m(t) {
146
- return { operator: A.TENANT_ID, value: t };
50
+ function m(...t) {
51
+ return { operator: s.AGGREGATE_IDS, value: t };
147
52
  }
148
53
  function d(t) {
149
- return { operator: A.OWNER_ID, value: t };
54
+ return { operator: s.TENANT_ID, value: t };
55
+ }
56
+ function tt(t) {
57
+ return { operator: s.OWNER_ID, value: t };
150
58
  }
151
- function y(t) {
152
- return { operator: A.DELETED, value: t };
59
+ function a(t) {
60
+ return { operator: s.DELETED, value: t };
153
61
  }
154
- function tt() {
155
- return y(
62
+ function Et() {
63
+ return a(
156
64
  "ACTIVE"
157
65
  /* ACTIVE */
158
66
  );
159
67
  }
160
- function D() {
68
+ function S() {
161
69
  return {
162
- operator: A.ALL
70
+ operator: s.ALL
163
71
  };
164
72
  }
165
- function Et(t, E) {
166
- return { field: t, operator: A.EQ, value: E };
167
- }
168
73
  function Tt(t, E) {
169
- return { field: t, operator: A.NE, value: E };
74
+ return { field: t, operator: s.EQ, value: E };
170
75
  }
171
76
  function it(t, E) {
172
- return { field: t, operator: A.GT, value: E };
77
+ return { field: t, operator: s.NE, value: E };
78
+ }
79
+ function st(t, E) {
80
+ return { field: t, operator: s.GT, value: E };
173
81
  }
174
82
  function At(t, E) {
175
- return { field: t, operator: A.LT, value: E };
83
+ return { field: t, operator: s.LT, value: E };
176
84
  }
177
- function st(t, E) {
178
- return { field: t, operator: A.GTE, value: E };
85
+ function ct(t, E) {
86
+ return { field: t, operator: s.GTE, value: E };
179
87
  }
180
88
  function nt(t, E) {
181
- return { field: t, operator: A.LTE, value: E };
89
+ return { field: t, operator: s.LTE, value: E };
182
90
  }
183
- function ct(t, E, T) {
184
- const s = M(T);
185
- return { field: t, operator: A.CONTAINS, value: E, options: s };
91
+ function rt(t, E, T) {
92
+ const A = M(T);
93
+ return { field: t, operator: s.CONTAINS, value: E, options: A };
186
94
  }
187
95
  function It(t, ...E) {
188
- return { field: t, operator: A.IN, value: E };
96
+ return { field: t, operator: s.IN, value: E };
189
97
  }
190
98
  function Nt(t, ...E) {
191
- return { field: t, operator: A.NOT_IN, value: E };
99
+ return { field: t, operator: s.NOT_IN, value: E };
192
100
  }
193
- function rt(t, E, T) {
194
- return { field: t, operator: A.BETWEEN, value: [E, T] };
101
+ function ut(t, E, T) {
102
+ return { field: t, operator: s.BETWEEN, value: [E, T] };
195
103
  }
196
- function ut(t, ...E) {
197
- return { field: t, operator: A.ALL_IN, value: E };
198
- }
199
- function Rt(t, E, T) {
200
- const s = M(T);
201
- return { field: t, operator: A.STARTS_WITH, value: E, options: s };
104
+ function Rt(t, ...E) {
105
+ return { field: t, operator: s.ALL_IN, value: E };
202
106
  }
203
107
  function et(t, E, T) {
204
- const s = M(T);
205
- return { field: t, operator: A.ENDS_WITH, value: E, options: s };
108
+ const A = M(T);
109
+ return { field: t, operator: s.STARTS_WITH, value: E, options: A };
206
110
  }
207
- function Dt(t, E) {
208
- return { field: t, operator: A.ELEM_MATCH, children: [E] };
111
+ function St(t, E, T) {
112
+ const A = M(T);
113
+ return { field: t, operator: s.ENDS_WITH, value: E, options: A };
209
114
  }
210
- function St(t) {
211
- return { field: t, operator: A.NULL };
115
+ function Dt(t, E) {
116
+ return { field: t, operator: s.ELEM_MATCH, children: [E] };
212
117
  }
213
118
  function Ot(t) {
214
- return { field: t, operator: A.NOT_NULL };
119
+ return { field: t, operator: s.NULL };
215
120
  }
216
121
  function ot(t) {
217
- return { field: t, operator: A.TRUE };
122
+ return { field: t, operator: s.NOT_NULL };
218
123
  }
219
- function Lt(t) {
220
- return { field: t, operator: A.FALSE };
124
+ function _t(t) {
125
+ return { field: t, operator: s.TRUE };
221
126
  }
222
- function _t(t, E = !0) {
223
- return { field: t, operator: A.EXISTS, value: E };
127
+ function Lt(t) {
128
+ return { field: t, operator: s.FALSE };
224
129
  }
225
- function ht(t, E, T) {
226
- const s = u(E, T);
227
- return { field: t, operator: A.TODAY, options: s };
130
+ function ht(t, E = !0) {
131
+ return { field: t, operator: s.EXISTS, value: E };
228
132
  }
229
- function ft(t, E, T, s) {
230
- const R = u(T, s);
231
- return { field: t, operator: A.BEFORE_TODAY, value: E, options: R };
133
+ function ft(t, E, T) {
134
+ const A = u(E, T);
135
+ return { field: t, operator: s.TODAY, options: A };
232
136
  }
233
- function Gt(t, E, T) {
234
- const s = u(E, T);
235
- return { field: t, operator: A.TOMORROW, options: s };
137
+ function Gt(t, E, T, A) {
138
+ const R = u(T, A);
139
+ return { field: t, operator: s.BEFORE_TODAY, value: E, options: R };
236
140
  }
237
141
  function Mt(t, E, T) {
238
- const s = u(E, T);
239
- return { field: t, operator: A.THIS_WEEK, options: s };
142
+ const A = u(E, T);
143
+ return { field: t, operator: s.TOMORROW, options: A };
144
+ }
145
+ function lt(t, E, T) {
146
+ const A = u(E, T);
147
+ return { field: t, operator: s.THIS_WEEK, options: A };
240
148
  }
241
149
  function Ct(t, E, T) {
242
- const s = u(E, T);
243
- return { field: t, operator: A.NEXT_WEEK, options: s };
150
+ const A = u(E, T);
151
+ return { field: t, operator: s.NEXT_WEEK, options: A };
244
152
  }
245
153
  function Wt(t, E, T) {
246
- const s = u(E, T);
247
- return { field: t, operator: A.LAST_WEEK, options: s };
248
- }
249
- function lt(t, E, T) {
250
- const s = u(E, T);
251
- return { field: t, operator: A.THIS_MONTH, options: s };
154
+ const A = u(E, T);
155
+ return { field: t, operator: s.LAST_WEEK, options: A };
252
156
  }
253
157
  function Pt(t, E, T) {
254
- const s = u(E, T);
255
- return { field: t, operator: A.LAST_MONTH, options: s };
158
+ const A = u(E, T);
159
+ return { field: t, operator: s.THIS_MONTH, options: A };
256
160
  }
257
- function gt(t, E, T, s) {
258
- const R = u(T, s);
259
- return { field: t, operator: A.RECENT_DAYS, value: E, options: R };
161
+ function Ut(t, E, T) {
162
+ const A = u(E, T);
163
+ return { field: t, operator: s.LAST_MONTH, options: A };
260
164
  }
261
- function Ut(t, E, T, s) {
262
- const R = u(T, s);
263
- return { field: t, operator: A.EARLIER_DAYS, value: E, options: R };
165
+ function gt(t, E, T, A) {
166
+ const R = u(T, A);
167
+ return { field: t, operator: s.RECENT_DAYS, value: E, options: R };
264
168
  }
265
- function Vt(t) {
266
- return { operator: A.RAW, value: t };
169
+ function Vt(t, E, T, A) {
170
+ const R = u(T, A);
171
+ return { field: t, operator: s.EARLIER_DAYS, value: E, options: R };
267
172
  }
268
- const O = {
173
+ function Xt(t) {
174
+ return { operator: s.RAW, value: t };
175
+ }
176
+ const o = {
269
177
  index: 1,
270
178
  size: 10
271
179
  };
272
- function Xt({
273
- index: t = O.index,
274
- size: E = O.size
275
- } = O) {
180
+ function $t({
181
+ index: t = o.index,
182
+ size: E = o.size
183
+ } = o) {
276
184
  return {
277
185
  index: t,
278
186
  size: E
279
187
  };
280
188
  }
281
- const F = {};
282
- function $t({
189
+ const x = {};
190
+ function Yt({
283
191
  include: t,
284
192
  exclude: E
285
- } = F) {
193
+ } = x) {
286
194
  return {
287
195
  include: t,
288
196
  exclude: E
289
197
  };
290
198
  }
291
- function Yt({
292
- condition: t = D(),
199
+ function qt({
200
+ condition: t = S(),
293
201
  projection: E,
294
202
  sort: T
295
203
  } = {}) {
@@ -300,45 +208,50 @@ function Yt({
300
208
  };
301
209
  }
302
210
  function Bt({
303
- condition: t = D(),
211
+ condition: t = S(),
304
212
  projection: E,
305
213
  sort: T,
306
- limit: s = O.size
214
+ limit: A = o.size
307
215
  } = {}) {
308
216
  return {
309
217
  condition: t,
310
218
  projection: E,
311
219
  sort: T,
312
- limit: s
220
+ limit: A
313
221
  };
314
222
  }
315
- function qt({
316
- condition: t = D(),
223
+ function yt({
224
+ condition: t = S(),
317
225
  projection: E,
318
226
  sort: T,
319
- pagination: s = O
227
+ pagination: A = o
320
228
  } = {}) {
321
229
  return {
322
230
  condition: t,
323
231
  projection: E,
324
232
  sort: T,
325
- pagination: s
233
+ pagination: A
326
234
  };
327
235
  }
328
- const a = {
236
+ const F = {
329
237
  total: 0,
330
238
  list: []
331
239
  };
332
- function yt({
240
+ function at({
333
241
  total: t,
334
242
  list: E = []
335
- } = a) {
243
+ } = F) {
336
244
  return t === void 0 && (t = E.length), {
337
245
  total: t,
338
246
  list: E
339
247
  };
340
248
  }
341
- class X {
249
+ const X = {
250
+ resultExtractor: q.Json
251
+ }, f = {
252
+ resultExtractor: h
253
+ };
254
+ class $ {
342
255
  /**
343
256
  * Creates a new QueryClient instance.
344
257
  * @param options - The client configuration options including fetcher and base path
@@ -352,48 +265,50 @@ class X {
352
265
  * @param path - The endpoint path to query
353
266
  * @param query - The query parameters to send
354
267
  * @param accept - The content type to accept from the server, defaults to application/json
355
- * @param extractor - Function to extract the result from the response, defaults to JSON extractor
356
- * @param attributes - Optional shared attributes that can be accessed by interceptors
357
- * throughout the request lifecycle. These attributes allow passing
358
- * custom data between different interceptors.
268
+ * @param options - Request options including result extractor and attributes
269
+ * @param options.resultExtractor - Function to extract the desired result from the exchange.
270
+ * Defaults to JsonResultExtractor which returns the entire exchange object.
271
+ * @param options.attributes - Optional shared attributes that can be accessed by interceptors
272
+ * throughout the request lifecycle. These attributes allow passing
273
+ * custom data between different interceptors.
359
274
  * @returns A promise that resolves to the query result
360
275
  */
361
- async query(E, T, s, R = L.APPLICATION_JSON, h = f.Json) {
362
- const $ = {
276
+ async query(E, T, A, R = L.APPLICATION_JSON) {
277
+ const Y = {
363
278
  url: V(this.options.basePath, E),
364
- method: Y.POST,
279
+ method: B.POST,
365
280
  headers: {
366
281
  Accept: R
367
282
  },
368
283
  body: T
369
284
  };
370
- return await this.options.fetcher.request($, h, s);
285
+ return await this.options.fetcher.request(Y, O(X, A));
371
286
  }
372
287
  }
373
- var x = /* @__PURE__ */ ((t) => (t.ASC = "ASC", t.DESC = "DESC", t))(x || {});
374
- function Ft(t) {
288
+ var w = /* @__PURE__ */ ((t) => (t.ASC = "ASC", t.DESC = "DESC", t))(w || {});
289
+ function xt(t) {
375
290
  return {
376
291
  field: t,
377
292
  direction: "ASC"
378
293
  /* ASC */
379
294
  };
380
295
  }
381
- function at(t) {
296
+ function Ft(t) {
382
297
  return {
383
298
  field: t,
384
299
  direction: "DESC"
385
300
  /* DESC */
386
301
  };
387
302
  }
388
- const n = class n {
303
+ const c = class c {
389
304
  };
390
- n.HEADER = "header", n.COMMAND_OPERATOR = `${n.HEADER}.command_operator`, n.AGGREGATE_ID = "aggregateId", n.TENANT_ID = "tenantId", n.OWNER_ID = "ownerId", 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";
391
- let P = n;
305
+ c.HEADER = "header", c.COMMAND_OPERATOR = `${c.HEADER}.command_operator`, c.AGGREGATE_ID = "aggregateId", c.TENANT_ID = "tenantId", c.OWNER_ID = "ownerId", c.COMMAND_ID = "commandId", c.REQUEST_ID = "requestId", c.VERSION = "version", c.BODY = "body", c.BODY_ID = `${c.BODY}.id`, c.BODY_NAME = `${c.BODY}.name`, c.BODY_TYPE = `${c.BODY}.bodyType`, c.BODY_REVISION = `${c.BODY}.revision`, c.BODY_BODY = `${c.BODY}.body`, c.CREATE_TIME = "createTime";
306
+ let W = c;
392
307
  const e = class e {
393
308
  };
394
309
  e.EVENT_STREAM_RESOURCE_NAME = "event", e.COUNT = `${e.EVENT_STREAM_RESOURCE_NAME}/count`, e.LIST = `${e.EVENT_STREAM_RESOURCE_NAME}/list`, e.PAGED = `${e.EVENT_STREAM_RESOURCE_NAME}/paged`;
395
- let S = e;
396
- class xt extends X {
310
+ let D = e;
311
+ class wt extends $ {
397
312
  /**
398
313
  * Creates a new EventStreamQueryClient instance.
399
314
  * @param options - The client configuration options including fetcher and base path
@@ -417,7 +332,7 @@ class xt extends X {
417
332
  * ```
418
333
  */
419
334
  count(E, T) {
420
- return this.query(S.COUNT, E, T);
335
+ return this.query(D.COUNT, E, { attributes: T });
421
336
  }
422
337
  /**
423
338
  * Retrieves a list of domain event streams based on the provided query parameters.
@@ -440,7 +355,7 @@ class xt extends X {
440
355
  * ```
441
356
  */
442
357
  list(E, T) {
443
- return this.query(S.LIST, E, T);
358
+ return this.query(D.LIST, E, { attributes: T });
444
359
  }
445
360
  /**
446
361
  * Retrieves a stream of domain event streams based on the provided query parameters.
@@ -466,11 +381,13 @@ class xt extends X {
466
381
  */
467
382
  listStream(E, T) {
468
383
  return this.query(
469
- S.LIST,
384
+ D.LIST,
470
385
  E,
471
- T,
472
- L.TEXT_EVENT_STREAM,
473
- _
386
+ O(f, {
387
+ resultExtractor: h,
388
+ attributes: T
389
+ }),
390
+ L.TEXT_EVENT_STREAM
474
391
  );
475
392
  }
476
393
  /**
@@ -497,18 +414,18 @@ class xt extends X {
497
414
  * ```
498
415
  */
499
416
  paged(E, T) {
500
- return this.query(S.PAGED, E, T);
417
+ return this.query(D.PAGED, E, { attributes: T });
501
418
  }
502
419
  }
503
- const N = class N {
504
- };
505
- N.VERSION = "version", N.TENANT_ID = "tenantId", N.OWNER_ID = "ownerId", N.EVENT_ID = "eventId", N.FIRST_EVENT_TIME = "firstEventTime", N.EVENT_TIME = "eventTime", N.FIRST_OPERATOR = "firstOperator", N.OPERATOR = "operator", N.SNAPSHOT_TIME = "snapshotTime", N.DELETED = "deleted", N.STATE = "state";
506
- let g = N;
507
420
  const I = class I {
508
421
  };
509
- I.SNAPSHOT_RESOURCE_NAME = "snapshot", I.COUNT = `${I.SNAPSHOT_RESOURCE_NAME}/count`, I.LIST = `${I.SNAPSHOT_RESOURCE_NAME}/list`, I.LIST_STATE = `${I.LIST}/state`, I.PAGED = `${I.SNAPSHOT_RESOURCE_NAME}/paged`, I.PAGED_STATE = `${I.PAGED}/state`, I.SINGLE = `${I.SNAPSHOT_RESOURCE_NAME}/single`, I.SINGLE_STATE = `${I.SINGLE}/state`;
510
- let r = I;
511
- class wt extends X {
422
+ I.VERSION = "version", I.TENANT_ID = "tenantId", I.OWNER_ID = "ownerId", I.EVENT_ID = "eventId", I.FIRST_EVENT_TIME = "firstEventTime", I.EVENT_TIME = "eventTime", I.FIRST_OPERATOR = "firstOperator", I.OPERATOR = "operator", I.SNAPSHOT_TIME = "snapshotTime", I.DELETED = "deleted", I.STATE = "state";
423
+ let P = I;
424
+ const r = class r {
425
+ };
426
+ 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`;
427
+ let N = r;
428
+ class Jt extends $ {
512
429
  /**
513
430
  * Creates a new SnapshotQueryClient instance.
514
431
  * @param options - The configuration options for the client
@@ -532,7 +449,7 @@ class wt extends X {
532
449
  * ```
533
450
  */
534
451
  async count(E, T) {
535
- return this.query(r.COUNT, E, T);
452
+ return this.query(N.COUNT, E, { attributes: T });
536
453
  }
537
454
  /**
538
455
  * Retrieves a list of materialized snapshots based on the provided query parameters.
@@ -555,7 +472,7 @@ class wt extends X {
555
472
  * ```
556
473
  */
557
474
  list(E, T) {
558
- return this.query(r.LIST, E, T);
475
+ return this.query(N.LIST, E, { attributes: T });
559
476
  }
560
477
  /**
561
478
  * Retrieves a stream of materialized snapshots based on the provided query parameters.
@@ -580,11 +497,13 @@ class wt extends X {
580
497
  */
581
498
  listStream(E, T) {
582
499
  return this.query(
583
- r.LIST,
500
+ N.LIST,
584
501
  E,
585
- T,
586
- L.TEXT_EVENT_STREAM,
587
- _
502
+ O(f, {
503
+ resultExtractor: h,
504
+ attributes: T
505
+ }),
506
+ L.TEXT_EVENT_STREAM
588
507
  );
589
508
  }
590
509
  /**
@@ -608,7 +527,7 @@ class wt extends X {
608
527
  * ```
609
528
  */
610
529
  listState(E, T) {
611
- return this.query(r.LIST_STATE, E, T);
530
+ return this.query(N.LIST_STATE, E, { attributes: T });
612
531
  }
613
532
  /**
614
533
  * Retrieves a stream of snapshot states based on the provided query parameters.
@@ -633,11 +552,13 @@ class wt extends X {
633
552
  */
634
553
  listStateStream(E, T) {
635
554
  return this.query(
636
- r.LIST_STATE,
555
+ N.LIST_STATE,
637
556
  E,
638
- T,
639
- L.TEXT_EVENT_STREAM,
640
- _
557
+ O(f, {
558
+ resultExtractor: h,
559
+ attributes: T
560
+ }),
561
+ L.TEXT_EVENT_STREAM
641
562
  );
642
563
  }
643
564
  /**
@@ -664,7 +585,7 @@ class wt extends X {
664
585
  * ```
665
586
  */
666
587
  paged(E, T) {
667
- return this.query(r.PAGED, E, T);
588
+ return this.query(N.PAGED, E, { attributes: T });
668
589
  }
669
590
  /**
670
591
  * Retrieves a paged list of snapshot states based on the provided query parameters.
@@ -689,7 +610,7 @@ class wt extends X {
689
610
  * ```
690
611
  */
691
612
  pagedState(E, T) {
692
- return this.query(r.PAGED_STATE, E, T);
613
+ return this.query(N.PAGED_STATE, E, { attributes: T });
693
614
  }
694
615
  /**
695
616
  * Retrieves a single materialized snapshot based on the provided query parameters.
@@ -710,7 +631,7 @@ class wt extends X {
710
631
  * ```
711
632
  */
712
633
  single(E, T) {
713
- return this.query(r.SINGLE, E, T);
634
+ return this.query(N.SINGLE, E, { attributes: T });
714
635
  }
715
636
  /**
716
637
  * Retrieves a single snapshot state based on the provided query parameters.
@@ -731,11 +652,107 @@ class wt extends X {
731
652
  * ```
732
653
  */
733
654
  singleState(E, T) {
734
- return this.query(r.SINGLE_STATE, E, T);
655
+ return this.query(N.SINGLE_STATE, E, { attributes: T });
735
656
  }
736
657
  }
737
- var w = /* @__PURE__ */ ((t) => (t.RECOVERABLE = "RECOVERABLE", t.UNKNOWN = "UNKNOWN", t.UNRECOVERABLE = "UNRECOVERABLE", t))(w || {});
738
- const c = class c {
658
+ class bt {
659
+ constructor(E) {
660
+ this.options = E;
661
+ }
662
+ /**
663
+ * Sends a command to the specified path and returns the result.
664
+ * This is a protected generic method that handles the common logic for sending commands.
665
+ * @template R The type of the result to be returned
666
+ * @param path - The endpoint path to send the command to
667
+ * @param commandHttpRequest - The command HTTP request containing headers, method, and body
668
+ * @param options - Request options including result extractor and attributes
669
+ * @param options.resultExtractor - Function to extract the desired result from the exchange.
670
+ * Defaults to ExchangeResultExtractor which returns the entire exchange object.
671
+ * @param options.attributes - Optional shared attributes that can be accessed by interceptors
672
+ * throughout the request lifecycle. These attributes allow passing
673
+ * custom data between different interceptors.
674
+ * @returns A promise that resolves to the extracted result of type R
675
+ */
676
+ async sendCommand(E, T, A) {
677
+ const R = V(this.options.basePath, E), l = {
678
+ ...T,
679
+ url: R
680
+ };
681
+ return await this.options.fetcher.request(l, O(X, A));
682
+ }
683
+ /**
684
+ * Send a command to the server and wait for the result.
685
+ *
686
+ * @param path - The endpoint path to send the command to
687
+ * @param commandHttpRequest - The command request to send
688
+ * @param attributes - Optional shared attributes that can be accessed by interceptors
689
+ * throughout the request lifecycle. These attributes allow passing
690
+ * custom data between different interceptors.
691
+ * @returns A promise that resolves to the command execution result
692
+ *
693
+ * @example
694
+ * ```typescript
695
+ * const commandResult = await commandClient.send('add_cart_item', {
696
+ * method: HttpMethod.POST,
697
+ * body: {
698
+ * productId: 'product-1',
699
+ * quantity: 2
700
+ * }
701
+ * });
702
+ * ```
703
+ */
704
+ send(E, T, A) {
705
+ return this.sendCommand(E, T, { attributes: A });
706
+ }
707
+ /**
708
+ * Send a command to the server and wait for the result as a stream.
709
+ * This is useful for long-running commands that produce multiple events.
710
+ *
711
+ * @param path - The endpoint path to send the command to
712
+ * @param commandHttpRequest - The command request to send
713
+ * @param attributes - Optional shared attributes that can be accessed by interceptors
714
+ * throughout the request lifecycle. These attributes allow passing
715
+ * custom data between different interceptors.
716
+ * @returns A promise that resolves to a stream of command execution results
717
+ *
718
+ * @example
719
+ * ```typescript
720
+ * const commandResultStream = await commandClient.sendAndWaitStream('add_cart_item', {
721
+ * method: HttpMethod.POST,
722
+ * headers: {
723
+ * Accept: ContentTypeValues.TEXT_EVENT_STREAM
724
+ * },
725
+ * body: {
726
+ * productId: 'product-1',
727
+ * quantity: 2
728
+ * }
729
+ * });
730
+ *
731
+ * for await (const commandResultEvent of commandResultStream) {
732
+ * console.log('Received event:', commandResultEvent.data);
733
+ * }
734
+ * ```
735
+ */
736
+ async sendAndWaitStream(E, T, A) {
737
+ return T.headers = {
738
+ ...T.headers,
739
+ Accept: L.TEXT_EVENT_STREAM
740
+ }, this.sendCommand(
741
+ E,
742
+ T,
743
+ O(f, {
744
+ resultExtractor: h,
745
+ attributes: A
746
+ })
747
+ );
748
+ }
749
+ }
750
+ const i = class i {
751
+ };
752
+ i.COMMAND_HEADERS_PREFIX = "Command-", i.TENANT_ID = `${i.COMMAND_HEADERS_PREFIX}Tenant-Id`, i.OWNER_ID = `${i.COMMAND_HEADERS_PREFIX}Owner-Id`, i.AGGREGATE_ID = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Id`, i.AGGREGATE_VERSION = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Version`, i.WAIT_PREFIX = `${i.COMMAND_HEADERS_PREFIX}Wait-`, i.WAIT_TIME_OUT = `${i.WAIT_PREFIX}Timeout`, i.WAIT_STAGE = `${i.WAIT_PREFIX}Stage`, i.WAIT_CONTEXT = `${i.WAIT_PREFIX}Context`, i.WAIT_PROCESSOR = `${i.WAIT_PREFIX}Processor`, i.WAIT_FUNCTION = `${i.WAIT_PREFIX}Function`, i.WAIT_TAIL_PREFIX = `${i.WAIT_PREFIX}Tail-`, i.WAIT_TAIL_STAGE = `${i.WAIT_TAIL_PREFIX}Stage`, i.WAIT_TAIL_CONTEXT = `${i.WAIT_TAIL_PREFIX}Context`, i.WAIT_TAIL_PROCESSOR = `${i.WAIT_TAIL_PREFIX}Processor`, i.WAIT_TAIL_FUNCTION = `${i.WAIT_TAIL_PREFIX}Function`, i.REQUEST_ID = `${i.COMMAND_HEADERS_PREFIX}Request-Id`, i.LOCAL_FIRST = `${i.COMMAND_HEADERS_PREFIX}Local-First`, i.COMMAND_AGGREGATE_CONTEXT = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Context`, i.COMMAND_AGGREGATE_NAME = `${i.COMMAND_HEADERS_PREFIX}Aggregate-Name`, i.COMMAND_TYPE = `${i.COMMAND_HEADERS_PREFIX}Type`, i.COMMAND_HEADER_X_PREFIX = `${i.COMMAND_HEADERS_PREFIX}Header-`;
753
+ let U = i;
754
+ var J = /* @__PURE__ */ ((t) => (t.SENT = "SENT", t.PROCESSED = "PROCESSED", t.SNAPSHOT = "SNAPSHOT", t.PROJECTED = "PROJECTED", t.EVENT_HANDLED = "EVENT_HANDLED", t.SAGA_HANDLED = "SAGA_HANDLED", t))(J || {}), b = /* @__PURE__ */ ((t) => (t.RECOVERABLE = "RECOVERABLE", t.UNKNOWN = "UNKNOWN", t.UNRECOVERABLE = "UNRECOVERABLE", t))(b || {});
755
+ const n = class n {
739
756
  /**
740
757
  * Checks if the provided error code represents a successful operation.
741
758
  *
@@ -743,7 +760,7 @@ const c = class c {
743
760
  * @returns true if the error code is 'Ok', false otherwise
744
761
  */
745
762
  static isSucceeded(E) {
746
- return E === c.SUCCEEDED;
763
+ return E === n.SUCCEEDED;
747
764
  }
748
765
  /**
749
766
  * Checks if the provided error code represents an error condition.
@@ -752,87 +769,89 @@ const c = class c {
752
769
  * @returns true if the error code is not 'Ok', false otherwise
753
770
  */
754
771
  static isError(E) {
755
- return !c.isSucceeded(E);
772
+ return !n.isSucceeded(E);
756
773
  }
757
774
  };
758
- c.SUCCEEDED = "Ok", c.SUCCEEDED_MESSAGE = "", c.NOT_FOUND = "NotFound", c.NOT_FOUND_MESSAGE = "Not found resource!", c.BAD_REQUEST = "BadRequest", c.ILLEGAL_ARGUMENT = "IllegalArgument", c.ILLEGAL_STATE = "IllegalState", c.REQUEST_TIMEOUT = "RequestTimeout", c.TOO_MANY_REQUESTS = "TooManyRequests", c.DUPLICATE_REQUEST_ID = "DuplicateRequestId", c.COMMAND_VALIDATION = "CommandValidation", c.REWRITE_NO_COMMAND = "RewriteNoCommand", c.EVENT_VERSION_CONFLICT = "EventVersionConflict", c.DUPLICATE_AGGREGATE_ID = "DuplicateAggregateId", c.COMMAND_EXPECT_VERSION_CONFLICT = "CommandExpectVersionConflict", c.SOURCING_VERSION_CONFLICT = "SourcingVersionConflict", c.ILLEGAL_ACCESS_DELETED_AGGREGATE = "IllegalAccessDeletedAggregate", c.ILLEGAL_ACCESS_OWNER_AGGREGATE = "IllegalAccessOwnerAggregate", c.INTERNAL_SERVER_ERROR = "InternalServerError";
759
- let U = c;
760
- var J = /* @__PURE__ */ ((t) => (t.COMMAND = "COMMAND", t.ERROR = "ERROR", t.EVENT = "EVENT", t.SOURCING = "SOURCING", t.STATE_EVENT = "STATE_EVENT", t))(J || {});
761
- const Jt = "";
775
+ n.SUCCEEDED = "Ok", n.SUCCEEDED_MESSAGE = "", n.NOT_FOUND = "NotFound", n.NOT_FOUND_MESSAGE = "Not found resource!", n.BAD_REQUEST = "BadRequest", n.ILLEGAL_ARGUMENT = "IllegalArgument", n.ILLEGAL_STATE = "IllegalState", n.REQUEST_TIMEOUT = "RequestTimeout", n.TOO_MANY_REQUESTS = "TooManyRequests", n.DUPLICATE_REQUEST_ID = "DuplicateRequestId", n.COMMAND_VALIDATION = "CommandValidation", n.REWRITE_NO_COMMAND = "RewriteNoCommand", n.EVENT_VERSION_CONFLICT = "EventVersionConflict", n.DUPLICATE_AGGREGATE_ID = "DuplicateAggregateId", n.COMMAND_EXPECT_VERSION_CONFLICT = "CommandExpectVersionConflict", n.SOURCING_VERSION_CONFLICT = "SourcingVersionConflict", n.ILLEGAL_ACCESS_DELETED_AGGREGATE = "IllegalAccessDeletedAggregate", n.ILLEGAL_ACCESS_OWNER_AGGREGATE = "IllegalAccessOwnerAggregate", n.INTERNAL_SERVER_ERROR = "InternalServerError";
776
+ let g = n;
777
+ var K = /* @__PURE__ */ ((t) => (t.COMMAND = "COMMAND", t.ERROR = "ERROR", t.EVENT = "EVENT", t.SOURCING = "SOURCING", t.STATE_EVENT = "STATE_EVENT", t))(K || {});
778
+ const Kt = "";
762
779
  export {
763
- v as CommandClient,
764
- W as CommandHttpHeaders,
765
- B as CommandStage,
766
- l as ConditionOptionKey,
767
- Jt as DEFAULT_OWNER_ID,
768
- O as DEFAULT_PAGINATION,
769
- F as DEFAULT_PROJECTION,
770
- q as DeletionState,
771
- P as DomainEventStreamMetadataFields,
772
- a as EMPTY_PAGED_LIST,
773
- U as ErrorCodes,
774
- xt as EventStreamQueryClient,
775
- S as EventStreamQueryEndpointPaths,
776
- J as FunctionKind,
777
- A as Operator,
778
- X as QueryClient,
779
- w as RecoverableType,
780
- g as SnapshotMetadataFields,
781
- wt as SnapshotQueryClient,
782
- r as SnapshotQueryEndpointPaths,
783
- x as SortDirection,
784
- tt as active,
785
- Z as aggregateId,
786
- p as aggregateIds,
787
- D as all,
788
- ut as allIn,
780
+ bt as CommandClient,
781
+ U as CommandHttpHeaders,
782
+ J as CommandStage,
783
+ C as ConditionOptionKey,
784
+ Kt as DEFAULT_OWNER_ID,
785
+ o as DEFAULT_PAGINATION,
786
+ x as DEFAULT_PROJECTION,
787
+ y as DeletionState,
788
+ W as DomainEventStreamMetadataFields,
789
+ F as EMPTY_PAGED_LIST,
790
+ g as ErrorCodes,
791
+ wt as EventStreamQueryClient,
792
+ D as EventStreamQueryEndpointPaths,
793
+ K as FunctionKind,
794
+ f as JSON_EVENT_STREAM_QUERY_REQUEST_OPTIONS,
795
+ X as JSON_QUERY_REQUEST_OPTIONS,
796
+ s as Operator,
797
+ $ as QueryClient,
798
+ b as RecoverableType,
799
+ P as SnapshotMetadataFields,
800
+ Jt as SnapshotQueryClient,
801
+ N as SnapshotQueryEndpointPaths,
802
+ w as SortDirection,
803
+ Et as active,
804
+ p as aggregateId,
805
+ m as aggregateIds,
806
+ S as all,
807
+ Rt as allIn,
789
808
  k as and,
790
- Ft as asc,
791
- ft as beforeToday,
792
- rt as between,
793
- ct as contains,
809
+ xt as asc,
810
+ Gt as beforeToday,
811
+ ut as between,
812
+ rt as contains,
794
813
  u as dateOptions,
795
- y as deleted,
796
- at as desc,
797
- Ut as earlierDays,
814
+ a as deleted,
815
+ Ft as desc,
816
+ Vt as earlierDays,
798
817
  Dt as elemMatch,
799
- et as endsWith,
800
- Et as eq,
801
- _t as exists,
802
- it as gt,
803
- st as gte,
818
+ St as endsWith,
819
+ Tt as eq,
820
+ ht as exists,
821
+ st as gt,
822
+ ct as gte,
804
823
  j as id,
805
- Q as ids,
824
+ Z as ids,
806
825
  M as ignoreCaseOptions,
807
826
  Lt as isFalse,
808
827
  It as isIn,
809
- St as isNull,
810
- ot as isTrue,
828
+ Ot as isNull,
829
+ _t as isTrue,
811
830
  G as isValidateCondition,
812
- Pt as lastMonth,
831
+ Ut as lastMonth,
813
832
  Wt as lastWeek,
814
833
  Bt as listQuery,
815
834
  At as lt,
816
835
  nt as lte,
817
- Tt as ne,
836
+ it as ne,
818
837
  Ct as nextWeek,
819
838
  H as nor,
820
839
  Nt as notIn,
821
- Ot as notNull,
840
+ ot as notNull,
822
841
  z as or,
823
- d as ownerId,
824
- yt as pagedList,
825
- qt as pagedQuery,
826
- Xt as pagination,
827
- $t as projection,
828
- Vt as raw,
842
+ tt as ownerId,
843
+ at as pagedList,
844
+ yt as pagedQuery,
845
+ $t as pagination,
846
+ Yt as projection,
847
+ Xt as raw,
829
848
  gt as recentDays,
830
- Yt as singleQuery,
831
- Rt as startsWith,
832
- m as tenantId,
833
- lt as thisMonth,
834
- Mt as thisWeek,
835
- ht as today,
836
- Gt as tomorrow
849
+ qt as singleQuery,
850
+ et as startsWith,
851
+ d as tenantId,
852
+ Pt as thisMonth,
853
+ lt as thisWeek,
854
+ ft as today,
855
+ Mt as tomorrow
837
856
  };
838
857
  //# sourceMappingURL=index.es.js.map