tornapi-typescript 4.3.4 → 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 +19 -15
- package/dist/index.ts +20 -20
- package/dist/openapi.json +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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
|
@@ -8550,6 +8550,8 @@ export interface TornCalendarActivity {
|
|
|
8550
8550
|
description: string;
|
|
8551
8551
|
start: number;
|
|
8552
8552
|
end: number;
|
|
8553
|
+
/** This value is false if the event uses personal calendar time. */
|
|
8554
|
+
fixed_start_time?: boolean;
|
|
8553
8555
|
}
|
|
8554
8556
|
|
|
8555
8557
|
export interface TornCalendarResponse {
|
|
@@ -9676,14 +9678,7 @@ export interface UserV1 extends BaseSchema {
|
|
|
9676
9678
|
status: "rock" | "paper" | "scissors";
|
|
9677
9679
|
};
|
|
9678
9680
|
revivable: 0 | 1;
|
|
9679
|
-
life: {
|
|
9680
|
-
current: number;
|
|
9681
|
-
maximum: number;
|
|
9682
|
-
increment: number;
|
|
9683
|
-
interval: number;
|
|
9684
|
-
ticktime: number;
|
|
9685
|
-
fulltime: number;
|
|
9686
|
-
};
|
|
9681
|
+
life: { current: number; maximum: number; increment: number };
|
|
9687
9682
|
status: {
|
|
9688
9683
|
description: string;
|
|
9689
9684
|
details: string;
|
|
@@ -10843,6 +10838,21 @@ export interface FactionV1 extends BaseSchema {
|
|
|
10843
10838
|
params: never;
|
|
10844
10839
|
requiredID: false;
|
|
10845
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
|
+
};
|
|
10846
10856
|
weapons: {
|
|
10847
10857
|
response: {
|
|
10848
10858
|
weapons: {
|
|
@@ -12846,21 +12856,11 @@ export type GetArgumentV1<
|
|
|
12846
12856
|
> =
|
|
12847
12857
|
ParamsV1<Sec, Sel> extends never
|
|
12848
12858
|
? {
|
|
12849
|
-
section: Sec;
|
|
12850
|
-
selections?: Sel[];
|
|
12851
|
-
id?: string | number;
|
|
12852
12859
|
params?: never;
|
|
12853
|
-
|
|
12854
|
-
comment?: string;
|
|
12855
|
-
}
|
|
12860
|
+
} & CommonArgumentV1<Sec, Sel>
|
|
12856
12861
|
: {
|
|
12857
|
-
section: Sec;
|
|
12858
|
-
selections?: Sel[];
|
|
12859
|
-
id?: string | number;
|
|
12860
12862
|
params?: Partial<Record<ParamsV1<Sec, Sel>, string>>;
|
|
12861
|
-
|
|
12862
|
-
comment?: string;
|
|
12863
|
-
};
|
|
12863
|
+
} & CommonArgumentV1<Sec, Sel>;
|
|
12864
12864
|
export type CommonArgumentV2<
|
|
12865
12865
|
Sec extends SectionV2,
|
|
12866
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
|
{
|
|
@@ -28257,6 +28257,10 @@
|
|
|
28257
28257
|
"end": {
|
|
28258
28258
|
"type": "integer",
|
|
28259
28259
|
"format": "int32"
|
|
28260
|
+
},
|
|
28261
|
+
"fixed_start_time": {
|
|
28262
|
+
"description": "This value is false if the event uses personal calendar time.",
|
|
28263
|
+
"type": "boolean"
|
|
28260
28264
|
}
|
|
28261
28265
|
},
|
|
28262
28266
|
"type": "object"
|