tornapi-typescript 2.0.0 → 2.0.1
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 +3885 -5448
- package/dist/index.js +138 -0
- package/dist/index.ts +12174 -0
- package/dist/openapi.json +53 -45
- package/package.json +4 -1
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.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -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"
|
|
@@ -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"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
@@ -12,8 +12,11 @@
|
|
|
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
|
]
|