@ahoo-wang/fetcher-decorator 1.9.3 → 1.9.6

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 CHANGED
@@ -66,7 +66,7 @@ export class TypicodePostService {
66
66
 
67
67
  @get('/{postId}')
68
68
  getPost(@path('postId') postId: string): Promise<Post> {
69
- throw autoGeneratedError();
69
+ throw autoGeneratedError(postId);
70
70
  }
71
71
 
72
72
  @post('')
@@ -79,7 +79,7 @@ export class TypicodePostService {
79
79
  @path('postId') postId: string,
80
80
  @body() post: Post,
81
81
  ): Promise<Post> {
82
- throw autoGeneratedError();
82
+ throw autoGeneratedError(postId, post);
83
83
  }
84
84
 
85
85
  @patch('/{postId}')
@@ -87,12 +87,12 @@ export class TypicodePostService {
87
87
  @path('postId') postId: string,
88
88
  @body() post: Partial<Post>,
89
89
  ): Promise<Post> {
90
- throw autoGeneratedError();
90
+ throw autoGeneratedError(postId, post);
91
91
  }
92
92
 
93
93
  @del('/{postId}')
94
94
  deletePost(@path('postId') postId: string): Promise<object> {
95
- throw autoGeneratedError();
95
+ throw autoGeneratedError(postId);
96
96
  }
97
97
 
98
98
  @get('')
@@ -100,7 +100,7 @@ export class TypicodePostService {
100
100
  @query('userId') userId?: string,
101
101
  @query('completed') completed?: boolean,
102
102
  ): Promise<Post[]> {
103
- throw autoGeneratedError();
103
+ throw autoGeneratedError(userId, completed);
104
104
  }
105
105
  }
106
106
 
@@ -130,12 +130,12 @@ const userFetcher = new NamedFetcher('user', {
130
130
  class UserService {
131
131
  @post('/', { timeout: 5000 })
132
132
  createUser(@body() user: User): Promise<User> {
133
- throw new Error('Implementation will be generated automatically.');
133
+ throw autoGeneratedError(user);
134
134
  }
135
135
 
136
136
  @get('/{id}')
137
137
  getUser(@path() id: number, @query() include: string): Promise<User> {
138
- throw new Error('Implementation will be generated automatically.');
138
+ throw autoGeneratedError(id, include);
139
139
  }
140
140
  }
141
141
 
@@ -217,12 +217,12 @@ Defines an OPTIONS endpoint.
217
217
  class UserService {
218
218
  @get('/{id}', { timeout: 3000 })
219
219
  getUser(@path() id: number): Promise<User> {
220
- throw new Error('Implementation will be generated automatically.');
220
+ throw autoGeneratedError(id);
221
221
  }
222
222
 
223
223
  @post('/', { headers: { 'Content-Type': 'application/json' } })
224
224
  createUser(@body() user: User): Promise<Response> {
225
- throw new Error('Implementation will be generated automatically.');
225
+ throw autoGeneratedError(user);
226
226
  }
227
227
  }
228
228
  ```
@@ -276,17 +276,17 @@ class UserService {
276
276
  @query() limit: number,
277
277
  @header('Authorization') auth: string,
278
278
  ): Promise<Response> {
279
- throw new Error('Implementation will be generated automatically.');
279
+ throw autoGeneratedError(query, limit, auth);
280
280
  }
281
281
 
282
282
  @post('/users')
283
283
  createUsers(@request() request: FetcherRequest): Promise<Response> {
284
- throw new Error('Implementation will be generated automatically.');
284
+ throw autoGeneratedError(request);
285
285
  }
286
286
 
287
287
  @put('/{id}')
288
288
  updateUser(@path() id: number, @body() user: User): Promise<Response> {
289
- throw new Error('Implementation will be generated automatically.');
289
+ throw autoGeneratedError(id, user);
290
290
  }
291
291
  }
292
292
  ```
@@ -300,7 +300,7 @@ class UserService {
300
300
  class BaseService {
301
301
  @get('/status')
302
302
  getStatus(): Promise<Response> {
303
- throw new Error('Implementation will be generated automatically.');
303
+ throw autoGeneratedError();
304
304
  }
305
305
  }
306
306
 
@@ -308,7 +308,7 @@ class BaseService {
308
308
  class UserService extends BaseService {
309
309
  @get('/{id}')
310
310
  getUser(@path() id: number): Promise<Response> {
311
- throw new Error('Implementation will be generated automatically.');
311
+ throw autoGeneratedError(id);
312
312
  }
313
313
  }
314
314
  ```
@@ -324,7 +324,7 @@ class ComplexService {
324
324
  @header('X-Request-ID') requestId: string,
325
325
  @query() dryRun: boolean = false,
326
326
  ): Promise<Response> {
327
- throw new Error('Implementation will be generated automatically.');
327
+ throw autoGeneratedError(items, requestId, dryRun);
328
328
  }
329
329
  }
330
330
  ```
@@ -350,7 +350,7 @@ class UserService {
350
350
  // - Endpoint method (POST)
351
351
  // - Body parameter (user object)
352
352
  // - Any configuration from the request parameter
353
- throw new Error('Implementation will be generated automatically.');
353
+ throw autoGeneratedError(user, request);
354
354
  }
355
355
  }
356
356
  ```
@@ -372,7 +372,7 @@ const customFetcher = new Fetcher({ baseURL: 'https://custom-api.com' });
372
372
  class UserService {
373
373
  @get('/{id}', { fetcher: 'endpoint-level-fetcher' })
374
374
  getUser(@path() id: number): Promise<User> {
375
- throw new Error('Implementation will be generated automatically.');
375
+ throw autoGeneratedError(id);
376
376
  }
377
377
  }
378
378
 
@@ -412,13 +412,13 @@ class UserService {
412
412
  // Uses class-level JSON result extractor
413
413
  @get('/{id}')
414
414
  getUser(@path() id: number): Promise<User> {
415
- throw new Error('Implementation will be generated automatically.');
415
+ throw autoGeneratedError(id);
416
416
  }
417
417
 
418
418
  // Overrides with EventStream result extractor
419
419
  @get('/events', { resultExtractor: ResultExtractors.EventStream })
420
420
  getUserEvents(): Promise<ServerSentEventStream> {
421
- throw new Error('Implementation will be generated automatically.');
421
+ throw autoGeneratedError();
422
422
  }
423
423
 
424
424
  // Uses JsonEventStream result extractor for JSON event handling
@@ -426,7 +426,7 @@ class UserService {
426
426
  resultExtractor: ResultExtractors.JsonEventStream,
427
427
  })
428
428
  getJsonEvents(): Promise<JsonServerSentEventStream<MyDataType>> {
429
- throw new Error('Implementation will be generated automatically.');
429
+ throw autoGeneratedError();
430
430
  }
431
431
  }
432
432
  ```
package/README.zh-CN.md CHANGED
@@ -130,12 +130,12 @@ const userFetcher = new NamedFetcher('user', {
130
130
  class UserService {
131
131
  @post('/', { timeout: 5000 })
132
132
  createUser(@body() user: User): Promise<User> {
133
- throw new Error('实现将自动生成');
133
+ throw autoGeneratedError(user);
134
134
  }
135
135
 
136
136
  @get('/{id}')
137
137
  getUser(@path() id: number, @query() include: string): Promise<User> {
138
- throw new Error('实现将自动生成');
138
+ throw autoGeneratedError(id, include);
139
139
  }
140
140
  }
141
141
 
@@ -216,13 +216,13 @@ class ApiService {
216
216
  ```typescript
217
217
  class UserService {
218
218
  @get('/{id}', { timeout: 3000 })
219
- getUser(@path() id: number): Promise<Response> {
220
- throw new Error('实现将自动生成');
219
+ getUser(@path() id: number): Promise<User> {
220
+ throw autoGeneratedError(id);
221
221
  }
222
222
 
223
223
  @post('/', { headers: { 'Content-Type': 'application/json' } })
224
224
  createUser(@body() user: User): Promise<Response> {
225
- throw new Error('实现将自动生成');
225
+ throw autoGeneratedError(user);
226
226
  }
227
227
  }
228
228
  ```
@@ -271,17 +271,17 @@ class UserService {
271
271
  @query() limit: number,
272
272
  @header('Authorization') auth: string,
273
273
  ): Promise<Response> {
274
- throw new Error('实现将自动生成');
274
+ throw autoGeneratedError(query, limit, auth);
275
275
  }
276
276
 
277
277
  @post('/users')
278
278
  createUsers(@request() request: FetcherRequest): Promise<Response> {
279
- throw new Error('实现将自动生成');
279
+ throw autoGeneratedError(request);
280
280
  }
281
281
 
282
282
  @put('/{id}')
283
- updateUser(@path('id') id: number, @body() user: User): Promise<Response> {
284
- throw new Error('实现将自动生成');
283
+ updateUser(@path() id: number, @body() user: User): Promise<Response> {
284
+ throw autoGeneratedError(id, user);
285
285
  }
286
286
  }
287
287
  ```
@@ -295,7 +295,7 @@ class UserService {
295
295
  class BaseService {
296
296
  @get('/status')
297
297
  getStatus(): Promise<Response> {
298
- throw new Error('实现将自动生成');
298
+ throw autoGeneratedError();
299
299
  }
300
300
  }
301
301
 
@@ -303,7 +303,7 @@ class BaseService {
303
303
  class UserService extends BaseService {
304
304
  @get('/{id}')
305
305
  getUser(@path() id: number): Promise<Response> {
306
- throw new Error('实现将自动生成');
306
+ throw autoGeneratedError(id);
307
307
  }
308
308
  }
309
309
  ```
@@ -319,7 +319,7 @@ class ComplexService {
319
319
  @header('X-Request-ID') requestId: string,
320
320
  @query() dryRun: boolean = false,
321
321
  ): Promise<Response> {
322
- throw new Error('实现将自动生成');
322
+ throw autoGeneratedError(items, requestId, dryRun);
323
323
  }
324
324
  }
325
325
  ```
@@ -344,7 +344,7 @@ class UserService {
344
344
  // - 端点方法(POST)
345
345
  // - 请求体参数(user 对象)
346
346
  // - 来自 request 参数的任何配置
347
- throw new Error('实现将自动生成');
347
+ throw autoGeneratedError(user, request);
348
348
  }
349
349
  }
350
350
  ```
@@ -366,7 +366,7 @@ const customFetcher = new Fetcher({ baseURL: 'https://custom-api.com' });
366
366
  class UserService {
367
367
  @get('/{id}', { fetcher: 'endpoint-level-fetcher' })
368
368
  getUser(@path() id: number): Promise<User> {
369
- throw new Error('实现将自动生成');
369
+ throw autoGeneratedError(id);
370
370
  }
371
371
  }
372
372
 
@@ -406,13 +406,13 @@ class UserService {
406
406
  // 使用类级别的 JSON 结果提取器
407
407
  @get('/{id}')
408
408
  getUser(@path() id: number): Promise<User> {
409
- throw new Error('实现将自动生成');
409
+ throw autoGeneratedError(id);
410
410
  }
411
411
 
412
412
  // 使用 EventStream 结果提取器覆盖
413
413
  @get('/events', { resultExtractor: ResultExtractors.EventStream })
414
414
  getUserEvents(): Promise<ServerSentEventStream> {
415
- throw new Error('实现将自动生成');
415
+ throw autoGeneratedError();
416
416
  }
417
417
 
418
418
  // 使用 JsonEventStream 结果提取器处理 JSON 事件
@@ -420,7 +420,7 @@ class UserService {
420
420
  resultExtractor: ResultExtractors.JsonEventStream,
421
421
  })
422
422
  getJsonEvents(): Promise<JsonServerSentEventStream<MyDataType>> {
423
- throw new Error('实现将自动生成');
423
+ throw autoGeneratedError();
424
424
  }
425
425
  }
426
426
  ```
@@ -1,4 +1,7 @@
1
1
  import { AttributesCapable, Fetcher, FetcherCapable, RequestHeaders, RequestHeadersCapable, ResultExtractorCapable, TimeoutCapable } from '@ahoo-wang/fetcher';
2
+ import { RequestExecutor } from './requestExecutor';
3
+ import { FunctionMetadata } from './functionMetadata';
4
+ import { EndpointReturnTypeCapable } from './endpointReturnTypeCapable';
2
5
  /**
3
6
  * Metadata for class-level API configuration.
4
7
  *
@@ -6,7 +9,7 @@ import { AttributesCapable, Fetcher, FetcherCapable, RequestHeaders, RequestHead
6
9
  * These settings will be used as defaults for all endpoints within the class unless overridden
7
10
  * at the method level.
8
11
  */
9
- export interface ApiMetadata extends TimeoutCapable, RequestHeadersCapable, ResultExtractorCapable, FetcherCapable, AttributesCapable {
12
+ export interface ApiMetadata extends TimeoutCapable, RequestHeadersCapable, ResultExtractorCapable, FetcherCapable, AttributesCapable, EndpointReturnTypeCapable {
10
13
  /**
11
14
  * Base path for all endpoints in the class.
12
15
  *
@@ -37,6 +40,13 @@ export interface ApiMetadata extends TimeoutCapable, RequestHeadersCapable, Resu
37
40
  */
38
41
  fetcher?: string | Fetcher;
39
42
  }
43
+ export interface ApiMetadataCapable {
44
+ /**
45
+ * API metadata for the class.
46
+ */
47
+ readonly apiMetadata?: ApiMetadata;
48
+ }
40
49
  export declare const API_METADATA_KEY: unique symbol;
50
+ export declare function buildRequestExecutor(target: any, defaultFunctionMetadata: FunctionMetadata): RequestExecutor;
41
51
  export declare function api(basePath?: string, metadata?: Omit<ApiMetadata, 'basePath'>): <T extends new (...args: any[]) => any>(constructor: T) => T;
42
52
  //# sourceMappingURL=apiDecorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiDecorator.d.ts","sourceRoot":"","sources":["../src/apiDecorator.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,iBAAiB,EACtB,OAAO,EAAE,cAAc,EACvB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,kBAAkB,CAAC;AAG1B;;;;;;GAMG;AACH,MAAM,WAAW,WACf,SAAQ,cAAc,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EAAE,iBAAiB;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;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pC;AAED,eAAO,MAAM,gBAAgB,eAAyB,CAAC;AAyDvD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,GAAG,EACX,uBAAuB,EAAE,gBAAgB,GACxC,eAAe,CAuBjB;AAED,wBAAgB,GAAG,CACjB,QAAQ,GAAE,MAAW,EACrB,QAAQ,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,IAE3B,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,aAAa,CAAC,KAAG,CAAC,CAgB3E"}
@@ -0,0 +1,8 @@
1
+ export declare enum EndpointReturnType {
2
+ EXCHANGE = "Exchange",
3
+ RESULT = "Result"
4
+ }
5
+ export interface EndpointReturnTypeCapable {
6
+ returnType?: EndpointReturnType;
7
+ }
8
+ //# sourceMappingURL=endpointReturnTypeCapable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointReturnTypeCapable.d.ts","sourceRoot":"","sources":["../src/endpointReturnTypeCapable.ts"],"names":[],"mappings":"AAaA,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC"}
@@ -2,6 +2,7 @@ import { Fetcher, FetchExchangeInit, NamedCapable, ResultExtractor } from '@ahoo
2
2
  import { ApiMetadata } from './apiDecorator';
3
3
  import { EndpointMetadata } from './endpointDecorator';
4
4
  import { ParameterMetadata } from './parameterDecorator';
5
+ import { EndpointReturnType } from './endpointReturnTypeCapable';
5
6
  /**
6
7
  * Metadata container for a function with HTTP endpoint decorators.
7
8
  *
@@ -70,6 +71,7 @@ export declare class FunctionMetadata implements NamedCapable {
70
71
  resolveTimeout(): number | undefined;
71
72
  resolveResultExtractor(): ResultExtractor<any>;
72
73
  resolveAttributes(): Map<string, any>;
74
+ resolveEndpointReturnType(): EndpointReturnType;
73
75
  /**
74
76
  * Resolves the request configuration from the method arguments.
75
77
  *
@@ -117,6 +119,7 @@ export declare class FunctionMetadata implements NamedCapable {
117
119
  * ```
118
120
  */
119
121
  resolveExchangeInit(args: any[]): Required<Pick<FetchExchangeInit, 'request' | 'attributes'>>;
122
+ private processHttpParam;
120
123
  private processPathParam;
121
124
  private processQueryParam;
122
125
  private processHeaderParam;
@@ -146,6 +149,5 @@ export declare class FunctionMetadata implements NamedCapable {
146
149
  */
147
150
  private processRequestParam;
148
151
  private processAttributeParam;
149
- private processAttributesParam;
150
152
  }
151
153
  //# sourceMappingURL=functionMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functionMetadata.d.ts","sourceRoot":"","sources":["../src/functionMetadata.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,OAAO,EACP,KAAK,iBAAiB,EAGtB,YAAY,EAEZ,eAAe,EAEhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAmC,MAAM,sBAAsB,CAAC;AAG1F;;;;;;GAMG;AACH,qBAAa,gBAAiB,YAAW,YAAY;IACnD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,WAAW,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;IAE3B;;;;;;;;;;OAUG;IACH,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAE3C;;;;;;;OAOG;gBAED,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAQ5C;;;;;;;OAOG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;IACH,WAAW,CAAC,aAAa,CAAC,EAA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AC;IAE3C;;;;;;;OAOG;gBAED,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAQ5C;;;;;;;OAOG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;IACH,WAAW,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM;IAW3C;;;;;;;OAOG;IACH,cAAc,IAAI,MAAM,GAAG,SAAS;IAIpC,sBAAsB,IAAI,eAAe,CAAC,GAAG,CAAC;IAQ9C,iBAAiB,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAKrC,yBAAyB,IAAI,kBAAkB;IAI/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,mBAAmB,CACjB,IAAI,EAAE,GAAG,EAAE,GACV,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,YAAY,CAAC,CAAC;IAwE9D,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,kBAAkB;IAQ1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,qBAAqB;CAa9B"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './apiDecorator';
2
2
  export * from './endpointDecorator';
3
+ export * from './endpointReturnTypeCapable';
3
4
  export * from './functionMetadata';
4
5
  export * from './parameterDecorator';
5
6
  export * from './reflection';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}