tornapi-typescript 3.0.6 → 3.0.8
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 +111 -1
- package/dist/index.ts +141 -1
- package/dist/openapi.json +947 -242
- 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;
|
|
@@ -700,7 +786,7 @@ export interface UserListResponse {
|
|
|
700
786
|
list: UserList[];
|
|
701
787
|
_metadata: RequestMetadataWithLinks;
|
|
702
788
|
}
|
|
703
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','
|
|
789
|
+
/** 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
790
|
export type UserSelectionName = string;
|
|
705
791
|
export interface UserLookupResponse {
|
|
706
792
|
selections: UserSelectionName[];
|
|
@@ -5973,10 +6059,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
5973
6059
|
response: FactionAttacksFullResponse;
|
|
5974
6060
|
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5975
6061
|
};
|
|
6062
|
+
basic: {
|
|
6063
|
+
response: UserBasicResponse;
|
|
6064
|
+
params: "striptags" | "timestamp";
|
|
6065
|
+
};
|
|
5976
6066
|
bounties: {
|
|
5977
6067
|
response: UserBountiesResponse;
|
|
5978
6068
|
params: "timestamp";
|
|
5979
6069
|
};
|
|
6070
|
+
battlestats: {
|
|
6071
|
+
response: UserBattleStatsResponse;
|
|
6072
|
+
params: "timestamp";
|
|
6073
|
+
};
|
|
5980
6074
|
calendar: {
|
|
5981
6075
|
response: UserCalendarResponse;
|
|
5982
6076
|
params: "timestamp";
|
|
@@ -6025,6 +6119,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6025
6119
|
response: UserItemMarketResponse;
|
|
6026
6120
|
params: "offset" | "timestamp";
|
|
6027
6121
|
};
|
|
6122
|
+
jobpoints: {
|
|
6123
|
+
response: UserJobPointsResponse;
|
|
6124
|
+
params: "timestamp";
|
|
6125
|
+
};
|
|
6028
6126
|
jobranks: {
|
|
6029
6127
|
response: UserJobRanksResponse;
|
|
6030
6128
|
params: "timestamp";
|
|
@@ -6037,6 +6135,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
6037
6135
|
response: UserLogsResponse;
|
|
6038
6136
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
6039
6137
|
};
|
|
6138
|
+
money: {
|
|
6139
|
+
response: UserMoneyResponse;
|
|
6140
|
+
params: "timestamp";
|
|
6141
|
+
};
|
|
6040
6142
|
organizedcrime: {
|
|
6041
6143
|
response: UserOrganizedCrimeResponse;
|
|
6042
6144
|
params: "timestamp";
|
|
@@ -6073,6 +6175,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
6073
6175
|
response: RevivesFullResponse;
|
|
6074
6176
|
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6075
6177
|
};
|
|
6178
|
+
skills: {
|
|
6179
|
+
response: UserSkillsResponse;
|
|
6180
|
+
params: "timestamp";
|
|
6181
|
+
};
|
|
6182
|
+
workstats: {
|
|
6183
|
+
response: UserWorkStatsResponse;
|
|
6184
|
+
params: "timestamp";
|
|
6185
|
+
};
|
|
6076
6186
|
lookup: {
|
|
6077
6187
|
response: UserLookupResponse;
|
|
6078
6188
|
params: "timestamp";
|
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;
|
|
@@ -5533,7 +5649,7 @@ export interface UserListResponse {
|
|
|
5533
5649
|
_metadata: RequestMetadataWithLinks;
|
|
5534
5650
|
}
|
|
5535
5651
|
|
|
5536
|
-
/** The following selections will fallback to API v1 and may change at any time: 'ammo','bars','
|
|
5652
|
+
/** 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
5653
|
export type UserSelectionName = string;
|
|
5538
5654
|
|
|
5539
5655
|
export interface UserLookupResponse {
|
|
@@ -11436,10 +11552,18 @@ export interface UserV2 extends BaseSchema {
|
|
|
11436
11552
|
response: FactionAttacksFullResponse;
|
|
11437
11553
|
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11438
11554
|
};
|
|
11555
|
+
basic: {
|
|
11556
|
+
response: UserBasicResponse;
|
|
11557
|
+
params: "striptags" | "timestamp";
|
|
11558
|
+
};
|
|
11439
11559
|
bounties: {
|
|
11440
11560
|
response: UserBountiesResponse;
|
|
11441
11561
|
params: "timestamp";
|
|
11442
11562
|
};
|
|
11563
|
+
battlestats: {
|
|
11564
|
+
response: UserBattleStatsResponse;
|
|
11565
|
+
params: "timestamp";
|
|
11566
|
+
};
|
|
11443
11567
|
calendar: {
|
|
11444
11568
|
response: UserCalendarResponse;
|
|
11445
11569
|
params: "timestamp";
|
|
@@ -11494,6 +11618,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11494
11618
|
response: UserItemMarketResponse;
|
|
11495
11619
|
params: "offset" | "timestamp";
|
|
11496
11620
|
};
|
|
11621
|
+
jobpoints: {
|
|
11622
|
+
response: UserJobPointsResponse;
|
|
11623
|
+
params: "timestamp";
|
|
11624
|
+
};
|
|
11497
11625
|
jobranks: {
|
|
11498
11626
|
response: UserJobRanksResponse;
|
|
11499
11627
|
params: "timestamp";
|
|
@@ -11506,6 +11634,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11506
11634
|
response: UserLogsResponse;
|
|
11507
11635
|
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
11508
11636
|
};
|
|
11637
|
+
money: {
|
|
11638
|
+
response: UserMoneyResponse;
|
|
11639
|
+
params: "timestamp";
|
|
11640
|
+
};
|
|
11509
11641
|
organizedcrime: {
|
|
11510
11642
|
response: UserOrganizedCrimeResponse;
|
|
11511
11643
|
params: "timestamp";
|
|
@@ -11556,6 +11688,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
11556
11688
|
| "striptags"
|
|
11557
11689
|
| "timestamp";
|
|
11558
11690
|
};
|
|
11691
|
+
skills: {
|
|
11692
|
+
response: UserSkillsResponse;
|
|
11693
|
+
params: "timestamp";
|
|
11694
|
+
};
|
|
11695
|
+
workstats: {
|
|
11696
|
+
response: UserWorkStatsResponse;
|
|
11697
|
+
params: "timestamp";
|
|
11698
|
+
};
|
|
11559
11699
|
lookup: {
|
|
11560
11700
|
response: UserLookupResponse;
|
|
11561
11701
|
params: "timestamp";
|