tornapi-typescript 4.3.3 → 4.3.5
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 +20 -16
- package/dist/index.ts +21 -20
- package/dist/openapi.json +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
|
126
126
|
export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown" | "Unknown Rarity";
|
|
127
127
|
export type Parameters = string;
|
|
128
128
|
export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
129
|
-
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "db";
|
|
129
|
+
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "chainOngoing" | "db";
|
|
130
130
|
export type PropertyModificationEnum = "Hot Tub" | "Sauna" | "Open Bar" | "Small Pool" | "Medium Pool" | "Large Pool" | "Small Vault" | "Medium Vault" | "Large Vault" | "Extra Large Vault" | "Medical Facility" | "Advanced Shooting Range" | "Airstrip" | "Private Yacht" | "Sufficient Interior Modification" | "Superior Interior Modification";
|
|
131
131
|
export type PropertyStaffEnum = "Maid" | "Guard" | "Doctor" | "Pilot" | "Butler";
|
|
132
132
|
export type FactionCrimeStatusEnum = "Recruiting" | "Planning" | "Successful" | "Failure" | "Expired";
|
|
@@ -2914,6 +2914,8 @@ export interface TornCalendarActivity {
|
|
|
2914
2914
|
description: string;
|
|
2915
2915
|
start: number;
|
|
2916
2916
|
end: number;
|
|
2917
|
+
/** This value is false if the event uses personal calendar time. */
|
|
2918
|
+
fixed_start_time?: boolean;
|
|
2917
2919
|
}
|
|
2918
2920
|
export interface TornCalendarResponse {
|
|
2919
2921
|
calendar: {
|
|
@@ -4000,9 +4002,6 @@ export interface UserV1 extends BaseSchema {
|
|
|
4000
4002
|
current: number;
|
|
4001
4003
|
maximum: number;
|
|
4002
4004
|
increment: number;
|
|
4003
|
-
interval: number;
|
|
4004
|
-
ticktime: number;
|
|
4005
|
-
fulltime: number;
|
|
4006
4005
|
};
|
|
4007
4006
|
status: {
|
|
4008
4007
|
description: string;
|
|
@@ -5127,6 +5126,21 @@ export interface FactionV1 extends BaseSchema {
|
|
|
5127
5126
|
params: never;
|
|
5128
5127
|
requiredID: false;
|
|
5129
5128
|
};
|
|
5129
|
+
utilities: {
|
|
5130
|
+
response: {
|
|
5131
|
+
utilities: {
|
|
5132
|
+
ID: number;
|
|
5133
|
+
name: string;
|
|
5134
|
+
type: string;
|
|
5135
|
+
quantity: number;
|
|
5136
|
+
available: number;
|
|
5137
|
+
loaned: number;
|
|
5138
|
+
loaned_to: number | string;
|
|
5139
|
+
};
|
|
5140
|
+
};
|
|
5141
|
+
params: never;
|
|
5142
|
+
requiredID: false;
|
|
5143
|
+
};
|
|
5130
5144
|
weapons: {
|
|
5131
5145
|
response: {
|
|
5132
5146
|
weapons: {
|
|
@@ -7015,20 +7029,10 @@ export type CommonArgumentV1<Sec extends SectionV1, Sel extends keyof SectionsV1
|
|
|
7015
7029
|
selections?: Sel[];
|
|
7016
7030
|
} & CommonArgument;
|
|
7017
7031
|
export type GetArgumentV1<Sec extends SectionV1, Sel extends keyof SectionsV1Map[Sec]["selections"]> = ParamsV1<Sec, Sel> extends never ? {
|
|
7018
|
-
section: Sec;
|
|
7019
|
-
selections?: Sel[];
|
|
7020
|
-
id?: string | number;
|
|
7021
7032
|
params?: never;
|
|
7022
|
-
|
|
7023
|
-
comment?: string;
|
|
7024
|
-
} : {
|
|
7025
|
-
section: Sec;
|
|
7026
|
-
selections?: Sel[];
|
|
7027
|
-
id?: string | number;
|
|
7033
|
+
} & CommonArgumentV1<Sec, Sel> : {
|
|
7028
7034
|
params?: Partial<Record<ParamsV1<Sec, Sel>, string>>;
|
|
7029
|
-
|
|
7030
|
-
comment?: string;
|
|
7031
|
-
};
|
|
7035
|
+
} & CommonArgumentV1<Sec, Sel>;
|
|
7032
7036
|
export type CommonArgumentV2<Sec extends SectionV2, Sel extends keyof SectionsV2Map[Sec]["selections"]> = {
|
|
7033
7037
|
section: Sec;
|
|
7034
7038
|
selections?: Sel[];
|
package/dist/index.ts
CHANGED
|
@@ -4865,6 +4865,7 @@ export type FactionWarfareTypeEnum =
|
|
|
4865
4865
|
| "territory"
|
|
4866
4866
|
| "raid"
|
|
4867
4867
|
| "chain"
|
|
4868
|
+
| "chainOngoing"
|
|
4868
4869
|
| "db";
|
|
4869
4870
|
|
|
4870
4871
|
export type PropertyModificationEnum =
|
|
@@ -8549,6 +8550,8 @@ export interface TornCalendarActivity {
|
|
|
8549
8550
|
description: string;
|
|
8550
8551
|
start: number;
|
|
8551
8552
|
end: number;
|
|
8553
|
+
/** This value is false if the event uses personal calendar time. */
|
|
8554
|
+
fixed_start_time?: boolean;
|
|
8552
8555
|
}
|
|
8553
8556
|
|
|
8554
8557
|
export interface TornCalendarResponse {
|
|
@@ -9675,14 +9678,7 @@ export interface UserV1 extends BaseSchema {
|
|
|
9675
9678
|
status: "rock" | "paper" | "scissors";
|
|
9676
9679
|
};
|
|
9677
9680
|
revivable: 0 | 1;
|
|
9678
|
-
life: {
|
|
9679
|
-
current: number;
|
|
9680
|
-
maximum: number;
|
|
9681
|
-
increment: number;
|
|
9682
|
-
interval: number;
|
|
9683
|
-
ticktime: number;
|
|
9684
|
-
fulltime: number;
|
|
9685
|
-
};
|
|
9681
|
+
life: { current: number; maximum: number; increment: number };
|
|
9686
9682
|
status: {
|
|
9687
9683
|
description: string;
|
|
9688
9684
|
details: string;
|
|
@@ -10842,6 +10838,21 @@ export interface FactionV1 extends BaseSchema {
|
|
|
10842
10838
|
params: never;
|
|
10843
10839
|
requiredID: false;
|
|
10844
10840
|
};
|
|
10841
|
+
utilities: {
|
|
10842
|
+
response: {
|
|
10843
|
+
utilities: {
|
|
10844
|
+
ID: number;
|
|
10845
|
+
name: string;
|
|
10846
|
+
type: string;
|
|
10847
|
+
quantity: number;
|
|
10848
|
+
available: number;
|
|
10849
|
+
loaned: number;
|
|
10850
|
+
loaned_to: number | string;
|
|
10851
|
+
};
|
|
10852
|
+
};
|
|
10853
|
+
params: never;
|
|
10854
|
+
requiredID: false;
|
|
10855
|
+
};
|
|
10845
10856
|
weapons: {
|
|
10846
10857
|
response: {
|
|
10847
10858
|
weapons: {
|
|
@@ -12845,21 +12856,11 @@ export type GetArgumentV1<
|
|
|
12845
12856
|
> =
|
|
12846
12857
|
ParamsV1<Sec, Sel> extends never
|
|
12847
12858
|
? {
|
|
12848
|
-
section: Sec;
|
|
12849
|
-
selections?: Sel[];
|
|
12850
|
-
id?: string | number;
|
|
12851
12859
|
params?: never;
|
|
12852
|
-
|
|
12853
|
-
comment?: string;
|
|
12854
|
-
}
|
|
12860
|
+
} & CommonArgumentV1<Sec, Sel>
|
|
12855
12861
|
: {
|
|
12856
|
-
section: Sec;
|
|
12857
|
-
selections?: Sel[];
|
|
12858
|
-
id?: string | number;
|
|
12859
12862
|
params?: Partial<Record<ParamsV1<Sec, Sel>, string>>;
|
|
12860
|
-
|
|
12861
|
-
comment?: string;
|
|
12862
|
-
};
|
|
12863
|
+
} & CommonArgumentV1<Sec, Sel>;
|
|
12863
12864
|
export type CommonArgumentV2<
|
|
12864
12865
|
Sec extends SectionV2,
|
|
12865
12866
|
Sel extends keyof SectionsV2Map[Sec]["selections"],
|
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.3.
|
|
6
|
+
"version": "4.3.5"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -14276,6 +14276,7 @@
|
|
|
14276
14276
|
"territory",
|
|
14277
14277
|
"raid",
|
|
14278
14278
|
"chain",
|
|
14279
|
+
"chainOngoing",
|
|
14279
14280
|
"db"
|
|
14280
14281
|
]
|
|
14281
14282
|
},
|
|
@@ -28256,6 +28257,10 @@
|
|
|
28256
28257
|
"end": {
|
|
28257
28258
|
"type": "integer",
|
|
28258
28259
|
"format": "int32"
|
|
28260
|
+
},
|
|
28261
|
+
"fixed_start_time": {
|
|
28262
|
+
"description": "This value is false if the event uses personal calendar time.",
|
|
28263
|
+
"type": "boolean"
|
|
28259
28264
|
}
|
|
28260
28265
|
},
|
|
28261
28266
|
"type": "object"
|