tornapi-typescript 3.0.6 → 3.0.9
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 +118 -3
- package/dist/index.ts +155 -3
- package/dist/openapi.json +946 -168
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* - {@link https://github.com/grantila/typeconv}
|
|
6
6
|
*/
|
|
7
7
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
8
|
+
export type UserSkillSlugEnum = "hunting" | "racing" | "reviving" | "search_for_cash" | "bootlegging" | "graffiti" | "shoplifting" | "pickpocketing" | "card_skimming" | "burglary" | "hustling" | "disposal" | "cracking" | "forgery" | "scamming" | "arson";
|
|
8
9
|
export type CountryEnum = "Mexico" | "Hawaii" | "South Africa" | "Japan" | "China" | "Argentina" | "Switzerland" | "Canada" | "United Kingdom" | "UAE" | "Cayman Islands";
|
|
9
10
|
export type ReportTypeEnum = "mostwanted" | "money" | "stats" | "references" | "friendorfoe" | "companyfinancials" | "truelevel" | "stockanalysis" | "anonymousbounties" | "investment";
|
|
10
11
|
export type ApiKeyAccessTypeEnum = "Custom" | "Public Only" | "Minimal Access" | "Limited Access" | "Full Access";
|
|
@@ -64,6 +65,7 @@ export type UserLogId = string;
|
|
|
64
65
|
export type LogCategoryId = number;
|
|
65
66
|
export type FactionId = number;
|
|
66
67
|
export type CompanyId = number;
|
|
68
|
+
export type CompanyTypeId = number;
|
|
67
69
|
export type EducationId = number;
|
|
68
70
|
export type FactionBranchId = number;
|
|
69
71
|
export type FactionCrimeId = number;
|
|
@@ -99,6 +101,7 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
99
101
|
* * 7 = 'X quoted your post'.
|
|
100
102
|
*/
|
|
101
103
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
104
|
+
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
102
105
|
export type Parameters = string;
|
|
103
106
|
export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
104
107
|
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "db";
|
|
@@ -329,6 +332,89 @@ export interface ReportsResponse {
|
|
|
329
332
|
_metadata: RequestMetadataWithLinks;
|
|
330
333
|
}
|
|
331
334
|
export type SelectionCategoryEnum = ReportTypeEnum | UserListEnum | PersonalStatsCategoryEnum | RacingRaceTypeEnum;
|
|
335
|
+
export interface UserMoneyResponse {
|
|
336
|
+
money: {
|
|
337
|
+
points: number;
|
|
338
|
+
wallet: number;
|
|
339
|
+
company: number;
|
|
340
|
+
vault: number;
|
|
341
|
+
cayman_bank: number;
|
|
342
|
+
city_bank: {
|
|
343
|
+
amount: number;
|
|
344
|
+
until: number;
|
|
345
|
+
};
|
|
346
|
+
faction: {
|
|
347
|
+
money: number;
|
|
348
|
+
points: number;
|
|
349
|
+
};
|
|
350
|
+
daily_networth: number;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
export interface UserSkillsResponse {
|
|
354
|
+
skills: UserSkillDetail[];
|
|
355
|
+
}
|
|
356
|
+
export interface UserSkillDetail {
|
|
357
|
+
slug: string & (UserSkillSlugEnum | string);
|
|
358
|
+
name: string;
|
|
359
|
+
level: number;
|
|
360
|
+
}
|
|
361
|
+
export interface UserJobPointsResponse {
|
|
362
|
+
jobpoints: {
|
|
363
|
+
jobs: {
|
|
364
|
+
army: number;
|
|
365
|
+
casino: number;
|
|
366
|
+
education: number;
|
|
367
|
+
grocer: number;
|
|
368
|
+
law: number;
|
|
369
|
+
medical: number;
|
|
370
|
+
};
|
|
371
|
+
companies: UserCompanyPoints[];
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
export interface UserCompanyPoints {
|
|
375
|
+
company: {
|
|
376
|
+
id: CompanyTypeId;
|
|
377
|
+
name: string;
|
|
378
|
+
};
|
|
379
|
+
points: number;
|
|
380
|
+
}
|
|
381
|
+
export interface UserWorkStatsResponse {
|
|
382
|
+
workstats: {
|
|
383
|
+
endurance: number;
|
|
384
|
+
intelligence: number;
|
|
385
|
+
manual_labor: number;
|
|
386
|
+
total: number;
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
export interface UserBattleStatsResponse {
|
|
390
|
+
battlestats: {
|
|
391
|
+
strength: UserBattleStatDetail;
|
|
392
|
+
defense: UserBattleStatDetail;
|
|
393
|
+
speed: UserBattleStatDetail;
|
|
394
|
+
dexterity: UserBattleStatDetail;
|
|
395
|
+
total: number;
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
export interface UserBattleStatDetail {
|
|
399
|
+
value: number;
|
|
400
|
+
modifier: number;
|
|
401
|
+
modifiers: UserBattleStatModifierDetail[];
|
|
402
|
+
}
|
|
403
|
+
export interface UserBattleStatModifierDetail {
|
|
404
|
+
effect: string;
|
|
405
|
+
value: number;
|
|
406
|
+
type: string;
|
|
407
|
+
}
|
|
408
|
+
export interface UserBasic {
|
|
409
|
+
id: UserId;
|
|
410
|
+
name: string;
|
|
411
|
+
level: number;
|
|
412
|
+
gender: UserGenderEnum;
|
|
413
|
+
status: UserStatus;
|
|
414
|
+
}
|
|
415
|
+
export interface UserBasicResponse {
|
|
416
|
+
profile: UserBasic;
|
|
417
|
+
}
|
|
332
418
|
export interface UserLog {
|
|
333
419
|
id: UserLogId;
|
|
334
420
|
timestamp: number;
|
|
@@ -386,6 +472,11 @@ export interface UserPropertyDetailsExtendedRented extends UserPropertyBasicDeta
|
|
|
386
472
|
rental_period: number;
|
|
387
473
|
rental_period_remaining: number;
|
|
388
474
|
rented_by: BasicUser;
|
|
475
|
+
lease_extension: {
|
|
476
|
+
cost: number;
|
|
477
|
+
period: number;
|
|
478
|
+
created_at: number;
|
|
479
|
+
} | null;
|
|
389
480
|
}
|
|
390
481
|
export interface UserPropertyDetailsExtendedForRent extends UserPropertyBasicDetails {
|
|
391
482
|
used_by: BasicUser[];
|
|
@@ -700,7 +791,7 @@ export interface UserListResponse {
|
|
|
700
791
|
list: UserList[];
|
|
701
792
|
_metadata: RequestMetadataWithLinks;
|
|
702
793
|
}
|
|
703
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','
|
|
794
|
+
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','log','medals','merits','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'. */
|
|
704
795
|
export type UserSelectionName = string;
|
|
705
796
|
export interface UserLookupResponse {
|
|
706
797
|
selections: UserSelectionName[];
|
|
@@ -5973,10 +6064,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
5973
6064
|
response: FactionAttacksFullResponse;
|
|
5974
6065
|
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5975
6066
|
};
|
|
6067
|
+
basic: {
|
|
6068
|
+
response: UserBasicResponse;
|
|
6069
|
+
params: "striptags" | "timestamp";
|
|
6070
|
+
};
|
|
5976
6071
|
bounties: {
|
|
5977
6072
|
response: UserBountiesResponse;
|
|
5978
6073
|
params: "timestamp";
|
|
5979
6074
|
};
|
|
6075
|
+
battlestats: {
|
|
6076
|
+
response: UserBattleStatsResponse;
|
|
6077
|
+
params: "timestamp";
|
|
6078
|
+
};
|
|
5980
6079
|
calendar: {
|
|
5981
6080
|
response: UserCalendarResponse;
|
|
5982
6081
|
params: "timestamp";
|
|
@@ -6025,6 +6124,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6025
6124
|
response: UserItemMarketResponse;
|
|
6026
6125
|
params: "offset" | "timestamp";
|
|
6027
6126
|
};
|
|
6127
|
+
jobpoints: {
|
|
6128
|
+
response: UserJobPointsResponse;
|
|
6129
|
+
params: "timestamp";
|
|
6130
|
+
};
|
|
6028
6131
|
jobranks: {
|
|
6029
6132
|
response: UserJobRanksResponse;
|
|
6030
6133
|
params: "timestamp";
|
|
@@ -6037,6 +6140,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6037
6140
|
response: UserLogsResponse;
|
|
6038
6141
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
6039
6142
|
};
|
|
6143
|
+
money: {
|
|
6144
|
+
response: UserMoneyResponse;
|
|
6145
|
+
params: "timestamp";
|
|
6146
|
+
};
|
|
6040
6147
|
organizedcrime: {
|
|
6041
6148
|
response: UserOrganizedCrimeResponse;
|
|
6042
6149
|
params: "timestamp";
|
|
@@ -6047,7 +6154,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
6047
6154
|
};
|
|
6048
6155
|
properties: {
|
|
6049
6156
|
response: UserPropertiesResponse;
|
|
6050
|
-
params: "offset" | "limit" | "timestamp";
|
|
6157
|
+
params: "filters" | "offset" | "limit" | "timestamp";
|
|
6051
6158
|
};
|
|
6052
6159
|
property: {
|
|
6053
6160
|
response: UserPropertyResponse;
|
|
@@ -6073,6 +6180,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
6073
6180
|
response: RevivesFullResponse;
|
|
6074
6181
|
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6075
6182
|
};
|
|
6183
|
+
skills: {
|
|
6184
|
+
response: UserSkillsResponse;
|
|
6185
|
+
params: "timestamp";
|
|
6186
|
+
};
|
|
6187
|
+
workstats: {
|
|
6188
|
+
response: UserWorkStatsResponse;
|
|
6189
|
+
params: "timestamp";
|
|
6190
|
+
};
|
|
6076
6191
|
lookup: {
|
|
6077
6192
|
response: UserLookupResponse;
|
|
6078
6193
|
params: "timestamp";
|
|
@@ -6231,7 +6346,7 @@ export interface ForumV2 extends BaseSchema {
|
|
|
6231
6346
|
};
|
|
6232
6347
|
posts: {
|
|
6233
6348
|
response: ForumPostsResponse;
|
|
6234
|
-
params: "offset" | "
|
|
6349
|
+
params: "striptags" | "offset" | "sort" | "from" | "to" | "threadId" | "timestamp";
|
|
6235
6350
|
};
|
|
6236
6351
|
thread: {
|
|
6237
6352
|
response: ForumThreadResponse;
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,24 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type UserSkillSlugEnum =
|
|
13
|
+
| "hunting"
|
|
14
|
+
| "racing"
|
|
15
|
+
| "reviving"
|
|
16
|
+
| "search_for_cash"
|
|
17
|
+
| "bootlegging"
|
|
18
|
+
| "graffiti"
|
|
19
|
+
| "shoplifting"
|
|
20
|
+
| "pickpocketing"
|
|
21
|
+
| "card_skimming"
|
|
22
|
+
| "burglary"
|
|
23
|
+
| "hustling"
|
|
24
|
+
| "disposal"
|
|
25
|
+
| "cracking"
|
|
26
|
+
| "forgery"
|
|
27
|
+
| "scamming"
|
|
28
|
+
| "arson";
|
|
29
|
+
|
|
12
30
|
export type CountryEnum =
|
|
13
31
|
| "Mexico"
|
|
14
32
|
| "Hawaii"
|
|
@@ -4602,6 +4620,8 @@ export type FactionId = number;
|
|
|
4602
4620
|
|
|
4603
4621
|
export type CompanyId = number;
|
|
4604
4622
|
|
|
4623
|
+
export type CompanyTypeId = number;
|
|
4624
|
+
|
|
4605
4625
|
export type EducationId = number;
|
|
4606
4626
|
|
|
4607
4627
|
export type FactionBranchId = number;
|
|
@@ -4652,6 +4672,8 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4652
4672
|
*/
|
|
4653
4673
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
4654
4674
|
|
|
4675
|
+
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
4676
|
+
|
|
4655
4677
|
export type Parameters = string;
|
|
4656
4678
|
|
|
4657
4679
|
export type ReviveSetting =
|
|
@@ -5084,6 +5106,100 @@ export type SelectionCategoryEnum =
|
|
|
5084
5106
|
| PersonalStatsCategoryEnum
|
|
5085
5107
|
| RacingRaceTypeEnum;
|
|
5086
5108
|
|
|
5109
|
+
export interface UserMoneyResponse {
|
|
5110
|
+
money: {
|
|
5111
|
+
points: number;
|
|
5112
|
+
wallet: number;
|
|
5113
|
+
company: number;
|
|
5114
|
+
vault: number;
|
|
5115
|
+
cayman_bank: number;
|
|
5116
|
+
city_bank: {
|
|
5117
|
+
amount: number;
|
|
5118
|
+
until: number;
|
|
5119
|
+
};
|
|
5120
|
+
faction: {
|
|
5121
|
+
money: number;
|
|
5122
|
+
points: number;
|
|
5123
|
+
};
|
|
5124
|
+
daily_networth: number;
|
|
5125
|
+
};
|
|
5126
|
+
}
|
|
5127
|
+
|
|
5128
|
+
export interface UserSkillsResponse {
|
|
5129
|
+
skills: UserSkillDetail[];
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
export interface UserSkillDetail {
|
|
5133
|
+
slug: string & (UserSkillSlugEnum | string);
|
|
5134
|
+
name: string;
|
|
5135
|
+
level: number;
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5138
|
+
export interface UserJobPointsResponse {
|
|
5139
|
+
jobpoints: {
|
|
5140
|
+
jobs: {
|
|
5141
|
+
army: number;
|
|
5142
|
+
casino: number;
|
|
5143
|
+
education: number;
|
|
5144
|
+
grocer: number;
|
|
5145
|
+
law: number;
|
|
5146
|
+
medical: number;
|
|
5147
|
+
};
|
|
5148
|
+
companies: UserCompanyPoints[];
|
|
5149
|
+
};
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5152
|
+
export interface UserCompanyPoints {
|
|
5153
|
+
company: {
|
|
5154
|
+
id: CompanyTypeId;
|
|
5155
|
+
name: string;
|
|
5156
|
+
};
|
|
5157
|
+
points: number;
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
export interface UserWorkStatsResponse {
|
|
5161
|
+
workstats: {
|
|
5162
|
+
endurance: number;
|
|
5163
|
+
intelligence: number;
|
|
5164
|
+
manual_labor: number;
|
|
5165
|
+
total: number;
|
|
5166
|
+
};
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
export interface UserBattleStatsResponse {
|
|
5170
|
+
battlestats: {
|
|
5171
|
+
strength: UserBattleStatDetail;
|
|
5172
|
+
defense: UserBattleStatDetail;
|
|
5173
|
+
speed: UserBattleStatDetail;
|
|
5174
|
+
dexterity: UserBattleStatDetail;
|
|
5175
|
+
total: number;
|
|
5176
|
+
};
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
export interface UserBattleStatDetail {
|
|
5180
|
+
value: number;
|
|
5181
|
+
modifier: number;
|
|
5182
|
+
modifiers: UserBattleStatModifierDetail[];
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
export interface UserBattleStatModifierDetail {
|
|
5186
|
+
effect: string;
|
|
5187
|
+
value: number;
|
|
5188
|
+
type: string;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
export interface UserBasic {
|
|
5192
|
+
id: UserId;
|
|
5193
|
+
name: string;
|
|
5194
|
+
level: number;
|
|
5195
|
+
gender: UserGenderEnum;
|
|
5196
|
+
status: UserStatus;
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
export interface UserBasicResponse {
|
|
5200
|
+
profile: UserBasic;
|
|
5201
|
+
}
|
|
5202
|
+
|
|
5087
5203
|
export interface UserLog {
|
|
5088
5204
|
id: UserLogId;
|
|
5089
5205
|
timestamp: number;
|
|
@@ -5150,6 +5266,11 @@ export interface UserPropertyDetailsExtendedRented
|
|
|
5150
5266
|
rental_period: number;
|
|
5151
5267
|
rental_period_remaining: number;
|
|
5152
5268
|
rented_by: BasicUser;
|
|
5269
|
+
lease_extension: {
|
|
5270
|
+
cost: number;
|
|
5271
|
+
period: number;
|
|
5272
|
+
created_at: number;
|
|
5273
|
+
} | null;
|
|
5153
5274
|
}
|
|
5154
5275
|
|
|
5155
5276
|
export interface UserPropertyDetailsExtendedForRent
|
|
@@ -5533,7 +5654,7 @@ export interface UserListResponse {
|
|
|
5533
5654
|
_metadata: RequestMetadataWithLinks;
|
|
5534
5655
|
}
|
|
5535
5656
|
|
|
5536
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','
|
|
5657
|
+
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','log','medals','merits','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'. */
|
|
5537
5658
|
export type UserSelectionName = string;
|
|
5538
5659
|
|
|
5539
5660
|
export interface UserLookupResponse {
|
|
@@ -11436,10 +11557,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
11436
11557
|
response: FactionAttacksFullResponse;
|
|
11437
11558
|
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11438
11559
|
};
|
|
11560
|
+
basic: {
|
|
11561
|
+
response: UserBasicResponse;
|
|
11562
|
+
params: "striptags" | "timestamp";
|
|
11563
|
+
};
|
|
11439
11564
|
bounties: {
|
|
11440
11565
|
response: UserBountiesResponse;
|
|
11441
11566
|
params: "timestamp";
|
|
11442
11567
|
};
|
|
11568
|
+
battlestats: {
|
|
11569
|
+
response: UserBattleStatsResponse;
|
|
11570
|
+
params: "timestamp";
|
|
11571
|
+
};
|
|
11443
11572
|
calendar: {
|
|
11444
11573
|
response: UserCalendarResponse;
|
|
11445
11574
|
params: "timestamp";
|
|
@@ -11494,6 +11623,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11494
11623
|
response: UserItemMarketResponse;
|
|
11495
11624
|
params: "offset" | "timestamp";
|
|
11496
11625
|
};
|
|
11626
|
+
jobpoints: {
|
|
11627
|
+
response: UserJobPointsResponse;
|
|
11628
|
+
params: "timestamp";
|
|
11629
|
+
};
|
|
11497
11630
|
jobranks: {
|
|
11498
11631
|
response: UserJobRanksResponse;
|
|
11499
11632
|
params: "timestamp";
|
|
@@ -11506,6 +11639,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11506
11639
|
response: UserLogsResponse;
|
|
11507
11640
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
11508
11641
|
};
|
|
11642
|
+
money: {
|
|
11643
|
+
response: UserMoneyResponse;
|
|
11644
|
+
params: "timestamp";
|
|
11645
|
+
};
|
|
11509
11646
|
organizedcrime: {
|
|
11510
11647
|
response: UserOrganizedCrimeResponse;
|
|
11511
11648
|
params: "timestamp";
|
|
@@ -11516,7 +11653,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
11516
11653
|
};
|
|
11517
11654
|
properties: {
|
|
11518
11655
|
response: UserPropertiesResponse;
|
|
11519
|
-
params: "offset" | "limit" | "timestamp";
|
|
11656
|
+
params: "filters" | "offset" | "limit" | "timestamp";
|
|
11520
11657
|
};
|
|
11521
11658
|
property: {
|
|
11522
11659
|
response: UserPropertyResponse;
|
|
@@ -11556,6 +11693,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
11556
11693
|
| "striptags"
|
|
11557
11694
|
| "timestamp";
|
|
11558
11695
|
};
|
|
11696
|
+
skills: {
|
|
11697
|
+
response: UserSkillsResponse;
|
|
11698
|
+
params: "timestamp";
|
|
11699
|
+
};
|
|
11700
|
+
workstats: {
|
|
11701
|
+
response: UserWorkStatsResponse;
|
|
11702
|
+
params: "timestamp";
|
|
11703
|
+
};
|
|
11559
11704
|
lookup: {
|
|
11560
11705
|
response: UserLookupResponse;
|
|
11561
11706
|
params: "timestamp";
|
|
@@ -11742,7 +11887,14 @@ export interface ForumV2 extends BaseSchema {
|
|
|
11742
11887
|
};
|
|
11743
11888
|
posts: {
|
|
11744
11889
|
response: ForumPostsResponse;
|
|
11745
|
-
params:
|
|
11890
|
+
params:
|
|
11891
|
+
| "striptags"
|
|
11892
|
+
| "offset"
|
|
11893
|
+
| "sort"
|
|
11894
|
+
| "from"
|
|
11895
|
+
| "to"
|
|
11896
|
+
| "threadId"
|
|
11897
|
+
| "timestamp";
|
|
11746
11898
|
};
|
|
11747
11899
|
thread: {
|
|
11748
11900
|
response: ForumThreadResponse;
|