@ahoo-wang/fetcher-wow 1.3.3 → 1.5.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.
@@ -1,7 +1,7 @@
1
1
  import { ClientOptions } from '../types';
2
2
  import { CommandRequest } from './commandRequest';
3
3
  import { CommandResult, CommandResultEventStream } from './commandResult';
4
- import { ResultExtractor } from '@ahoo-wang/fetcher-decorator';
4
+ import { ResultExtractor } from '@ahoo-wang/fetcher';
5
5
  /**
6
6
  * Command Client for sending commands to the server.
7
7
  *
@@ -56,7 +56,7 @@ export declare class CommandClient {
56
56
  * @param extractor - Function to extract the result from the response, defaults to JSON extractor
57
57
  * @returns A promise that resolves to the extracted result of type R
58
58
  */
59
- protected sendCommand<R>(path: string, commandHttpRequest: CommandRequest, extractor?: ResultExtractor): Promise<R>;
59
+ protected sendCommand<R>(path: string, commandHttpRequest: CommandRequest, extractor?: ResultExtractor<any>): Promise<R>;
60
60
  /**
61
61
  * Send a command to the server and wait for the result.
62
62
  *
@@ -1 +1 @@
1
- {"version":3,"file":"commandClient.d.ts","sourceRoot":"","sources":["../../src/command/commandClient.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,aAAa;IACZ,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa;gBAAtB,OAAO,EAAE,aAAa;IAGrD;;;;;;;;OAQG;cACa,WAAW,CAAC,CAAC,EAC3B,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,EAClC,SAAS,GAAE,eAAuC,GACjD,OAAO,CAAC,CAAC,CAAC;IAUb;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,GACjC,OAAO,CAAC,aAAa,CAAC;IAIzB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,GACjC,OAAO,CAAC,wBAAwB,CAAC;CAWrC"}
1
+ {"version":3,"file":"commandClient.d.ts","sourceRoot":"","sources":["../../src/command/commandClient.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAkC,eAAe,EAAoB,MAAM,oBAAoB,CAAC;AAGvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,aAAa;IACZ,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa;gBAAtB,OAAO,EAAE,aAAa;IAGrD;;;;;;;;OAQG;cACa,WAAW,CAAC,CAAC,EAC3B,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,EAClC,SAAS,GAAE,eAAe,CAAC,GAAG,CAAyB,GACtD,OAAO,CAAC,CAAC,CAAC;IAUb;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,GACjC,OAAO,CAAC,aAAa,CAAC;IAIzB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,cAAc,GACjC,OAAO,CAAC,wBAAwB,CAAC;CAWrC"}
package/dist/index.es.js CHANGED
@@ -1,7 +1,6 @@
1
- import { ResultExtractors as S } from "@ahoo-wang/fetcher-decorator";
2
- import { combineURLs as P, ContentTypeValues as _, HttpMethod as X } from "@ahoo-wang/fetcher";
3
- import "@ahoo-wang/fetcher-eventstream";
4
- class v {
1
+ import { ResultExtractors as P, combineURLs as U, ContentTypeValues as o, HttpMethod as $ } from "@ahoo-wang/fetcher";
2
+ import { JsonEventStreamResultExtractor as _ } from "@ahoo-wang/fetcher-eventstream";
3
+ class K {
5
4
  constructor(E) {
6
5
  this.options = E;
7
6
  }
@@ -14,8 +13,8 @@ class v {
14
13
  * @param extractor - Function to extract the result from the response, defaults to JSON extractor
15
14
  * @returns A promise that resolves to the extracted result of type R
16
15
  */
17
- async sendCommand(E, T, s = S.Json) {
18
- const R = P(this.options.basePath, E), G = {
16
+ async sendCommand(E, T, s = P.Json) {
17
+ const R = U(this.options.basePath, E), G = {
19
18
  ...T,
20
19
  url: R
21
20
  }, h = await this.options.fetcher.request(G);
@@ -71,11 +70,11 @@ class v {
71
70
  async sendAndWaitStream(E, T) {
72
71
  return T.headers = {
73
72
  ...T.headers,
74
- Accept: _.TEXT_EVENT_STREAM
73
+ Accept: o.TEXT_EVENT_STREAM
75
74
  }, this.sendCommand(
76
75
  E,
77
76
  T,
78
- S.JsonEventStream
77
+ _
79
78
  );
80
79
  }
81
80
  }
@@ -83,7 +82,7 @@ const i = class i {
83
82
  };
84
83
  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-`;
85
84
  let M = i;
86
- var $ = /* @__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))($ || {}), 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 || {});
85
+ var Y = /* @__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))(Y || {}), 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 || {});
87
86
  const L = class L {
88
87
  };
89
88
  L.IGNORE_CASE_OPTION_KEY = "ignoreCase", L.ZONE_ID_OPTION_KEY = "zoneId", L.DATE_PATTERN_OPTION_KEY = "datePattern";
@@ -98,10 +97,10 @@ function u(t, E) {
98
97
  const T = {};
99
98
  return typeof t < "u" && (T.datePattern = t), typeof E < "u" && (T.zoneId = E), T;
100
99
  }
101
- var Y = /* @__PURE__ */ ((t) => (t.ACTIVE = "ACTIVE", t.DELETED = "DELETED", t.ALL = "ALL", t))(Y || {});
102
- function K(...t) {
100
+ var B = /* @__PURE__ */ ((t) => (t.ACTIVE = "ACTIVE", t.DELETED = "DELETED", t.ALL = "ALL", t))(B || {});
101
+ function k(...t) {
103
102
  if (t.length === 0)
104
- return O();
103
+ return S();
105
104
  if (t.length === 1)
106
105
  return t[0];
107
106
  const E = [];
@@ -109,11 +108,11 @@ function K(...t) {
109
108
  T.operator !== A.ALL && (T.operator === A.AND && T.children ? E.push(...T.children) : E.push(T));
110
109
  }), { operator: A.AND, children: E };
111
110
  }
112
- function k(...t) {
113
- return t.length === 0 ? O() : { operator: A.OR, children: t };
111
+ function v(...t) {
112
+ return t.length === 0 ? S() : { operator: A.OR, children: t };
114
113
  }
115
114
  function z(...t) {
116
- return t.length === 0 ? O() : { operator: A.NOR, children: t };
115
+ return t.length === 0 ? S() : { operator: A.NOR, children: t };
117
116
  }
118
117
  function H(t) {
119
118
  return { operator: A.ID, value: t };
@@ -133,16 +132,16 @@ function p(t) {
133
132
  function m(t) {
134
133
  return { operator: A.OWNER_ID, value: t };
135
134
  }
136
- function B(t) {
135
+ function q(t) {
137
136
  return { operator: A.DELETED, value: t };
138
137
  }
139
138
  function d() {
140
- return B(
139
+ return q(
141
140
  "ACTIVE"
142
141
  /* ACTIVE */
143
142
  );
144
143
  }
145
- function O() {
144
+ function S() {
146
145
  return {
147
146
  operator: A.ALL
148
147
  };
@@ -165,11 +164,11 @@ function At(t, E) {
165
164
  function st(t, E) {
166
165
  return { field: t, operator: A.LTE, value: E };
167
166
  }
168
- function nt(t, E, T) {
167
+ function ct(t, E, T) {
169
168
  const s = f(T);
170
169
  return { field: t, operator: A.CONTAINS, value: E, options: s };
171
170
  }
172
- function ct(t, ...E) {
171
+ function nt(t, ...E) {
173
172
  return { field: t, operator: A.IN, value: E };
174
173
  }
175
174
  function It(t, ...E) {
@@ -201,10 +200,10 @@ function St(t) {
201
200
  function Ot(t) {
202
201
  return { field: t, operator: A.TRUE };
203
202
  }
204
- function ot(t) {
203
+ function Lt(t) {
205
204
  return { field: t, operator: A.FALSE };
206
205
  }
207
- function Lt(t, E = !0) {
206
+ function ot(t, E = !0) {
208
207
  return { field: t, operator: A.EXISTS, value: E };
209
208
  }
210
209
  function _t(t, E, T) {
@@ -250,31 +249,31 @@ function Pt(t, E, T, s) {
250
249
  function Ut(t) {
251
250
  return { operator: A.RAW, value: t };
252
251
  }
253
- const o = {
252
+ const O = {
254
253
  index: 1,
255
254
  size: 10
256
255
  };
257
256
  function Vt({
258
- index: t = o.index,
259
- size: E = o.size
260
- } = o) {
257
+ index: t = O.index,
258
+ size: E = O.size
259
+ } = O) {
261
260
  return {
262
261
  index: t,
263
262
  size: E
264
263
  };
265
264
  }
266
- const q = {};
265
+ const y = {};
267
266
  function Xt({
268
267
  include: t,
269
268
  exclude: E
270
- } = q) {
269
+ } = y) {
271
270
  return {
272
271
  include: t,
273
272
  exclude: E
274
273
  };
275
274
  }
276
275
  function $t({
277
- condition: t = O(),
276
+ condition: t = S(),
278
277
  projection: E,
279
278
  sort: T
280
279
  } = {}) {
@@ -285,10 +284,10 @@ function $t({
285
284
  };
286
285
  }
287
286
  function Yt({
288
- condition: t = O(),
287
+ condition: t = S(),
289
288
  projection: E,
290
289
  sort: T,
291
- limit: s = o.size
290
+ limit: s = O.size
292
291
  } = {}) {
293
292
  return {
294
293
  condition: t,
@@ -298,10 +297,10 @@ function Yt({
298
297
  };
299
298
  }
300
299
  function Bt({
301
- condition: t = O(),
300
+ condition: t = S(),
302
301
  projection: E,
303
302
  sort: T,
304
- pagination: s = o
303
+ pagination: s = O
305
304
  } = {}) {
306
305
  return {
307
306
  condition: t,
@@ -310,17 +309,17 @@ function Bt({
310
309
  pagination: s
311
310
  };
312
311
  }
313
- const y = {
312
+ const F = {
314
313
  total: 0,
315
314
  list: []
316
315
  };
317
- function qt({ total: t, list: E = [] } = y) {
316
+ function qt({ total: t, list: E = [] } = F) {
318
317
  return t === void 0 && (t = E.length), {
319
318
  total: t,
320
319
  list: E
321
320
  };
322
321
  }
323
- class U {
322
+ class V {
324
323
  /**
325
324
  * Creates a new QueryClient instance.
326
325
  * @param options - The client configuration options including fetcher and base path
@@ -337,19 +336,19 @@ class U {
337
336
  * @param extractor - Function to extract the result from the response, defaults to JSON extractor
338
337
  * @returns A promise that resolves to the query result
339
338
  */
340
- async query(E, T, s = _.APPLICATION_JSON, R = S.Json) {
339
+ async query(E, T, s = o.APPLICATION_JSON, R = P.Json) {
341
340
  const h = {
342
- url: P(this.options.basePath, E),
343
- method: X.POST,
341
+ url: U(this.options.basePath, E),
342
+ method: $.POST,
344
343
  headers: {
345
344
  Accept: s
346
345
  },
347
346
  body: T
348
- }, V = await this.options.fetcher.request(h);
349
- return R(V);
347
+ }, X = await this.options.fetcher.request(h);
348
+ return R(X);
350
349
  }
351
350
  }
352
- var F = /* @__PURE__ */ ((t) => (t.ASC = "ASC", t.DESC = "DESC", t))(F || {});
351
+ var x = /* @__PURE__ */ ((t) => (t.ASC = "ASC", t.DESC = "DESC", t))(x || {});
353
352
  function yt(t) {
354
353
  return {
355
354
  field: t,
@@ -364,15 +363,15 @@ function Ft(t) {
364
363
  /* DESC */
365
364
  };
366
365
  }
367
- const n = class n {
366
+ const c = class c {
368
367
  };
369
- 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";
370
- let W = n;
368
+ 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";
369
+ let W = c;
371
370
  const e = class e {
372
371
  };
373
372
  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`;
374
373
  let D = e;
375
- class xt extends U {
374
+ class xt extends V {
376
375
  /**
377
376
  * Creates a new EventStreamQueryClient instance.
378
377
  * @param options - The client configuration options including fetcher and base path
@@ -438,8 +437,8 @@ class xt extends U {
438
437
  return this.query(
439
438
  D.LIST,
440
439
  E,
441
- _.TEXT_EVENT_STREAM,
442
- S.JsonEventStream
440
+ o.TEXT_EVENT_STREAM,
441
+ _
443
442
  );
444
443
  }
445
444
  /**
@@ -474,7 +473,7 @@ const I = class I {
474
473
  };
475
474
  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`;
476
475
  let r = I;
477
- class at extends U {
476
+ class at extends V {
478
477
  /**
479
478
  * Creates a new SnapshotQueryClient instance.
480
479
  * @param options - The configuration options for the client
@@ -539,8 +538,8 @@ class at extends U {
539
538
  return this.query(
540
539
  r.LIST,
541
540
  E,
542
- _.TEXT_EVENT_STREAM,
543
- S.JsonEventStream
541
+ o.TEXT_EVENT_STREAM,
542
+ _
544
543
  );
545
544
  }
546
545
  /**
@@ -585,8 +584,8 @@ class at extends U {
585
584
  return this.query(
586
585
  r.LIST_STATE,
587
586
  E,
588
- _.TEXT_EVENT_STREAM,
589
- S.JsonEventStream
587
+ o.TEXT_EVENT_STREAM,
588
+ _
590
589
  );
591
590
  }
592
591
  /**
@@ -671,8 +670,8 @@ class at extends U {
671
670
  return this.query(r.SINGLE_STATE, E);
672
671
  }
673
672
  }
674
- var x = /* @__PURE__ */ ((t) => (t.RECOVERABLE = "RECOVERABLE", t.UNKNOWN = "UNKNOWN", t.UNRECOVERABLE = "UNRECOVERABLE", t))(x || {});
675
- const c = class c {
673
+ var a = /* @__PURE__ */ ((t) => (t.RECOVERABLE = "RECOVERABLE", t.UNKNOWN = "UNKNOWN", t.UNRECOVERABLE = "UNRECOVERABLE", t))(a || {});
674
+ const n = class n {
676
675
  /**
677
676
  * Checks if the provided error code represents a successful operation.
678
677
  *
@@ -680,7 +679,7 @@ const c = class c {
680
679
  * @returns true if the error code is 'Ok', false otherwise
681
680
  */
682
681
  static isSucceeded(E) {
683
- return E === c.SUCCEEDED;
682
+ return E === n.SUCCEEDED;
684
683
  }
685
684
  /**
686
685
  * Checks if the provided error code represents an error condition.
@@ -689,60 +688,60 @@ const c = class c {
689
688
  * @returns true if the error code is not 'Ok', false otherwise
690
689
  */
691
690
  static isError(E) {
692
- return !c.isSucceeded(E);
691
+ return !n.isSucceeded(E);
693
692
  }
694
693
  };
695
- 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";
696
- let g = c;
697
- var a = /* @__PURE__ */ ((t) => (t.COMMAND = "COMMAND", t.ERROR = "ERROR", t.EVENT = "EVENT", t.SOURCING = "SOURCING", t.STATE_EVENT = "STATE_EVENT", t))(a || {});
694
+ 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";
695
+ let g = n;
696
+ var w = /* @__PURE__ */ ((t) => (t.COMMAND = "COMMAND", t.ERROR = "ERROR", t.EVENT = "EVENT", t.SOURCING = "SOURCING", t.STATE_EVENT = "STATE_EVENT", t))(w || {});
698
697
  const wt = "";
699
698
  export {
700
- v as CommandClient,
699
+ K as CommandClient,
701
700
  M as CommandHttpHeaders,
702
- $ as CommandStage,
701
+ Y as CommandStage,
703
702
  C as ConditionOptionKey,
704
703
  wt as DEFAULT_OWNER_ID,
705
- o as DEFAULT_PAGINATION,
706
- q as DEFAULT_PROJECTION,
707
- Y as DeletionState,
704
+ O as DEFAULT_PAGINATION,
705
+ y as DEFAULT_PROJECTION,
706
+ B as DeletionState,
708
707
  W as DomainEventStreamMetadataFields,
709
- y as EMPTY_PAGED_LIST,
708
+ F as EMPTY_PAGED_LIST,
710
709
  g as ErrorCodes,
711
710
  xt as EventStreamQueryClient,
712
711
  D as EventStreamQueryEndpointPaths,
713
- a as FunctionKind,
712
+ w as FunctionKind,
714
713
  A as Operator,
715
- U as QueryClient,
716
- x as RecoverableType,
714
+ V as QueryClient,
715
+ a as RecoverableType,
717
716
  l as SnapshotMetadataFields,
718
717
  at as SnapshotQueryClient,
719
718
  r as SnapshotQueryEndpointPaths,
720
- F as SortDirection,
719
+ x as SortDirection,
721
720
  d as active,
722
721
  Q as aggregateId,
723
722
  Z as aggregateIds,
724
- O as all,
723
+ S as all,
725
724
  rt as allIn,
726
- K as and,
725
+ k as and,
727
726
  yt as asc,
728
727
  ht as beforeToday,
729
728
  Nt as between,
730
- nt as contains,
729
+ ct as contains,
731
730
  u as dateOptions,
732
- B as deleted,
731
+ q as deleted,
733
732
  Ft as desc,
734
733
  Pt as earlierDays,
735
734
  et as elemMatch,
736
735
  Rt as endsWith,
737
736
  tt as eq,
738
- Lt as exists,
737
+ ot as exists,
739
738
  Tt as gt,
740
739
  At as gte,
741
740
  H as id,
742
741
  j as ids,
743
742
  f as ignoreCaseOptions,
744
- ot as isFalse,
745
- ct as isIn,
743
+ Lt as isFalse,
744
+ nt as isIn,
746
745
  Dt as isNull,
747
746
  Ot as isTrue,
748
747
  lt as lastMonth,
@@ -755,7 +754,7 @@ export {
755
754
  z as nor,
756
755
  It as notIn,
757
756
  St as notNull,
758
- k as or,
757
+ v as or,
759
758
  m as ownerId,
760
759
  qt as pagedList,
761
760
  Bt as pagedQuery,