@lgriffin/esi.ts 7.4.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +100 -24
- package/dist/EsiClient.d.ts +3 -0
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/EsiClientBuilder.d.ts +1 -0
- package/dist/EsiClientBuilder.d.ts.map +1 -1
- package/dist/clients/AllianceClient.d.ts +3 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.d.ts +1 -1
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/CalendarClient.d.ts +3 -0
- package/dist/clients/CalendarClient.d.ts.map +1 -1
- package/dist/clients/CharacterClient.d.ts +10 -2
- package/dist/clients/CharacterClient.d.ts.map +1 -1
- package/dist/clients/ClonesClient.d.ts +2 -0
- package/dist/clients/ClonesClient.d.ts.map +1 -1
- package/dist/clients/ContactsClient.d.ts +7 -0
- package/dist/clients/ContactsClient.d.ts.map +1 -1
- package/dist/clients/CorporationsClient.d.ts +18 -0
- package/dist/clients/CorporationsClient.d.ts.map +1 -1
- package/dist/clients/FittingsClient.d.ts +2 -0
- package/dist/clients/FittingsClient.d.ts.map +1 -1
- package/dist/clients/FleetClient.d.ts +3 -0
- package/dist/clients/FleetClient.d.ts.map +1 -1
- package/dist/clients/IndustryClient.d.ts +9 -0
- package/dist/clients/IndustryClient.d.ts.map +1 -1
- package/dist/clients/LoyaltyClient.d.ts +3 -0
- package/dist/clients/LoyaltyClient.d.ts.map +1 -1
- package/dist/clients/MailClient.d.ts +6 -0
- package/dist/clients/MailClient.d.ts.map +1 -1
- package/dist/clients/MarketClient.d.ts +13 -22
- package/dist/clients/MarketClient.d.ts.map +1 -1
- package/dist/clients/PiClient.d.ts +3 -0
- package/dist/clients/PiClient.d.ts.map +1 -1
- package/dist/clients/SkillsClient.d.ts +2 -0
- package/dist/clients/SkillsClient.d.ts.map +1 -1
- package/dist/clients/WalletClient.d.ts +1 -0
- package/dist/clients/WalletClient.d.ts.map +1 -1
- package/dist/clients/WarsClient.d.ts +3 -0
- package/dist/clients/WarsClient.d.ts.map +1 -1
- package/dist/config/jest/globalSetup.d.ts.map +1 -1
- package/dist/config/jest/globalTeardown.d.ts.map +1 -1
- package/dist/core/ApiClient.d.ts +14 -6
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ApiRequestHandler.d.ts +3 -11
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/IDeduplicator.d.ts +6 -0
- package/dist/core/IDeduplicator.d.ts.map +1 -0
- package/dist/core/IRetryStrategy.d.ts +5 -0
- package/dist/core/IRetryStrategy.d.ts.map +1 -0
- package/dist/core/RequestDeduplicator.d.ts +2 -1
- package/dist/core/RequestDeduplicator.d.ts.map +1 -1
- package/dist/core/RetryStrategy.d.ts +19 -0
- package/dist/core/RetryStrategy.d.ts.map +1 -0
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts +11 -1
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -1
- package/dist/core/circuitBreaker/ICircuitBreaker.d.ts +23 -0
- package/dist/core/circuitBreaker/ICircuitBreaker.d.ts.map +1 -0
- package/dist/core/configureApiClient.d.ts +18 -0
- package/dist/core/configureApiClient.d.ts.map +1 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts +2 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
- package/dist/core/endpoints/calendarEndpoints.d.ts +1 -1
- package/dist/core/endpoints/characterEndpoints.d.ts +3 -3
- package/dist/core/endpoints/contactEndpoints.d.ts +7 -3
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationEndpoints.d.ts +4 -1
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/createClient.d.ts +18 -1
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/endpoints/dogmaEndpoints.d.ts +17 -0
- package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.ts +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
- package/dist/core/endpoints/fleetEndpoints.d.ts +5 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mailEndpoints.d.ts +13 -0
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/marketEndpoints.d.ts +29 -48
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/piEndpoints.d.ts +3 -0
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.d.ts +13 -2
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/walletEndpoints.d.ts +4 -0
- package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
- package/dist/core/logger/logger.d.ts +2 -1
- package/dist/core/logger/logger.d.ts.map +1 -1
- package/dist/core/pagination/AsyncPaginationIterator.d.ts +4 -1
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
- package/dist/core/pagination/CursorPaginationHandler.d.ts +15 -6
- package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
- package/dist/core/pagination/PaginationHandler.d.ts +7 -6
- package/dist/core/pagination/PaginationHandler.d.ts.map +1 -1
- package/dist/core/rateLimiter/RateLimiter.d.ts +8 -2
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/requestPipeline/cachePolicy.d.ts +31 -0
- package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -0
- package/dist/core/requestPipeline/dependencies.d.ts +10 -0
- package/dist/core/requestPipeline/dependencies.d.ts.map +1 -0
- package/dist/core/requestPipeline/fetchExecution.d.ts +28 -0
- package/dist/core/requestPipeline/fetchExecution.d.ts.map +1 -0
- package/dist/core/requestPipeline/headers.d.ts +11 -0
- package/dist/core/requestPipeline/headers.d.ts.map +1 -0
- package/dist/core/requestPipeline/index.d.ts +10 -0
- package/dist/core/requestPipeline/index.d.ts.map +1 -0
- package/dist/core/requestPipeline/middlewareBridge.d.ts +15 -0
- package/dist/core/requestPipeline/middlewareBridge.d.ts.map +1 -0
- package/dist/core/requestPipeline/paginationOrchestration.d.ts +15 -0
- package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -0
- package/dist/core/requestPipeline/statusHandling.d.ts +18 -0
- package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -0
- package/dist/core/util/error.d.ts +6 -1
- package/dist/core/util/error.d.ts.map +1 -1
- package/dist/errors.d.ts +4 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +196 -0
- package/dist/errors.js.map +1 -0
- package/dist/errors.mjs +146 -0
- package/dist/errors.mjs.map +1 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9937 -176
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +9834 -0
- package/dist/index.mjs.map +1 -0
- package/dist/schemas/calendar.d.ts +1 -1
- package/dist/schemas/character.d.ts +1 -10
- package/dist/schemas/character.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +9 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/contacts.d.ts +2 -1
- package/dist/schemas/contacts.d.ts.map +1 -1
- package/dist/schemas/corporation.d.ts +4 -9
- package/dist/schemas/corporation.d.ts.map +1 -1
- package/dist/schemas/dogma.d.ts +17 -0
- package/dist/schemas/dogma.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +1 -0
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/index.js +2085 -46
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/index.mjs +1914 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/dist/schemas/market.d.ts +91 -4
- package/dist/schemas/market.d.ts.map +1 -1
- package/dist/schemas/pi.d.ts +3 -0
- package/dist/schemas/pi.d.ts.map +1 -1
- package/dist/schemas/sovereignty.d.ts +2 -0
- package/dist/schemas/sovereignty.d.ts.map +1 -1
- package/dist/schemas/universe.d.ts +11 -2
- package/dist/schemas/universe.d.ts.map +1 -1
- package/dist/schemas/wallet.d.ts +2 -0
- package/dist/schemas/wallet.d.ts.map +1 -1
- package/dist/testing/TestDataFactory.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +935 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/index.mjs +898 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/types/character.d.ts +2 -1
- package/dist/types/character.d.ts.map +1 -1
- package/dist/types/generated/esi-spec.generated.d.ts +3 -3
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/dist/types/generated/spec-alignment.check.d.ts +9 -0
- package/dist/types/generated/spec-alignment.check.d.ts.map +1 -1
- package/dist/types/market.d.ts +7 -1
- package/dist/types/market.d.ts.map +1 -1
- package/package.json +33 -6
- package/dist/EsiClient.js +0 -251
- package/dist/EsiClientBuilder.js +0 -217
- package/dist/clients/AccessListsClient.js +0 -20
- package/dist/clients/AllianceClient.js +0 -72
- package/dist/clients/AssetsClient.js +0 -81
- package/dist/clients/BaseEsiClient.js +0 -40
- package/dist/clients/CalendarClient.js +0 -54
- package/dist/clients/CharacterClient.js +0 -149
- package/dist/clients/ClonesClient.js +0 -31
- package/dist/clients/ContactsClient.js +0 -104
- package/dist/clients/ContractsClient.js +0 -111
- package/dist/clients/CorporationsClient.js +0 -227
- package/dist/clients/DogmaClient.js +0 -55
- package/dist/clients/FactionClient.js +0 -79
- package/dist/clients/FittingsClient.js +0 -42
- package/dist/clients/FleetClient.js +0 -162
- package/dist/clients/FreelanceJobsClient.js +0 -76
- package/dist/clients/IncursionsClient.js +0 -19
- package/dist/clients/IndustryClient.js +0 -88
- package/dist/clients/InsuranceClient.js +0 -19
- package/dist/clients/KillmailsClient.js +0 -47
- package/dist/clients/LocationClient.js +0 -41
- package/dist/clients/LoyaltyClient.js +0 -30
- package/dist/clients/MailClient.js +0 -108
- package/dist/clients/MarketClient.js +0 -131
- package/dist/clients/MercenaryClient.js +0 -27
- package/dist/clients/MetaClient.js +0 -56
- package/dist/clients/PiClient.js +0 -51
- package/dist/clients/RouteClient.js +0 -24
- package/dist/clients/SearchClient.js +0 -22
- package/dist/clients/SkillsClient.js +0 -41
- package/dist/clients/SkyhooksClient.js +0 -35
- package/dist/clients/SovereigntyClient.js +0 -27
- package/dist/clients/StatusClient.js +0 -19
- package/dist/clients/UiClient.js +0 -58
- package/dist/clients/UniverseClient.js +0 -277
- package/dist/clients/WalletClient.js +0 -82
- package/dist/clients/WarsClient.js +0 -37
- package/dist/config/configManager.js +0 -47
- package/dist/config/jest/globalSetup.js +0 -7
- package/dist/config/jest/globalTeardown.js +0 -7
- package/dist/config/jest/jest.setup.js +0 -29
- package/dist/core/ApiClient.js +0 -123
- package/dist/core/ApiClientBuilder.js +0 -54
- package/dist/core/ApiRequestHandler.js +0 -444
- package/dist/core/BatchRequestHandler.js +0 -66
- package/dist/core/ClientRegistry.js +0 -116
- package/dist/core/EsiDiagnostics.js +0 -47
- package/dist/core/RequestDeduplicator.js +0 -26
- package/dist/core/cache/ETagCacheManager.js +0 -184
- package/dist/core/cache/ICache.js +0 -2
- package/dist/core/circuitBreaker/CircuitBreaker.js +0 -156
- package/dist/core/constants.js +0 -7
- package/dist/core/endpoints/EndpointDefinition.js +0 -2
- package/dist/core/endpoints/accessListEndpoints.js +0 -13
- package/dist/core/endpoints/allianceEndpoints.js +0 -34
- package/dist/core/endpoints/assetEndpoints.js +0 -51
- package/dist/core/endpoints/buildEndpointPath.js +0 -44
- package/dist/core/endpoints/calendarEndpoints.js +0 -35
- package/dist/core/endpoints/characterEndpoints.js +0 -104
- package/dist/core/endpoints/cloneEndpoints.js +0 -21
- package/dist/core/endpoints/contactEndpoints.js +0 -72
- package/dist/core/endpoints/contractEndpoints.js +0 -70
- package/dist/core/endpoints/corporationEndpoints.js +0 -161
- package/dist/core/endpoints/createClient.js +0 -175
- package/dist/core/endpoints/dogmaEndpoints.js +0 -40
- package/dist/core/endpoints/esi-cache-ttls.generated.js +0 -133
- package/dist/core/endpoints/esi-rate-limit-groups.generated.js +0 -153
- package/dist/core/endpoints/esi-scopes.generated.js +0 -135
- package/dist/core/endpoints/factionEndpoints.js +0 -57
- package/dist/core/endpoints/fittingEndpoints.js +0 -27
- package/dist/core/endpoints/fleetEndpoints.js +0 -101
- package/dist/core/endpoints/freelanceJobsEndpoints.js +0 -51
- package/dist/core/endpoints/incursionEndpoints.js +0 -13
- package/dist/core/endpoints/industryEndpoints.js +0 -61
- package/dist/core/endpoints/insuranceEndpoints.js +0 -13
- package/dist/core/endpoints/killmailEndpoints.js +0 -28
- package/dist/core/endpoints/locationEndpoints.js +0 -27
- package/dist/core/endpoints/loyaltyEndpoints.js +0 -21
- package/dist/core/endpoints/mailEndpoints.js +0 -68
- package/dist/core/endpoints/marketEndpoints.js +0 -84
- package/dist/core/endpoints/mercenaryEndpoints.js +0 -19
- package/dist/core/endpoints/metaEndpoints.js +0 -12
- package/dist/core/endpoints/piEndpoints.js +0 -36
- package/dist/core/endpoints/routeEndpoints.js +0 -14
- package/dist/core/endpoints/searchEndpoints.js +0 -14
- package/dist/core/endpoints/skillEndpoints.js +0 -29
- package/dist/core/endpoints/skyhookEndpoints.js +0 -25
- package/dist/core/endpoints/sovereigntyEndpoints.js +0 -19
- package/dist/core/endpoints/statusEndpoints.js +0 -12
- package/dist/core/endpoints/uiEndpoints.js +0 -39
- package/dist/core/endpoints/universeEndpoints.js +0 -210
- package/dist/core/endpoints/walletEndpoints.js +0 -50
- package/dist/core/endpoints/warEndpoints.js +0 -28
- package/dist/core/logger/ILogger.js +0 -2
- package/dist/core/logger/logger.js +0 -16
- package/dist/core/logger/loggerUtil.js +0 -30
- package/dist/core/middleware/Middleware.js +0 -42
- package/dist/core/pagination/AsyncPaginationIterator.js +0 -27
- package/dist/core/pagination/CursorPaginationHandler.js +0 -148
- package/dist/core/pagination/PaginationHandler.js +0 -115
- package/dist/core/rateLimiter/IRateLimiter.js +0 -2
- package/dist/core/rateLimiter/RateLimiter.js +0 -307
- package/dist/core/util/error.js +0 -122
- package/dist/core/util/headersUtil.js +0 -37
- package/dist/core/util/retry.js +0 -9
- package/dist/core/util/sleep.js +0 -6
- package/dist/core/util/stringUtil.js +0 -6
- package/dist/core/util/testHelpers.js +0 -9
- package/dist/core/util/validation.js +0 -52
- package/dist/schemas/access-lists.js +0 -14
- package/dist/schemas/alliance.js +0 -28
- package/dist/schemas/assets.js +0 -26
- package/dist/schemas/calendar.js +0 -43
- package/dist/schemas/character.js +0 -122
- package/dist/schemas/clones.js +0 -21
- package/dist/schemas/common.js +0 -34
- package/dist/schemas/contacts.js +0 -15
- package/dist/schemas/contracts.js +0 -58
- package/dist/schemas/corporation.js +0 -192
- package/dist/schemas/dogma.js +0 -42
- package/dist/schemas/faction-warfare.js +0 -92
- package/dist/schemas/fittings.js +0 -15
- package/dist/schemas/fleet.js +0 -48
- package/dist/schemas/freelance-jobs.js +0 -99
- package/dist/schemas/incursions.js +0 -14
- package/dist/schemas/industry.js +0 -75
- package/dist/schemas/insurance.js +0 -12
- package/dist/schemas/killmails.js +0 -42
- package/dist/schemas/location.js +0 -20
- package/dist/schemas/loyalty.js +0 -20
- package/dist/schemas/mail.js +0 -38
- package/dist/schemas/market.js +0 -39
- package/dist/schemas/mercenary.js +0 -22
- package/dist/schemas/pi.js +0 -85
- package/dist/schemas/skills.js +0 -30
- package/dist/schemas/skyhooks.js +0 -30
- package/dist/schemas/sovereignty.js +0 -70
- package/dist/schemas/status.js +0 -10
- package/dist/schemas/universe.js +0 -245
- package/dist/schemas/wallet.js +0 -29
- package/dist/schemas/wars.js +0 -31
- package/dist/testing/TestDataFactory.js +0 -823
- package/dist/types/access-lists.js +0 -2
- package/dist/types/alliance.js +0 -2
- package/dist/types/api-responses.js +0 -73
- package/dist/types/assets.js +0 -2
- package/dist/types/branded.js +0 -6
- package/dist/types/calendar.js +0 -2
- package/dist/types/character.js +0 -2
- package/dist/types/clones.js +0 -2
- package/dist/types/common.js +0 -2
- package/dist/types/contacts.js +0 -2
- package/dist/types/contracts.js +0 -2
- package/dist/types/corporation.js +0 -2
- package/dist/types/dogma.js +0 -2
- package/dist/types/faction-warfare.js +0 -2
- package/dist/types/fittings.js +0 -2
- package/dist/types/fleet.js +0 -2
- package/dist/types/freelance-jobs.js +0 -2
- package/dist/types/generated/esi-spec.generated.js +0 -6
- package/dist/types/generated/spec-alignment.check.js +0 -14
- package/dist/types/incursions.js +0 -2
- package/dist/types/industry.js +0 -2
- package/dist/types/insurance.js +0 -2
- package/dist/types/killmails.js +0 -2
- package/dist/types/location.js +0 -2
- package/dist/types/loyalty.js +0 -2
- package/dist/types/mail.js +0 -2
- package/dist/types/market.js +0 -2
- package/dist/types/mercenary.js +0 -2
- package/dist/types/pi.js +0 -2
- package/dist/types/skills.js +0 -2
- package/dist/types/skyhooks.js +0 -2
- package/dist/types/sovereignty.js +0 -2
- package/dist/types/status.js +0 -2
- package/dist/types/universe.js +0 -2
- package/dist/types/wallet.js +0 -2
- package/dist/types/wars.js +0 -2
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssetsClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const assetEndpoints_1 = require("../core/endpoints/assetEndpoints");
|
|
6
|
-
class AssetsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, assetEndpoints_1.assetEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a list of assets owned by a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose assets to retrieve
|
|
14
|
-
* @returns A list of the character's assets including type, quantity, and location
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterAssets(characterId) {
|
|
18
|
-
return this.api.getCharacterAssets(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Look up the locations of specific assets owned by a character via a bulk POST request.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character who owns the assets
|
|
24
|
-
* @param itemIds - An array of item IDs to look up locations for
|
|
25
|
-
* @returns Location information for each requested asset
|
|
26
|
-
* @requires Authentication
|
|
27
|
-
*/
|
|
28
|
-
postCharacterAssetLocations(characterId, itemIds) {
|
|
29
|
-
return this.api.postCharacterAssetLocations(characterId, itemIds);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Look up the names of specific assets owned by a character via a bulk POST request.
|
|
33
|
-
*
|
|
34
|
-
* @param characterId - The ID of the character who owns the assets
|
|
35
|
-
* @param itemIds - An array of item IDs to look up names for
|
|
36
|
-
* @returns The user-assigned names for each requested asset
|
|
37
|
-
* @requires Authentication
|
|
38
|
-
*/
|
|
39
|
-
postCharacterAssetNames(characterId, itemIds) {
|
|
40
|
-
return this.api.postCharacterAssetNames(characterId, itemIds);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Retrieve a list of assets owned by a corporation.
|
|
44
|
-
*
|
|
45
|
-
* @param corporationId - The ID of the corporation whose assets to retrieve
|
|
46
|
-
* @returns A list of the corporation's assets including type, quantity, and location
|
|
47
|
-
* @requires Authentication
|
|
48
|
-
*/
|
|
49
|
-
getCorporationAssets(corporationId) {
|
|
50
|
-
return this.api.getCorporationAssets(corporationId);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Look up the locations of specific assets owned by a corporation via a bulk POST request.
|
|
54
|
-
*
|
|
55
|
-
* @param corporationId - The ID of the corporation that owns the assets
|
|
56
|
-
* @param itemIds - An array of item IDs to look up locations for
|
|
57
|
-
* @returns Location information for each requested asset
|
|
58
|
-
* @requires Authentication
|
|
59
|
-
*/
|
|
60
|
-
postCorporationAssetLocations(corporationId, itemIds) {
|
|
61
|
-
return this.api.postCorporationAssetLocations(corporationId, itemIds);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Look up the names of specific assets owned by a corporation via a bulk POST request.
|
|
65
|
-
*
|
|
66
|
-
* @param corporationId - The ID of the corporation that owns the assets
|
|
67
|
-
* @param itemIds - An array of item IDs to look up names for
|
|
68
|
-
* @returns The user-assigned names for each requested asset
|
|
69
|
-
* @requires Authentication
|
|
70
|
-
*/
|
|
71
|
-
postCorporationAssetNames(corporationId, itemIds) {
|
|
72
|
-
return this.api.postCorporationAssetNames(corporationId, itemIds);
|
|
73
|
-
}
|
|
74
|
-
streamCharacterAssets(characterId) {
|
|
75
|
-
return this.streamEndpoint('getCharacterAssets', characterId);
|
|
76
|
-
}
|
|
77
|
-
streamCorporationAssets(corporationId) {
|
|
78
|
-
return this.streamEndpoint('getCorporationAssets', corporationId);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.AssetsClient = AssetsClient;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseEsiClient = void 0;
|
|
4
|
-
const createClient_1 = require("../core/endpoints/createClient");
|
|
5
|
-
const buildEndpointPath_1 = require("../core/endpoints/buildEndpointPath");
|
|
6
|
-
const AsyncPaginationIterator_1 = require("../core/pagination/AsyncPaginationIterator");
|
|
7
|
-
class BaseEsiClient {
|
|
8
|
-
api;
|
|
9
|
-
_client;
|
|
10
|
-
_endpoints;
|
|
11
|
-
_metaApi;
|
|
12
|
-
_safeApi;
|
|
13
|
-
constructor(client, endpoints) {
|
|
14
|
-
this._client = client;
|
|
15
|
-
this._endpoints = endpoints;
|
|
16
|
-
this.api = (0, createClient_1.createClient)(client, endpoints);
|
|
17
|
-
}
|
|
18
|
-
streamEndpoint(endpointName, ...args) {
|
|
19
|
-
const def = this._endpoints[endpointName];
|
|
20
|
-
const { path, body } = (0, buildEndpointPath_1.buildEndpointPath)(def, args, this._client.getDatasource());
|
|
21
|
-
return (0, AsyncPaginationIterator_1.fetchPages)(this._client, path, def.method, def.requiresAuth, body);
|
|
22
|
-
}
|
|
23
|
-
withMetadata() {
|
|
24
|
-
if (!this._metaApi) {
|
|
25
|
-
this._metaApi = (0, createClient_1.createClient)(this._client, this._endpoints, {
|
|
26
|
-
returnMetadata: true,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return this._metaApi;
|
|
30
|
-
}
|
|
31
|
-
withSafeMode() {
|
|
32
|
-
if (!this._safeApi) {
|
|
33
|
-
this._safeApi = (0, createClient_1.createClient)(this._client, this._endpoints, {
|
|
34
|
-
safeMode: true,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return this._safeApi;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.BaseEsiClient = BaseEsiClient;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalendarClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const calendarEndpoints_1 = require("../core/endpoints/calendarEndpoints");
|
|
6
|
-
class CalendarClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, calendarEndpoints_1.calendarEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a character's upcoming calendar events.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose calendar events to retrieve
|
|
14
|
-
* @returns A list of upcoming calendar events
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCalendarEvents(characterId) {
|
|
18
|
-
return this.api.getCalendarEvents(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve detailed information about a specific calendar event for a character.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character who owns the event
|
|
24
|
-
* @param eventId - The ID of the calendar event to retrieve
|
|
25
|
-
* @returns Detailed event information including title, description, and timing
|
|
26
|
-
* @requires Authentication
|
|
27
|
-
*/
|
|
28
|
-
getCalendarEventById(characterId, eventId) {
|
|
29
|
-
return this.api.getCalendarEventById(characterId, eventId);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Set a character's response to a calendar event (accepted, declined, or tentative).
|
|
33
|
-
*
|
|
34
|
-
* @param characterId - The ID of the character responding to the event
|
|
35
|
-
* @param eventId - The ID of the calendar event to respond to
|
|
36
|
-
* @param response - The response status to set for this event
|
|
37
|
-
* @requires Authentication
|
|
38
|
-
*/
|
|
39
|
-
respondToCalendarEvent(characterId, eventId, response) {
|
|
40
|
-
return this.api.respondToCalendarEvent(characterId, eventId, response);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Retrieve the list of attendees and their response statuses for a calendar event.
|
|
44
|
-
*
|
|
45
|
-
* @param characterId - The ID of the character who owns the event
|
|
46
|
-
* @param eventId - The ID of the calendar event whose attendees to retrieve
|
|
47
|
-
* @returns A list of attendees with their response statuses
|
|
48
|
-
* @requires Authentication
|
|
49
|
-
*/
|
|
50
|
-
getEventAttendees(characterId, eventId) {
|
|
51
|
-
return this.api.getEventAttendees(characterId, eventId);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.CalendarClient = CalendarClient;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CharacterClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const characterEndpoints_1 = require("../core/endpoints/characterEndpoints");
|
|
6
|
-
class CharacterClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, characterEndpoints_1.characterEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve publicly available information about a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character to look up
|
|
14
|
-
* @returns Public character information including name, corporation, and birthday
|
|
15
|
-
*/
|
|
16
|
-
getCharacterPublicInfo(characterId) {
|
|
17
|
-
return this.api.getCharacterPublicInfo(characterId);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Retrieve a character's active research agents and their accumulated research points.
|
|
21
|
-
*
|
|
22
|
-
* @param characterId - The ID of the character whose research agents to retrieve
|
|
23
|
-
* @returns A list of research agents with skill, points, and start date information
|
|
24
|
-
* @requires Authentication
|
|
25
|
-
*/
|
|
26
|
-
getCharacterAgentsResearch(characterId) {
|
|
27
|
-
return this.api.getAgentsResearch(characterId);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve blueprints owned by a character.
|
|
31
|
-
*
|
|
32
|
-
* @param characterId - The ID of the character whose blueprints to retrieve
|
|
33
|
-
* @returns A list of blueprints with material/time efficiency and run information
|
|
34
|
-
* @requires Authentication
|
|
35
|
-
*/
|
|
36
|
-
getCharacterBlueprints(characterId) {
|
|
37
|
-
return this.api.getBlueprints(characterId);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Retrieve the corporation membership history of a character.
|
|
41
|
-
*
|
|
42
|
-
* @param characterId - The ID of the character whose corporation history to retrieve
|
|
43
|
-
* @returns A chronological list of corporations the character has been a member of
|
|
44
|
-
* @requires Authentication
|
|
45
|
-
*/
|
|
46
|
-
getCharacterCorporationHistory(characterId) {
|
|
47
|
-
return this.api.getCorporationHistory(characterId);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Calculate the CSPA (CONCORD Spam Prevention Act) charge cost for sending mail to a set of characters.
|
|
51
|
-
*
|
|
52
|
-
* @param characterId - The ID of the character who would be sending mail
|
|
53
|
-
* @param characters - An array of character IDs to calculate CSPA charges for
|
|
54
|
-
* @returns The total CSPA charge cost in ISK
|
|
55
|
-
* @requires Authentication
|
|
56
|
-
*/
|
|
57
|
-
postCspaChargeCost(characterId, characters) {
|
|
58
|
-
return this.api.calculateCspaChargeCost(characterId, characters);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve a character's current jump fatigue and activation cooldown timers.
|
|
62
|
-
*
|
|
63
|
-
* @param characterId - The ID of the character whose jump fatigue to retrieve
|
|
64
|
-
* @returns Jump fatigue expiry dates and last jump information
|
|
65
|
-
* @requires Authentication
|
|
66
|
-
*/
|
|
67
|
-
getCharacterFatigue(characterId) {
|
|
68
|
-
return this.api.getJumpFatigue(characterId);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Retrieve medals awarded to a character.
|
|
72
|
-
*
|
|
73
|
-
* @param characterId - The ID of the character whose medals to retrieve
|
|
74
|
-
* @returns A list of medals the character has been awarded
|
|
75
|
-
* @requires Authentication
|
|
76
|
-
*/
|
|
77
|
-
getCharacterMedals(characterId) {
|
|
78
|
-
return this.api.getMedals(characterId);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Retrieve a character's notifications from the notification center.
|
|
82
|
-
*
|
|
83
|
-
* @param characterId - The ID of the character whose notifications to retrieve
|
|
84
|
-
* @returns A list of notifications including type, sender, and timestamp
|
|
85
|
-
* @requires Authentication
|
|
86
|
-
*/
|
|
87
|
-
getCharacterNotifications(characterId) {
|
|
88
|
-
return this.api.getNotifications(characterId);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Retrieve notifications related to contact changes for a character.
|
|
92
|
-
*
|
|
93
|
-
* @param characterId - The ID of the character whose contact notifications to retrieve
|
|
94
|
-
* @returns A list of contact-related notifications
|
|
95
|
-
* @requires Authentication
|
|
96
|
-
*/
|
|
97
|
-
getCharacterNotificationsContacts(characterId) {
|
|
98
|
-
return this.api.getContactNotifications(characterId);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Retrieve portrait image URLs for a character at various resolutions.
|
|
102
|
-
*
|
|
103
|
-
* @param characterId - The ID of the character whose portrait to retrieve
|
|
104
|
-
* @returns Portrait URLs at different resolutions (64x64, 128x128, 256x256, 512x512)
|
|
105
|
-
*/
|
|
106
|
-
getCharacterPortrait(characterId) {
|
|
107
|
-
return this.api.getPortrait(characterId);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Retrieve the corporation roles assigned to a character.
|
|
111
|
-
*
|
|
112
|
-
* @param characterId - The ID of the character whose roles to retrieve
|
|
113
|
-
* @returns The character's roles including regular, HQ, base, and other role categories
|
|
114
|
-
* @requires Authentication
|
|
115
|
-
*/
|
|
116
|
-
getCharacterRoles(characterId) {
|
|
117
|
-
return this.api.getRoles(characterId);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Retrieve a character's standings with NPC factions, corporations, and agents.
|
|
121
|
-
*
|
|
122
|
-
* @param characterId - The ID of the character whose standings to retrieve
|
|
123
|
-
* @returns A list of standings with from_type, from_id, and standing value
|
|
124
|
-
* @requires Authentication
|
|
125
|
-
*/
|
|
126
|
-
getCharacterStandings(characterId) {
|
|
127
|
-
return this.api.getStandings(characterId);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Retrieve the corporation titles held by a character.
|
|
131
|
-
*
|
|
132
|
-
* @param characterId - The ID of the character whose titles to retrieve
|
|
133
|
-
* @returns A list of corporation titles assigned to the character
|
|
134
|
-
* @requires Authentication
|
|
135
|
-
*/
|
|
136
|
-
getCharacterTitles(characterId) {
|
|
137
|
-
return this.api.getTitles(characterId);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Look up the current corporation, alliance, and faction affiliations for a set of characters via a bulk POST request.
|
|
141
|
-
*
|
|
142
|
-
* @param characters - An array of character IDs to look up affiliations for
|
|
143
|
-
* @returns Affiliation data including corporation, alliance, and faction IDs for each character
|
|
144
|
-
*/
|
|
145
|
-
postCharacterAffiliation(characters) {
|
|
146
|
-
return this.api.postCharacterAffiliation(characters);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.CharacterClient = CharacterClient;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClonesClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const cloneEndpoints_1 = require("../core/endpoints/cloneEndpoints");
|
|
6
|
-
class ClonesClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, cloneEndpoints_1.cloneEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a character's clone state, including home station and available jump clones.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose clone information to retrieve
|
|
14
|
-
* @returns Clone information including home location and jump clone details
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getClones(characterId) {
|
|
18
|
-
return this.api.getClones(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve the implants currently installed in a character's active clone.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character whose implants to retrieve
|
|
24
|
-
* @returns An array of type IDs for the currently installed implants
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getImplants(characterId) {
|
|
28
|
-
return this.api.getImplants(characterId);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.ClonesClient = ClonesClient;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContactsClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const contactEndpoints_1 = require("../core/endpoints/contactEndpoints");
|
|
6
|
-
class ContactsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, contactEndpoints_1.contactEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve contacts for an alliance.
|
|
12
|
-
*
|
|
13
|
-
* @param allianceId - The ID of the alliance whose contacts to retrieve
|
|
14
|
-
* @returns A list of alliance contacts with standings and contact types
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getAllianceContacts(allianceId) {
|
|
18
|
-
return this.api.getAllianceContacts(allianceId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve custom contact labels for an alliance.
|
|
22
|
-
*
|
|
23
|
-
* @param allianceId - The ID of the alliance whose contact labels to retrieve
|
|
24
|
-
* @returns A list of custom labels used to categorize alliance contacts
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getAllianceContactLabels(allianceId) {
|
|
28
|
-
return this.api.getAllianceContactLabels(allianceId);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Delete contacts from a character's contact list.
|
|
32
|
-
*
|
|
33
|
-
* @param characterId - The ID of the character whose contacts to delete
|
|
34
|
-
* @param contactIds - An array of contact IDs to remove
|
|
35
|
-
* @requires Authentication
|
|
36
|
-
*/
|
|
37
|
-
deleteCharacterContacts(characterId, contactIds) {
|
|
38
|
-
return this.api.deleteCharacterContacts(characterId, contactIds.join(','));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Retrieve a character's contact list.
|
|
42
|
-
*
|
|
43
|
-
* @param characterId - The ID of the character whose contacts to retrieve
|
|
44
|
-
* @returns A list of character contacts with standings, labels, and contact types
|
|
45
|
-
* @requires Authentication
|
|
46
|
-
*/
|
|
47
|
-
getCharacterContacts(characterId) {
|
|
48
|
-
return this.api.getCharacterContacts(characterId);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Add contacts to a character's contact list via a POST request.
|
|
52
|
-
*
|
|
53
|
-
* @param characterId - The ID of the character to add contacts for
|
|
54
|
-
* @param standing - Standing value for the contacts (-10 to 10)
|
|
55
|
-
* @param contactIds - Array of character/corporation/alliance IDs to add
|
|
56
|
-
* @returns An array of contact IDs that were successfully added
|
|
57
|
-
* @requires Authentication
|
|
58
|
-
*/
|
|
59
|
-
postCharacterContacts(characterId, standing, contactIds) {
|
|
60
|
-
return this.api.addContacts(characterId, standing, contactIds);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Update existing contacts in a character's contact list via a PUT request.
|
|
64
|
-
*
|
|
65
|
-
* @param characterId - The ID of the character whose contacts to update
|
|
66
|
-
* @param standing - New standing value for the contacts (-10 to 10)
|
|
67
|
-
* @param contactIds - Array of contact IDs to update
|
|
68
|
-
* @requires Authentication
|
|
69
|
-
*/
|
|
70
|
-
putCharacterContacts(characterId, standing, contactIds) {
|
|
71
|
-
return this.api.editContacts(characterId, standing, contactIds);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Retrieve custom contact labels for a character.
|
|
75
|
-
*
|
|
76
|
-
* @param characterId - The ID of the character whose contact labels to retrieve
|
|
77
|
-
* @returns A list of custom labels used to categorize character contacts
|
|
78
|
-
* @requires Authentication
|
|
79
|
-
*/
|
|
80
|
-
getCharacterContactLabels(characterId) {
|
|
81
|
-
return this.api.getCharacterContactLabels(characterId);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Retrieve contacts for a corporation.
|
|
85
|
-
*
|
|
86
|
-
* @param corporationId - The ID of the corporation whose contacts to retrieve
|
|
87
|
-
* @returns A list of corporation contacts with standings and contact types
|
|
88
|
-
* @requires Authentication
|
|
89
|
-
*/
|
|
90
|
-
getCorporationContacts(corporationId) {
|
|
91
|
-
return this.api.getCorporationContacts(corporationId);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Retrieve custom contact labels for a corporation.
|
|
95
|
-
*
|
|
96
|
-
* @param corporationId - The ID of the corporation whose contact labels to retrieve
|
|
97
|
-
* @returns A list of custom labels used to categorize corporation contacts
|
|
98
|
-
* @requires Authentication
|
|
99
|
-
*/
|
|
100
|
-
getCorporationContactLabels(corporationId) {
|
|
101
|
-
return this.api.getCorporationContactLabels(corporationId);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.ContactsClient = ContactsClient;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContractsClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const contractEndpoints_1 = require("../core/endpoints/contractEndpoints");
|
|
6
|
-
class ContractsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, contractEndpoints_1.contractEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve contracts issued by or assigned to a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose contracts to retrieve
|
|
14
|
-
* @returns A list of contracts with type, status, and pricing information
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterContracts(characterId) {
|
|
18
|
-
return this.api.getCharacterContracts(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieve bids placed on an auction contract owned by a character.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character who owns the contract
|
|
24
|
-
* @param contractId - The ID of the contract whose bids to retrieve
|
|
25
|
-
* @returns A list of bids with bidder, amount, and timestamp
|
|
26
|
-
* @requires Authentication
|
|
27
|
-
*/
|
|
28
|
-
getCharacterContractBids(characterId, contractId) {
|
|
29
|
-
return this.api.getCharacterContractBids(characterId, contractId);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Retrieve the items included in a contract owned by a character.
|
|
33
|
-
*
|
|
34
|
-
* @param characterId - The ID of the character who owns the contract
|
|
35
|
-
* @param contractId - The ID of the contract whose items to retrieve
|
|
36
|
-
* @returns A list of items in the contract with type, quantity, and included/excluded status
|
|
37
|
-
* @requires Authentication
|
|
38
|
-
*/
|
|
39
|
-
getCharacterContractItems(characterId, contractId) {
|
|
40
|
-
return this.api.getCharacterContractItems(characterId, contractId);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Retrieve publicly available contracts in a specific region.
|
|
44
|
-
*
|
|
45
|
-
* @param regionId - The ID of the region whose public contracts to retrieve
|
|
46
|
-
* @returns A list of public contracts in the region
|
|
47
|
-
*/
|
|
48
|
-
getPublicContracts(regionId) {
|
|
49
|
-
return this.api.getPublicContracts(regionId);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Retrieve bids placed on a public auction contract.
|
|
53
|
-
*
|
|
54
|
-
* @param contractId - The ID of the public contract whose bids to retrieve
|
|
55
|
-
* @returns A list of bids with bidder, amount, and timestamp
|
|
56
|
-
*/
|
|
57
|
-
getPublicContractBids(contractId) {
|
|
58
|
-
return this.api.getPublicContractBids(contractId);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve the items included in a public contract.
|
|
62
|
-
*
|
|
63
|
-
* @param contractId - The ID of the public contract whose items to retrieve
|
|
64
|
-
* @returns A list of items in the contract with type, quantity, and included/excluded status
|
|
65
|
-
*/
|
|
66
|
-
getPublicContractItems(contractId) {
|
|
67
|
-
return this.api.getPublicContractItems(contractId);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Retrieve contracts issued by or assigned to a corporation.
|
|
71
|
-
*
|
|
72
|
-
* @param corporationId - The ID of the corporation whose contracts to retrieve
|
|
73
|
-
* @returns A list of contracts with type, status, and pricing information
|
|
74
|
-
* @requires Authentication
|
|
75
|
-
*/
|
|
76
|
-
getCorporationContracts(corporationId) {
|
|
77
|
-
return this.api.getCorporationContracts(corporationId);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve bids placed on an auction contract owned by a corporation.
|
|
81
|
-
*
|
|
82
|
-
* @param corporationId - The ID of the corporation that owns the contract
|
|
83
|
-
* @param contractId - The ID of the contract whose bids to retrieve
|
|
84
|
-
* @returns A list of bids with bidder, amount, and timestamp
|
|
85
|
-
* @requires Authentication
|
|
86
|
-
*/
|
|
87
|
-
getCorporationContractBids(corporationId, contractId) {
|
|
88
|
-
return this.api.getCorporationContractBids(corporationId, contractId);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Retrieve the items included in a contract owned by a corporation.
|
|
92
|
-
*
|
|
93
|
-
* @param corporationId - The ID of the corporation that owns the contract
|
|
94
|
-
* @param contractId - The ID of the contract whose items to retrieve
|
|
95
|
-
* @returns A list of items in the contract with type, quantity, and included/excluded status
|
|
96
|
-
* @requires Authentication
|
|
97
|
-
*/
|
|
98
|
-
getCorporationContractItems(corporationId, contractId) {
|
|
99
|
-
return this.api.getCorporationContractItems(corporationId, contractId);
|
|
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
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.ContractsClient = ContractsClient;
|