tornapi-typescript 5.0.0 → 5.0.1

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/index.d.ts CHANGED
@@ -540,6 +540,12 @@ export interface UserCompetitionEasterEggs {
540
540
  score: number;
541
541
  total: number;
542
542
  }
543
+ export interface UserCompetitionElimination {
544
+ name: "Elimination";
545
+ score: number;
546
+ team?: string;
547
+ attacks?: number;
548
+ }
543
549
  export interface UserCompetitionRps {
544
550
  name: "Rock, Paper, Scissors";
545
551
  status: UserRpsStatus;
@@ -549,7 +555,7 @@ export interface UserCompetitionRps {
549
555
  };
550
556
  }
551
557
  export interface UserCompetitionResponse {
552
- competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps;
558
+ competition: UserCompetitionHalloween | UserCompetitionEasterEggs | UserCompetitionRps | UserCompetitionElimination;
553
559
  }
554
560
  export interface UserFaction {
555
561
  id: FactionId;
package/dist/index.ts CHANGED
@@ -5536,6 +5536,13 @@ export interface UserCompetitionEasterEggs {
5536
5536
  total: number;
5537
5537
  }
5538
5538
 
5539
+ export interface UserCompetitionElimination {
5540
+ name: "Elimination";
5541
+ score: number;
5542
+ team?: string;
5543
+ attacks?: number;
5544
+ }
5545
+
5539
5546
  export interface UserCompetitionRps {
5540
5547
  name: "Rock, Paper, Scissors";
5541
5548
  status: UserRpsStatus;
@@ -5549,7 +5556,8 @@ export interface UserCompetitionResponse {
5549
5556
  competition:
5550
5557
  | UserCompetitionHalloween
5551
5558
  | UserCompetitionEasterEggs
5552
- | UserCompetitionRps;
5559
+ | UserCompetitionRps
5560
+ | UserCompetitionElimination;
5553
5561
  }
5554
5562
 
5555
5563
  export interface UserFaction {
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Torn API",
5
5
  "description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
6
- "version": "5.0.0"
6
+ "version": "5.0.1"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -422,7 +422,7 @@
422
422
  "tags": [
423
423
  "User"
424
424
  ],
425
- "summary": "Get your competition's event start time",
425
+ "summary": "Get your calendar events start time",
426
426
  "description": "Requires minimal access key. <br>Only available to yourself.",
427
427
  "operationId": "4cc4cc6fa3764f9732db9589e91d7739",
428
428
  "parameters": [
@@ -3426,6 +3426,12 @@
3426
3426
  {
3427
3427
  "$ref": "#/components/schemas/UserForumFriendsResponse"
3428
3428
  },
3429
+ {
3430
+ "$ref": "#/components/schemas/UserPropertyResponse"
3431
+ },
3432
+ {
3433
+ "$ref": "#/components/schemas/ReportsResponse"
3434
+ },
3429
3435
  {
3430
3436
  "$ref": "#/components/schemas/UserHofResponse"
3431
3437
  },
@@ -3489,6 +3495,9 @@
3489
3495
  {
3490
3496
  "$ref": "#/components/schemas/UserListResponse"
3491
3497
  },
3498
+ {
3499
+ "$ref": "#/components/schemas/UserEquipmentResponse"
3500
+ },
3492
3501
  {
3493
3502
  "$ref": "#/components/schemas/UserMissionsResponse"
3494
3503
  },
@@ -9223,9 +9232,15 @@
9223
9232
  {
9224
9233
  "$ref": "#/components/schemas/TornMeritsResponse"
9225
9234
  },
9235
+ {
9236
+ "$ref": "#/components/schemas/TornOrganizedCrimeResponse"
9237
+ },
9226
9238
  {
9227
9239
  "$ref": "#/components/schemas/TornHonorsResponse"
9228
9240
  },
9241
+ {
9242
+ "$ref": "#/components/schemas/TornItemDetailsResponse"
9243
+ },
9229
9244
  {
9230
9245
  "$ref": "#/components/schemas/TornMedalsResponse"
9231
9246
  },
@@ -16728,6 +16743,33 @@
16728
16743
  },
16729
16744
  "type": "object"
16730
16745
  },
16746
+ "UserCompetitionElimination": {
16747
+ "required": [
16748
+ "name",
16749
+ "score",
16750
+ "total"
16751
+ ],
16752
+ "properties": {
16753
+ "name": {
16754
+ "type": "string",
16755
+ "enum": [
16756
+ "Elimination"
16757
+ ]
16758
+ },
16759
+ "score": {
16760
+ "type": "integer",
16761
+ "format": "int32"
16762
+ },
16763
+ "team": {
16764
+ "type": "string"
16765
+ },
16766
+ "attacks": {
16767
+ "type": "integer",
16768
+ "format": "int32"
16769
+ }
16770
+ },
16771
+ "type": "object"
16772
+ },
16731
16773
  "UserCompetitionRps": {
16732
16774
  "required": [
16733
16775
  "name",
@@ -16779,6 +16821,9 @@
16779
16821
  },
16780
16822
  {
16781
16823
  "$ref": "#/components/schemas/UserCompetitionRps"
16824
+ },
16825
+ {
16826
+ "$ref": "#/components/schemas/UserCompetitionElimination"
16782
16827
  }
16783
16828
  ]
16784
16829
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },