@ahoo-wang/fetcher-decorator 1.9.8 → 2.0.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.
- package/dist/functionMetadata.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +133 -143
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/requestExecutor.d.ts +8 -3
- package/dist/requestExecutor.d.ts.map +1 -1
- package/package.json +2 -3
- package/dist/resultExtractor.d.ts +0 -23
- package/dist/resultExtractor.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionMetadata.d.ts","sourceRoot":"","sources":["../src/functionMetadata.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,OAAO,EACP,KAAK,iBAAiB,EAKtB,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,EACL,iBAAiB,EAGlB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"functionMetadata.d.ts","sourceRoot":"","sources":["../src/functionMetadata.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,OAAO,EACP,KAAK,iBAAiB,EAKtB,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,EACL,iBAAiB,EAGlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE;;;;;;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,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
package/dist/index.d.ts.map
CHANGED
|
@@ -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,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,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"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { HttpMethod as u,
|
|
1
|
+
import { HttpMethod as u, getFetcher as O, combineURLs as D, JsonResultExtractor as H, mergeRecordToMap as l, mergeRequest as w } from "@ahoo-wang/fetcher";
|
|
2
2
|
import "reflect-metadata";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function p(t, e, r = {}) {
|
|
3
|
+
const x = Symbol("endpoint:metadata");
|
|
4
|
+
function h(t, e, r = {}) {
|
|
6
5
|
return function(n, s) {
|
|
7
6
|
const a = {
|
|
8
7
|
method: t,
|
|
@@ -10,37 +9,37 @@ function p(t, e, r = {}) {
|
|
|
10
9
|
...r
|
|
11
10
|
};
|
|
12
11
|
Reflect.defineMetadata(
|
|
13
|
-
|
|
12
|
+
x,
|
|
14
13
|
a,
|
|
15
14
|
n,
|
|
16
15
|
s
|
|
17
16
|
);
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
19
|
+
function z(t = "", e = {}) {
|
|
20
|
+
return h(u.GET, t, e);
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
22
|
+
function Z(t = "", e = {}) {
|
|
23
|
+
return h(u.POST, t, e);
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
function F(t = "", e = {}) {
|
|
26
|
+
return h(u.PUT, t, e);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
28
|
+
function tt(t = "", e = {}) {
|
|
29
|
+
return h(u.DELETE, t, e);
|
|
31
30
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
function et(t = "", e = {}) {
|
|
32
|
+
return h(u.PATCH, t, e);
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
function rt(t = "", e = {}) {
|
|
35
|
+
return h(u.HEAD, t, e);
|
|
37
36
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
37
|
+
function nt(t = "", e = {}) {
|
|
38
|
+
return h(u.OPTIONS, t, e);
|
|
40
39
|
}
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
class
|
|
40
|
+
var b = /* @__PURE__ */ ((t) => (t.EXCHANGE = "Exchange", t.RESULT = "Result", t))(b || {});
|
|
41
|
+
const I = "__decorator_target__", U = "__decorator_metadata__";
|
|
42
|
+
class C {
|
|
44
43
|
/**
|
|
45
44
|
* Creates a new RequestExecutor instance.
|
|
46
45
|
* @param target - The target object that the method is called on.
|
|
@@ -88,60 +87,60 @@ class Y {
|
|
|
88
87
|
*/
|
|
89
88
|
async execute(e) {
|
|
90
89
|
const r = this.metadata.fetcher, n = this.metadata.resolveExchangeInit(e);
|
|
91
|
-
n.attributes?.set(
|
|
90
|
+
n.attributes?.set(I, this.target), n.attributes?.set(U, this.metadata);
|
|
92
91
|
const s = this.metadata.resolveResultExtractor(), a = this.metadata.resolveEndpointReturnType(), o = await r.exchange(n.request, {
|
|
93
92
|
resultExtractor: s,
|
|
94
93
|
attributes: n.attributes
|
|
95
94
|
});
|
|
96
|
-
return a ===
|
|
95
|
+
return a === b.EXCHANGE ? o : o.extractResult();
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
|
-
const
|
|
100
|
-
function
|
|
98
|
+
const m = /* @__PURE__ */ new WeakMap();
|
|
99
|
+
function N(t) {
|
|
101
100
|
if (typeof t != "function")
|
|
102
101
|
throw new TypeError("Expected a function");
|
|
103
|
-
if (
|
|
104
|
-
return
|
|
102
|
+
if (m.has(t))
|
|
103
|
+
return m.get(t);
|
|
105
104
|
try {
|
|
106
|
-
const e = t.toString().trim(), r =
|
|
107
|
-
if (!
|
|
105
|
+
const e = t.toString().trim(), r = G(e);
|
|
106
|
+
if (!k(r)) {
|
|
108
107
|
const s = [];
|
|
109
|
-
return
|
|
108
|
+
return m.set(t, s), s;
|
|
110
109
|
}
|
|
111
|
-
const n =
|
|
112
|
-
return
|
|
110
|
+
const n = S(r);
|
|
111
|
+
return m.set(t, n), n;
|
|
113
112
|
} catch {
|
|
114
113
|
const e = [];
|
|
115
|
-
return
|
|
114
|
+
return m.set(t, e), e;
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function Y(t, e, r, n) {
|
|
119
118
|
if (n)
|
|
120
119
|
return n;
|
|
121
120
|
try {
|
|
122
121
|
const s = t[e];
|
|
123
122
|
if (s && typeof s == "function") {
|
|
124
|
-
const a =
|
|
123
|
+
const a = N(s);
|
|
125
124
|
if (r < a.length)
|
|
126
125
|
return a[r];
|
|
127
126
|
}
|
|
128
127
|
} catch {
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function k(t) {
|
|
132
131
|
return t != null && t.trim() !== "";
|
|
133
132
|
}
|
|
134
|
-
function
|
|
133
|
+
function G(t) {
|
|
135
134
|
if (t.startsWith("(")) {
|
|
136
|
-
const n =
|
|
135
|
+
const n = T(t, 0);
|
|
137
136
|
return n === -1 ? "" : t.substring(1, n);
|
|
138
137
|
}
|
|
139
138
|
const e = t.indexOf("(");
|
|
140
139
|
if (e === -1) return "";
|
|
141
|
-
const r =
|
|
140
|
+
const r = T(t, e);
|
|
142
141
|
return r === -1 ? "" : t.substring(e + 1, r);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function T(t, e) {
|
|
145
144
|
let r = 1;
|
|
146
145
|
for (let n = e + 1; n < t.length; n++) {
|
|
147
146
|
const s = t[n];
|
|
@@ -152,83 +151,74 @@ function A(t, e) {
|
|
|
152
151
|
}
|
|
153
152
|
return -1;
|
|
154
153
|
}
|
|
155
|
-
function
|
|
156
|
-
return t.split(",").map(
|
|
154
|
+
function S(t) {
|
|
155
|
+
return t.split(",").map(B).filter(Q).map(v);
|
|
157
156
|
}
|
|
158
|
-
function
|
|
157
|
+
function B(t) {
|
|
159
158
|
return t.trim();
|
|
160
159
|
}
|
|
161
|
-
function
|
|
160
|
+
function Q(t) {
|
|
162
161
|
return t.length > 0;
|
|
163
162
|
}
|
|
164
|
-
function
|
|
165
|
-
let e =
|
|
166
|
-
return e =
|
|
163
|
+
function v(t) {
|
|
164
|
+
let e = j(t);
|
|
165
|
+
return e = L(e), e.trim();
|
|
167
166
|
}
|
|
168
|
-
function
|
|
167
|
+
function j(t) {
|
|
169
168
|
const e = t.indexOf("=");
|
|
170
169
|
return e !== -1 ? t.substring(0, e) : t;
|
|
171
170
|
}
|
|
172
|
-
function
|
|
171
|
+
function L(t) {
|
|
173
172
|
const e = t.indexOf(":");
|
|
174
173
|
return e !== -1 ? t.substring(0, e) : t;
|
|
175
174
|
}
|
|
176
175
|
var c = /* @__PURE__ */ ((t) => (t.PATH = "path", t.QUERY = "query", t.HEADER = "header", t.BODY = "body", t.REQUEST = "request", t.ATTRIBUTE = "attribute", t))(c || {});
|
|
177
|
-
const
|
|
178
|
-
function
|
|
176
|
+
const P = Symbol("parameter:metadata");
|
|
177
|
+
function f(t, e = "") {
|
|
179
178
|
return function(r, n, s) {
|
|
180
|
-
const a =
|
|
179
|
+
const a = Y(
|
|
181
180
|
r,
|
|
182
181
|
n,
|
|
183
182
|
s,
|
|
184
183
|
e
|
|
185
|
-
), o = Reflect.getMetadata(
|
|
184
|
+
), o = Reflect.getMetadata(P, r, n) || /* @__PURE__ */ new Map(), p = {
|
|
186
185
|
type: t,
|
|
187
186
|
name: a,
|
|
188
187
|
index: s
|
|
189
188
|
};
|
|
190
|
-
o.set(s,
|
|
191
|
-
|
|
189
|
+
o.set(s, p), Reflect.defineMetadata(
|
|
190
|
+
P,
|
|
192
191
|
o,
|
|
193
192
|
r,
|
|
194
193
|
n
|
|
195
194
|
);
|
|
196
195
|
};
|
|
197
196
|
}
|
|
198
|
-
function
|
|
199
|
-
return
|
|
197
|
+
function st(t = "") {
|
|
198
|
+
return f("path", t);
|
|
200
199
|
}
|
|
201
|
-
function
|
|
202
|
-
return
|
|
200
|
+
function at(t = "") {
|
|
201
|
+
return f("query", t);
|
|
203
202
|
}
|
|
204
|
-
function
|
|
205
|
-
return
|
|
203
|
+
function ot(t = "") {
|
|
204
|
+
return f("header", t);
|
|
206
205
|
}
|
|
207
|
-
function
|
|
208
|
-
return
|
|
206
|
+
function it() {
|
|
207
|
+
return f(
|
|
209
208
|
"body"
|
|
210
209
|
/* BODY */
|
|
211
210
|
);
|
|
212
211
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
212
|
+
function ct() {
|
|
213
|
+
return f(
|
|
215
214
|
"request"
|
|
216
215
|
/* REQUEST */
|
|
217
216
|
);
|
|
218
217
|
}
|
|
219
|
-
function
|
|
220
|
-
return
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
Exchange: O,
|
|
224
|
-
Response: w,
|
|
225
|
-
Json: T,
|
|
226
|
-
Text: _,
|
|
227
|
-
EventStream: N,
|
|
228
|
-
JsonEventStream: v,
|
|
229
|
-
DEFAULT: T
|
|
230
|
-
};
|
|
231
|
-
class y {
|
|
218
|
+
function ut(t = "") {
|
|
219
|
+
return f("attribute", t);
|
|
220
|
+
}
|
|
221
|
+
class g {
|
|
232
222
|
/**
|
|
233
223
|
* Creates a new FunctionMetadata instance.
|
|
234
224
|
*
|
|
@@ -249,7 +239,7 @@ class y {
|
|
|
249
239
|
* @returns The fetcher instance
|
|
250
240
|
*/
|
|
251
241
|
get fetcher() {
|
|
252
|
-
return
|
|
242
|
+
return O(this.endpoint.fetcher ?? this.api.fetcher);
|
|
253
243
|
}
|
|
254
244
|
/**
|
|
255
245
|
* Resolves the complete path by combining base path and endpoint path
|
|
@@ -259,7 +249,7 @@ class y {
|
|
|
259
249
|
*/
|
|
260
250
|
resolvePath(e) {
|
|
261
251
|
const r = this.endpoint.basePath || this.api.basePath || "", n = e || this.endpoint.path || "";
|
|
262
|
-
return
|
|
252
|
+
return D(r, n);
|
|
263
253
|
}
|
|
264
254
|
/**
|
|
265
255
|
* Resolves the timeout for the request.
|
|
@@ -273,14 +263,14 @@ class y {
|
|
|
273
263
|
return this.endpoint.timeout || this.api.timeout;
|
|
274
264
|
}
|
|
275
265
|
resolveResultExtractor() {
|
|
276
|
-
return this.endpoint.resultExtractor || this.api.resultExtractor ||
|
|
266
|
+
return this.endpoint.resultExtractor || this.api.resultExtractor || H;
|
|
277
267
|
}
|
|
278
268
|
resolveAttributes() {
|
|
279
269
|
const e = l(this.api.attributes);
|
|
280
270
|
return l(this.endpoint.attributes, e);
|
|
281
271
|
}
|
|
282
272
|
resolveEndpointReturnType() {
|
|
283
|
-
return this.endpoint.returnType || this.api.returnType ||
|
|
273
|
+
return this.endpoint.returnType || this.api.returnType || b.RESULT;
|
|
284
274
|
}
|
|
285
275
|
/**
|
|
286
276
|
* Resolves the request configuration from the method arguments.
|
|
@@ -333,18 +323,18 @@ class y {
|
|
|
333
323
|
...this.api.headers,
|
|
334
324
|
...this.endpoint.headers
|
|
335
325
|
};
|
|
336
|
-
let a, o,
|
|
337
|
-
const
|
|
338
|
-
e.forEach((i,
|
|
326
|
+
let a, o, p, E = {};
|
|
327
|
+
const R = this.resolveAttributes();
|
|
328
|
+
e.forEach((i, _) => {
|
|
339
329
|
if (i instanceof AbortSignal) {
|
|
340
330
|
o = i;
|
|
341
331
|
return;
|
|
342
332
|
}
|
|
343
333
|
if (i instanceof AbortController) {
|
|
344
|
-
|
|
334
|
+
p = i;
|
|
345
335
|
return;
|
|
346
336
|
}
|
|
347
|
-
const d = this.parameters.get(
|
|
337
|
+
const d = this.parameters.get(_);
|
|
348
338
|
if (d)
|
|
349
339
|
switch (d.type) {
|
|
350
340
|
case c.PATH:
|
|
@@ -363,28 +353,28 @@ class y {
|
|
|
363
353
|
E = this.processRequestParam(i);
|
|
364
354
|
break;
|
|
365
355
|
case c.ATTRIBUTE:
|
|
366
|
-
this.processAttributeParam(d, i,
|
|
356
|
+
this.processAttributeParam(d, i, R);
|
|
367
357
|
break;
|
|
368
358
|
}
|
|
369
359
|
});
|
|
370
|
-
const
|
|
360
|
+
const y = {
|
|
371
361
|
path: r,
|
|
372
362
|
query: n
|
|
373
|
-
},
|
|
363
|
+
}, q = {
|
|
374
364
|
method: this.endpoint.method,
|
|
375
|
-
urlParams:
|
|
365
|
+
urlParams: y,
|
|
376
366
|
headers: s,
|
|
377
367
|
body: a,
|
|
378
368
|
timeout: this.resolveTimeout(),
|
|
379
369
|
signal: o,
|
|
380
|
-
abortController:
|
|
381
|
-
},
|
|
382
|
-
|
|
370
|
+
abortController: p
|
|
371
|
+
}, A = w(
|
|
372
|
+
q,
|
|
383
373
|
E
|
|
384
|
-
),
|
|
385
|
-
return
|
|
386
|
-
request:
|
|
387
|
-
attributes:
|
|
374
|
+
), M = E.path;
|
|
375
|
+
return A.url = this.resolvePath(M), {
|
|
376
|
+
request: A,
|
|
377
|
+
attributes: R
|
|
388
378
|
};
|
|
389
379
|
}
|
|
390
380
|
processHttpParam(e, r, n) {
|
|
@@ -450,42 +440,42 @@ class y {
|
|
|
450
440
|
e.name && r !== void 0 && n.set(e.name, r);
|
|
451
441
|
}
|
|
452
442
|
}
|
|
453
|
-
const
|
|
454
|
-
function
|
|
443
|
+
const K = Symbol("api:metadata");
|
|
444
|
+
function W(t, e, r) {
|
|
455
445
|
const n = t.prototype[e];
|
|
456
446
|
if (e === "constructor" || typeof n != "function")
|
|
457
447
|
return;
|
|
458
448
|
const s = Reflect.getMetadata(
|
|
459
|
-
|
|
449
|
+
x,
|
|
460
450
|
t.prototype,
|
|
461
451
|
e
|
|
462
452
|
);
|
|
463
453
|
if (!s)
|
|
464
454
|
return;
|
|
465
455
|
const a = Reflect.getMetadata(
|
|
466
|
-
|
|
456
|
+
P,
|
|
467
457
|
t.prototype,
|
|
468
458
|
e
|
|
469
|
-
) || /* @__PURE__ */ new Map(), o = new
|
|
459
|
+
) || /* @__PURE__ */ new Map(), o = new g(
|
|
470
460
|
e,
|
|
471
461
|
r,
|
|
472
462
|
s,
|
|
473
463
|
a
|
|
474
464
|
);
|
|
475
|
-
t.prototype[e] = function(...
|
|
476
|
-
return
|
|
465
|
+
t.prototype[e] = function(...p) {
|
|
466
|
+
return X(this, o).execute(p);
|
|
477
467
|
};
|
|
478
468
|
}
|
|
479
|
-
function
|
|
469
|
+
function X(t, e) {
|
|
480
470
|
let r = t.requestExecutors;
|
|
481
471
|
r || (r = /* @__PURE__ */ new Map(), t.requestExecutors = r);
|
|
482
472
|
let n = r.get(e.name);
|
|
483
473
|
if (n)
|
|
484
474
|
return n;
|
|
485
475
|
const s = t.apiMetadata, a = { ...e.api, ...s };
|
|
486
|
-
return n = new
|
|
476
|
+
return n = new C(
|
|
487
477
|
t,
|
|
488
|
-
new
|
|
478
|
+
new g(
|
|
489
479
|
e.name,
|
|
490
480
|
a,
|
|
491
481
|
e.endpoint,
|
|
@@ -493,53 +483,53 @@ function F(t, e) {
|
|
|
493
483
|
)
|
|
494
484
|
), r.set(e.name, n), n;
|
|
495
485
|
}
|
|
496
|
-
function
|
|
486
|
+
function ht(t = "", e = {}) {
|
|
497
487
|
return function(r) {
|
|
498
488
|
const n = {
|
|
499
489
|
basePath: t,
|
|
500
490
|
...e
|
|
501
491
|
};
|
|
502
|
-
return Reflect.defineMetadata(
|
|
503
|
-
|
|
492
|
+
return Reflect.defineMetadata(K, n, r), Object.getOwnPropertyNames(r.prototype).forEach((s) => {
|
|
493
|
+
W(r, s, n);
|
|
504
494
|
}), r;
|
|
505
495
|
};
|
|
506
496
|
}
|
|
507
|
-
class
|
|
497
|
+
class J extends Error {
|
|
508
498
|
constructor() {
|
|
509
499
|
super("Implementation will be generated automatically."), this.name = "AutoGenerated";
|
|
510
500
|
}
|
|
511
501
|
}
|
|
512
|
-
const
|
|
502
|
+
const pt = (...t) => new J();
|
|
513
503
|
export {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
x as
|
|
519
|
-
|
|
520
|
-
|
|
504
|
+
K as API_METADATA_KEY,
|
|
505
|
+
J as AutoGenerated,
|
|
506
|
+
U as DECORATOR_METADATA_ATTRIBUTE_KEY,
|
|
507
|
+
I as DECORATOR_TARGET_ATTRIBUTE_KEY,
|
|
508
|
+
x as ENDPOINT_METADATA_KEY,
|
|
509
|
+
b as EndpointReturnType,
|
|
510
|
+
g as FunctionMetadata,
|
|
511
|
+
P as PARAMETER_METADATA_KEY,
|
|
521
512
|
c as ParameterType,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
at as
|
|
542
|
-
|
|
543
|
-
ft as request
|
|
513
|
+
C as RequestExecutor,
|
|
514
|
+
ht as api,
|
|
515
|
+
ut as attribute,
|
|
516
|
+
pt as autoGeneratedError,
|
|
517
|
+
it as body,
|
|
518
|
+
X as buildRequestExecutor,
|
|
519
|
+
tt as del,
|
|
520
|
+
h as endpoint,
|
|
521
|
+
z as get,
|
|
522
|
+
Y as getParameterName,
|
|
523
|
+
N as getParameterNames,
|
|
524
|
+
rt as head,
|
|
525
|
+
ot as header,
|
|
526
|
+
nt as options,
|
|
527
|
+
f as parameter,
|
|
528
|
+
et as patch,
|
|
529
|
+
st as path,
|
|
530
|
+
Z as post,
|
|
531
|
+
F as put,
|
|
532
|
+
at as query,
|
|
533
|
+
ct as request
|
|
544
534
|
};
|
|
545
535
|
//# sourceMappingURL=index.es.js.map
|