tornapi-typescript 4.2.3 → 4.2.4

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
@@ -9,6 +9,7 @@ export type UserDonatorStatusEnum = "Donator" | "Subscriber";
9
9
  export type UserMessageTypeEnum = "Company newsletter" | "Faction newsletter" | "Warning" | "User message";
10
10
  export type JobTypeEnum = "Army" | "Casino" | "Education" | "Grocer" | "Law" | "Medical";
11
11
  export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
12
+ export type UserLastActionStatusEnum = "Online" | "Idle" | "Offline";
12
13
  export type UserPlaneImageTypeEnum = "private_jet" | "light_aircraft" | "airliner";
13
14
  export type UserFlyMethodEnum = "Private" | "Business" | "Airstrip" | "Standard";
14
15
  export type UserStatusStateEnum = "Abroad" | "Awoken" | "Dormant" | "Fallen" | "Federal" | "Hospital" | "Jail" | "Okay" | "Traveling";
@@ -1903,7 +1904,7 @@ export interface FactionMember {
1903
1904
  }
1904
1905
  /** Details about a user's last action. */
1905
1906
  export interface UserLastAction {
1906
- status: string;
1907
+ status: UserLastActionStatusEnum;
1907
1908
  timestamp: number;
1908
1909
  relative: string;
1909
1910
  }
package/dist/index.ts CHANGED
@@ -27,6 +27,8 @@ export type JobTypeEnum =
27
27
 
28
28
  export type UserMaritalStatusEnum = "Engaged" | "Newlywed" | "Married";
29
29
 
30
+ export type UserLastActionStatusEnum = "Online" | "Idle" | "Offline";
31
+
30
32
  export type UserPlaneImageTypeEnum =
31
33
  | "private_jet"
32
34
  | "light_aircraft"
@@ -7369,7 +7371,7 @@ export interface FactionMember {
7369
7371
 
7370
7372
  /** Details about a user's last action. */
7371
7373
  export interface UserLastAction {
7372
- status: string;
7374
+ status: UserLastActionStatusEnum;
7373
7375
  timestamp: number;
7374
7376
  relative: string;
7375
7377
  }
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": "4.2.3"
6
+ "version": "4.2.4"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -9045,6 +9045,14 @@
9045
9045
  "Married"
9046
9046
  ]
9047
9047
  },
9048
+ "UserLastActionStatusEnum": {
9049
+ "type": "string",
9050
+ "enum": [
9051
+ "Online",
9052
+ "Idle",
9053
+ "Offline"
9054
+ ]
9055
+ },
9048
9056
  "UserPlaneImageTypeEnum": {
9049
9057
  "type": "string",
9050
9058
  "enum": [
@@ -23192,7 +23200,7 @@
23192
23200
  ],
23193
23201
  "properties": {
23194
23202
  "status": {
23195
- "type": "string"
23203
+ "$ref": "#/components/schemas/UserLastActionStatusEnum"
23196
23204
  },
23197
23205
  "timestamp": {
23198
23206
  "type": "integer",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "4.2.3",
4
+ "version": "4.2.4",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@scalar/openapi-types": "^0.5.0",
10
- "@types/node": "^22.18.10",
10
+ "@types/node": "^22.18.12",
11
11
  "prettier": "^3.6.2",
12
12
  "typeconv": "^2.3.1",
13
13
  "typescript": "^5.9.3"