@ahoo-wang/fetcher-wow 3.17.0 → 3.17.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.
- package/README.md +83 -62
- package/README.zh-CN.md +70 -51
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +622 -150
- package/dist/index.es.js.map +1 -1
- package/dist/query/condition.d.ts +52 -0
- package/dist/query/condition.d.ts.map +1 -1
- package/dist/query/cursorQuery.d.ts +10 -1
- package/dist/query/cursorQuery.d.ts.map +1 -1
- package/dist/query/event/eventStreamQueryClient.d.ts +21 -21
- package/dist/query/event/eventStreamQueryClient.d.ts.map +1 -1
- package/dist/query/filter.d.ts +204 -0
- package/dist/query/filter.d.ts.map +1 -0
- package/dist/query/index.d.ts +1 -0
- package/dist/query/index.d.ts.map +1 -1
- package/dist/query/locale/en_US.cjs.js.map +1 -1
- package/dist/query/locale/en_US.d.ts +1 -0
- package/dist/query/locale/en_US.d.ts.map +1 -1
- package/dist/query/locale/en_US.es.js.map +1 -1
- package/dist/query/locale/operatorLocale.d.ts +1 -0
- package/dist/query/locale/operatorLocale.d.ts.map +1 -1
- package/dist/query/locale/zh_CN.cjs.js.map +1 -1
- package/dist/query/locale/zh_CN.d.ts +1 -0
- package/dist/query/locale/zh_CN.d.ts.map +1 -1
- package/dist/query/locale/zh_CN.es.js.map +1 -1
- package/dist/query/operator.d.ts +3 -0
- package/dist/query/operator.d.ts.map +1 -1
- package/dist/query/queryApi.d.ts +9 -8
- package/dist/query/queryApi.d.ts.map +1 -1
- package/dist/query/queryable.d.ts +34 -4
- package/dist/query/queryable.d.ts.map +1 -1
- package/dist/query/snapshot/snapshotQueryApi.d.ts +5 -5
- package/dist/query/snapshot/snapshotQueryApi.d.ts.map +1 -1
- package/dist/query/snapshot/snapshotQueryClient.d.ts +40 -42
- package/dist/query/snapshot/snapshotQueryClient.d.ts.map +1 -1
- package/package.json +8 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SnapshotQueryApi } from './snapshotQueryApi';
|
|
2
2
|
import { Condition } from '../condition';
|
|
3
|
-
import {
|
|
3
|
+
import { FilterExpression } from '../filter';
|
|
4
|
+
import { ListQueryRequest, PagedList, PagedQueryRequest, SingleQueryRequest } from '../queryable';
|
|
4
5
|
import { MaterializedSnapshot } from './snapshot';
|
|
5
6
|
import { JsonServerSentEvent } from '@ahoo-wang/fetcher-eventstream';
|
|
6
7
|
import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
|
|
@@ -30,11 +31,11 @@ import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
|
|
|
30
31
|
* const snapshotQueryClient = new SnapshotQueryClient<CartState>(clientOptions);
|
|
31
32
|
*
|
|
32
33
|
* // Count snapshots
|
|
33
|
-
* const count = await snapshotQueryClient.count(
|
|
34
|
+
* const count = await snapshotQueryClient.count(filter.matchAll());
|
|
34
35
|
*
|
|
35
36
|
* // List snapshots
|
|
36
|
-
* const listQuery:
|
|
37
|
-
*
|
|
37
|
+
* const listQuery: FilterListQuery = {
|
|
38
|
+
* filter: filter.matchAll()
|
|
38
39
|
* };
|
|
39
40
|
* const list = await snapshotQueryClient.list(listQuery);
|
|
40
41
|
*
|
|
@@ -56,10 +57,9 @@ import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
|
|
|
56
57
|
* }
|
|
57
58
|
*
|
|
58
59
|
* // Paged snapshots
|
|
59
|
-
* const pagedQuery:
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* offset: 0
|
|
60
|
+
* const pagedQuery: FilterPagedQuery = {
|
|
61
|
+
* filter: filter.matchAll(),
|
|
62
|
+
* pagination: { index: 1, size: 10 }
|
|
63
63
|
* };
|
|
64
64
|
* const paged = await snapshotQueryClient.paged(pagedQuery);
|
|
65
65
|
*
|
|
@@ -67,8 +67,8 @@ import { ApiMetadata, ApiMetadataCapable } from '@ahoo-wang/fetcher-decorator';
|
|
|
67
67
|
* const pagedState = await snapshotQueryClient.pagedState(pagedQuery);
|
|
68
68
|
*
|
|
69
69
|
* // Single snapshot
|
|
70
|
-
* const singleQuery:
|
|
71
|
-
*
|
|
70
|
+
* const singleQuery: FilterSingleQuery = {
|
|
71
|
+
* filter: filter.matchAll()
|
|
72
72
|
* };
|
|
73
73
|
* const single = await snapshotQueryClient.single(singleQuery);
|
|
74
74
|
*
|
|
@@ -85,9 +85,9 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
85
85
|
*/
|
|
86
86
|
constructor(apiMetadata?: ApiMetadata | undefined);
|
|
87
87
|
/**
|
|
88
|
-
* Counts the number of snapshots that match the given
|
|
88
|
+
* Counts the number of snapshots that match the given filter.
|
|
89
89
|
*
|
|
90
|
-
* @param
|
|
90
|
+
* @param filter - The filter expression or legacy condition
|
|
91
91
|
* @param attributes - Optional shared attributes that can be accessed by interceptors
|
|
92
92
|
* throughout the request lifecycle. These attributes allow passing
|
|
93
93
|
* custom data between different interceptors.
|
|
@@ -96,11 +96,11 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
96
96
|
*
|
|
97
97
|
* @example
|
|
98
98
|
* ```typescript
|
|
99
|
-
* const count = await snapshotQueryClient.count(
|
|
99
|
+
* const count = await snapshotQueryClient.count(filter.matchAll());
|
|
100
100
|
* console.log('Total snapshots:', count);
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
count(
|
|
103
|
+
count(filter: FilterExpression<FIELDS> | Condition<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<number>;
|
|
104
104
|
/**
|
|
105
105
|
* Retrieves a list of materialized snapshots based on the provided query parameters.
|
|
106
106
|
*
|
|
@@ -113,8 +113,8 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
113
113
|
*
|
|
114
114
|
* @example
|
|
115
115
|
* ```typescript
|
|
116
|
-
* const listQuery:
|
|
117
|
-
*
|
|
116
|
+
* const listQuery: FilterListQuery = {
|
|
117
|
+
* filter: filter.matchAll()
|
|
118
118
|
* };
|
|
119
119
|
* const list = await snapshotQueryClient.list(listQuery);
|
|
120
120
|
* for (const snapshot of list) {
|
|
@@ -122,7 +122,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
122
122
|
* }
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
|
-
list<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery:
|
|
125
|
+
list<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery: ListQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<T[]>;
|
|
126
126
|
/**
|
|
127
127
|
* Retrieves a stream of materialized snapshots based on the provided query parameters.
|
|
128
128
|
*
|
|
@@ -135,8 +135,8 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
135
135
|
*
|
|
136
136
|
* @example
|
|
137
137
|
* ```typescript
|
|
138
|
-
* const listQuery:
|
|
139
|
-
*
|
|
138
|
+
* const listQuery: FilterListQuery = {
|
|
139
|
+
* filter: filter.matchAll()
|
|
140
140
|
* };
|
|
141
141
|
* const listStream = await snapshotQueryClient.listStream(listQuery);
|
|
142
142
|
* for await (const event of listStream) {
|
|
@@ -145,7 +145,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
145
145
|
* }
|
|
146
146
|
* ```
|
|
147
147
|
*/
|
|
148
|
-
listStream<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery:
|
|
148
|
+
listStream<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(listQuery: ListQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<ReadableStream<JsonServerSentEvent<T>>>;
|
|
149
149
|
/**
|
|
150
150
|
* Retrieves a list of snapshot states based on the provided query parameters.
|
|
151
151
|
*
|
|
@@ -158,8 +158,8 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
158
158
|
*
|
|
159
159
|
* @example
|
|
160
160
|
* ```typescript
|
|
161
|
-
* const listQuery:
|
|
162
|
-
*
|
|
161
|
+
* const listQuery: FilterListQuery = {
|
|
162
|
+
* filter: filter.matchAll()
|
|
163
163
|
* };
|
|
164
164
|
* const list = await snapshotQueryClient.listState(listQuery);
|
|
165
165
|
* for (const state of list) {
|
|
@@ -167,7 +167,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
167
167
|
* }
|
|
168
168
|
* ```
|
|
169
169
|
*/
|
|
170
|
-
listState<T extends Partial<S> = S>(listQuery:
|
|
170
|
+
listState<T extends Partial<S> = S>(listQuery: ListQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<T[]>;
|
|
171
171
|
/**
|
|
172
172
|
* Retrieves a stream of snapshot states based on the provided query parameters.
|
|
173
173
|
*
|
|
@@ -180,8 +180,8 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
180
180
|
*
|
|
181
181
|
* @example
|
|
182
182
|
* ```typescript
|
|
183
|
-
* const listQuery:
|
|
184
|
-
*
|
|
183
|
+
* const listQuery: FilterListQuery = {
|
|
184
|
+
* filter: filter.matchAll()
|
|
185
185
|
* };
|
|
186
186
|
* const listStream = await snapshotQueryClient.listStateStream(listQuery);
|
|
187
187
|
* for await (const event of listStream) {
|
|
@@ -190,7 +190,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
190
190
|
* }
|
|
191
191
|
* ```
|
|
192
192
|
*/
|
|
193
|
-
listStateStream<T extends Partial<S> = S>(listQuery:
|
|
193
|
+
listStateStream<T extends Partial<S> = S>(listQuery: ListQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<ReadableStream<JsonServerSentEvent<T>>>;
|
|
194
194
|
/**
|
|
195
195
|
* Retrieves a paged list of materialized snapshots based on the provided query parameters.
|
|
196
196
|
*
|
|
@@ -203,10 +203,9 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
203
203
|
*
|
|
204
204
|
* @example
|
|
205
205
|
* ```typescript
|
|
206
|
-
* const pagedQuery:
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* offset: 0
|
|
206
|
+
* const pagedQuery: FilterPagedQuery = {
|
|
207
|
+
* filter: filter.matchAll(),
|
|
208
|
+
* pagination: { index: 1, size: 10 }
|
|
210
209
|
* };
|
|
211
210
|
* const paged = await snapshotQueryClient.paged(pagedQuery);
|
|
212
211
|
* console.log('Total:', paged.total);
|
|
@@ -215,7 +214,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
215
214
|
* }
|
|
216
215
|
* ```
|
|
217
216
|
*/
|
|
218
|
-
paged<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(pagedQuery:
|
|
217
|
+
paged<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(pagedQuery: PagedQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<PagedList<T>>;
|
|
219
218
|
/**
|
|
220
219
|
* Retrieves a paged list of snapshot states based on the provided query parameters.
|
|
221
220
|
*
|
|
@@ -228,10 +227,9 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
228
227
|
*
|
|
229
228
|
* @example
|
|
230
229
|
* ```typescript
|
|
231
|
-
* const pagedQuery:
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* offset: 0
|
|
230
|
+
* const pagedQuery: FilterPagedQuery = {
|
|
231
|
+
* filter: filter.matchAll(),
|
|
232
|
+
* pagination: { index: 1, size: 10 }
|
|
235
233
|
* };
|
|
236
234
|
* const pagedState = await snapshotQueryClient.pagedState(pagedQuery);
|
|
237
235
|
* for (const state of pagedState.list) {
|
|
@@ -239,7 +237,7 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
239
237
|
* }
|
|
240
238
|
* ```
|
|
241
239
|
*/
|
|
242
|
-
pagedState<T extends Partial<S> = S>(pagedQuery:
|
|
240
|
+
pagedState<T extends Partial<S> = S>(pagedQuery: PagedQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<PagedList<T>>;
|
|
243
241
|
/**
|
|
244
242
|
* Retrieves a single materialized snapshot based on the provided query parameters.
|
|
245
243
|
*
|
|
@@ -252,14 +250,14 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
252
250
|
*
|
|
253
251
|
* @example
|
|
254
252
|
* ```typescript
|
|
255
|
-
* const singleQuery:
|
|
256
|
-
*
|
|
253
|
+
* const singleQuery: FilterSingleQuery = {
|
|
254
|
+
* filter: filter.matchAll()
|
|
257
255
|
* };
|
|
258
256
|
* const single = await snapshotQueryClient.single(singleQuery);
|
|
259
257
|
* console.log('Snapshot:', single);
|
|
260
258
|
* ```
|
|
261
259
|
*/
|
|
262
|
-
single<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(singleQuery:
|
|
260
|
+
single<T extends Partial<MaterializedSnapshot<S>> = MaterializedSnapshot<S>>(singleQuery: SingleQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<T>;
|
|
263
261
|
/**
|
|
264
262
|
* Retrieves a single snapshot state based on the provided query parameters.
|
|
265
263
|
*
|
|
@@ -272,14 +270,14 @@ export declare class SnapshotQueryClient<S, FIELDS extends string = string> impl
|
|
|
272
270
|
*
|
|
273
271
|
* @example
|
|
274
272
|
* ```typescript
|
|
275
|
-
* const singleQuery:
|
|
276
|
-
*
|
|
273
|
+
* const singleQuery: FilterSingleQuery = {
|
|
274
|
+
* filter: filter.matchAll()
|
|
277
275
|
* };
|
|
278
276
|
* const singleState = await snapshotQueryClient.singleState(singleQuery);
|
|
279
277
|
* console.log('State:', singleState);
|
|
280
278
|
* ```
|
|
281
279
|
*/
|
|
282
|
-
singleState<T extends Partial<S> = S>(singleQuery:
|
|
280
|
+
singleState<T extends Partial<S> = S>(singleQuery: SingleQueryRequest<FIELDS>, attributes?: Record<string, any>, abortController?: AbortController): Promise<T>;
|
|
283
281
|
/**
|
|
284
282
|
* Retrieves a single materialized snapshot by its ID.
|
|
285
283
|
*
|
|
@@ -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,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAEL,KAAK,
|
|
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,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAG1E,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAStC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,qBACa,mBAAmB,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM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
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/fetcher-wow",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.1",
|
|
4
4
|
"description": "Support for Wow(https://github.com/Ahoo-Wang/Wow) in Fetcher",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fetch",
|
|
@@ -58,22 +58,23 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@eslint/js": "^10.0.1",
|
|
61
|
-
"@vitest/coverage-v8": "^4.1.
|
|
62
|
-
"@vitest/ui": "^4.1.
|
|
63
|
-
"eslint": "^10.
|
|
61
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
62
|
+
"@vitest/ui": "^4.1.11",
|
|
63
|
+
"eslint": "^10.9.0",
|
|
64
64
|
"globals": "^17.11.0",
|
|
65
65
|
"prettier": "^3.9.6",
|
|
66
66
|
"typescript": "^6.0.3",
|
|
67
67
|
"typescript-eslint": "^8.67.0",
|
|
68
68
|
"unplugin-dts": "1.0.3",
|
|
69
|
-
"vite": "^8.2.
|
|
69
|
+
"vite": "^8.2.2",
|
|
70
70
|
"vite-bundle-analyzer": "^1.3.9",
|
|
71
|
-
"vitest": "^4.1.
|
|
71
|
+
"vitest": "^4.1.11"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "vite build",
|
|
75
75
|
"test:ui": "vitest --ui",
|
|
76
|
-
"test": "vitest run --coverage",
|
|
76
|
+
"test": "vitest run --coverage && pnpm test:type",
|
|
77
|
+
"test:type": "tsc --noEmit -p test/tsconfig.types.json",
|
|
77
78
|
"lint": "eslint . --fix",
|
|
78
79
|
"clean": "rm -rf dist",
|
|
79
80
|
"analyze": "npx vite-bundle-analyzer -p auto"
|