tornapi-typescript 0.2.0 → 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 +62 -4
- package/dist/openapi.json +1541 -21
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type ApiKeyAccessTypeEnum =
|
|
13
|
+
| "Custom"
|
|
14
|
+
| "Public Only"
|
|
15
|
+
| "Minimal Access"
|
|
16
|
+
| "Limited Access"
|
|
17
|
+
| "Full Access";
|
|
18
|
+
|
|
12
19
|
export type FactionTerritoryEnum =
|
|
13
20
|
| "AAB"
|
|
14
21
|
| "AAC"
|
|
@@ -4161,7 +4168,9 @@ export type FactionStatEnum =
|
|
|
4161
4168
|
| "attacksrunaway"
|
|
4162
4169
|
| "highestterritories"
|
|
4163
4170
|
| "territoryrespect"
|
|
4164
|
-
| "membersamount"
|
|
4171
|
+
| "membersamount"
|
|
4172
|
+
| "factionage"
|
|
4173
|
+
| "upgradesamount";
|
|
4165
4174
|
|
|
4166
4175
|
export type FactionBranchStateEnum = "war" | "peace";
|
|
4167
4176
|
|
|
@@ -4512,6 +4521,8 @@ export type LogCategoryId = number;
|
|
|
4512
4521
|
|
|
4513
4522
|
export type FactionId = number;
|
|
4514
4523
|
|
|
4524
|
+
export type CompanyId = number;
|
|
4525
|
+
|
|
4515
4526
|
export type EducationId = number;
|
|
4516
4527
|
|
|
4517
4528
|
export type FactionBranchId = number;
|
|
@@ -5357,6 +5368,7 @@ export interface FactionCrimeSlot {
|
|
|
5357
5368
|
|
|
5358
5369
|
export interface FactionCrime {
|
|
5359
5370
|
id: FactionCrimeId;
|
|
5371
|
+
previous_crime_id: FactionCrimeId | null;
|
|
5360
5372
|
name: string;
|
|
5361
5373
|
difficulty: number;
|
|
5362
5374
|
status: FactionCrimeStatusEnum;
|
|
@@ -5637,6 +5649,42 @@ export interface ForumLookupResponse {
|
|
|
5637
5649
|
selections: ForumSelectionName[];
|
|
5638
5650
|
}
|
|
5639
5651
|
|
|
5652
|
+
export interface KeyLogResponse {
|
|
5653
|
+
log: {
|
|
5654
|
+
timestamp: number;
|
|
5655
|
+
type: string;
|
|
5656
|
+
selections: string;
|
|
5657
|
+
id: number | null;
|
|
5658
|
+
ip: string;
|
|
5659
|
+
}[];
|
|
5660
|
+
}
|
|
5661
|
+
|
|
5662
|
+
export interface KeyInfoResponse {
|
|
5663
|
+
info: {
|
|
5664
|
+
selections: {
|
|
5665
|
+
company: string[];
|
|
5666
|
+
faction: FactionSelectionName[];
|
|
5667
|
+
market: MarketSelectionName[];
|
|
5668
|
+
property: string[];
|
|
5669
|
+
torn: TornSelectionName[];
|
|
5670
|
+
user: UserSelectionName[];
|
|
5671
|
+
racing: RacingSelectionName[];
|
|
5672
|
+
forum: ForumSelectionName[];
|
|
5673
|
+
key: KeySelectionName[];
|
|
5674
|
+
};
|
|
5675
|
+
access: {
|
|
5676
|
+
level: number;
|
|
5677
|
+
type: ApiKeyAccessTypeEnum;
|
|
5678
|
+
faction: boolean;
|
|
5679
|
+
faction_id?: FactionId | null;
|
|
5680
|
+
company: boolean;
|
|
5681
|
+
company_id?: CompanyId | null;
|
|
5682
|
+
};
|
|
5683
|
+
};
|
|
5684
|
+
}
|
|
5685
|
+
|
|
5686
|
+
export type KeySelectionName = "info" | "log";
|
|
5687
|
+
|
|
5640
5688
|
export interface ItemMarketListingItemBonus {
|
|
5641
5689
|
id: number;
|
|
5642
5690
|
title: string;
|
|
@@ -6168,7 +6216,7 @@ export type TornSelectionName =
|
|
|
6168
6216
|
| "calendar"
|
|
6169
6217
|
| "crimes"
|
|
6170
6218
|
| "education"
|
|
6171
|
-
| "
|
|
6219
|
+
| "factionhof"
|
|
6172
6220
|
| "factiontree"
|
|
6173
6221
|
| "hof"
|
|
6174
6222
|
| "itemammo"
|
|
@@ -6579,6 +6627,12 @@ export interface PersonalStatsTrading {
|
|
|
6579
6627
|
sales: number;
|
|
6580
6628
|
profit: number;
|
|
6581
6629
|
};
|
|
6630
|
+
item_market?: {
|
|
6631
|
+
customers: number;
|
|
6632
|
+
sales: number;
|
|
6633
|
+
revenue: number;
|
|
6634
|
+
fees: number;
|
|
6635
|
+
};
|
|
6582
6636
|
};
|
|
6583
6637
|
}
|
|
6584
6638
|
|
|
@@ -6905,7 +6959,11 @@ export type PersonalStatsCategoryEnum =
|
|
|
6905
6959
|
| "missions"
|
|
6906
6960
|
| "racing"
|
|
6907
6961
|
| "networth"
|
|
6908
|
-
| "other"
|
|
6962
|
+
| "other"
|
|
6963
|
+
| "itemmarketcustomers"
|
|
6964
|
+
| "itemmarketsales"
|
|
6965
|
+
| "itemmarketrevenue"
|
|
6966
|
+
| "itemmarketfees";
|
|
6909
6967
|
|
|
6910
6968
|
export type PersonalStatsStatName =
|
|
6911
6969
|
| "attackswon"
|
|
@@ -7363,7 +7421,7 @@ export interface HofValue {
|
|
|
7363
7421
|
|
|
7364
7422
|
export interface HofValueString {
|
|
7365
7423
|
value: string;
|
|
7366
|
-
rank: number;
|
|
7424
|
+
rank: number | null;
|
|
7367
7425
|
}
|
|
7368
7426
|
|
|
7369
7427
|
export interface UserHofStats {
|