@takaro/apiclient 0.0.0-dev.d4f306c → 0.0.0-dev.d604ff8

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.
@@ -196,6 +196,7 @@ export const EventCreateDTOEventNameEnum = {
196
196
  PlayerDeleted: 'player-deleted',
197
197
  ShopActionExecuted: 'shop-action-executed',
198
198
  PlayerInventoryChanged: 'player-inventory-changed',
199
+ PlayerLevelChanged: 'player-level-changed',
199
200
  EventRateLimited: 'event-rate-limited',
200
201
  PlayerSyncSnapshot: 'player-sync-snapshot',
201
202
  InviteLinkCreated: 'invite-link-created',
@@ -217,6 +218,15 @@ export const EventCreateDTOEventNameEnum = {
217
218
  PlayerDeath: 'player-death',
218
219
  EntityKilled: 'entity-killed',
219
220
  };
221
+ export const EventInventoryChangedCauseEnum = {
222
+ Pickup: 'pickup',
223
+ Drop: 'drop',
224
+ Craft: 'craft',
225
+ Loot: 'loot',
226
+ Trade: 'trade',
227
+ Death: 'death',
228
+ Other: 'other',
229
+ };
220
230
  export const EventOutputDTOEventNameEnum = {
221
231
  RoleAssigned: 'role-assigned',
222
232
  RoleRemoved: 'role-removed',
@@ -259,6 +269,7 @@ export const EventOutputDTOEventNameEnum = {
259
269
  PlayerDeleted: 'player-deleted',
260
270
  ShopActionExecuted: 'shop-action-executed',
261
271
  PlayerInventoryChanged: 'player-inventory-changed',
272
+ PlayerLevelChanged: 'player-level-changed',
262
273
  EventRateLimited: 'event-rate-limited',
263
274
  PlayerSyncSnapshot: 'player-sync-snapshot',
264
275
  InviteLinkCreated: 'invite-link-created',
@@ -287,6 +298,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
287
298
  export const FixtureHistoryDeleteInputDTOStoreEnum = {
288
299
  Analytics: 'analytics',
289
300
  Postgres: 'postgres',
301
+ Tracking: 'tracking',
290
302
  };
291
303
  export const FixtureHistoryEventDTOEventNameEnum = {
292
304
  PlayerConnected: 'player-connected',
@@ -305,6 +317,20 @@ export const FixtureHistoryOrderDTOStatusEnum = {
305
317
  Completed: 'COMPLETED',
306
318
  Canceled: 'CANCELED',
307
319
  };
320
+ export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
321
+ Added: 'added',
322
+ Removed: 'removed',
323
+ Changed: 'changed',
324
+ };
325
+ export const FixtureHistoryTrackingChangeDTOCauseEnum = {
326
+ Pickup: 'pickup',
327
+ Drop: 'drop',
328
+ Craft: 'craft',
329
+ Loot: 'loot',
330
+ Trade: 'trade',
331
+ Death: 'death',
332
+ Other: 'other',
333
+ };
308
334
  export const GameServerCreateDTOTypeEnum = {
309
335
  Sevendaystodie: 'SEVENDAYSTODIE',
310
336
  Rust: 'RUST',
@@ -351,6 +377,7 @@ export const GetJobInputDTOTypeEnum = {
351
377
  SyncItems: 'syncItems',
352
378
  SyncEntities: 'syncEntities',
353
379
  SyncBans: 'syncBans',
380
+ SyncLocations: 'syncLocations',
354
381
  SyncMapImages: 'syncMapImages',
355
382
  SyncMapUploads: 'syncMapUploads',
356
383
  SyncGameIcons: 'syncGameIcons',
@@ -412,6 +439,7 @@ export const HookCreateDTOEventTypeEnum = {
412
439
  PlayerDeleted: 'player-deleted',
413
440
  ShopActionExecuted: 'shop-action-executed',
414
441
  PlayerInventoryChanged: 'player-inventory-changed',
442
+ PlayerLevelChanged: 'player-level-changed',
415
443
  EventRateLimited: 'event-rate-limited',
416
444
  PlayerSyncSnapshot: 'player-sync-snapshot',
417
445
  InviteLinkCreated: 'invite-link-created',
@@ -477,6 +505,7 @@ export const HookOutputDTOEventTypeEnum = {
477
505
  PlayerDeleted: 'player-deleted',
478
506
  ShopActionExecuted: 'shop-action-executed',
479
507
  PlayerInventoryChanged: 'player-inventory-changed',
508
+ PlayerLevelChanged: 'player-level-changed',
480
509
  EventRateLimited: 'event-rate-limited',
481
510
  PlayerSyncSnapshot: 'player-sync-snapshot',
482
511
  InviteLinkCreated: 'invite-link-created',
@@ -542,6 +571,7 @@ export const HookTriggerDTOEventTypeEnum = {
542
571
  PlayerDeleted: 'player-deleted',
543
572
  ShopActionExecuted: 'shop-action-executed',
544
573
  PlayerInventoryChanged: 'player-inventory-changed',
574
+ PlayerLevelChanged: 'player-level-changed',
545
575
  EventRateLimited: 'event-rate-limited',
546
576
  PlayerSyncSnapshot: 'player-sync-snapshot',
547
577
  InviteLinkCreated: 'invite-link-created',
@@ -607,6 +637,7 @@ export const HookUpdateDTOEventTypeEnum = {
607
637
  PlayerDeleted: 'player-deleted',
608
638
  ShopActionExecuted: 'shop-action-executed',
609
639
  PlayerInventoryChanged: 'player-inventory-changed',
640
+ PlayerLevelChanged: 'player-level-changed',
610
641
  EventRateLimited: 'event-rate-limited',
611
642
  PlayerSyncSnapshot: 'player-sync-snapshot',
612
643
  InviteLinkCreated: 'invite-link-created',
@@ -677,6 +708,7 @@ export const IHookEventTypeEnum = {
677
708
  PlayerDeleted: 'player-deleted',
678
709
  ShopActionExecuted: 'shop-action-executed',
679
710
  PlayerInventoryChanged: 'player-inventory-changed',
711
+ PlayerLevelChanged: 'player-level-changed',
680
712
  EventRateLimited: 'event-rate-limited',
681
713
  PlayerSyncSnapshot: 'player-sync-snapshot',
682
714
  InviteLinkCreated: 'invite-link-created',
@@ -697,6 +729,29 @@ export const ITakaroQuerySortDirectionEnum = {
697
729
  Asc: 'asc',
698
730
  Desc: 'desc',
699
731
  };
732
+ export const InventoryChangeCounterpartDTOKindEnum = {
733
+ Container: 'container',
734
+ Player: 'player',
735
+ };
736
+ export const InventoryChangeDTOChangeTypeEnum = {
737
+ Added: 'added',
738
+ Removed: 'removed',
739
+ Changed: 'changed',
740
+ };
741
+ export const InventoryChangeDTOCauseEnum = {
742
+ Pickup: 'pickup',
743
+ Drop: 'drop',
744
+ Craft: 'craft',
745
+ Loot: 'loot',
746
+ Trade: 'trade',
747
+ Death: 'death',
748
+ Other: 'other',
749
+ Unknown: 'unknown',
750
+ };
751
+ export const InventoryCounterpartDTOKindEnum = {
752
+ Container: 'container',
753
+ Player: 'player',
754
+ };
700
755
  export const InviteLinkCreateResultDTOStatusEnum = {
701
756
  Active: 'ACTIVE',
702
757
  Revoked: 'REVOKED',
@@ -802,6 +857,8 @@ export const PERMISSIONS = {
802
857
  ViewDiscordInfo: 'VIEW_DISCORD_INFO',
803
858
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
804
859
  ManageApiKeys: 'MANAGE_API_KEYS',
860
+ ReadMap: 'READ_MAP',
861
+ ReadTracking: 'READ_TRACKING',
805
862
  };
806
863
  export const PlanChangeOutputDTOActionEnum = {
807
864
  Create: 'create',
@@ -835,6 +892,15 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
835
892
  Asc: 'asc',
836
893
  Desc: 'desc',
837
894
  };
895
+ export const PogProgressionOutputDTOSourceEnum = {
896
+ Server: 'server',
897
+ ClientReported: 'client-reported',
898
+ };
899
+ export const PositionAreaShapeDTOTypeEnum = {
900
+ Circle: 'circle',
901
+ Rectangle: 'rectangle',
902
+ Polygon: 'polygon',
903
+ };
838
904
  export const RecentOrderDTOStatusEnum = {
839
905
  Completed: 'COMPLETED',
840
906
  Paid: 'PAID',
@@ -1007,6 +1073,10 @@ export const TakaroEventDomainCreatedOriginEnum = {
1007
1073
  Subscription: 'subscription',
1008
1074
  AdminSecret: 'admin_secret',
1009
1075
  };
1076
+ export const TakaroEventInventoryCounterpartKindEnum = {
1077
+ Container: 'container',
1078
+ Player: 'player',
1079
+ };
1010
1080
  export const TakaroEventItemsGivenLineResultEnum = {
1011
1081
  Delivered: 'DELIVERED',
1012
1082
  Failed: 'FAILED',
@@ -1029,6 +1099,23 @@ export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
1029
1099
  Removed: 'removed',
1030
1100
  Changed: 'changed',
1031
1101
  };
1102
+ export const TakaroEventPlayerInventoryChangedCauseEnum = {
1103
+ Pickup: 'pickup',
1104
+ Drop: 'drop',
1105
+ Craft: 'craft',
1106
+ Loot: 'loot',
1107
+ Trade: 'trade',
1108
+ Death: 'death',
1109
+ Other: 'other',
1110
+ };
1111
+ export const TakaroEventPlayerLevelChangedDirectionEnum = {
1112
+ Up: 'up',
1113
+ Down: 'down',
1114
+ };
1115
+ export const TakaroEventPlayerLevelChangedSourceEnum = {
1116
+ Server: 'server',
1117
+ ClientReported: 'client-reported',
1118
+ };
1032
1119
  export const TakaroEventPlayerLinkedSourceEnum = {
1033
1120
  GameCode: 'game-code',
1034
1121
  WebCode: 'web-code',
@@ -1200,6 +1287,7 @@ export const TriggerJobInputDTOTypeEnum = {
1200
1287
  SyncItems: 'syncItems',
1201
1288
  SyncEntities: 'syncEntities',
1202
1289
  SyncBans: 'syncBans',
1290
+ SyncLocations: 'syncLocations',
1203
1291
  SyncMapImages: 'syncMapImages',
1204
1292
  SyncMapUploads: 'syncMapUploads',
1205
1293
  SyncGameIcons: 'syncGameIcons',
@@ -4124,6 +4212,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
4124
4212
  options: localVarRequestOptions,
4125
4213
  };
4126
4214
  },
4215
+ /**
4216
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4217
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4218
+ * @param {string} domainId
4219
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4220
+ * @param {*} [options] Override http request option.
4221
+ * @throws {RequiredError}
4222
+ */
4223
+ fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
4224
+ // verify required parameter 'domainId' is not null or undefined
4225
+ assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
4226
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4229
+ let baseOptions;
4230
+ if (configuration) {
4231
+ baseOptions = configuration.baseOptions;
4232
+ }
4233
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4234
+ const localVarHeaderParameter = {};
4235
+ const localVarQueryParameter = {};
4236
+ // authentication adminAuth required
4237
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4242
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
4243
+ return {
4244
+ url: toPathString(localVarUrlObj),
4245
+ options: localVarRequestOptions,
4246
+ };
4247
+ },
4248
+ /**
4249
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4250
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4251
+ * @param {string} domainId
4252
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4253
+ * @param {*} [options] Override http request option.
4254
+ * @throws {RequiredError}
4255
+ */
4256
+ fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
4257
+ // verify required parameter 'domainId' is not null or undefined
4258
+ assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
4259
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4262
+ let baseOptions;
4263
+ if (configuration) {
4264
+ baseOptions = configuration.baseOptions;
4265
+ }
4266
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4267
+ const localVarHeaderParameter = {};
4268
+ const localVarQueryParameter = {};
4269
+ // authentication adminAuth required
4270
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4272
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4273
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4274
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4275
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
4276
+ return {
4277
+ url: toPathString(localVarUrlObj),
4278
+ options: localVarRequestOptions,
4279
+ };
4280
+ },
4127
4281
  };
4128
4282
  };
4129
4283
  /**
@@ -4322,6 +4476,34 @@ export const FixtureHistoryApiFp = function (configuration) {
4322
4476
  ?.url;
4323
4477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4324
4478
  },
4479
+ /**
4480
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4481
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4482
+ * @param {string} domainId
4483
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4484
+ * @param {*} [options] Override http request option.
4485
+ * @throws {RequiredError}
4486
+ */
4487
+ async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
4489
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4490
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
4491
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4492
+ },
4493
+ /**
4494
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4495
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4496
+ * @param {string} domainId
4497
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4498
+ * @param {*} [options] Override http request option.
4499
+ * @throws {RequiredError}
4500
+ */
4501
+ async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
4503
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4504
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
4505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4506
+ },
4325
4507
  };
4326
4508
  };
4327
4509
  /**
@@ -4503,6 +4685,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
4503
4685
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4504
4686
  .then((request) => request(axios, basePath));
4505
4687
  },
4688
+ /**
4689
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4690
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4691
+ * @param {string} domainId
4692
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4693
+ * @param {*} [options] Override http request option.
4694
+ * @throws {RequiredError}
4695
+ */
4696
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4697
+ return localVarFp
4698
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4699
+ .then((request) => request(axios, basePath));
4700
+ },
4701
+ /**
4702
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4703
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4704
+ * @param {string} domainId
4705
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4706
+ * @param {*} [options] Override http request option.
4707
+ * @throws {RequiredError}
4708
+ */
4709
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4710
+ return localVarFp
4711
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4712
+ .then((request) => request(axios, basePath));
4713
+ },
4506
4714
  };
4507
4715
  };
4508
4716
  /**
@@ -4697,6 +4905,34 @@ export class FixtureHistoryApi extends BaseAPI {
4697
4905
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4698
4906
  .then((request) => request(this.axios, this.basePath));
4699
4907
  }
4908
+ /**
4909
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4910
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4911
+ * @param {string} domainId
4912
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4913
+ * @param {*} [options] Override http request option.
4914
+ * @throws {RequiredError}
4915
+ * @memberof FixtureHistoryApi
4916
+ */
4917
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4918
+ return FixtureHistoryApiFp(this.configuration)
4919
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4920
+ .then((request) => request(this.axios, this.basePath));
4921
+ }
4922
+ /**
4923
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4924
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4925
+ * @param {string} domainId
4926
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4927
+ * @param {*} [options] Override http request option.
4928
+ * @throws {RequiredError}
4929
+ * @memberof FixtureHistoryApi
4930
+ */
4931
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4932
+ return FixtureHistoryApiFp(this.configuration)
4933
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4934
+ .then((request) => request(this.axios, this.basePath));
4935
+ }
4700
4936
  }
4701
4937
  /**
4702
4938
  * MetaApi - axios parameter creator