tornapi-typescript 0.2.1 → 0.2.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 +15 -1
- package/dist/openapi.json +57 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4521,6 +4521,8 @@ export type LogCategoryId = number;
|
|
|
4521
4521
|
|
|
4522
4522
|
export type FactionId = number;
|
|
4523
4523
|
|
|
4524
|
+
export type CompanyId = number;
|
|
4525
|
+
|
|
4524
4526
|
export type EducationId = number;
|
|
4525
4527
|
|
|
4526
4528
|
export type FactionBranchId = number;
|
|
@@ -5674,7 +5676,9 @@ export interface KeyInfoResponse {
|
|
|
5674
5676
|
level: number;
|
|
5675
5677
|
type: ApiKeyAccessTypeEnum;
|
|
5676
5678
|
faction: boolean;
|
|
5679
|
+
faction_id?: FactionId | null;
|
|
5677
5680
|
company: boolean;
|
|
5681
|
+
company_id?: CompanyId | null;
|
|
5678
5682
|
};
|
|
5679
5683
|
};
|
|
5680
5684
|
}
|
|
@@ -6623,6 +6627,12 @@ export interface PersonalStatsTrading {
|
|
|
6623
6627
|
sales: number;
|
|
6624
6628
|
profit: number;
|
|
6625
6629
|
};
|
|
6630
|
+
item_market?: {
|
|
6631
|
+
customers: number;
|
|
6632
|
+
sales: number;
|
|
6633
|
+
revenue: number;
|
|
6634
|
+
fees: number;
|
|
6635
|
+
};
|
|
6626
6636
|
};
|
|
6627
6637
|
}
|
|
6628
6638
|
|
|
@@ -6949,7 +6959,11 @@ export type PersonalStatsCategoryEnum =
|
|
|
6949
6959
|
| "missions"
|
|
6950
6960
|
| "racing"
|
|
6951
6961
|
| "networth"
|
|
6952
|
-
| "other"
|
|
6962
|
+
| "other"
|
|
6963
|
+
| "itemmarketcustomers"
|
|
6964
|
+
| "itemmarketsales"
|
|
6965
|
+
| "itemmarketrevenue"
|
|
6966
|
+
| "itemmarketfees";
|
|
6953
6967
|
|
|
6954
6968
|
export type PersonalStatsStatName =
|
|
6955
6969
|
| "attackswon"
|
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.
|
|
6
|
+
"version": "1.5.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -10517,6 +10517,10 @@
|
|
|
10517
10517
|
"type": "integer",
|
|
10518
10518
|
"format": "int32"
|
|
10519
10519
|
},
|
|
10520
|
+
"CompanyId": {
|
|
10521
|
+
"type": "integer",
|
|
10522
|
+
"format": "int32"
|
|
10523
|
+
},
|
|
10520
10524
|
"EducationId": {
|
|
10521
10525
|
"type": "integer",
|
|
10522
10526
|
"format": "int32"
|
|
@@ -14537,8 +14541,28 @@
|
|
|
14537
14541
|
"faction": {
|
|
14538
14542
|
"type": "boolean"
|
|
14539
14543
|
},
|
|
14544
|
+
"faction_id": {
|
|
14545
|
+
"oneOf": [
|
|
14546
|
+
{
|
|
14547
|
+
"$ref": "#/components/schemas/FactionId"
|
|
14548
|
+
},
|
|
14549
|
+
{
|
|
14550
|
+
"type": "null"
|
|
14551
|
+
}
|
|
14552
|
+
]
|
|
14553
|
+
},
|
|
14540
14554
|
"company": {
|
|
14541
14555
|
"type": "boolean"
|
|
14556
|
+
},
|
|
14557
|
+
"company_id": {
|
|
14558
|
+
"oneOf": [
|
|
14559
|
+
{
|
|
14560
|
+
"$ref": "#/components/schemas/CompanyId"
|
|
14561
|
+
},
|
|
14562
|
+
{
|
|
14563
|
+
"type": "null"
|
|
14564
|
+
}
|
|
14565
|
+
]
|
|
14542
14566
|
}
|
|
14543
14567
|
},
|
|
14544
14568
|
"type": "object"
|
|
@@ -18362,6 +18386,33 @@
|
|
|
18362
18386
|
}
|
|
18363
18387
|
},
|
|
18364
18388
|
"type": "object"
|
|
18389
|
+
},
|
|
18390
|
+
"item_market": {
|
|
18391
|
+
"required": [
|
|
18392
|
+
"customers",
|
|
18393
|
+
"sales",
|
|
18394
|
+
"revenue",
|
|
18395
|
+
"fees"
|
|
18396
|
+
],
|
|
18397
|
+
"properties": {
|
|
18398
|
+
"customers": {
|
|
18399
|
+
"type": "integer",
|
|
18400
|
+
"format": "int32"
|
|
18401
|
+
},
|
|
18402
|
+
"sales": {
|
|
18403
|
+
"type": "integer",
|
|
18404
|
+
"format": "int32"
|
|
18405
|
+
},
|
|
18406
|
+
"revenue": {
|
|
18407
|
+
"type": "integer",
|
|
18408
|
+
"format": "int64"
|
|
18409
|
+
},
|
|
18410
|
+
"fees": {
|
|
18411
|
+
"type": "integer",
|
|
18412
|
+
"format": "int64"
|
|
18413
|
+
}
|
|
18414
|
+
},
|
|
18415
|
+
"type": "object"
|
|
18365
18416
|
}
|
|
18366
18417
|
},
|
|
18367
18418
|
"type": "object"
|
|
@@ -19602,7 +19653,11 @@
|
|
|
19602
19653
|
"missions",
|
|
19603
19654
|
"racing",
|
|
19604
19655
|
"networth",
|
|
19605
|
-
"other"
|
|
19656
|
+
"other",
|
|
19657
|
+
"itemmarketcustomers",
|
|
19658
|
+
"itemmarketsales",
|
|
19659
|
+
"itemmarketrevenue",
|
|
19660
|
+
"itemmarketfees"
|
|
19606
19661
|
]
|
|
19607
19662
|
},
|
|
19608
19663
|
"PersonalStatsStatName": {
|