esisl_genoa_client 0.1.0 → 0.1.1

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.
Files changed (68) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AllianceApi.js +40 -21
  3. package/dist/apis/AssetsApi.js +60 -31
  4. package/dist/apis/CalendarApi.js +40 -21
  5. package/dist/apis/CharacterApi.js +140 -71
  6. package/dist/apis/ClonesApi.js +20 -11
  7. package/dist/apis/ContactsApi.js +90 -46
  8. package/dist/apis/ContractsApi.js +90 -46
  9. package/dist/apis/CorporationApi.js +220 -111
  10. package/dist/apis/DogmaApi.js +50 -26
  11. package/dist/apis/FactionWarfareApi.js +80 -41
  12. package/dist/apis/FittingsApi.js +30 -16
  13. package/dist/apis/FleetsApi.js +140 -71
  14. package/dist/apis/IncursionsApi.js +10 -6
  15. package/dist/apis/IndustryApi.js +80 -41
  16. package/dist/apis/InsuranceApi.js +10 -6
  17. package/dist/apis/KillmailsApi.js +30 -16
  18. package/dist/apis/LocationApi.js +30 -16
  19. package/dist/apis/LoyaltyApi.js +20 -11
  20. package/dist/apis/MailApi.js +90 -46
  21. package/dist/apis/MarketApi.js +110 -56
  22. package/dist/apis/MetaApi.js +20 -11
  23. package/dist/apis/PlanetaryInteractionApi.js +40 -21
  24. package/dist/apis/RoutesApi.js +10 -6
  25. package/dist/apis/SearchApi.js +10 -6
  26. package/dist/apis/SkillsApi.js +30 -16
  27. package/dist/apis/SovereigntyApi.js +30 -16
  28. package/dist/apis/StatusApi.js +10 -6
  29. package/dist/apis/UniverseApi.js +300 -151
  30. package/dist/apis/UserInterfaceApi.js +50 -26
  31. package/dist/apis/WalletApi.js +60 -31
  32. package/dist/apis/WarsApi.js +30 -16
  33. package/dist/runtime.d.ts +2 -0
  34. package/dist/runtime.js +7 -0
  35. package/esisl_genoa_client-0.1.1.tgz +0 -0
  36. package/package.json +1 -1
  37. package/src/apis/AllianceApi.ts +25 -5
  38. package/src/apis/AssetsApi.ts +37 -7
  39. package/src/apis/CalendarApi.ts +25 -5
  40. package/src/apis/CharacterApi.ts +85 -15
  41. package/src/apis/ClonesApi.ts +13 -3
  42. package/src/apis/ContactsApi.ts +55 -10
  43. package/src/apis/ContractsApi.ts +55 -10
  44. package/src/apis/CorporationApi.ts +133 -23
  45. package/src/apis/DogmaApi.ts +31 -6
  46. package/src/apis/FactionWarfareApi.ts +49 -9
  47. package/src/apis/FittingsApi.ts +19 -4
  48. package/src/apis/FleetsApi.ts +85 -15
  49. package/src/apis/IncursionsApi.ts +7 -2
  50. package/src/apis/IndustryApi.ts +49 -9
  51. package/src/apis/InsuranceApi.ts +7 -2
  52. package/src/apis/KillmailsApi.ts +19 -4
  53. package/src/apis/LocationApi.ts +19 -4
  54. package/src/apis/LoyaltyApi.ts +13 -3
  55. package/src/apis/MailApi.ts +55 -10
  56. package/src/apis/MarketApi.ts +67 -12
  57. package/src/apis/MetaApi.ts +13 -3
  58. package/src/apis/PlanetaryInteractionApi.ts +25 -5
  59. package/src/apis/RoutesApi.ts +7 -2
  60. package/src/apis/SearchApi.ts +7 -2
  61. package/src/apis/SkillsApi.ts +19 -4
  62. package/src/apis/SovereigntyApi.ts +19 -4
  63. package/src/apis/StatusApi.ts +7 -2
  64. package/src/apis/UniverseApi.ts +181 -31
  65. package/src/apis/UserInterfaceApi.ts +31 -6
  66. package/src/apis/WalletApi.ts +37 -7
  67. package/src/apis/WarsApi.ts +19 -4
  68. package/src/runtime.ts +5 -0
@@ -66,7 +66,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.PostUiOpenwindowNewmailOperationAcceptLanguageEnum = exports.PostUiOpenwindowNewmailOperationXCompatibilityDateEnum = exports.PostUiOpenwindowMarketdetailsAcceptLanguageEnum = exports.PostUiOpenwindowMarketdetailsXCompatibilityDateEnum = exports.PostUiOpenwindowInformationAcceptLanguageEnum = exports.PostUiOpenwindowInformationXCompatibilityDateEnum = exports.PostUiOpenwindowContractAcceptLanguageEnum = exports.PostUiOpenwindowContractXCompatibilityDateEnum = exports.PostUiAutopilotWaypointAcceptLanguageEnum = exports.PostUiAutopilotWaypointXCompatibilityDateEnum = exports.UserInterfaceApi = void 0;
68
68
  var runtime = require("../runtime");
69
- var serviceFacade_1 = require("../serviceFacade");
70
69
  /**
71
70
  *
72
71
  */
@@ -81,9 +80,10 @@ var UserInterfaceApi = /** @class */ (function (_super) {
81
80
  */
82
81
  UserInterfaceApi.prototype.postUiAutopilotWaypointRaw = function (requestParameters, initOverrides) {
83
82
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, urlPath, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
83
+ var queryParameters, headerParameters, urlPath, facade, response;
84
+ var _a;
85
+ return __generator(this, function (_b) {
86
+ switch (_b.label) {
87
87
  case 0:
88
88
  if (requestParameters['addToBeginning'] == null) {
89
89
  throw new runtime.RequiredError('addToBeginning', 'Required parameter "addToBeginning" was null or undefined when calling postUiAutopilotWaypoint().');
@@ -121,14 +121,18 @@ var UserInterfaceApi = /** @class */ (function (_super) {
121
121
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
122
122
  }
123
123
  urlPath = "/ui/autopilot/waypoint";
124
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
124
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
125
+ if (!facade) {
126
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
127
+ }
128
+ return [4 /*yield*/, facade.esi.proxy({
125
129
  path: urlPath,
126
130
  method: 'POST',
127
131
  headers: headerParameters,
128
132
  query: queryParameters,
129
133
  }, initOverrides)];
130
134
  case 1:
131
- response = _a.sent();
135
+ response = _b.sent();
132
136
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
133
137
  }
134
138
  });
@@ -156,9 +160,10 @@ var UserInterfaceApi = /** @class */ (function (_super) {
156
160
  */
157
161
  UserInterfaceApi.prototype.postUiOpenwindowContractRaw = function (requestParameters, initOverrides) {
158
162
  return __awaiter(this, void 0, void 0, function () {
159
- var queryParameters, headerParameters, urlPath, response;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
163
+ var queryParameters, headerParameters, urlPath, facade, response;
164
+ var _a;
165
+ return __generator(this, function (_b) {
166
+ switch (_b.label) {
162
167
  case 0:
163
168
  if (requestParameters['contractId'] == null) {
164
169
  throw new runtime.RequiredError('contractId', 'Required parameter "contractId" was null or undefined when calling postUiOpenwindowContract().');
@@ -184,14 +189,18 @@ var UserInterfaceApi = /** @class */ (function (_super) {
184
189
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
185
190
  }
186
191
  urlPath = "/ui/openwindow/contract";
187
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
192
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
193
+ if (!facade) {
194
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
195
+ }
196
+ return [4 /*yield*/, facade.esi.proxy({
188
197
  path: urlPath,
189
198
  method: 'POST',
190
199
  headers: headerParameters,
191
200
  query: queryParameters,
192
201
  }, initOverrides)];
193
202
  case 1:
194
- response = _a.sent();
203
+ response = _b.sent();
195
204
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
196
205
  }
197
206
  });
@@ -219,9 +228,10 @@ var UserInterfaceApi = /** @class */ (function (_super) {
219
228
  */
220
229
  UserInterfaceApi.prototype.postUiOpenwindowInformationRaw = function (requestParameters, initOverrides) {
221
230
  return __awaiter(this, void 0, void 0, function () {
222
- var queryParameters, headerParameters, urlPath, response;
223
- return __generator(this, function (_a) {
224
- switch (_a.label) {
231
+ var queryParameters, headerParameters, urlPath, facade, response;
232
+ var _a;
233
+ return __generator(this, function (_b) {
234
+ switch (_b.label) {
225
235
  case 0:
226
236
  if (requestParameters['targetId'] == null) {
227
237
  throw new runtime.RequiredError('targetId', 'Required parameter "targetId" was null or undefined when calling postUiOpenwindowInformation().');
@@ -247,14 +257,18 @@ var UserInterfaceApi = /** @class */ (function (_super) {
247
257
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
248
258
  }
249
259
  urlPath = "/ui/openwindow/information";
250
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
260
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
261
+ if (!facade) {
262
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
263
+ }
264
+ return [4 /*yield*/, facade.esi.proxy({
251
265
  path: urlPath,
252
266
  method: 'POST',
253
267
  headers: headerParameters,
254
268
  query: queryParameters,
255
269
  }, initOverrides)];
256
270
  case 1:
257
- response = _a.sent();
271
+ response = _b.sent();
258
272
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
259
273
  }
260
274
  });
@@ -282,9 +296,10 @@ var UserInterfaceApi = /** @class */ (function (_super) {
282
296
  */
283
297
  UserInterfaceApi.prototype.postUiOpenwindowMarketdetailsRaw = function (requestParameters, initOverrides) {
284
298
  return __awaiter(this, void 0, void 0, function () {
285
- var queryParameters, headerParameters, urlPath, response;
286
- return __generator(this, function (_a) {
287
- switch (_a.label) {
299
+ var queryParameters, headerParameters, urlPath, facade, response;
300
+ var _a;
301
+ return __generator(this, function (_b) {
302
+ switch (_b.label) {
288
303
  case 0:
289
304
  if (requestParameters['typeId'] == null) {
290
305
  throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling postUiOpenwindowMarketdetails().');
@@ -310,14 +325,18 @@ var UserInterfaceApi = /** @class */ (function (_super) {
310
325
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
311
326
  }
312
327
  urlPath = "/ui/openwindow/marketdetails";
313
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
328
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
329
+ if (!facade) {
330
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
331
+ }
332
+ return [4 /*yield*/, facade.esi.proxy({
314
333
  path: urlPath,
315
334
  method: 'POST',
316
335
  headers: headerParameters,
317
336
  query: queryParameters,
318
337
  }, initOverrides)];
319
338
  case 1:
320
- response = _a.sent();
339
+ response = _b.sent();
321
340
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
322
341
  }
323
342
  });
@@ -345,9 +364,10 @@ var UserInterfaceApi = /** @class */ (function (_super) {
345
364
  */
346
365
  UserInterfaceApi.prototype.postUiOpenwindowNewmailRaw = function (requestParameters, initOverrides) {
347
366
  return __awaiter(this, void 0, void 0, function () {
348
- var queryParameters, headerParameters, urlPath, response;
349
- return __generator(this, function (_a) {
350
- switch (_a.label) {
367
+ var queryParameters, headerParameters, urlPath, facade, response;
368
+ var _a;
369
+ return __generator(this, function (_b) {
370
+ switch (_b.label) {
351
371
  case 0:
352
372
  if (requestParameters['xCompatibilityDate'] == null) {
353
373
  throw new runtime.RequiredError('xCompatibilityDate', 'Required parameter "xCompatibilityDate" was null or undefined when calling postUiOpenwindowNewmail().');
@@ -371,7 +391,11 @@ var UserInterfaceApi = /** @class */ (function (_super) {
371
391
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
372
392
  }
373
393
  urlPath = "/ui/openwindow/newmail";
374
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
394
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
395
+ if (!facade) {
396
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
397
+ }
398
+ return [4 /*yield*/, facade.esi.proxy({
375
399
  path: urlPath,
376
400
  method: 'POST',
377
401
  headers: headerParameters,
@@ -379,7 +403,7 @@ var UserInterfaceApi = /** @class */ (function (_super) {
379
403
  body: requestParameters['postUiOpenwindowNewmailRequest'],
380
404
  }, initOverrides)];
381
405
  case 1:
382
- response = _a.sent();
406
+ response = _b.sent();
383
407
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
384
408
  }
385
409
  });
@@ -66,7 +66,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.GetCorporationsCorporationIdWalletsDivisionTransactionsAcceptLanguageEnum = exports.GetCorporationsCorporationIdWalletsDivisionTransactionsXCompatibilityDateEnum = exports.GetCorporationsCorporationIdWalletsDivisionJournalAcceptLanguageEnum = exports.GetCorporationsCorporationIdWalletsDivisionJournalXCompatibilityDateEnum = exports.GetCorporationsCorporationIdWalletsAcceptLanguageEnum = exports.GetCorporationsCorporationIdWalletsXCompatibilityDateEnum = exports.GetCharactersCharacterIdWalletTransactionsAcceptLanguageEnum = exports.GetCharactersCharacterIdWalletTransactionsXCompatibilityDateEnum = exports.GetCharactersCharacterIdWalletJournalAcceptLanguageEnum = exports.GetCharactersCharacterIdWalletJournalXCompatibilityDateEnum = exports.GetCharactersCharacterIdWalletAcceptLanguageEnum = exports.GetCharactersCharacterIdWalletXCompatibilityDateEnum = exports.WalletApi = void 0;
68
68
  var runtime = require("../runtime");
69
- var serviceFacade_1 = require("../serviceFacade");
70
69
  /**
71
70
  *
72
71
  */
@@ -81,9 +80,10 @@ var WalletApi = /** @class */ (function (_super) {
81
80
  */
82
81
  WalletApi.prototype.getCharactersCharacterIdWalletRaw = function (requestParameters, initOverrides) {
83
82
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, urlPath, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
83
+ var queryParameters, headerParameters, urlPath, facade, response;
84
+ var _a;
85
+ return __generator(this, function (_b) {
86
+ switch (_b.label) {
87
87
  case 0:
88
88
  if (requestParameters['characterId'] == null) {
89
89
  throw new runtime.RequiredError('characterId', 'Required parameter "characterId" was null or undefined when calling getCharactersCharacterIdWallet().');
@@ -107,14 +107,18 @@ var WalletApi = /** @class */ (function (_super) {
107
107
  }
108
108
  urlPath = "/characters/{character_id}/wallet";
109
109
  urlPath = urlPath.replace("{".concat("character_id", "}"), encodeURIComponent(String(requestParameters['characterId'])));
110
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
110
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
111
+ if (!facade) {
112
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
113
+ }
114
+ return [4 /*yield*/, facade.esi.proxy({
111
115
  path: urlPath,
112
116
  method: 'GET',
113
117
  headers: headerParameters,
114
118
  query: queryParameters,
115
119
  }, initOverrides)];
116
120
  case 1:
117
- response = _a.sent();
121
+ response = _b.sent();
118
122
  if (this.isJsonMime(response.headers.get('content-type'))) {
119
123
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
120
124
  }
@@ -150,9 +154,10 @@ var WalletApi = /** @class */ (function (_super) {
150
154
  */
151
155
  WalletApi.prototype.getCharactersCharacterIdWalletJournalRaw = function (requestParameters, initOverrides) {
152
156
  return __awaiter(this, void 0, void 0, function () {
153
- var queryParameters, headerParameters, urlPath, response;
154
- return __generator(this, function (_a) {
155
- switch (_a.label) {
157
+ var queryParameters, headerParameters, urlPath, facade, response;
158
+ var _a;
159
+ return __generator(this, function (_b) {
160
+ switch (_b.label) {
156
161
  case 0:
157
162
  if (requestParameters['characterId'] == null) {
158
163
  throw new runtime.RequiredError('characterId', 'Required parameter "characterId" was null or undefined when calling getCharactersCharacterIdWalletJournal().');
@@ -179,14 +184,18 @@ var WalletApi = /** @class */ (function (_super) {
179
184
  }
180
185
  urlPath = "/characters/{character_id}/wallet/journal";
181
186
  urlPath = urlPath.replace("{".concat("character_id", "}"), encodeURIComponent(String(requestParameters['characterId'])));
182
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
187
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
188
+ if (!facade) {
189
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
190
+ }
191
+ return [4 /*yield*/, facade.esi.proxy({
183
192
  path: urlPath,
184
193
  method: 'GET',
185
194
  headers: headerParameters,
186
195
  query: queryParameters,
187
196
  }, initOverrides)];
188
197
  case 1:
189
- response = _a.sent();
198
+ response = _b.sent();
190
199
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
191
200
  }
192
201
  });
@@ -216,9 +225,10 @@ var WalletApi = /** @class */ (function (_super) {
216
225
  */
217
226
  WalletApi.prototype.getCharactersCharacterIdWalletTransactionsRaw = function (requestParameters, initOverrides) {
218
227
  return __awaiter(this, void 0, void 0, function () {
219
- var queryParameters, headerParameters, urlPath, response;
220
- return __generator(this, function (_a) {
221
- switch (_a.label) {
228
+ var queryParameters, headerParameters, urlPath, facade, response;
229
+ var _a;
230
+ return __generator(this, function (_b) {
231
+ switch (_b.label) {
222
232
  case 0:
223
233
  if (requestParameters['characterId'] == null) {
224
234
  throw new runtime.RequiredError('characterId', 'Required parameter "characterId" was null or undefined when calling getCharactersCharacterIdWalletTransactions().');
@@ -245,14 +255,18 @@ var WalletApi = /** @class */ (function (_super) {
245
255
  }
246
256
  urlPath = "/characters/{character_id}/wallet/transactions";
247
257
  urlPath = urlPath.replace("{".concat("character_id", "}"), encodeURIComponent(String(requestParameters['characterId'])));
248
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
258
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
259
+ if (!facade) {
260
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
261
+ }
262
+ return [4 /*yield*/, facade.esi.proxy({
249
263
  path: urlPath,
250
264
  method: 'GET',
251
265
  headers: headerParameters,
252
266
  query: queryParameters,
253
267
  }, initOverrides)];
254
268
  case 1:
255
- response = _a.sent();
269
+ response = _b.sent();
256
270
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
257
271
  }
258
272
  });
@@ -282,9 +296,10 @@ var WalletApi = /** @class */ (function (_super) {
282
296
  */
283
297
  WalletApi.prototype.getCorporationsCorporationIdWalletsRaw = function (requestParameters, initOverrides) {
284
298
  return __awaiter(this, void 0, void 0, function () {
285
- var queryParameters, headerParameters, urlPath, response;
286
- return __generator(this, function (_a) {
287
- switch (_a.label) {
299
+ var queryParameters, headerParameters, urlPath, facade, response;
300
+ var _a;
301
+ return __generator(this, function (_b) {
302
+ switch (_b.label) {
288
303
  case 0:
289
304
  if (requestParameters['corporationId'] == null) {
290
305
  throw new runtime.RequiredError('corporationId', 'Required parameter "corporationId" was null or undefined when calling getCorporationsCorporationIdWallets().');
@@ -308,14 +323,18 @@ var WalletApi = /** @class */ (function (_super) {
308
323
  }
309
324
  urlPath = "/corporations/{corporation_id}/wallets";
310
325
  urlPath = urlPath.replace("{".concat("corporation_id", "}"), encodeURIComponent(String(requestParameters['corporationId'])));
311
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
326
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
327
+ if (!facade) {
328
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
329
+ }
330
+ return [4 /*yield*/, facade.esi.proxy({
312
331
  path: urlPath,
313
332
  method: 'GET',
314
333
  headers: headerParameters,
315
334
  query: queryParameters,
316
335
  }, initOverrides)];
317
336
  case 1:
318
- response = _a.sent();
337
+ response = _b.sent();
319
338
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
320
339
  }
321
340
  });
@@ -345,9 +364,10 @@ var WalletApi = /** @class */ (function (_super) {
345
364
  */
346
365
  WalletApi.prototype.getCorporationsCorporationIdWalletsDivisionJournalRaw = function (requestParameters, initOverrides) {
347
366
  return __awaiter(this, void 0, void 0, function () {
348
- var queryParameters, headerParameters, urlPath, response;
349
- return __generator(this, function (_a) {
350
- switch (_a.label) {
367
+ var queryParameters, headerParameters, urlPath, facade, response;
368
+ var _a;
369
+ return __generator(this, function (_b) {
370
+ switch (_b.label) {
351
371
  case 0:
352
372
  if (requestParameters['corporationId'] == null) {
353
373
  throw new runtime.RequiredError('corporationId', 'Required parameter "corporationId" was null or undefined when calling getCorporationsCorporationIdWalletsDivisionJournal().');
@@ -378,14 +398,18 @@ var WalletApi = /** @class */ (function (_super) {
378
398
  urlPath = "/corporations/{corporation_id}/wallets/{division}/journal";
379
399
  urlPath = urlPath.replace("{".concat("corporation_id", "}"), encodeURIComponent(String(requestParameters['corporationId'])));
380
400
  urlPath = urlPath.replace("{".concat("division", "}"), encodeURIComponent(String(requestParameters['division'])));
381
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
401
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
402
+ if (!facade) {
403
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
404
+ }
405
+ return [4 /*yield*/, facade.esi.proxy({
382
406
  path: urlPath,
383
407
  method: 'GET',
384
408
  headers: headerParameters,
385
409
  query: queryParameters,
386
410
  }, initOverrides)];
387
411
  case 1:
388
- response = _a.sent();
412
+ response = _b.sent();
389
413
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
390
414
  }
391
415
  });
@@ -415,9 +439,10 @@ var WalletApi = /** @class */ (function (_super) {
415
439
  */
416
440
  WalletApi.prototype.getCorporationsCorporationIdWalletsDivisionTransactionsRaw = function (requestParameters, initOverrides) {
417
441
  return __awaiter(this, void 0, void 0, function () {
418
- var queryParameters, headerParameters, urlPath, response;
419
- return __generator(this, function (_a) {
420
- switch (_a.label) {
442
+ var queryParameters, headerParameters, urlPath, facade, response;
443
+ var _a;
444
+ return __generator(this, function (_b) {
445
+ switch (_b.label) {
421
446
  case 0:
422
447
  if (requestParameters['corporationId'] == null) {
423
448
  throw new runtime.RequiredError('corporationId', 'Required parameter "corporationId" was null or undefined when calling getCorporationsCorporationIdWalletsDivisionTransactions().');
@@ -448,14 +473,18 @@ var WalletApi = /** @class */ (function (_super) {
448
473
  urlPath = "/corporations/{corporation_id}/wallets/{division}/transactions";
449
474
  urlPath = urlPath.replace("{".concat("corporation_id", "}"), encodeURIComponent(String(requestParameters['corporationId'])));
450
475
  urlPath = urlPath.replace("{".concat("division", "}"), encodeURIComponent(String(requestParameters['division'])));
451
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
476
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
477
+ if (!facade) {
478
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
479
+ }
480
+ return [4 /*yield*/, facade.esi.proxy({
452
481
  path: urlPath,
453
482
  method: 'GET',
454
483
  headers: headerParameters,
455
484
  query: queryParameters,
456
485
  }, initOverrides)];
457
486
  case 1:
458
- response = _a.sent();
487
+ response = _b.sent();
459
488
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
460
489
  }
461
490
  });
@@ -66,7 +66,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.GetWarsWarIdKillmailsAcceptLanguageEnum = exports.GetWarsWarIdKillmailsXCompatibilityDateEnum = exports.GetWarsWarIdAcceptLanguageEnum = exports.GetWarsWarIdXCompatibilityDateEnum = exports.GetWarsAcceptLanguageEnum = exports.GetWarsXCompatibilityDateEnum = exports.WarsApi = void 0;
68
68
  var runtime = require("../runtime");
69
- var serviceFacade_1 = require("../serviceFacade");
70
69
  /**
71
70
  *
72
71
  */
@@ -81,9 +80,10 @@ var WarsApi = /** @class */ (function (_super) {
81
80
  */
82
81
  WarsApi.prototype.getWarsRaw = function (requestParameters, initOverrides) {
83
82
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, urlPath, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
83
+ var queryParameters, headerParameters, urlPath, facade, response;
84
+ var _a;
85
+ return __generator(this, function (_b) {
86
+ switch (_b.label) {
87
87
  case 0:
88
88
  if (requestParameters['xCompatibilityDate'] == null) {
89
89
  throw new runtime.RequiredError('xCompatibilityDate', 'Required parameter "xCompatibilityDate" was null or undefined when calling getWars().');
@@ -106,14 +106,18 @@ var WarsApi = /** @class */ (function (_super) {
106
106
  headerParameters['X-Tenant'] = String(requestParameters['xTenant']);
107
107
  }
108
108
  urlPath = "/wars";
109
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
109
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
110
+ if (!facade) {
111
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
112
+ }
113
+ return [4 /*yield*/, facade.esi.proxy({
110
114
  path: urlPath,
111
115
  method: 'GET',
112
116
  headers: headerParameters,
113
117
  query: queryParameters,
114
118
  }, initOverrides)];
115
119
  case 1:
116
- response = _a.sent();
120
+ response = _b.sent();
117
121
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
118
122
  }
119
123
  });
@@ -143,9 +147,10 @@ var WarsApi = /** @class */ (function (_super) {
143
147
  */
144
148
  WarsApi.prototype.getWarsWarIdRaw = function (requestParameters, initOverrides) {
145
149
  return __awaiter(this, void 0, void 0, function () {
146
- var queryParameters, headerParameters, urlPath, response;
147
- return __generator(this, function (_a) {
148
- switch (_a.label) {
150
+ var queryParameters, headerParameters, urlPath, facade, response;
151
+ var _a;
152
+ return __generator(this, function (_b) {
153
+ switch (_b.label) {
149
154
  case 0:
150
155
  if (requestParameters['warId'] == null) {
151
156
  throw new runtime.RequiredError('warId', 'Required parameter "warId" was null or undefined when calling getWarsWarId().');
@@ -169,14 +174,18 @@ var WarsApi = /** @class */ (function (_super) {
169
174
  }
170
175
  urlPath = "/wars/{war_id}";
171
176
  urlPath = urlPath.replace("{".concat("war_id", "}"), encodeURIComponent(String(requestParameters['warId'])));
172
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
177
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
178
+ if (!facade) {
179
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
180
+ }
181
+ return [4 /*yield*/, facade.esi.proxy({
173
182
  path: urlPath,
174
183
  method: 'GET',
175
184
  headers: headerParameters,
176
185
  query: queryParameters,
177
186
  }, initOverrides)];
178
187
  case 1:
179
- response = _a.sent();
188
+ response = _b.sent();
180
189
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
181
190
  }
182
191
  });
@@ -206,9 +215,10 @@ var WarsApi = /** @class */ (function (_super) {
206
215
  */
207
216
  WarsApi.prototype.getWarsWarIdKillmailsRaw = function (requestParameters, initOverrides) {
208
217
  return __awaiter(this, void 0, void 0, function () {
209
- var queryParameters, headerParameters, urlPath, response;
210
- return __generator(this, function (_a) {
211
- switch (_a.label) {
218
+ var queryParameters, headerParameters, urlPath, facade, response;
219
+ var _a;
220
+ return __generator(this, function (_b) {
221
+ switch (_b.label) {
212
222
  case 0:
213
223
  if (requestParameters['warId'] == null) {
214
224
  throw new runtime.RequiredError('warId', 'Required parameter "warId" was null or undefined when calling getWarsWarIdKillmails().');
@@ -235,14 +245,18 @@ var WarsApi = /** @class */ (function (_super) {
235
245
  }
236
246
  urlPath = "/wars/{war_id}/killmails";
237
247
  urlPath = urlPath.replace("{".concat("war_id", "}"), encodeURIComponent(String(requestParameters['warId'])));
238
- return [4 /*yield*/, serviceFacade_1.default.esi.proxy({
248
+ facade = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.apiFacade;
249
+ if (!facade) {
250
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
251
+ }
252
+ return [4 /*yield*/, facade.esi.proxy({
239
253
  path: urlPath,
240
254
  method: 'GET',
241
255
  headers: headerParameters,
242
256
  query: queryParameters,
243
257
  }, initOverrides)];
244
258
  case 1:
245
- response = _a.sent();
259
+ response = _b.sent();
246
260
  return [2 /*return*/, new runtime.JSONApiResponse(response)];
247
261
  }
248
262
  });
package/dist/runtime.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface ConfigurationParameters {
21
21
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
22
  headers?: HTTPHeaders;
23
23
  credentials?: RequestCredentials;
24
+ apiFacade?: any;
24
25
  }
25
26
  export declare class Configuration {
26
27
  private configuration;
@@ -36,6 +37,7 @@ export declare class Configuration {
36
37
  get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
38
  get headers(): HTTPHeaders | undefined;
38
39
  get credentials(): RequestCredentials | undefined;
40
+ get apiFacade(): any | undefined;
39
41
  }
40
42
  export declare const DefaultConfig: Configuration;
41
43
  /**
package/dist/runtime.js CHANGED
@@ -173,6 +173,13 @@ var Configuration = /** @class */ (function () {
173
173
  enumerable: false,
174
174
  configurable: true
175
175
  });
176
+ Object.defineProperty(Configuration.prototype, "apiFacade", {
177
+ get: function () {
178
+ return this.configuration.apiFacade;
179
+ },
180
+ enumerable: false,
181
+ configurable: true
182
+ });
176
183
  return Configuration;
177
184
  }());
178
185
  exports.Configuration = Configuration;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esisl_genoa_client",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenAPI client for esisl_genoa_client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
  import * as runtime from '../runtime';
17
- import api from '../serviceFacade'
17
+
18
18
  import type {
19
19
  AlliancesAllianceIdGet,
20
20
  AlliancesAllianceIdIconsGet,
@@ -181,7 +181,12 @@ export class AllianceApi extends runtime.BaseAPI implements AllianceApiInterface
181
181
 
182
182
  let urlPath = `/alliances`;
183
183
 
184
- const response = await api.esi.proxy({
184
+ const facade = this.configuration?.apiFacade;
185
+ if (!facade) {
186
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
187
+ }
188
+
189
+ const response = await facade.esi.proxy({
185
190
  path: urlPath,
186
191
  method: 'GET',
187
192
  headers: headerParameters,
@@ -245,7 +250,12 @@ export class AllianceApi extends runtime.BaseAPI implements AllianceApiInterface
245
250
  let urlPath = `/alliances/{alliance_id}`;
246
251
  urlPath = urlPath.replace(`{${"alliance_id"}}`, encodeURIComponent(String(requestParameters['allianceId'])));
247
252
 
248
- const response = await api.esi.proxy({
253
+ const facade = this.configuration?.apiFacade;
254
+ if (!facade) {
255
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
256
+ }
257
+
258
+ const response = await facade.esi.proxy({
249
259
  path: urlPath,
250
260
  method: 'GET',
251
261
  headers: headerParameters,
@@ -309,7 +319,12 @@ export class AllianceApi extends runtime.BaseAPI implements AllianceApiInterface
309
319
  let urlPath = `/alliances/{alliance_id}/corporations`;
310
320
  urlPath = urlPath.replace(`{${"alliance_id"}}`, encodeURIComponent(String(requestParameters['allianceId'])));
311
321
 
312
- const response = await api.esi.proxy({
322
+ const facade = this.configuration?.apiFacade;
323
+ if (!facade) {
324
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
325
+ }
326
+
327
+ const response = await facade.esi.proxy({
313
328
  path: urlPath,
314
329
  method: 'GET',
315
330
  headers: headerParameters,
@@ -373,7 +388,12 @@ export class AllianceApi extends runtime.BaseAPI implements AllianceApiInterface
373
388
  let urlPath = `/alliances/{alliance_id}/icons`;
374
389
  urlPath = urlPath.replace(`{${"alliance_id"}}`, encodeURIComponent(String(requestParameters['allianceId'])));
375
390
 
376
- const response = await api.esi.proxy({
391
+ const facade = this.configuration?.apiFacade;
392
+ if (!facade) {
393
+ throw new runtime.RequiredError('apiFacade', 'apiFacade is required in Configuration. Provide it via new Configuration({ apiFacade: myFacade })');
394
+ }
395
+
396
+ const response = await facade.esi.proxy({
377
397
  path: urlPath,
378
398
  method: 'GET',
379
399
  headers: headerParameters,