@ahoo-wang/fetcher-wow 1.9.8 → 2.0.1

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.
@@ -6,7 +6,7 @@ import { QueryApi } from '../queryApi';
6
6
  * as event stream queries typically work with collections of events rather than single events.
7
7
  * @template DomainEventStream - The type of domain event stream this API works with
8
8
  */
9
- export interface EventStreamQueryApi<FIELDS extends string = string> extends Omit<QueryApi<DomainEventStream, FIELDS>, 'single'> {
9
+ export interface EventStreamQueryApi<DomainEventBody = any, FIELDS extends string = string> extends Omit<QueryApi<DomainEventStream<DomainEventBody>, FIELDS>, 'single'> {
10
10
  }
11
11
  /**
12
12
  * Provides endpoint paths for event stream query operations.
@@ -1 +1 @@
1
- {"version":3,"file":"eventStreamQueryApi.d.ts","sourceRoot":"","sources":["../../../src/query/event/eventStreamQueryApi.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;GAKG;AAEH,MAAM,WAAW,mBAAmB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CACjE,SAAQ,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,qBAAa,6BAA6B;IACxC,MAAM,CAAC,QAAQ,CAAC,0BAA0B,WAAW;IACrD,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAuE;IAC5F,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAsE;IAC1F,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAuE;CAC7F"}
1
+ {"version":3,"file":"eventStreamQueryApi.d.ts","sourceRoot":"","sources":["../../../src/query/event/eventStreamQueryApi.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;GAKG;AAEH,MAAM,WAAW,mBAAmB,CAAC,eAAe,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM,CACxF,SAAQ,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC;CAC7E;AAED;;;;;;GAMG;AACH,qBAAa,6BAA6B;IACxC,MAAM,CAAC,QAAQ,CAAC,0BAA0B,WAAW;IACrD,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAuE;IAC5F,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAsE;IAC1F,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAuE;CAC7F"}
@@ -3,8 +3,7 @@ import { Condition } from '../condition';
3
3
  import { ListQuery, PagedList, PagedQuery } from '../queryable';
4
4
  import { DomainEventStream } from './domainEventStream';
5
5
  import { JsonServerSentEvent } from '@ahoo-wang/fetcher-eventstream';
6
- import { QueryClient } from '../queryApi';
7
- import { ClientOptions } from '../../types';
6
+ import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
8
7
  /**
9
8
  * Client for querying event streams through HTTP endpoints.
10
9
  * Extends QueryClient and implements EventStreamQueryApi to provide methods
@@ -45,12 +44,12 @@ import { ClientOptions } from '../../types';
45
44
  * const paged = await eventStreamQueryClient.paged(pagedQuery);
46
45
  * ```
47
46
  */
48
- export declare class EventStreamQueryClient<FIELDS extends string = string> extends QueryClient<FIELDS> implements EventStreamQueryApi<FIELDS> {
47
+ export declare class EventStreamQueryClient<DomainEventBody = any, FIELDS extends string = string> implements EventStreamQueryApi<DomainEventBody, FIELDS>, ApiMetadataCapable {
48
+ readonly apiMetadata?: ApiMetadata | undefined;
49
49
  /**
50
50
  * Creates a new EventStreamQueryClient instance.
51
- * @param options - The client configuration options including fetcher and base path
52
51
  */
53
- constructor(options: ClientOptions);
52
+ constructor(apiMetadata?: ApiMetadata | undefined);
54
53
  /**
55
54
  * Counts the number of domain event streams that match the given condition.
56
55
  *
@@ -87,7 +86,7 @@ export declare class EventStreamQueryClient<FIELDS extends string = string> exte
87
86
  * }
88
87
  * ```
89
88
  */
90
- list<T extends Partial<DomainEventStream> = Partial<DomainEventStream>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
89
+ list<T extends Partial<DomainEventStream<DomainEventBody>> = DomainEventStream<DomainEventBody>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
91
90
  /**
92
91
  * Retrieves a stream of domain event streams based on the provided query parameters.
93
92
  * Sets the Accept header to text/event-stream to indicate that the response should be streamed.
@@ -110,7 +109,7 @@ export declare class EventStreamQueryClient<FIELDS extends string = string> exte
110
109
  * }
111
110
  * ```
112
111
  */
113
- listStream<T extends Partial<DomainEventStream> = Partial<DomainEventStream>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
112
+ listStream<T extends Partial<DomainEventStream<DomainEventBody>> = DomainEventStream<DomainEventBody>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
114
113
  /**
115
114
  * Retrieves a paged list of domain event streams based on the provided query parameters.
116
115
  *
@@ -134,6 +133,6 @@ export declare class EventStreamQueryClient<FIELDS extends string = string> exte
134
133
  * }
135
134
  * ```
136
135
  */
137
- paged<T extends Partial<DomainEventStream> = Partial<DomainEventStream>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
136
+ paged<T extends Partial<DomainEventStream<DomainEventBody>> = DomainEventStream<DomainEventBody>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
138
137
  }
139
138
  //# sourceMappingURL=eventStreamQueryClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eventStream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} from './condition';
4
- import { ClientOptions } from '../types';
5
- import { RequestOptions } from '@ahoo-wang/fetcher';
6
- export declare const JSON_QUERY_REQUEST_OPTIONS: RequestOptions;
7
- export declare const JSON_EVENT_STREAM_QUERY_REQUEST_OPTIONS: RequestOptions;
8
4
  /**
9
5
  * Interface for generic query API operations.
10
6
  * Provides methods for querying resources in different ways including single item retrieval,
@@ -23,7 +19,7 @@ export interface QueryApi<R, FIELDS extends string = string> {
23
19
  * custom data between different interceptors.
24
20
  * @returns A promise that resolves to a partial resource
25
21
  */
26
- single<T extends Partial<R> = Partial<R>>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
22
+ single<T extends Partial<R> = R>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
27
23
  /**
28
24
  * Retrieves a list of resources based on the provided query parameters.
29
25
  * @param listQuery - The query parameters for listing resources
@@ -32,7 +28,7 @@ export interface QueryApi<R, FIELDS extends string = string> {
32
28
  * custom data between different interceptors.
33
29
  * @returns A promise that resolves to an array of partial resources
34
30
  */
35
- list<T extends Partial<R> = Partial<R>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
31
+ list<T extends Partial<R> = R>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
36
32
  /**
37
33
  * Retrieves a stream of resources based on the provided query parameters.
38
34
  * @param listQuery - The query parameters for listing resources
@@ -41,7 +37,7 @@ export interface QueryApi<R, FIELDS extends string = string> {
41
37
  * custom data between different interceptors.
42
38
  * @returns A promise that resolves to a readable stream of JSON server-sent events containing partial resources
43
39
  */
44
- listStream<T extends Partial<R> = Partial<R>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
40
+ listStream<T extends Partial<R> = R>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
45
41
  /**
46
42
  * Retrieves a paged list of resources based on the provided query parameters.
47
43
  * @param pagedQuery - The query parameters for paging resources
@@ -50,7 +46,7 @@ export interface QueryApi<R, FIELDS extends string = string> {
50
46
  * custom data between different interceptors.
51
47
  * @returns A promise that resolves to a paged list of partial resources
52
48
  */
53
- paged<T extends Partial<R> = Partial<R>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
49
+ paged<T extends Partial<R> = R>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
54
50
  /**
55
51
  * Counts the number of resources that match the given condition.
56
52
  * @param condition - The condition to filter resources
@@ -61,35 +57,4 @@ export interface QueryApi<R, FIELDS extends string = string> {
61
57
  */
62
58
  count(condition: Condition<FIELDS>, attributes?: Record<string, any>): Promise<number>;
63
59
  }
64
- /**
65
- * Base client for performing query operations.
66
- * Provides a generic query method that handles the common logic for sending requests
67
- * and processing responses for different types of queries.
68
- *
69
- * @see {@link EventStreamQueryClient}
70
- * @see {@link SnapshotQueryClient}
71
- */
72
- export declare class QueryClient<FIELDS extends string = string> {
73
- protected readonly options: ClientOptions;
74
- /**
75
- * Creates a new QueryClient instance.
76
- * @param options - The client configuration options including fetcher and base path
77
- */
78
- constructor(options: ClientOptions);
79
- /**
80
- * Performs a generic query operation by sending a request to the specified path.
81
- * @template R The return type of the query
82
- * @param path - The endpoint path to query
83
- * @param query - The query parameters to send
84
- * @param accept - The content type to accept from the server, defaults to application/json
85
- * @param options - Request options including result extractor and attributes
86
- * @param options.resultExtractor - Function to extract the desired result from the exchange.
87
- * Defaults to JsonResultExtractor which returns the entire exchange object.
88
- * @param options.attributes - Optional shared attributes that can be accessed by interceptors
89
- * throughout the request lifecycle. These attributes allow passing
90
- * custom data between different interceptors.
91
- * @returns A promise that resolves to the query result
92
- */
93
- protected query<R>(path: string, query: Condition<FIELDS> | ListQuery<FIELDS> | PagedQuery<FIELDS> | SingleQuery<FIELDS>, options?: RequestOptions, accept?: string): Promise<R>;
94
- }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U,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB"}
@@ -17,7 +17,7 @@ export interface SnapshotQueryApi<S, FIELDS extends string = string> extends Que
17
17
  * custom data between different interceptors.
18
18
  * @returns A promise that resolves to a partial snapshot state
19
19
  */
20
- singleState<T extends Partial<S> = Partial<S>>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
20
+ singleState<T extends Partial<S> = S>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
21
21
  /**
22
22
  * Retrieves a list of snapshot states based on the provided query parameters.
23
23
  * @param listQuery - The query parameters for listing snapshot states
@@ -26,7 +26,7 @@ export interface SnapshotQueryApi<S, FIELDS extends string = string> extends Que
26
26
  * custom data between different interceptors.
27
27
  * @returns A promise that resolves to an array of partial snapshot states
28
28
  */
29
- listState<T extends Partial<S> = Partial<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
29
+ listState<T extends Partial<S> = S>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
30
30
  /**
31
31
  * Retrieves a stream of snapshot states based on the provided query parameters.
32
32
  * @param listQuery - The query parameters for listing snapshot states
@@ -35,7 +35,7 @@ export interface SnapshotQueryApi<S, FIELDS extends string = string> extends Que
35
35
  * custom data between different interceptors.
36
36
  * @returns A promise that resolves to a readable stream of JSON server-sent events containing partial snapshot states
37
37
  */
38
- listStateStream<T extends Partial<S> = Partial<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
38
+ listStateStream<T extends Partial<S> = S>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
39
39
  /**
40
40
  * Retrieves a paged list of snapshot states based on the provided query parameters.
41
41
  * @param pagedQuery - The query parameters for paging snapshot states
@@ -44,7 +44,7 @@ export interface SnapshotQueryApi<S, FIELDS extends string = string> extends Que
44
44
  * custom data between different interceptors.
45
45
  * @returns A promise that resolves to a paged list of partial snapshot states
46
46
  */
47
- pagedState<T extends Partial<S> = Partial<S>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
47
+ pagedState<T extends Partial<S> = S>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
48
48
  }
49
49
  /**
50
50
  * Provides endpoint paths for snapshot query operations.
@@ -1 +1 @@
1
- {"version":3,"file":"snapshotQueryApi.d.ts","sourceRoot":"","sources":["../../../src/query/snapshot/snapshotQueryApi.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IACpH;;;;;;;OAOG;IACH,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAC3C,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAChC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC/B,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EACzC,SAAS,EAAE,SAAS,CAA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E,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC/B,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,cAAc;IACpD,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAgE;IACrF,MAAM,CAAC,QAAQ,CAAC,IAAI,SAA+D;IACnF,MAAM,CAAC,QAAQ,CAAC,UAAU,SAA8C;IACxE,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAgE;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA+C;IAC1E,MAAM,CAAC,QAAQ,CAAC,MAAM,SAAiE;IACvF,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAgD;CAC7E"}
@@ -3,8 +3,7 @@ import { Condition } from '../condition';
3
3
  import { ListQuery, PagedList, PagedQuery, SingleQuery } from '../queryable';
4
4
  import { MaterializedSnapshot } from './snapshot';
5
5
  import { JsonServerSentEvent } from '@ahoo-wang/fetcher-eventstream';
6
- import { ClientOptions } from '../../types';
7
- import { QueryClient } from '../queryApi';
6
+ import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
8
7
  /**
9
8
  * A client for querying snapshot data through HTTP endpoints.
10
9
  * Provides methods for various query operations such as counting, listing, paging, and retrieving single snapshots.
@@ -79,12 +78,12 @@ import { QueryClient } from '../queryApi';
79
78
  *
80
79
  * @template S The type of the snapshot state
81
80
  */
82
- export declare class SnapshotQueryClient<S, FIELDS extends string = string> extends QueryClient<FIELDS> implements SnapshotQueryApi<S, FIELDS> {
81
+ export declare class SnapshotQueryClient<S, FIELDS extends string = string> implements SnapshotQueryApi<S, FIELDS>, ApiMetadataCapable {
82
+ readonly apiMetadata?: ApiMetadata | undefined;
83
83
  /**
84
84
  * Creates a new SnapshotQueryClient instance.
85
- * @param options - The configuration options for the client
86
85
  */
87
- constructor(options: ClientOptions);
86
+ constructor(apiMetadata?: ApiMetadata | undefined);
88
87
  /**
89
88
  * Counts the number of snapshots that match the given condition.
90
89
  *
@@ -121,7 +120,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
121
120
  * }
122
121
  * ```
123
122
  */
124
- list<T extends Partial<MaterializedSnapshot<S>> = Partial<MaterializedSnapshot<S>>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
123
+ list<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
125
124
  /**
126
125
  * Retrieves a stream of materialized snapshots based on the provided query parameters.
127
126
  *
@@ -143,7 +142,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
143
142
  * }
144
143
  * ```
145
144
  */
146
- listStream<T extends Partial<MaterializedSnapshot<S>> = Partial<MaterializedSnapshot<S>>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
145
+ listStream<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
147
146
  /**
148
147
  * Retrieves a list of snapshot states based on the provided query parameters.
149
148
  *
@@ -164,7 +163,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
164
163
  * }
165
164
  * ```
166
165
  */
167
- listState<T extends Partial<S> = Partial<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
166
+ listState<T extends Partial<S> = S>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<T[]>;
168
167
  /**
169
168
  * Retrieves a stream of snapshot states based on the provided query parameters.
170
169
  *
@@ -186,7 +185,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
186
185
  * }
187
186
  * ```
188
187
  */
189
- listStateStream<T extends Partial<S> = Partial<S>>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
188
+ listStateStream<T extends Partial<S> = S>(listQuery: ListQuery<FIELDS>, attributes?: Record<string, any>): Promise<ReadableStream<JsonServerSentEvent<T>>>;
190
189
  /**
191
190
  * Retrieves a paged list of materialized snapshots based on the provided query parameters.
192
191
  *
@@ -210,7 +209,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
210
209
  * }
211
210
  * ```
212
211
  */
213
- paged<T extends Partial<MaterializedSnapshot<S>> = Partial<MaterializedSnapshot<S>>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
212
+ paged<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
214
213
  /**
215
214
  * Retrieves a paged list of snapshot states based on the provided query parameters.
216
215
  *
@@ -233,7 +232,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
233
232
  * }
234
233
  * ```
235
234
  */
236
- pagedState<T extends Partial<S> = Partial<S>>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
235
+ pagedState<T extends Partial<S> = S>(pagedQuery: PagedQuery<FIELDS>, attributes?: Record<string, any>): Promise<PagedList<T>>;
237
236
  /**
238
237
  * Retrieves a single materialized snapshot based on the provided query parameters.
239
238
  *
@@ -252,7 +251,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
252
251
  * console.log('Snapshot:', single);
253
252
  * ```
254
253
  */
255
- single<T extends Partial<MaterializedSnapshot<S>> = Partial<MaterializedSnapshot<S>>>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
254
+ single<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
256
255
  /**
257
256
  * Retrieves a single snapshot state based on the provided query parameters.
258
257
  *
@@ -271,6 +270,6 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> exte
271
270
  * console.log('State:', singleState);
272
271
  * ```
273
272
  */
274
- singleState<T extends Partial<S> = Partial<S>>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
273
+ singleState<T extends Partial<S> = S>(singleQuery: SingleQuery<FIELDS>, attributes?: Record<string, any>): Promise<T>;
275
274
  }
276
275
  //# sourceMappingURL=snapshotQueryClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshotQueryClient.d.ts","sourceRoot":"","sources":["../../../src/query/snapshot/snapshotQueryClient.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAEL,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAEL,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,qBAAa,mBAAmB,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM,CAChE,SAAQ,WAAW,CAAC,MAAM,CAC1B,YAAW,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC;IACtC;;;OAGG;gBACS,OAAO,EAAE,aAAa;IAIlC;;;;;;;;;;;;;;OAcG;IACG,KAAK,CACT,SAAS,EAAE,SAA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AG,CAAC,EACzB,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,EACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC5C,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAIxB;;;;;;;;;;;;;;;;;OAiBG;IAEH,MAAM,CACJ,CAAC,SAAS,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAC5D,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI5D;;;;;;;;;;;;;;;;;OAiBG;IAEH,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAC1B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC5C,OAAO,CAAC,CAAC,CAAC;CAGd"}
@@ -3,7 +3,7 @@
3
3
  * Defines common path parameters and allows for additional custom parameters.
4
4
  * This interface is used to provide path variables for URL templating.
5
5
  */
6
- export interface PathParams {
6
+ export interface UrlPathParams {
7
7
  /**
8
8
  * Tenant identifier parameter.
9
9
  * Used in multi-tenant applications to identify the tenant context.
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/types/endpoints.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC"}
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/types/endpoints.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC"}
@@ -1,4 +1,3 @@
1
- export * from './client';
2
1
  export * from './common';
3
2
  export * from './error';
4
3
  export * from './function';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahoo-wang/fetcher-wow",
3
- "version": "1.9.8",
3
+ "version": "2.0.1",
4
4
  "description": "Support for Wow(https://github.com/Ahoo-Wang/Wow) in Fetcher",
5
5
  "keywords": [
6
6
  "fetch",
@@ -38,8 +38,9 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@ahoo-wang/fetcher": "1.9.8",
42
- "@ahoo-wang/fetcher-eventstream": "1.9.8"
41
+ "@ahoo-wang/fetcher": "2.0.1",
42
+ "@ahoo-wang/fetcher-decorator": "2.0.1",
43
+ "@ahoo-wang/fetcher-eventstream": "2.0.1"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@eslint/js": "^9.36.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"commandHttpHeaders.d.ts","sourceRoot":"","sources":["../../src/command/commandHttpHeaders.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,kBAAkB;IAC7B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,cAAc;IAEpD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,SAAS,SAA2D;IAEpF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAA0D;IAElF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,SAA8D;IAE1F;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,iBAAiB,SAAmE;IAEpG;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAuD;IAElF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,SAA8C;IAG3E;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,UAAU,SAA4C;IAEtE;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,SAA8C;IAE1E;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAgD;IAE9E;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,SAA+C;IAI5E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAA4C;IAE5E;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,eAAe,SAAiD;IAEhF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,iBAAiB,SAAmD;IAEpF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,mBAAmB,SAAqD;IAExF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,SAAoD;IAGtF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,UAAU,SAA4D;IAEtF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA6D;IAExF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,yBAAyB,SAAmE;IAE5G;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,SAAgE;IAEtG;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAsD;IAElF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,uBAAuB,SAAyD;CACjG"}
@@ -1,15 +0,0 @@
1
- import { Fetcher } from '@ahoo-wang/fetcher';
2
- /**
3
- * Configuration options for the Client.
4
- */
5
- export interface ClientOptions {
6
- /**
7
- * The fetcher instance used to make HTTP requests.
8
- */
9
- fetcher: Fetcher;
10
- /**
11
- * The base URL path for all endpoints.
12
- */
13
- basePath: string;
14
- }
15
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/types/client.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}