bnstooltips 1.12.1 → 1.13.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/build/ItemImproveSelectStageTooltip/ItemImproveSelectStageTooltip.types.d.ts +1 -1
- package/build/ItemImproveSelectStageTooltipWrapper/ItemImproveSelectStageTooltipWrapper.types.d.ts +1 -1
- package/build/ItemImproveTooltip/ItemImproveTooltip.types.d.ts +1 -1
- package/build/ItemImproveTooltip/SubComponents/ItemImproveUpgradeCost.d.ts +1 -1
- package/build/ItemImproveTooltip/SubComponents/ItemWithText.d.ts +1 -1
- package/build/ItemImproveTooltip/SubComponents/MainCostSelector.d.ts +1 -1
- package/build/ItemImproveTooltip/SubComponents/PrevCurNext.d.ts +1 -1
- package/build/ItemImproveTooltip/SubComponents/SubCosts.d.ts +1 -1
- package/build/ItemImproveTooltipWrapper/ItemImproveTooltipWrapper.types.d.ts +1 -1
- package/build/ItemTooltip/ItemTooltip.types.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/AccountTransfer.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/DecomposeResults.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/EtchingStones.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/GearScore.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemCooldowns.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemIconNameDiv.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/ItemMainInfo.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemRandomStats.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemSkillDescriptions.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/ItemSkillTitles.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/ItemStats.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemSubInfo.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/SealingResult.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SetBonus.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SetBonusItems.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/SkillModifierGroup.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SkillModifiers.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/TopText.d.ts +2 -2
- package/build/ItemTooltipWrapper/ItemTooltipWrapper.types.d.ts +1 -1
- package/build/NpcTooltip/SubComponents/StoreItemBuyPriceEntry.d.ts +1 -1
- package/build/Utilities/INpc.d.ts +1 -1
- package/build/Utilities/ItemDownloadClient.d.ts +9 -10
- package/build/index.es.js +2105 -975
- package/build/index.es.js.map +1 -1
- package/build/index.js +2105 -995
- package/build/index.js.map +1 -1
- package/build/itemapiclient/BnsItemApiClientBase.d.ts +3 -0
- package/build/itemapiclient/ItemApiClient.d.ts +591 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React, { useState, cloneElement, forwardRef as forwardRef$1, useLayoutEffect, useEffect, useRef } from 'react';
|
|
2
|
-
import * as url from 'url';
|
|
3
|
-
import * as isomorphicFetch from 'isomorphic-fetch';
|
|
4
2
|
import { createPortal } from 'react-dom';
|
|
5
3
|
|
|
6
4
|
function styleInject(css, ref) {
|
|
@@ -306,1055 +304,2193 @@ function getMoneyObj(money) {
|
|
|
306
304
|
};
|
|
307
305
|
}
|
|
308
306
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
*
|
|
313
|
-
* @export
|
|
314
|
-
* @class BaseAPI
|
|
315
|
-
*/
|
|
316
|
-
var BaseAPI = /** @class */ (function () {
|
|
317
|
-
function BaseAPI(configuration, basePath, fetch) {
|
|
318
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
319
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
320
|
-
this.basePath = basePath;
|
|
321
|
-
this.fetch = fetch;
|
|
322
|
-
if (configuration) {
|
|
323
|
-
this.configuration = configuration;
|
|
324
|
-
this.basePath = configuration.basePath || this.basePath;
|
|
325
|
-
}
|
|
307
|
+
var BnsItemApiClientBase = /** @class */ (function () {
|
|
308
|
+
function BnsItemApiClientBase() {
|
|
326
309
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
310
|
+
BnsItemApiClientBase.prototype.transformOptions = function (options) {
|
|
311
|
+
options.headers = new Headers(options.headers);
|
|
312
|
+
options.headers.set("Referer", "https://yast.vercel.app");
|
|
313
|
+
options.headers.set("Origin", "https://yast.vercel.app");
|
|
314
|
+
return Promise.resolve(options);
|
|
315
|
+
};
|
|
316
|
+
return BnsItemApiClientBase;
|
|
317
|
+
}());
|
|
318
|
+
|
|
319
|
+
//----------------------
|
|
320
|
+
var BnsItemApiClient = /** @class */ (function (_super) {
|
|
321
|
+
__extends(BnsItemApiClient, _super);
|
|
322
|
+
function BnsItemApiClient(baseUrl, http) {
|
|
323
|
+
var _this = _super.call(this) || this;
|
|
324
|
+
_this.jsonParseReviver = undefined;
|
|
325
|
+
_this.http = http ? http : window;
|
|
326
|
+
_this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
340
327
|
return _this;
|
|
341
328
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
* @param {boolean} modified
|
|
354
|
-
* @param {string} region
|
|
355
|
-
* @param {string} [patch]
|
|
356
|
-
* @param {*} [options] Override http request option.
|
|
357
|
-
* @throws {RequiredError}
|
|
358
|
-
*/
|
|
359
|
-
bnsItemAddedOrModifiedItemsGet: function (added, modified, region, patch, options) {
|
|
360
|
-
if (options === void 0) { options = {}; }
|
|
361
|
-
// verify required parameter 'added' is not null or undefined
|
|
362
|
-
if (added === null || added === undefined) {
|
|
363
|
-
throw new RequiredError('added', 'Required parameter added was null or undefined when calling bnsItemAddedOrModifiedItemsGet.');
|
|
329
|
+
/**
|
|
330
|
+
* @return Success
|
|
331
|
+
*/
|
|
332
|
+
BnsItemApiClient.prototype.ping = function () {
|
|
333
|
+
var _this = this;
|
|
334
|
+
var url_ = this.baseUrl + "/BnsItem/Ping";
|
|
335
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
336
|
+
var options_ = {
|
|
337
|
+
method: "GET",
|
|
338
|
+
headers: {
|
|
339
|
+
"Accept": "text/plain"
|
|
364
340
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
341
|
+
};
|
|
342
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
343
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
344
|
+
}).then(function (_response) {
|
|
345
|
+
return _this.processPing(_response);
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
BnsItemApiClient.prototype.processPing = function (response) {
|
|
349
|
+
var _this = this;
|
|
350
|
+
var status = response.status;
|
|
351
|
+
var _headers = {};
|
|
352
|
+
if (response.headers && response.headers.forEach) {
|
|
353
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
354
|
+
}
|
|
355
|
+
if (status === 200) {
|
|
356
|
+
return response.text().then(function (_responseText) {
|
|
357
|
+
var result200 = null;
|
|
358
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
359
|
+
result200 = resultData200 !== undefined ? resultData200 : null;
|
|
360
|
+
return result200;
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
else if (status !== 200 && status !== 204) {
|
|
364
|
+
return response.text().then(function (_responseText) {
|
|
365
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
return Promise.resolve(null);
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* @return Success
|
|
372
|
+
*/
|
|
373
|
+
BnsItemApiClient.prototype.patches = function (region) {
|
|
374
|
+
var _this = this;
|
|
375
|
+
var url_ = this.baseUrl + "/BnsItem/Patches?";
|
|
376
|
+
if (region === undefined || region === null)
|
|
377
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
378
|
+
else
|
|
379
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
380
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
381
|
+
var options_ = {
|
|
382
|
+
method: "GET",
|
|
383
|
+
headers: {
|
|
384
|
+
"Accept": "text/plain"
|
|
368
385
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
386
|
+
};
|
|
387
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
388
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
389
|
+
}).then(function (_response) {
|
|
390
|
+
return _this.processPatches(_response);
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
BnsItemApiClient.prototype.processPatches = function (response) {
|
|
394
|
+
var _this = this;
|
|
395
|
+
var status = response.status;
|
|
396
|
+
var _headers = {};
|
|
397
|
+
if (response.headers && response.headers.forEach) {
|
|
398
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
399
|
+
}
|
|
400
|
+
if (status === 200) {
|
|
401
|
+
return response.text().then(function (_responseText) {
|
|
402
|
+
var result200 = null;
|
|
403
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
404
|
+
if (Array.isArray(resultData200)) {
|
|
405
|
+
result200 = [];
|
|
406
|
+
for (var _i = 0, resultData200_1 = resultData200; _i < resultData200_1.length; _i++) {
|
|
407
|
+
var item = resultData200_1[_i];
|
|
408
|
+
result200.push(PatchesListPatch.fromJS(item));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
result200 = null;
|
|
413
|
+
}
|
|
414
|
+
return result200;
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
else if (status !== 200 && status !== 204) {
|
|
418
|
+
return response.text().then(function (_responseText) {
|
|
419
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
return Promise.resolve(null);
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* @return Success
|
|
426
|
+
*/
|
|
427
|
+
BnsItemApiClient.prototype.latestPatch = function (region) {
|
|
428
|
+
var _this = this;
|
|
429
|
+
var url_ = this.baseUrl + "/BnsItem/LatestPatch?";
|
|
430
|
+
if (region === undefined || region === null)
|
|
431
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
432
|
+
else
|
|
433
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
434
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
435
|
+
var options_ = {
|
|
436
|
+
method: "GET",
|
|
437
|
+
headers: {
|
|
438
|
+
"Accept": "text/plain"
|
|
372
439
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
440
|
+
};
|
|
441
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
442
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
443
|
+
}).then(function (_response) {
|
|
444
|
+
return _this.processLatestPatch(_response);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
BnsItemApiClient.prototype.processLatestPatch = function (response) {
|
|
448
|
+
var _this = this;
|
|
449
|
+
var status = response.status;
|
|
450
|
+
var _headers = {};
|
|
451
|
+
if (response.headers && response.headers.forEach) {
|
|
452
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
453
|
+
}
|
|
454
|
+
if (status === 200) {
|
|
455
|
+
return response.text().then(function (_responseText) {
|
|
456
|
+
var result200 = null;
|
|
457
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
458
|
+
result200 = PatchesListPatch.fromJS(resultData200);
|
|
459
|
+
return result200;
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
else if (status !== 200 && status !== 204) {
|
|
463
|
+
return response.text().then(function (_responseText) {
|
|
464
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
return Promise.resolve(null);
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* @return Success
|
|
471
|
+
*/
|
|
472
|
+
BnsItemApiClient.prototype.regions = function () {
|
|
473
|
+
var _this = this;
|
|
474
|
+
var url_ = this.baseUrl + "/BnsItem/Regions";
|
|
475
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
476
|
+
var options_ = {
|
|
477
|
+
method: "GET",
|
|
478
|
+
headers: {
|
|
479
|
+
"Accept": "text/plain"
|
|
380
480
|
}
|
|
381
|
-
|
|
382
|
-
|
|
481
|
+
};
|
|
482
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
483
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
484
|
+
}).then(function (_response) {
|
|
485
|
+
return _this.processRegions(_response);
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
BnsItemApiClient.prototype.processRegions = function (response) {
|
|
489
|
+
var _this = this;
|
|
490
|
+
var status = response.status;
|
|
491
|
+
var _headers = {};
|
|
492
|
+
if (response.headers && response.headers.forEach) {
|
|
493
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
494
|
+
}
|
|
495
|
+
if (status === 200) {
|
|
496
|
+
return response.text().then(function (_responseText) {
|
|
497
|
+
var result200 = null;
|
|
498
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
499
|
+
if (Array.isArray(resultData200)) {
|
|
500
|
+
result200 = [];
|
|
501
|
+
for (var _i = 0, resultData200_2 = resultData200; _i < resultData200_2.length; _i++) {
|
|
502
|
+
var item = resultData200_2[_i];
|
|
503
|
+
result200.push(item);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
result200 = null;
|
|
508
|
+
}
|
|
509
|
+
return result200;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
else if (status !== 200 && status !== 204) {
|
|
513
|
+
return response.text().then(function (_responseText) {
|
|
514
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
return Promise.resolve(null);
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* @param patch (optional)
|
|
521
|
+
* @return Success
|
|
522
|
+
*/
|
|
523
|
+
BnsItemApiClient.prototype.yastItems = function (region, itemType, technicalJobName, patch) {
|
|
524
|
+
var _this = this;
|
|
525
|
+
var url_ = this.baseUrl + "/BnsItem/YastItems?";
|
|
526
|
+
if (region === undefined || region === null)
|
|
527
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
528
|
+
else
|
|
529
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
530
|
+
if (itemType === undefined || itemType === null)
|
|
531
|
+
throw new Error("The parameter 'itemType' must be defined and cannot be null.");
|
|
532
|
+
else
|
|
533
|
+
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
534
|
+
if (technicalJobName === undefined || technicalJobName === null)
|
|
535
|
+
throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
|
|
536
|
+
else
|
|
537
|
+
url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
|
|
538
|
+
if (patch === null)
|
|
539
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
540
|
+
else if (patch !== undefined)
|
|
541
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
542
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
543
|
+
var options_ = {
|
|
544
|
+
method: "GET",
|
|
545
|
+
headers: {
|
|
546
|
+
"Accept": "text/plain"
|
|
383
547
|
}
|
|
384
|
-
|
|
385
|
-
|
|
548
|
+
};
|
|
549
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
550
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
551
|
+
}).then(function (_response) {
|
|
552
|
+
return _this.processYastItems(_response);
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
BnsItemApiClient.prototype.processYastItems = function (response) {
|
|
556
|
+
var _this = this;
|
|
557
|
+
var status = response.status;
|
|
558
|
+
var _headers = {};
|
|
559
|
+
if (response.headers && response.headers.forEach) {
|
|
560
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
561
|
+
}
|
|
562
|
+
if (status === 200) {
|
|
563
|
+
return response.text().then(function (_responseText) {
|
|
564
|
+
var result200 = null;
|
|
565
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
566
|
+
if (Array.isArray(resultData200)) {
|
|
567
|
+
result200 = [];
|
|
568
|
+
for (var _i = 0, resultData200_3 = resultData200; _i < resultData200_3.length; _i++) {
|
|
569
|
+
var item = resultData200_3[_i];
|
|
570
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
result200 = null;
|
|
575
|
+
}
|
|
576
|
+
return result200;
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
else if (status !== 200 && status !== 204) {
|
|
580
|
+
return response.text().then(function (_responseText) {
|
|
581
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
return Promise.resolve(null);
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* @param itemId (optional)
|
|
588
|
+
* @param itemLevel (optional)
|
|
589
|
+
* @param region (optional)
|
|
590
|
+
* @param patch (optional)
|
|
591
|
+
* @return Success
|
|
592
|
+
*/
|
|
593
|
+
BnsItemApiClient.prototype.allStagesForItem = function (itemId, itemLevel, region, patch) {
|
|
594
|
+
var _this = this;
|
|
595
|
+
var url_ = this.baseUrl + "/BnsItem/AllStagesForItem?";
|
|
596
|
+
if (itemId === null)
|
|
597
|
+
throw new Error("The parameter 'itemId' cannot be null.");
|
|
598
|
+
else if (itemId !== undefined)
|
|
599
|
+
url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
|
|
600
|
+
if (itemLevel === null)
|
|
601
|
+
throw new Error("The parameter 'itemLevel' cannot be null.");
|
|
602
|
+
else if (itemLevel !== undefined)
|
|
603
|
+
url_ += "itemLevel=" + encodeURIComponent("" + itemLevel) + "&";
|
|
604
|
+
if (region === null)
|
|
605
|
+
throw new Error("The parameter 'region' cannot be null.");
|
|
606
|
+
else if (region !== undefined)
|
|
607
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
608
|
+
if (patch === null)
|
|
609
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
610
|
+
else if (patch !== undefined)
|
|
611
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
612
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
613
|
+
var options_ = {
|
|
614
|
+
method: "GET",
|
|
615
|
+
headers: {
|
|
616
|
+
"Accept": "text/plain"
|
|
386
617
|
}
|
|
387
|
-
|
|
388
|
-
|
|
618
|
+
};
|
|
619
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
620
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
621
|
+
}).then(function (_response) {
|
|
622
|
+
return _this.processAllStagesForItem(_response);
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
BnsItemApiClient.prototype.processAllStagesForItem = function (response) {
|
|
626
|
+
var _this = this;
|
|
627
|
+
var status = response.status;
|
|
628
|
+
var _headers = {};
|
|
629
|
+
if (response.headers && response.headers.forEach) {
|
|
630
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
631
|
+
}
|
|
632
|
+
if (status === 200) {
|
|
633
|
+
return response.text().then(function (_responseText) {
|
|
634
|
+
var result200 = null;
|
|
635
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
636
|
+
result200 = ItemWithStagesDto.fromJS(resultData200);
|
|
637
|
+
return result200;
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
else if (status !== 200 && status !== 204) {
|
|
641
|
+
return response.text().then(function (_responseText) {
|
|
642
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
return Promise.resolve(null);
|
|
646
|
+
};
|
|
647
|
+
/**
|
|
648
|
+
* @param itemId (optional)
|
|
649
|
+
* @param itemLevel (optional)
|
|
650
|
+
* @param region (optional)
|
|
651
|
+
* @param patch (optional)
|
|
652
|
+
* @return Success
|
|
653
|
+
* @deprecated
|
|
654
|
+
*/
|
|
655
|
+
BnsItemApiClient.prototype.allUpgradesForItem = function (itemId, itemLevel, region, patch) {
|
|
656
|
+
var _this = this;
|
|
657
|
+
var url_ = this.baseUrl + "/BnsItem/AllUpgradesForItem?";
|
|
658
|
+
if (itemId === null)
|
|
659
|
+
throw new Error("The parameter 'itemId' cannot be null.");
|
|
660
|
+
else if (itemId !== undefined)
|
|
661
|
+
url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
|
|
662
|
+
if (itemLevel === null)
|
|
663
|
+
throw new Error("The parameter 'itemLevel' cannot be null.");
|
|
664
|
+
else if (itemLevel !== undefined)
|
|
665
|
+
url_ += "itemLevel=" + encodeURIComponent("" + itemLevel) + "&";
|
|
666
|
+
if (region === null)
|
|
667
|
+
throw new Error("The parameter 'region' cannot be null.");
|
|
668
|
+
else if (region !== undefined)
|
|
669
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
670
|
+
if (patch === null)
|
|
671
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
672
|
+
else if (patch !== undefined)
|
|
673
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
674
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
675
|
+
var options_ = {
|
|
676
|
+
method: "GET",
|
|
677
|
+
headers: {
|
|
678
|
+
"Accept": "text/plain"
|
|
389
679
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
680
|
+
};
|
|
681
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
682
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
683
|
+
}).then(function (_response) {
|
|
684
|
+
return _this.processAllUpgradesForItem(_response);
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
BnsItemApiClient.prototype.processAllUpgradesForItem = function (response) {
|
|
688
|
+
var _this = this;
|
|
689
|
+
var status = response.status;
|
|
690
|
+
var _headers = {};
|
|
691
|
+
if (response.headers && response.headers.forEach) {
|
|
692
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
693
|
+
}
|
|
694
|
+
if (status === 200) {
|
|
695
|
+
return response.text().then(function (_responseText) {
|
|
696
|
+
var result200 = null;
|
|
697
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
698
|
+
if (Array.isArray(resultData200)) {
|
|
699
|
+
result200 = [];
|
|
700
|
+
for (var _i = 0, resultData200_4 = resultData200; _i < resultData200_4.length; _i++) {
|
|
701
|
+
var item = resultData200_4[_i];
|
|
702
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
result200 = null;
|
|
707
|
+
}
|
|
708
|
+
return result200;
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
else if (status !== 200 && status !== 204) {
|
|
712
|
+
return response.text().then(function (_responseText) {
|
|
713
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
return Promise.resolve(null);
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
* @param patch (optional)
|
|
720
|
+
* @return Success
|
|
721
|
+
*/
|
|
722
|
+
BnsItemApiClient.prototype.addedOrModifiedItems = function (added, modified, region, patch) {
|
|
723
|
+
var _this = this;
|
|
724
|
+
var url_ = this.baseUrl + "/BnsItem/AddedOrModifiedItems?";
|
|
725
|
+
if (added === undefined || added === null)
|
|
726
|
+
throw new Error("The parameter 'added' must be defined and cannot be null.");
|
|
727
|
+
else
|
|
728
|
+
url_ += "added=" + encodeURIComponent("" + added) + "&";
|
|
729
|
+
if (modified === undefined || modified === null)
|
|
730
|
+
throw new Error("The parameter 'modified' must be defined and cannot be null.");
|
|
731
|
+
else
|
|
732
|
+
url_ += "modified=" + encodeURIComponent("" + modified) + "&";
|
|
733
|
+
if (region === undefined || region === null)
|
|
734
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
735
|
+
else
|
|
736
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
737
|
+
if (patch === null)
|
|
738
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
739
|
+
else if (patch !== undefined)
|
|
740
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
741
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
742
|
+
var options_ = {
|
|
743
|
+
method: "GET",
|
|
744
|
+
headers: {
|
|
745
|
+
"Accept": "text/plain"
|
|
417
746
|
}
|
|
418
|
-
|
|
419
|
-
|
|
747
|
+
};
|
|
748
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
749
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
750
|
+
}).then(function (_response) {
|
|
751
|
+
return _this.processAddedOrModifiedItems(_response);
|
|
752
|
+
});
|
|
753
|
+
};
|
|
754
|
+
BnsItemApiClient.prototype.processAddedOrModifiedItems = function (response) {
|
|
755
|
+
var _this = this;
|
|
756
|
+
var status = response.status;
|
|
757
|
+
var _headers = {};
|
|
758
|
+
if (response.headers && response.headers.forEach) {
|
|
759
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
760
|
+
}
|
|
761
|
+
if (status === 200) {
|
|
762
|
+
return response.text().then(function (_responseText) {
|
|
763
|
+
var result200 = null;
|
|
764
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
765
|
+
if (Array.isArray(resultData200)) {
|
|
766
|
+
result200 = [];
|
|
767
|
+
for (var _i = 0, resultData200_5 = resultData200; _i < resultData200_5.length; _i++) {
|
|
768
|
+
var item = resultData200_5[_i];
|
|
769
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
result200 = null;
|
|
774
|
+
}
|
|
775
|
+
return result200;
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
else if (status !== 200 && status !== 204) {
|
|
779
|
+
return response.text().then(function (_responseText) {
|
|
780
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
return Promise.resolve(null);
|
|
784
|
+
};
|
|
785
|
+
/**
|
|
786
|
+
* @param light (optional)
|
|
787
|
+
* @param patch (optional)
|
|
788
|
+
* @return Success
|
|
789
|
+
*/
|
|
790
|
+
BnsItemApiClient.prototype.itemByString = function (idLevel, region, light, patch) {
|
|
791
|
+
var _this = this;
|
|
792
|
+
var url_ = this.baseUrl + "/BnsItem/ItemByString?";
|
|
793
|
+
if (idLevel === undefined || idLevel === null)
|
|
794
|
+
throw new Error("The parameter 'idLevel' must be defined and cannot be null.");
|
|
795
|
+
else
|
|
796
|
+
url_ += "idLevel=" + encodeURIComponent("" + idLevel) + "&";
|
|
797
|
+
if (region === undefined || region === null)
|
|
798
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
799
|
+
else
|
|
800
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
801
|
+
if (light === null)
|
|
802
|
+
throw new Error("The parameter 'light' cannot be null.");
|
|
803
|
+
else if (light !== undefined)
|
|
804
|
+
url_ += "light=" + encodeURIComponent("" + light) + "&";
|
|
805
|
+
if (patch === null)
|
|
806
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
807
|
+
else if (patch !== undefined)
|
|
808
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
809
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
810
|
+
var options_ = {
|
|
811
|
+
method: "GET",
|
|
812
|
+
headers: {
|
|
813
|
+
"Accept": "text/plain"
|
|
420
814
|
}
|
|
421
|
-
|
|
422
|
-
|
|
815
|
+
};
|
|
816
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
817
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
818
|
+
}).then(function (_response) {
|
|
819
|
+
return _this.processItemByString(_response);
|
|
820
|
+
});
|
|
821
|
+
};
|
|
822
|
+
BnsItemApiClient.prototype.processItemByString = function (response) {
|
|
823
|
+
var _this = this;
|
|
824
|
+
var status = response.status;
|
|
825
|
+
var _headers = {};
|
|
826
|
+
if (response.headers && response.headers.forEach) {
|
|
827
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
828
|
+
}
|
|
829
|
+
if (status === 200) {
|
|
830
|
+
return response.text().then(function (_responseText) {
|
|
831
|
+
var result200 = null;
|
|
832
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
833
|
+
result200 = BnsItemDto.fromJS(resultData200);
|
|
834
|
+
return result200;
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
else if (status !== 200 && status !== 204) {
|
|
838
|
+
return response.text().then(function (_responseText) {
|
|
839
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
return Promise.resolve(null);
|
|
843
|
+
};
|
|
844
|
+
/**
|
|
845
|
+
* @param light (optional)
|
|
846
|
+
* @param patch (optional)
|
|
847
|
+
* @return Success
|
|
848
|
+
*/
|
|
849
|
+
BnsItemApiClient.prototype.item = function (id, level, region, light, patch) {
|
|
850
|
+
var _this = this;
|
|
851
|
+
var url_ = this.baseUrl + "/BnsItem/Item?";
|
|
852
|
+
if (id === undefined || id === null)
|
|
853
|
+
throw new Error("The parameter 'id' must be defined and cannot be null.");
|
|
854
|
+
else
|
|
855
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
856
|
+
if (level === undefined || level === null)
|
|
857
|
+
throw new Error("The parameter 'level' must be defined and cannot be null.");
|
|
858
|
+
else
|
|
859
|
+
url_ += "level=" + encodeURIComponent("" + level) + "&";
|
|
860
|
+
if (region === undefined || region === null)
|
|
861
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
862
|
+
else
|
|
863
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
864
|
+
if (light === null)
|
|
865
|
+
throw new Error("The parameter 'light' cannot be null.");
|
|
866
|
+
else if (light !== undefined)
|
|
867
|
+
url_ += "light=" + encodeURIComponent("" + light) + "&";
|
|
868
|
+
if (patch === null)
|
|
869
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
870
|
+
else if (patch !== undefined)
|
|
871
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
872
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
873
|
+
var options_ = {
|
|
874
|
+
method: "GET",
|
|
875
|
+
headers: {
|
|
876
|
+
"Accept": "text/plain"
|
|
423
877
|
}
|
|
424
|
-
|
|
425
|
-
|
|
878
|
+
};
|
|
879
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
880
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
881
|
+
}).then(function (_response) {
|
|
882
|
+
return _this.processItem(_response);
|
|
883
|
+
});
|
|
884
|
+
};
|
|
885
|
+
BnsItemApiClient.prototype.processItem = function (response) {
|
|
886
|
+
var _this = this;
|
|
887
|
+
var status = response.status;
|
|
888
|
+
var _headers = {};
|
|
889
|
+
if (response.headers && response.headers.forEach) {
|
|
890
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
891
|
+
}
|
|
892
|
+
if (status === 200) {
|
|
893
|
+
return response.text().then(function (_responseText) {
|
|
894
|
+
var result200 = null;
|
|
895
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
896
|
+
result200 = BnsItemDto.fromJS(resultData200);
|
|
897
|
+
return result200;
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
else if (status !== 200 && status !== 204) {
|
|
901
|
+
return response.text().then(function (_responseText) {
|
|
902
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
return Promise.resolve(null);
|
|
906
|
+
};
|
|
907
|
+
/**
|
|
908
|
+
* @param patch (optional)
|
|
909
|
+
* @return Success
|
|
910
|
+
*/
|
|
911
|
+
BnsItemApiClient.prototype.itemsByName = function (name, region, patch) {
|
|
912
|
+
var _this = this;
|
|
913
|
+
var url_ = this.baseUrl + "/BnsItem/ItemsByName?";
|
|
914
|
+
if (name === undefined || name === null)
|
|
915
|
+
throw new Error("The parameter 'name' must be defined and cannot be null.");
|
|
916
|
+
else
|
|
917
|
+
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
918
|
+
if (region === undefined || region === null)
|
|
919
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
920
|
+
else
|
|
921
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
922
|
+
if (patch === null)
|
|
923
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
924
|
+
else if (patch !== undefined)
|
|
925
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
926
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
927
|
+
var options_ = {
|
|
928
|
+
method: "GET",
|
|
929
|
+
headers: {
|
|
930
|
+
"Accept": "text/plain"
|
|
426
931
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
return
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
932
|
+
};
|
|
933
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
934
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
935
|
+
}).then(function (_response) {
|
|
936
|
+
return _this.processItemsByName(_response);
|
|
937
|
+
});
|
|
938
|
+
};
|
|
939
|
+
BnsItemApiClient.prototype.processItemsByName = function (response) {
|
|
940
|
+
var _this = this;
|
|
941
|
+
var status = response.status;
|
|
942
|
+
var _headers = {};
|
|
943
|
+
if (response.headers && response.headers.forEach) {
|
|
944
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
945
|
+
}
|
|
946
|
+
if (status === 200) {
|
|
947
|
+
return response.text().then(function (_responseText) {
|
|
948
|
+
var result200 = null;
|
|
949
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
950
|
+
if (Array.isArray(resultData200)) {
|
|
951
|
+
result200 = [];
|
|
952
|
+
for (var _i = 0, resultData200_6 = resultData200; _i < resultData200_6.length; _i++) {
|
|
953
|
+
var item = resultData200_6[_i];
|
|
954
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
else {
|
|
958
|
+
result200 = null;
|
|
959
|
+
}
|
|
960
|
+
return result200;
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
else if (status !== 200 && status !== 204) {
|
|
964
|
+
return response.text().then(function (_responseText) {
|
|
965
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
return Promise.resolve(null);
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* @param category (optional)
|
|
972
|
+
* @param technicalJobName (optional)
|
|
973
|
+
* @param gradesString (optional)
|
|
974
|
+
* @param minGs (optional)
|
|
975
|
+
* @param patch (optional)
|
|
976
|
+
* @param noDupes (optional)
|
|
977
|
+
* @return Success
|
|
978
|
+
*/
|
|
979
|
+
BnsItemApiClient.prototype.itemsByCategory = function (region, category, technicalJobName, gradesString, minGs, patch, noDupes) {
|
|
980
|
+
var _this = this;
|
|
981
|
+
var url_ = this.baseUrl + "/BnsItem/ItemsByCategory?";
|
|
982
|
+
if (region === undefined || region === null)
|
|
983
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
984
|
+
else
|
|
985
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
986
|
+
if (category === null)
|
|
987
|
+
throw new Error("The parameter 'category' cannot be null.");
|
|
988
|
+
else if (category !== undefined)
|
|
989
|
+
url_ += "category=" + encodeURIComponent("" + category) + "&";
|
|
990
|
+
if (technicalJobName === null)
|
|
991
|
+
throw new Error("The parameter 'technicalJobName' cannot be null.");
|
|
992
|
+
else if (technicalJobName !== undefined)
|
|
993
|
+
url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
|
|
994
|
+
if (gradesString === null)
|
|
995
|
+
throw new Error("The parameter 'gradesString' cannot be null.");
|
|
996
|
+
else if (gradesString !== undefined)
|
|
997
|
+
url_ += "gradesString=" + encodeURIComponent("" + gradesString) + "&";
|
|
998
|
+
if (minGs === null)
|
|
999
|
+
throw new Error("The parameter 'minGs' cannot be null.");
|
|
1000
|
+
else if (minGs !== undefined)
|
|
1001
|
+
url_ += "minGs=" + encodeURIComponent("" + minGs) + "&";
|
|
1002
|
+
if (patch === null)
|
|
1003
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
1004
|
+
else if (patch !== undefined)
|
|
1005
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1006
|
+
if (noDupes === null)
|
|
1007
|
+
throw new Error("The parameter 'noDupes' cannot be null.");
|
|
1008
|
+
else if (noDupes !== undefined)
|
|
1009
|
+
url_ += "noDupes=" + encodeURIComponent("" + noDupes) + "&";
|
|
1010
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1011
|
+
var options_ = {
|
|
1012
|
+
method: "GET",
|
|
1013
|
+
headers: {
|
|
1014
|
+
"Accept": "text/plain"
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
1018
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
1019
|
+
}).then(function (_response) {
|
|
1020
|
+
return _this.processItemsByCategory(_response);
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
BnsItemApiClient.prototype.processItemsByCategory = function (response) {
|
|
1024
|
+
var _this = this;
|
|
1025
|
+
var status = response.status;
|
|
1026
|
+
var _headers = {};
|
|
1027
|
+
if (response.headers && response.headers.forEach) {
|
|
1028
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
1029
|
+
}
|
|
1030
|
+
if (status === 200) {
|
|
1031
|
+
return response.text().then(function (_responseText) {
|
|
1032
|
+
var result200 = null;
|
|
1033
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1034
|
+
if (Array.isArray(resultData200)) {
|
|
1035
|
+
result200 = [];
|
|
1036
|
+
for (var _i = 0, resultData200_7 = resultData200; _i < resultData200_7.length; _i++) {
|
|
1037
|
+
var item = resultData200_7[_i];
|
|
1038
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
else {
|
|
1042
|
+
result200 = null;
|
|
1043
|
+
}
|
|
1044
|
+
return result200;
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
else if (status !== 200 && status !== 204) {
|
|
1048
|
+
return response.text().then(function (_responseText) {
|
|
1049
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
return Promise.resolve(null);
|
|
1053
|
+
};
|
|
1054
|
+
/**
|
|
1055
|
+
* @param offset (optional)
|
|
1056
|
+
* @param patch (optional)
|
|
1057
|
+
* @return Success
|
|
1058
|
+
*/
|
|
1059
|
+
BnsItemApiClient.prototype.items = function (count, region, offset, patch) {
|
|
1060
|
+
var _this = this;
|
|
1061
|
+
var url_ = this.baseUrl + "/BnsItem/Items?";
|
|
1062
|
+
if (count === undefined || count === null)
|
|
1063
|
+
throw new Error("The parameter 'count' must be defined and cannot be null.");
|
|
1064
|
+
else
|
|
1065
|
+
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
1066
|
+
if (region === undefined || region === null)
|
|
1067
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
1068
|
+
else
|
|
1069
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
1070
|
+
if (offset === null)
|
|
1071
|
+
throw new Error("The parameter 'offset' cannot be null.");
|
|
1072
|
+
else if (offset !== undefined)
|
|
1073
|
+
url_ += "offset=" + encodeURIComponent("" + offset) + "&";
|
|
1074
|
+
if (patch === null)
|
|
1075
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
1076
|
+
else if (patch !== undefined)
|
|
1077
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1078
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1079
|
+
var options_ = {
|
|
1080
|
+
method: "GET",
|
|
1081
|
+
headers: {
|
|
1082
|
+
"Accept": "text/plain"
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
1086
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
1087
|
+
}).then(function (_response) {
|
|
1088
|
+
return _this.processItems(_response);
|
|
1089
|
+
});
|
|
1090
|
+
};
|
|
1091
|
+
BnsItemApiClient.prototype.processItems = function (response) {
|
|
1092
|
+
var _this = this;
|
|
1093
|
+
var status = response.status;
|
|
1094
|
+
var _headers = {};
|
|
1095
|
+
if (response.headers && response.headers.forEach) {
|
|
1096
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
1097
|
+
}
|
|
1098
|
+
if (status === 200) {
|
|
1099
|
+
return response.text().then(function (_responseText) {
|
|
1100
|
+
var result200 = null;
|
|
1101
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1102
|
+
if (Array.isArray(resultData200)) {
|
|
1103
|
+
result200 = [];
|
|
1104
|
+
for (var _i = 0, resultData200_8 = resultData200; _i < resultData200_8.length; _i++) {
|
|
1105
|
+
var item = resultData200_8[_i];
|
|
1106
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
else {
|
|
1110
|
+
result200 = null;
|
|
1111
|
+
}
|
|
1112
|
+
return result200;
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
else if (status !== 200 && status !== 204) {
|
|
1116
|
+
return response.text().then(function (_responseText) {
|
|
1117
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
return Promise.resolve(null);
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* @param light (optional)
|
|
1124
|
+
* @param patch (optional)
|
|
1125
|
+
* @return Success
|
|
1126
|
+
*/
|
|
1127
|
+
BnsItemApiClient.prototype.itemsByIds = function (idsAndLevels, region, light, patch) {
|
|
1128
|
+
var _this = this;
|
|
1129
|
+
var url_ = this.baseUrl + "/BnsItem/ItemsByIds?";
|
|
1130
|
+
if (idsAndLevels === undefined || idsAndLevels === null)
|
|
1131
|
+
throw new Error("The parameter 'idsAndLevels' must be defined and cannot be null.");
|
|
1132
|
+
else
|
|
1133
|
+
idsAndLevels && idsAndLevels.forEach(function (item, index) {
|
|
1134
|
+
for (var attr in item)
|
|
1135
|
+
if (item.hasOwnProperty(attr)) {
|
|
1136
|
+
url_ += "idsAndLevels[" + index + "]." + attr + "=" + encodeURIComponent("" + item[attr]) + "&";
|
|
1137
|
+
}
|
|
1138
|
+
});
|
|
1139
|
+
if (region === undefined || region === null)
|
|
1140
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
1141
|
+
else
|
|
1142
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
1143
|
+
if (light === null)
|
|
1144
|
+
throw new Error("The parameter 'light' cannot be null.");
|
|
1145
|
+
else if (light !== undefined)
|
|
1146
|
+
url_ += "light=" + encodeURIComponent("" + light) + "&";
|
|
1147
|
+
if (patch === null)
|
|
1148
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
1149
|
+
else if (patch !== undefined)
|
|
1150
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1151
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1152
|
+
var options_ = {
|
|
1153
|
+
method: "GET",
|
|
1154
|
+
headers: {
|
|
1155
|
+
"Accept": "text/plain"
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
1159
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
1160
|
+
}).then(function (_response) {
|
|
1161
|
+
return _this.processItemsByIds(_response);
|
|
1162
|
+
});
|
|
1163
|
+
};
|
|
1164
|
+
BnsItemApiClient.prototype.processItemsByIds = function (response) {
|
|
1165
|
+
var _this = this;
|
|
1166
|
+
var status = response.status;
|
|
1167
|
+
var _headers = {};
|
|
1168
|
+
if (response.headers && response.headers.forEach) {
|
|
1169
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
1170
|
+
}
|
|
1171
|
+
if (status === 200) {
|
|
1172
|
+
return response.text().then(function (_responseText) {
|
|
1173
|
+
var result200 = null;
|
|
1174
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1175
|
+
if (Array.isArray(resultData200)) {
|
|
1176
|
+
result200 = [];
|
|
1177
|
+
for (var _i = 0, resultData200_9 = resultData200; _i < resultData200_9.length; _i++) {
|
|
1178
|
+
var item = resultData200_9[_i];
|
|
1179
|
+
result200.push(BnsItemDto.fromJS(item));
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
else {
|
|
1183
|
+
result200 = null;
|
|
1184
|
+
}
|
|
1185
|
+
return result200;
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
else if (status !== 200 && status !== 204) {
|
|
1189
|
+
return response.text().then(function (_responseText) {
|
|
1190
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
return Promise.resolve(null);
|
|
1194
|
+
};
|
|
1195
|
+
return BnsItemApiClient;
|
|
1196
|
+
}(BnsItemApiClientBase));
|
|
1197
|
+
var BnsItemDto = /** @class */ (function () {
|
|
1198
|
+
function BnsItemDto(data) {
|
|
1199
|
+
if (data) {
|
|
1200
|
+
for (var property in data) {
|
|
1201
|
+
if (data.hasOwnProperty(property))
|
|
1202
|
+
this[property] = data[property];
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
BnsItemDto.prototype.init = function (_data) {
|
|
1207
|
+
if (_data) {
|
|
1208
|
+
this.id = _data["id"];
|
|
1209
|
+
this.level = _data["level"];
|
|
1210
|
+
this.gearScore = _data["gearScore"];
|
|
1211
|
+
this.itemScore = _data["itemScore"];
|
|
1212
|
+
this.fusionScore = _data["fusionScore"];
|
|
1213
|
+
this.name = _data["name"];
|
|
1214
|
+
if (Array.isArray(_data["categories"])) {
|
|
1215
|
+
this.categories = [];
|
|
1216
|
+
for (var _i = 0, _a = _data["categories"]; _i < _a.length; _i++) {
|
|
1217
|
+
var item = _a[_i];
|
|
1218
|
+
this.categories.push(ItemCategoryDto.fromJS(item));
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
this.icon = _data["icon"] ? ItemIconDto.fromJS(_data["icon"]) : undefined;
|
|
1222
|
+
this.grade = _data["grade"];
|
|
1223
|
+
if (Array.isArray(_data["classRequired"])) {
|
|
1224
|
+
this.classRequired = [];
|
|
1225
|
+
for (var _b = 0, _c = _data["classRequired"]; _b < _c.length; _b++) {
|
|
1226
|
+
var item = _c[_b];
|
|
1227
|
+
this.classRequired.push(RequiredClassDto.fromJS(item));
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
if (Array.isArray(_data["stats"])) {
|
|
1231
|
+
this.stats = [];
|
|
1232
|
+
for (var _d = 0, _e = _data["stats"]; _d < _e.length; _d++) {
|
|
1233
|
+
var item = _e[_d];
|
|
1234
|
+
this.stats.push(ItemStatDto.fromJS(item));
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
this.randomSubStatCount = _data["randomSubStatCount"];
|
|
1238
|
+
if (Array.isArray(_data["randomStats"])) {
|
|
1239
|
+
this.randomStats = [];
|
|
1240
|
+
for (var _f = 0, _g = _data["randomStats"]; _f < _g.length; _f++) {
|
|
1241
|
+
var item = _g[_f];
|
|
1242
|
+
this.randomStats.push(ItemRandomStatDto.fromJS(item));
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
this.mainInfo = _data["mainInfo"];
|
|
1246
|
+
this.subInfo = _data["subInfo"];
|
|
1247
|
+
this.cooldownInMs = _data["cooldownInMs"];
|
|
1248
|
+
this.bgCooldownInMs = _data["bgCooldownInMs"];
|
|
1249
|
+
if (Array.isArray(_data["skillModifierGroups"])) {
|
|
1250
|
+
this.skillModifierGroups = [];
|
|
1251
|
+
for (var _h = 0, _j = _data["skillModifierGroups"]; _h < _j.length; _h++) {
|
|
1252
|
+
var item = _j[_h];
|
|
1253
|
+
this.skillModifierGroups.push(SkillModifierGroupDto.fromJS(item));
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
this.itemImprove = _data["itemImprove"] ? ItemImproveDto.fromJS(_data["itemImprove"]) : undefined;
|
|
1257
|
+
if (Array.isArray(_data["skills"])) {
|
|
1258
|
+
this.skills = [];
|
|
1259
|
+
for (var _k = 0, _l = _data["skills"]; _k < _l.length; _k++) {
|
|
1260
|
+
var item = _l[_k];
|
|
1261
|
+
this.skills.push(ItemSkillDto.fromJS(item));
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
this.topText = _data["topText"];
|
|
1265
|
+
this.setBonus = _data["setBonus"] ? ItemSetBonusDto.fromJS(_data["setBonus"]) : undefined;
|
|
1266
|
+
if (Array.isArray(_data["descriptions"])) {
|
|
1267
|
+
this.descriptions = [];
|
|
1268
|
+
for (var _m = 0, _o = _data["descriptions"]; _m < _o.length; _m++) {
|
|
1269
|
+
var item = _o[_m];
|
|
1270
|
+
this.descriptions.push(ItemDescriptionDto.fromJS(item));
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
if (Array.isArray(_data["decomposeRewards"])) {
|
|
1274
|
+
this.decomposeRewards = [];
|
|
1275
|
+
for (var _p = 0, _q = _data["decomposeRewards"]; _p < _q.length; _p++) {
|
|
1276
|
+
var item = _q[_p];
|
|
1277
|
+
this.decomposeRewards.push(DecomposeRewardDto.fromJS(item));
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
this.flavorText = _data["flavorText"];
|
|
1281
|
+
this.usableGroup = _data["usableGroup"];
|
|
1282
|
+
this.levelRequired = _data["levelRequired"];
|
|
1283
|
+
this.boundToAccount = _data["boundToAccount"];
|
|
1284
|
+
this.unableToTrade = _data["unableToTrade"];
|
|
1285
|
+
this.sealing = _data["sealing"] ? ItemSealingDto.fromJS(_data["sealing"]) : undefined;
|
|
1286
|
+
this.accountTransfer = _data["accountTransfer"] ? ItemAccountTransferDto.fromJS(_data["accountTransfer"]) : undefined;
|
|
1287
|
+
this.upgradeInfo = _data["upgradeInfo"] ? ItemUpgradeInfoDto.fromJS(_data["upgradeInfo"]) : undefined;
|
|
1288
|
+
if (Array.isArray(_data["itemTransforms"])) {
|
|
1289
|
+
this.itemTransforms = [];
|
|
1290
|
+
for (var _r = 0, _s = _data["itemTransforms"]; _r < _s.length; _r++) {
|
|
1291
|
+
var item = _s[_r];
|
|
1292
|
+
this.itemTransforms.push(ItemTransformDto.fromJS(item));
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
this.setPoints = _data["setPoints"];
|
|
1296
|
+
this.refinementPoints = _data["refinementPoints"];
|
|
1297
|
+
if (Array.isArray(_data["slateStones"])) {
|
|
1298
|
+
this.slateStones = [];
|
|
1299
|
+
for (var _t = 0, _u = _data["slateStones"]; _t < _u.length; _t++) {
|
|
1300
|
+
var item = _u[_t];
|
|
1301
|
+
this.slateStones.push(SlateStoneDto.fromJS(item));
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
BnsItemDto.fromJS = function (data) {
|
|
1307
|
+
data = typeof data === 'object' ? data : {};
|
|
1308
|
+
var result = new BnsItemDto();
|
|
1309
|
+
result.init(data);
|
|
1310
|
+
return result;
|
|
1311
|
+
};
|
|
1312
|
+
BnsItemDto.prototype.toJSON = function (data) {
|
|
1313
|
+
data = typeof data === 'object' ? data : {};
|
|
1314
|
+
data["id"] = this.id;
|
|
1315
|
+
data["level"] = this.level;
|
|
1316
|
+
data["gearScore"] = this.gearScore;
|
|
1317
|
+
data["itemScore"] = this.itemScore;
|
|
1318
|
+
data["fusionScore"] = this.fusionScore;
|
|
1319
|
+
data["name"] = this.name;
|
|
1320
|
+
if (Array.isArray(this.categories)) {
|
|
1321
|
+
data["categories"] = [];
|
|
1322
|
+
for (var _i = 0, _a = this.categories; _i < _a.length; _i++) {
|
|
1323
|
+
var item = _a[_i];
|
|
1324
|
+
data["categories"].push(item.toJSON());
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
data["icon"] = this.icon ? this.icon.toJSON() : undefined;
|
|
1328
|
+
data["grade"] = this.grade;
|
|
1329
|
+
if (Array.isArray(this.classRequired)) {
|
|
1330
|
+
data["classRequired"] = [];
|
|
1331
|
+
for (var _b = 0, _c = this.classRequired; _b < _c.length; _b++) {
|
|
1332
|
+
var item = _c[_b];
|
|
1333
|
+
data["classRequired"].push(item.toJSON());
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
if (Array.isArray(this.stats)) {
|
|
1337
|
+
data["stats"] = [];
|
|
1338
|
+
for (var _d = 0, _e = this.stats; _d < _e.length; _d++) {
|
|
1339
|
+
var item = _e[_d];
|
|
1340
|
+
data["stats"].push(item.toJSON());
|
|
454
1341
|
}
|
|
455
|
-
|
|
456
|
-
|
|
1342
|
+
}
|
|
1343
|
+
data["randomSubStatCount"] = this.randomSubStatCount;
|
|
1344
|
+
if (Array.isArray(this.randomStats)) {
|
|
1345
|
+
data["randomStats"] = [];
|
|
1346
|
+
for (var _f = 0, _g = this.randomStats; _f < _g.length; _f++) {
|
|
1347
|
+
var item = _g[_f];
|
|
1348
|
+
data["randomStats"].push(item.toJSON());
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
data["mainInfo"] = this.mainInfo;
|
|
1352
|
+
data["subInfo"] = this.subInfo;
|
|
1353
|
+
data["cooldownInMs"] = this.cooldownInMs;
|
|
1354
|
+
data["bgCooldownInMs"] = this.bgCooldownInMs;
|
|
1355
|
+
if (Array.isArray(this.skillModifierGroups)) {
|
|
1356
|
+
data["skillModifierGroups"] = [];
|
|
1357
|
+
for (var _h = 0, _j = this.skillModifierGroups; _h < _j.length; _h++) {
|
|
1358
|
+
var item = _j[_h];
|
|
1359
|
+
data["skillModifierGroups"].push(item.toJSON());
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
data["itemImprove"] = this.itemImprove ? this.itemImprove.toJSON() : undefined;
|
|
1363
|
+
if (Array.isArray(this.skills)) {
|
|
1364
|
+
data["skills"] = [];
|
|
1365
|
+
for (var _k = 0, _l = this.skills; _k < _l.length; _k++) {
|
|
1366
|
+
var item = _l[_k];
|
|
1367
|
+
data["skills"].push(item.toJSON());
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
data["topText"] = this.topText;
|
|
1371
|
+
data["setBonus"] = this.setBonus ? this.setBonus.toJSON() : undefined;
|
|
1372
|
+
if (Array.isArray(this.descriptions)) {
|
|
1373
|
+
data["descriptions"] = [];
|
|
1374
|
+
for (var _m = 0, _o = this.descriptions; _m < _o.length; _m++) {
|
|
1375
|
+
var item = _o[_m];
|
|
1376
|
+
data["descriptions"].push(item.toJSON());
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
if (Array.isArray(this.decomposeRewards)) {
|
|
1380
|
+
data["decomposeRewards"] = [];
|
|
1381
|
+
for (var _p = 0, _q = this.decomposeRewards; _p < _q.length; _p++) {
|
|
1382
|
+
var item = _q[_p];
|
|
1383
|
+
data["decomposeRewards"].push(item.toJSON());
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
data["flavorText"] = this.flavorText;
|
|
1387
|
+
data["usableGroup"] = this.usableGroup;
|
|
1388
|
+
data["levelRequired"] = this.levelRequired;
|
|
1389
|
+
data["boundToAccount"] = this.boundToAccount;
|
|
1390
|
+
data["unableToTrade"] = this.unableToTrade;
|
|
1391
|
+
data["sealing"] = this.sealing ? this.sealing.toJSON() : undefined;
|
|
1392
|
+
data["accountTransfer"] = this.accountTransfer ? this.accountTransfer.toJSON() : undefined;
|
|
1393
|
+
data["upgradeInfo"] = this.upgradeInfo ? this.upgradeInfo.toJSON() : undefined;
|
|
1394
|
+
if (Array.isArray(this.itemTransforms)) {
|
|
1395
|
+
data["itemTransforms"] = [];
|
|
1396
|
+
for (var _r = 0, _s = this.itemTransforms; _r < _s.length; _r++) {
|
|
1397
|
+
var item = _s[_r];
|
|
1398
|
+
data["itemTransforms"].push(item.toJSON());
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
data["setPoints"] = this.setPoints;
|
|
1402
|
+
data["refinementPoints"] = this.refinementPoints;
|
|
1403
|
+
if (Array.isArray(this.slateStones)) {
|
|
1404
|
+
data["slateStones"] = [];
|
|
1405
|
+
for (var _t = 0, _u = this.slateStones; _t < _u.length; _t++) {
|
|
1406
|
+
var item = _u[_t];
|
|
1407
|
+
data["slateStones"].push(item.toJSON());
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
return data;
|
|
1411
|
+
};
|
|
1412
|
+
return BnsItemDto;
|
|
1413
|
+
}());
|
|
1414
|
+
var DecomposeRewardDto = /** @class */ (function () {
|
|
1415
|
+
function DecomposeRewardDto(data) {
|
|
1416
|
+
if (data) {
|
|
1417
|
+
for (var property in data) {
|
|
1418
|
+
if (data.hasOwnProperty(property))
|
|
1419
|
+
this[property] = data[property];
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
DecomposeRewardDto.prototype.init = function (_data) {
|
|
1424
|
+
if (_data) {
|
|
1425
|
+
if (Array.isArray(_data["fixedItems"])) {
|
|
1426
|
+
this.fixedItems = [];
|
|
1427
|
+
for (var _i = 0, _a = _data["fixedItems"]; _i < _a.length; _i++) {
|
|
1428
|
+
var item = _a[_i];
|
|
1429
|
+
this.fixedItems.push(ItemRefWithCount.fromJS(item));
|
|
1430
|
+
}
|
|
457
1431
|
}
|
|
458
|
-
if (
|
|
459
|
-
|
|
1432
|
+
if (Array.isArray(_data["randomItems"])) {
|
|
1433
|
+
this.randomItems = [];
|
|
1434
|
+
for (var _b = 0, _c = _data["randomItems"]; _b < _c.length; _b++) {
|
|
1435
|
+
var item = _c[_b];
|
|
1436
|
+
this.randomItems.push(ItemRefWithCount.fromJS(item));
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
if (Array.isArray(_data["selectItems"])) {
|
|
1440
|
+
this.selectItems = [];
|
|
1441
|
+
for (var _d = 0, _e = _data["selectItems"]; _d < _e.length; _d++) {
|
|
1442
|
+
var item = _e[_d];
|
|
1443
|
+
this.selectItems.push(ItemRefWithCount.fromJS(item));
|
|
1444
|
+
}
|
|
460
1445
|
}
|
|
461
|
-
|
|
462
|
-
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
DecomposeRewardDto.fromJS = function (data) {
|
|
1449
|
+
data = typeof data === 'object' ? data : {};
|
|
1450
|
+
var result = new DecomposeRewardDto();
|
|
1451
|
+
result.init(data);
|
|
1452
|
+
return result;
|
|
1453
|
+
};
|
|
1454
|
+
DecomposeRewardDto.prototype.toJSON = function (data) {
|
|
1455
|
+
data = typeof data === 'object' ? data : {};
|
|
1456
|
+
if (Array.isArray(this.fixedItems)) {
|
|
1457
|
+
data["fixedItems"] = [];
|
|
1458
|
+
for (var _i = 0, _a = this.fixedItems; _i < _a.length; _i++) {
|
|
1459
|
+
var item = _a[_i];
|
|
1460
|
+
data["fixedItems"].push(item.toJSON());
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if (Array.isArray(this.randomItems)) {
|
|
1464
|
+
data["randomItems"] = [];
|
|
1465
|
+
for (var _b = 0, _c = this.randomItems; _b < _c.length; _b++) {
|
|
1466
|
+
var item = _c[_b];
|
|
1467
|
+
data["randomItems"].push(item.toJSON());
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
if (Array.isArray(this.selectItems)) {
|
|
1471
|
+
data["selectItems"] = [];
|
|
1472
|
+
for (var _d = 0, _e = this.selectItems; _d < _e.length; _d++) {
|
|
1473
|
+
var item = _e[_d];
|
|
1474
|
+
data["selectItems"].push(item.toJSON());
|
|
463
1475
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
1476
|
+
}
|
|
1477
|
+
return data;
|
|
1478
|
+
};
|
|
1479
|
+
return DecomposeRewardDto;
|
|
1480
|
+
}());
|
|
1481
|
+
var EffectDto = /** @class */ (function () {
|
|
1482
|
+
function EffectDto(data) {
|
|
1483
|
+
if (data) {
|
|
1484
|
+
for (var property in data) {
|
|
1485
|
+
if (data.hasOwnProperty(property))
|
|
1486
|
+
this[property] = data[property];
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
EffectDto.prototype.init = function (_data) {
|
|
1491
|
+
if (_data) {
|
|
1492
|
+
this.description = _data["description"];
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
EffectDto.fromJS = function (data) {
|
|
1496
|
+
data = typeof data === 'object' ? data : {};
|
|
1497
|
+
var result = new EffectDto();
|
|
1498
|
+
result.init(data);
|
|
1499
|
+
return result;
|
|
1500
|
+
};
|
|
1501
|
+
EffectDto.prototype.toJSON = function (data) {
|
|
1502
|
+
data = typeof data === 'object' ? data : {};
|
|
1503
|
+
data["description"] = this.description;
|
|
1504
|
+
return data;
|
|
1505
|
+
};
|
|
1506
|
+
return EffectDto;
|
|
1507
|
+
}());
|
|
1508
|
+
var Int32StringTuple = /** @class */ (function () {
|
|
1509
|
+
function Int32StringTuple(data) {
|
|
1510
|
+
if (data) {
|
|
1511
|
+
for (var property in data) {
|
|
1512
|
+
if (data.hasOwnProperty(property))
|
|
1513
|
+
this[property] = data[property];
|
|
487
1514
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
Int32StringTuple.prototype.init = function (_data) {
|
|
1518
|
+
if (_data) {
|
|
1519
|
+
this.item1 = _data["item1"];
|
|
1520
|
+
this.item2 = _data["item2"];
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
Int32StringTuple.fromJS = function (data) {
|
|
1524
|
+
data = typeof data === 'object' ? data : {};
|
|
1525
|
+
var result = new Int32StringTuple();
|
|
1526
|
+
result.init(data);
|
|
1527
|
+
return result;
|
|
1528
|
+
};
|
|
1529
|
+
Int32StringTuple.prototype.toJSON = function (data) {
|
|
1530
|
+
data = typeof data === 'object' ? data : {};
|
|
1531
|
+
data["item1"] = this.item1;
|
|
1532
|
+
data["item2"] = this.item2;
|
|
1533
|
+
return data;
|
|
1534
|
+
};
|
|
1535
|
+
return Int32StringTuple;
|
|
1536
|
+
}());
|
|
1537
|
+
var ItemAccountTransferDto = /** @class */ (function () {
|
|
1538
|
+
function ItemAccountTransferDto(data) {
|
|
1539
|
+
if (data) {
|
|
1540
|
+
for (var property in data) {
|
|
1541
|
+
if (data.hasOwnProperty(property))
|
|
1542
|
+
this[property] = data[property];
|
|
491
1543
|
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
ItemAccountTransferDto.prototype.init = function (_data) {
|
|
1547
|
+
if (_data) {
|
|
1548
|
+
if (Array.isArray(_data["requiredItems"])) {
|
|
1549
|
+
this.requiredItems = [];
|
|
1550
|
+
for (var _i = 0, _a = _data["requiredItems"]; _i < _a.length; _i++) {
|
|
1551
|
+
var item = _a[_i];
|
|
1552
|
+
this.requiredItems.push(ItemRefWithCount.fromJS(item));
|
|
1553
|
+
}
|
|
499
1554
|
}
|
|
500
|
-
|
|
501
|
-
|
|
1555
|
+
this.moneyCost = _data["moneyCost"];
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
ItemAccountTransferDto.fromJS = function (data) {
|
|
1559
|
+
data = typeof data === 'object' ? data : {};
|
|
1560
|
+
var result = new ItemAccountTransferDto();
|
|
1561
|
+
result.init(data);
|
|
1562
|
+
return result;
|
|
1563
|
+
};
|
|
1564
|
+
ItemAccountTransferDto.prototype.toJSON = function (data) {
|
|
1565
|
+
data = typeof data === 'object' ? data : {};
|
|
1566
|
+
if (Array.isArray(this.requiredItems)) {
|
|
1567
|
+
data["requiredItems"] = [];
|
|
1568
|
+
for (var _i = 0, _a = this.requiredItems; _i < _a.length; _i++) {
|
|
1569
|
+
var item = _a[_i];
|
|
1570
|
+
data["requiredItems"].push(item.toJSON());
|
|
502
1571
|
}
|
|
503
|
-
|
|
504
|
-
|
|
1572
|
+
}
|
|
1573
|
+
data["moneyCost"] = this.moneyCost;
|
|
1574
|
+
return data;
|
|
1575
|
+
};
|
|
1576
|
+
return ItemAccountTransferDto;
|
|
1577
|
+
}());
|
|
1578
|
+
var ItemCategoryDto = /** @class */ (function () {
|
|
1579
|
+
function ItemCategoryDto(data) {
|
|
1580
|
+
if (data) {
|
|
1581
|
+
for (var property in data) {
|
|
1582
|
+
if (data.hasOwnProperty(property))
|
|
1583
|
+
this[property] = data[property];
|
|
505
1584
|
}
|
|
506
|
-
|
|
507
|
-
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
ItemCategoryDto.prototype.init = function (_data) {
|
|
1588
|
+
if (_data) {
|
|
1589
|
+
this.technicalName = _data["technicalName"];
|
|
1590
|
+
this.localizedName = _data["localizedName"];
|
|
1591
|
+
this.index = _data["index"];
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
ItemCategoryDto.fromJS = function (data) {
|
|
1595
|
+
data = typeof data === 'object' ? data : {};
|
|
1596
|
+
var result = new ItemCategoryDto();
|
|
1597
|
+
result.init(data);
|
|
1598
|
+
return result;
|
|
1599
|
+
};
|
|
1600
|
+
ItemCategoryDto.prototype.toJSON = function (data) {
|
|
1601
|
+
data = typeof data === 'object' ? data : {};
|
|
1602
|
+
data["technicalName"] = this.technicalName;
|
|
1603
|
+
data["localizedName"] = this.localizedName;
|
|
1604
|
+
data["index"] = this.index;
|
|
1605
|
+
return data;
|
|
1606
|
+
};
|
|
1607
|
+
return ItemCategoryDto;
|
|
1608
|
+
}());
|
|
1609
|
+
var ItemDescriptionDto = /** @class */ (function () {
|
|
1610
|
+
function ItemDescriptionDto(data) {
|
|
1611
|
+
if (data) {
|
|
1612
|
+
for (var property in data) {
|
|
1613
|
+
if (data.hasOwnProperty(property))
|
|
1614
|
+
this[property] = data[property];
|
|
508
1615
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
ItemDescriptionDto.prototype.init = function (_data) {
|
|
1619
|
+
if (_data) {
|
|
1620
|
+
this.title = _data["title"];
|
|
1621
|
+
this.text = _data["text"];
|
|
1622
|
+
}
|
|
1623
|
+
};
|
|
1624
|
+
ItemDescriptionDto.fromJS = function (data) {
|
|
1625
|
+
data = typeof data === 'object' ? data : {};
|
|
1626
|
+
var result = new ItemDescriptionDto();
|
|
1627
|
+
result.init(data);
|
|
1628
|
+
return result;
|
|
1629
|
+
};
|
|
1630
|
+
ItemDescriptionDto.prototype.toJSON = function (data) {
|
|
1631
|
+
data = typeof data === 'object' ? data : {};
|
|
1632
|
+
data["title"] = this.title;
|
|
1633
|
+
data["text"] = this.text;
|
|
1634
|
+
return data;
|
|
1635
|
+
};
|
|
1636
|
+
return ItemDescriptionDto;
|
|
1637
|
+
}());
|
|
1638
|
+
var ItemIconDto = /** @class */ (function () {
|
|
1639
|
+
function ItemIconDto(data) {
|
|
1640
|
+
if (data) {
|
|
1641
|
+
for (var property in data) {
|
|
1642
|
+
if (data.hasOwnProperty(property))
|
|
1643
|
+
this[property] = data[property];
|
|
533
1644
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
ItemIconDto.prototype.init = function (_data) {
|
|
1648
|
+
if (_data) {
|
|
1649
|
+
this.iconPath = _data["iconPath"];
|
|
1650
|
+
this.iconIndex = _data["iconIndex"];
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
ItemIconDto.fromJS = function (data) {
|
|
1654
|
+
data = typeof data === 'object' ? data : {};
|
|
1655
|
+
var result = new ItemIconDto();
|
|
1656
|
+
result.init(data);
|
|
1657
|
+
return result;
|
|
1658
|
+
};
|
|
1659
|
+
ItemIconDto.prototype.toJSON = function (data) {
|
|
1660
|
+
data = typeof data === 'object' ? data : {};
|
|
1661
|
+
data["iconPath"] = this.iconPath;
|
|
1662
|
+
data["iconIndex"] = this.iconIndex;
|
|
1663
|
+
return data;
|
|
1664
|
+
};
|
|
1665
|
+
return ItemIconDto;
|
|
1666
|
+
}());
|
|
1667
|
+
var ItemImproveCostOptionDto = /** @class */ (function () {
|
|
1668
|
+
function ItemImproveCostOptionDto(data) {
|
|
1669
|
+
if (data) {
|
|
1670
|
+
for (var property in data) {
|
|
1671
|
+
if (data.hasOwnProperty(property))
|
|
1672
|
+
this[property] = data[property];
|
|
537
1673
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
ItemImproveCostOptionDto.prototype.init = function (_data) {
|
|
1677
|
+
if (_data) {
|
|
1678
|
+
this.moneyCost = _data["moneyCost"];
|
|
1679
|
+
this.mainItemCost = _data["mainItemCost"] ? ItemRefWithCount.fromJS(_data["mainItemCost"]) : undefined;
|
|
1680
|
+
if (Array.isArray(_data["subItemCost"])) {
|
|
1681
|
+
this.subItemCost = [];
|
|
1682
|
+
for (var _i = 0, _a = _data["subItemCost"]; _i < _a.length; _i++) {
|
|
1683
|
+
var item = _a[_i];
|
|
1684
|
+
this.subItemCost.push(ItemRefWithCount.fromJS(item));
|
|
1685
|
+
}
|
|
541
1686
|
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
1687
|
+
this.isRandom = _data["isRandom"];
|
|
1688
|
+
}
|
|
1689
|
+
};
|
|
1690
|
+
ItemImproveCostOptionDto.fromJS = function (data) {
|
|
1691
|
+
data = typeof data === 'object' ? data : {};
|
|
1692
|
+
var result = new ItemImproveCostOptionDto();
|
|
1693
|
+
result.init(data);
|
|
1694
|
+
return result;
|
|
1695
|
+
};
|
|
1696
|
+
ItemImproveCostOptionDto.prototype.toJSON = function (data) {
|
|
1697
|
+
data = typeof data === 'object' ? data : {};
|
|
1698
|
+
data["moneyCost"] = this.moneyCost;
|
|
1699
|
+
data["mainItemCost"] = this.mainItemCost ? this.mainItemCost.toJSON() : undefined;
|
|
1700
|
+
if (Array.isArray(this.subItemCost)) {
|
|
1701
|
+
data["subItemCost"] = [];
|
|
1702
|
+
for (var _i = 0, _a = this.subItemCost; _i < _a.length; _i++) {
|
|
1703
|
+
var item = _a[_i];
|
|
1704
|
+
data["subItemCost"].push(item.toJSON());
|
|
549
1705
|
}
|
|
550
|
-
|
|
551
|
-
|
|
1706
|
+
}
|
|
1707
|
+
data["isRandom"] = this.isRandom;
|
|
1708
|
+
return data;
|
|
1709
|
+
};
|
|
1710
|
+
return ItemImproveCostOptionDto;
|
|
1711
|
+
}());
|
|
1712
|
+
var ItemImproveDto = /** @class */ (function () {
|
|
1713
|
+
function ItemImproveDto(data) {
|
|
1714
|
+
if (data) {
|
|
1715
|
+
for (var property in data) {
|
|
1716
|
+
if (data.hasOwnProperty(property))
|
|
1717
|
+
this[property] = data[property];
|
|
552
1718
|
}
|
|
553
|
-
|
|
554
|
-
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
ItemImproveDto.prototype.init = function (_data) {
|
|
1722
|
+
if (_data) {
|
|
1723
|
+
if (Array.isArray(_data["upgradeOptions"])) {
|
|
1724
|
+
this.upgradeOptions = [];
|
|
1725
|
+
for (var _i = 0, _a = _data["upgradeOptions"]; _i < _a.length; _i++) {
|
|
1726
|
+
var item = _a[_i];
|
|
1727
|
+
this.upgradeOptions.push(ItemImproveCostOptionDto.fromJS(item));
|
|
1728
|
+
}
|
|
555
1729
|
}
|
|
556
|
-
|
|
557
|
-
|
|
1730
|
+
this.itemNext = _data["itemNext"] ? ItemRefWithCount.fromJS(_data["itemNext"]) : undefined;
|
|
1731
|
+
this.itemPrev = _data["itemPrev"] ? ItemRefWithCount.fromJS(_data["itemPrev"]) : undefined;
|
|
1732
|
+
this.fixedAllOptions = _data["fixedAllOptions"];
|
|
1733
|
+
this.useMileageSave = _data["useMileageSave"];
|
|
1734
|
+
if (Array.isArray(_data["bonusEffectOptions"])) {
|
|
1735
|
+
this.bonusEffectOptions = [];
|
|
1736
|
+
for (var _b = 0, _c = _data["bonusEffectOptions"]; _b < _c.length; _b++) {
|
|
1737
|
+
var item = _c[_b];
|
|
1738
|
+
this.bonusEffectOptions.push(ItemImproveEffectOptionDto.fromJS(item));
|
|
1739
|
+
}
|
|
558
1740
|
}
|
|
559
|
-
|
|
560
|
-
|
|
1741
|
+
}
|
|
1742
|
+
};
|
|
1743
|
+
ItemImproveDto.fromJS = function (data) {
|
|
1744
|
+
data = typeof data === 'object' ? data : {};
|
|
1745
|
+
var result = new ItemImproveDto();
|
|
1746
|
+
result.init(data);
|
|
1747
|
+
return result;
|
|
1748
|
+
};
|
|
1749
|
+
ItemImproveDto.prototype.toJSON = function (data) {
|
|
1750
|
+
data = typeof data === 'object' ? data : {};
|
|
1751
|
+
if (Array.isArray(this.upgradeOptions)) {
|
|
1752
|
+
data["upgradeOptions"] = [];
|
|
1753
|
+
for (var _i = 0, _a = this.upgradeOptions; _i < _a.length; _i++) {
|
|
1754
|
+
var item = _a[_i];
|
|
1755
|
+
data["upgradeOptions"].push(item.toJSON());
|
|
561
1756
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
*
|
|
573
|
-
* @param {string} region
|
|
574
|
-
* @param {string} [category]
|
|
575
|
-
* @param {string} [technicalJobName]
|
|
576
|
-
* @param {string} [gradesString]
|
|
577
|
-
* @param {string} [minGs]
|
|
578
|
-
* @param {string} [patch]
|
|
579
|
-
* @param {boolean} [noDupes]
|
|
580
|
-
* @param {*} [options] Override http request option.
|
|
581
|
-
* @throws {RequiredError}
|
|
582
|
-
*/
|
|
583
|
-
bnsItemItemsByCategoryGet: function (region, category, technicalJobName, gradesString, minGs, patch, noDupes, options) {
|
|
584
|
-
if (options === void 0) { options = {}; }
|
|
585
|
-
// verify required parameter 'region' is not null or undefined
|
|
586
|
-
if (region === null || region === undefined) {
|
|
587
|
-
throw new RequiredError('region', 'Required parameter region was null or undefined when calling bnsItemItemsByCategoryGet.');
|
|
1757
|
+
}
|
|
1758
|
+
data["itemNext"] = this.itemNext ? this.itemNext.toJSON() : undefined;
|
|
1759
|
+
data["itemPrev"] = this.itemPrev ? this.itemPrev.toJSON() : undefined;
|
|
1760
|
+
data["fixedAllOptions"] = this.fixedAllOptions;
|
|
1761
|
+
data["useMileageSave"] = this.useMileageSave;
|
|
1762
|
+
if (Array.isArray(this.bonusEffectOptions)) {
|
|
1763
|
+
data["bonusEffectOptions"] = [];
|
|
1764
|
+
for (var _b = 0, _c = this.bonusEffectOptions; _b < _c.length; _b++) {
|
|
1765
|
+
var item = _c[_b];
|
|
1766
|
+
data["bonusEffectOptions"].push(item.toJSON());
|
|
588
1767
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
1768
|
+
}
|
|
1769
|
+
return data;
|
|
1770
|
+
};
|
|
1771
|
+
return ItemImproveDto;
|
|
1772
|
+
}());
|
|
1773
|
+
var ItemImproveEffectOptionDto = /** @class */ (function () {
|
|
1774
|
+
function ItemImproveEffectOptionDto(data) {
|
|
1775
|
+
if (data) {
|
|
1776
|
+
for (var property in data) {
|
|
1777
|
+
if (data.hasOwnProperty(property))
|
|
1778
|
+
this[property] = data[property];
|
|
596
1779
|
}
|
|
597
|
-
|
|
598
|
-
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
ItemImproveEffectOptionDto.prototype.init = function (_data) {
|
|
1783
|
+
if (_data) {
|
|
1784
|
+
this.statName = _data["statName"];
|
|
1785
|
+
this.statValue = _data["statValue"];
|
|
1786
|
+
this.isEffect = _data["isEffect"];
|
|
1787
|
+
this.effectDescription = _data["effectDescription"];
|
|
1788
|
+
this.icon = _data["icon"] ? ItemIconDto.fromJS(_data["icon"]) : undefined;
|
|
1789
|
+
}
|
|
1790
|
+
};
|
|
1791
|
+
ItemImproveEffectOptionDto.fromJS = function (data) {
|
|
1792
|
+
data = typeof data === 'object' ? data : {};
|
|
1793
|
+
var result = new ItemImproveEffectOptionDto();
|
|
1794
|
+
result.init(data);
|
|
1795
|
+
return result;
|
|
1796
|
+
};
|
|
1797
|
+
ItemImproveEffectOptionDto.prototype.toJSON = function (data) {
|
|
1798
|
+
data = typeof data === 'object' ? data : {};
|
|
1799
|
+
data["statName"] = this.statName;
|
|
1800
|
+
data["statValue"] = this.statValue;
|
|
1801
|
+
data["isEffect"] = this.isEffect;
|
|
1802
|
+
data["effectDescription"] = this.effectDescription;
|
|
1803
|
+
data["icon"] = this.icon ? this.icon.toJSON() : undefined;
|
|
1804
|
+
return data;
|
|
1805
|
+
};
|
|
1806
|
+
return ItemImproveEffectOptionDto;
|
|
1807
|
+
}());
|
|
1808
|
+
var ItemRandomStatDto = /** @class */ (function () {
|
|
1809
|
+
function ItemRandomStatDto(data) {
|
|
1810
|
+
if (data) {
|
|
1811
|
+
for (var property in data) {
|
|
1812
|
+
if (data.hasOwnProperty(property))
|
|
1813
|
+
this[property] = data[property];
|
|
599
1814
|
}
|
|
600
|
-
|
|
601
|
-
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
ItemRandomStatDto.prototype.init = function (_data) {
|
|
1818
|
+
if (_data) {
|
|
1819
|
+
this.name = _data["name"];
|
|
1820
|
+
this.min = _data["min"];
|
|
1821
|
+
this.max = _data["max"];
|
|
1822
|
+
this.isPercentage = _data["isPercentage"];
|
|
1823
|
+
this.isMainStat = _data["isMainStat"];
|
|
1824
|
+
this.isFixedSubStat = _data["isFixedSubStat"];
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
ItemRandomStatDto.fromJS = function (data) {
|
|
1828
|
+
data = typeof data === 'object' ? data : {};
|
|
1829
|
+
var result = new ItemRandomStatDto();
|
|
1830
|
+
result.init(data);
|
|
1831
|
+
return result;
|
|
1832
|
+
};
|
|
1833
|
+
ItemRandomStatDto.prototype.toJSON = function (data) {
|
|
1834
|
+
data = typeof data === 'object' ? data : {};
|
|
1835
|
+
data["name"] = this.name;
|
|
1836
|
+
data["min"] = this.min;
|
|
1837
|
+
data["max"] = this.max;
|
|
1838
|
+
data["isPercentage"] = this.isPercentage;
|
|
1839
|
+
data["isMainStat"] = this.isMainStat;
|
|
1840
|
+
data["isFixedSubStat"] = this.isFixedSubStat;
|
|
1841
|
+
return data;
|
|
1842
|
+
};
|
|
1843
|
+
return ItemRandomStatDto;
|
|
1844
|
+
}());
|
|
1845
|
+
var ItemRefWithCount = /** @class */ (function () {
|
|
1846
|
+
function ItemRefWithCount(data) {
|
|
1847
|
+
if (data) {
|
|
1848
|
+
for (var property in data) {
|
|
1849
|
+
if (data.hasOwnProperty(property))
|
|
1850
|
+
this[property] = data[property];
|
|
602
1851
|
}
|
|
603
|
-
|
|
604
|
-
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
ItemRefWithCount.prototype.init = function (_data) {
|
|
1855
|
+
if (_data) {
|
|
1856
|
+
this.itemId = _data["itemId"];
|
|
1857
|
+
this.itemLevel = _data["itemLevel"];
|
|
1858
|
+
this.min = _data["min"];
|
|
1859
|
+
this.max = _data["max"];
|
|
1860
|
+
this.isMinMax = _data["isMinMax"];
|
|
1861
|
+
this.isRandom = _data["isRandom"];
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
1864
|
+
ItemRefWithCount.fromJS = function (data) {
|
|
1865
|
+
data = typeof data === 'object' ? data : {};
|
|
1866
|
+
var result = new ItemRefWithCount();
|
|
1867
|
+
result.init(data);
|
|
1868
|
+
return result;
|
|
1869
|
+
};
|
|
1870
|
+
ItemRefWithCount.prototype.toJSON = function (data) {
|
|
1871
|
+
data = typeof data === 'object' ? data : {};
|
|
1872
|
+
data["itemId"] = this.itemId;
|
|
1873
|
+
data["itemLevel"] = this.itemLevel;
|
|
1874
|
+
data["min"] = this.min;
|
|
1875
|
+
data["max"] = this.max;
|
|
1876
|
+
data["isMinMax"] = this.isMinMax;
|
|
1877
|
+
data["isRandom"] = this.isRandom;
|
|
1878
|
+
return data;
|
|
1879
|
+
};
|
|
1880
|
+
return ItemRefWithCount;
|
|
1881
|
+
}());
|
|
1882
|
+
var ItemSealingDto = /** @class */ (function () {
|
|
1883
|
+
function ItemSealingDto(data) {
|
|
1884
|
+
if (data) {
|
|
1885
|
+
for (var property in data) {
|
|
1886
|
+
if (data.hasOwnProperty(property))
|
|
1887
|
+
this[property] = data[property];
|
|
605
1888
|
}
|
|
606
|
-
|
|
607
|
-
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
ItemSealingDto.prototype.init = function (_data) {
|
|
1892
|
+
if (_data) {
|
|
1893
|
+
if (Array.isArray(_data["sealConsumeItems"])) {
|
|
1894
|
+
this.sealConsumeItems = [];
|
|
1895
|
+
for (var _i = 0, _a = _data["sealConsumeItems"]; _i < _a.length; _i++) {
|
|
1896
|
+
var item = _a[_i];
|
|
1897
|
+
this.sealConsumeItems.push(ItemRefWithCount.fromJS(item));
|
|
1898
|
+
}
|
|
608
1899
|
}
|
|
609
|
-
|
|
610
|
-
|
|
1900
|
+
this.sealAcquireItemId = _data["sealAcquireItemId"];
|
|
1901
|
+
this.sealAcquireItemLevel = _data["sealAcquireItemLevel"];
|
|
1902
|
+
}
|
|
1903
|
+
};
|
|
1904
|
+
ItemSealingDto.fromJS = function (data) {
|
|
1905
|
+
data = typeof data === 'object' ? data : {};
|
|
1906
|
+
var result = new ItemSealingDto();
|
|
1907
|
+
result.init(data);
|
|
1908
|
+
return result;
|
|
1909
|
+
};
|
|
1910
|
+
ItemSealingDto.prototype.toJSON = function (data) {
|
|
1911
|
+
data = typeof data === 'object' ? data : {};
|
|
1912
|
+
if (Array.isArray(this.sealConsumeItems)) {
|
|
1913
|
+
data["sealConsumeItems"] = [];
|
|
1914
|
+
for (var _i = 0, _a = this.sealConsumeItems; _i < _a.length; _i++) {
|
|
1915
|
+
var item = _a[_i];
|
|
1916
|
+
data["sealConsumeItems"].push(item.toJSON());
|
|
611
1917
|
}
|
|
612
|
-
|
|
613
|
-
|
|
1918
|
+
}
|
|
1919
|
+
data["sealAcquireItemId"] = this.sealAcquireItemId;
|
|
1920
|
+
data["sealAcquireItemLevel"] = this.sealAcquireItemLevel;
|
|
1921
|
+
return data;
|
|
1922
|
+
};
|
|
1923
|
+
return ItemSealingDto;
|
|
1924
|
+
}());
|
|
1925
|
+
var ItemSetBonusDto = /** @class */ (function () {
|
|
1926
|
+
function ItemSetBonusDto(data) {
|
|
1927
|
+
if (data) {
|
|
1928
|
+
for (var property in data) {
|
|
1929
|
+
if (data.hasOwnProperty(property))
|
|
1930
|
+
this[property] = data[property];
|
|
614
1931
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
* @param {string} name
|
|
627
|
-
* @param {string} region
|
|
628
|
-
* @param {string} [patch]
|
|
629
|
-
* @param {*} [options] Override http request option.
|
|
630
|
-
* @throws {RequiredError}
|
|
631
|
-
*/
|
|
632
|
-
bnsItemItemsByNameGet: function (name, region, patch, options) {
|
|
633
|
-
if (options === void 0) { options = {}; }
|
|
634
|
-
// verify required parameter 'name' is not null or undefined
|
|
635
|
-
if (name === null || name === undefined) {
|
|
636
|
-
throw new RequiredError('name', 'Required parameter name was null or undefined when calling bnsItemItemsByNameGet.');
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
ItemSetBonusDto.prototype.init = function (_data) {
|
|
1935
|
+
if (_data) {
|
|
1936
|
+
this.setName = _data["setName"];
|
|
1937
|
+
if (Array.isArray(_data["setItems"])) {
|
|
1938
|
+
this.setItems = [];
|
|
1939
|
+
for (var _i = 0, _a = _data["setItems"]; _i < _a.length; _i++) {
|
|
1940
|
+
var item = _a[_i];
|
|
1941
|
+
this.setItems.push(SetItemDto.fromJS(item));
|
|
1942
|
+
}
|
|
637
1943
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
1944
|
+
if (Array.isArray(_data["setBonusStages"])) {
|
|
1945
|
+
this.setBonusStages = [];
|
|
1946
|
+
for (var _b = 0, _c = _data["setBonusStages"]; _b < _c.length; _b++) {
|
|
1947
|
+
var item = _c[_b];
|
|
1948
|
+
this.setBonusStages.push(ItemSetBonusStageDto.fromJS(item));
|
|
1949
|
+
}
|
|
641
1950
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
ItemSetBonusDto.fromJS = function (data) {
|
|
1954
|
+
data = typeof data === 'object' ? data : {};
|
|
1955
|
+
var result = new ItemSetBonusDto();
|
|
1956
|
+
result.init(data);
|
|
1957
|
+
return result;
|
|
1958
|
+
};
|
|
1959
|
+
ItemSetBonusDto.prototype.toJSON = function (data) {
|
|
1960
|
+
data = typeof data === 'object' ? data : {};
|
|
1961
|
+
data["setName"] = this.setName;
|
|
1962
|
+
if (Array.isArray(this.setItems)) {
|
|
1963
|
+
data["setItems"] = [];
|
|
1964
|
+
for (var _i = 0, _a = this.setItems; _i < _a.length; _i++) {
|
|
1965
|
+
var item = _a[_i];
|
|
1966
|
+
data["setItems"].push(item.toJSON());
|
|
649
1967
|
}
|
|
650
|
-
|
|
651
|
-
|
|
1968
|
+
}
|
|
1969
|
+
if (Array.isArray(this.setBonusStages)) {
|
|
1970
|
+
data["setBonusStages"] = [];
|
|
1971
|
+
for (var _b = 0, _c = this.setBonusStages; _b < _c.length; _b++) {
|
|
1972
|
+
var item = _c[_b];
|
|
1973
|
+
data["setBonusStages"].push(item.toJSON());
|
|
652
1974
|
}
|
|
653
|
-
|
|
654
|
-
|
|
1975
|
+
}
|
|
1976
|
+
return data;
|
|
1977
|
+
};
|
|
1978
|
+
return ItemSetBonusDto;
|
|
1979
|
+
}());
|
|
1980
|
+
var ItemSetBonusStageDto = /** @class */ (function () {
|
|
1981
|
+
function ItemSetBonusStageDto(data) {
|
|
1982
|
+
if (data) {
|
|
1983
|
+
for (var property in data) {
|
|
1984
|
+
if (data.hasOwnProperty(property))
|
|
1985
|
+
this[property] = data[property];
|
|
655
1986
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
* @param {number} count
|
|
668
|
-
* @param {string} region
|
|
669
|
-
* @param {number} [offset]
|
|
670
|
-
* @param {string} [patch]
|
|
671
|
-
* @param {*} [options] Override http request option.
|
|
672
|
-
* @throws {RequiredError}
|
|
673
|
-
*/
|
|
674
|
-
bnsItemItemsGet: function (count, region, offset, patch, options) {
|
|
675
|
-
if (options === void 0) { options = {}; }
|
|
676
|
-
// verify required parameter 'count' is not null or undefined
|
|
677
|
-
if (count === null || count === undefined) {
|
|
678
|
-
throw new RequiredError('count', 'Required parameter count was null or undefined when calling bnsItemItemsGet.');
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
ItemSetBonusStageDto.prototype.init = function (_data) {
|
|
1990
|
+
if (_data) {
|
|
1991
|
+
this.setNumber = _data["setNumber"];
|
|
1992
|
+
if (Array.isArray(_data["effects"])) {
|
|
1993
|
+
this.effects = [];
|
|
1994
|
+
for (var _i = 0, _a = _data["effects"]; _i < _a.length; _i++) {
|
|
1995
|
+
var item = _a[_i];
|
|
1996
|
+
this.effects.push(EffectDto.fromJS(item));
|
|
1997
|
+
}
|
|
679
1998
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1999
|
+
if (Array.isArray(_data["skillModifiers"])) {
|
|
2000
|
+
this.skillModifiers = [];
|
|
2001
|
+
for (var _b = 0, _c = _data["skillModifiers"]; _b < _c.length; _b++) {
|
|
2002
|
+
var item = _c[_b];
|
|
2003
|
+
this.skillModifiers.push(SkillModifierGroupDto.fromJS(item));
|
|
2004
|
+
}
|
|
683
2005
|
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
ItemSetBonusStageDto.fromJS = function (data) {
|
|
2009
|
+
data = typeof data === 'object' ? data : {};
|
|
2010
|
+
var result = new ItemSetBonusStageDto();
|
|
2011
|
+
result.init(data);
|
|
2012
|
+
return result;
|
|
2013
|
+
};
|
|
2014
|
+
ItemSetBonusStageDto.prototype.toJSON = function (data) {
|
|
2015
|
+
data = typeof data === 'object' ? data : {};
|
|
2016
|
+
data["setNumber"] = this.setNumber;
|
|
2017
|
+
if (Array.isArray(this.effects)) {
|
|
2018
|
+
data["effects"] = [];
|
|
2019
|
+
for (var _i = 0, _a = this.effects; _i < _a.length; _i++) {
|
|
2020
|
+
var item = _a[_i];
|
|
2021
|
+
data["effects"].push(item.toJSON());
|
|
691
2022
|
}
|
|
692
|
-
|
|
693
|
-
|
|
2023
|
+
}
|
|
2024
|
+
if (Array.isArray(this.skillModifiers)) {
|
|
2025
|
+
data["skillModifiers"] = [];
|
|
2026
|
+
for (var _b = 0, _c = this.skillModifiers; _b < _c.length; _b++) {
|
|
2027
|
+
var item = _c[_b];
|
|
2028
|
+
data["skillModifiers"].push(item.toJSON());
|
|
694
2029
|
}
|
|
695
|
-
|
|
696
|
-
|
|
2030
|
+
}
|
|
2031
|
+
return data;
|
|
2032
|
+
};
|
|
2033
|
+
return ItemSetBonusStageDto;
|
|
2034
|
+
}());
|
|
2035
|
+
var ItemSkillDto = /** @class */ (function () {
|
|
2036
|
+
function ItemSkillDto(data) {
|
|
2037
|
+
if (data) {
|
|
2038
|
+
for (var property in data) {
|
|
2039
|
+
if (data.hasOwnProperty(property))
|
|
2040
|
+
this[property] = data[property];
|
|
697
2041
|
}
|
|
698
|
-
|
|
699
|
-
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
ItemSkillDto.prototype.init = function (_data) {
|
|
2045
|
+
if (_data) {
|
|
2046
|
+
this.title = _data["title"];
|
|
2047
|
+
this.description = _data["description"];
|
|
2048
|
+
this.jobstyle = _data["jobstyle"];
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2051
|
+
ItemSkillDto.fromJS = function (data) {
|
|
2052
|
+
data = typeof data === 'object' ? data : {};
|
|
2053
|
+
var result = new ItemSkillDto();
|
|
2054
|
+
result.init(data);
|
|
2055
|
+
return result;
|
|
2056
|
+
};
|
|
2057
|
+
ItemSkillDto.prototype.toJSON = function (data) {
|
|
2058
|
+
data = typeof data === 'object' ? data : {};
|
|
2059
|
+
data["title"] = this.title;
|
|
2060
|
+
data["description"] = this.description;
|
|
2061
|
+
data["jobstyle"] = this.jobstyle;
|
|
2062
|
+
return data;
|
|
2063
|
+
};
|
|
2064
|
+
return ItemSkillDto;
|
|
2065
|
+
}());
|
|
2066
|
+
var ItemStatDto = /** @class */ (function () {
|
|
2067
|
+
function ItemStatDto(data) {
|
|
2068
|
+
if (data) {
|
|
2069
|
+
for (var property in data) {
|
|
2070
|
+
if (data.hasOwnProperty(property))
|
|
2071
|
+
this[property] = data[property];
|
|
700
2072
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
ItemStatDto.prototype.init = function (_data) {
|
|
2076
|
+
if (_data) {
|
|
2077
|
+
this.name = _data["name"];
|
|
2078
|
+
this.value = _data["value"];
|
|
2079
|
+
this.isPercentage = _data["isPercentage"];
|
|
2080
|
+
this.isMainStat = _data["isMainStat"];
|
|
2081
|
+
}
|
|
2082
|
+
};
|
|
2083
|
+
ItemStatDto.fromJS = function (data) {
|
|
2084
|
+
data = typeof data === 'object' ? data : {};
|
|
2085
|
+
var result = new ItemStatDto();
|
|
2086
|
+
result.init(data);
|
|
2087
|
+
return result;
|
|
2088
|
+
};
|
|
2089
|
+
ItemStatDto.prototype.toJSON = function (data) {
|
|
2090
|
+
data = typeof data === 'object' ? data : {};
|
|
2091
|
+
data["name"] = this.name;
|
|
2092
|
+
data["value"] = this.value;
|
|
2093
|
+
data["isPercentage"] = this.isPercentage;
|
|
2094
|
+
data["isMainStat"] = this.isMainStat;
|
|
2095
|
+
return data;
|
|
2096
|
+
};
|
|
2097
|
+
return ItemStatDto;
|
|
2098
|
+
}());
|
|
2099
|
+
var ItemTransformDto = /** @class */ (function () {
|
|
2100
|
+
function ItemTransformDto(data) {
|
|
2101
|
+
if (data) {
|
|
2102
|
+
for (var property in data) {
|
|
2103
|
+
if (data.hasOwnProperty(property))
|
|
2104
|
+
this[property] = data[property];
|
|
721
2105
|
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
if (
|
|
728
|
-
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
ItemTransformDto.prototype.init = function (_data) {
|
|
2109
|
+
if (_data) {
|
|
2110
|
+
this.moneyCost = _data["moneyCost"];
|
|
2111
|
+
if (Array.isArray(_data["itemCost"])) {
|
|
2112
|
+
this.itemCost = [];
|
|
2113
|
+
for (var _i = 0, _a = _data["itemCost"]; _i < _a.length; _i++) {
|
|
2114
|
+
var item = _a[_i];
|
|
2115
|
+
this.itemCost.push(ItemRefWithCount.fromJS(item));
|
|
2116
|
+
}
|
|
729
2117
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
// verify required parameter 'region' is not null or undefined
|
|
748
|
-
if (region === null || region === undefined) {
|
|
749
|
-
throw new RequiredError('region', 'Required parameter region was null or undefined when calling bnsItemPatchesGet.');
|
|
2118
|
+
this.itemReward = _data["itemReward"] ? ItemRefWithCount.fromJS(_data["itemReward"]) : undefined;
|
|
2119
|
+
}
|
|
2120
|
+
};
|
|
2121
|
+
ItemTransformDto.fromJS = function (data) {
|
|
2122
|
+
data = typeof data === 'object' ? data : {};
|
|
2123
|
+
var result = new ItemTransformDto();
|
|
2124
|
+
result.init(data);
|
|
2125
|
+
return result;
|
|
2126
|
+
};
|
|
2127
|
+
ItemTransformDto.prototype.toJSON = function (data) {
|
|
2128
|
+
data = typeof data === 'object' ? data : {};
|
|
2129
|
+
data["moneyCost"] = this.moneyCost;
|
|
2130
|
+
if (Array.isArray(this.itemCost)) {
|
|
2131
|
+
data["itemCost"] = [];
|
|
2132
|
+
for (var _i = 0, _a = this.itemCost; _i < _a.length; _i++) {
|
|
2133
|
+
var item = _a[_i];
|
|
2134
|
+
data["itemCost"].push(item.toJSON());
|
|
750
2135
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
2136
|
+
}
|
|
2137
|
+
data["itemReward"] = this.itemReward ? this.itemReward.toJSON() : undefined;
|
|
2138
|
+
return data;
|
|
2139
|
+
};
|
|
2140
|
+
return ItemTransformDto;
|
|
2141
|
+
}());
|
|
2142
|
+
var ItemUpgradeInfoDto = /** @class */ (function () {
|
|
2143
|
+
function ItemUpgradeInfoDto(data) {
|
|
2144
|
+
if (data) {
|
|
2145
|
+
for (var property in data) {
|
|
2146
|
+
if (data.hasOwnProperty(property))
|
|
2147
|
+
this[property] = data[property];
|
|
758
2148
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
* @param {*} [options] Override http request option.
|
|
771
|
-
* @throws {RequiredError}
|
|
772
|
-
*/
|
|
773
|
-
bnsItemPingGet: function (options) {
|
|
774
|
-
if (options === void 0) { options = {}; }
|
|
775
|
-
var localVarPath = "/BnsItem/Ping";
|
|
776
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
777
|
-
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
778
|
-
var localVarHeaderParameter = {};
|
|
779
|
-
var localVarQueryParameter = {};
|
|
780
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
781
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
782
|
-
delete localVarUrlObj.search;
|
|
783
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
784
|
-
return {
|
|
785
|
-
url: url.format(localVarUrlObj),
|
|
786
|
-
options: localVarRequestOptions,
|
|
787
|
-
};
|
|
788
|
-
},
|
|
789
|
-
/**
|
|
790
|
-
*
|
|
791
|
-
* @param {*} [options] Override http request option.
|
|
792
|
-
* @throws {RequiredError}
|
|
793
|
-
*/
|
|
794
|
-
bnsItemRegionsGet: function (options) {
|
|
795
|
-
if (options === void 0) { options = {}; }
|
|
796
|
-
var localVarPath = "/BnsItem/Regions";
|
|
797
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
798
|
-
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
799
|
-
var localVarHeaderParameter = {};
|
|
800
|
-
var localVarQueryParameter = {};
|
|
801
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
802
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
803
|
-
delete localVarUrlObj.search;
|
|
804
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
805
|
-
return {
|
|
806
|
-
url: url.format(localVarUrlObj),
|
|
807
|
-
options: localVarRequestOptions,
|
|
808
|
-
};
|
|
809
|
-
},
|
|
810
|
-
/**
|
|
811
|
-
*
|
|
812
|
-
* @param {string} region
|
|
813
|
-
* @param {string} itemType
|
|
814
|
-
* @param {string} technicalJobName
|
|
815
|
-
* @param {string} [patch]
|
|
816
|
-
* @param {*} [options] Override http request option.
|
|
817
|
-
* @throws {RequiredError}
|
|
818
|
-
*/
|
|
819
|
-
bnsItemYastItemsGet: function (region, itemType, technicalJobName, patch, options) {
|
|
820
|
-
if (options === void 0) { options = {}; }
|
|
821
|
-
// verify required parameter 'region' is not null or undefined
|
|
822
|
-
if (region === null || region === undefined) {
|
|
823
|
-
throw new RequiredError('region', 'Required parameter region was null or undefined when calling bnsItemYastItemsGet.');
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
ItemUpgradeInfoDto.prototype.init = function (_data) {
|
|
2152
|
+
if (_data) {
|
|
2153
|
+
this.moneyCost = _data["moneyCost"];
|
|
2154
|
+
if (Array.isArray(_data["itemCost"])) {
|
|
2155
|
+
this.itemCost = [];
|
|
2156
|
+
for (var _i = 0, _a = _data["itemCost"]; _i < _a.length; _i++) {
|
|
2157
|
+
var item = _a[_i];
|
|
2158
|
+
this.itemCost.push(ItemRefWithCount.fromJS(item));
|
|
2159
|
+
}
|
|
824
2160
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
2161
|
+
this.offerItemId = _data["offerItemId"];
|
|
2162
|
+
this.offerItemLevel = _data["offerItemLevel"];
|
|
2163
|
+
}
|
|
2164
|
+
};
|
|
2165
|
+
ItemUpgradeInfoDto.fromJS = function (data) {
|
|
2166
|
+
data = typeof data === 'object' ? data : {};
|
|
2167
|
+
var result = new ItemUpgradeInfoDto();
|
|
2168
|
+
result.init(data);
|
|
2169
|
+
return result;
|
|
2170
|
+
};
|
|
2171
|
+
ItemUpgradeInfoDto.prototype.toJSON = function (data) {
|
|
2172
|
+
data = typeof data === 'object' ? data : {};
|
|
2173
|
+
data["moneyCost"] = this.moneyCost;
|
|
2174
|
+
if (Array.isArray(this.itemCost)) {
|
|
2175
|
+
data["itemCost"] = [];
|
|
2176
|
+
for (var _i = 0, _a = this.itemCost; _i < _a.length; _i++) {
|
|
2177
|
+
var item = _a[_i];
|
|
2178
|
+
data["itemCost"].push(item.toJSON());
|
|
828
2179
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
2180
|
+
}
|
|
2181
|
+
data["offerItemId"] = this.offerItemId;
|
|
2182
|
+
data["offerItemLevel"] = this.offerItemLevel;
|
|
2183
|
+
return data;
|
|
2184
|
+
};
|
|
2185
|
+
return ItemUpgradeInfoDto;
|
|
2186
|
+
}());
|
|
2187
|
+
var ItemWithStagesDto = /** @class */ (function () {
|
|
2188
|
+
function ItemWithStagesDto(data) {
|
|
2189
|
+
if (data) {
|
|
2190
|
+
for (var property in data) {
|
|
2191
|
+
if (data.hasOwnProperty(property))
|
|
2192
|
+
this[property] = data[property];
|
|
832
2193
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
if (
|
|
839
|
-
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
ItemWithStagesDto.prototype.init = function (_data) {
|
|
2197
|
+
if (_data) {
|
|
2198
|
+
this.item = _data["item"] ? BnsItemDto.fromJS(_data["item"]) : undefined;
|
|
2199
|
+
if (_data["jsonDiffPatchesForIds"]) {
|
|
2200
|
+
this.jsonDiffPatchesForIds = {};
|
|
2201
|
+
for (var key in _data["jsonDiffPatchesForIds"]) {
|
|
2202
|
+
if (_data["jsonDiffPatchesForIds"].hasOwnProperty(key))
|
|
2203
|
+
this.jsonDiffPatchesForIds[key] = _data["jsonDiffPatchesForIds"][key];
|
|
2204
|
+
}
|
|
840
2205
|
}
|
|
841
|
-
|
|
842
|
-
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
ItemWithStagesDto.fromJS = function (data) {
|
|
2209
|
+
data = typeof data === 'object' ? data : {};
|
|
2210
|
+
var result = new ItemWithStagesDto();
|
|
2211
|
+
result.init(data);
|
|
2212
|
+
return result;
|
|
2213
|
+
};
|
|
2214
|
+
ItemWithStagesDto.prototype.toJSON = function (data) {
|
|
2215
|
+
data = typeof data === 'object' ? data : {};
|
|
2216
|
+
data["item"] = this.item ? this.item.toJSON() : undefined;
|
|
2217
|
+
if (this.jsonDiffPatchesForIds) {
|
|
2218
|
+
data["jsonDiffPatchesForIds"] = {};
|
|
2219
|
+
for (var key in this.jsonDiffPatchesForIds) {
|
|
2220
|
+
if (this.jsonDiffPatchesForIds.hasOwnProperty(key))
|
|
2221
|
+
data["jsonDiffPatchesForIds"][key] = this.jsonDiffPatchesForIds[key];
|
|
843
2222
|
}
|
|
844
|
-
|
|
845
|
-
|
|
2223
|
+
}
|
|
2224
|
+
return data;
|
|
2225
|
+
};
|
|
2226
|
+
return ItemWithStagesDto;
|
|
2227
|
+
}());
|
|
2228
|
+
var PatchesListPatch = /** @class */ (function () {
|
|
2229
|
+
function PatchesListPatch(data) {
|
|
2230
|
+
if (data) {
|
|
2231
|
+
for (var property in data) {
|
|
2232
|
+
if (data.hasOwnProperty(property))
|
|
2233
|
+
this[property] = data[property];
|
|
846
2234
|
}
|
|
847
|
-
|
|
848
|
-
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
PatchesListPatch.prototype.init = function (_data) {
|
|
2238
|
+
if (_data) {
|
|
2239
|
+
this.short = _data["short"];
|
|
2240
|
+
this.text = _data["text"];
|
|
2241
|
+
this.index = _data["index"];
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
PatchesListPatch.fromJS = function (data) {
|
|
2245
|
+
data = typeof data === 'object' ? data : {};
|
|
2246
|
+
var result = new PatchesListPatch();
|
|
2247
|
+
result.init(data);
|
|
2248
|
+
return result;
|
|
2249
|
+
};
|
|
2250
|
+
PatchesListPatch.prototype.toJSON = function (data) {
|
|
2251
|
+
data = typeof data === 'object' ? data : {};
|
|
2252
|
+
data["short"] = this.short;
|
|
2253
|
+
data["text"] = this.text;
|
|
2254
|
+
data["index"] = this.index;
|
|
2255
|
+
return data;
|
|
2256
|
+
};
|
|
2257
|
+
return PatchesListPatch;
|
|
2258
|
+
}());
|
|
2259
|
+
var RequiredClassDto = /** @class */ (function () {
|
|
2260
|
+
function RequiredClassDto(data) {
|
|
2261
|
+
if (data) {
|
|
2262
|
+
for (var property in data) {
|
|
2263
|
+
if (data.hasOwnProperty(property))
|
|
2264
|
+
this[property] = data[property];
|
|
849
2265
|
}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
};
|
|
858
|
-
},
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
RequiredClassDto.prototype.init = function (_data) {
|
|
2269
|
+
if (_data) {
|
|
2270
|
+
this.enName = _data["enName"];
|
|
2271
|
+
this.technicalName = _data["technicalName"];
|
|
2272
|
+
}
|
|
859
2273
|
};
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
var BnsItemApiFp = function (configuration) {
|
|
866
|
-
return {
|
|
867
|
-
/**
|
|
868
|
-
*
|
|
869
|
-
* @param {boolean} added
|
|
870
|
-
* @param {boolean} modified
|
|
871
|
-
* @param {string} region
|
|
872
|
-
* @param {string} [patch]
|
|
873
|
-
* @param {*} [options] Override http request option.
|
|
874
|
-
* @throws {RequiredError}
|
|
875
|
-
*/
|
|
876
|
-
bnsItemAddedOrModifiedItemsGet: function (added, modified, region, patch, options) {
|
|
877
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemAddedOrModifiedItemsGet(added, modified, region, patch, options);
|
|
878
|
-
return function (fetch, basePath) {
|
|
879
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
880
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
881
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
882
|
-
if (response.status >= 200 && response.status < 300) {
|
|
883
|
-
return response.json();
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
throw response;
|
|
887
|
-
}
|
|
888
|
-
});
|
|
889
|
-
};
|
|
890
|
-
},
|
|
891
|
-
/**
|
|
892
|
-
*
|
|
893
|
-
* @param {number} [itemId]
|
|
894
|
-
* @param {number} [itemLevel]
|
|
895
|
-
* @param {string} [region]
|
|
896
|
-
* @param {string} [patch]
|
|
897
|
-
* @param {*} [options] Override http request option.
|
|
898
|
-
* @throws {RequiredError}
|
|
899
|
-
*/
|
|
900
|
-
bnsItemAllStagesForItemGet: function (itemId, itemLevel, region, patch, options) {
|
|
901
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemAllStagesForItemGet(itemId, itemLevel, region, patch, options);
|
|
902
|
-
return function (fetch, basePath) {
|
|
903
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
904
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
905
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
906
|
-
if (response.status >= 200 && response.status < 300) {
|
|
907
|
-
return response.json();
|
|
908
|
-
}
|
|
909
|
-
else {
|
|
910
|
-
throw response;
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
};
|
|
914
|
-
},
|
|
915
|
-
/**
|
|
916
|
-
*
|
|
917
|
-
* @param {number} [itemId]
|
|
918
|
-
* @param {number} [itemLevel]
|
|
919
|
-
* @param {string} [region]
|
|
920
|
-
* @param {string} [patch]
|
|
921
|
-
* @param {*} [options] Override http request option.
|
|
922
|
-
* @throws {RequiredError}
|
|
923
|
-
*/
|
|
924
|
-
bnsItemAllUpgradesForItemGet: function (itemId, itemLevel, region, patch, options) {
|
|
925
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemAllUpgradesForItemGet(itemId, itemLevel, region, patch, options);
|
|
926
|
-
return function (fetch, basePath) {
|
|
927
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
928
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
929
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
930
|
-
if (response.status >= 200 && response.status < 300) {
|
|
931
|
-
return response.json();
|
|
932
|
-
}
|
|
933
|
-
else {
|
|
934
|
-
throw response;
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
};
|
|
938
|
-
},
|
|
939
|
-
/**
|
|
940
|
-
*
|
|
941
|
-
* @param {string} idLevel
|
|
942
|
-
* @param {string} region
|
|
943
|
-
* @param {boolean} [light]
|
|
944
|
-
* @param {string} [patch]
|
|
945
|
-
* @param {*} [options] Override http request option.
|
|
946
|
-
* @throws {RequiredError}
|
|
947
|
-
*/
|
|
948
|
-
bnsItemItemByStringGet: function (idLevel, region, light, patch, options) {
|
|
949
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemItemByStringGet(idLevel, region, light, patch, options);
|
|
950
|
-
return function (fetch, basePath) {
|
|
951
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
952
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
953
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
954
|
-
if (response.status >= 200 && response.status < 300) {
|
|
955
|
-
return response.json();
|
|
956
|
-
}
|
|
957
|
-
else {
|
|
958
|
-
throw response;
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
};
|
|
962
|
-
},
|
|
963
|
-
/**
|
|
964
|
-
*
|
|
965
|
-
* @param {number} id
|
|
966
|
-
* @param {number} level
|
|
967
|
-
* @param {string} region
|
|
968
|
-
* @param {boolean} [light]
|
|
969
|
-
* @param {string} [patch]
|
|
970
|
-
* @param {*} [options] Override http request option.
|
|
971
|
-
* @throws {RequiredError}
|
|
972
|
-
*/
|
|
973
|
-
bnsItemItemGet: function (id, level, region, light, patch, options) {
|
|
974
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemItemGet(id, level, region, light, patch, options);
|
|
975
|
-
return function (fetch, basePath) {
|
|
976
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
977
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
978
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
979
|
-
if (response.status >= 200 && response.status < 300) {
|
|
980
|
-
return response.json();
|
|
981
|
-
}
|
|
982
|
-
else {
|
|
983
|
-
throw response;
|
|
984
|
-
}
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
},
|
|
988
|
-
/**
|
|
989
|
-
*
|
|
990
|
-
* @param {string} region
|
|
991
|
-
* @param {string} [category]
|
|
992
|
-
* @param {string} [technicalJobName]
|
|
993
|
-
* @param {string} [gradesString]
|
|
994
|
-
* @param {string} [minGs]
|
|
995
|
-
* @param {string} [patch]
|
|
996
|
-
* @param {boolean} [noDupes]
|
|
997
|
-
* @param {*} [options] Override http request option.
|
|
998
|
-
* @throws {RequiredError}
|
|
999
|
-
*/
|
|
1000
|
-
bnsItemItemsByCategoryGet: function (region, category, technicalJobName, gradesString, minGs, patch, noDupes, options) {
|
|
1001
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemItemsByCategoryGet(region, category, technicalJobName, gradesString, minGs, patch, noDupes, options);
|
|
1002
|
-
return function (fetch, basePath) {
|
|
1003
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1004
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1005
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1006
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1007
|
-
return response.json();
|
|
1008
|
-
}
|
|
1009
|
-
else {
|
|
1010
|
-
throw response;
|
|
1011
|
-
}
|
|
1012
|
-
});
|
|
1013
|
-
};
|
|
1014
|
-
},
|
|
1015
|
-
/**
|
|
1016
|
-
*
|
|
1017
|
-
* @param {string} name
|
|
1018
|
-
* @param {string} region
|
|
1019
|
-
* @param {string} [patch]
|
|
1020
|
-
* @param {*} [options] Override http request option.
|
|
1021
|
-
* @throws {RequiredError}
|
|
1022
|
-
*/
|
|
1023
|
-
bnsItemItemsByNameGet: function (name, region, patch, options) {
|
|
1024
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemItemsByNameGet(name, region, patch, options);
|
|
1025
|
-
return function (fetch, basePath) {
|
|
1026
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1027
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1028
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1029
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1030
|
-
return response.json();
|
|
1031
|
-
}
|
|
1032
|
-
else {
|
|
1033
|
-
throw response;
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
};
|
|
1037
|
-
},
|
|
1038
|
-
/**
|
|
1039
|
-
*
|
|
1040
|
-
* @param {number} count
|
|
1041
|
-
* @param {string} region
|
|
1042
|
-
* @param {number} [offset]
|
|
1043
|
-
* @param {string} [patch]
|
|
1044
|
-
* @param {*} [options] Override http request option.
|
|
1045
|
-
* @throws {RequiredError}
|
|
1046
|
-
*/
|
|
1047
|
-
bnsItemItemsGet: function (count, region, offset, patch, options) {
|
|
1048
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemItemsGet(count, region, offset, patch, options);
|
|
1049
|
-
return function (fetch, basePath) {
|
|
1050
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1051
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1052
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1053
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1054
|
-
return response.json();
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
throw response;
|
|
1058
|
-
}
|
|
1059
|
-
});
|
|
1060
|
-
};
|
|
1061
|
-
},
|
|
1062
|
-
/**
|
|
1063
|
-
*
|
|
1064
|
-
* @param {string} region
|
|
1065
|
-
* @param {*} [options] Override http request option.
|
|
1066
|
-
* @throws {RequiredError}
|
|
1067
|
-
*/
|
|
1068
|
-
bnsItemLatestPatchGet: function (region, options) {
|
|
1069
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemLatestPatchGet(region, options);
|
|
1070
|
-
return function (fetch, basePath) {
|
|
1071
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1072
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1073
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1074
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1075
|
-
return response.json();
|
|
1076
|
-
}
|
|
1077
|
-
else {
|
|
1078
|
-
throw response;
|
|
1079
|
-
}
|
|
1080
|
-
});
|
|
1081
|
-
};
|
|
1082
|
-
},
|
|
1083
|
-
/**
|
|
1084
|
-
*
|
|
1085
|
-
* @param {string} region
|
|
1086
|
-
* @param {*} [options] Override http request option.
|
|
1087
|
-
* @throws {RequiredError}
|
|
1088
|
-
*/
|
|
1089
|
-
bnsItemPatchesGet: function (region, options) {
|
|
1090
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemPatchesGet(region, options);
|
|
1091
|
-
return function (fetch, basePath) {
|
|
1092
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1093
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1094
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1095
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1096
|
-
return response.json();
|
|
1097
|
-
}
|
|
1098
|
-
else {
|
|
1099
|
-
throw response;
|
|
1100
|
-
}
|
|
1101
|
-
});
|
|
1102
|
-
};
|
|
1103
|
-
},
|
|
1104
|
-
/**
|
|
1105
|
-
*
|
|
1106
|
-
* @param {*} [options] Override http request option.
|
|
1107
|
-
* @throws {RequiredError}
|
|
1108
|
-
*/
|
|
1109
|
-
bnsItemPingGet: function (options) {
|
|
1110
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemPingGet(options);
|
|
1111
|
-
return function (fetch, basePath) {
|
|
1112
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1113
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1114
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1115
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1116
|
-
return response.json();
|
|
1117
|
-
}
|
|
1118
|
-
else {
|
|
1119
|
-
throw response;
|
|
1120
|
-
}
|
|
1121
|
-
});
|
|
1122
|
-
};
|
|
1123
|
-
},
|
|
1124
|
-
/**
|
|
1125
|
-
*
|
|
1126
|
-
* @param {*} [options] Override http request option.
|
|
1127
|
-
* @throws {RequiredError}
|
|
1128
|
-
*/
|
|
1129
|
-
bnsItemRegionsGet: function (options) {
|
|
1130
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemRegionsGet(options);
|
|
1131
|
-
return function (fetch, basePath) {
|
|
1132
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1133
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1134
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1135
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1136
|
-
return response.json();
|
|
1137
|
-
}
|
|
1138
|
-
else {
|
|
1139
|
-
throw response;
|
|
1140
|
-
}
|
|
1141
|
-
});
|
|
1142
|
-
};
|
|
1143
|
-
},
|
|
1144
|
-
/**
|
|
1145
|
-
*
|
|
1146
|
-
* @param {string} region
|
|
1147
|
-
* @param {string} itemType
|
|
1148
|
-
* @param {string} technicalJobName
|
|
1149
|
-
* @param {string} [patch]
|
|
1150
|
-
* @param {*} [options] Override http request option.
|
|
1151
|
-
* @throws {RequiredError}
|
|
1152
|
-
*/
|
|
1153
|
-
bnsItemYastItemsGet: function (region, itemType, technicalJobName, patch, options) {
|
|
1154
|
-
var localVarFetchArgs = BnsItemApiFetchParamCreator().bnsItemYastItemsGet(region, itemType, technicalJobName, patch, options);
|
|
1155
|
-
return function (fetch, basePath) {
|
|
1156
|
-
if (fetch === void 0) { fetch = isomorphicFetch; }
|
|
1157
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
1158
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
1159
|
-
if (response.status >= 200 && response.status < 300) {
|
|
1160
|
-
return response.json();
|
|
1161
|
-
}
|
|
1162
|
-
else {
|
|
1163
|
-
throw response;
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
};
|
|
1167
|
-
},
|
|
2274
|
+
RequiredClassDto.fromJS = function (data) {
|
|
2275
|
+
data = typeof data === 'object' ? data : {};
|
|
2276
|
+
var result = new RequiredClassDto();
|
|
2277
|
+
result.init(data);
|
|
2278
|
+
return result;
|
|
1168
2279
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
function
|
|
1179
|
-
|
|
2280
|
+
RequiredClassDto.prototype.toJSON = function (data) {
|
|
2281
|
+
data = typeof data === 'object' ? data : {};
|
|
2282
|
+
data["enName"] = this.enName;
|
|
2283
|
+
data["technicalName"] = this.technicalName;
|
|
2284
|
+
return data;
|
|
2285
|
+
};
|
|
2286
|
+
return RequiredClassDto;
|
|
2287
|
+
}());
|
|
2288
|
+
var SetItemDto = /** @class */ (function () {
|
|
2289
|
+
function SetItemDto(data) {
|
|
2290
|
+
if (data) {
|
|
2291
|
+
for (var property in data) {
|
|
2292
|
+
if (data.hasOwnProperty(property))
|
|
2293
|
+
this[property] = data[property];
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
1180
2296
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
* @param {string} [patch]
|
|
1187
|
-
* @param {*} [options] Override http request option.
|
|
1188
|
-
* @throws {RequiredError}
|
|
1189
|
-
* @memberof BnsItemApi
|
|
1190
|
-
*/
|
|
1191
|
-
BnsItemApi.prototype.bnsItemAddedOrModifiedItemsGet = function (added, modified, region, patch, options) {
|
|
1192
|
-
return BnsItemApiFp(this.configuration).bnsItemAddedOrModifiedItemsGet(added, modified, region, patch, options)(this.fetch, this.basePath);
|
|
2297
|
+
SetItemDto.prototype.init = function (_data) {
|
|
2298
|
+
if (_data) {
|
|
2299
|
+
this.itemName = _data["itemName"];
|
|
2300
|
+
this.itemIcon = _data["itemIcon"] ? ItemIconDto.fromJS(_data["itemIcon"]) : undefined;
|
|
2301
|
+
}
|
|
1193
2302
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
* @param {string} [patch]
|
|
1200
|
-
* @param {*} [options] Override http request option.
|
|
1201
|
-
* @throws {RequiredError}
|
|
1202
|
-
* @memberof BnsItemApi
|
|
1203
|
-
*/
|
|
1204
|
-
BnsItemApi.prototype.bnsItemAllStagesForItemGet = function (itemId, itemLevel, region, patch, options) {
|
|
1205
|
-
return BnsItemApiFp(this.configuration).bnsItemAllStagesForItemGet(itemId, itemLevel, region, patch, options)(this.fetch, this.basePath);
|
|
2303
|
+
SetItemDto.fromJS = function (data) {
|
|
2304
|
+
data = typeof data === 'object' ? data : {};
|
|
2305
|
+
var result = new SetItemDto();
|
|
2306
|
+
result.init(data);
|
|
2307
|
+
return result;
|
|
1206
2308
|
};
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
* @param {string} [patch]
|
|
1213
|
-
* @param {*} [options] Override http request option.
|
|
1214
|
-
* @throws {RequiredError}
|
|
1215
|
-
* @memberof BnsItemApi
|
|
1216
|
-
*/
|
|
1217
|
-
BnsItemApi.prototype.bnsItemAllUpgradesForItemGet = function (itemId, itemLevel, region, patch, options) {
|
|
1218
|
-
return BnsItemApiFp(this.configuration).bnsItemAllUpgradesForItemGet(itemId, itemLevel, region, patch, options)(this.fetch, this.basePath);
|
|
2309
|
+
SetItemDto.prototype.toJSON = function (data) {
|
|
2310
|
+
data = typeof data === 'object' ? data : {};
|
|
2311
|
+
data["itemName"] = this.itemName;
|
|
2312
|
+
data["itemIcon"] = this.itemIcon ? this.itemIcon.toJSON() : undefined;
|
|
2313
|
+
return data;
|
|
1219
2314
|
};
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
2315
|
+
return SetItemDto;
|
|
2316
|
+
}());
|
|
2317
|
+
var SkillModifierDto = /** @class */ (function () {
|
|
2318
|
+
function SkillModifierDto(data) {
|
|
2319
|
+
if (data) {
|
|
2320
|
+
for (var property in data) {
|
|
2321
|
+
if (data.hasOwnProperty(property))
|
|
2322
|
+
this[property] = data[property];
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
SkillModifierDto.prototype.init = function (_data) {
|
|
2327
|
+
if (_data) {
|
|
2328
|
+
if (Array.isArray(_data["skills"])) {
|
|
2329
|
+
this.skills = [];
|
|
2330
|
+
for (var _i = 0, _a = _data["skills"]; _i < _a.length; _i++) {
|
|
2331
|
+
var item = _a[_i];
|
|
2332
|
+
this.skills.push(Int32StringTuple.fromJS(item));
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
this.verb = _data["verb"];
|
|
2336
|
+
this.value = _data["value"];
|
|
2337
|
+
}
|
|
1232
2338
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
* @param {boolean} [light]
|
|
1239
|
-
* @param {string} [patch]
|
|
1240
|
-
* @param {*} [options] Override http request option.
|
|
1241
|
-
* @throws {RequiredError}
|
|
1242
|
-
* @memberof BnsItemApi
|
|
1243
|
-
*/
|
|
1244
|
-
BnsItemApi.prototype.bnsItemItemGet = function (id, level, region, light, patch, options) {
|
|
1245
|
-
return BnsItemApiFp(this.configuration).bnsItemItemGet(id, level, region, light, patch, options)(this.fetch, this.basePath);
|
|
2339
|
+
SkillModifierDto.fromJS = function (data) {
|
|
2340
|
+
data = typeof data === 'object' ? data : {};
|
|
2341
|
+
var result = new SkillModifierDto();
|
|
2342
|
+
result.init(data);
|
|
2343
|
+
return result;
|
|
1246
2344
|
};
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
*/
|
|
1260
|
-
BnsItemApi.prototype.bnsItemItemsByCategoryGet = function (region, category, technicalJobName, gradesString, minGs, patch, noDupes, options) {
|
|
1261
|
-
return BnsItemApiFp(this.configuration).bnsItemItemsByCategoryGet(region, category, technicalJobName, gradesString, minGs, patch, noDupes, options)(this.fetch, this.basePath);
|
|
2345
|
+
SkillModifierDto.prototype.toJSON = function (data) {
|
|
2346
|
+
data = typeof data === 'object' ? data : {};
|
|
2347
|
+
if (Array.isArray(this.skills)) {
|
|
2348
|
+
data["skills"] = [];
|
|
2349
|
+
for (var _i = 0, _a = this.skills; _i < _a.length; _i++) {
|
|
2350
|
+
var item = _a[_i];
|
|
2351
|
+
data["skills"].push(item.toJSON());
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
data["verb"] = this.verb;
|
|
2355
|
+
data["value"] = this.value;
|
|
2356
|
+
return data;
|
|
1262
2357
|
};
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
2358
|
+
return SkillModifierDto;
|
|
2359
|
+
}());
|
|
2360
|
+
var SkillModifierGroupDto = /** @class */ (function () {
|
|
2361
|
+
function SkillModifierGroupDto(data) {
|
|
2362
|
+
if (data) {
|
|
2363
|
+
for (var property in data) {
|
|
2364
|
+
if (data.hasOwnProperty(property))
|
|
2365
|
+
this[property] = data[property];
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
SkillModifierGroupDto.prototype.init = function (_data) {
|
|
2370
|
+
if (_data) {
|
|
2371
|
+
this.jobstyle = _data["jobstyle"];
|
|
2372
|
+
if (Array.isArray(_data["modifiers"])) {
|
|
2373
|
+
this.modifiers = [];
|
|
2374
|
+
for (var _i = 0, _a = _data["modifiers"]; _i < _a.length; _i++) {
|
|
2375
|
+
var item = _a[_i];
|
|
2376
|
+
this.modifiers.push(SkillModifierDto.fromJS(item));
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
1274
2380
|
};
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
* @param {string} [patch]
|
|
1281
|
-
* @param {*} [options] Override http request option.
|
|
1282
|
-
* @throws {RequiredError}
|
|
1283
|
-
* @memberof BnsItemApi
|
|
1284
|
-
*/
|
|
1285
|
-
BnsItemApi.prototype.bnsItemItemsGet = function (count, region, offset, patch, options) {
|
|
1286
|
-
return BnsItemApiFp(this.configuration).bnsItemItemsGet(count, region, offset, patch, options)(this.fetch, this.basePath);
|
|
2381
|
+
SkillModifierGroupDto.fromJS = function (data) {
|
|
2382
|
+
data = typeof data === 'object' ? data : {};
|
|
2383
|
+
var result = new SkillModifierGroupDto();
|
|
2384
|
+
result.init(data);
|
|
2385
|
+
return result;
|
|
1287
2386
|
};
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
2387
|
+
SkillModifierGroupDto.prototype.toJSON = function (data) {
|
|
2388
|
+
data = typeof data === 'object' ? data : {};
|
|
2389
|
+
data["jobstyle"] = this.jobstyle;
|
|
2390
|
+
if (Array.isArray(this.modifiers)) {
|
|
2391
|
+
data["modifiers"] = [];
|
|
2392
|
+
for (var _i = 0, _a = this.modifiers; _i < _a.length; _i++) {
|
|
2393
|
+
var item = _a[_i];
|
|
2394
|
+
data["modifiers"].push(item.toJSON());
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
return data;
|
|
1297
2398
|
};
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
2399
|
+
return SkillModifierGroupDto;
|
|
2400
|
+
}());
|
|
2401
|
+
var SlateStoneDto = /** @class */ (function () {
|
|
2402
|
+
function SlateStoneDto(data) {
|
|
2403
|
+
if (data) {
|
|
2404
|
+
for (var property in data) {
|
|
2405
|
+
if (data.hasOwnProperty(property))
|
|
2406
|
+
this[property] = data[property];
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
SlateStoneDto.prototype.init = function (_data) {
|
|
2411
|
+
if (_data) {
|
|
2412
|
+
this.name = _data["name"];
|
|
2413
|
+
this.grade = _data["grade"];
|
|
2414
|
+
this.icon = _data["icon"] ? ItemIconDto.fromJS(_data["icon"]) : undefined;
|
|
2415
|
+
this.iconCase = _data["iconCase"] ? ItemIconDto.fromJS(_data["iconCase"]) : undefined;
|
|
2416
|
+
if (Array.isArray(_data["stats"])) {
|
|
2417
|
+
this.stats = [];
|
|
2418
|
+
for (var _i = 0, _a = _data["stats"]; _i < _a.length; _i++) {
|
|
2419
|
+
var item = _a[_i];
|
|
2420
|
+
this.stats.push(ItemStatDto.fromJS(item));
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
1307
2424
|
};
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
*/
|
|
1314
|
-
BnsItemApi.prototype.bnsItemPingGet = function (options) {
|
|
1315
|
-
return BnsItemApiFp(this.configuration).bnsItemPingGet(options)(this.fetch, this.basePath);
|
|
2425
|
+
SlateStoneDto.fromJS = function (data) {
|
|
2426
|
+
data = typeof data === 'object' ? data : {};
|
|
2427
|
+
var result = new SlateStoneDto();
|
|
2428
|
+
result.init(data);
|
|
2429
|
+
return result;
|
|
1316
2430
|
};
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
2431
|
+
SlateStoneDto.prototype.toJSON = function (data) {
|
|
2432
|
+
data = typeof data === 'object' ? data : {};
|
|
2433
|
+
data["name"] = this.name;
|
|
2434
|
+
data["grade"] = this.grade;
|
|
2435
|
+
data["icon"] = this.icon ? this.icon.toJSON() : undefined;
|
|
2436
|
+
data["iconCase"] = this.iconCase ? this.iconCase.toJSON() : undefined;
|
|
2437
|
+
if (Array.isArray(this.stats)) {
|
|
2438
|
+
data["stats"] = [];
|
|
2439
|
+
for (var _i = 0, _a = this.stats; _i < _a.length; _i++) {
|
|
2440
|
+
var item = _a[_i];
|
|
2441
|
+
data["stats"].push(item.toJSON());
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
return data;
|
|
1325
2445
|
};
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
2446
|
+
return SlateStoneDto;
|
|
2447
|
+
}());
|
|
2448
|
+
var ApiException = /** @class */ (function (_super) {
|
|
2449
|
+
__extends(ApiException, _super);
|
|
2450
|
+
function ApiException(message, status, response, headers, result) {
|
|
2451
|
+
var _this = _super.call(this) || this;
|
|
2452
|
+
_this.isApiException = true;
|
|
2453
|
+
_this.message = message;
|
|
2454
|
+
_this.status = status;
|
|
2455
|
+
_this.response = response;
|
|
2456
|
+
_this.headers = headers;
|
|
2457
|
+
_this.result = result;
|
|
2458
|
+
return _this;
|
|
2459
|
+
}
|
|
2460
|
+
ApiException.isApiException = function (obj) {
|
|
2461
|
+
return obj.isApiException === true;
|
|
1338
2462
|
};
|
|
1339
|
-
return
|
|
1340
|
-
}(
|
|
2463
|
+
return ApiException;
|
|
2464
|
+
}(Error));
|
|
2465
|
+
function throwException(message, status, response, headers, result) {
|
|
2466
|
+
if (result !== null && result !== undefined)
|
|
2467
|
+
throw result;
|
|
2468
|
+
else
|
|
2469
|
+
throw new ApiException(message, status, response, headers, null);
|
|
2470
|
+
}
|
|
1341
2471
|
|
|
1342
2472
|
var ItemDownloadClient = /** @class */ (function () {
|
|
1343
2473
|
function ItemDownloadClient(region, patch) {
|
|
1344
2474
|
if (patch === void 0) { patch = ""; }
|
|
1345
2475
|
this.patch = patch;
|
|
1346
2476
|
this.region = region;
|
|
1347
|
-
var
|
|
1348
|
-
|
|
1349
|
-
};
|
|
1350
|
-
this.instance = new BnsItemApi(config);
|
|
2477
|
+
var baseUrl = ItemDownloadClient.GetUrlBase();
|
|
2478
|
+
this.instance = new BnsItemApiClient(baseUrl);
|
|
1351
2479
|
}
|
|
2480
|
+
ItemDownloadClient.GetUrlBase = function () {
|
|
2481
|
+
var environment = process.env.NODE_ENV || "development";
|
|
2482
|
+
var url = "https://bnsitemstoragewebapi.azurewebsites.net";
|
|
2483
|
+
if (environment == "development") {
|
|
2484
|
+
url = "https://localhost:44330";
|
|
2485
|
+
}
|
|
2486
|
+
return url;
|
|
2487
|
+
};
|
|
1352
2488
|
ItemDownloadClient.prototype.GetNewItems = function () {
|
|
1353
2489
|
return __awaiter(this, void 0, void 0, function () {
|
|
1354
2490
|
var result;
|
|
1355
2491
|
return __generator(this, function (_a) {
|
|
1356
2492
|
switch (_a.label) {
|
|
1357
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2493
|
+
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(true, false, this.region, this.patch)];
|
|
1358
2494
|
case 1:
|
|
1359
2495
|
result = _a.sent();
|
|
1360
2496
|
return [2 /*return*/, result];
|
|
@@ -1367,7 +2503,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1367
2503
|
var result;
|
|
1368
2504
|
return __generator(this, function (_a) {
|
|
1369
2505
|
switch (_a.label) {
|
|
1370
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2506
|
+
case 0: return [4 /*yield*/, this.instance.addedOrModifiedItems(false, true, this.region, this.patch)];
|
|
1371
2507
|
case 1:
|
|
1372
2508
|
result = _a.sent();
|
|
1373
2509
|
return [2 /*return*/, result];
|
|
@@ -1380,7 +2516,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1380
2516
|
var result;
|
|
1381
2517
|
return __generator(this, function (_a) {
|
|
1382
2518
|
switch (_a.label) {
|
|
1383
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2519
|
+
case 0: return [4 /*yield*/, this.instance.itemByString(idlevelString, this.region, false, this.patch)];
|
|
1384
2520
|
case 1:
|
|
1385
2521
|
result = _a.sent();
|
|
1386
2522
|
return [2 /*return*/, result];
|
|
@@ -1393,7 +2529,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1393
2529
|
var result;
|
|
1394
2530
|
return __generator(this, function (_a) {
|
|
1395
2531
|
switch (_a.label) {
|
|
1396
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2532
|
+
case 0: return [4 /*yield*/, this.instance.item(id, level, this.region, false, this.patch)];
|
|
1397
2533
|
case 1:
|
|
1398
2534
|
result = _a.sent();
|
|
1399
2535
|
return [2 /*return*/, result];
|
|
@@ -1406,7 +2542,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1406
2542
|
var result;
|
|
1407
2543
|
return __generator(this, function (_a) {
|
|
1408
2544
|
switch (_a.label) {
|
|
1409
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2545
|
+
case 0: return [4 /*yield*/, this.instance.itemsByCategory(this.region, category, technicalClassName, gradesString, minGs, this.patch, undefined)];
|
|
1410
2546
|
case 1:
|
|
1411
2547
|
result = _a.sent();
|
|
1412
2548
|
return [2 /*return*/, result];
|
|
@@ -1419,7 +2555,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1419
2555
|
var result;
|
|
1420
2556
|
return __generator(this, function (_a) {
|
|
1421
2557
|
switch (_a.label) {
|
|
1422
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2558
|
+
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(item.id, item.level, this.region, this.patch)];
|
|
1423
2559
|
case 1:
|
|
1424
2560
|
result = _a.sent();
|
|
1425
2561
|
return [2 /*return*/, result];
|
|
@@ -1432,7 +2568,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1432
2568
|
var result;
|
|
1433
2569
|
return __generator(this, function (_a) {
|
|
1434
2570
|
switch (_a.label) {
|
|
1435
|
-
case 0: return [4 /*yield*/, this.instance.
|
|
2571
|
+
case 0: return [4 /*yield*/, this.instance.allUpgradesForItem(id, level, this.region, this.patch)];
|
|
1436
2572
|
case 1:
|
|
1437
2573
|
result = _a.sent();
|
|
1438
2574
|
return [2 /*return*/, result];
|
|
@@ -1440,12 +2576,6 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1440
2576
|
});
|
|
1441
2577
|
});
|
|
1442
2578
|
};
|
|
1443
|
-
ItemDownloadClient.urlBase = "https://bnsitemstoragewebapi.azurewebsites.net";
|
|
1444
|
-
ItemDownloadClient.options = {
|
|
1445
|
-
"headers": {
|
|
1446
|
-
"Referer": "https://yast.vercel.app"
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
2579
|
return ItemDownloadClient;
|
|
1450
2580
|
}());
|
|
1451
2581
|
|
|
@@ -5950,12 +7080,12 @@ function GetAccumulatedUpgradeCost(item, steps) {
|
|
|
5950
7080
|
}
|
|
5951
7081
|
});
|
|
5952
7082
|
});
|
|
5953
|
-
result.push({
|
|
7083
|
+
result.push(new ItemImproveCostOptionDto({
|
|
5954
7084
|
isRandom: item.itemImprove.upgradeOptions[0].isRandom,
|
|
5955
7085
|
mainItemCost: mainCost,
|
|
5956
7086
|
subItemCost: subCosts,
|
|
5957
7087
|
moneyCost: moneyCost
|
|
5958
|
-
});
|
|
7088
|
+
}));
|
|
5959
7089
|
}
|
|
5960
7090
|
return result;
|
|
5961
7091
|
}
|