tornapi-typescript 3.0.0 → 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 +10 -1
- package/dist/index.ts +13 -1
- package/dist/openapi.json +49 -2
- package/package.json +3 -3
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
|
}
|
|
@@ -360,6 +365,7 @@ export interface UserPropertyDetailsExtendedRented extends UserPropertyBasicDeta
|
|
|
360
365
|
cost_per_day: number;
|
|
361
366
|
rental_period: number;
|
|
362
367
|
rental_period_remaining: number;
|
|
368
|
+
rented_by: BasicUser;
|
|
363
369
|
}
|
|
364
370
|
export interface UserPropertyDetailsExtendedForRent extends UserPropertyBasicDetails {
|
|
365
371
|
used_by: BasicUser[];
|
|
@@ -381,6 +387,9 @@ export interface UserPropertiesResponse {
|
|
|
381
387
|
export interface UserPropertyResponse {
|
|
382
388
|
property: UserPropertyDetails;
|
|
383
389
|
}
|
|
390
|
+
export interface PropertyPropertyResponse {
|
|
391
|
+
property: UserPropertyDetailsExtendedWithRent;
|
|
392
|
+
}
|
|
384
393
|
export interface UserCurrentEducation {
|
|
385
394
|
id: EducationId;
|
|
386
395
|
until: number;
|
|
@@ -6280,7 +6289,7 @@ export interface RacingV2 extends BaseSchema {
|
|
|
6280
6289
|
export interface PropertyV2 extends BaseSchema {
|
|
6281
6290
|
selections: {
|
|
6282
6291
|
property: {
|
|
6283
|
-
response:
|
|
6292
|
+
response: PropertyPropertyResponse;
|
|
6284
6293
|
params: "id" | "timestamp";
|
|
6285
6294
|
};
|
|
6286
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
|
}
|
|
@@ -5117,6 +5124,7 @@ export interface UserPropertyDetailsExtendedRented
|
|
|
5117
5124
|
cost_per_day: number;
|
|
5118
5125
|
rental_period: number;
|
|
5119
5126
|
rental_period_remaining: number;
|
|
5127
|
+
rented_by: BasicUser;
|
|
5120
5128
|
}
|
|
5121
5129
|
|
|
5122
5130
|
export interface UserPropertyDetailsExtendedForRent
|
|
@@ -5151,6 +5159,10 @@ export interface UserPropertyResponse {
|
|
|
5151
5159
|
property: UserPropertyDetails;
|
|
5152
5160
|
}
|
|
5153
5161
|
|
|
5162
|
+
export interface PropertyPropertyResponse {
|
|
5163
|
+
property: UserPropertyDetailsExtendedWithRent;
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5154
5166
|
export interface UserCurrentEducation {
|
|
5155
5167
|
id: EducationId;
|
|
5156
5168
|
until: number;
|
|
@@ -11787,7 +11799,7 @@ export interface RacingV2 extends BaseSchema {
|
|
|
11787
11799
|
export interface PropertyV2 extends BaseSchema {
|
|
11788
11800
|
selections: {
|
|
11789
11801
|
property: {
|
|
11790
|
-
response:
|
|
11802
|
+
response: PropertyPropertyResponse;
|
|
11791
11803
|
params: "id" | "timestamp";
|
|
11792
11804
|
};
|
|
11793
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
|
{
|
|
@@ -13570,6 +13602,7 @@
|
|
|
13570
13602
|
{
|
|
13571
13603
|
"required": [
|
|
13572
13604
|
"status",
|
|
13605
|
+
"rented_by",
|
|
13573
13606
|
"used_by",
|
|
13574
13607
|
"cost",
|
|
13575
13608
|
"cost_per_day",
|
|
@@ -13604,6 +13637,9 @@
|
|
|
13604
13637
|
"rental_period_remaining": {
|
|
13605
13638
|
"type": "integer",
|
|
13606
13639
|
"format": "int32"
|
|
13640
|
+
},
|
|
13641
|
+
"rented_by": {
|
|
13642
|
+
"$ref": "#/components/schemas/BasicUser"
|
|
13607
13643
|
}
|
|
13608
13644
|
},
|
|
13609
13645
|
"type": "object"
|
|
@@ -13734,6 +13770,17 @@
|
|
|
13734
13770
|
},
|
|
13735
13771
|
"type": "object"
|
|
13736
13772
|
},
|
|
13773
|
+
"PropertyPropertyResponse": {
|
|
13774
|
+
"required": [
|
|
13775
|
+
"property"
|
|
13776
|
+
],
|
|
13777
|
+
"properties": {
|
|
13778
|
+
"property": {
|
|
13779
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedWithRent"
|
|
13780
|
+
}
|
|
13781
|
+
},
|
|
13782
|
+
"type": "object"
|
|
13783
|
+
},
|
|
13737
13784
|
"UserCurrentEducation": {
|
|
13738
13785
|
"required": [
|
|
13739
13786
|
"id",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@scalar/openapi-types": "^0.3.
|
|
10
|
-
"@types/node": "^22.16.
|
|
9
|
+
"@scalar/openapi-types": "^0.3.6",
|
|
10
|
+
"@types/node": "^22.16.5",
|
|
11
11
|
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.8.3"
|