eve-esi-types 3.1.0 → 3.1.2
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 +3 -1
- package/docs/esi-tagged-types.md +120 -0
- package/{esi-types-util3.md → docs/esi-types-util3.md} +1 -1
- package/lib/rq-util.d.mts +3 -3
- package/package.json +2 -1
- package/v2/esi-tagged-types.d.ts +55 -23
- package/v2/index.d.ts +27 -27
- package/v2/response-map.d.ts +1 -1
- package/v2/types-index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -100,4 +100,6 @@ const ret = await esiRequest.universe.get("/universe/structures/", { query: { fi
|
|
|
100
100
|
|
|
101
101
|
## References
|
|
102
102
|
|
|
103
|
-
- [`ESI Types Utility Definitions`](./esi-types-util3.md)
|
|
103
|
+
- [`ESI Types Utility Definitions`](./docs/esi-types-util3.md)
|
|
104
|
+
|
|
105
|
+
- [`ESI Tagged Types Utility Definitions`](./docs/esi-tagged-types.md)
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# ESI Tagged Types
|
|
2
|
+
|
|
3
|
+
This document provides an overview of the types defined in the `eve-esi-types/v2/esi-tagged-types.d.ts` file. These types are used to handle EVE Online ESI responses.
|
|
4
|
+
|
|
5
|
+
## LCamelCase
|
|
6
|
+
|
|
7
|
+
Converts a string to lower camel case.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
type LCamelCase<S extends string> = S extends `${infer P1} ${infer P2}`
|
|
11
|
+
? `${Lowercase<P1>}${Capitalize<P2>}` : Lowercase<S>;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
// returns "assets"
|
|
18
|
+
LCamelCase<"Assets">
|
|
19
|
+
|
|
20
|
+
// returns "factionWarfare"
|
|
21
|
+
LCamelCase<"Faction Warfare">
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## InferSomethingBy
|
|
25
|
+
|
|
26
|
+
Infers something by a brand.
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
type InferSomethingByBrand<N = number> = N & { __enum: "InferSomethingBy" };
|
|
30
|
+
type InferSomethingByMethod = InferSomethingByBrand<0>;
|
|
31
|
+
type InferSomethingByTags = InferSomethingByBrand<1>;
|
|
32
|
+
type InferSomethingBy<Tag, AsType extends InferSomethingByBrand = InferSomethingByMethod> = {
|
|
33
|
+
[M in TESIEntryMethod]: TESIResponseOKMap[M] extends Record<`/${string}/`, { tag: infer ActualTag }>
|
|
34
|
+
? AsType extends InferSomethingByTags
|
|
35
|
+
? ActualTag : ActualTag extends Tag
|
|
36
|
+
? M
|
|
37
|
+
: never
|
|
38
|
+
: never;
|
|
39
|
+
}[TESIEntryMethod];
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## ESITags
|
|
43
|
+
|
|
44
|
+
Maps HTTP methods to their corresponding tags.
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
type ESITags = InferSomethingBy<never, InferSomethingByTags>;
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## InferMethod
|
|
51
|
+
|
|
52
|
+
Infers the HTTP method based on the provided tag.
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
type InferMethod<Tag> = InferSomethingBy<Tag>;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## TaggedEndpointRequestFunction2
|
|
59
|
+
|
|
60
|
+
Creates a function type for making requests to tagged endpoints.
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
type TaggedEndpointRequestFunction2<
|
|
64
|
+
M extends TESIEntryMethod, Tag extends ESITags,
|
|
65
|
+
ActualOpt extends Record<string, unknown> = {},
|
|
66
|
+
EndPoints extends SelectEndpointByTag<Tag, M> = SelectEndpointByTag<Tag, M>,
|
|
67
|
+
> = <
|
|
68
|
+
REP extends ReplacePathParams<EndPoints> | EndPoints,
|
|
69
|
+
EPX extends _InferEndpointOrigin<REP, EndPoints> extends never ? REP: _InferEndpointOrigin<REP, EndPoints>,
|
|
70
|
+
PPM extends InferPathParams<REP, EPX>,
|
|
71
|
+
Opt extends IdentifyParameters<M, EPX, ActualOpt & PPM>,
|
|
72
|
+
Ret extends InferESIResponseResult<M, EPX>,
|
|
73
|
+
HasOpt = HasRequireParams<M, EPX, PPM>,
|
|
74
|
+
>(endpoint: REP, ...options: HasOpt extends 1 ? [Opt] : [Opt?]) => Promise<Ret>;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## ESITaggedEndpointRequest2
|
|
78
|
+
|
|
79
|
+
Maps tags to their corresponding endpoint request functions.
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
type ESITaggedEndpointRequest2<Tag extends ESITags, ActualOpt extends Record<string, unknown> = {}> = {
|
|
83
|
+
[tag in Tag]: {
|
|
84
|
+
[method in InferMethod<Tag>]: TaggedEndpointRequestFunction2<method, tag, ActualOpt>;
|
|
85
|
+
};
|
|
86
|
+
}[Tag];
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## SelectEndpointByTag
|
|
90
|
+
|
|
91
|
+
Selects an endpoint by tag and method.
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
type SelectEndpointByTag<
|
|
95
|
+
Tag extends ESITags, M extends TESIEntryMethod
|
|
96
|
+
> = {
|
|
97
|
+
[EP in keyof TESIResponseOKMap[M]]: TESIResponseOKMap[M][EP] extends { tag: infer ActualTag }
|
|
98
|
+
? ActualTag extends Tag
|
|
99
|
+
? EP : never
|
|
100
|
+
: never;
|
|
101
|
+
}[keyof TESIResponseOKMap[M]];
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## TaggedESIRequestMap2
|
|
105
|
+
|
|
106
|
+
Maps lower camel case tags to their corresponding endpoint request functions.
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
type TaggedESIRequestMap2<ActualOpt extends Record<string, unknown> = {}> = {
|
|
110
|
+
[tag in ESITags as LCamelCase<tag>]: ESITaggedEndpointRequest2<tag, ActualOpt>;
|
|
111
|
+
};
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## TaggedESIRequestMapPartial2
|
|
115
|
+
|
|
116
|
+
Creates a partial map of lower camel case tags to their corresponding endpoint request functions.
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
type TaggedESIRequestMapPartial2<Props extends LCamelCase<ESITags>> = RequireThese<Partial<TaggedESIRequestMap2>, Props>;
|
|
120
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
# ESI Types Utility 3.1 Summary
|
|
10
10
|
|
|
11
|
-
This document provides detailed explanations of each type defined in the `index.d.ts` file.
|
|
11
|
+
This document provides detailed explanations of each type defined in the `eve-esi-types/v2/index.d.ts` file.
|
|
12
12
|
|
|
13
13
|
> ## TESIRequestFunctionSignature2
|
|
14
14
|
|
package/lib/rq-util.d.mts
CHANGED
|
@@ -181,9 +181,9 @@ export declare function getLogger(): {
|
|
|
181
181
|
clog: (...args: any[]) => void;
|
|
182
182
|
rlog: (...args: any[]) => void;
|
|
183
183
|
};
|
|
184
|
-
export type TFireWithoutAuth = <
|
|
185
|
-
export interface IFireWithoutAuth {
|
|
186
|
-
<
|
|
184
|
+
export type TFireWithoutAuth<ActualOpt = ESIRequestOptions> = <Mtd extends TESIEntryMethod, REP extends ReplacePathParams<ESIEndpointOf<Mtd>> | ESIEndpointOf<Mtd>, EPX extends ResolvedEndpoint<REP, Mtd>, PPM extends InferPathParams<REP, EPX>, Opt extends IdentifyParameters<Mtd, EPX, ActualOpt & PPM>, Ret extends InferESIResponseResult<Mtd, EPX>, HasOpt = HasRequireParams<Mtd, EPX, PPM>, XX = PickRequireParams<Mtd, EPX, PPM>>(fn: TESIRequestFunctionSignature2<ESIRequestOptions> | TESIRequestFunctionMethods2<ESIRequestOptions>, method: Mtd, endpoint: REP, ...opt: HasOpt extends 1 ? [Opt] : [Opt?]) => Promise<Ret>;
|
|
185
|
+
export interface IFireWithoutAuth<ActualOpt = ESIRequestOptions> {
|
|
186
|
+
<Mtd extends TESIEntryMethod, REP extends ReplacePathParams<ESIEndpointOf<Mtd>> | ESIEndpointOf<Mtd>, EPX extends ResolvedEndpoint<REP, Mtd>, PPM extends InferPathParams<REP, EPX>, Opt extends IdentifyParameters<Mtd, EPX, ActualOpt & PPM>, Ret extends InferESIResponseResult<Mtd, EPX>, HasOpt = HasRequireParams<Mtd, EPX, PPM>, XX = PickRequireParams<Mtd, EPX, PPM>>(fn: TESIRequestFunctionSignature2<ActualOpt> | TESIRequestFunctionMethods2<ActualOpt>, method: Mtd, endpoint: REP, ...opt: HasOpt extends 1 ? [Opt] : [Opt?]): Promise<Ret>;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Need typescript v5.5 later
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-esi-types",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Extracted the main type of ESI. use for ESI request response types (version 2 only)",
|
|
5
5
|
"main": "v2/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"v2",
|
|
16
16
|
"lib",
|
|
17
17
|
"web",
|
|
18
|
+
"docs",
|
|
18
19
|
"*.d.mts",
|
|
19
20
|
"*.mjs",
|
|
20
21
|
"LICENSE",
|
package/v2/esi-tagged-types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/esi-tagged-types.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.1.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import { TESIResponseOKMap } from "./index.d.ts";
|
|
15
15
|
export * from "./index.d.ts";
|
|
@@ -61,26 +61,51 @@ export declare type ESITags = InferSomethingBy<never, InferSomethingByTags>
|
|
|
61
61
|
* @date 2025/2/28
|
|
62
62
|
*/
|
|
63
63
|
export declare type InferMethod<Tag> = InferSomethingBy<Tag>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
/* ctt
|
|
65
|
+
type XAssets = InferMethod<"Assets">;
|
|
66
|
+
type XContacts = InferMethod<"Contacts">;
|
|
67
|
+
type XPlanetary = InferMethod<"Planetary Interaction">;
|
|
68
|
+
/*/
|
|
69
|
+
//*/
|
|
67
70
|
|
|
68
71
|
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
69
72
|
// Utility Type `TaggedEndpointRequestFunction2`
|
|
70
73
|
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
74
|
+
/**
|
|
75
|
+
* Infers the endpoint origin based on the provided endpoints.
|
|
76
|
+
*
|
|
77
|
+
* + Customed InferEndpointOrigin
|
|
78
|
+
*
|
|
79
|
+
* @template RealEP - The real endpoint type.
|
|
80
|
+
* @template Endpoints - The possible endpoints.
|
|
81
|
+
*
|
|
82
|
+
* @typeParam RealEP - The type of the real endpoint.
|
|
83
|
+
* @typeParam Endpoints - The type of the possible endpoints.
|
|
84
|
+
*
|
|
85
|
+
* @returns The inferred endpoint origin.
|
|
86
|
+
*/
|
|
87
|
+
type _InferEndpointOrigin<
|
|
88
|
+
RealEP extends unknown, Endpoints extends string | number | symbol
|
|
89
|
+
> = {
|
|
90
|
+
[EP in Endpoints]: RealEP extends ReplacePathParams<EP>
|
|
91
|
+
? EP : never;
|
|
92
|
+
}[Endpoints];
|
|
93
|
+
|
|
71
94
|
/**
|
|
72
95
|
* Creates a function type for making requests to tagged endpoints.
|
|
73
96
|
*
|
|
74
97
|
* @template M - The HTTP method.
|
|
75
98
|
* @template Tag - The tag associated with the endpoint.
|
|
76
99
|
* @template ActualOpt - The actual options for the request.
|
|
77
|
-
* @template
|
|
78
|
-
* @template
|
|
100
|
+
* @template EndPoints - The possible endpoints.
|
|
101
|
+
* @template REP - The real endpoint path.
|
|
102
|
+
* @template EPX - The inferred endpoint origin.
|
|
103
|
+
* @template PPM - The path parameters.
|
|
79
104
|
* @template Opt - The request options.
|
|
80
|
-
* @template
|
|
105
|
+
* @template Ret - The response type.
|
|
106
|
+
* @template HasOpt - Indicates if the endpoint has required parameters.
|
|
81
107
|
*
|
|
82
108
|
* @param endpoint - The endpoint path.
|
|
83
|
-
* @param pathParams - The path parameters.
|
|
84
109
|
* @param options - An optional object containing additional options for the request. If the endpoint has required parameters, this parameter must be provided.
|
|
85
110
|
* @returns A promise that resolves to the response.
|
|
86
111
|
*
|
|
@@ -88,17 +113,18 @@ export declare type InferMethod<Tag> = InferSomethingBy<Tag>
|
|
|
88
113
|
* The `...options: HasOpt extends 1 ? [Opt] : [Opt?]` parameter is defined this way to enforce that if the endpoint has required parameters,
|
|
89
114
|
* the `options` parameter must be provided. If there are no required parameters, the `options` parameter is optional.
|
|
90
115
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
116
|
+
export declare type TaggedEndpointRequestFunction2<
|
|
117
|
+
M extends TESIEntryMethod, Tag extends ESITags,
|
|
118
|
+
ActualOpt extends Record<string, unknown> = {},
|
|
119
|
+
EndPoints extends SelectEndpointByTag<Tag, M> = SelectEndpointByTag<Tag, M>,
|
|
120
|
+
> = <
|
|
121
|
+
REP extends ReplacePathParams<EndPoints> | EndPoints,
|
|
122
|
+
EPX extends _InferEndpointOrigin<REP, EndPoints> extends never ? REP: _InferEndpointOrigin<REP, EndPoints>,
|
|
123
|
+
PPM extends InferPathParams<REP, EPX>,
|
|
124
|
+
Opt extends IdentifyParameters<M, EPX, ActualOpt & PPM>,
|
|
125
|
+
Ret extends InferESIResponseResult<M, EPX>,
|
|
126
|
+
HasOpt = HasRequireParams<M, EPX, PPM>,
|
|
127
|
+
>(endpoint: REP, ...options: HasOpt extends 1 ? [Opt] : [Opt?]) => Promise<Ret>;
|
|
102
128
|
|
|
103
129
|
|
|
104
130
|
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
@@ -108,9 +134,10 @@ export declare type TaggedEndpointRequestFunction2<M extends TESIEntryMethod, Ta
|
|
|
108
134
|
* Maps tags to their corresponding endpoint request functions.
|
|
109
135
|
*
|
|
110
136
|
* @template Tag - The tag to map.
|
|
137
|
+
* @template ActualOpt - The actual options for the request.
|
|
111
138
|
* @date 2025/2/28
|
|
112
139
|
*/
|
|
113
|
-
export declare type ESITaggedEndpointRequest2<Tag extends ESITags, ActualOpt = {}> = {
|
|
140
|
+
export declare type ESITaggedEndpointRequest2<Tag extends ESITags, ActualOpt extends Record<string, unknown> = {}> = {
|
|
114
141
|
[tag in Tag]: {
|
|
115
142
|
[method in InferMethod<Tag>]: TaggedEndpointRequestFunction2<method, tag, ActualOpt>;
|
|
116
143
|
};
|
|
@@ -135,14 +162,19 @@ export declare type SelectEndpointByTag<
|
|
|
135
162
|
? EP : never
|
|
136
163
|
: never;
|
|
137
164
|
}[keyof TESIResponseOKMap[M]];
|
|
138
|
-
|
|
139
|
-
|
|
165
|
+
/* ctt
|
|
166
|
+
type XAssetsEndpointGet = SelectEndpointByTag<"Assets", "get">;
|
|
167
|
+
type XAssetsEndpointPost = SelectEndpointByTag<"Assets", "post">;
|
|
168
|
+
/*/
|
|
169
|
+
//*/
|
|
140
170
|
|
|
141
171
|
/**
|
|
142
172
|
* Maps lower camel case tags to their corresponding endpoint request functions.
|
|
173
|
+
*
|
|
174
|
+
* @template ActualOpt - The actual options for the request.
|
|
143
175
|
* @date 2025/3/12
|
|
144
176
|
*/
|
|
145
|
-
export declare type TaggedESIRequestMap2<ActualOpt = {}> = {
|
|
177
|
+
export declare type TaggedESIRequestMap2<ActualOpt extends Record<string, unknown> = {}> = {
|
|
146
178
|
[tag in ESITags as LCamelCase<tag>]: ESITaggedEndpointRequest2<tag, ActualOpt>;
|
|
147
179
|
};
|
|
148
180
|
|
package/v2/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.1.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
15
15
|
export type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
@@ -195,12 +195,12 @@ declare global {
|
|
|
195
195
|
* This function sends a request to a specified endpoint and returns a response.
|
|
196
196
|
*
|
|
197
197
|
* @template ActualOpt - The actual type of the option.
|
|
198
|
-
* @template
|
|
199
|
-
* @template
|
|
200
|
-
* @template
|
|
201
|
-
* @template
|
|
198
|
+
* @template Mtd - The HTTP method to use for the request
|
|
199
|
+
* @template REP - The real path of the ESI endpoint to send the request to
|
|
200
|
+
* @template EPX - The parameterized path of the ESI endpoint to send the request to
|
|
201
|
+
* @template PPM - Parameters to include in the request if the endpoint is parameterized
|
|
202
202
|
* @template Opt - Options to include in the request. If there is a required parameter, its type will be merged with `ActualOpt`
|
|
203
|
-
* @template
|
|
203
|
+
* @template Ret - The response type
|
|
204
204
|
*
|
|
205
205
|
* @param method - The HTTP method to use for the request (e.g., "get", "post").
|
|
206
206
|
* @param endpoint - The real path of the ESI endpoint to send the request to.
|
|
@@ -213,28 +213,28 @@ declare global {
|
|
|
213
213
|
* the `options` parameter must be provided. If there are no required parameters, the `options` parameter is optional.
|
|
214
214
|
*/
|
|
215
215
|
type TESIRequestFunctionSignature2<ActualOpt> = <
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
Opt extends IdentifyParameters<
|
|
221
|
-
|
|
222
|
-
HasOpt = HasRequireParams<
|
|
223
|
-
>(method:
|
|
216
|
+
Mtd extends TESIEntryMethod,
|
|
217
|
+
REP extends ReplacePathParams<ESIEndpointOf<Mtd>> | ESIEndpointOf<Mtd>,
|
|
218
|
+
EPX extends ResolvedEndpoint<REP, Mtd>,
|
|
219
|
+
PPM extends InferPathParams<REP, EPX>,
|
|
220
|
+
Opt extends IdentifyParameters<Mtd, EPX, ActualOpt & PPM>,
|
|
221
|
+
Ret extends InferESIResponseResult<Mtd, EPX>,
|
|
222
|
+
HasOpt = HasRequireParams<Mtd, EPX, PPM>,
|
|
223
|
+
>(method: Mtd, endpoint: REP, ...options: HasOpt extends 1 ? [Opt] : [Opt?]) => Promise<Ret>;
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Represents a function that can make ESI requests for a specific HTTP method.
|
|
227
227
|
*
|
|
228
228
|
* This type is used to define functions that send requests to specific ESI endpoints using a given HTTP method.
|
|
229
229
|
*
|
|
230
|
-
* @template
|
|
230
|
+
* @template Mtd - The HTTP method to use for the request.
|
|
231
231
|
* @template ActualOpt - The actual type of the options.
|
|
232
232
|
*
|
|
233
|
-
* @template
|
|
234
|
-
* @template
|
|
235
|
-
* @template
|
|
233
|
+
* @template REP - The real path of the ESI endpoint to send the request to.
|
|
234
|
+
* @template EPX - The parameterized path of the ESI endpoint to send the request to.
|
|
235
|
+
* @template PPM - Parameters to include in the request if the endpoint is parameterized.
|
|
236
236
|
* @template Opt - Options to include in the request. If there is a required parameter, its type will be merged with `ActualOpt`.
|
|
237
|
-
* @template
|
|
237
|
+
* @template Ret - The response type.
|
|
238
238
|
*
|
|
239
239
|
* @param endpoint - The real path of the ESI endpoint to send the request to.
|
|
240
240
|
* @param options - An optional object containing additional options for the request. If the endpoint has required parameters, this parameter must be provided.
|
|
@@ -245,14 +245,14 @@ declare global {
|
|
|
245
245
|
* The `...options: HasOpt extends 1 ? [Opt] : [Opt?]` parameter is defined this way to enforce that if the endpoint has required parameters,
|
|
246
246
|
* the `options` parameter must be provided. If there are no required parameters, the `options` parameter is optional.
|
|
247
247
|
*/
|
|
248
|
-
type TESIRequestFunctionEachMethod2<
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
Opt extends IdentifyParameters<
|
|
253
|
-
|
|
254
|
-
HasOpt = HasRequireParams<
|
|
255
|
-
>(endpoint:
|
|
248
|
+
type TESIRequestFunctionEachMethod2<Mtd extends TESIEntryMethod, ActualOpt = {}> = <
|
|
249
|
+
REP extends ReplacePathParams<ESIEndpointOf<Mtd>> | ESIEndpointOf<Mtd>,
|
|
250
|
+
EPX extends ResolvedEndpoint<REP, Mtd>,
|
|
251
|
+
PPM extends InferPathParams<REP, EPX>,
|
|
252
|
+
Opt extends IdentifyParameters<Mtd, EPX, ActualOpt & PPM>,
|
|
253
|
+
Ret extends InferESIResponseResult<Mtd, EPX>,
|
|
254
|
+
HasOpt = HasRequireParams<Mtd, EPX, PPM>,
|
|
255
|
+
>(endpoint: REP, ...options: HasOpt extends 1 ? [Opt] : [Opt?]) => Promise<Ret>;
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* Replaces path parameters in a string with numbers.
|
package/v2/response-map.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/response-map.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.1.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./types-index.d.ts";
|
|
15
15
|
|
package/v2/types-index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/types-index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.1.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./get_wars_ok.d.ts";
|
|
15
15
|
import "./get_status_ok.d.ts";
|