@ahoo-wang/fetcher-wow 1.2.2 → 1.2.5

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,12 +1,7 @@
1
1
  import { ClientOptions } from '../types';
2
2
  import { CommandRequest } from './commandRequest';
3
- import { CommandResult } from './commandResult';
3
+ import { CommandResult, CommandResultEventStream } from './commandResult';
4
4
  import { ResultExtractor } from '@ahoo-wang/fetcher-decorator';
5
- /**
6
- * CommandResultEventStream represents a stream of command execution results.
7
- * It is a ReadableStream of JsonServerSentEvent containing CommandResult data.
8
- */
9
- export type CommandResultEventStream = ReadableStream<any>;
10
5
  /**
11
6
  * Command Client for sending commands to the server.
12
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"commandClient.d.ts","sourceRoot":"","sources":["../../src/command/commandClient.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAoB,MAAM,8BAA8B,CAAC;AAGjF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAoB,MAAM,8BAA8B,CAAC;AAGjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
package/dist/index.es.js CHANGED
@@ -322,7 +322,7 @@ class Yt extends l {
322
322
  }
323
323
  /**
324
324
  * Counts the number of domain event streams that match the given condition.
325
- *
325
+ *
326
326
  * @param condition - The condition to filter event streams
327
327
  * @returns A promise that resolves to the count of matching event streams
328
328
  *
@@ -337,7 +337,7 @@ class Yt extends l {
337
337
  }
338
338
  /**
339
339
  * Retrieves a list of domain event streams based on the provided query parameters.
340
- *
340
+ *
341
341
  * @param listQuery - The query parameters for listing event streams
342
342
  * @returns A promise that resolves to an array of partial domain event streams
343
343
  *
@@ -358,7 +358,7 @@ class Yt extends l {
358
358
  /**
359
359
  * Retrieves a stream of domain event streams based on the provided query parameters.
360
360
  * Sets the Accept header to text/event-stream to indicate that the response should be streamed.
361
- *
361
+ *
362
362
  * @param listQuery - The query parameters for listing event streams
363
363
  * @returns A promise that resolves to a readable stream of JSON server-sent events containing partial domain event streams
364
364
  *
@@ -384,7 +384,7 @@ class Yt extends l {
384
384
  }
385
385
  /**
386
386
  * Retrieves a paged list of domain event streams based on the provided query parameters.
387
- *
387
+ *
388
388
  * @param pagedQuery - The query parameters for paging event streams
389
389
  * @returns A promise that resolves to a paged list of partial domain event streams
390
390
  *
@@ -424,7 +424,7 @@ class Bt extends l {
424
424
  }
425
425
  /**
426
426
  * Counts the number of snapshots that match the given condition.
427
- *
427
+ *
428
428
  * @param condition - The condition to match snapshots against
429
429
  * @returns A promise that resolves to the count of matching snapshots
430
430
  *
@@ -439,7 +439,7 @@ class Bt extends l {
439
439
  }
440
440
  /**
441
441
  * Retrieves a list of materialized snapshots based on the provided query parameters.
442
- *
442
+ *
443
443
  * @param listQuery - The query parameters for listing snapshots
444
444
  * @returns A promise that resolves to an array of partial materialized snapshots
445
445
  *
@@ -459,7 +459,7 @@ class Bt extends l {
459
459
  }
460
460
  /**
461
461
  * Retrieves a stream of materialized snapshots based on the provided query parameters.
462
- *
462
+ *
463
463
  * @param listQuery - The query parameters for listing snapshots
464
464
  * @returns A promise that resolves to a readable stream of JSON server-sent events containing partial materialized snapshots
465
465
  *
@@ -485,7 +485,7 @@ class Bt extends l {
485
485
  }
486
486
  /**
487
487
  * Retrieves a list of snapshot states based on the provided query parameters.
488
- *
488
+ *
489
489
  * @param listQuery - The query parameters for listing snapshot states
490
490
  * @returns A promise that resolves to an array of partial snapshot states
491
491
  *
@@ -505,7 +505,7 @@ class Bt extends l {
505
505
  }
506
506
  /**
507
507
  * Retrieves a stream of snapshot states based on the provided query parameters.
508
- *
508
+ *
509
509
  * @param listQuery - The query parameters for listing snapshot states
510
510
  * @returns A promise that resolves to a readable stream of JSON server-sent events containing partial snapshot states
511
511
  *
@@ -531,7 +531,7 @@ class Bt extends l {
531
531
  }
532
532
  /**
533
533
  * Retrieves a paged list of materialized snapshots based on the provided query parameters.
534
- *
534
+ *
535
535
  * @param pagedQuery - The query parameters for paging snapshots
536
536
  * @returns A promise that resolves to a paged list of partial materialized snapshots
537
537
  *
@@ -554,7 +554,7 @@ class Bt extends l {
554
554
  }
555
555
  /**
556
556
  * Retrieves a paged list of snapshot states based on the provided query parameters.
557
- *
557
+ *
558
558
  * @param pagedQuery - The query parameters for paging snapshot states
559
559
  * @returns A promise that resolves to a paged list of partial snapshot states
560
560
  *
@@ -576,7 +576,7 @@ class Bt extends l {
576
576
  }
577
577
  /**
578
578
  * Retrieves a single materialized snapshot based on the provided query parameters.
579
- *
579
+ *
580
580
  * @param singleQuery - The query parameters for retrieving a single snapshot
581
581
  * @returns A promise that resolves to a partial materialized snapshot
582
582
  *
@@ -594,7 +594,7 @@ class Bt extends l {
594
594
  }
595
595
  /**
596
596
  * Retrieves a single snapshot state based on the provided query parameters.
597
- *
597
+ *
598
598
  * @param singleQuery - The query parameters for retrieving a single snapshot state
599
599
  * @returns A promise that resolves to a partial snapshot state
600
600
  *