@lgriffin/esi.ts 5.2.0 → 6.1.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 +65 -0
- package/README.md +262 -95
- package/dist/EsiClient.d.ts +2 -0
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/EsiClient.js +6 -0
- package/dist/clients/AssetsClient.d.ts +3 -0
- package/dist/clients/AssetsClient.d.ts.map +1 -1
- package/dist/clients/AssetsClient.js +6 -0
- package/dist/clients/BaseEsiClient.d.ts +3 -1
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.js +7 -0
- package/dist/clients/ContactsClient.d.ts +6 -4
- package/dist/clients/ContactsClient.d.ts.map +1 -1
- package/dist/clients/ContactsClient.js +9 -7
- package/dist/clients/ContractsClient.d.ts +4 -0
- package/dist/clients/ContractsClient.d.ts.map +1 -1
- package/dist/clients/ContractsClient.js +9 -0
- package/dist/clients/FleetClient.d.ts +2 -2
- package/dist/clients/FleetClient.d.ts.map +1 -1
- package/dist/clients/FleetClient.js +8 -2
- package/dist/clients/KillmailsClient.d.ts +3 -0
- package/dist/clients/KillmailsClient.d.ts.map +1 -1
- package/dist/clients/KillmailsClient.js +6 -0
- package/dist/clients/MarketClient.d.ts +7 -0
- package/dist/clients/MarketClient.d.ts.map +1 -1
- package/dist/clients/MarketClient.js +18 -0
- package/dist/clients/SovereigntyClient.d.ts +1 -1
- package/dist/clients/SovereigntyClient.d.ts.map +1 -1
- package/dist/clients/UiClient.d.ts +11 -9
- package/dist/clients/UiClient.d.ts.map +1 -1
- package/dist/clients/UiClient.js +15 -13
- package/dist/clients/WalletClient.d.ts +4 -0
- package/dist/clients/WalletClient.d.ts.map +1 -1
- package/dist/clients/WalletClient.js +9 -0
- package/dist/core/ApiClient.d.ts +6 -0
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ApiClient.js +14 -0
- package/dist/core/ApiRequestHandler.d.ts +1 -0
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/ApiRequestHandler.js +10 -1
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.js +1 -1
- package/dist/core/endpoints/EndpointDefinition.d.ts +15 -4
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
- package/dist/core/endpoints/accessListEndpoints.d.ts +16 -0
- package/dist/core/endpoints/accessListEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/accessListEndpoints.js +2 -0
- package/dist/core/endpoints/allianceEndpoints.d.ts +14 -0
- package/dist/core/endpoints/allianceEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/allianceEndpoints.js +3 -0
- package/dist/core/endpoints/assetEndpoints.d.ts +28 -0
- package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/assetEndpoints.js +5 -0
- package/dist/core/endpoints/buildEndpointPath.d.ts +7 -0
- package/dist/core/endpoints/buildEndpointPath.d.ts.map +1 -0
- package/dist/core/endpoints/buildEndpointPath.js +44 -0
- package/dist/core/endpoints/calendarEndpoints.d.ts +40 -0
- package/dist/core/endpoints/calendarEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/calendarEndpoints.js +5 -0
- package/dist/core/endpoints/characterEndpoints.d.ts +105 -0
- package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/characterEndpoints.js +13 -0
- package/dist/core/endpoints/cloneEndpoints.d.ts +21 -0
- package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/cloneEndpoints.js +2 -0
- package/dist/core/endpoints/contactEndpoints.d.ts +60 -3
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/contactEndpoints.js +13 -3
- package/dist/core/endpoints/contractEndpoints.d.ts +184 -0
- package/dist/core/endpoints/contractEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/contractEndpoints.js +11 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts +192 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationEndpoints.js +18 -0
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/endpoints/createClient.js +15 -41
- package/dist/core/endpoints/dogmaEndpoints.d.ts +38 -0
- package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/dogmaEndpoints.js +4 -0
- package/dist/core/endpoints/esi-scopes.generated.d.ts +3 -0
- package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -0
- package/dist/core/endpoints/esi-scopes.generated.js +127 -0
- package/dist/core/endpoints/factionEndpoints.d.ts +154 -0
- package/dist/core/endpoints/factionEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/factionEndpoints.js +10 -0
- package/dist/core/endpoints/fittingEndpoints.d.ts +12 -0
- package/dist/core/endpoints/fittingEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/fittingEndpoints.js +3 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts +45 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/fleetEndpoints.js +6 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.d.ts +122 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/freelanceJobsEndpoints.js +8 -0
- package/dist/core/endpoints/incursionEndpoints.d.ts +15 -0
- package/dist/core/endpoints/incursionEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/incursionEndpoints.js +3 -0
- package/dist/core/endpoints/industryEndpoints.d.ts +103 -0
- package/dist/core/endpoints/industryEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/industryEndpoints.js +10 -0
- package/dist/core/endpoints/insuranceEndpoints.d.ts +9 -0
- package/dist/core/endpoints/insuranceEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/insuranceEndpoints.js +3 -0
- package/dist/core/endpoints/killmailEndpoints.d.ts +41 -0
- package/dist/core/endpoints/killmailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/killmailEndpoints.js +5 -0
- package/dist/core/endpoints/locationEndpoints.d.ts +16 -0
- package/dist/core/endpoints/locationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/locationEndpoints.js +4 -0
- package/dist/core/endpoints/loyaltyEndpoints.d.ts +17 -0
- package/dist/core/endpoints/loyaltyEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/loyaltyEndpoints.js +4 -0
- package/dist/core/endpoints/mailEndpoints.d.ts +37 -0
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mailEndpoints.js +4 -0
- package/dist/core/endpoints/marketEndpoints.d.ts +123 -0
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/marketEndpoints.js +9 -0
- package/dist/core/endpoints/mercenaryEndpoints.d.ts +24 -0
- package/dist/core/endpoints/mercenaryEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mercenaryEndpoints.js +4 -0
- package/dist/core/endpoints/piEndpoints.d.ts +76 -0
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/piEndpoints.js +5 -0
- package/dist/core/endpoints/skillEndpoints.d.ts +21 -0
- package/dist/core/endpoints/skillEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/skillEndpoints.js +5 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts +27 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/skyhookEndpoints.js +5 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts +51 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/sovereigntyEndpoints.js +4 -0
- package/dist/core/endpoints/statusEndpoints.d.ts +6 -0
- package/dist/core/endpoints/statusEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/statusEndpoints.js +2 -0
- package/dist/core/endpoints/uiEndpoints.d.ts +14 -4
- package/dist/core/endpoints/uiEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/uiEndpoints.js +8 -4
- package/dist/core/endpoints/universeEndpoints.d.ts +272 -0
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.js +25 -0
- package/dist/core/endpoints/walletEndpoints.d.ts +51 -0
- package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/walletEndpoints.js +6 -0
- package/dist/core/endpoints/warEndpoints.d.ts +30 -0
- package/dist/core/endpoints/warEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/warEndpoints.js +5 -0
- package/dist/core/pagination/AsyncPaginationIterator.js +2 -2
- package/dist/core/util/error.d.ts +5 -0
- package/dist/core/util/error.d.ts.map +1 -1
- package/dist/core/util/error.js +14 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -2
- package/dist/schemas/access-lists.d.ts +30 -0
- package/dist/schemas/access-lists.d.ts.map +1 -0
- package/dist/schemas/access-lists.js +14 -0
- package/dist/schemas/alliance.d.ts +30 -0
- package/dist/schemas/alliance.d.ts.map +1 -0
- package/dist/schemas/alliance.js +28 -0
- package/dist/schemas/assets.d.ts +29 -0
- package/dist/schemas/assets.d.ts.map +1 -0
- package/dist/schemas/assets.js +26 -0
- package/dist/schemas/calendar.d.ts +41 -0
- package/dist/schemas/calendar.d.ts.map +1 -0
- package/dist/schemas/calendar.js +43 -0
- package/dist/schemas/character.d.ts +122 -0
- package/dist/schemas/character.d.ts.map +1 -0
- package/dist/schemas/character.js +114 -0
- package/dist/schemas/clones.d.ts +23 -0
- package/dist/schemas/clones.d.ts.map +1 -0
- package/dist/schemas/clones.js +21 -0
- package/dist/schemas/common.d.ts +59 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +34 -0
- package/dist/schemas/contacts.d.ts +18 -0
- package/dist/schemas/contacts.d.ts.map +1 -0
- package/dist/schemas/contacts.js +15 -0
- package/dist/schemas/contracts.d.ts +63 -0
- package/dist/schemas/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts.js +58 -0
- package/dist/schemas/corporation.d.ts +193 -0
- package/dist/schemas/corporation.d.ts.map +1 -0
- package/dist/schemas/corporation.js +178 -0
- package/dist/schemas/dogma.d.ts +40 -0
- package/dist/schemas/dogma.d.ts.map +1 -0
- package/dist/schemas/dogma.js +42 -0
- package/dist/schemas/faction-warfare.d.ts +95 -0
- package/dist/schemas/faction-warfare.d.ts.map +1 -0
- package/dist/schemas/faction-warfare.js +92 -0
- package/dist/schemas/fittings.d.ts +13 -0
- package/dist/schemas/fittings.d.ts.map +1 -0
- package/dist/schemas/fittings.js +15 -0
- package/dist/schemas/fleet.d.ts +46 -0
- package/dist/schemas/fleet.d.ts.map +1 -0
- package/dist/schemas/fleet.js +48 -0
- package/dist/schemas/freelance-jobs.d.ts +141 -0
- package/dist/schemas/freelance-jobs.d.ts.map +1 -0
- package/dist/schemas/freelance-jobs.js +99 -0
- package/dist/schemas/incursions.d.ts +16 -0
- package/dist/schemas/incursions.d.ts.map +1 -0
- package/dist/schemas/incursions.js +14 -0
- package/dist/schemas/index.d.ts +33 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +48 -0
- package/dist/schemas/industry.d.ts +73 -0
- package/dist/schemas/industry.d.ts.map +1 -0
- package/dist/schemas/industry.js +75 -0
- package/dist/schemas/insurance.d.ts +10 -0
- package/dist/schemas/insurance.d.ts.map +1 -0
- package/dist/schemas/insurance.js +12 -0
- package/dist/schemas/killmails.d.ts +38 -0
- package/dist/schemas/killmails.d.ts.map +1 -0
- package/dist/schemas/killmails.js +42 -0
- package/dist/schemas/location.d.ts +18 -0
- package/dist/schemas/location.d.ts.map +1 -0
- package/dist/schemas/location.js +20 -0
- package/dist/schemas/loyalty.d.ts +18 -0
- package/dist/schemas/loyalty.d.ts.map +1 -0
- package/dist/schemas/loyalty.js +20 -0
- package/dist/schemas/mail.d.ts +26 -0
- package/dist/schemas/mail.d.ts.map +1 -0
- package/dist/schemas/mail.js +30 -0
- package/dist/schemas/market.d.ts +29 -0
- package/dist/schemas/market.d.ts.map +1 -0
- package/dist/schemas/market.js +26 -0
- package/dist/schemas/mercenary.d.ts +25 -0
- package/dist/schemas/mercenary.d.ts.map +1 -0
- package/dist/schemas/mercenary.js +22 -0
- package/dist/schemas/pi.d.ts +77 -0
- package/dist/schemas/pi.d.ts.map +1 -0
- package/dist/schemas/pi.js +85 -0
- package/dist/schemas/skills.d.ts +18 -0
- package/dist/schemas/skills.d.ts.map +1 -0
- package/dist/schemas/skills.js +20 -0
- package/dist/schemas/skyhooks.d.ts +28 -0
- package/dist/schemas/skyhooks.d.ts.map +1 -0
- package/dist/schemas/skyhooks.js +30 -0
- package/dist/schemas/sovereignty.d.ts +59 -0
- package/dist/schemas/sovereignty.d.ts.map +1 -0
- package/dist/schemas/sovereignty.js +70 -0
- package/dist/schemas/status.d.ts +8 -0
- package/dist/schemas/status.d.ts.map +1 -0
- package/dist/schemas/status.js +10 -0
- package/dist/schemas/universe.d.ts +286 -0
- package/dist/schemas/universe.d.ts.map +1 -0
- package/dist/schemas/universe.js +245 -0
- package/dist/schemas/wallet.d.ts +27 -0
- package/dist/schemas/wallet.d.ts.map +1 -0
- package/dist/schemas/wallet.js +29 -0
- package/dist/schemas/wars.d.ts +27 -0
- package/dist/schemas/wars.d.ts.map +1 -0
- package/dist/schemas/wars.js +31 -0
- package/dist/testing/TestDataFactory.d.ts +44 -3
- package/dist/testing/TestDataFactory.d.ts.map +1 -1
- package/dist/testing/TestDataFactory.js +16 -10
- package/dist/types/access-lists.d.ts +4 -10
- package/dist/types/access-lists.d.ts.map +1 -1
- package/dist/types/alliance.d.ts +6 -24
- package/dist/types/alliance.d.ts.map +1 -1
- package/dist/types/assets.d.ts +5 -22
- package/dist/types/assets.d.ts.map +1 -1
- package/dist/types/calendar.d.ts +5 -23
- package/dist/types/calendar.d.ts.map +1 -1
- package/dist/types/character.d.ts +15 -104
- package/dist/types/character.d.ts.map +1 -1
- package/dist/types/clones.d.ts +3 -15
- package/dist/types/clones.d.ts.map +1 -1
- package/dist/types/common.d.ts +4 -21
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/contacts.d.ts +4 -11
- package/dist/types/contacts.d.ts.map +1 -1
- package/dist/types/contracts.d.ts +5 -39
- package/dist/types/contracts.d.ts.map +1 -1
- package/dist/types/corporation.d.ts +18 -166
- package/dist/types/corporation.d.ts.map +1 -1
- package/dist/types/dogma.d.ts +5 -38
- package/dist/types/dogma.d.ts.map +1 -1
- package/dist/types/faction-warfare.d.ts +8 -88
- package/dist/types/faction-warfare.d.ts.map +1 -1
- package/dist/types/fittings.d.ts +3 -11
- package/dist/types/fittings.d.ts.map +1 -1
- package/dist/types/fleet.d.ts +6 -34
- package/dist/types/fleet.d.ts.map +1 -1
- package/dist/types/freelance-jobs.d.ts +10 -91
- package/dist/types/freelance-jobs.d.ts.map +1 -1
- package/dist/types/incursions.d.ts +3 -10
- package/dist/types/incursions.d.ts.map +1 -1
- package/dist/types/industry.d.ts +9 -64
- package/dist/types/industry.d.ts.map +1 -1
- package/dist/types/insurance.d.ts +3 -8
- package/dist/types/insurance.d.ts.map +1 -1
- package/dist/types/killmails.d.ts +4 -36
- package/dist/types/killmails.d.ts.map +1 -1
- package/dist/types/location.d.ts +5 -16
- package/dist/types/location.d.ts.map +1 -1
- package/dist/types/loyalty.d.ts +4 -16
- package/dist/types/loyalty.d.ts.map +1 -1
- package/dist/types/mail.d.ts +4 -18
- package/dist/types/mail.d.ts.map +1 -1
- package/dist/types/market.d.ts +4 -22
- package/dist/types/market.d.ts.map +1 -1
- package/dist/types/mercenary.d.ts +4 -18
- package/dist/types/mercenary.d.ts.map +1 -1
- package/dist/types/pi.d.ts +5 -66
- package/dist/types/pi.d.ts.map +1 -1
- package/dist/types/skills.d.ts +4 -16
- package/dist/types/skills.d.ts.map +1 -1
- package/dist/types/skyhooks.d.ts +5 -26
- package/dist/types/skyhooks.d.ts.map +1 -1
- package/dist/types/sovereignty.d.ts +5 -32
- package/dist/types/sovereignty.d.ts.map +1 -1
- package/dist/types/status.d.ts +3 -6
- package/dist/types/status.d.ts.map +1 -1
- package/dist/types/universe.d.ts +26 -274
- package/dist/types/universe.d.ts.map +1 -1
- package/dist/types/wallet.d.ts +4 -25
- package/dist/types/wallet.d.ts.map +1 -1
- package/dist/types/wars.d.ts +3 -25
- package/dist/types/wars.d.ts.map +1 -1
- package/package.json +62 -45
|
@@ -71,5 +71,11 @@ class AssetsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
71
71
|
postCorporationAssetNames(corporationId, itemIds) {
|
|
72
72
|
return this.api.postCorporationAssetNames(corporationId, itemIds);
|
|
73
73
|
}
|
|
74
|
+
streamCharacterAssets(characterId) {
|
|
75
|
+
return this.streamEndpoint('getCharacterAssets', characterId);
|
|
76
|
+
}
|
|
77
|
+
streamCorporationAssets(corporationId) {
|
|
78
|
+
return this.streamEndpoint('getCorporationAssets', corporationId);
|
|
79
|
+
}
|
|
74
80
|
}
|
|
75
81
|
exports.AssetsClient = AssetsClient;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ApiClient } from '../core/ApiClient';
|
|
2
2
|
import { createClient, WithMetadata } from '../core/endpoints/createClient';
|
|
3
3
|
import { EndpointMap } from '../core/endpoints/EndpointDefinition';
|
|
4
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
4
5
|
type ClientMethods<T extends EndpointMap> = ReturnType<typeof createClient<T>>;
|
|
5
6
|
export declare abstract class BaseEsiClient<T extends EndpointMap> {
|
|
6
7
|
protected api: ClientMethods<T>;
|
|
7
8
|
protected _client: ApiClient;
|
|
8
|
-
|
|
9
|
+
protected _endpoints: T;
|
|
9
10
|
private _metaApi?;
|
|
10
11
|
constructor(client: ApiClient, endpoints: T);
|
|
12
|
+
protected streamEndpoint<R>(endpointName: string & keyof T, ...args: unknown[]): AsyncGenerator<PageResult<R>, void, undefined>;
|
|
11
13
|
withMetadata(): WithMetadata<Omit<this, 'withMetadata'>>;
|
|
12
14
|
}
|
|
13
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEsiClient.d.ts","sourceRoot":"","sources":["../../src/clients/BaseEsiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,YAAY,EAEZ,YAAY,EACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,8BAAsB,aAAa,CAAC,CAAC,SAAS,WAAW;IACvD,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"BaseEsiClient.d.ts","sourceRoot":"","sources":["../../src/clients/BaseEsiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,YAAY,EAEZ,YAAY,EACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAEL,UAAU,EACX,MAAM,4CAA4C,CAAC;AAEpD,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,8BAAsB,aAAa,CAAC,CAAC,SAAS,WAAW;IACvD,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;IAC7B,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,CAAmB;gBAExB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IAM3C,SAAS,CAAC,cAAc,CAAC,CAAC,EACxB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,EAC9B,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAgBjD,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;CAQzD"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseEsiClient = void 0;
|
|
4
4
|
const createClient_1 = require("../core/endpoints/createClient");
|
|
5
|
+
const buildEndpointPath_1 = require("../core/endpoints/buildEndpointPath");
|
|
6
|
+
const AsyncPaginationIterator_1 = require("../core/pagination/AsyncPaginationIterator");
|
|
5
7
|
class BaseEsiClient {
|
|
6
8
|
api;
|
|
7
9
|
_client;
|
|
@@ -12,6 +14,11 @@ class BaseEsiClient {
|
|
|
12
14
|
this._endpoints = endpoints;
|
|
13
15
|
this.api = (0, createClient_1.createClient)(client, endpoints);
|
|
14
16
|
}
|
|
17
|
+
streamEndpoint(endpointName, ...args) {
|
|
18
|
+
const def = this._endpoints[endpointName];
|
|
19
|
+
const { path, body } = (0, buildEndpointPath_1.buildEndpointPath)(def, args, this._client.getDatasource());
|
|
20
|
+
return (0, AsyncPaginationIterator_1.fetchPages)(this._client, path, def.method, def.requiresAuth, body);
|
|
21
|
+
}
|
|
15
22
|
withMetadata() {
|
|
16
23
|
if (!this._metaApi) {
|
|
17
24
|
this._metaApi = (0, createClient_1.createClient)(this._client, this._endpoints, {
|
|
@@ -40,19 +40,21 @@ export declare class ContactsClient extends BaseEsiClient<typeof contactEndpoint
|
|
|
40
40
|
* Add contacts to a character's contact list via a POST request.
|
|
41
41
|
*
|
|
42
42
|
* @param characterId - The ID of the character to add contacts for
|
|
43
|
-
* @param
|
|
43
|
+
* @param standing - Standing value for the contacts (-10 to 10)
|
|
44
|
+
* @param contactIds - Array of character/corporation/alliance IDs to add
|
|
44
45
|
* @returns An array of contact IDs that were successfully added
|
|
45
46
|
* @requires Authentication
|
|
46
47
|
*/
|
|
47
|
-
postCharacterContacts(characterId: number,
|
|
48
|
+
postCharacterContacts(characterId: number, standing: number, contactIds: number[]): Promise<number[]>;
|
|
48
49
|
/**
|
|
49
50
|
* Update existing contacts in a character's contact list via a PUT request.
|
|
50
51
|
*
|
|
51
52
|
* @param characterId - The ID of the character whose contacts to update
|
|
52
|
-
* @param
|
|
53
|
+
* @param standing - New standing value for the contacts (-10 to 10)
|
|
54
|
+
* @param contactIds - Array of contact IDs to update
|
|
53
55
|
* @requires Authentication
|
|
54
56
|
*/
|
|
55
|
-
putCharacterContacts(characterId: number,
|
|
57
|
+
putCharacterContacts(characterId: number, standing: number, contactIds: number[]): Promise<void>;
|
|
56
58
|
/**
|
|
57
59
|
* Retrieve custom contact labels for a character.
|
|
58
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsClient.d.ts","sourceRoot":"","sources":["../../src/clients/ContactsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,cAAe,SAAQ,aAAa,CAAC,OAAO,gBAAgB,CAAC;gBAC5D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAA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OAAO,CAAC,MAAM,EAAE,CAAC;IAMpB;;;;;;;OAOG;IACH,oBAAoB,CAClB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;OAMG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAMvE;;;;;;OAMG;IACH,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIjE;;;;;;OAMG;IACH,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAK5E"}
|
|
@@ -35,7 +35,7 @@ class ContactsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
35
35
|
* @requires Authentication
|
|
36
36
|
*/
|
|
37
37
|
deleteCharacterContacts(characterId, contactIds) {
|
|
38
|
-
return this.api.deleteCharacterContacts(characterId, contactIds);
|
|
38
|
+
return this.api.deleteCharacterContacts(characterId, contactIds.join(','));
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Retrieve a character's contact list.
|
|
@@ -51,22 +51,24 @@ class ContactsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
51
51
|
* Add contacts to a character's contact list via a POST request.
|
|
52
52
|
*
|
|
53
53
|
* @param characterId - The ID of the character to add contacts for
|
|
54
|
-
* @param
|
|
54
|
+
* @param standing - Standing value for the contacts (-10 to 10)
|
|
55
|
+
* @param contactIds - Array of character/corporation/alliance IDs to add
|
|
55
56
|
* @returns An array of contact IDs that were successfully added
|
|
56
57
|
* @requires Authentication
|
|
57
58
|
*/
|
|
58
|
-
postCharacterContacts(characterId,
|
|
59
|
-
return this.api.addContacts(characterId,
|
|
59
|
+
postCharacterContacts(characterId, standing, contactIds) {
|
|
60
|
+
return this.api.addContacts(characterId, standing, contactIds);
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
63
|
* Update existing contacts in a character's contact list via a PUT request.
|
|
63
64
|
*
|
|
64
65
|
* @param characterId - The ID of the character whose contacts to update
|
|
65
|
-
* @param
|
|
66
|
+
* @param standing - New standing value for the contacts (-10 to 10)
|
|
67
|
+
* @param contactIds - Array of contact IDs to update
|
|
66
68
|
* @requires Authentication
|
|
67
69
|
*/
|
|
68
|
-
putCharacterContacts(characterId,
|
|
69
|
-
return this.api.editContacts(characterId,
|
|
70
|
+
putCharacterContacts(characterId, standing, contactIds) {
|
|
71
|
+
return this.api.editContacts(characterId, standing, contactIds);
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
72
74
|
* Retrieve custom contact labels for a character.
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { contractEndpoints } from '../core/endpoints/contractEndpoints';
|
|
4
4
|
import { Contract, ContractBid, ContractItem } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class ContractsClient extends BaseEsiClient<typeof contractEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -77,5 +78,8 @@ export declare class ContractsClient extends BaseEsiClient<typeof contractEndpoi
|
|
|
77
78
|
* @requires Authentication
|
|
78
79
|
*/
|
|
79
80
|
getCorporationContractItems(corporationId: number, contractId: number): Promise<ContractItem[]>;
|
|
81
|
+
streamPublicContracts(regionId: number): AsyncGenerator<PageResult<Contract>, void, undefined>;
|
|
82
|
+
streamCharacterContracts(characterId: number): AsyncGenerator<PageResult<Contract>, void, undefined>;
|
|
83
|
+
streamCorporationContracts(corporationId: number): AsyncGenerator<PageResult<Contract>, void, undefined>;
|
|
80
84
|
}
|
|
81
85
|
//# sourceMappingURL=ContractsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractsClient.d.ts","sourceRoot":"","sources":["../../src/clients/ContractsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContractsClient.d.ts","sourceRoot":"","sources":["../../src/clients/ContractsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,qBAAa,eAAgB,SAAQ,aAAa,CAAC,OAAO,iBAAiB,CAAC;gBAC9D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI/D;;;;;;;OAOG;IACH,wBAAwB,CACtB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,EAAE,CAAC;IAOzB;;;;;;;OAOG;IACH,yBAAyB,CACvB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,EAAE,CAAC;IAO1B;;;;;OAKG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIzD;;;;;OAKG;IACH,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIjE;;;;;OAKG;IACH,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAMnE;;;;;;OAMG;IACH,uBAAuB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAMnE;;;;;;;OAOG;IACH,0BAA0B,CACxB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,EAAE,CAAC;IAOzB;;;;;;;OAOG;IACH,2BAA2B,CACzB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,EAAE,CAAC;IAO1B,qBAAqB,CACnB,QAAQ,EAAE,MAAM,GACf,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAIxD,wBAAwB,CACtB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAIxD,0BAA0B,CACxB,aAAa,EAAE,MAAM,GACpB,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAMzD"}
|
|
@@ -98,5 +98,14 @@ class ContractsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
98
98
|
getCorporationContractItems(corporationId, contractId) {
|
|
99
99
|
return this.api.getCorporationContractItems(corporationId, contractId);
|
|
100
100
|
}
|
|
101
|
+
streamPublicContracts(regionId) {
|
|
102
|
+
return this.streamEndpoint('getPublicContracts', regionId);
|
|
103
|
+
}
|
|
104
|
+
streamCharacterContracts(characterId) {
|
|
105
|
+
return this.streamEndpoint('getCharacterContracts', characterId);
|
|
106
|
+
}
|
|
107
|
+
streamCorporationContracts(corporationId) {
|
|
108
|
+
return this.streamEndpoint('getCorporationContracts', corporationId);
|
|
109
|
+
}
|
|
101
110
|
}
|
|
102
111
|
exports.ContractsClient = ContractsClient;
|
|
@@ -74,7 +74,7 @@ export declare class FleetClient extends BaseEsiClient<typeof fleetEndpoints> {
|
|
|
74
74
|
*
|
|
75
75
|
* @param fleetId - The ID of the fleet
|
|
76
76
|
* @param squadId - The ID of the squad to rename
|
|
77
|
-
* @param name - The new name for the squad
|
|
77
|
+
* @param name - The new name for the squad (max 10 characters)
|
|
78
78
|
* @requires Authentication
|
|
79
79
|
*/
|
|
80
80
|
renameFleetSquad(fleetId: number, squadId: number, name: string): Promise<void>;
|
|
@@ -110,7 +110,7 @@ export declare class FleetClient extends BaseEsiClient<typeof fleetEndpoints> {
|
|
|
110
110
|
*
|
|
111
111
|
* @param fleetId - The ID of the fleet
|
|
112
112
|
* @param wingId - The ID of the wing to rename
|
|
113
|
-
* @param name - The new name for the wing
|
|
113
|
+
* @param name - The new name for the wing (max 10 characters)
|
|
114
114
|
* @requires Authentication
|
|
115
115
|
*/
|
|
116
116
|
renameFleetWing(fleetId: number, wingId: number, name: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FleetClient.d.ts","sourceRoot":"","sources":["../../src/clients/FleetClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,SAAS,EACV,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,WAAY,SAAQ,aAAa,CAAC,OAAO,cAAc,CAAC;gBACvD,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAMvE;;;;;;OAMG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS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AM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D;;;;;;;OAOG;IACH,eAAe,CACb,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAWhB;;;;;;;OAOG;IACH,gBAAgB,CACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAKjC"}
|
|
@@ -93,10 +93,13 @@ class FleetClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
93
93
|
*
|
|
94
94
|
* @param fleetId - The ID of the fleet
|
|
95
95
|
* @param squadId - The ID of the squad to rename
|
|
96
|
-
* @param name - The new name for the squad
|
|
96
|
+
* @param name - The new name for the squad (max 10 characters)
|
|
97
97
|
* @requires Authentication
|
|
98
98
|
*/
|
|
99
99
|
renameFleetSquad(fleetId, squadId, name) {
|
|
100
|
+
if (name.length > 10) {
|
|
101
|
+
return Promise.reject(new Error(`Fleet squad name "${name}" exceeds ESI maximum of 10 characters`));
|
|
102
|
+
}
|
|
100
103
|
return this.api.renameFleetSquad(fleetId, squadId, name);
|
|
101
104
|
}
|
|
102
105
|
/**
|
|
@@ -135,10 +138,13 @@ class FleetClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
135
138
|
*
|
|
136
139
|
* @param fleetId - The ID of the fleet
|
|
137
140
|
* @param wingId - The ID of the wing to rename
|
|
138
|
-
* @param name - The new name for the wing
|
|
141
|
+
* @param name - The new name for the wing (max 10 characters)
|
|
139
142
|
* @requires Authentication
|
|
140
143
|
*/
|
|
141
144
|
renameFleetWing(fleetId, wingId, name) {
|
|
145
|
+
if (name.length > 10) {
|
|
146
|
+
return Promise.reject(new Error(`Fleet wing name "${name}" exceeds ESI maximum of 10 characters`));
|
|
147
|
+
}
|
|
142
148
|
return this.api.renameFleetWing(fleetId, wingId, name);
|
|
143
149
|
}
|
|
144
150
|
/**
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { killmailEndpoints } from '../core/endpoints/killmailEndpoints';
|
|
4
4
|
import { KillmailSummary, Killmail } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class KillmailsClient extends BaseEsiClient<typeof killmailEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -28,5 +29,7 @@ export declare class KillmailsClient extends BaseEsiClient<typeof killmailEndpoi
|
|
|
28
29
|
* @returns The full killmail details including victim, attackers, and items
|
|
29
30
|
*/
|
|
30
31
|
getKillmail(killmailId: number, killmailHash: string): Promise<Killmail>;
|
|
32
|
+
streamCharacterRecentKillmails(characterId: number): AsyncGenerator<PageResult<KillmailSummary>, void, undefined>;
|
|
33
|
+
streamCorporationRecentKillmails(corporationId: number): AsyncGenerator<PageResult<KillmailSummary>, void, undefined>;
|
|
31
34
|
}
|
|
32
35
|
//# sourceMappingURL=KillmailsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KillmailsClient.d.ts","sourceRoot":"","sources":["../../src/clients/KillmailsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"KillmailsClient.d.ts","sourceRoot":"","sources":["../../src/clients/KillmailsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,qBAAa,eAAgB,SAAQ,aAAa,CAAC,OAAO,iBAAiB,CAAC;gBAC9D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAM5E;;;;;;OAMG;IACH,6BAA6B,CAC3B,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC;IAM7B;;;;;;OAMG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIxE,8BAA8B,CAC5B,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAO/D,gCAAgC,CAC9B,aAAa,EAAE,MAAM,GACpB,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAMhE"}
|
|
@@ -37,5 +37,11 @@ class KillmailsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
37
37
|
getKillmail(killmailId, killmailHash) {
|
|
38
38
|
return this.api.getKillmail(killmailId, killmailHash);
|
|
39
39
|
}
|
|
40
|
+
streamCharacterRecentKillmails(characterId) {
|
|
41
|
+
return this.streamEndpoint('getCharacterRecentKillmails', characterId);
|
|
42
|
+
}
|
|
43
|
+
streamCorporationRecentKillmails(corporationId) {
|
|
44
|
+
return this.streamEndpoint('getCorporationRecentKillmails', corporationId);
|
|
45
|
+
}
|
|
40
46
|
}
|
|
41
47
|
exports.KillmailsClient = KillmailsClient;
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { marketEndpoints } from '../core/endpoints/marketEndpoints';
|
|
4
4
|
import { MarketOrder, MarketHistory } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class MarketClient extends BaseEsiClient<typeof marketEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -94,5 +95,11 @@ export declare class MarketClient extends BaseEsiClient<typeof marketEndpoints>
|
|
|
94
95
|
* @returns A list of active market orders in the structure
|
|
95
96
|
*/
|
|
96
97
|
getMarketOrdersInStructure(structureId: number): Promise<MarketOrder[]>;
|
|
98
|
+
streamMarketOrders(regionId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
|
|
99
|
+
streamMarketTypes(regionId: number): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
100
|
+
streamCharacterOrderHistory(characterId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
|
|
101
|
+
streamCorporationOrders(corporationId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
|
|
102
|
+
streamCorporationOrderHistory(corporationId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
|
|
103
|
+
streamMarketOrdersInStructure(structureId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
|
|
97
104
|
}
|
|
98
105
|
//# sourceMappingURL=MarketClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketClient.d.ts","sourceRoot":"","sources":["../../src/clients/MarketClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,w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
110
110
|
return this.api.getMarketOrdersInStructure(structureId);
|
|
111
111
|
}
|
|
112
|
+
streamMarketOrders(regionId) {
|
|
113
|
+
return this.streamEndpoint('getMarketOrders', regionId, 'all');
|
|
114
|
+
}
|
|
115
|
+
streamMarketTypes(regionId) {
|
|
116
|
+
return this.streamEndpoint('getMarketTypes', regionId);
|
|
117
|
+
}
|
|
118
|
+
streamCharacterOrderHistory(characterId) {
|
|
119
|
+
return this.streamEndpoint('getCharacterOrderHistory', characterId);
|
|
120
|
+
}
|
|
121
|
+
streamCorporationOrders(corporationId) {
|
|
122
|
+
return this.streamEndpoint('getCorporationOrders', corporationId);
|
|
123
|
+
}
|
|
124
|
+
streamCorporationOrderHistory(corporationId) {
|
|
125
|
+
return this.streamEndpoint('getCorporationOrderHistory', corporationId);
|
|
126
|
+
}
|
|
127
|
+
streamMarketOrdersInStructure(structureId) {
|
|
128
|
+
return this.streamEndpoint('getMarketOrdersInStructure', structureId);
|
|
129
|
+
}
|
|
112
130
|
}
|
|
113
131
|
exports.MarketClient = MarketClient;
|
|
@@ -15,6 +15,6 @@ export declare class SovereigntyClient extends BaseEsiClient<typeof sovereigntyE
|
|
|
15
15
|
*
|
|
16
16
|
* @returns A list of sovereignty systems with ownership, ADM indices, and anchored structures
|
|
17
17
|
*/
|
|
18
|
-
getSovereigntySystems(): Promise<SovereigntySystem
|
|
18
|
+
getSovereigntySystems(): Promise<SovereigntySystem>;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=SovereigntyClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SovereigntyClient.d.ts","sourceRoot":"","sources":["../../src/clients/SovereigntyClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,qBAAa,iBAAkB,SAAQ,aAAa,CAClD,OAAO,oBAAoB,CAC5B;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACH,uBAAuB,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAIzD;;;;OAIG;IACH,qBAAqB,IAAI,OAAO,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SovereigntyClient.d.ts","sourceRoot":"","sources":["../../src/clients/SovereigntyClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,qBAAa,iBAAkB,SAAQ,aAAa,CAClD,OAAO,oBAAoB,CAC5B;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACH,uBAAuB,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAIzD;;;;OAIG;IACH,qBAAqB,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAGpD"}
|
|
@@ -6,35 +6,37 @@ export declare class UiClient extends BaseEsiClient<typeof uiEndpoints> {
|
|
|
6
6
|
/**
|
|
7
7
|
* Sets a solar system as an autopilot waypoint in the EVE client.
|
|
8
8
|
*
|
|
9
|
-
* @param
|
|
9
|
+
* @param destinationId - The solar system, station, or structure ID to set as waypoint
|
|
10
|
+
* @param addToBeginning - Whether to add the waypoint to the beginning of the route
|
|
11
|
+
* @param clearOtherWaypoints - Whether to clear existing waypoints first
|
|
10
12
|
* @requires Authentication
|
|
11
13
|
*/
|
|
12
|
-
setAutopilotWaypoint(
|
|
14
|
+
setAutopilotWaypoint(destinationId: number, addToBeginning: boolean, clearOtherWaypoints: boolean): Promise<void>;
|
|
13
15
|
/**
|
|
14
16
|
* Opens the contract window for a specific contract in the EVE client.
|
|
15
17
|
*
|
|
16
|
-
* @param
|
|
18
|
+
* @param contractId - The contract ID to display
|
|
17
19
|
* @requires Authentication
|
|
18
20
|
*/
|
|
19
|
-
openContractWindow(
|
|
21
|
+
openContractWindow(contractId: number): Promise<void>;
|
|
20
22
|
/**
|
|
21
23
|
* Opens the information window for a specific entity in the EVE client.
|
|
22
24
|
*
|
|
23
|
-
* @param
|
|
25
|
+
* @param targetId - The character, corporation, alliance, or type ID to display
|
|
24
26
|
* @requires Authentication
|
|
25
27
|
*/
|
|
26
|
-
openInformationWindow(
|
|
28
|
+
openInformationWindow(targetId: number): Promise<void>;
|
|
27
29
|
/**
|
|
28
30
|
* Opens the market details window for a specific type in the EVE client.
|
|
29
31
|
*
|
|
30
|
-
* @param
|
|
32
|
+
* @param typeId - The inventory type ID to display market details for
|
|
31
33
|
* @requires Authentication
|
|
32
34
|
*/
|
|
33
|
-
openMarketDetailsWindow(
|
|
35
|
+
openMarketDetailsWindow(typeId: number): Promise<void>;
|
|
34
36
|
/**
|
|
35
37
|
* Opens the new mail composition window in the EVE client with pre-filled fields.
|
|
36
38
|
*
|
|
37
|
-
* @param body - The mail details including recipients, subject, and body text
|
|
39
|
+
* @param body - The mail details including recipients (integer array), subject, and body text
|
|
38
40
|
* @requires Authentication
|
|
39
41
|
*/
|
|
40
42
|
openNewMailWindow(body: object): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiClient.d.ts","sourceRoot":"","sources":["../../src/clients/UiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,QAAS,SAAQ,aAAa,CAAC,OAAO,WAAW,CAAC;gBACjD,MAAM,EAAE,SAAS;IAI7B
|
|
1
|
+
{"version":3,"file":"UiClient.d.ts","sourceRoot":"","sources":["../../src/clients/UiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,QAAS,SAAQ,aAAa,CAAC,OAAO,WAAW,CAAC;gBACjD,MAAM,EAAE,SAAS;IAI7B;;;;;;;OAOG;IACH,oBAAoB,CAClB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,OAAO,EACvB,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD;;;;;OAKG;IACH,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD;;;;;OAKG;IACH,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD;;;;;OAKG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C"}
|
package/dist/clients/UiClient.js
CHANGED
|
@@ -10,43 +10,45 @@ class UiClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
10
10
|
/**
|
|
11
11
|
* Sets a solar system as an autopilot waypoint in the EVE client.
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
13
|
+
* @param destinationId - The solar system, station, or structure ID to set as waypoint
|
|
14
|
+
* @param addToBeginning - Whether to add the waypoint to the beginning of the route
|
|
15
|
+
* @param clearOtherWaypoints - Whether to clear existing waypoints first
|
|
14
16
|
* @requires Authentication
|
|
15
17
|
*/
|
|
16
|
-
setAutopilotWaypoint(
|
|
17
|
-
return this.api.setAutopilotWaypoint(
|
|
18
|
+
setAutopilotWaypoint(destinationId, addToBeginning, clearOtherWaypoints) {
|
|
19
|
+
return this.api.setAutopilotWaypoint(destinationId, addToBeginning, clearOtherWaypoints);
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Opens the contract window for a specific contract in the EVE client.
|
|
21
23
|
*
|
|
22
|
-
* @param
|
|
24
|
+
* @param contractId - The contract ID to display
|
|
23
25
|
* @requires Authentication
|
|
24
26
|
*/
|
|
25
|
-
openContractWindow(
|
|
26
|
-
return this.api.openContractWindow(
|
|
27
|
+
openContractWindow(contractId) {
|
|
28
|
+
return this.api.openContractWindow(contractId);
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Opens the information window for a specific entity in the EVE client.
|
|
30
32
|
*
|
|
31
|
-
* @param
|
|
33
|
+
* @param targetId - The character, corporation, alliance, or type ID to display
|
|
32
34
|
* @requires Authentication
|
|
33
35
|
*/
|
|
34
|
-
openInformationWindow(
|
|
35
|
-
return this.api.openInformationWindow(
|
|
36
|
+
openInformationWindow(targetId) {
|
|
37
|
+
return this.api.openInformationWindow(targetId);
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Opens the market details window for a specific type in the EVE client.
|
|
39
41
|
*
|
|
40
|
-
* @param
|
|
42
|
+
* @param typeId - The inventory type ID to display market details for
|
|
41
43
|
* @requires Authentication
|
|
42
44
|
*/
|
|
43
|
-
openMarketDetailsWindow(
|
|
44
|
-
return this.api.openMarketDetailsWindow(
|
|
45
|
+
openMarketDetailsWindow(typeId) {
|
|
46
|
+
return this.api.openMarketDetailsWindow(typeId);
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Opens the new mail composition window in the EVE client with pre-filled fields.
|
|
48
50
|
*
|
|
49
|
-
* @param body - The mail details including recipients, subject, and body text
|
|
51
|
+
* @param body - The mail details including recipients (integer array), subject, and body text
|
|
50
52
|
* @requires Authentication
|
|
51
53
|
*/
|
|
52
54
|
openNewMailWindow(body) {
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { walletEndpoints } from '../core/endpoints/walletEndpoints';
|
|
4
4
|
import { WalletJournal, WalletTransaction } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class WalletClient extends BaseEsiClient<typeof walletEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -57,5 +58,8 @@ export declare class WalletClient extends BaseEsiClient<typeof walletEndpoints>
|
|
|
57
58
|
* @requires Authentication
|
|
58
59
|
*/
|
|
59
60
|
getCorporationWalletTransactions(corporationId: number, division: number): Promise<WalletTransaction[]>;
|
|
61
|
+
streamCharacterWalletJournal(characterId: number): AsyncGenerator<PageResult<WalletJournal>, void, undefined>;
|
|
62
|
+
streamCorporationWalletJournal(corporationId: number, division: number): AsyncGenerator<PageResult<WalletJournal>, void, undefined>;
|
|
63
|
+
streamCharacterWalletTransactions(characterId: number): AsyncGenerator<PageResult<WalletTransaction>, void, undefined>;
|
|
60
64
|
}
|
|
61
65
|
//# sourceMappingURL=WalletClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletClient.d.ts","sourceRoot":"","sources":["../../src/clients/WalletClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletClient.d.ts","sourceRoot":"","sources":["../../src/clients/WalletClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MA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CAAC;IAQ7D,iCAAiC,CAC/B,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAMlE"}
|
|
@@ -69,5 +69,14 @@ class WalletClient extends BaseEsiClient_1.BaseEsiClient {
|
|
|
69
69
|
getCorporationWalletTransactions(corporationId, division) {
|
|
70
70
|
return this.api.getCorporationWalletTransactions(corporationId, division);
|
|
71
71
|
}
|
|
72
|
+
streamCharacterWalletJournal(characterId) {
|
|
73
|
+
return this.streamEndpoint('getCharacterWalletJournal', characterId);
|
|
74
|
+
}
|
|
75
|
+
streamCorporationWalletJournal(corporationId, division) {
|
|
76
|
+
return this.streamEndpoint('getCorporationWalletJournal', corporationId, division);
|
|
77
|
+
}
|
|
78
|
+
streamCharacterWalletTransactions(characterId) {
|
|
79
|
+
return this.streamEndpoint('getCharacterWalletTransactions', characterId);
|
|
80
|
+
}
|
|
72
81
|
}
|
|
73
82
|
exports.WalletClient = WalletClient;
|
package/dist/core/ApiClient.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export declare class ApiClient {
|
|
|
20
20
|
private timeout;
|
|
21
21
|
private deduplicator;
|
|
22
22
|
private retryConfig;
|
|
23
|
+
private validateResponse;
|
|
24
|
+
private language?;
|
|
23
25
|
constructor(clientId: string, link: string, accessToken?: string | undefined);
|
|
24
26
|
getTimeout(): number;
|
|
25
27
|
setTimeout(timeout: number): void;
|
|
@@ -33,6 +35,8 @@ export declare class ApiClient {
|
|
|
33
35
|
setDeduplicator(dedup: RequestDeduplicator | null): void;
|
|
34
36
|
getRetryConfig(): RetryConfig | null;
|
|
35
37
|
setRetryConfig(config: RetryConfig | null): void;
|
|
38
|
+
getValidateResponse(): boolean;
|
|
39
|
+
setValidateResponse(validate: boolean): void;
|
|
36
40
|
getMiddleware(): MiddlewareManager;
|
|
37
41
|
addRequestInterceptor(fn: RequestInterceptor): () => void;
|
|
38
42
|
addResponseInterceptor(fn: ResponseInterceptor): () => void;
|
|
@@ -40,6 +44,8 @@ export declare class ApiClient {
|
|
|
40
44
|
getLink(): string;
|
|
41
45
|
getDatasource(): EsiDatasource | undefined;
|
|
42
46
|
setDatasource(datasource: EsiDatasource | undefined): void;
|
|
47
|
+
getLanguage(): string | undefined;
|
|
48
|
+
setLanguage(language: string | undefined): void;
|
|
43
49
|
setAccessToken(token: string): void;
|
|
44
50
|
setTokenProvider(provider: TokenProvider | undefined): void;
|
|
45
51
|
hasTokenProvider(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/core/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;AAElD,qBAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/core/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,E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Ae,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,GAAG,IAAI;IAIxD,cAAc,IAAI,WAAW,GAAG,IAAI;IAIpC,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI;IAIhD,mBAAmB,IAAI,OAAO;IAI9B,mBAAmB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI5C,aAAa,IAAI,iBAAiB;IAIlC,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,IAAI;IAIzD,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,GAAG,MAAM,IAAI;IAI3D,sBAAsB,IAAI,MAAM,GAAG,SAAS;IAI5C,OAAO,IAAI,MAAM;IAIjB,aAAa,IAAI,aAAa,GAAG,SAAS;IAI1C,aAAa,CAAC,UAAU,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAI1D,WAAW,IAAI,MAAM,GAAG,SAAS;IAIjC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI/C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAInC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAI3D,gBAAgB,IAAI,OAAO;IAIrB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;CAuBtC"}
|
package/dist/core/ApiClient.js
CHANGED
|
@@ -16,6 +16,8 @@ class ApiClient {
|
|
|
16
16
|
timeout = 30_000;
|
|
17
17
|
deduplicator = null;
|
|
18
18
|
retryConfig = null;
|
|
19
|
+
validateResponse = true;
|
|
20
|
+
language;
|
|
19
21
|
constructor(clientId, link, accessToken) {
|
|
20
22
|
this.clientId = clientId;
|
|
21
23
|
this.link = link;
|
|
@@ -58,6 +60,12 @@ class ApiClient {
|
|
|
58
60
|
setRetryConfig(config) {
|
|
59
61
|
this.retryConfig = config;
|
|
60
62
|
}
|
|
63
|
+
getValidateResponse() {
|
|
64
|
+
return this.validateResponse;
|
|
65
|
+
}
|
|
66
|
+
setValidateResponse(validate) {
|
|
67
|
+
this.validateResponse = validate;
|
|
68
|
+
}
|
|
61
69
|
getMiddleware() {
|
|
62
70
|
return this.middleware;
|
|
63
71
|
}
|
|
@@ -79,6 +87,12 @@ class ApiClient {
|
|
|
79
87
|
setDatasource(datasource) {
|
|
80
88
|
this.datasource = datasource;
|
|
81
89
|
}
|
|
90
|
+
getLanguage() {
|
|
91
|
+
return this.language;
|
|
92
|
+
}
|
|
93
|
+
setLanguage(language) {
|
|
94
|
+
this.language = language;
|
|
95
|
+
}
|
|
82
96
|
setAccessToken(token) {
|
|
83
97
|
this.accessToken = token;
|
|
84
98
|
}
|
|
@@ -9,5 +9,6 @@ export interface EsiHandlerResponse {
|
|
|
9
9
|
responseTimeMs?: number;
|
|
10
10
|
cursors?: CursorTokens;
|
|
11
11
|
}
|
|
12
|
+
export declare const handleSinglePageRequest: (client: ApiClient, endpoint: string, method: string, body?: unknown, requiresAuth?: boolean) => Promise<EsiHandlerResponse>;
|
|
12
13
|
export declare const handleRequest: (client: ApiClient, endpoint: string, method: string, body?: unknown, requiresAuth?: boolean, useETag?: boolean, templatePath?: string, requestTimeout?: number) => Promise<EsiHandlerResponse>;
|
|
13
14
|
//# sourceMappingURL=ApiRequestHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestHandler.d.ts","sourceRoot":"","sources":["../../src/core/ApiRequestHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAYxC,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AASpE,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC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