tornapi-typescript 2.0.1 → 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/dist/index.d.ts +6 -6
- package/dist/index.ts +6 -6
- package/dist/openapi.json +12 -11
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1443,7 +1443,7 @@ export interface TornRacket {
|
|
|
1443
1443
|
created_at: number;
|
|
1444
1444
|
changed_at: number;
|
|
1445
1445
|
}
|
|
1446
|
-
export interface
|
|
1446
|
+
export interface FactionRacketsResponse {
|
|
1447
1447
|
rackets: TornRacket[];
|
|
1448
1448
|
}
|
|
1449
1449
|
export interface FactionTerritory {
|
|
@@ -1457,7 +1457,7 @@ export interface FactionTerritory {
|
|
|
1457
1457
|
coordinates: TornTerritoryCoordinates;
|
|
1458
1458
|
racket: TornRacket | null;
|
|
1459
1459
|
}
|
|
1460
|
-
export interface
|
|
1460
|
+
export interface FactionTerritoriesResponse {
|
|
1461
1461
|
territory: FactionTerritory[];
|
|
1462
1462
|
}
|
|
1463
1463
|
export interface FactionPosition {
|
|
@@ -2407,7 +2407,7 @@ export interface TornTerritoriesResponse {
|
|
|
2407
2407
|
territory: TornTerritory[];
|
|
2408
2408
|
_metadata: RequestMetadataWithLinks;
|
|
2409
2409
|
}
|
|
2410
|
-
export interface
|
|
2410
|
+
export interface TornTerritoriesNoLinksResponse {
|
|
2411
2411
|
territory: TornTerritory[];
|
|
2412
2412
|
}
|
|
2413
2413
|
export interface TornSubcrimesResponse {
|
|
@@ -2427,7 +2427,7 @@ export interface TornCrime {
|
|
|
2427
2427
|
enhancer_name: string;
|
|
2428
2428
|
unique_outcomes_count: number;
|
|
2429
2429
|
unique_outcomes_ids: number[];
|
|
2430
|
-
notes
|
|
2430
|
+
notes: string[];
|
|
2431
2431
|
}
|
|
2432
2432
|
export interface TornCrimesResponse {
|
|
2433
2433
|
crimes: TornCrime[];
|
|
@@ -6080,7 +6080,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6080
6080
|
params: "timestamp";
|
|
6081
6081
|
};
|
|
6082
6082
|
rackets: {
|
|
6083
|
-
response:
|
|
6083
|
+
response: FactionRacketsResponse;
|
|
6084
6084
|
params: "timestamp";
|
|
6085
6085
|
};
|
|
6086
6086
|
raidreport: {
|
|
@@ -6120,7 +6120,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6120
6120
|
params: "timestamp";
|
|
6121
6121
|
};
|
|
6122
6122
|
territory: {
|
|
6123
|
-
response:
|
|
6123
|
+
response: FactionTerritoriesResponse;
|
|
6124
6124
|
params: "timestamp";
|
|
6125
6125
|
};
|
|
6126
6126
|
territoryownership: {
|
package/dist/index.ts
CHANGED
|
@@ -6632,7 +6632,7 @@ export interface TornRacket {
|
|
|
6632
6632
|
changed_at: number;
|
|
6633
6633
|
}
|
|
6634
6634
|
|
|
6635
|
-
export interface
|
|
6635
|
+
export interface FactionRacketsResponse {
|
|
6636
6636
|
rackets: TornRacket[];
|
|
6637
6637
|
}
|
|
6638
6638
|
|
|
@@ -6648,7 +6648,7 @@ export interface FactionTerritory {
|
|
|
6648
6648
|
racket: TornRacket | null;
|
|
6649
6649
|
}
|
|
6650
6650
|
|
|
6651
|
-
export interface
|
|
6651
|
+
export interface FactionTerritoriesResponse {
|
|
6652
6652
|
territory: FactionTerritory[];
|
|
6653
6653
|
}
|
|
6654
6654
|
|
|
@@ -7747,7 +7747,7 @@ export interface TornTerritoriesResponse {
|
|
|
7747
7747
|
_metadata: RequestMetadataWithLinks;
|
|
7748
7748
|
}
|
|
7749
7749
|
|
|
7750
|
-
export interface
|
|
7750
|
+
export interface TornTerritoriesNoLinksResponse {
|
|
7751
7751
|
territory: TornTerritory[];
|
|
7752
7752
|
}
|
|
7753
7753
|
|
|
@@ -7770,7 +7770,7 @@ export interface TornCrime {
|
|
|
7770
7770
|
enhancer_name: string;
|
|
7771
7771
|
unique_outcomes_count: number;
|
|
7772
7772
|
unique_outcomes_ids: number[];
|
|
7773
|
-
notes
|
|
7773
|
+
notes: string[];
|
|
7774
7774
|
}
|
|
7775
7775
|
|
|
7776
7776
|
export interface TornCrimesResponse {
|
|
@@ -11556,7 +11556,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
11556
11556
|
params: "timestamp";
|
|
11557
11557
|
};
|
|
11558
11558
|
rackets: {
|
|
11559
|
-
response:
|
|
11559
|
+
response: FactionRacketsResponse;
|
|
11560
11560
|
params: "timestamp";
|
|
11561
11561
|
};
|
|
11562
11562
|
raidreport: {
|
|
@@ -11608,7 +11608,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
11608
11608
|
params: "timestamp";
|
|
11609
11609
|
};
|
|
11610
11610
|
territory: {
|
|
11611
|
-
response:
|
|
11611
|
+
response: FactionTerritoriesResponse;
|
|
11612
11612
|
params: "timestamp";
|
|
11613
11613
|
};
|
|
11614
11614
|
territoryownership: {
|
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"
|
|
@@ -19103,7 +19103,7 @@
|
|
|
19103
19103
|
},
|
|
19104
19104
|
"type": "object"
|
|
19105
19105
|
},
|
|
19106
|
-
"
|
|
19106
|
+
"FactionRacketsResponse": {
|
|
19107
19107
|
"required": [
|
|
19108
19108
|
"rackets"
|
|
19109
19109
|
],
|
|
@@ -19173,7 +19173,7 @@
|
|
|
19173
19173
|
},
|
|
19174
19174
|
"type": "object"
|
|
19175
19175
|
},
|
|
19176
|
-
"
|
|
19176
|
+
"FactionTerritoriesResponse": {
|
|
19177
19177
|
"required": [
|
|
19178
19178
|
"territory"
|
|
19179
19179
|
],
|
|
@@ -23813,7 +23813,7 @@
|
|
|
23813
23813
|
},
|
|
23814
23814
|
"type": "object"
|
|
23815
23815
|
},
|
|
23816
|
-
"
|
|
23816
|
+
"TornTerritoriesNoLinksResponse": {
|
|
23817
23817
|
"required": [
|
|
23818
23818
|
"territory"
|
|
23819
23819
|
],
|
|
@@ -23870,7 +23870,8 @@
|
|
|
23870
23870
|
"enhancer_id",
|
|
23871
23871
|
"enhancer_name",
|
|
23872
23872
|
"unique_outcomes_count",
|
|
23873
|
-
"unique_outcomes_ids"
|
|
23873
|
+
"unique_outcomes_ids",
|
|
23874
|
+
"notes"
|
|
23874
23875
|
],
|
|
23875
23876
|
"properties": {
|
|
23876
23877
|
"id": {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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",
|