tornapi-typescript 3.0.1 → 3.0.2
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 +9 -1
- package/dist/index.ts +12 -1
- package/dist/openapi.json +45 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -350,6 +350,11 @@ export interface UserPropertyDetailsExtended extends UserPropertyBasicDetails {
|
|
|
350
350
|
used_by: BasicUser[];
|
|
351
351
|
status: "none" | "in_use";
|
|
352
352
|
}
|
|
353
|
+
export interface UserPropertyDetailsExtendedWithRent extends UserPropertyBasicDetails {
|
|
354
|
+
used_by: BasicUser[];
|
|
355
|
+
status: "none" | "in_use";
|
|
356
|
+
rented_by?: BasicUser;
|
|
357
|
+
}
|
|
353
358
|
export interface UserPropertyDetails extends UserPropertyBasicDetails {
|
|
354
359
|
used_by: BasicUser[];
|
|
355
360
|
}
|
|
@@ -382,6 +387,9 @@ export interface UserPropertiesResponse {
|
|
|
382
387
|
export interface UserPropertyResponse {
|
|
383
388
|
property: UserPropertyDetails;
|
|
384
389
|
}
|
|
390
|
+
export interface PropertyPropertyResponse {
|
|
391
|
+
property: UserPropertyDetailsExtendedWithRent;
|
|
392
|
+
}
|
|
385
393
|
export interface UserCurrentEducation {
|
|
386
394
|
id: EducationId;
|
|
387
395
|
until: number;
|
|
@@ -6281,7 +6289,7 @@ export interface RacingV2 extends BaseSchema {
|
|
|
6281
6289
|
export interface PropertyV2 extends BaseSchema {
|
|
6282
6290
|
selections: {
|
|
6283
6291
|
property: {
|
|
6284
|
-
response:
|
|
6292
|
+
response: PropertyPropertyResponse;
|
|
6285
6293
|
params: "id" | "timestamp";
|
|
6286
6294
|
};
|
|
6287
6295
|
lookup: {
|
package/dist/index.ts
CHANGED
|
@@ -5105,6 +5105,13 @@ export interface UserPropertyDetailsExtended extends UserPropertyBasicDetails {
|
|
|
5105
5105
|
status: "none" | "in_use";
|
|
5106
5106
|
}
|
|
5107
5107
|
|
|
5108
|
+
export interface UserPropertyDetailsExtendedWithRent
|
|
5109
|
+
extends UserPropertyBasicDetails {
|
|
5110
|
+
used_by: BasicUser[];
|
|
5111
|
+
status: "none" | "in_use";
|
|
5112
|
+
rented_by?: BasicUser;
|
|
5113
|
+
}
|
|
5114
|
+
|
|
5108
5115
|
export interface UserPropertyDetails extends UserPropertyBasicDetails {
|
|
5109
5116
|
used_by: BasicUser[];
|
|
5110
5117
|
}
|
|
@@ -5152,6 +5159,10 @@ export interface UserPropertyResponse {
|
|
|
5152
5159
|
property: UserPropertyDetails;
|
|
5153
5160
|
}
|
|
5154
5161
|
|
|
5162
|
+
export interface PropertyPropertyResponse {
|
|
5163
|
+
property: UserPropertyDetailsExtendedWithRent;
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5155
5166
|
export interface UserCurrentEducation {
|
|
5156
5167
|
id: EducationId;
|
|
5157
5168
|
until: number;
|
|
@@ -11788,7 +11799,7 @@ export interface RacingV2 extends BaseSchema {
|
|
|
11788
11799
|
export interface PropertyV2 extends BaseSchema {
|
|
11789
11800
|
selections: {
|
|
11790
11801
|
property: {
|
|
11791
|
-
response:
|
|
11802
|
+
response: PropertyPropertyResponse;
|
|
11792
11803
|
params: "id" | "timestamp";
|
|
11793
11804
|
};
|
|
11794
11805
|
lookup: {
|
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": "3.0.
|
|
6
|
+
"version": "3.0.2"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -5932,7 +5932,7 @@
|
|
|
5932
5932
|
"content": {
|
|
5933
5933
|
"application/json": {
|
|
5934
5934
|
"schema": {
|
|
5935
|
-
"$ref": "#/components/schemas/
|
|
5935
|
+
"$ref": "#/components/schemas/PropertyPropertyResponse"
|
|
5936
5936
|
}
|
|
5937
5937
|
}
|
|
5938
5938
|
}
|
|
@@ -13541,6 +13541,38 @@
|
|
|
13541
13541
|
}
|
|
13542
13542
|
]
|
|
13543
13543
|
},
|
|
13544
|
+
"UserPropertyDetailsExtendedWithRent": {
|
|
13545
|
+
"allOf": [
|
|
13546
|
+
{
|
|
13547
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13548
|
+
},
|
|
13549
|
+
{
|
|
13550
|
+
"required": [
|
|
13551
|
+
"status",
|
|
13552
|
+
"used_by"
|
|
13553
|
+
],
|
|
13554
|
+
"properties": {
|
|
13555
|
+
"used_by": {
|
|
13556
|
+
"type": "array",
|
|
13557
|
+
"items": {
|
|
13558
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13559
|
+
}
|
|
13560
|
+
},
|
|
13561
|
+
"status": {
|
|
13562
|
+
"type": "string",
|
|
13563
|
+
"enum": [
|
|
13564
|
+
"none",
|
|
13565
|
+
"in_use"
|
|
13566
|
+
]
|
|
13567
|
+
},
|
|
13568
|
+
"rented_by": {
|
|
13569
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13570
|
+
}
|
|
13571
|
+
},
|
|
13572
|
+
"type": "object"
|
|
13573
|
+
}
|
|
13574
|
+
]
|
|
13575
|
+
},
|
|
13544
13576
|
"UserPropertyDetails": {
|
|
13545
13577
|
"allOf": [
|
|
13546
13578
|
{
|
|
@@ -13738,6 +13770,17 @@
|
|
|
13738
13770
|
},
|
|
13739
13771
|
"type": "object"
|
|
13740
13772
|
},
|
|
13773
|
+
"PropertyPropertyResponse": {
|
|
13774
|
+
"required": [
|
|
13775
|
+
"property"
|
|
13776
|
+
],
|
|
13777
|
+
"properties": {
|
|
13778
|
+
"property": {
|
|
13779
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedWithRent"
|
|
13780
|
+
}
|
|
13781
|
+
},
|
|
13782
|
+
"type": "object"
|
|
13783
|
+
},
|
|
13741
13784
|
"UserCurrentEducation": {
|
|
13742
13785
|
"required": [
|
|
13743
13786
|
"id",
|