@lgriffin/esi.ts 9.4.0 → 9.7.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/CHANGELOG.md +29 -0
- package/README.md +71 -52
- package/dist/EsiClient.d.ts +4 -0
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/clients/AllianceClient.d.ts +2 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -1
- package/dist/clients/AssetsClient.d.ts +2 -0
- package/dist/clients/AssetsClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.d.ts +1 -0
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/CalendarClient.d.ts +2 -0
- package/dist/clients/CalendarClient.d.ts.map +1 -1
- package/dist/clients/CharacterClient.d.ts +8 -0
- package/dist/clients/CharacterClient.d.ts.map +1 -1
- package/dist/clients/ClonesClient.d.ts +1 -0
- package/dist/clients/ClonesClient.d.ts.map +1 -1
- package/dist/clients/ContactsClient.d.ts +6 -0
- package/dist/clients/ContactsClient.d.ts.map +1 -1
- package/dist/clients/ContractsClient.d.ts +3 -0
- package/dist/clients/ContractsClient.d.ts.map +1 -1
- package/dist/clients/CorporationsClient.d.ts +17 -0
- package/dist/clients/CorporationsClient.d.ts.map +1 -1
- package/dist/clients/CosmeticsClient.d.ts +11 -0
- package/dist/clients/CosmeticsClient.d.ts.map +1 -0
- package/dist/clients/FittingsClient.d.ts +1 -0
- package/dist/clients/FittingsClient.d.ts.map +1 -1
- package/dist/clients/FleetClient.d.ts +2 -0
- package/dist/clients/FleetClient.d.ts.map +1 -1
- package/dist/clients/IndustryClient.d.ts +8 -0
- package/dist/clients/IndustryClient.d.ts.map +1 -1
- package/dist/clients/KillmailsClient.d.ts +2 -0
- package/dist/clients/KillmailsClient.d.ts.map +1 -1
- package/dist/clients/LoyaltyClient.d.ts +2 -0
- package/dist/clients/LoyaltyClient.d.ts.map +1 -1
- package/dist/clients/MailClient.d.ts +5 -0
- package/dist/clients/MailClient.d.ts.map +1 -1
- package/dist/clients/MarketClient.d.ts +6 -0
- package/dist/clients/MarketClient.d.ts.map +1 -1
- package/dist/clients/MercenaryClient.d.ts +19 -1
- package/dist/clients/MercenaryClient.d.ts.map +1 -1
- package/dist/clients/ParagonHubClient.d.ts +13 -0
- package/dist/clients/ParagonHubClient.d.ts.map +1 -0
- package/dist/clients/PiClient.d.ts +2 -0
- package/dist/clients/PiClient.d.ts.map +1 -1
- package/dist/clients/SkillsClient.d.ts +1 -0
- package/dist/clients/SkillsClient.d.ts.map +1 -1
- package/dist/clients/SkyhooksClient.d.ts +19 -1
- package/dist/clients/SkyhooksClient.d.ts.map +1 -1
- package/dist/clients/WalletClient.d.ts +4 -0
- package/dist/clients/WalletClient.d.ts.map +1 -1
- package/dist/clients/WarsClient.d.ts +2 -0
- package/dist/clients/WarsClient.d.ts.map +1 -1
- package/dist/core/ApiClient.d.ts +4 -0
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ApiClientBuilder.d.ts +3 -1
- package/dist/core/ApiClientBuilder.d.ts.map +1 -1
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/ClientRegistry.d.ts +5 -3
- package/dist/core/ClientRegistry.d.ts.map +1 -1
- package/dist/core/cache/cacheKey.d.ts +3 -0
- package/dist/core/cache/cacheKey.d.ts.map +1 -0
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/endpoints/EndpointDefinition.d.ts +2 -2
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
- package/dist/core/endpoints/cosmeticsEndpoints.d.ts +52 -0
- package/dist/core/endpoints/cosmeticsEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/createClient.d.ts +2 -2
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/endpoints/mercenaryEndpoints.d.ts +45 -0
- package/dist/core/endpoints/mercenaryEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/paragonHubEndpoints.d.ts +163 -0
- package/dist/core/endpoints/paragonHubEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts +64 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts.map +1 -1
- package/dist/core/logger/NoopLogger.d.ts +3 -0
- package/dist/core/logger/NoopLogger.d.ts.map +1 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts +1 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
- package/dist/core/rateLimiter/RateLimiter.d.ts +6 -0
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/requestPipeline/cachePolicy.d.ts +3 -3
- package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -1
- package/dist/core/requestPipeline/headers.d.ts.map +1 -1
- package/dist/core/requestPipeline/statusHandling.d.ts +2 -2
- package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1141 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1137 -76
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/common.d.ts +11 -1
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/cosmetics.d.ts +58 -0
- package/dist/schemas/cosmetics.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1467 -1192
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +1433 -1192
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/schemas/mercenary.d.ts +54 -0
- package/dist/schemas/mercenary.d.ts.map +1 -1
- package/dist/schemas/paragon-hub.d.ts +96 -0
- package/dist/schemas/paragon-hub.d.ts.map +1 -0
- package/dist/schemas/skyhooks.d.ts +101 -0
- package/dist/schemas/skyhooks.d.ts.map +1 -1
- package/dist/sde/index.js +7 -5100
- package/dist/sde/index.js.map +1 -1
- package/dist/sde/index.mjs +12 -5134
- package/dist/sde/index.mjs.map +1 -1
- package/dist/sde/memory.d.ts +8 -0
- package/dist/sde/memory.d.ts.map +1 -0
- package/dist/sde/memory.js +1100 -0
- package/dist/sde/memory.js.map +1 -0
- package/dist/sde/memory.mjs +1064 -0
- package/dist/sde/memory.mjs.map +1 -0
- package/dist/types/api-responses.d.ts +2 -0
- package/dist/types/api-responses.d.ts.map +1 -1
- package/dist/types/cosmetics.d.ts +8 -0
- package/dist/types/cosmetics.d.ts.map +1 -0
- package/dist/types/generated/esi-spec.generated.d.ts +12 -12
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/dist/types/mercenary.d.ts +3 -1
- package/dist/types/mercenary.d.ts.map +1 -1
- package/dist/types/paragon-hub.d.ts +8 -0
- package/dist/types/paragon-hub.d.ts.map +1 -0
- package/dist/types/skyhooks.d.ts +3 -1
- package/dist/types/skyhooks.d.ts.map +1 -1
- package/package.json +30 -9
|
@@ -30,5 +30,50 @@ export declare const mercenaryEndpoints: {
|
|
|
30
30
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, z.core.$loose>>;
|
|
32
32
|
};
|
|
33
|
+
readonly getMercenaryDenDetail: {
|
|
34
|
+
readonly path: "characters/{characterId}/structures/mercenary-dens/{mercenaryDenId}";
|
|
35
|
+
readonly method: "GET";
|
|
36
|
+
readonly requiresAuth: true;
|
|
37
|
+
readonly pathParams: readonly ["characterId", "mercenaryDenId"];
|
|
38
|
+
readonly responseSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodNumber;
|
|
40
|
+
type_id: z.ZodNumber;
|
|
41
|
+
state: z.ZodType<(string & {}) | "Unspecified" | "Running" | "Paused" | "Disabled", unknown, z.core.$ZodTypeInternals<(string & {}) | "Unspecified" | "Running" | "Paused" | "Disabled", unknown>>;
|
|
42
|
+
skyhook: z.ZodObject<{
|
|
43
|
+
id: z.ZodNumber;
|
|
44
|
+
planet_id: z.ZodNumber;
|
|
45
|
+
corporation_id: z.ZodNumber;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
infomorphs: z.ZodObject<{
|
|
48
|
+
amount: z.ZodNumber;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
evolution: z.ZodObject<{
|
|
51
|
+
development: z.ZodObject<{
|
|
52
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$loose>;
|
|
55
|
+
anarchy: z.ZodObject<{
|
|
56
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
reinforcement_timer: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
end: z.ZodString;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
|
+
};
|
|
65
|
+
readonly getMercenaryTacticalOperationDetail: {
|
|
66
|
+
readonly path: "characters/{characterId}/mercenary-tactical-operations/{operationId}";
|
|
67
|
+
readonly method: "GET";
|
|
68
|
+
readonly requiresAuth: true;
|
|
69
|
+
readonly pathParams: readonly ["characterId", "operationId"];
|
|
70
|
+
readonly responseSchema: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
mercenary_den_id: z.ZodNumber;
|
|
73
|
+
state: z.ZodType<(string & {}) | "Unspecified" | "Available" | "Started" | "Completed" | "Expired" | "Removed", unknown, z.core.$ZodTypeInternals<(string & {}) | "Unspecified" | "Available" | "Started" | "Completed" | "Expired" | "Removed", unknown>>;
|
|
74
|
+
dungeon_type_id: z.ZodNumber;
|
|
75
|
+
expires: z.ZodString;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
};
|
|
33
78
|
};
|
|
34
79
|
//# sourceMappingURL=mercenaryEndpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mercenaryEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/mercenaryEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mercenaryEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/mercenaryEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BC,CAAC"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export declare const paragonHubEndpoints: {
|
|
2
|
+
readonly getPublicListings: {
|
|
3
|
+
readonly path: "paragon-hub/skinr";
|
|
4
|
+
readonly method: "GET";
|
|
5
|
+
readonly requiresAuth: false;
|
|
6
|
+
readonly queryParams: {
|
|
7
|
+
readonly after: "after";
|
|
8
|
+
readonly before: "before";
|
|
9
|
+
readonly limit: "limit";
|
|
10
|
+
};
|
|
11
|
+
readonly responseSchema: import("zod").ZodObject<{
|
|
12
|
+
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
13
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, import("zod/v4/core").$loose>>;
|
|
16
|
+
listings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
id: import("zod").ZodString;
|
|
18
|
+
state: import("zod").ZodType<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown>>;
|
|
19
|
+
last_modified: import("zod").ZodString;
|
|
20
|
+
seller_id: import("zod").ZodNumber;
|
|
21
|
+
skinr_id: import("zod").ZodString;
|
|
22
|
+
created: import("zod").ZodString;
|
|
23
|
+
expires: import("zod").ZodString;
|
|
24
|
+
quantity: import("zod").ZodNumber;
|
|
25
|
+
price: import("zod").ZodObject<{
|
|
26
|
+
isk: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
27
|
+
plex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
|
+
}, import("zod/v4/core").$loose>;
|
|
29
|
+
}, import("zod/v4/core").$loose>>;
|
|
30
|
+
}, import("zod/v4/core").$loose>;
|
|
31
|
+
};
|
|
32
|
+
readonly getCharacterListings: {
|
|
33
|
+
readonly path: "characters/{characterId}/paragon-hub/skinr";
|
|
34
|
+
readonly method: "GET";
|
|
35
|
+
readonly requiresAuth: true;
|
|
36
|
+
readonly pathParams: readonly ["characterId"];
|
|
37
|
+
readonly queryParams: {
|
|
38
|
+
readonly after: "after";
|
|
39
|
+
readonly before: "before";
|
|
40
|
+
readonly limit: "limit";
|
|
41
|
+
};
|
|
42
|
+
readonly responseSchema: import("zod").ZodObject<{
|
|
43
|
+
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
44
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
}, import("zod/v4/core").$loose>>;
|
|
47
|
+
listings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
48
|
+
id: import("zod").ZodString;
|
|
49
|
+
state: import("zod").ZodType<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown>>;
|
|
50
|
+
last_modified: import("zod").ZodString;
|
|
51
|
+
seller_id: import("zod").ZodNumber;
|
|
52
|
+
skinr_id: import("zod").ZodString;
|
|
53
|
+
created: import("zod").ZodString;
|
|
54
|
+
expires: import("zod").ZodString;
|
|
55
|
+
quantity: import("zod").ZodNumber;
|
|
56
|
+
price: import("zod").ZodObject<{
|
|
57
|
+
isk: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
58
|
+
plex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
59
|
+
}, import("zod/v4/core").$loose>;
|
|
60
|
+
target: import("zod").ZodObject<{
|
|
61
|
+
character_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
62
|
+
corporation_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
63
|
+
alliance_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
64
|
+
public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
65
|
+
}, import("zod/v4/core").$loose>;
|
|
66
|
+
}, import("zod/v4/core").$loose>>;
|
|
67
|
+
}, import("zod/v4/core").$loose>;
|
|
68
|
+
};
|
|
69
|
+
readonly getAllianceListings: {
|
|
70
|
+
readonly path: "paragon-hub/skinr/alliances/{allianceId}";
|
|
71
|
+
readonly method: "GET";
|
|
72
|
+
readonly requiresAuth: true;
|
|
73
|
+
readonly pathParams: readonly ["allianceId"];
|
|
74
|
+
readonly queryParams: {
|
|
75
|
+
readonly after: "after";
|
|
76
|
+
readonly before: "before";
|
|
77
|
+
readonly limit: "limit";
|
|
78
|
+
};
|
|
79
|
+
readonly responseSchema: import("zod").ZodObject<{
|
|
80
|
+
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
81
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
}, import("zod/v4/core").$loose>>;
|
|
84
|
+
listings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
85
|
+
id: import("zod").ZodString;
|
|
86
|
+
state: import("zod").ZodType<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown>>;
|
|
87
|
+
last_modified: import("zod").ZodString;
|
|
88
|
+
seller_id: import("zod").ZodNumber;
|
|
89
|
+
skinr_id: import("zod").ZodString;
|
|
90
|
+
created: import("zod").ZodString;
|
|
91
|
+
expires: import("zod").ZodString;
|
|
92
|
+
quantity: import("zod").ZodNumber;
|
|
93
|
+
price: import("zod").ZodObject<{
|
|
94
|
+
isk: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
|
+
plex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
+
}, import("zod/v4/core").$loose>;
|
|
97
|
+
}, import("zod/v4/core").$loose>>;
|
|
98
|
+
}, import("zod/v4/core").$loose>;
|
|
99
|
+
};
|
|
100
|
+
readonly getCharacterTargetedListings: {
|
|
101
|
+
readonly path: "paragon-hub/skinr/characters/{characterId}";
|
|
102
|
+
readonly method: "GET";
|
|
103
|
+
readonly requiresAuth: true;
|
|
104
|
+
readonly pathParams: readonly ["characterId"];
|
|
105
|
+
readonly queryParams: {
|
|
106
|
+
readonly after: "after";
|
|
107
|
+
readonly before: "before";
|
|
108
|
+
readonly limit: "limit";
|
|
109
|
+
};
|
|
110
|
+
readonly responseSchema: import("zod").ZodObject<{
|
|
111
|
+
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
112
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
113
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
}, import("zod/v4/core").$loose>>;
|
|
115
|
+
listings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
116
|
+
id: import("zod").ZodString;
|
|
117
|
+
state: import("zod").ZodType<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown>>;
|
|
118
|
+
last_modified: import("zod").ZodString;
|
|
119
|
+
seller_id: import("zod").ZodNumber;
|
|
120
|
+
skinr_id: import("zod").ZodString;
|
|
121
|
+
created: import("zod").ZodString;
|
|
122
|
+
expires: import("zod").ZodString;
|
|
123
|
+
quantity: import("zod").ZodNumber;
|
|
124
|
+
price: import("zod").ZodObject<{
|
|
125
|
+
isk: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
126
|
+
plex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
127
|
+
}, import("zod/v4/core").$loose>;
|
|
128
|
+
}, import("zod/v4/core").$loose>>;
|
|
129
|
+
}, import("zod/v4/core").$loose>;
|
|
130
|
+
};
|
|
131
|
+
readonly getCorporationListings: {
|
|
132
|
+
readonly path: "paragon-hub/skinr/corporations/{corporationId}";
|
|
133
|
+
readonly method: "GET";
|
|
134
|
+
readonly requiresAuth: true;
|
|
135
|
+
readonly pathParams: readonly ["corporationId"];
|
|
136
|
+
readonly queryParams: {
|
|
137
|
+
readonly after: "after";
|
|
138
|
+
readonly before: "before";
|
|
139
|
+
readonly limit: "limit";
|
|
140
|
+
};
|
|
141
|
+
readonly responseSchema: import("zod").ZodObject<{
|
|
142
|
+
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
145
|
+
}, import("zod/v4/core").$loose>>;
|
|
146
|
+
listings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
147
|
+
id: import("zod").ZodString;
|
|
148
|
+
state: import("zod").ZodType<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "expired" | "listed" | "sold_out" | "removed", unknown>>;
|
|
149
|
+
last_modified: import("zod").ZodString;
|
|
150
|
+
seller_id: import("zod").ZodNumber;
|
|
151
|
+
skinr_id: import("zod").ZodString;
|
|
152
|
+
created: import("zod").ZodString;
|
|
153
|
+
expires: import("zod").ZodString;
|
|
154
|
+
quantity: import("zod").ZodNumber;
|
|
155
|
+
price: import("zod").ZodObject<{
|
|
156
|
+
isk: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
157
|
+
plex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
158
|
+
}, import("zod/v4/core").$loose>;
|
|
159
|
+
}, import("zod/v4/core").$loose>>;
|
|
160
|
+
}, import("zod/v4/core").$loose>;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=paragonHubEndpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragonHubEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/paragonHubEndpoints.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCA,CAAC"}
|
|
@@ -43,5 +43,69 @@ export declare const skyhookEndpoints: {
|
|
|
43
43
|
is_raidable: z.ZodBoolean;
|
|
44
44
|
}, z.core.$loose>>;
|
|
45
45
|
};
|
|
46
|
+
readonly getSkyhookDetail: {
|
|
47
|
+
readonly path: "corporations/{corporationId}/structures/skyhooks/{skyhookId}";
|
|
48
|
+
readonly method: "GET";
|
|
49
|
+
readonly requiresAuth: true;
|
|
50
|
+
readonly pathParams: readonly ["corporationId", "skyhookId"];
|
|
51
|
+
readonly responseSchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodNumber;
|
|
53
|
+
planet_id: z.ZodNumber;
|
|
54
|
+
state: z.ZodType<(string & {}) | "Unspecified" | "ShieldVulnerable" | "ArmorReinforced" | "ArmorVulnerable" | "HullReinforced" | "HullVulnerable", unknown, z.core.$ZodTypeInternals<(string & {}) | "Unspecified" | "ShieldVulnerable" | "ArmorReinforced" | "ArmorVulnerable" | "HullReinforced" | "HullVulnerable", unknown>>;
|
|
55
|
+
is_active: z.ZodBoolean;
|
|
56
|
+
effective_workforce: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
reagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
+
type_id: z.ZodNumber;
|
|
59
|
+
secured_stock: z.ZodNumber;
|
|
60
|
+
unsecured_stock: z.ZodNumber;
|
|
61
|
+
last_cycle: z.ZodString;
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
reinforcement_timer: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
end: z.ZodString;
|
|
65
|
+
}, z.core.$loose>>;
|
|
66
|
+
theft_vulnerability: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
start: z.ZodString;
|
|
68
|
+
end: z.ZodString;
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
};
|
|
72
|
+
readonly getSovereigntyHubDetail: {
|
|
73
|
+
readonly path: "corporations/{corporationId}/structures/sovereignty-hubs/{sovereigntyHubId}";
|
|
74
|
+
readonly method: "GET";
|
|
75
|
+
readonly requiresAuth: true;
|
|
76
|
+
readonly pathParams: readonly ["corporationId", "sovereigntyHubId"];
|
|
77
|
+
readonly responseSchema: z.ZodObject<{
|
|
78
|
+
id: z.ZodNumber;
|
|
79
|
+
solar_system_id: z.ZodNumber;
|
|
80
|
+
upgrades: z.ZodArray<z.ZodObject<{
|
|
81
|
+
type_id: z.ZodNumber;
|
|
82
|
+
power_state: z.ZodType<(string & {}) | "Unspecified" | "Online" | "Offline" | "Low" | "Pending", unknown, z.core.$ZodTypeInternals<(string & {}) | "Unspecified" | "Online" | "Offline" | "Low" | "Pending", unknown>>;
|
|
83
|
+
}, z.core.$loose>>;
|
|
84
|
+
reagent_bay: z.ZodObject<{
|
|
85
|
+
last_updated: z.ZodString;
|
|
86
|
+
reagents: z.ZodArray<z.ZodObject<{
|
|
87
|
+
type_id: z.ZodNumber;
|
|
88
|
+
amount: z.ZodNumber;
|
|
89
|
+
burning_per_hour: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$loose>>;
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
resources: z.ZodObject<{
|
|
93
|
+
power: z.ZodObject<{
|
|
94
|
+
available: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
used: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
}, z.core.$loose>;
|
|
97
|
+
workforce: z.ZodObject<{
|
|
98
|
+
available: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
used: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
}, z.core.$loose>;
|
|
101
|
+
}, z.core.$loose>;
|
|
102
|
+
workforce_transport: z.ZodObject<{}, z.core.$loose>;
|
|
103
|
+
fuel_access_list_id: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
vulnerability_window: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
start: z.ZodString;
|
|
106
|
+
end: z.ZodString;
|
|
107
|
+
}, z.core.$loose>>;
|
|
108
|
+
}, z.core.$loose>;
|
|
109
|
+
};
|
|
46
110
|
};
|
|
47
111
|
//# sourceMappingURL=skyhookEndpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyhookEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/skyhookEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"skyhookEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/skyhookEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoopLogger.d.ts","sourceRoot":"","sources":["../../../src/core/logger/NoopLogger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWzC,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|
|
@@ -6,6 +6,7 @@ export interface PageResult<T = unknown> {
|
|
|
6
6
|
totalPages: number;
|
|
7
7
|
}
|
|
8
8
|
type ResponseSchema = NonNullable<EndpointDefinition['responseSchema']>;
|
|
9
|
+
export declare function fetchAllPages<T = unknown>(client: ApiClient, endpoint: string, method: string, requiresAuth?: boolean, body?: unknown, templatePath?: string, responseSchema?: ResponseSchema, concurrency?: number): Promise<T[]>;
|
|
9
10
|
export declare function fetchPages<T = unknown>(client: ApiClient, endpoint: string, method: string, requiresAuth?: boolean, body?: unknown, templatePath?: string, responseSchema?: ResponseSchema): AsyncGenerator<PageResult<T>, void, undefined>;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=AsyncPaginationIterator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncPaginationIterator.d.ts","sourceRoot":"","sources":["../../../src/core/pagination/AsyncPaginationIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO;IACrC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,WAAW,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAsBxE,wBAAuB,UAAU,CAAC,CAAC,GAAG,OAAO,EAC3C,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,OAAe,EAC7B,IAAI,CAAC,EAAE,OAAO,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,cAAc,GAC9B,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAgDhD"}
|
|
1
|
+
{"version":3,"file":"AsyncPaginationIterator.d.ts","sourceRoot":"","sources":["../../../src/core/pagination/AsyncPaginationIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO;IACrC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,WAAW,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAsBxE,wBAAsB,aAAa,CAAC,CAAC,GAAG,OAAO,EAC7C,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,OAAe,EAC7B,IAAI,CAAC,EAAE,OAAO,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,cAAc,EAC/B,WAAW,GAAE,MAAU,GACtB,OAAO,CAAC,CAAC,EAAE,CAAC,CA0Dd;AAED,wBAAuB,UAAU,CAAC,CAAC,GAAG,OAAO,EAC3C,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,OAAe,EAC7B,IAAI,CAAC,EAAE,OAAO,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,cAAc,GAC9B,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAgDhD"}
|
|
@@ -9,15 +9,21 @@ export interface RateLimitInfo {
|
|
|
9
9
|
retryAfter: number | null;
|
|
10
10
|
blockedUntil: number;
|
|
11
11
|
}
|
|
12
|
+
export interface RateLimitEndpointOverride {
|
|
13
|
+
maxTokens: number;
|
|
14
|
+
windowSizeMs: number;
|
|
15
|
+
}
|
|
12
16
|
export interface RateLimiterConfig {
|
|
13
17
|
minDelayMs?: number;
|
|
14
18
|
decelerationThreshold?: number;
|
|
15
19
|
userKeyExtractor?: (headers: Record<string, string>) => string;
|
|
20
|
+
endpointOverrides?: Record<string, RateLimitEndpointOverride>;
|
|
16
21
|
}
|
|
17
22
|
export declare class RateLimiter implements IRateLimiter {
|
|
18
23
|
private readonly minDelayMs;
|
|
19
24
|
private readonly decelerationThreshold;
|
|
20
25
|
private readonly userKeyExtractor?;
|
|
26
|
+
private readonly endpointOverrides;
|
|
21
27
|
private lastRequestTime;
|
|
22
28
|
private minDelayChain;
|
|
23
29
|
private isTestMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../../../src/core/rateLimiter/RateLimiter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAUpE,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAUD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["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export declare function lookupSpecTtl(method: string, templatePath: string): num
|
|
|
19
19
|
/**
|
|
20
20
|
* Attempt a spec-aware cache hit (TTL-based, no network request).
|
|
21
21
|
*/
|
|
22
|
-
export declare function trySpecAwareCacheHit(client: ApiClient, url: string, method: string, templatePath: string | undefined, resolveCache: (client: ApiClient) => ICache | null): EsiHandlerResponse | null;
|
|
22
|
+
export declare function trySpecAwareCacheHit(client: ApiClient, url: string, method: string, templatePath: string | undefined, resolveCache: (client: ApiClient) => ICache | null, requiresAuth?: boolean): EsiHandlerResponse | null;
|
|
23
23
|
/**
|
|
24
24
|
* Attempt to return a stale cached response (used on server errors).
|
|
25
25
|
*/
|
|
26
|
-
export declare function tryStaleCacheResponse(client: ApiClient, url: string, parsed: ParsedHeaders, resolveCache: (client: ApiClient) => ICache | null): EsiHandlerResponse | null;
|
|
26
|
+
export declare function tryStaleCacheResponse(client: ApiClient, url: string, parsed: ParsedHeaders, resolveCache: (client: ApiClient) => ICache | null, requiresAuth?: boolean): EsiHandlerResponse | null;
|
|
27
27
|
/**
|
|
28
28
|
* Cache a successful response, or invalidate cache for non-GET methods.
|
|
29
29
|
*/
|
|
30
|
-
export declare function cacheResponse(client: ApiClient, url: string, method: string, endpoint: string, parsed: ParsedHeaders, data: unknown, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null, templatePath?: string): void;
|
|
30
|
+
export declare function cacheResponse(client: ApiClient, url: string, method: string, endpoint: string, parsed: ParsedHeaders, data: unknown, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null, templatePath?: string, requiresAuth?: boolean): void;
|
|
31
31
|
//# sourceMappingURL=cachePolicy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cachePolicy.d.ts","sourceRoot":"","sources":["../../../src/core/requestPipeline/cachePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC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,IAAI,CAc3B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,GAAG,IAAI,EAClD,YAAY,CAAC,EAAE,MAAM,EACrB,YAAY,GAAE,OAAe,GAC5B,IAAI,CAiBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/core/requestPipeline/headers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/core/requestPipeline/headers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAIzC;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9B,MAAM,GAAG,SAKX,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,OAAO,EACrB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,GAAG,IAAI,GACjD,WAAW,CA0Cb"}
|
|
@@ -6,11 +6,11 @@ export declare const STATUS_MESSAGES: Record<number, string>;
|
|
|
6
6
|
/**
|
|
7
7
|
* Handle early-return HTTP statuses (201, 204, 304).
|
|
8
8
|
*/
|
|
9
|
-
export declare function handleEarlyStatus(client: ApiClient, status: number, url: string, parsed: ParsedHeaders, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null): EsiHandlerResponse | null;
|
|
9
|
+
export declare function handleEarlyStatus(client: ApiClient, status: number, url: string, parsed: ParsedHeaders, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null, requiresAuth?: boolean): EsiHandlerResponse | null;
|
|
10
10
|
/**
|
|
11
11
|
* Handle error HTTP responses (4xx, 5xx). May serve stale cache on 5xx.
|
|
12
12
|
*/
|
|
13
|
-
export declare function handleErrorResponse(client: ApiClient, response: Response, url: string, parsed: ParsedHeaders, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null): EsiHandlerResponse | never;
|
|
13
|
+
export declare function handleErrorResponse(client: ApiClient, response: Response, url: string, parsed: ParsedHeaders, useETag: boolean, resolveCache: (client: ApiClient) => ICache | null, requiresAuth?: boolean): EsiHandlerResponse | never;
|
|
14
14
|
/**
|
|
15
15
|
* Wrap an unknown error into an EsiError or rethrow known errors.
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusHandling.d.ts","sourceRoot":"","sources":["../../../src/core/requestPipeline/statusHandling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"statusHandling.d.ts","sourceRoot":"","sources":["../../../src/core/requestPipeline/statusHandling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAyB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE1E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAelD,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,GAAG,IAAI,EAClD,YAAY,GAAE,OAAe,GAC5B,kBAAkB,GAAG,IAAI,CAmC3B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,GAAG,IAAI,EAClD,YAAY,GAAE,OAAe,GAC5B,kBAAkB,GAAG,KAAK,CAkC5B;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAU/C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { EsiClient, EsiClientConfig, EsiDatasource } from './EsiClient';
|
|
|
2
2
|
export { getDefaultClient } from './EsiClient';
|
|
3
3
|
export { CustomEsiClient, EsiClientBuilder, EsiApiFactory, } from './EsiClientBuilder';
|
|
4
4
|
export { ApiClientType } from './core/ClientRegistry';
|
|
5
|
-
export { ApiClient, TokenProvider } from './core/ApiClient';
|
|
5
|
+
export { ApiClient, TokenProvider, FetchLike } from './core/ApiClient';
|
|
6
6
|
export { ApiClientBuilder } from './core/ApiClientBuilder';
|
|
7
7
|
export { configureApiClient, ConfigureApiClientResult, } from './core/configureApiClient';
|
|
8
8
|
export { BaseEsiClient } from './clients/BaseEsiClient';
|
|
@@ -43,6 +43,8 @@ export { SkyhooksClient } from './clients/SkyhooksClient';
|
|
|
43
43
|
export { MercenaryClient } from './clients/MercenaryClient';
|
|
44
44
|
export { MilitaryCampaignsClient } from './clients/MilitaryCampaignsClient';
|
|
45
45
|
export { AccessListsClient } from './clients/AccessListsClient';
|
|
46
|
+
export { CosmeticsClient } from './clients/CosmeticsClient';
|
|
47
|
+
export { ParagonHubClient } from './clients/ParagonHubClient';
|
|
46
48
|
export { CursorOptions, CursorResult, CreateClientOptions, InferEndpointResult, UnwrapArray, WithMetadata, WithSafeMode, fetchAllCursorPages, } from './core/endpoints/createClient';
|
|
47
49
|
export { CursorTokens } from './core/pagination/CursorPaginationHandler';
|
|
48
50
|
export { EsiError, TimeoutError, EsiValidationError, isEsiError, isRateLimited, isNotFound, isUnauthorized, isForbidden, isServerError, isTimeout, isRetryable, isValidationError, isCircuitOpen, sanitizeUrl, } from './core/util/error';
|
|
@@ -51,7 +53,7 @@ export { DeprecationInfo } from './core/endpoints/EndpointDefinition';
|
|
|
51
53
|
export { RequestInterceptor, ResponseInterceptor, RequestContext, ResponseContext, } from './core/middleware/Middleware';
|
|
52
54
|
export { CircuitBreaker, CircuitBreakerConfig, CircuitState, CircuitOpenError, } from './core/circuitBreaker/CircuitBreaker';
|
|
53
55
|
export type { ICircuitBreaker } from './core/circuitBreaker/ICircuitBreaker';
|
|
54
|
-
export { RateLimiter, RateLimitInfo, RateLimiterConfig, } from './core/rateLimiter/RateLimiter';
|
|
56
|
+
export { RateLimiter, RateLimitEndpointOverride, RateLimitInfo, RateLimiterConfig, } from './core/rateLimiter/RateLimiter';
|
|
55
57
|
export { ETagCacheManager, ETagCacheConfig, } from './core/cache/ETagCacheManager';
|
|
56
58
|
export { RetryConfig } from './core/util/retry';
|
|
57
59
|
export { RetryStrategy } from './core/RetryStrategy';
|
|
@@ -61,7 +63,7 @@ export { RequestDeduplicator } from './core/RequestDeduplicator';
|
|
|
61
63
|
export type { IDeduplicator } from './core/IDeduplicator';
|
|
62
64
|
export { batchFetch, batchPost, BatchOptions, BatchResult, } from './core/BatchRequestHandler';
|
|
63
65
|
export { EsiDiagnostics, CacheStats, CircuitBreakerStats, } from './core/EsiDiagnostics';
|
|
64
|
-
export { fetchPages, PageResult, } from './core/pagination/AsyncPaginationIterator';
|
|
66
|
+
export { fetchAllPages, fetchPages, PageResult, } from './core/pagination/AsyncPaginationIterator';
|
|
65
67
|
export { buildEndpointPath } from './core/endpoints/buildEndpointPath';
|
|
66
68
|
export { ICache } from './core/cache/ICache';
|
|
67
69
|
export { IRateLimiter, RateLimitGroupStatus, } from './core/rateLimiter/IRateLimiter';
|
|
@@ -69,6 +71,7 @@ export { RateLimitGroupSpec } from './core/endpoints/esi-rate-limit-groups.gener
|
|
|
69
71
|
export { EsiScope, esiEndpointScopes, } from './core/endpoints/esi-scopes.generated';
|
|
70
72
|
export { ILogger } from './core/logger/ILogger';
|
|
71
73
|
export { setLogger } from './core/logger/loggerUtil';
|
|
74
|
+
export { createNoopLogger } from './core/logger/NoopLogger';
|
|
72
75
|
export * from './types/api-responses';
|
|
73
76
|
export * as schemas from './schemas';
|
|
74
77
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;A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