tornapi-typescript 0.2.5 → 0.2.7
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 +47 -184
- package/dist/openapi.json +626 -229
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4199,6 +4199,8 @@ export type FactionStatEnum =
|
|
|
4199
4199
|
|
|
4200
4200
|
export type FactionBranchStateEnum = "war" | "peace";
|
|
4201
4201
|
|
|
4202
|
+
export type RacingRaceTypeEnum = "official" | "custom";
|
|
4203
|
+
|
|
4202
4204
|
export type FactionPositionAbilityEnum =
|
|
4203
4205
|
| "Medical Item Usage"
|
|
4204
4206
|
| "Booster Item Usage"
|
|
@@ -4598,6 +4600,8 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4598
4600
|
*/
|
|
4599
4601
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
4600
4602
|
|
|
4603
|
+
export type Parameters = string;
|
|
4604
|
+
|
|
4601
4605
|
export type ReviveSetting =
|
|
4602
4606
|
| "Everyone"
|
|
4603
4607
|
| "Friends & faction"
|
|
@@ -4989,6 +4993,12 @@ export interface ReportsResponse {
|
|
|
4989
4993
|
_metadata: RequestMetadataWithLinks;
|
|
4990
4994
|
}
|
|
4991
4995
|
|
|
4996
|
+
export type SelectionCategoryEnum =
|
|
4997
|
+
| ReportTypeEnum
|
|
4998
|
+
| UserListEnum
|
|
4999
|
+
| PersonalStatsCategoryEnum
|
|
5000
|
+
| RacingRaceTypeEnum;
|
|
5001
|
+
|
|
4992
5002
|
export interface UserCurrentEducation {
|
|
4993
5003
|
id: EducationId;
|
|
4994
5004
|
until: number;
|
|
@@ -5337,67 +5347,7 @@ export interface UserListResponse {
|
|
|
5337
5347
|
}
|
|
5338
5348
|
|
|
5339
5349
|
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','basic','battlestats','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','jobpoints','log','medals','merits','messages','missions','money','networth','newevents','newmessages','notifications','perks','profile','properties','refills','reports','skills','stocks','travel','weaponexp','workstats'. */
|
|
5340
|
-
export type UserSelectionName =
|
|
5341
|
-
| "attacks"
|
|
5342
|
-
| "attacksfull"
|
|
5343
|
-
| "bounties"
|
|
5344
|
-
| "calendar"
|
|
5345
|
-
| "crimes"
|
|
5346
|
-
| "enlistedcars"
|
|
5347
|
-
| "factionbalance"
|
|
5348
|
-
| "forumfeed"
|
|
5349
|
-
| "forumfriends"
|
|
5350
|
-
| "forumposts"
|
|
5351
|
-
| "forumsubscribedthreads"
|
|
5352
|
-
| "forumthreads"
|
|
5353
|
-
| "hof"
|
|
5354
|
-
| "itemmarket"
|
|
5355
|
-
| "jobranks"
|
|
5356
|
-
| "list"
|
|
5357
|
-
| "lookup"
|
|
5358
|
-
| "organizedcrime"
|
|
5359
|
-
| "personalstats"
|
|
5360
|
-
| "races"
|
|
5361
|
-
| "revives"
|
|
5362
|
-
| "revivesfull"
|
|
5363
|
-
| "timestamp"
|
|
5364
|
-
| "ammo"
|
|
5365
|
-
| "bars"
|
|
5366
|
-
| "basic"
|
|
5367
|
-
| "battlestats"
|
|
5368
|
-
| "bazaar"
|
|
5369
|
-
| "cooldowns"
|
|
5370
|
-
| "criminalrecord"
|
|
5371
|
-
| "discord"
|
|
5372
|
-
| "display"
|
|
5373
|
-
| "education"
|
|
5374
|
-
| "equipment"
|
|
5375
|
-
| "events"
|
|
5376
|
-
| "gym"
|
|
5377
|
-
| "honors"
|
|
5378
|
-
| "icons"
|
|
5379
|
-
| "inventory"
|
|
5380
|
-
| "jobpoints"
|
|
5381
|
-
| "log"
|
|
5382
|
-
| "medals"
|
|
5383
|
-
| "merits"
|
|
5384
|
-
| "messages"
|
|
5385
|
-
| "missions"
|
|
5386
|
-
| "money"
|
|
5387
|
-
| "networth"
|
|
5388
|
-
| "newevents"
|
|
5389
|
-
| "newmessages"
|
|
5390
|
-
| "notifications"
|
|
5391
|
-
| "perks"
|
|
5392
|
-
| "profile"
|
|
5393
|
-
| "properties"
|
|
5394
|
-
| "refills"
|
|
5395
|
-
| "reports"
|
|
5396
|
-
| "skills"
|
|
5397
|
-
| "stocks"
|
|
5398
|
-
| "travel"
|
|
5399
|
-
| "weaponexp"
|
|
5400
|
-
| "workstats";
|
|
5350
|
+
export type UserSelectionName = string;
|
|
5401
5351
|
|
|
5402
5352
|
export interface UserLookupResponse {
|
|
5403
5353
|
selections: UserSelectionName[];
|
|
@@ -6331,6 +6281,30 @@ export interface FactionTerritoryWarFinishedFaction {
|
|
|
6331
6281
|
is_aggressor: boolean;
|
|
6332
6282
|
}
|
|
6333
6283
|
|
|
6284
|
+
export interface FactionSearchLeader {
|
|
6285
|
+
id: UserId;
|
|
6286
|
+
name: string;
|
|
6287
|
+
}
|
|
6288
|
+
|
|
6289
|
+
export interface FactionSearch {
|
|
6290
|
+
id: FactionId;
|
|
6291
|
+
name: string;
|
|
6292
|
+
respect: number;
|
|
6293
|
+
members: number;
|
|
6294
|
+
leader: FactionSearchLeader;
|
|
6295
|
+
co_leader: FactionSearchLeader | null;
|
|
6296
|
+
image: string | null;
|
|
6297
|
+
tag_image: string | null;
|
|
6298
|
+
tag: string | null;
|
|
6299
|
+
is_destroyed: boolean;
|
|
6300
|
+
is_recruiting: boolean;
|
|
6301
|
+
}
|
|
6302
|
+
|
|
6303
|
+
export interface FactionSearchResponse {
|
|
6304
|
+
search: FactionSearch[];
|
|
6305
|
+
_metadata: RequestMetadataWithLinks;
|
|
6306
|
+
}
|
|
6307
|
+
|
|
6334
6308
|
export interface FactionTerritoryWarFinished {
|
|
6335
6309
|
id: TerritoryWarId;
|
|
6336
6310
|
territory: FactionTerritoryEnum;
|
|
@@ -6891,58 +6865,10 @@ export interface FactionBalanceResponse {
|
|
|
6891
6865
|
}
|
|
6892
6866
|
|
|
6893
6867
|
/**
|
|
6894
|
-
* The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', '
|
|
6895
|
-
* *
|
|
6868
|
+
* The following selections will fallback to API v1 and may change at any time: 'armor', 'boosters', 'caches', 'cesium', 'crimeexp', 'drugs', 'medical', 'temporary', 'weapons'.
|
|
6869
|
+
* * The following selections are not available in API v2: 'armorynews', 'attacknews', 'crimenews', 'currency', 'donations', 'fundsnews', 'mainnews', 'membershipnews', 'territorynews'.
|
|
6896
6870
|
*/
|
|
6897
|
-
export type FactionSelectionName =
|
|
6898
|
-
| "applications"
|
|
6899
|
-
| "attacks"
|
|
6900
|
-
| "attacksfull"
|
|
6901
|
-
| "balance"
|
|
6902
|
-
| "basic"
|
|
6903
|
-
| "chain"
|
|
6904
|
-
| "chainreport"
|
|
6905
|
-
| "chains"
|
|
6906
|
-
| "contributors"
|
|
6907
|
-
| "crime"
|
|
6908
|
-
| "crimes"
|
|
6909
|
-
| "hof"
|
|
6910
|
-
| "lookup"
|
|
6911
|
-
| "members"
|
|
6912
|
-
| "news"
|
|
6913
|
-
| "rackets"
|
|
6914
|
-
| "rankedwars"
|
|
6915
|
-
| "rankedwarreport"
|
|
6916
|
-
| "revives"
|
|
6917
|
-
| "revivesfull"
|
|
6918
|
-
| "stats"
|
|
6919
|
-
| "territory"
|
|
6920
|
-
| "territoryownership"
|
|
6921
|
-
| "territorywarreport"
|
|
6922
|
-
| "territorywars"
|
|
6923
|
-
| "timestamp"
|
|
6924
|
-
| "upgrades"
|
|
6925
|
-
| "wars"
|
|
6926
|
-
| "armor"
|
|
6927
|
-
| "boosters"
|
|
6928
|
-
| "caches"
|
|
6929
|
-
| "cesium"
|
|
6930
|
-
| "crimeexp"
|
|
6931
|
-
| "drugs"
|
|
6932
|
-
| "medical"
|
|
6933
|
-
| "positions"
|
|
6934
|
-
| "reports"
|
|
6935
|
-
| "temporary"
|
|
6936
|
-
| "weapons"
|
|
6937
|
-
| "armorynews"
|
|
6938
|
-
| "attacknews"
|
|
6939
|
-
| "crimenews"
|
|
6940
|
-
| "currency"
|
|
6941
|
-
| "donations"
|
|
6942
|
-
| "fundsnews"
|
|
6943
|
-
| "mainnews"
|
|
6944
|
-
| "membershipnews"
|
|
6945
|
-
| "territorynews";
|
|
6871
|
+
export type FactionSelectionName = string;
|
|
6946
6872
|
|
|
6947
6873
|
export interface FactionLookupResponse {
|
|
6948
6874
|
selections: FactionSelectionName[];
|
|
@@ -7117,13 +7043,7 @@ export interface ForumPostsResponse {
|
|
|
7117
7043
|
_metadata: RequestMetadataWithLinks;
|
|
7118
7044
|
}
|
|
7119
7045
|
|
|
7120
|
-
export type ForumSelectionName =
|
|
7121
|
-
| "categories"
|
|
7122
|
-
| "lookup"
|
|
7123
|
-
| "posts"
|
|
7124
|
-
| "thread"
|
|
7125
|
-
| "threads"
|
|
7126
|
-
| "timestamp";
|
|
7046
|
+
export type ForumSelectionName = string;
|
|
7127
7047
|
|
|
7128
7048
|
export interface ForumLookupResponse {
|
|
7129
7049
|
selections: ForumSelectionName[];
|
|
@@ -7134,7 +7054,7 @@ export interface KeyLogResponse {
|
|
|
7134
7054
|
timestamp: number;
|
|
7135
7055
|
type: string;
|
|
7136
7056
|
selections: string;
|
|
7137
|
-
id: number | null;
|
|
7057
|
+
id: number | string | null;
|
|
7138
7058
|
comment?: string | null;
|
|
7139
7059
|
ip: string;
|
|
7140
7060
|
}[];
|
|
@@ -7164,7 +7084,7 @@ export interface KeyInfoResponse {
|
|
|
7164
7084
|
};
|
|
7165
7085
|
}
|
|
7166
7086
|
|
|
7167
|
-
export type KeySelectionName =
|
|
7087
|
+
export type KeySelectionName = string;
|
|
7168
7088
|
|
|
7169
7089
|
export interface ItemMarketListingItemBonus {
|
|
7170
7090
|
id: number;
|
|
@@ -7208,6 +7128,8 @@ export interface ItemMarketListingNonstackable {
|
|
|
7208
7128
|
export interface ItemMarket {
|
|
7209
7129
|
item: ItemMarketItem;
|
|
7210
7130
|
listings: (ItemMarketListingNonstackable | ItemMarketListingStackable)[];
|
|
7131
|
+
/** Timestamp when the data was globally cached at. */
|
|
7132
|
+
cache_timestamp: number;
|
|
7211
7133
|
}
|
|
7212
7134
|
|
|
7213
7135
|
export interface MarketItemMarketResponse {
|
|
@@ -7216,12 +7138,7 @@ export interface MarketItemMarketResponse {
|
|
|
7216
7138
|
}
|
|
7217
7139
|
|
|
7218
7140
|
/** The following selections will fallback to API v1 and may change at any time: 'pointsmarket'. */
|
|
7219
|
-
export type MarketSelectionName =
|
|
7220
|
-
| "itemmarket"
|
|
7221
|
-
| "lookup"
|
|
7222
|
-
| "timestamp"
|
|
7223
|
-
| "pointsmarket"
|
|
7224
|
-
| "bazaar";
|
|
7141
|
+
export type MarketSelectionName = string;
|
|
7225
7142
|
|
|
7226
7143
|
export interface MarketLookupResponse {
|
|
7227
7144
|
selections: MarketSelectionName[];
|
|
@@ -7344,15 +7261,7 @@ export interface RacingRaceDetailsResponse {
|
|
|
7344
7261
|
};
|
|
7345
7262
|
}
|
|
7346
7263
|
|
|
7347
|
-
export type RacingSelectionName =
|
|
7348
|
-
| "cars"
|
|
7349
|
-
| "carupgrades"
|
|
7350
|
-
| "lookup"
|
|
7351
|
-
| "race"
|
|
7352
|
-
| "races"
|
|
7353
|
-
| "records"
|
|
7354
|
-
| "timestamp"
|
|
7355
|
-
| "tracks";
|
|
7264
|
+
export type RacingSelectionName = string;
|
|
7356
7265
|
|
|
7357
7266
|
export interface RacingLookupResponse {
|
|
7358
7267
|
selections: RacingSelectionName[];
|
|
@@ -7688,55 +7597,9 @@ export interface TornFactionTreeResponse {
|
|
|
7688
7597
|
|
|
7689
7598
|
/**
|
|
7690
7599
|
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','dirtybombs','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','properties','raidreport','raids','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.
|
|
7691
|
-
* *
|
|
7600
|
+
* * The following selections are not available in API v2: 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
7692
7601
|
*/
|
|
7693
|
-
export type TornSelectionName =
|
|
7694
|
-
| "attacklog"
|
|
7695
|
-
| "bounties"
|
|
7696
|
-
| "calendar"
|
|
7697
|
-
| "crimes"
|
|
7698
|
-
| "education"
|
|
7699
|
-
| "factionhof"
|
|
7700
|
-
| "factiontree"
|
|
7701
|
-
| "hof"
|
|
7702
|
-
| "itemammo"
|
|
7703
|
-
| "itemmods"
|
|
7704
|
-
| "items"
|
|
7705
|
-
| "logcategories"
|
|
7706
|
-
| "logtypes"
|
|
7707
|
-
| "lookup"
|
|
7708
|
-
| "subcrimes"
|
|
7709
|
-
| "territory"
|
|
7710
|
-
| "timestamp"
|
|
7711
|
-
| "bank"
|
|
7712
|
-
| "cards"
|
|
7713
|
-
| "cityshops"
|
|
7714
|
-
| "companies"
|
|
7715
|
-
| "competition"
|
|
7716
|
-
| "dirtybombs"
|
|
7717
|
-
| "gyms"
|
|
7718
|
-
| "honors"
|
|
7719
|
-
| "itemdetails"
|
|
7720
|
-
| "itemstats"
|
|
7721
|
-
| "medals"
|
|
7722
|
-
| "organisedcrimes"
|
|
7723
|
-
| "pawnshop"
|
|
7724
|
-
| "pokertables"
|
|
7725
|
-
| "properties"
|
|
7726
|
-
| "raidreport"
|
|
7727
|
-
| "raids"
|
|
7728
|
-
| "rockpaperscissors"
|
|
7729
|
-
| "searchforcash"
|
|
7730
|
-
| "shoplifting"
|
|
7731
|
-
| "stats"
|
|
7732
|
-
| "stocks"
|
|
7733
|
-
| "chainreport"
|
|
7734
|
-
| "rackets"
|
|
7735
|
-
| "rankedwarreport"
|
|
7736
|
-
| "rankedwars"
|
|
7737
|
-
| "territorynames"
|
|
7738
|
-
| "territorywarreport"
|
|
7739
|
-
| "territorywars";
|
|
7602
|
+
export type TornSelectionName = string;
|
|
7740
7603
|
|
|
7741
7604
|
export interface TornLookupResponse {
|
|
7742
7605
|
selections: TornSelectionName[];
|