@takaro/apiclient 0.0.0-dev.eac6a8e → 0.0.0-dev.eae51e8
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/dist/.source-hash +1 -1
- package/dist/generated/api.d.ts +1014 -36
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +593 -51
- package/dist/generated/api.js.map +1 -1
- package/dist/generated-management/api.d.ts +147 -32
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +25 -58
- package/dist/generated-management/api.js.map +1 -1
- package/dist/lib/client.d.ts +2 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +6 -1
- package/dist/lib/client.js.map +1 -1
- package/package.json +1 -1
package/dist/generated/api.js
CHANGED
|
@@ -286,6 +286,8 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
286
286
|
DomainCreated: 'domain-created',
|
|
287
287
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
288
288
|
DomainPlanChanged: 'domain-plan-changed',
|
|
289
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
290
|
+
ItemsGiven: 'items-given',
|
|
289
291
|
PlayerConnected: 'player-connected',
|
|
290
292
|
PlayerDisconnected: 'player-disconnected',
|
|
291
293
|
ChatMessage: 'chat-message',
|
|
@@ -339,6 +341,8 @@ export const EventExploreFiltersDTOEventNameEnum = {
|
|
|
339
341
|
DomainCreated: 'domain-created',
|
|
340
342
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
341
343
|
DomainPlanChanged: 'domain-plan-changed',
|
|
344
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
345
|
+
ItemsGiven: 'items-given',
|
|
342
346
|
PlayerConnected: 'player-connected',
|
|
343
347
|
PlayerDisconnected: 'player-disconnected',
|
|
344
348
|
ChatMessage: 'chat-message',
|
|
@@ -392,6 +396,8 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
392
396
|
DomainCreated: 'domain-created',
|
|
393
397
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
394
398
|
DomainPlanChanged: 'domain-plan-changed',
|
|
399
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
400
|
+
ItemsGiven: 'items-given',
|
|
395
401
|
PlayerConnected: 'player-connected',
|
|
396
402
|
PlayerDisconnected: 'player-disconnected',
|
|
397
403
|
ChatMessage: 'chat-message',
|
|
@@ -445,6 +451,8 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
445
451
|
DomainCreated: 'domain-created',
|
|
446
452
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
447
453
|
DomainPlanChanged: 'domain-plan-changed',
|
|
454
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
455
|
+
ItemsGiven: 'items-given',
|
|
448
456
|
PlayerConnected: 'player-connected',
|
|
449
457
|
PlayerDisconnected: 'player-disconnected',
|
|
450
458
|
ChatMessage: 'chat-message',
|
|
@@ -556,6 +564,11 @@ export const GetSettingsInputKeysEnum = {
|
|
|
556
564
|
UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
|
|
557
565
|
TakaroAiEnabled: 'takaroAiEnabled',
|
|
558
566
|
};
|
|
567
|
+
export const GiveItemsLineResultDTOResultEnum = {
|
|
568
|
+
Delivered: 'DELIVERED',
|
|
569
|
+
Failed: 'FAILED',
|
|
570
|
+
Unknown: 'UNKNOWN',
|
|
571
|
+
};
|
|
559
572
|
export const GuildSearchInputDTOSortDirectionEnum = {
|
|
560
573
|
Asc: 'asc',
|
|
561
574
|
Desc: 'desc',
|
|
@@ -614,6 +627,8 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
614
627
|
DomainCreated: 'domain-created',
|
|
615
628
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
616
629
|
DomainPlanChanged: 'domain-plan-changed',
|
|
630
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
631
|
+
ItemsGiven: 'items-given',
|
|
617
632
|
};
|
|
618
633
|
export const HookOutputDTOEventTypeEnum = {
|
|
619
634
|
Log: 'log',
|
|
@@ -669,6 +684,8 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
669
684
|
DomainCreated: 'domain-created',
|
|
670
685
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
671
686
|
DomainPlanChanged: 'domain-plan-changed',
|
|
687
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
688
|
+
ItemsGiven: 'items-given',
|
|
672
689
|
};
|
|
673
690
|
export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
674
691
|
Log: 'log',
|
|
@@ -724,6 +741,8 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
724
741
|
DomainCreated: 'domain-created',
|
|
725
742
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
726
743
|
DomainPlanChanged: 'domain-plan-changed',
|
|
744
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
745
|
+
ItemsGiven: 'items-given',
|
|
727
746
|
};
|
|
728
747
|
export const HookSearchInputDTOExtendEnum = {
|
|
729
748
|
Module: 'module',
|
|
@@ -787,6 +806,8 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
787
806
|
DomainCreated: 'domain-created',
|
|
788
807
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
789
808
|
DomainPlanChanged: 'domain-plan-changed',
|
|
809
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
810
|
+
ItemsGiven: 'items-given',
|
|
790
811
|
};
|
|
791
812
|
export const HookUpdateDTOEventTypeEnum = {
|
|
792
813
|
Log: 'log',
|
|
@@ -842,6 +863,8 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
842
863
|
DomainCreated: 'domain-created',
|
|
843
864
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
844
865
|
DomainPlanChanged: 'domain-plan-changed',
|
|
866
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
867
|
+
ItemsGiven: 'items-given',
|
|
845
868
|
};
|
|
846
869
|
export const IEntityDTOTypeEnum = {
|
|
847
870
|
Hostile: 'hostile',
|
|
@@ -902,6 +925,8 @@ export const IHookEventTypeEnum = {
|
|
|
902
925
|
DomainCreated: 'domain-created',
|
|
903
926
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
904
927
|
DomainPlanChanged: 'domain-plan-changed',
|
|
928
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
929
|
+
ItemsGiven: 'items-given',
|
|
905
930
|
};
|
|
906
931
|
export const ITakaroQuerySortDirectionEnum = {
|
|
907
932
|
Asc: 'asc',
|
|
@@ -936,6 +961,22 @@ export const ItemSearchInputDTOSortDirectionEnum = {
|
|
|
936
961
|
Asc: 'asc',
|
|
937
962
|
Desc: 'desc',
|
|
938
963
|
};
|
|
964
|
+
export const ItemSetCopyTargetResultDTOStatusEnum = {
|
|
965
|
+
Created: 'CREATED',
|
|
966
|
+
Replaced: 'REPLACED',
|
|
967
|
+
Failed: 'FAILED',
|
|
968
|
+
};
|
|
969
|
+
export const ItemSetCopyTargetResultDTOReasonEnum = {
|
|
970
|
+
NoMatchingItems: 'NO_MATCHING_ITEMS',
|
|
971
|
+
NameTaken: 'NAME_TAKEN',
|
|
972
|
+
};
|
|
973
|
+
export const ItemSetSearchInputDTOExtendEnum = {
|
|
974
|
+
LinesItem: 'lines.item',
|
|
975
|
+
};
|
|
976
|
+
export const ItemSetSearchInputDTOSortDirectionEnum = {
|
|
977
|
+
Asc: 'asc',
|
|
978
|
+
Desc: 'desc',
|
|
979
|
+
};
|
|
939
980
|
export const JobStatusOutputDTOStatusEnum = {
|
|
940
981
|
Pending: 'pending',
|
|
941
982
|
Completed: 'completed',
|
|
@@ -960,6 +1001,8 @@ export const LoginQueryParamsLocaleEnum = {
|
|
|
960
1001
|
Ja: 'ja',
|
|
961
1002
|
It: 'it',
|
|
962
1003
|
Tr: 'tr',
|
|
1004
|
+
He: 'he',
|
|
1005
|
+
Ar: 'ar',
|
|
963
1006
|
};
|
|
964
1007
|
export const ManagementDomainOutputDTOStateEnum = {
|
|
965
1008
|
Active: 'ACTIVE',
|
|
@@ -1256,6 +1299,17 @@ export const TakaroAiUsageOutputDTOStatusEnum = {
|
|
|
1256
1299
|
NoAllowance: 'noAllowance',
|
|
1257
1300
|
NeedsGameServer: 'needsGameServer',
|
|
1258
1301
|
};
|
|
1302
|
+
export const TakaroEventDomainCreatedOriginEnum = {
|
|
1303
|
+
Distributor: 'distributor',
|
|
1304
|
+
Staff: 'staff',
|
|
1305
|
+
Subscription: 'subscription',
|
|
1306
|
+
AdminSecret: 'admin_secret',
|
|
1307
|
+
};
|
|
1308
|
+
export const TakaroEventItemsGivenLineResultEnum = {
|
|
1309
|
+
Delivered: 'DELIVERED',
|
|
1310
|
+
Failed: 'FAILED',
|
|
1311
|
+
Unknown: 'UNKNOWN',
|
|
1312
|
+
};
|
|
1259
1313
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
1260
1314
|
Added: 'added',
|
|
1261
1315
|
Removed: 'removed',
|
|
@@ -5828,6 +5882,8 @@ export const AuthControllerLoginLocaleEnum = {
|
|
|
5828
5882
|
Ja: 'ja',
|
|
5829
5883
|
It: 'it',
|
|
5830
5884
|
Tr: 'tr',
|
|
5885
|
+
He: 'he',
|
|
5886
|
+
Ar: 'ar',
|
|
5831
5887
|
};
|
|
5832
5888
|
/**
|
|
5833
5889
|
* CommandApi - axios parameter creator
|
|
@@ -10012,7 +10068,7 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10012
10068
|
};
|
|
10013
10069
|
},
|
|
10014
10070
|
/**
|
|
10015
|
-
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
10071
|
+
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
10016
10072
|
* @summary Give item
|
|
10017
10073
|
* @param {string} gameServerId
|
|
10018
10074
|
* @param {string} playerId
|
|
@@ -10051,6 +10107,46 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10051
10107
|
options: localVarRequestOptions,
|
|
10052
10108
|
};
|
|
10053
10109
|
},
|
|
10110
|
+
/**
|
|
10111
|
+
* Give several items to one player. Each line names an item by itemId or code and must belong to this game server. Every line is checked before anything is sent: an unknown item, a duplicate item and quality pair, or an unreachable player fails the whole request with 400 and nothing is sent. Otherwise every line is sent and the outcome is returned per line: DELIVERED, FAILED (the game refused it, it was not applied) or UNKNOWN (the game server may or may not have applied it, do not blindly retry). Requires gameserver to be online and reachable. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItems`
|
|
10112
|
+
* @summary Give items
|
|
10113
|
+
* @param {string} gameServerId
|
|
10114
|
+
* @param {string} playerId
|
|
10115
|
+
* @param {GiveItemsInputDTO} [giveItemsInputDTO] GiveItemsInputDTO
|
|
10116
|
+
* @param {*} [options] Override http request option.
|
|
10117
|
+
* @throws {RequiredError}
|
|
10118
|
+
*/
|
|
10119
|
+
gameServerControllerGiveItems: async (gameServerId, playerId, giveItemsInputDTO, options = {}) => {
|
|
10120
|
+
// verify required parameter 'gameServerId' is not null or undefined
|
|
10121
|
+
assertParamExists('gameServerControllerGiveItems', 'gameServerId', gameServerId);
|
|
10122
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
10123
|
+
assertParamExists('gameServerControllerGiveItems', 'playerId', playerId);
|
|
10124
|
+
const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/giveItems`
|
|
10125
|
+
.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)))
|
|
10126
|
+
.replace(`{${'playerId'}}`, encodeURIComponent(String(playerId)));
|
|
10127
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10128
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10129
|
+
let baseOptions;
|
|
10130
|
+
if (configuration) {
|
|
10131
|
+
baseOptions = configuration.baseOptions;
|
|
10132
|
+
}
|
|
10133
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10134
|
+
const localVarHeaderParameter = {};
|
|
10135
|
+
const localVarQueryParameter = {};
|
|
10136
|
+
// authentication bearerAuth required
|
|
10137
|
+
// http bearer authentication required
|
|
10138
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10139
|
+
// authentication domainAuth required
|
|
10140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10144
|
+
localVarRequestOptions.data = serializeDataIfNeeded(giveItemsInputDTO, localVarRequestOptions, configuration);
|
|
10145
|
+
return {
|
|
10146
|
+
url: toPathString(localVarUrlObj),
|
|
10147
|
+
options: localVarRequestOptions,
|
|
10148
|
+
};
|
|
10149
|
+
},
|
|
10054
10150
|
/**
|
|
10055
10151
|
* Import a gameserver from CSMM. The export\'s shape is validated, an import record is created and the returned id reads it at `GET /csmm-import/{id}`. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerImportFromCSMM`
|
|
10056
10152
|
* @summary Import from csmm
|
|
@@ -10934,7 +11030,7 @@ export const GameServerApiFp = function (configuration) {
|
|
|
10934
11030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10935
11031
|
},
|
|
10936
11032
|
/**
|
|
10937
|
-
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
11033
|
+
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
10938
11034
|
* @summary Give item
|
|
10939
11035
|
* @param {string} gameServerId
|
|
10940
11036
|
* @param {string} playerId
|
|
@@ -10948,6 +11044,21 @@ export const GameServerApiFp = function (configuration) {
|
|
|
10948
11044
|
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerGiveItem']?.[localVarOperationServerIndex]?.url;
|
|
10949
11045
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10950
11046
|
},
|
|
11047
|
+
/**
|
|
11048
|
+
* Give several items to one player. Each line names an item by itemId or code and must belong to this game server. Every line is checked before anything is sent: an unknown item, a duplicate item and quality pair, or an unreachable player fails the whole request with 400 and nothing is sent. Otherwise every line is sent and the outcome is returned per line: DELIVERED, FAILED (the game refused it, it was not applied) or UNKNOWN (the game server may or may not have applied it, do not blindly retry). Requires gameserver to be online and reachable. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItems`
|
|
11049
|
+
* @summary Give items
|
|
11050
|
+
* @param {string} gameServerId
|
|
11051
|
+
* @param {string} playerId
|
|
11052
|
+
* @param {GiveItemsInputDTO} [giveItemsInputDTO] GiveItemsInputDTO
|
|
11053
|
+
* @param {*} [options] Override http request option.
|
|
11054
|
+
* @throws {RequiredError}
|
|
11055
|
+
*/
|
|
11056
|
+
async gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options) {
|
|
11057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options);
|
|
11058
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11059
|
+
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerGiveItems']?.[localVarOperationServerIndex]?.url;
|
|
11060
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11061
|
+
},
|
|
10951
11062
|
/**
|
|
10952
11063
|
* Import a gameserver from CSMM. The export\'s shape is validated, an import record is created and the returned id reads it at `GET /csmm-import/{id}`. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerImportFromCSMM`
|
|
10953
11064
|
* @summary Import from csmm
|
|
@@ -11386,7 +11497,7 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11386
11497
|
return localVarFp.gameServerControllerGetTypes(options).then((request) => request(axios, basePath));
|
|
11387
11498
|
},
|
|
11388
11499
|
/**
|
|
11389
|
-
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
11500
|
+
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
11390
11501
|
* @summary Give item
|
|
11391
11502
|
* @param {string} gameServerId
|
|
11392
11503
|
* @param {string} playerId
|
|
@@ -11399,6 +11510,20 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11399
11510
|
.gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options)
|
|
11400
11511
|
.then((request) => request(axios, basePath));
|
|
11401
11512
|
},
|
|
11513
|
+
/**
|
|
11514
|
+
* Give several items to one player. Each line names an item by itemId or code and must belong to this game server. Every line is checked before anything is sent: an unknown item, a duplicate item and quality pair, or an unreachable player fails the whole request with 400 and nothing is sent. Otherwise every line is sent and the outcome is returned per line: DELIVERED, FAILED (the game refused it, it was not applied) or UNKNOWN (the game server may or may not have applied it, do not blindly retry). Requires gameserver to be online and reachable. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItems`
|
|
11515
|
+
* @summary Give items
|
|
11516
|
+
* @param {string} gameServerId
|
|
11517
|
+
* @param {string} playerId
|
|
11518
|
+
* @param {GiveItemsInputDTO} [giveItemsInputDTO] GiveItemsInputDTO
|
|
11519
|
+
* @param {*} [options] Override http request option.
|
|
11520
|
+
* @throws {RequiredError}
|
|
11521
|
+
*/
|
|
11522
|
+
gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options) {
|
|
11523
|
+
return localVarFp
|
|
11524
|
+
.gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options)
|
|
11525
|
+
.then((request) => request(axios, basePath));
|
|
11526
|
+
},
|
|
11402
11527
|
/**
|
|
11403
11528
|
* Import a gameserver from CSMM. The export\'s shape is validated, an import record is created and the returned id reads it at `GET /csmm-import/{id}`. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerImportFromCSMM`
|
|
11404
11529
|
* @summary Import from csmm
|
|
@@ -11831,7 +11956,7 @@ export class GameServerApi extends BaseAPI {
|
|
|
11831
11956
|
.then((request) => request(this.axios, this.basePath));
|
|
11832
11957
|
}
|
|
11833
11958
|
/**
|
|
11834
|
-
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
11959
|
+
* Give an item to a player. Accepts item UUID (preferred) or item code. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItem`
|
|
11835
11960
|
* @summary Give item
|
|
11836
11961
|
* @param {string} gameServerId
|
|
11837
11962
|
* @param {string} playerId
|
|
@@ -11845,6 +11970,21 @@ export class GameServerApi extends BaseAPI {
|
|
|
11845
11970
|
.gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options)
|
|
11846
11971
|
.then((request) => request(this.axios, this.basePath));
|
|
11847
11972
|
}
|
|
11973
|
+
/**
|
|
11974
|
+
* Give several items to one player. Each line names an item by itemId or code and must belong to this game server. Every line is checked before anything is sent: an unknown item, a duplicate item and quality pair, or an unreachable player fails the whole request with 400 and nothing is sent. Otherwise every line is sent and the outcome is returned per line: DELIVERED, FAILED (the game refused it, it was not applied) or UNKNOWN (the game server may or may not have applied it, do not blindly retry). Requires gameserver to be online and reachable. Emits an `items-given` event. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGiveItems`
|
|
11975
|
+
* @summary Give items
|
|
11976
|
+
* @param {string} gameServerId
|
|
11977
|
+
* @param {string} playerId
|
|
11978
|
+
* @param {GiveItemsInputDTO} [giveItemsInputDTO] GiveItemsInputDTO
|
|
11979
|
+
* @param {*} [options] Override http request option.
|
|
11980
|
+
* @throws {RequiredError}
|
|
11981
|
+
* @memberof GameServerApi
|
|
11982
|
+
*/
|
|
11983
|
+
gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options) {
|
|
11984
|
+
return GameServerApiFp(this.configuration)
|
|
11985
|
+
.gameServerControllerGiveItems(gameServerId, playerId, giveItemsInputDTO, options)
|
|
11986
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11987
|
+
}
|
|
11848
11988
|
/**
|
|
11849
11989
|
* Import a gameserver from CSMM. The export\'s shape is validated, an import record is created and the returned id reads it at `GET /csmm-import/{id}`. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerImportFromCSMM`
|
|
11850
11990
|
* @summary Import from csmm
|
|
@@ -13201,19 +13341,89 @@ export class ItemApi extends BaseAPI {
|
|
|
13201
13341
|
}
|
|
13202
13342
|
}
|
|
13203
13343
|
/**
|
|
13204
|
-
*
|
|
13344
|
+
* ItemSetApi - axios parameter creator
|
|
13205
13345
|
* @export
|
|
13206
13346
|
*/
|
|
13207
|
-
export const
|
|
13347
|
+
export const ItemSetApiAxiosParamCreator = function (configuration) {
|
|
13208
13348
|
return {
|
|
13209
13349
|
/**
|
|
13210
|
-
*
|
|
13211
|
-
* @summary
|
|
13350
|
+
* Copy an item set to other game servers of the same game type. Each line is re-matched by item code against the target’s items; lines with no match are listed per target and the rest are copied in order. Targets of another game type, or the source’s own game server, reject the whole request. Each target gets its own result and one target’s failure does not affect the others. A target fails when none of the lines match or when it already has a set with the same name; with replace, that set is replaced in one transaction and keeps its id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCopy`
|
|
13351
|
+
* @summary Copy
|
|
13352
|
+
* @param {string} id
|
|
13353
|
+
* @param {ItemSetCopyInputDTO} [itemSetCopyInputDTO] ItemSetCopyInputDTO
|
|
13212
13354
|
* @param {*} [options] Override http request option.
|
|
13213
13355
|
* @throws {RequiredError}
|
|
13214
13356
|
*/
|
|
13215
|
-
|
|
13216
|
-
|
|
13357
|
+
itemSetControllerCopy: async (id, itemSetCopyInputDTO, options = {}) => {
|
|
13358
|
+
// verify required parameter 'id' is not null or undefined
|
|
13359
|
+
assertParamExists('itemSetControllerCopy', 'id', id);
|
|
13360
|
+
const localVarPath = `/item-set/{id}/copy`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
13361
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13362
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13363
|
+
let baseOptions;
|
|
13364
|
+
if (configuration) {
|
|
13365
|
+
baseOptions = configuration.baseOptions;
|
|
13366
|
+
}
|
|
13367
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
13368
|
+
const localVarHeaderParameter = {};
|
|
13369
|
+
const localVarQueryParameter = {};
|
|
13370
|
+
// authentication bearerAuth required
|
|
13371
|
+
// http bearer authentication required
|
|
13372
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13373
|
+
// authentication domainAuth required
|
|
13374
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13375
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13377
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13378
|
+
localVarRequestOptions.data = serializeDataIfNeeded(itemSetCopyInputDTO, localVarRequestOptions, configuration);
|
|
13379
|
+
return {
|
|
13380
|
+
url: toPathString(localVarUrlObj),
|
|
13381
|
+
options: localVarRequestOptions,
|
|
13382
|
+
};
|
|
13383
|
+
},
|
|
13384
|
+
/**
|
|
13385
|
+
* Create an item set on a game server. The name is unique per game server, case-insensitively (409 on a clash). At most 50 lines, at least 1, and no duplicate item and quality pair. Lines reference items of that game server by id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCreate`
|
|
13386
|
+
* @summary Create
|
|
13387
|
+
* @param {ItemSetCreateDTO} [itemSetCreateDTO] ItemSetCreateDTO
|
|
13388
|
+
* @param {*} [options] Override http request option.
|
|
13389
|
+
* @throws {RequiredError}
|
|
13390
|
+
*/
|
|
13391
|
+
itemSetControllerCreate: async (itemSetCreateDTO, options = {}) => {
|
|
13392
|
+
const localVarPath = `/item-set/`;
|
|
13393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13395
|
+
let baseOptions;
|
|
13396
|
+
if (configuration) {
|
|
13397
|
+
baseOptions = configuration.baseOptions;
|
|
13398
|
+
}
|
|
13399
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
13400
|
+
const localVarHeaderParameter = {};
|
|
13401
|
+
const localVarQueryParameter = {};
|
|
13402
|
+
// authentication bearerAuth required
|
|
13403
|
+
// http bearer authentication required
|
|
13404
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13405
|
+
// authentication domainAuth required
|
|
13406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13409
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13410
|
+
localVarRequestOptions.data = serializeDataIfNeeded(itemSetCreateDTO, localVarRequestOptions, configuration);
|
|
13411
|
+
return {
|
|
13412
|
+
url: toPathString(localVarUrlObj),
|
|
13413
|
+
options: localVarRequestOptions,
|
|
13414
|
+
};
|
|
13415
|
+
},
|
|
13416
|
+
/**
|
|
13417
|
+
* Get an item set by id, with its lines in order and each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerGetOne`
|
|
13418
|
+
* @summary Get one
|
|
13419
|
+
* @param {string} id
|
|
13420
|
+
* @param {*} [options] Override http request option.
|
|
13421
|
+
* @throws {RequiredError}
|
|
13422
|
+
*/
|
|
13423
|
+
itemSetControllerGetOne: async (id, options = {}) => {
|
|
13424
|
+
// verify required parameter 'id' is not null or undefined
|
|
13425
|
+
assertParamExists('itemSetControllerGetOne', 'id', id);
|
|
13426
|
+
const localVarPath = `/item-set/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
13217
13427
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13218
13428
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13219
13429
|
let baseOptions;
|
|
@@ -13223,6 +13433,10 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
13223
13433
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13224
13434
|
const localVarHeaderParameter = {};
|
|
13225
13435
|
const localVarQueryParameter = {};
|
|
13436
|
+
// authentication bearerAuth required
|
|
13437
|
+
// http bearer authentication required
|
|
13438
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13439
|
+
// authentication domainAuth required
|
|
13226
13440
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13227
13441
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13228
13442
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -13232,13 +13446,374 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
13232
13446
|
};
|
|
13233
13447
|
},
|
|
13234
13448
|
/**
|
|
13235
|
-
*
|
|
13236
|
-
* @summary
|
|
13449
|
+
* Delete an item set and its lines. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerRemove`
|
|
13450
|
+
* @summary Remove
|
|
13451
|
+
* @param {string} id
|
|
13237
13452
|
* @param {*} [options] Override http request option.
|
|
13238
13453
|
* @throws {RequiredError}
|
|
13239
13454
|
*/
|
|
13240
|
-
|
|
13241
|
-
|
|
13455
|
+
itemSetControllerRemove: async (id, options = {}) => {
|
|
13456
|
+
// verify required parameter 'id' is not null or undefined
|
|
13457
|
+
assertParamExists('itemSetControllerRemove', 'id', id);
|
|
13458
|
+
const localVarPath = `/item-set/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
13459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13460
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13461
|
+
let baseOptions;
|
|
13462
|
+
if (configuration) {
|
|
13463
|
+
baseOptions = configuration.baseOptions;
|
|
13464
|
+
}
|
|
13465
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
13466
|
+
const localVarHeaderParameter = {};
|
|
13467
|
+
const localVarQueryParameter = {};
|
|
13468
|
+
// authentication bearerAuth required
|
|
13469
|
+
// http bearer authentication required
|
|
13470
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13471
|
+
// authentication domainAuth required
|
|
13472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13474
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13475
|
+
return {
|
|
13476
|
+
url: toPathString(localVarUrlObj),
|
|
13477
|
+
options: localVarRequestOptions,
|
|
13478
|
+
};
|
|
13479
|
+
},
|
|
13480
|
+
/**
|
|
13481
|
+
* Search item sets: named, saved lists of item lines (item, amount, optional quality) on one game server. Filter by gameServerId and name; extend with lines.item to include each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerSearch`
|
|
13482
|
+
* @summary Search
|
|
13483
|
+
* @param {ItemSetSearchInputDTO} [itemSetSearchInputDTO] ItemSetSearchInputDTO
|
|
13484
|
+
* @param {*} [options] Override http request option.
|
|
13485
|
+
* @throws {RequiredError}
|
|
13486
|
+
*/
|
|
13487
|
+
itemSetControllerSearch: async (itemSetSearchInputDTO, options = {}) => {
|
|
13488
|
+
const localVarPath = `/item-set/search`;
|
|
13489
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13490
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13491
|
+
let baseOptions;
|
|
13492
|
+
if (configuration) {
|
|
13493
|
+
baseOptions = configuration.baseOptions;
|
|
13494
|
+
}
|
|
13495
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
13496
|
+
const localVarHeaderParameter = {};
|
|
13497
|
+
const localVarQueryParameter = {};
|
|
13498
|
+
// authentication bearerAuth required
|
|
13499
|
+
// http bearer authentication required
|
|
13500
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13501
|
+
// authentication domainAuth required
|
|
13502
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13505
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13506
|
+
localVarRequestOptions.data = serializeDataIfNeeded(itemSetSearchInputDTO, localVarRequestOptions, configuration);
|
|
13507
|
+
return {
|
|
13508
|
+
url: toPathString(localVarUrlObj),
|
|
13509
|
+
options: localVarRequestOptions,
|
|
13510
|
+
};
|
|
13511
|
+
},
|
|
13512
|
+
/**
|
|
13513
|
+
* Update an item set. Send name to rename (409 on a clash) and/or lines to replace all of them; the same limits as create apply. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerUpdate`
|
|
13514
|
+
* @summary Update
|
|
13515
|
+
* @param {string} id
|
|
13516
|
+
* @param {ItemSetUpdateDTO} [itemSetUpdateDTO] ItemSetUpdateDTO
|
|
13517
|
+
* @param {*} [options] Override http request option.
|
|
13518
|
+
* @throws {RequiredError}
|
|
13519
|
+
*/
|
|
13520
|
+
itemSetControllerUpdate: async (id, itemSetUpdateDTO, options = {}) => {
|
|
13521
|
+
// verify required parameter 'id' is not null or undefined
|
|
13522
|
+
assertParamExists('itemSetControllerUpdate', 'id', id);
|
|
13523
|
+
const localVarPath = `/item-set/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
13524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13525
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13526
|
+
let baseOptions;
|
|
13527
|
+
if (configuration) {
|
|
13528
|
+
baseOptions = configuration.baseOptions;
|
|
13529
|
+
}
|
|
13530
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
13531
|
+
const localVarHeaderParameter = {};
|
|
13532
|
+
const localVarQueryParameter = {};
|
|
13533
|
+
// authentication bearerAuth required
|
|
13534
|
+
// http bearer authentication required
|
|
13535
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13536
|
+
// authentication domainAuth required
|
|
13537
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13538
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13539
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13540
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13541
|
+
localVarRequestOptions.data = serializeDataIfNeeded(itemSetUpdateDTO, localVarRequestOptions, configuration);
|
|
13542
|
+
return {
|
|
13543
|
+
url: toPathString(localVarUrlObj),
|
|
13544
|
+
options: localVarRequestOptions,
|
|
13545
|
+
};
|
|
13546
|
+
},
|
|
13547
|
+
};
|
|
13548
|
+
};
|
|
13549
|
+
/**
|
|
13550
|
+
* ItemSetApi - functional programming interface
|
|
13551
|
+
* @export
|
|
13552
|
+
*/
|
|
13553
|
+
export const ItemSetApiFp = function (configuration) {
|
|
13554
|
+
const localVarAxiosParamCreator = ItemSetApiAxiosParamCreator(configuration);
|
|
13555
|
+
return {
|
|
13556
|
+
/**
|
|
13557
|
+
* Copy an item set to other game servers of the same game type. Each line is re-matched by item code against the target’s items; lines with no match are listed per target and the rest are copied in order. Targets of another game type, or the source’s own game server, reject the whole request. Each target gets its own result and one target’s failure does not affect the others. A target fails when none of the lines match or when it already has a set with the same name; with replace, that set is replaced in one transaction and keeps its id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCopy`
|
|
13558
|
+
* @summary Copy
|
|
13559
|
+
* @param {string} id
|
|
13560
|
+
* @param {ItemSetCopyInputDTO} [itemSetCopyInputDTO] ItemSetCopyInputDTO
|
|
13561
|
+
* @param {*} [options] Override http request option.
|
|
13562
|
+
* @throws {RequiredError}
|
|
13563
|
+
*/
|
|
13564
|
+
async itemSetControllerCopy(id, itemSetCopyInputDTO, options) {
|
|
13565
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerCopy(id, itemSetCopyInputDTO, options);
|
|
13566
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13567
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerCopy']?.[localVarOperationServerIndex]?.url;
|
|
13568
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13569
|
+
},
|
|
13570
|
+
/**
|
|
13571
|
+
* Create an item set on a game server. The name is unique per game server, case-insensitively (409 on a clash). At most 50 lines, at least 1, and no duplicate item and quality pair. Lines reference items of that game server by id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCreate`
|
|
13572
|
+
* @summary Create
|
|
13573
|
+
* @param {ItemSetCreateDTO} [itemSetCreateDTO] ItemSetCreateDTO
|
|
13574
|
+
* @param {*} [options] Override http request option.
|
|
13575
|
+
* @throws {RequiredError}
|
|
13576
|
+
*/
|
|
13577
|
+
async itemSetControllerCreate(itemSetCreateDTO, options) {
|
|
13578
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerCreate(itemSetCreateDTO, options);
|
|
13579
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13580
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
13581
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13582
|
+
},
|
|
13583
|
+
/**
|
|
13584
|
+
* Get an item set by id, with its lines in order and each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerGetOne`
|
|
13585
|
+
* @summary Get one
|
|
13586
|
+
* @param {string} id
|
|
13587
|
+
* @param {*} [options] Override http request option.
|
|
13588
|
+
* @throws {RequiredError}
|
|
13589
|
+
*/
|
|
13590
|
+
async itemSetControllerGetOne(id, options) {
|
|
13591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerGetOne(id, options);
|
|
13592
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13593
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerGetOne']?.[localVarOperationServerIndex]?.url;
|
|
13594
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13595
|
+
},
|
|
13596
|
+
/**
|
|
13597
|
+
* Delete an item set and its lines. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerRemove`
|
|
13598
|
+
* @summary Remove
|
|
13599
|
+
* @param {string} id
|
|
13600
|
+
* @param {*} [options] Override http request option.
|
|
13601
|
+
* @throws {RequiredError}
|
|
13602
|
+
*/
|
|
13603
|
+
async itemSetControllerRemove(id, options) {
|
|
13604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerRemove(id, options);
|
|
13605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13606
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
13607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13608
|
+
},
|
|
13609
|
+
/**
|
|
13610
|
+
* Search item sets: named, saved lists of item lines (item, amount, optional quality) on one game server. Filter by gameServerId and name; extend with lines.item to include each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerSearch`
|
|
13611
|
+
* @summary Search
|
|
13612
|
+
* @param {ItemSetSearchInputDTO} [itemSetSearchInputDTO] ItemSetSearchInputDTO
|
|
13613
|
+
* @param {*} [options] Override http request option.
|
|
13614
|
+
* @throws {RequiredError}
|
|
13615
|
+
*/
|
|
13616
|
+
async itemSetControllerSearch(itemSetSearchInputDTO, options) {
|
|
13617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerSearch(itemSetSearchInputDTO, options);
|
|
13618
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13619
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerSearch']?.[localVarOperationServerIndex]?.url;
|
|
13620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13621
|
+
},
|
|
13622
|
+
/**
|
|
13623
|
+
* Update an item set. Send name to rename (409 on a clash) and/or lines to replace all of them; the same limits as create apply. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerUpdate`
|
|
13624
|
+
* @summary Update
|
|
13625
|
+
* @param {string} id
|
|
13626
|
+
* @param {ItemSetUpdateDTO} [itemSetUpdateDTO] ItemSetUpdateDTO
|
|
13627
|
+
* @param {*} [options] Override http request option.
|
|
13628
|
+
* @throws {RequiredError}
|
|
13629
|
+
*/
|
|
13630
|
+
async itemSetControllerUpdate(id, itemSetUpdateDTO, options) {
|
|
13631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.itemSetControllerUpdate(id, itemSetUpdateDTO, options);
|
|
13632
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13633
|
+
const localVarOperationServerBasePath = operationServerMap['ItemSetApi.itemSetControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
13634
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13635
|
+
},
|
|
13636
|
+
};
|
|
13637
|
+
};
|
|
13638
|
+
/**
|
|
13639
|
+
* ItemSetApi - factory interface
|
|
13640
|
+
* @export
|
|
13641
|
+
*/
|
|
13642
|
+
export const ItemSetApiFactory = function (configuration, basePath, axios) {
|
|
13643
|
+
const localVarFp = ItemSetApiFp(configuration);
|
|
13644
|
+
return {
|
|
13645
|
+
/**
|
|
13646
|
+
* Copy an item set to other game servers of the same game type. Each line is re-matched by item code against the target’s items; lines with no match are listed per target and the rest are copied in order. Targets of another game type, or the source’s own game server, reject the whole request. Each target gets its own result and one target’s failure does not affect the others. A target fails when none of the lines match or when it already has a set with the same name; with replace, that set is replaced in one transaction and keeps its id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCopy`
|
|
13647
|
+
* @summary Copy
|
|
13648
|
+
* @param {string} id
|
|
13649
|
+
* @param {ItemSetCopyInputDTO} [itemSetCopyInputDTO] ItemSetCopyInputDTO
|
|
13650
|
+
* @param {*} [options] Override http request option.
|
|
13651
|
+
* @throws {RequiredError}
|
|
13652
|
+
*/
|
|
13653
|
+
itemSetControllerCopy(id, itemSetCopyInputDTO, options) {
|
|
13654
|
+
return localVarFp
|
|
13655
|
+
.itemSetControllerCopy(id, itemSetCopyInputDTO, options)
|
|
13656
|
+
.then((request) => request(axios, basePath));
|
|
13657
|
+
},
|
|
13658
|
+
/**
|
|
13659
|
+
* Create an item set on a game server. The name is unique per game server, case-insensitively (409 on a clash). At most 50 lines, at least 1, and no duplicate item and quality pair. Lines reference items of that game server by id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCreate`
|
|
13660
|
+
* @summary Create
|
|
13661
|
+
* @param {ItemSetCreateDTO} [itemSetCreateDTO] ItemSetCreateDTO
|
|
13662
|
+
* @param {*} [options] Override http request option.
|
|
13663
|
+
* @throws {RequiredError}
|
|
13664
|
+
*/
|
|
13665
|
+
itemSetControllerCreate(itemSetCreateDTO, options) {
|
|
13666
|
+
return localVarFp.itemSetControllerCreate(itemSetCreateDTO, options).then((request) => request(axios, basePath));
|
|
13667
|
+
},
|
|
13668
|
+
/**
|
|
13669
|
+
* Get an item set by id, with its lines in order and each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerGetOne`
|
|
13670
|
+
* @summary Get one
|
|
13671
|
+
* @param {string} id
|
|
13672
|
+
* @param {*} [options] Override http request option.
|
|
13673
|
+
* @throws {RequiredError}
|
|
13674
|
+
*/
|
|
13675
|
+
itemSetControllerGetOne(id, options) {
|
|
13676
|
+
return localVarFp.itemSetControllerGetOne(id, options).then((request) => request(axios, basePath));
|
|
13677
|
+
},
|
|
13678
|
+
/**
|
|
13679
|
+
* Delete an item set and its lines. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerRemove`
|
|
13680
|
+
* @summary Remove
|
|
13681
|
+
* @param {string} id
|
|
13682
|
+
* @param {*} [options] Override http request option.
|
|
13683
|
+
* @throws {RequiredError}
|
|
13684
|
+
*/
|
|
13685
|
+
itemSetControllerRemove(id, options) {
|
|
13686
|
+
return localVarFp.itemSetControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
13687
|
+
},
|
|
13688
|
+
/**
|
|
13689
|
+
* Search item sets: named, saved lists of item lines (item, amount, optional quality) on one game server. Filter by gameServerId and name; extend with lines.item to include each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerSearch`
|
|
13690
|
+
* @summary Search
|
|
13691
|
+
* @param {ItemSetSearchInputDTO} [itemSetSearchInputDTO] ItemSetSearchInputDTO
|
|
13692
|
+
* @param {*} [options] Override http request option.
|
|
13693
|
+
* @throws {RequiredError}
|
|
13694
|
+
*/
|
|
13695
|
+
itemSetControllerSearch(itemSetSearchInputDTO, options) {
|
|
13696
|
+
return localVarFp
|
|
13697
|
+
.itemSetControllerSearch(itemSetSearchInputDTO, options)
|
|
13698
|
+
.then((request) => request(axios, basePath));
|
|
13699
|
+
},
|
|
13700
|
+
/**
|
|
13701
|
+
* Update an item set. Send name to rename (409 on a clash) and/or lines to replace all of them; the same limits as create apply. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerUpdate`
|
|
13702
|
+
* @summary Update
|
|
13703
|
+
* @param {string} id
|
|
13704
|
+
* @param {ItemSetUpdateDTO} [itemSetUpdateDTO] ItemSetUpdateDTO
|
|
13705
|
+
* @param {*} [options] Override http request option.
|
|
13706
|
+
* @throws {RequiredError}
|
|
13707
|
+
*/
|
|
13708
|
+
itemSetControllerUpdate(id, itemSetUpdateDTO, options) {
|
|
13709
|
+
return localVarFp
|
|
13710
|
+
.itemSetControllerUpdate(id, itemSetUpdateDTO, options)
|
|
13711
|
+
.then((request) => request(axios, basePath));
|
|
13712
|
+
},
|
|
13713
|
+
};
|
|
13714
|
+
};
|
|
13715
|
+
/**
|
|
13716
|
+
* ItemSetApi - object-oriented interface
|
|
13717
|
+
* @export
|
|
13718
|
+
* @class ItemSetApi
|
|
13719
|
+
* @extends {BaseAPI}
|
|
13720
|
+
*/
|
|
13721
|
+
export class ItemSetApi extends BaseAPI {
|
|
13722
|
+
/**
|
|
13723
|
+
* Copy an item set to other game servers of the same game type. Each line is re-matched by item code against the target’s items; lines with no match are listed per target and the rest are copied in order. Targets of another game type, or the source’s own game server, reject the whole request. Each target gets its own result and one target’s failure does not affect the others. A target fails when none of the lines match or when it already has a set with the same name; with replace, that set is replaced in one transaction and keeps its id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCopy`
|
|
13724
|
+
* @summary Copy
|
|
13725
|
+
* @param {string} id
|
|
13726
|
+
* @param {ItemSetCopyInputDTO} [itemSetCopyInputDTO] ItemSetCopyInputDTO
|
|
13727
|
+
* @param {*} [options] Override http request option.
|
|
13728
|
+
* @throws {RequiredError}
|
|
13729
|
+
* @memberof ItemSetApi
|
|
13730
|
+
*/
|
|
13731
|
+
itemSetControllerCopy(id, itemSetCopyInputDTO, options) {
|
|
13732
|
+
return ItemSetApiFp(this.configuration)
|
|
13733
|
+
.itemSetControllerCopy(id, itemSetCopyInputDTO, options)
|
|
13734
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13735
|
+
}
|
|
13736
|
+
/**
|
|
13737
|
+
* Create an item set on a game server. The name is unique per game server, case-insensitively (409 on a clash). At most 50 lines, at least 1, and no duplicate item and quality pair. Lines reference items of that game server by id. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerCreate`
|
|
13738
|
+
* @summary Create
|
|
13739
|
+
* @param {ItemSetCreateDTO} [itemSetCreateDTO] ItemSetCreateDTO
|
|
13740
|
+
* @param {*} [options] Override http request option.
|
|
13741
|
+
* @throws {RequiredError}
|
|
13742
|
+
* @memberof ItemSetApi
|
|
13743
|
+
*/
|
|
13744
|
+
itemSetControllerCreate(itemSetCreateDTO, options) {
|
|
13745
|
+
return ItemSetApiFp(this.configuration)
|
|
13746
|
+
.itemSetControllerCreate(itemSetCreateDTO, options)
|
|
13747
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13748
|
+
}
|
|
13749
|
+
/**
|
|
13750
|
+
* Get an item set by id, with its lines in order and each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerGetOne`
|
|
13751
|
+
* @summary Get one
|
|
13752
|
+
* @param {string} id
|
|
13753
|
+
* @param {*} [options] Override http request option.
|
|
13754
|
+
* @throws {RequiredError}
|
|
13755
|
+
* @memberof ItemSetApi
|
|
13756
|
+
*/
|
|
13757
|
+
itemSetControllerGetOne(id, options) {
|
|
13758
|
+
return ItemSetApiFp(this.configuration)
|
|
13759
|
+
.itemSetControllerGetOne(id, options)
|
|
13760
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13761
|
+
}
|
|
13762
|
+
/**
|
|
13763
|
+
* Delete an item set and its lines. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerRemove`
|
|
13764
|
+
* @summary Remove
|
|
13765
|
+
* @param {string} id
|
|
13766
|
+
* @param {*} [options] Override http request option.
|
|
13767
|
+
* @throws {RequiredError}
|
|
13768
|
+
* @memberof ItemSetApi
|
|
13769
|
+
*/
|
|
13770
|
+
itemSetControllerRemove(id, options) {
|
|
13771
|
+
return ItemSetApiFp(this.configuration)
|
|
13772
|
+
.itemSetControllerRemove(id, options)
|
|
13773
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13774
|
+
}
|
|
13775
|
+
/**
|
|
13776
|
+
* Search item sets: named, saved lists of item lines (item, amount, optional quality) on one game server. Filter by gameServerId and name; extend with lines.item to include each line’s item. Required permissions: `READ_ITEMS`<br> OperationId: `ItemSetControllerSearch`
|
|
13777
|
+
* @summary Search
|
|
13778
|
+
* @param {ItemSetSearchInputDTO} [itemSetSearchInputDTO] ItemSetSearchInputDTO
|
|
13779
|
+
* @param {*} [options] Override http request option.
|
|
13780
|
+
* @throws {RequiredError}
|
|
13781
|
+
* @memberof ItemSetApi
|
|
13782
|
+
*/
|
|
13783
|
+
itemSetControllerSearch(itemSetSearchInputDTO, options) {
|
|
13784
|
+
return ItemSetApiFp(this.configuration)
|
|
13785
|
+
.itemSetControllerSearch(itemSetSearchInputDTO, options)
|
|
13786
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13787
|
+
}
|
|
13788
|
+
/**
|
|
13789
|
+
* Update an item set. Send name to rename (409 on a clash) and/or lines to replace all of them; the same limits as create apply. Required permissions: `MANAGE_ITEMS`<br> OperationId: `ItemSetControllerUpdate`
|
|
13790
|
+
* @summary Update
|
|
13791
|
+
* @param {string} id
|
|
13792
|
+
* @param {ItemSetUpdateDTO} [itemSetUpdateDTO] ItemSetUpdateDTO
|
|
13793
|
+
* @param {*} [options] Override http request option.
|
|
13794
|
+
* @throws {RequiredError}
|
|
13795
|
+
* @memberof ItemSetApi
|
|
13796
|
+
*/
|
|
13797
|
+
itemSetControllerUpdate(id, itemSetUpdateDTO, options) {
|
|
13798
|
+
return ItemSetApiFp(this.configuration)
|
|
13799
|
+
.itemSetControllerUpdate(id, itemSetUpdateDTO, options)
|
|
13800
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13801
|
+
}
|
|
13802
|
+
}
|
|
13803
|
+
/**
|
|
13804
|
+
* MetaApi - axios parameter creator
|
|
13805
|
+
* @export
|
|
13806
|
+
*/
|
|
13807
|
+
export const MetaApiAxiosParamCreator = function (configuration) {
|
|
13808
|
+
return {
|
|
13809
|
+
/**
|
|
13810
|
+
* <br> OperationId: `MetaGetHealth`
|
|
13811
|
+
* @summary Get health
|
|
13812
|
+
* @param {*} [options] Override http request option.
|
|
13813
|
+
* @throws {RequiredError}
|
|
13814
|
+
*/
|
|
13815
|
+
metaGetHealth: async (options = {}) => {
|
|
13816
|
+
const localVarPath = `/healthz`;
|
|
13242
13817
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13243
13818
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13244
13819
|
let baseOptions;
|
|
@@ -13257,13 +13832,13 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
13257
13832
|
};
|
|
13258
13833
|
},
|
|
13259
13834
|
/**
|
|
13260
|
-
* <br> OperationId: `
|
|
13261
|
-
* @summary Get
|
|
13835
|
+
* <br> OperationId: `MetaGetLiveness`
|
|
13836
|
+
* @summary Get liveness
|
|
13262
13837
|
* @param {*} [options] Override http request option.
|
|
13263
13838
|
* @throws {RequiredError}
|
|
13264
13839
|
*/
|
|
13265
|
-
|
|
13266
|
-
const localVarPath = `/
|
|
13840
|
+
metaGetLiveness: async (options = {}) => {
|
|
13841
|
+
const localVarPath = `/livez`;
|
|
13267
13842
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13268
13843
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13269
13844
|
let baseOptions;
|
|
@@ -13414,18 +13989,6 @@ export const MetaApiFp = function (configuration) {
|
|
|
13414
13989
|
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
|
|
13415
13990
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13416
13991
|
},
|
|
13417
|
-
/**
|
|
13418
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
13419
|
-
* @summary Get metrics
|
|
13420
|
-
* @param {*} [options] Override http request option.
|
|
13421
|
-
* @throws {RequiredError}
|
|
13422
|
-
*/
|
|
13423
|
-
async metaGetMetrics(options) {
|
|
13424
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
|
|
13425
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13426
|
-
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
|
|
13427
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13428
|
-
},
|
|
13429
13992
|
/**
|
|
13430
13993
|
* <br> OperationId: `MetaGetOpenApi`
|
|
13431
13994
|
* @summary Get open api
|
|
@@ -13501,15 +14064,6 @@ export const MetaApiFactory = function (configuration, basePath, axios) {
|
|
|
13501
14064
|
metaGetLiveness(options) {
|
|
13502
14065
|
return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
|
|
13503
14066
|
},
|
|
13504
|
-
/**
|
|
13505
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
13506
|
-
* @summary Get metrics
|
|
13507
|
-
* @param {*} [options] Override http request option.
|
|
13508
|
-
* @throws {RequiredError}
|
|
13509
|
-
*/
|
|
13510
|
-
metaGetMetrics(options) {
|
|
13511
|
-
return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
|
|
13512
|
-
},
|
|
13513
14067
|
/**
|
|
13514
14068
|
* <br> OperationId: `MetaGetOpenApi`
|
|
13515
14069
|
* @summary Get open api
|
|
@@ -13579,18 +14133,6 @@ export class MetaApi extends BaseAPI {
|
|
|
13579
14133
|
.metaGetLiveness(options)
|
|
13580
14134
|
.then((request) => request(this.axios, this.basePath));
|
|
13581
14135
|
}
|
|
13582
|
-
/**
|
|
13583
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
13584
|
-
* @summary Get metrics
|
|
13585
|
-
* @param {*} [options] Override http request option.
|
|
13586
|
-
* @throws {RequiredError}
|
|
13587
|
-
* @memberof MetaApi
|
|
13588
|
-
*/
|
|
13589
|
-
metaGetMetrics(options) {
|
|
13590
|
-
return MetaApiFp(this.configuration)
|
|
13591
|
-
.metaGetMetrics(options)
|
|
13592
|
-
.then((request) => request(this.axios, this.basePath));
|
|
13593
|
-
}
|
|
13594
14136
|
/**
|
|
13595
14137
|
* <br> OperationId: `MetaGetOpenApi`
|
|
13596
14138
|
* @summary Get open api
|