tornapi-typescript 1.11.2 → 1.11.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 +29 -3
- package/dist/openapi.json +324 -10
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -5486,7 +5486,7 @@ export interface UserListResponse {
|
|
|
5486
5486
|
_metadata: RequestMetadataWithLinks;
|
|
5487
5487
|
}
|
|
5488
5488
|
|
|
5489
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','
|
|
5489
|
+
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','refills','reports','skills','stocks','travel','weaponexp','workstats'. */
|
|
5490
5490
|
export type UserSelectionName = string;
|
|
5491
5491
|
|
|
5492
5492
|
export interface UserLookupResponse {
|
|
@@ -6491,13 +6491,18 @@ export interface FactionTerritoryWarfare {
|
|
|
6491
6491
|
result: string;
|
|
6492
6492
|
}
|
|
6493
6493
|
|
|
6494
|
+
export interface FactionTerritoryWarFactionWallPlayers {
|
|
6495
|
+
id: UserId;
|
|
6496
|
+
name: string;
|
|
6497
|
+
}
|
|
6498
|
+
|
|
6494
6499
|
/** The fields 'chain' and 'players_on_wall' exist only for wars with the result 'in_progress'. */
|
|
6495
6500
|
export interface FactionTerritoryWarFaction {
|
|
6496
6501
|
id: FactionId;
|
|
6497
6502
|
name: string;
|
|
6498
6503
|
score: number;
|
|
6499
6504
|
chain?: number;
|
|
6500
|
-
players_on_wall?:
|
|
6505
|
+
players_on_wall?: FactionTerritoryWarFactionWallPlayers[];
|
|
6501
6506
|
}
|
|
6502
6507
|
|
|
6503
6508
|
export interface FactionTerritoryWarFinishedFaction {
|
|
@@ -7489,6 +7494,20 @@ export interface MarketLookupResponse {
|
|
|
7489
7494
|
selections: MarketSelectionName[];
|
|
7490
7495
|
}
|
|
7491
7496
|
|
|
7497
|
+
export interface UserRacingRecordsResponse {
|
|
7498
|
+
racingrecords: {
|
|
7499
|
+
track: {
|
|
7500
|
+
id: RaceTrackId;
|
|
7501
|
+
name: string;
|
|
7502
|
+
};
|
|
7503
|
+
records: {
|
|
7504
|
+
car_id: ItemId;
|
|
7505
|
+
car_name: string;
|
|
7506
|
+
lap_time: number;
|
|
7507
|
+
}[];
|
|
7508
|
+
}[];
|
|
7509
|
+
}
|
|
7510
|
+
|
|
7492
7511
|
export interface RacingCarsResponse {
|
|
7493
7512
|
cars: RaceCar[];
|
|
7494
7513
|
}
|
|
@@ -7573,6 +7592,7 @@ export interface Race {
|
|
|
7573
7592
|
requires_password: boolean;
|
|
7574
7593
|
join_fee: number;
|
|
7575
7594
|
};
|
|
7595
|
+
is_official: boolean;
|
|
7576
7596
|
}
|
|
7577
7597
|
|
|
7578
7598
|
export interface RacingTrackRecordsResponse {
|
|
@@ -7613,6 +7633,12 @@ export interface RacingLookupResponse {
|
|
|
7613
7633
|
selections: RacingSelectionName[];
|
|
7614
7634
|
}
|
|
7615
7635
|
|
|
7636
|
+
export type PropertySelectionName = string;
|
|
7637
|
+
|
|
7638
|
+
export interface PropertyLookupResponse {
|
|
7639
|
+
selections: PropertySelectionName[];
|
|
7640
|
+
}
|
|
7641
|
+
|
|
7616
7642
|
export interface TornProperties {
|
|
7617
7643
|
properties?: {
|
|
7618
7644
|
id: PropertyTypeId;
|
|
@@ -7736,7 +7762,7 @@ export interface TornHof {
|
|
|
7736
7762
|
position: number;
|
|
7737
7763
|
signed_up: number;
|
|
7738
7764
|
age_in_days: number;
|
|
7739
|
-
value:
|
|
7765
|
+
value: number | string | number;
|
|
7740
7766
|
rank: string;
|
|
7741
7767
|
}
|
|
7742
7768
|
|
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": "1.11.
|
|
6
|
+
"version": "1.11.4"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1407,6 +1407,45 @@
|
|
|
1407
1407
|
"x-stability": "Stable"
|
|
1408
1408
|
}
|
|
1409
1409
|
},
|
|
1410
|
+
"/user/racingrecords": {
|
|
1411
|
+
"get": {
|
|
1412
|
+
"tags": [
|
|
1413
|
+
"User"
|
|
1414
|
+
],
|
|
1415
|
+
"summary": "Get your current racing records",
|
|
1416
|
+
"description": "Requires minimal access key. <br>",
|
|
1417
|
+
"operationId": "e1b2c1039ea41f7607b9c94660fc72cb",
|
|
1418
|
+
"parameters": [
|
|
1419
|
+
{
|
|
1420
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"$ref": "#/components/parameters/ApiKeyMinimal"
|
|
1427
|
+
}
|
|
1428
|
+
],
|
|
1429
|
+
"responses": {
|
|
1430
|
+
"200": {
|
|
1431
|
+
"description": "Successful operation",
|
|
1432
|
+
"content": {
|
|
1433
|
+
"application/json": {
|
|
1434
|
+
"schema": {
|
|
1435
|
+
"$ref": "#/components/schemas/UserRacingRecordsResponse"
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
"security": [
|
|
1442
|
+
{
|
|
1443
|
+
"api_key": []
|
|
1444
|
+
}
|
|
1445
|
+
],
|
|
1446
|
+
"x-stability": "Unstable"
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1410
1449
|
"/user/reports": {
|
|
1411
1450
|
"get": {
|
|
1412
1451
|
"tags": [
|
|
@@ -1799,6 +1838,9 @@
|
|
|
1799
1838
|
{
|
|
1800
1839
|
"$ref": "#/components/schemas/UserCalendarResponse"
|
|
1801
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
"$ref": "#/components/schemas/UserRacingRecordsResponse"
|
|
1843
|
+
},
|
|
1802
1844
|
{
|
|
1803
1845
|
"$ref": "#/components/schemas/UserEducationResponse"
|
|
1804
1846
|
},
|
|
@@ -5351,9 +5393,6 @@
|
|
|
5351
5393
|
{
|
|
5352
5394
|
"$ref": "#/components/schemas/MarketPropertiesResponse"
|
|
5353
5395
|
},
|
|
5354
|
-
{
|
|
5355
|
-
"$ref": "#/components/schemas/MarketItemMarketResponse"
|
|
5356
|
-
},
|
|
5357
5396
|
{
|
|
5358
5397
|
"$ref": "#/components/schemas/MarketLookupResponse"
|
|
5359
5398
|
},
|
|
@@ -5566,7 +5605,7 @@
|
|
|
5566
5605
|
"Racing"
|
|
5567
5606
|
],
|
|
5568
5607
|
"summary": "Get track records",
|
|
5569
|
-
"description": "Requires public access key. <br>Returns a list of
|
|
5608
|
+
"description": "Requires public access key. <br>Returns a list of 5 best lap records for the chosen track and car class.",
|
|
5570
5609
|
"operationId": "5fbc62db3b9380b155d7e33100620da7",
|
|
5571
5610
|
"parameters": [
|
|
5572
5611
|
{
|
|
@@ -5907,6 +5946,156 @@
|
|
|
5907
5946
|
"x-stability": "Unstable"
|
|
5908
5947
|
}
|
|
5909
5948
|
},
|
|
5949
|
+
"/property/lookup": {
|
|
5950
|
+
"get": {
|
|
5951
|
+
"tags": [
|
|
5952
|
+
"Property"
|
|
5953
|
+
],
|
|
5954
|
+
"summary": "Get all available property selections",
|
|
5955
|
+
"description": "Requires public access key. <br>",
|
|
5956
|
+
"operationId": "87fe6e3a7ec186e108922fed781c8d6d",
|
|
5957
|
+
"parameters": [
|
|
5958
|
+
{
|
|
5959
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5960
|
+
},
|
|
5961
|
+
{
|
|
5962
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
5963
|
+
},
|
|
5964
|
+
{
|
|
5965
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
5966
|
+
}
|
|
5967
|
+
],
|
|
5968
|
+
"responses": {
|
|
5969
|
+
"200": {
|
|
5970
|
+
"description": "Successful operation",
|
|
5971
|
+
"content": {
|
|
5972
|
+
"application/json": {
|
|
5973
|
+
"schema": {
|
|
5974
|
+
"$ref": "#/components/schemas/PropertyLookupResponse"
|
|
5975
|
+
}
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
},
|
|
5980
|
+
"security": [
|
|
5981
|
+
{
|
|
5982
|
+
"api_key": []
|
|
5983
|
+
}
|
|
5984
|
+
],
|
|
5985
|
+
"x-stability": "Stable"
|
|
5986
|
+
}
|
|
5987
|
+
},
|
|
5988
|
+
"/property/timestamp": {
|
|
5989
|
+
"get": {
|
|
5990
|
+
"tags": [
|
|
5991
|
+
"Property"
|
|
5992
|
+
],
|
|
5993
|
+
"summary": "Get current server time",
|
|
5994
|
+
"description": "Requires public access key. <br>",
|
|
5995
|
+
"operationId": "423c130a5cdf6bc801c42537c07fddec",
|
|
5996
|
+
"parameters": [
|
|
5997
|
+
{
|
|
5998
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5999
|
+
},
|
|
6000
|
+
{
|
|
6001
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6002
|
+
},
|
|
6003
|
+
{
|
|
6004
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6005
|
+
}
|
|
6006
|
+
],
|
|
6007
|
+
"responses": {
|
|
6008
|
+
"200": {
|
|
6009
|
+
"description": "Successful operation",
|
|
6010
|
+
"content": {
|
|
6011
|
+
"application/json": {
|
|
6012
|
+
"schema": {
|
|
6013
|
+
"$ref": "#/components/schemas/TimestampResponse"
|
|
6014
|
+
}
|
|
6015
|
+
}
|
|
6016
|
+
}
|
|
6017
|
+
}
|
|
6018
|
+
},
|
|
6019
|
+
"security": [
|
|
6020
|
+
{
|
|
6021
|
+
"api_key": []
|
|
6022
|
+
}
|
|
6023
|
+
],
|
|
6024
|
+
"x-stability": "Stable"
|
|
6025
|
+
}
|
|
6026
|
+
},
|
|
6027
|
+
"/property": {
|
|
6028
|
+
"get": {
|
|
6029
|
+
"tags": [
|
|
6030
|
+
"Property"
|
|
6031
|
+
],
|
|
6032
|
+
"summary": "Get any property selection",
|
|
6033
|
+
"description": "Requires public access key. <br>Choose one or more selections (comma separated).",
|
|
6034
|
+
"operationId": "2a45b6d9d77224d9a1e13d0b698f6c4b",
|
|
6035
|
+
"parameters": [
|
|
6036
|
+
{
|
|
6037
|
+
"name": "selections",
|
|
6038
|
+
"in": "query",
|
|
6039
|
+
"description": "Selection names",
|
|
6040
|
+
"required": false,
|
|
6041
|
+
"style": "form",
|
|
6042
|
+
"explode": false,
|
|
6043
|
+
"schema": {
|
|
6044
|
+
"type": "array",
|
|
6045
|
+
"items": {
|
|
6046
|
+
"$ref": "#/components/schemas/PropertySelectionName"
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
},
|
|
6050
|
+
{
|
|
6051
|
+
"name": "id",
|
|
6052
|
+
"in": "query",
|
|
6053
|
+
"description": "Property id",
|
|
6054
|
+
"required": true,
|
|
6055
|
+
"schema": {
|
|
6056
|
+
"$ref": "#/components/schemas/PropertyId"
|
|
6057
|
+
}
|
|
6058
|
+
},
|
|
6059
|
+
{
|
|
6060
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
6061
|
+
},
|
|
6062
|
+
{
|
|
6063
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6064
|
+
},
|
|
6065
|
+
{
|
|
6066
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6067
|
+
}
|
|
6068
|
+
],
|
|
6069
|
+
"responses": {
|
|
6070
|
+
"200": {
|
|
6071
|
+
"description": "Successful operation",
|
|
6072
|
+
"content": {
|
|
6073
|
+
"application/json": {
|
|
6074
|
+
"schema": {
|
|
6075
|
+
"anyOf": [
|
|
6076
|
+
{
|
|
6077
|
+
"$ref": "#/components/schemas/UserPropertyResponse"
|
|
6078
|
+
},
|
|
6079
|
+
{
|
|
6080
|
+
"$ref": "#/components/schemas/PropertyLookupResponse"
|
|
6081
|
+
},
|
|
6082
|
+
{
|
|
6083
|
+
"$ref": "#/components/schemas/TimestampResponse"
|
|
6084
|
+
}
|
|
6085
|
+
]
|
|
6086
|
+
}
|
|
6087
|
+
}
|
|
6088
|
+
}
|
|
6089
|
+
}
|
|
6090
|
+
},
|
|
6091
|
+
"security": [
|
|
6092
|
+
{
|
|
6093
|
+
"api_key": []
|
|
6094
|
+
}
|
|
6095
|
+
],
|
|
6096
|
+
"x-stability": "Stable"
|
|
6097
|
+
}
|
|
6098
|
+
},
|
|
5910
6099
|
"/torn/attacklog": {
|
|
5911
6100
|
"get": {
|
|
5912
6101
|
"tags": [
|
|
@@ -14881,7 +15070,7 @@
|
|
|
14881
15070
|
"UserSelectionName": {
|
|
14882
15071
|
"oneOf": [
|
|
14883
15072
|
{
|
|
14884
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','
|
|
15073
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','refills','reports','skills','stocks','travel','weaponexp','workstats'.",
|
|
14885
15074
|
"type": "string",
|
|
14886
15075
|
"enum": [
|
|
14887
15076
|
"attacks",
|
|
@@ -14903,7 +15092,10 @@
|
|
|
14903
15092
|
"lookup",
|
|
14904
15093
|
"organizedcrime",
|
|
14905
15094
|
"personalstats",
|
|
15095
|
+
"properties",
|
|
15096
|
+
"property",
|
|
14906
15097
|
"races",
|
|
15098
|
+
"racingrecords",
|
|
14907
15099
|
"revives",
|
|
14908
15100
|
"revivesfull",
|
|
14909
15101
|
"timestamp",
|
|
@@ -14936,7 +15128,6 @@
|
|
|
14936
15128
|
"notifications",
|
|
14937
15129
|
"perks",
|
|
14938
15130
|
"profile",
|
|
14939
|
-
"properties",
|
|
14940
15131
|
"refills",
|
|
14941
15132
|
"reports",
|
|
14942
15133
|
"skills",
|
|
@@ -18291,6 +18482,21 @@
|
|
|
18291
18482
|
},
|
|
18292
18483
|
"type": "object"
|
|
18293
18484
|
},
|
|
18485
|
+
"FactionTerritoryWarFactionWallPlayers": {
|
|
18486
|
+
"required": [
|
|
18487
|
+
"id",
|
|
18488
|
+
"name"
|
|
18489
|
+
],
|
|
18490
|
+
"properties": {
|
|
18491
|
+
"id": {
|
|
18492
|
+
"$ref": "#/components/schemas/UserId"
|
|
18493
|
+
},
|
|
18494
|
+
"name": {
|
|
18495
|
+
"type": "string"
|
|
18496
|
+
}
|
|
18497
|
+
},
|
|
18498
|
+
"type": "object"
|
|
18499
|
+
},
|
|
18294
18500
|
"FactionTerritoryWarFaction": {
|
|
18295
18501
|
"description": "The fields 'chain' and 'players_on_wall' exist only for wars with the result 'in_progress'.",
|
|
18296
18502
|
"required": [
|
|
@@ -18315,7 +18521,9 @@
|
|
|
18315
18521
|
},
|
|
18316
18522
|
"players_on_wall": {
|
|
18317
18523
|
"type": "array",
|
|
18318
|
-
"items": {
|
|
18524
|
+
"items": {
|
|
18525
|
+
"$ref": "#/components/schemas/FactionTerritoryWarFactionWallPlayers"
|
|
18526
|
+
}
|
|
18319
18527
|
}
|
|
18320
18528
|
},
|
|
18321
18529
|
"type": "object"
|
|
@@ -22425,6 +22633,8 @@
|
|
|
22425
22633
|
"enum": [
|
|
22426
22634
|
"bazaar",
|
|
22427
22635
|
"itemmarket",
|
|
22636
|
+
"properties",
|
|
22637
|
+
"rentals",
|
|
22428
22638
|
"lookup",
|
|
22429
22639
|
"timestamp",
|
|
22430
22640
|
"pointsmarket"
|
|
@@ -22449,6 +22659,64 @@
|
|
|
22449
22659
|
},
|
|
22450
22660
|
"type": "object"
|
|
22451
22661
|
},
|
|
22662
|
+
"UserRacingRecordsResponse": {
|
|
22663
|
+
"required": [
|
|
22664
|
+
"racingrecords"
|
|
22665
|
+
],
|
|
22666
|
+
"properties": {
|
|
22667
|
+
"racingrecords": {
|
|
22668
|
+
"type": "array",
|
|
22669
|
+
"items": {
|
|
22670
|
+
"required": [
|
|
22671
|
+
"track",
|
|
22672
|
+
"records"
|
|
22673
|
+
],
|
|
22674
|
+
"properties": {
|
|
22675
|
+
"track": {
|
|
22676
|
+
"required": [
|
|
22677
|
+
"id",
|
|
22678
|
+
"name"
|
|
22679
|
+
],
|
|
22680
|
+
"properties": {
|
|
22681
|
+
"id": {
|
|
22682
|
+
"$ref": "#/components/schemas/RaceTrackId"
|
|
22683
|
+
},
|
|
22684
|
+
"name": {
|
|
22685
|
+
"type": "string"
|
|
22686
|
+
}
|
|
22687
|
+
},
|
|
22688
|
+
"type": "object"
|
|
22689
|
+
},
|
|
22690
|
+
"records": {
|
|
22691
|
+
"type": "array",
|
|
22692
|
+
"items": {
|
|
22693
|
+
"required": [
|
|
22694
|
+
"car_id",
|
|
22695
|
+
"car_name",
|
|
22696
|
+
"lap_time"
|
|
22697
|
+
],
|
|
22698
|
+
"properties": {
|
|
22699
|
+
"car_id": {
|
|
22700
|
+
"$ref": "#/components/schemas/ItemId"
|
|
22701
|
+
},
|
|
22702
|
+
"car_name": {
|
|
22703
|
+
"type": "string"
|
|
22704
|
+
},
|
|
22705
|
+
"lap_time": {
|
|
22706
|
+
"type": "integer",
|
|
22707
|
+
"format": "int32"
|
|
22708
|
+
}
|
|
22709
|
+
},
|
|
22710
|
+
"type": "object"
|
|
22711
|
+
}
|
|
22712
|
+
}
|
|
22713
|
+
},
|
|
22714
|
+
"type": "object"
|
|
22715
|
+
}
|
|
22716
|
+
}
|
|
22717
|
+
},
|
|
22718
|
+
"type": "object"
|
|
22719
|
+
},
|
|
22452
22720
|
"RacingCarsResponse": {
|
|
22453
22721
|
"required": [
|
|
22454
22722
|
"cars"
|
|
@@ -22684,7 +22952,8 @@
|
|
|
22684
22952
|
"laps",
|
|
22685
22953
|
"participants",
|
|
22686
22954
|
"schedule",
|
|
22687
|
-
"requirements"
|
|
22955
|
+
"requirements",
|
|
22956
|
+
"is_official"
|
|
22688
22957
|
],
|
|
22689
22958
|
"properties": {
|
|
22690
22959
|
"id": {
|
|
@@ -22814,6 +23083,9 @@
|
|
|
22814
23083
|
}
|
|
22815
23084
|
},
|
|
22816
23085
|
"type": "object"
|
|
23086
|
+
},
|
|
23087
|
+
"is_official": {
|
|
23088
|
+
"type": "boolean"
|
|
22817
23089
|
}
|
|
22818
23090
|
},
|
|
22819
23091
|
"type": "object"
|
|
@@ -23010,6 +23282,35 @@
|
|
|
23010
23282
|
},
|
|
23011
23283
|
"type": "object"
|
|
23012
23284
|
},
|
|
23285
|
+
"PropertySelectionName": {
|
|
23286
|
+
"oneOf": [
|
|
23287
|
+
{
|
|
23288
|
+
"type": "string",
|
|
23289
|
+
"enum": [
|
|
23290
|
+
"property",
|
|
23291
|
+
"lookup",
|
|
23292
|
+
"timestamp"
|
|
23293
|
+
]
|
|
23294
|
+
},
|
|
23295
|
+
{
|
|
23296
|
+
"type": "string"
|
|
23297
|
+
}
|
|
23298
|
+
]
|
|
23299
|
+
},
|
|
23300
|
+
"PropertyLookupResponse": {
|
|
23301
|
+
"required": [
|
|
23302
|
+
"selections"
|
|
23303
|
+
],
|
|
23304
|
+
"properties": {
|
|
23305
|
+
"selections": {
|
|
23306
|
+
"type": "array",
|
|
23307
|
+
"items": {
|
|
23308
|
+
"$ref": "#/components/schemas/PropertySelectionName"
|
|
23309
|
+
}
|
|
23310
|
+
}
|
|
23311
|
+
},
|
|
23312
|
+
"type": "object"
|
|
23313
|
+
},
|
|
23013
23314
|
"TornProperties": {
|
|
23014
23315
|
"properties": {
|
|
23015
23316
|
"properties": {
|
|
@@ -23531,7 +23832,20 @@
|
|
|
23531
23832
|
"format": "int32"
|
|
23532
23833
|
},
|
|
23533
23834
|
"value": {
|
|
23534
|
-
"description": "Value representing the chosen category. Traveltime is shown in seconds. If the chosen category is 'rank', the value is of type string. If the chosen category is 'racingskill', the value is of type float. Otherwise it is an integer."
|
|
23835
|
+
"description": "Value representing the chosen category. Traveltime is shown in seconds. If the chosen category is 'rank', the value is of type string. If the chosen category is 'racingskill', the value is of type float. Otherwise it is an integer.",
|
|
23836
|
+
"oneOf": [
|
|
23837
|
+
{
|
|
23838
|
+
"type": "integer",
|
|
23839
|
+
"format": "int32"
|
|
23840
|
+
},
|
|
23841
|
+
{
|
|
23842
|
+
"type": "string"
|
|
23843
|
+
},
|
|
23844
|
+
{
|
|
23845
|
+
"type": "number",
|
|
23846
|
+
"format": "float"
|
|
23847
|
+
}
|
|
23848
|
+
]
|
|
23535
23849
|
},
|
|
23536
23850
|
"rank": {
|
|
23537
23851
|
"type": "string"
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.4",
|
|
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.15.
|
|
11
|
-
"prettier": "^3.
|
|
9
|
+
"@scalar/openapi-types": "^0.3.4",
|
|
10
|
+
"@types/node": "^22.15.33",
|
|
11
|
+
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.8.3"
|
|
14
14
|
},
|