@takaro/apiclient 0.0.0-dev.7ef2191 → 0.0.0-dev.8168003
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/generated/api.d.ts +850 -17
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +341 -0
- package/dist/generated/api.js.map +1 -1
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/baseClient.js +6 -1
- package/dist/lib/baseClient.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +1152 -39
- package/src/lib/baseClient.ts +7 -1
package/dist/generated/api.js
CHANGED
|
@@ -154,6 +154,52 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
154
154
|
PlayerDeath: 'player-death',
|
|
155
155
|
EntityKilled: 'entity-killed',
|
|
156
156
|
};
|
|
157
|
+
export const EventExploreFiltersDTOEventNameEnum = {
|
|
158
|
+
RoleAssigned: 'role-assigned',
|
|
159
|
+
RoleRemoved: 'role-removed',
|
|
160
|
+
RoleCreated: 'role-created',
|
|
161
|
+
RoleUpdated: 'role-updated',
|
|
162
|
+
RoleDeleted: 'role-deleted',
|
|
163
|
+
CommandExecuted: 'command-executed',
|
|
164
|
+
CommandExecutionDenied: 'command-execution-denied',
|
|
165
|
+
HookExecuted: 'hook-executed',
|
|
166
|
+
CronjobExecuted: 'cronjob-executed',
|
|
167
|
+
CurrencyAdded: 'currency-added',
|
|
168
|
+
CurrencyDeducted: 'currency-deducted',
|
|
169
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
170
|
+
SettingsSet: 'settings-set',
|
|
171
|
+
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
172
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
173
|
+
ServerStatusChanged: 'server-status-changed',
|
|
174
|
+
ModuleCreated: 'module-created',
|
|
175
|
+
ModuleUpdated: 'module-updated',
|
|
176
|
+
ModuleDeleted: 'module-deleted',
|
|
177
|
+
ModuleInstalled: 'module-installed',
|
|
178
|
+
ModuleUninstalled: 'module-uninstalled',
|
|
179
|
+
PlayerCreated: 'player-created',
|
|
180
|
+
ShopListingCreated: 'shop-listing-created',
|
|
181
|
+
ShopListingUpdated: 'shop-listing-updated',
|
|
182
|
+
ShopListingDeleted: 'shop-listing-deleted',
|
|
183
|
+
ShopOrderCreated: 'shop-order-created',
|
|
184
|
+
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
185
|
+
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
186
|
+
PlayerLinked: 'player-linked',
|
|
187
|
+
GameserverCreated: 'gameserver-created',
|
|
188
|
+
GameserverUpdated: 'gameserver-updated',
|
|
189
|
+
GameserverDeleted: 'gameserver-deleted',
|
|
190
|
+
PlayerBanned: 'player-banned',
|
|
191
|
+
PlayerUnbanned: 'player-unbanned',
|
|
192
|
+
PlayerDeleted: 'player-deleted',
|
|
193
|
+
ShopActionExecuted: 'shop-action-executed',
|
|
194
|
+
PlayerInventoryChanged: 'player-inventory-changed',
|
|
195
|
+
EventRateLimited: 'event-rate-limited',
|
|
196
|
+
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
197
|
+
PlayerConnected: 'player-connected',
|
|
198
|
+
PlayerDisconnected: 'player-disconnected',
|
|
199
|
+
ChatMessage: 'chat-message',
|
|
200
|
+
PlayerDeath: 'player-death',
|
|
201
|
+
EntityKilled: 'entity-killed',
|
|
202
|
+
};
|
|
157
203
|
export const EventOutputDTOEventNameEnum = {
|
|
158
204
|
RoleAssigned: 'role-assigned',
|
|
159
205
|
RoleRemoved: 'role-removed',
|
|
@@ -256,6 +302,10 @@ export const EventSearchInputDTOSortDirectionEnum = {
|
|
|
256
302
|
Asc: 'asc',
|
|
257
303
|
Desc: 'desc',
|
|
258
304
|
};
|
|
305
|
+
export const EventVolumeInputDTOGroupByEnum = {
|
|
306
|
+
EventName: 'eventName',
|
|
307
|
+
GameServerId: 'gameServerId',
|
|
308
|
+
};
|
|
259
309
|
export const FunctionSearchInputDTOExtendEnum = {
|
|
260
310
|
Version: 'version',
|
|
261
311
|
CronJob: 'cronJob',
|
|
@@ -663,6 +713,17 @@ export const JobStatusOutputDTOStatusEnum = {
|
|
|
663
713
|
Waiting: 'waiting',
|
|
664
714
|
WaitingChildren: 'waiting-children',
|
|
665
715
|
};
|
|
716
|
+
export const MetaFilterGroupOrLeafDTOLogicalOperatorEnum = {
|
|
717
|
+
And: 'AND',
|
|
718
|
+
Or: 'OR',
|
|
719
|
+
};
|
|
720
|
+
export const MetaFilterGroupOrLeafDTOOperatorEnum = {
|
|
721
|
+
Equal: '=',
|
|
722
|
+
NotEqual: '!=',
|
|
723
|
+
GreaterThan: '>',
|
|
724
|
+
LessThan: '<',
|
|
725
|
+
ArrayContains: 'array_contains',
|
|
726
|
+
};
|
|
666
727
|
export const ModuleInstallationSearchInputDTOSortDirectionEnum = {
|
|
667
728
|
Asc: 'asc',
|
|
668
729
|
Desc: 'desc',
|
|
@@ -6743,6 +6804,64 @@ export const EventApiAxiosParamCreator = function (configuration) {
|
|
|
6743
6804
|
options: localVarRequestOptions,
|
|
6744
6805
|
};
|
|
6745
6806
|
},
|
|
6807
|
+
/**
|
|
6808
|
+
* Cursor-paginated event search. Rows are hydrated with the current display names of their related entities (player, gameserver, module, user). Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
6809
|
+
* @summary Explore events
|
|
6810
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
*/
|
|
6814
|
+
eventControllerExplore: async (eventExploreInputDTO, options = {}) => {
|
|
6815
|
+
const localVarPath = `/event/explore`;
|
|
6816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6817
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6818
|
+
let baseOptions;
|
|
6819
|
+
if (configuration) {
|
|
6820
|
+
baseOptions = configuration.baseOptions;
|
|
6821
|
+
}
|
|
6822
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6823
|
+
const localVarHeaderParameter = {};
|
|
6824
|
+
const localVarQueryParameter = {};
|
|
6825
|
+
// authentication domainAuth required
|
|
6826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6827
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6829
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6830
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventExploreInputDTO, localVarRequestOptions, configuration);
|
|
6831
|
+
return {
|
|
6832
|
+
url: toPathString(localVarUrlObj),
|
|
6833
|
+
options: localVarRequestOptions,
|
|
6834
|
+
};
|
|
6835
|
+
},
|
|
6836
|
+
/**
|
|
6837
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
6838
|
+
* @summary Get event volume time-series with optional grouping
|
|
6839
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
6840
|
+
* @param {*} [options] Override http request option.
|
|
6841
|
+
* @throws {RequiredError}
|
|
6842
|
+
*/
|
|
6843
|
+
eventControllerExploreVolume: async (eventVolumeInputDTO, options = {}) => {
|
|
6844
|
+
const localVarPath = `/event/explore/volume`;
|
|
6845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6847
|
+
let baseOptions;
|
|
6848
|
+
if (configuration) {
|
|
6849
|
+
baseOptions = configuration.baseOptions;
|
|
6850
|
+
}
|
|
6851
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6852
|
+
const localVarHeaderParameter = {};
|
|
6853
|
+
const localVarQueryParameter = {};
|
|
6854
|
+
// authentication domainAuth required
|
|
6855
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6856
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6857
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6858
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6859
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventVolumeInputDTO, localVarRequestOptions, configuration);
|
|
6860
|
+
return {
|
|
6861
|
+
url: toPathString(localVarUrlObj),
|
|
6862
|
+
options: localVarRequestOptions,
|
|
6863
|
+
};
|
|
6864
|
+
},
|
|
6746
6865
|
/**
|
|
6747
6866
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6748
6867
|
* @summary Export events to CSV
|
|
@@ -6881,6 +7000,32 @@ export const EventApiFp = function (configuration) {
|
|
|
6881
7000
|
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6882
7001
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6883
7002
|
},
|
|
7003
|
+
/**
|
|
7004
|
+
* Cursor-paginated event search. Rows are hydrated with the current display names of their related entities (player, gameserver, module, user). Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
7005
|
+
* @summary Explore events
|
|
7006
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
7007
|
+
* @param {*} [options] Override http request option.
|
|
7008
|
+
* @throws {RequiredError}
|
|
7009
|
+
*/
|
|
7010
|
+
async eventControllerExplore(eventExploreInputDTO, options) {
|
|
7011
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerExplore(eventExploreInputDTO, options);
|
|
7012
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7013
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerExplore']?.[localVarOperationServerIndex]?.url;
|
|
7014
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7015
|
+
},
|
|
7016
|
+
/**
|
|
7017
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7018
|
+
* @summary Get event volume time-series with optional grouping
|
|
7019
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7020
|
+
* @param {*} [options] Override http request option.
|
|
7021
|
+
* @throws {RequiredError}
|
|
7022
|
+
*/
|
|
7023
|
+
async eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7024
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerExploreVolume(eventVolumeInputDTO, options);
|
|
7025
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7026
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.eventControllerExploreVolume']?.[localVarOperationServerIndex]?.url;
|
|
7027
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7028
|
+
},
|
|
6884
7029
|
/**
|
|
6885
7030
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6886
7031
|
* @summary Export events to CSV
|
|
@@ -6952,6 +7097,30 @@ export const EventApiFactory = function (configuration, basePath, axios) {
|
|
|
6952
7097
|
eventControllerCreate(eventCreateDTO, options) {
|
|
6953
7098
|
return localVarFp.eventControllerCreate(eventCreateDTO, options).then((request) => request(axios, basePath));
|
|
6954
7099
|
},
|
|
7100
|
+
/**
|
|
7101
|
+
* Cursor-paginated event search. Rows are hydrated with the current display names of their related entities (player, gameserver, module, user). Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
7102
|
+
* @summary Explore events
|
|
7103
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
7104
|
+
* @param {*} [options] Override http request option.
|
|
7105
|
+
* @throws {RequiredError}
|
|
7106
|
+
*/
|
|
7107
|
+
eventControllerExplore(eventExploreInputDTO, options) {
|
|
7108
|
+
return localVarFp
|
|
7109
|
+
.eventControllerExplore(eventExploreInputDTO, options)
|
|
7110
|
+
.then((request) => request(axios, basePath));
|
|
7111
|
+
},
|
|
7112
|
+
/**
|
|
7113
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7114
|
+
* @summary Get event volume time-series with optional grouping
|
|
7115
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7116
|
+
* @param {*} [options] Override http request option.
|
|
7117
|
+
* @throws {RequiredError}
|
|
7118
|
+
*/
|
|
7119
|
+
eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7120
|
+
return localVarFp
|
|
7121
|
+
.eventControllerExploreVolume(eventVolumeInputDTO, options)
|
|
7122
|
+
.then((request) => request(axios, basePath));
|
|
7123
|
+
},
|
|
6955
7124
|
/**
|
|
6956
7125
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
6957
7126
|
* @summary Export events to CSV
|
|
@@ -7016,6 +7185,32 @@ export class EventApi extends BaseAPI {
|
|
|
7016
7185
|
.eventControllerCreate(eventCreateDTO, options)
|
|
7017
7186
|
.then((request) => request(this.axios, this.basePath));
|
|
7018
7187
|
}
|
|
7188
|
+
/**
|
|
7189
|
+
* Cursor-paginated event search. Rows are hydrated with the current display names of their related entities (player, gameserver, module, user). Use the returned `nextCursor` to fetch older events; pass `cursor: null` (or omit) to start from the newest. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExplore`
|
|
7190
|
+
* @summary Explore events
|
|
7191
|
+
* @param {EventExploreInputDTO} [eventExploreInputDTO] EventExploreInputDTO
|
|
7192
|
+
* @param {*} [options] Override http request option.
|
|
7193
|
+
* @throws {RequiredError}
|
|
7194
|
+
* @memberof EventApi
|
|
7195
|
+
*/
|
|
7196
|
+
eventControllerExplore(eventExploreInputDTO, options) {
|
|
7197
|
+
return EventApiFp(this.configuration)
|
|
7198
|
+
.eventControllerExplore(eventExploreInputDTO, options)
|
|
7199
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7200
|
+
}
|
|
7201
|
+
/**
|
|
7202
|
+
* Returns time-bucketed event counts, optionally stacked by event name or game server. Accepts the same filter shape as `/event/explore` so the graph matches the stream. Bucket size adapts to the range. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExploreVolume`
|
|
7203
|
+
* @summary Get event volume time-series with optional grouping
|
|
7204
|
+
* @param {EventVolumeInputDTO} [eventVolumeInputDTO] EventVolumeInputDTO
|
|
7205
|
+
* @param {*} [options] Override http request option.
|
|
7206
|
+
* @throws {RequiredError}
|
|
7207
|
+
* @memberof EventApi
|
|
7208
|
+
*/
|
|
7209
|
+
eventControllerExploreVolume(eventVolumeInputDTO, options) {
|
|
7210
|
+
return EventApiFp(this.configuration)
|
|
7211
|
+
.eventControllerExploreVolume(eventVolumeInputDTO, options)
|
|
7212
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7213
|
+
}
|
|
7019
7214
|
/**
|
|
7020
7215
|
* Export events matching the search criteria to CSV format. Accepts the same parameters as the search endpoint. Maximum time range is 90 days. Required permissions: `READ_EVENTS`<br> OperationId: `EventControllerExport`
|
|
7021
7216
|
* @summary Export events to CSV
|
|
@@ -11720,6 +11915,38 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
11720
11915
|
options: localVarRequestOptions,
|
|
11721
11916
|
};
|
|
11722
11917
|
},
|
|
11918
|
+
/**
|
|
11919
|
+
* Bulk assign a role to multiple players. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerBulkAssignRole`
|
|
11920
|
+
* @summary Bulk assign role
|
|
11921
|
+
* @param {string} roleId
|
|
11922
|
+
* @param {PlayerBulkAssignRoleInputDTO} [playerBulkAssignRoleInputDTO] PlayerBulkAssignRoleInputDTO
|
|
11923
|
+
* @param {*} [options] Override http request option.
|
|
11924
|
+
* @throws {RequiredError}
|
|
11925
|
+
*/
|
|
11926
|
+
playerControllerBulkAssignRole: async (roleId, playerBulkAssignRoleInputDTO, options = {}) => {
|
|
11927
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
11928
|
+
assertParamExists('playerControllerBulkAssignRole', 'roleId', roleId);
|
|
11929
|
+
const localVarPath = `/player/role/{roleId}`.replace(`{${'roleId'}}`, encodeURIComponent(String(roleId)));
|
|
11930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11932
|
+
let baseOptions;
|
|
11933
|
+
if (configuration) {
|
|
11934
|
+
baseOptions = configuration.baseOptions;
|
|
11935
|
+
}
|
|
11936
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
11937
|
+
const localVarHeaderParameter = {};
|
|
11938
|
+
const localVarQueryParameter = {};
|
|
11939
|
+
// authentication domainAuth required
|
|
11940
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11941
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11943
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11944
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerBulkAssignRoleInputDTO, localVarRequestOptions, configuration);
|
|
11945
|
+
return {
|
|
11946
|
+
url: toPathString(localVarUrlObj),
|
|
11947
|
+
options: localVarRequestOptions,
|
|
11948
|
+
};
|
|
11949
|
+
},
|
|
11723
11950
|
/**
|
|
11724
11951
|
* Bulk delete players by their IDs. Deletes Player records which cascades to POG records. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerBulkDelete`
|
|
11725
11952
|
* @summary Bulk delete
|
|
@@ -11989,6 +12216,20 @@ export const PlayerApiFp = function (configuration) {
|
|
|
11989
12216
|
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerAssignRole']?.[localVarOperationServerIndex]?.url;
|
|
11990
12217
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11991
12218
|
},
|
|
12219
|
+
/**
|
|
12220
|
+
* Bulk assign a role to multiple players. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerBulkAssignRole`
|
|
12221
|
+
* @summary Bulk assign role
|
|
12222
|
+
* @param {string} roleId
|
|
12223
|
+
* @param {PlayerBulkAssignRoleInputDTO} [playerBulkAssignRoleInputDTO] PlayerBulkAssignRoleInputDTO
|
|
12224
|
+
* @param {*} [options] Override http request option.
|
|
12225
|
+
* @throws {RequiredError}
|
|
12226
|
+
*/
|
|
12227
|
+
async playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options) {
|
|
12228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options);
|
|
12229
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12230
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerBulkAssignRole']?.[localVarOperationServerIndex]?.url;
|
|
12231
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12232
|
+
},
|
|
11992
12233
|
/**
|
|
11993
12234
|
* Bulk delete players by their IDs. Deletes Player records which cascades to POG records. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerBulkDelete`
|
|
11994
12235
|
* @summary Bulk delete
|
|
@@ -12142,6 +12383,19 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
12142
12383
|
.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options)
|
|
12143
12384
|
.then((request) => request(axios, basePath));
|
|
12144
12385
|
},
|
|
12386
|
+
/**
|
|
12387
|
+
* Bulk assign a role to multiple players. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerBulkAssignRole`
|
|
12388
|
+
* @summary Bulk assign role
|
|
12389
|
+
* @param {string} roleId
|
|
12390
|
+
* @param {PlayerBulkAssignRoleInputDTO} [playerBulkAssignRoleInputDTO] PlayerBulkAssignRoleInputDTO
|
|
12391
|
+
* @param {*} [options] Override http request option.
|
|
12392
|
+
* @throws {RequiredError}
|
|
12393
|
+
*/
|
|
12394
|
+
playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options) {
|
|
12395
|
+
return localVarFp
|
|
12396
|
+
.playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options)
|
|
12397
|
+
.then((request) => request(axios, basePath));
|
|
12398
|
+
},
|
|
12145
12399
|
/**
|
|
12146
12400
|
* Bulk delete players by their IDs. Deletes Player records which cascades to POG records. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerBulkDelete`
|
|
12147
12401
|
* @summary Bulk delete
|
|
@@ -12299,6 +12553,20 @@ export class PlayerApi extends BaseAPI {
|
|
|
12299
12553
|
.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options)
|
|
12300
12554
|
.then((request) => request(this.axios, this.basePath));
|
|
12301
12555
|
}
|
|
12556
|
+
/**
|
|
12557
|
+
* Bulk assign a role to multiple players. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerBulkAssignRole`
|
|
12558
|
+
* @summary Bulk assign role
|
|
12559
|
+
* @param {string} roleId
|
|
12560
|
+
* @param {PlayerBulkAssignRoleInputDTO} [playerBulkAssignRoleInputDTO] PlayerBulkAssignRoleInputDTO
|
|
12561
|
+
* @param {*} [options] Override http request option.
|
|
12562
|
+
* @throws {RequiredError}
|
|
12563
|
+
* @memberof PlayerApi
|
|
12564
|
+
*/
|
|
12565
|
+
playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options) {
|
|
12566
|
+
return PlayerApiFp(this.configuration)
|
|
12567
|
+
.playerControllerBulkAssignRole(roleId, playerBulkAssignRoleInputDTO, options)
|
|
12568
|
+
.then((request) => request(this.axios, this.basePath));
|
|
12569
|
+
}
|
|
12302
12570
|
/**
|
|
12303
12571
|
* Bulk delete players by their IDs. Deletes Player records which cascades to POG records. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerBulkDelete`
|
|
12304
12572
|
* @summary Bulk delete
|
|
@@ -12422,6 +12690,38 @@ export const PlayerOnGameServerApiAxiosParamCreator = function (configuration) {
|
|
|
12422
12690
|
options: localVarRequestOptions,
|
|
12423
12691
|
};
|
|
12424
12692
|
},
|
|
12693
|
+
/**
|
|
12694
|
+
* Bulk add currency to multiple players on a game server. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
|
|
12695
|
+
* @summary Bulk add currency
|
|
12696
|
+
* @param {string} gameServerId
|
|
12697
|
+
* @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
|
|
12698
|
+
* @param {*} [options] Override http request option.
|
|
12699
|
+
* @throws {RequiredError}
|
|
12700
|
+
*/
|
|
12701
|
+
playerOnGameServerControllerBulkAddCurrency: async (gameServerId, pogBulkAddCurrencyInputDTO, options = {}) => {
|
|
12702
|
+
// verify required parameter 'gameServerId' is not null or undefined
|
|
12703
|
+
assertParamExists('playerOnGameServerControllerBulkAddCurrency', 'gameServerId', gameServerId);
|
|
12704
|
+
const localVarPath = `/gameserver/{gameServerId}/addCurrency`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
|
|
12705
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12706
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12707
|
+
let baseOptions;
|
|
12708
|
+
if (configuration) {
|
|
12709
|
+
baseOptions = configuration.baseOptions;
|
|
12710
|
+
}
|
|
12711
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12712
|
+
const localVarHeaderParameter = {};
|
|
12713
|
+
const localVarQueryParameter = {};
|
|
12714
|
+
// authentication domainAuth required
|
|
12715
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12716
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12718
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12719
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pogBulkAddCurrencyInputDTO, localVarRequestOptions, configuration);
|
|
12720
|
+
return {
|
|
12721
|
+
url: toPathString(localVarUrlObj),
|
|
12722
|
+
options: localVarRequestOptions,
|
|
12723
|
+
};
|
|
12724
|
+
},
|
|
12425
12725
|
/**
|
|
12426
12726
|
* Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
|
|
12427
12727
|
* @summary Bulk delete
|
|
@@ -12690,6 +12990,20 @@ export const PlayerOnGameServerApiFp = function (configuration) {
|
|
|
12690
12990
|
const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerAddCurrency']?.[localVarOperationServerIndex]?.url;
|
|
12691
12991
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12692
12992
|
},
|
|
12993
|
+
/**
|
|
12994
|
+
* Bulk add currency to multiple players on a game server. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
|
|
12995
|
+
* @summary Bulk add currency
|
|
12996
|
+
* @param {string} gameServerId
|
|
12997
|
+
* @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
|
|
12998
|
+
* @param {*} [options] Override http request option.
|
|
12999
|
+
* @throws {RequiredError}
|
|
13000
|
+
*/
|
|
13001
|
+
async playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
|
|
13002
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options);
|
|
13003
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13004
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerBulkAddCurrency']?.[localVarOperationServerIndex]?.url;
|
|
13005
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13006
|
+
},
|
|
12693
13007
|
/**
|
|
12694
13008
|
* Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
|
|
12695
13009
|
* @summary Bulk delete
|
|
@@ -12817,6 +13131,19 @@ export const PlayerOnGameServerApiFactory = function (configuration, basePath, a
|
|
|
12817
13131
|
.playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
|
|
12818
13132
|
.then((request) => request(axios, basePath));
|
|
12819
13133
|
},
|
|
13134
|
+
/**
|
|
13135
|
+
* Bulk add currency to multiple players on a game server. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
|
|
13136
|
+
* @summary Bulk add currency
|
|
13137
|
+
* @param {string} gameServerId
|
|
13138
|
+
* @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
|
|
13139
|
+
* @param {*} [options] Override http request option.
|
|
13140
|
+
* @throws {RequiredError}
|
|
13141
|
+
*/
|
|
13142
|
+
playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
|
|
13143
|
+
return localVarFp
|
|
13144
|
+
.playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
|
|
13145
|
+
.then((request) => request(axios, basePath));
|
|
13146
|
+
},
|
|
12820
13147
|
/**
|
|
12821
13148
|
* Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
|
|
12822
13149
|
* @summary Bulk delete
|
|
@@ -12935,6 +13262,20 @@ export class PlayerOnGameServerApi extends BaseAPI {
|
|
|
12935
13262
|
.playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
|
|
12936
13263
|
.then((request) => request(this.axios, this.basePath));
|
|
12937
13264
|
}
|
|
13265
|
+
/**
|
|
13266
|
+
* Bulk add currency to multiple players on a game server. Processes each player individually and reports partial failures. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
|
|
13267
|
+
* @summary Bulk add currency
|
|
13268
|
+
* @param {string} gameServerId
|
|
13269
|
+
* @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
|
|
13270
|
+
* @param {*} [options] Override http request option.
|
|
13271
|
+
* @throws {RequiredError}
|
|
13272
|
+
* @memberof PlayerOnGameServerApi
|
|
13273
|
+
*/
|
|
13274
|
+
playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
|
|
13275
|
+
return PlayerOnGameServerApiFp(this.configuration)
|
|
13276
|
+
.playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
|
|
13277
|
+
.then((request) => request(this.axios, this.basePath));
|
|
13278
|
+
}
|
|
12938
13279
|
/**
|
|
12939
13280
|
* Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
|
|
12940
13281
|
* @summary Bulk delete
|