tornapi-typescript 4.2.2 → 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 +3 -2
- package/dist/index.ts +6 -2
- package/dist/openapi.json +14 -3
- package/package.json +3 -3
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";
|
|
@@ -25,7 +26,7 @@ export type FactionStatEnum = "medicalitemsused" | "criminaloffences" | "organis
|
|
|
25
26
|
export type FactionBranchStateEnum = "war" | "peace";
|
|
26
27
|
export type RacingRaceTypeEnum = "official" | "custom";
|
|
27
28
|
export type MarketSpecializedBazaarCategoryEnum = "Alcohol" | "Artifact" | "Booster" | "Candy" | "Car" | "Clothing" | "Collectible" | "Defensive" | "Drug" | "Energy Drink" | "Enhancer" | "Flower" | "Jewelry" | "Material" | "Medical" | "Melee" | "Other" | "Plushie" | "Primary" | "Secondary" | "Special" | "Supply Pack" | "Temporary" | "Tool";
|
|
28
|
-
export type FactionPositionAbilityEnum = "Medical Item Usage" | "Booster Item Usage" | "Drug Item Usage" | "Energy Refill Usage" | "Nerve Refill Usage" | "Temporary Item Loaning" | "Weapon & Armor Loaning" | "Item Retrieving" | "Organised Crimes" | "Faction API Access" | "Item Giving" | "Money Giving" | "Points Giving" | "Forum Management" | "Application Management" | "Kick Members" | "Balance Adjustment" | "War Management" | "Upgrade Management" | "Newsletter Sending" | "Announcement Changes" | "Description Changes";
|
|
29
|
+
export type FactionPositionAbilityEnum = "Medical Item Usage" | "Booster Item Usage" | "Drug Item Usage" | "Energy Refill Usage" | "Nerve Refill Usage" | "Temporary Item Loaning" | "Weapon & Armor Loaning" | "Item Retrieving" | "Organised Crimes" | "Faction API Access" | "Item Giving" | "Money Giving" | "Points Giving" | "Forum Management" | "Application Management" | "Kick Members" | "Balance Adjustment" | "War Management" | "Upgrade Management" | "Newsletter Sending" | "Announcement Changes" | "Description Changes" | "Utility Item Loaning" | "Consumable Item Usage";
|
|
29
30
|
export type FactionOrganizedCrimePayoutType = "balance" | "wallet" | "inventory";
|
|
30
31
|
export type TornRacketType = "Item" | "Points" | "Money";
|
|
31
32
|
export type FactionNewsCategory = "main" | "attack" | "armoryDeposit" | "armoryAction" | "territoryWar" | "rankedWar" | "territoryGain" | "chain" | "crime" | "membership" | "depositFunds" | "giveFunds";
|
|
@@ -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:
|
|
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"
|
|
@@ -4403,7 +4405,9 @@ export type FactionPositionAbilityEnum =
|
|
|
4403
4405
|
| "Upgrade Management"
|
|
4404
4406
|
| "Newsletter Sending"
|
|
4405
4407
|
| "Announcement Changes"
|
|
4406
|
-
| "Description Changes"
|
|
4408
|
+
| "Description Changes"
|
|
4409
|
+
| "Utility Item Loaning"
|
|
4410
|
+
| "Consumable Item Usage";
|
|
4407
4411
|
|
|
4408
4412
|
export type FactionOrganizedCrimePayoutType =
|
|
4409
4413
|
| "balance"
|
|
@@ -7367,7 +7371,7 @@ export interface FactionMember {
|
|
|
7367
7371
|
|
|
7368
7372
|
/** Details about a user's last action. */
|
|
7369
7373
|
export interface UserLastAction {
|
|
7370
|
-
status:
|
|
7374
|
+
status: UserLastActionStatusEnum;
|
|
7371
7375
|
timestamp: number;
|
|
7372
7376
|
relative: string;
|
|
7373
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.
|
|
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": [
|
|
@@ -13478,7 +13486,10 @@
|
|
|
13478
13486
|
"Upgrade Management",
|
|
13479
13487
|
"Newsletter Sending",
|
|
13480
13488
|
"Announcement Changes",
|
|
13481
|
-
"Description Changes"
|
|
13489
|
+
"Description Changes",
|
|
13490
|
+
"Organised Crimes",
|
|
13491
|
+
"Utility Item Loaning",
|
|
13492
|
+
"Consumable Item Usage"
|
|
13482
13493
|
]
|
|
13483
13494
|
},
|
|
13484
13495
|
"FactionOrganizedCrimePayoutType": {
|
|
@@ -23189,7 +23200,7 @@
|
|
|
23189
23200
|
],
|
|
23190
23201
|
"properties": {
|
|
23191
23202
|
"status": {
|
|
23192
|
-
"
|
|
23203
|
+
"$ref": "#/components/schemas/UserLastActionStatusEnum"
|
|
23193
23204
|
},
|
|
23194
23205
|
"timestamp": {
|
|
23195
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.
|
|
4
|
+
"version": "4.2.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@scalar/openapi-types": "^0.
|
|
10
|
-
"@types/node": "^22.18.
|
|
9
|
+
"@scalar/openapi-types": "^0.5.0",
|
|
10
|
+
"@types/node": "^22.18.12",
|
|
11
11
|
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.9.3"
|