@takaro/apiclient 0.0.0-dev.aa9d682 → 0.0.0-dev.aadd942

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.
@@ -217,6 +217,15 @@ export const EventCreateDTOEventNameEnum = {
217
217
  PlayerDeath: 'player-death',
218
218
  EntityKilled: 'entity-killed',
219
219
  };
220
+ export const EventInventoryChangedCauseEnum = {
221
+ Pickup: 'pickup',
222
+ Drop: 'drop',
223
+ Craft: 'craft',
224
+ Loot: 'loot',
225
+ Trade: 'trade',
226
+ Death: 'death',
227
+ Other: 'other',
228
+ };
220
229
  export const EventOutputDTOEventNameEnum = {
221
230
  RoleAssigned: 'role-assigned',
222
231
  RoleRemoved: 'role-removed',
@@ -287,6 +296,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
287
296
  export const FixtureHistoryDeleteInputDTOStoreEnum = {
288
297
  Analytics: 'analytics',
289
298
  Postgres: 'postgres',
299
+ Tracking: 'tracking',
290
300
  };
291
301
  export const FixtureHistoryEventDTOEventNameEnum = {
292
302
  PlayerConnected: 'player-connected',
@@ -305,6 +315,20 @@ export const FixtureHistoryOrderDTOStatusEnum = {
305
315
  Completed: 'COMPLETED',
306
316
  Canceled: 'CANCELED',
307
317
  };
318
+ export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
319
+ Added: 'added',
320
+ Removed: 'removed',
321
+ Changed: 'changed',
322
+ };
323
+ export const FixtureHistoryTrackingChangeDTOCauseEnum = {
324
+ Pickup: 'pickup',
325
+ Drop: 'drop',
326
+ Craft: 'craft',
327
+ Loot: 'loot',
328
+ Trade: 'trade',
329
+ Death: 'death',
330
+ Other: 'other',
331
+ };
308
332
  export const GameServerCreateDTOTypeEnum = {
309
333
  Sevendaystodie: 'SEVENDAYSTODIE',
310
334
  Rust: 'RUST',
@@ -351,6 +375,7 @@ export const GetJobInputDTOTypeEnum = {
351
375
  SyncItems: 'syncItems',
352
376
  SyncEntities: 'syncEntities',
353
377
  SyncBans: 'syncBans',
378
+ SyncLocations: 'syncLocations',
354
379
  SyncMapImages: 'syncMapImages',
355
380
  SyncMapUploads: 'syncMapUploads',
356
381
  SyncGameIcons: 'syncGameIcons',
@@ -697,6 +722,29 @@ export const ITakaroQuerySortDirectionEnum = {
697
722
  Asc: 'asc',
698
723
  Desc: 'desc',
699
724
  };
725
+ export const InventoryChangeCounterpartDTOKindEnum = {
726
+ Container: 'container',
727
+ Player: 'player',
728
+ };
729
+ export const InventoryChangeDTOChangeTypeEnum = {
730
+ Added: 'added',
731
+ Removed: 'removed',
732
+ Changed: 'changed',
733
+ };
734
+ export const InventoryChangeDTOCauseEnum = {
735
+ Pickup: 'pickup',
736
+ Drop: 'drop',
737
+ Craft: 'craft',
738
+ Loot: 'loot',
739
+ Trade: 'trade',
740
+ Death: 'death',
741
+ Other: 'other',
742
+ Unknown: 'unknown',
743
+ };
744
+ export const InventoryCounterpartDTOKindEnum = {
745
+ Container: 'container',
746
+ Player: 'player',
747
+ };
700
748
  export const InviteLinkCreateResultDTOStatusEnum = {
701
749
  Active: 'ACTIVE',
702
750
  Revoked: 'REVOKED',
@@ -802,6 +850,8 @@ export const PERMISSIONS = {
802
850
  ViewDiscordInfo: 'VIEW_DISCORD_INFO',
803
851
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
804
852
  ManageApiKeys: 'MANAGE_API_KEYS',
853
+ ReadMap: 'READ_MAP',
854
+ ReadTracking: 'READ_TRACKING',
805
855
  };
806
856
  export const PlanChangeOutputDTOActionEnum = {
807
857
  Create: 'create',
@@ -835,6 +885,11 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
835
885
  Asc: 'asc',
836
886
  Desc: 'desc',
837
887
  };
888
+ export const PositionAreaShapeDTOTypeEnum = {
889
+ Circle: 'circle',
890
+ Rectangle: 'rectangle',
891
+ Polygon: 'polygon',
892
+ };
838
893
  export const RecentOrderDTOStatusEnum = {
839
894
  Completed: 'COMPLETED',
840
895
  Paid: 'PAID',
@@ -1007,6 +1062,10 @@ export const TakaroEventDomainCreatedOriginEnum = {
1007
1062
  Subscription: 'subscription',
1008
1063
  AdminSecret: 'admin_secret',
1009
1064
  };
1065
+ export const TakaroEventInventoryCounterpartKindEnum = {
1066
+ Container: 'container',
1067
+ Player: 'player',
1068
+ };
1010
1069
  export const TakaroEventItemsGivenLineResultEnum = {
1011
1070
  Delivered: 'DELIVERED',
1012
1071
  Failed: 'FAILED',
@@ -1029,6 +1088,15 @@ export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
1029
1088
  Removed: 'removed',
1030
1089
  Changed: 'changed',
1031
1090
  };
1091
+ export const TakaroEventPlayerInventoryChangedCauseEnum = {
1092
+ Pickup: 'pickup',
1093
+ Drop: 'drop',
1094
+ Craft: 'craft',
1095
+ Loot: 'loot',
1096
+ Trade: 'trade',
1097
+ Death: 'death',
1098
+ Other: 'other',
1099
+ };
1032
1100
  export const TakaroEventPlayerLinkedSourceEnum = {
1033
1101
  GameCode: 'game-code',
1034
1102
  WebCode: 'web-code',
@@ -1200,6 +1268,7 @@ export const TriggerJobInputDTOTypeEnum = {
1200
1268
  SyncItems: 'syncItems',
1201
1269
  SyncEntities: 'syncEntities',
1202
1270
  SyncBans: 'syncBans',
1271
+ SyncLocations: 'syncLocations',
1203
1272
  SyncMapImages: 'syncMapImages',
1204
1273
  SyncMapUploads: 'syncMapUploads',
1205
1274
  SyncGameIcons: 'syncGameIcons',
@@ -4124,6 +4193,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
4124
4193
  options: localVarRequestOptions,
4125
4194
  };
4126
4195
  },
4196
+ /**
4197
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4198
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4199
+ * @param {string} domainId
4200
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4201
+ * @param {*} [options] Override http request option.
4202
+ * @throws {RequiredError}
4203
+ */
4204
+ fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
4205
+ // verify required parameter 'domainId' is not null or undefined
4206
+ assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
4207
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4209
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4210
+ let baseOptions;
4211
+ if (configuration) {
4212
+ baseOptions = configuration.baseOptions;
4213
+ }
4214
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4215
+ const localVarHeaderParameter = {};
4216
+ const localVarQueryParameter = {};
4217
+ // authentication adminAuth required
4218
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4219
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4222
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4223
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
4224
+ return {
4225
+ url: toPathString(localVarUrlObj),
4226
+ options: localVarRequestOptions,
4227
+ };
4228
+ },
4229
+ /**
4230
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4231
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4232
+ * @param {string} domainId
4233
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
4238
+ // verify required parameter 'domainId' is not null or undefined
4239
+ assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
4240
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4243
+ let baseOptions;
4244
+ if (configuration) {
4245
+ baseOptions = configuration.baseOptions;
4246
+ }
4247
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4248
+ const localVarHeaderParameter = {};
4249
+ const localVarQueryParameter = {};
4250
+ // authentication adminAuth required
4251
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4255
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4256
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
4257
+ return {
4258
+ url: toPathString(localVarUrlObj),
4259
+ options: localVarRequestOptions,
4260
+ };
4261
+ },
4127
4262
  };
4128
4263
  };
4129
4264
  /**
@@ -4322,6 +4457,34 @@ export const FixtureHistoryApiFp = function (configuration) {
4322
4457
  ?.url;
4323
4458
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4324
4459
  },
4460
+ /**
4461
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4462
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4463
+ * @param {string} domainId
4464
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4465
+ * @param {*} [options] Override http request option.
4466
+ * @throws {RequiredError}
4467
+ */
4468
+ async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
4470
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4471
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
4472
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4473
+ },
4474
+ /**
4475
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4476
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4477
+ * @param {string} domainId
4478
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4479
+ * @param {*} [options] Override http request option.
4480
+ * @throws {RequiredError}
4481
+ */
4482
+ async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
4484
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4485
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
4486
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4487
+ },
4325
4488
  };
4326
4489
  };
4327
4490
  /**
@@ -4503,6 +4666,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
4503
4666
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4504
4667
  .then((request) => request(axios, basePath));
4505
4668
  },
4669
+ /**
4670
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4671
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4672
+ * @param {string} domainId
4673
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4674
+ * @param {*} [options] Override http request option.
4675
+ * @throws {RequiredError}
4676
+ */
4677
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4678
+ return localVarFp
4679
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4680
+ .then((request) => request(axios, basePath));
4681
+ },
4682
+ /**
4683
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4684
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4685
+ * @param {string} domainId
4686
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4687
+ * @param {*} [options] Override http request option.
4688
+ * @throws {RequiredError}
4689
+ */
4690
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4691
+ return localVarFp
4692
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4693
+ .then((request) => request(axios, basePath));
4694
+ },
4506
4695
  };
4507
4696
  };
4508
4697
  /**
@@ -4697,6 +4886,34 @@ export class FixtureHistoryApi extends BaseAPI {
4697
4886
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4698
4887
  .then((request) => request(this.axios, this.basePath));
4699
4888
  }
4889
+ /**
4890
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4891
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4892
+ * @param {string} domainId
4893
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4894
+ * @param {*} [options] Override http request option.
4895
+ * @throws {RequiredError}
4896
+ * @memberof FixtureHistoryApi
4897
+ */
4898
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4899
+ return FixtureHistoryApiFp(this.configuration)
4900
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4901
+ .then((request) => request(this.axios, this.basePath));
4902
+ }
4903
+ /**
4904
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4905
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4906
+ * @param {string} domainId
4907
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4908
+ * @param {*} [options] Override http request option.
4909
+ * @throws {RequiredError}
4910
+ * @memberof FixtureHistoryApi
4911
+ */
4912
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4913
+ return FixtureHistoryApiFp(this.configuration)
4914
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4915
+ .then((request) => request(this.axios, this.basePath));
4916
+ }
4700
4917
  }
4701
4918
  /**
4702
4919
  * MetaApi - axios parameter creator