tornapi-typescript 2.0.0 → 2.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/README.md +23 -5
- package/dist/index.d.ts +3889 -5452
- package/dist/index.js +138 -0
- package/dist/index.ts +12174 -0
- package/dist/openapi.json +64 -55
- package/package.json +5 -2
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": "2.0.
|
|
6
|
+
"version": "2.0.2"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -2953,7 +2953,7 @@
|
|
|
2953
2953
|
"content": {
|
|
2954
2954
|
"application/json": {
|
|
2955
2955
|
"schema": {
|
|
2956
|
-
"$ref": "#/components/schemas/
|
|
2956
|
+
"$ref": "#/components/schemas/FactionRacketsResponse"
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
@@ -3551,7 +3551,7 @@
|
|
|
3551
3551
|
"content": {
|
|
3552
3552
|
"application/json": {
|
|
3553
3553
|
"schema": {
|
|
3554
|
-
"$ref": "#/components/schemas/
|
|
3554
|
+
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
@@ -3599,7 +3599,7 @@
|
|
|
3599
3599
|
"content": {
|
|
3600
3600
|
"application/json": {
|
|
3601
3601
|
"schema": {
|
|
3602
|
-
"$ref": "#/components/schemas/
|
|
3602
|
+
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
|
3603
3603
|
}
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
@@ -4304,7 +4304,7 @@
|
|
|
4304
4304
|
"$ref": "#/components/schemas/FactionTerritoryWarReportResponse"
|
|
4305
4305
|
},
|
|
4306
4306
|
{
|
|
4307
|
-
"$ref": "#/components/schemas/
|
|
4307
|
+
"$ref": "#/components/schemas/FactionTerritoriesResponse"
|
|
4308
4308
|
},
|
|
4309
4309
|
{
|
|
4310
4310
|
"$ref": "#/components/schemas/FactionUpgradesResponse"
|
|
@@ -4319,7 +4319,7 @@
|
|
|
4319
4319
|
"$ref": "#/components/schemas/FactionContributorsResponse"
|
|
4320
4320
|
},
|
|
4321
4321
|
{
|
|
4322
|
-
"$ref": "#/components/schemas/
|
|
4322
|
+
"$ref": "#/components/schemas/FactionRacketsResponse"
|
|
4323
4323
|
},
|
|
4324
4324
|
{
|
|
4325
4325
|
"$ref": "#/components/schemas/FactionRankedWarResponse"
|
|
@@ -7187,7 +7187,7 @@
|
|
|
7187
7187
|
"$ref": "#/components/schemas/TornTerritoriesResponse"
|
|
7188
7188
|
},
|
|
7189
7189
|
{
|
|
7190
|
-
"$ref": "#/components/schemas/
|
|
7190
|
+
"$ref": "#/components/schemas/TornTerritoriesNoLinksResponse"
|
|
7191
7191
|
},
|
|
7192
7192
|
{
|
|
7193
7193
|
"$ref": "#/components/schemas/TornItemModsResponse"
|
|
@@ -13685,24 +13685,26 @@
|
|
|
13685
13685
|
],
|
|
13686
13686
|
"properties": {
|
|
13687
13687
|
"properties": {
|
|
13688
|
-
"type": "
|
|
13689
|
-
"
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13688
|
+
"type": "array",
|
|
13689
|
+
"items": {
|
|
13690
|
+
"oneOf": [
|
|
13691
|
+
{
|
|
13692
|
+
"$ref": "#/components/schemas/UserPropertyBasicDetails"
|
|
13693
|
+
},
|
|
13694
|
+
{
|
|
13695
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtended"
|
|
13696
|
+
},
|
|
13697
|
+
{
|
|
13698
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedRented"
|
|
13699
|
+
},
|
|
13700
|
+
{
|
|
13701
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForRent"
|
|
13702
|
+
},
|
|
13703
|
+
{
|
|
13704
|
+
"$ref": "#/components/schemas/UserPropertyDetailsExtendedForSale"
|
|
13705
|
+
}
|
|
13706
|
+
]
|
|
13707
|
+
}
|
|
13706
13708
|
},
|
|
13707
13709
|
"_metadata": {
|
|
13708
13710
|
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
@@ -14492,7 +14494,7 @@
|
|
|
14492
14494
|
"races": {
|
|
14493
14495
|
"type": "array",
|
|
14494
14496
|
"items": {
|
|
14495
|
-
"$ref": "#/components/schemas/
|
|
14497
|
+
"$ref": "#/components/schemas/RacingRaceDetails"
|
|
14496
14498
|
}
|
|
14497
14499
|
},
|
|
14498
14500
|
"_metadata": {
|
|
@@ -19028,10 +19030,10 @@
|
|
|
19028
19030
|
},
|
|
19029
19031
|
"FactionTerritoriesOwnershipResponse": {
|
|
19030
19032
|
"required": [
|
|
19031
|
-
"
|
|
19033
|
+
"territoryOwnership"
|
|
19032
19034
|
],
|
|
19033
19035
|
"properties": {
|
|
19034
|
-
"
|
|
19036
|
+
"territoryOwnership": {
|
|
19035
19037
|
"type": "array",
|
|
19036
19038
|
"items": {
|
|
19037
19039
|
"$ref": "#/components/schemas/FactionTerritoryOwnership"
|
|
@@ -19101,7 +19103,7 @@
|
|
|
19101
19103
|
},
|
|
19102
19104
|
"type": "object"
|
|
19103
19105
|
},
|
|
19104
|
-
"
|
|
19106
|
+
"FactionRacketsResponse": {
|
|
19105
19107
|
"required": [
|
|
19106
19108
|
"rackets"
|
|
19107
19109
|
],
|
|
@@ -19171,7 +19173,7 @@
|
|
|
19171
19173
|
},
|
|
19172
19174
|
"type": "object"
|
|
19173
19175
|
},
|
|
19174
|
-
"
|
|
19176
|
+
"FactionTerritoriesResponse": {
|
|
19175
19177
|
"required": [
|
|
19176
19178
|
"territory"
|
|
19177
19179
|
],
|
|
@@ -23274,32 +23276,38 @@
|
|
|
23274
23276
|
},
|
|
23275
23277
|
"type": "object"
|
|
23276
23278
|
},
|
|
23279
|
+
"RacingRaceDetails": {
|
|
23280
|
+
"allOf": [
|
|
23281
|
+
{
|
|
23282
|
+
"$ref": "#/components/schemas/Race"
|
|
23283
|
+
},
|
|
23284
|
+
{
|
|
23285
|
+
"required": [
|
|
23286
|
+
"is_official",
|
|
23287
|
+
"results"
|
|
23288
|
+
],
|
|
23289
|
+
"properties": {
|
|
23290
|
+
"results": {
|
|
23291
|
+
"type": "array",
|
|
23292
|
+
"items": {
|
|
23293
|
+
"$ref": "#/components/schemas/RacerDetails"
|
|
23294
|
+
}
|
|
23295
|
+
},
|
|
23296
|
+
"is_official": {
|
|
23297
|
+
"type": "boolean"
|
|
23298
|
+
}
|
|
23299
|
+
},
|
|
23300
|
+
"type": "object"
|
|
23301
|
+
}
|
|
23302
|
+
]
|
|
23303
|
+
},
|
|
23277
23304
|
"RacingRaceDetailsResponse": {
|
|
23305
|
+
"required": [
|
|
23306
|
+
"race"
|
|
23307
|
+
],
|
|
23278
23308
|
"properties": {
|
|
23279
23309
|
"race": {
|
|
23280
|
-
"
|
|
23281
|
-
{
|
|
23282
|
-
"$ref": "#/components/schemas/Race"
|
|
23283
|
-
},
|
|
23284
|
-
{
|
|
23285
|
-
"required": [
|
|
23286
|
-
"is_official",
|
|
23287
|
-
"results"
|
|
23288
|
-
],
|
|
23289
|
-
"properties": {
|
|
23290
|
-
"results": {
|
|
23291
|
-
"type": "array",
|
|
23292
|
-
"items": {
|
|
23293
|
-
"$ref": "#/components/schemas/RacerDetails"
|
|
23294
|
-
}
|
|
23295
|
-
},
|
|
23296
|
-
"is_official": {
|
|
23297
|
-
"type": "boolean"
|
|
23298
|
-
}
|
|
23299
|
-
},
|
|
23300
|
-
"type": "object"
|
|
23301
|
-
}
|
|
23302
|
-
]
|
|
23310
|
+
"$ref": "#/components/schemas/RacingRaceDetails"
|
|
23303
23311
|
}
|
|
23304
23312
|
},
|
|
23305
23313
|
"type": "object"
|
|
@@ -23805,7 +23813,7 @@
|
|
|
23805
23813
|
},
|
|
23806
23814
|
"type": "object"
|
|
23807
23815
|
},
|
|
23808
|
-
"
|
|
23816
|
+
"TornTerritoriesNoLinksResponse": {
|
|
23809
23817
|
"required": [
|
|
23810
23818
|
"territory"
|
|
23811
23819
|
],
|
|
@@ -23862,7 +23870,8 @@
|
|
|
23862
23870
|
"enhancer_id",
|
|
23863
23871
|
"enhancer_name",
|
|
23864
23872
|
"unique_outcomes_count",
|
|
23865
|
-
"unique_outcomes_ids"
|
|
23873
|
+
"unique_outcomes_ids",
|
|
23874
|
+
"notes"
|
|
23866
23875
|
],
|
|
23867
23876
|
"properties": {
|
|
23868
23877
|
"id": {
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.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.
|
|
9
|
+
"@scalar/openapi-types": "^0.3.5",
|
|
10
10
|
"@types/node": "^22.16.0",
|
|
11
11
|
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
13
|
"typescript": "^5.8.3"
|
|
14
14
|
},
|
|
15
|
+
"main": "./dist/index.js",
|
|
15
16
|
"types": "./dist/index.d.ts",
|
|
16
17
|
"files": [
|
|
18
|
+
"./dist/index.ts",
|
|
19
|
+
"./dist/index.js",
|
|
17
20
|
"./dist/index.d.ts",
|
|
18
21
|
"./dist/openapi.json"
|
|
19
22
|
]
|