tornapi-typescript 4.3.7 → 4.3.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 +4 -0
- package/dist/index.ts +6 -0
- package/dist/openapi.json +31 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export type WeaponBonusEnum = "Any" | "Double" | "Yellow" | "Orange" | "Red" | "
|
|
|
48
48
|
export type UserListEnum = "Friends" | "Enemies" | "Targets";
|
|
49
49
|
export type JobPositionCasinoEnum = "Gaming Consultant" | "Marketing Manager" | "Revenue Manager" | "Casino Manager" | "Casino President";
|
|
50
50
|
export type AttackFinishingHitEffect = "proficience" | "stricken" | "revitalize" | "warlord" | "plunder" | "irradiate";
|
|
51
|
+
export type ApiFiltersAttacksRevivesEnum = "incoming" | "outgoing" | "idFilter";
|
|
51
52
|
export type JobPositionMedicalEnum = "Medical Student" | "Houseman" | "Senior Houseman" | "GP" | "Consultant" | "Surgeon" | "Brain Surgeon";
|
|
52
53
|
export type JobPositionLawEnum = "Law Student" | "Paralegal" | "Probate Lawyer" | "Trial Lawyer" | "Circuit Court Judge" | "Federal Judge";
|
|
53
54
|
export type JobPositionEducationEnum = "Recess Supervisor" | "Substitute Teacher" | "Elementary Teacher" | "Secondary Teacher" | "Professor" | "Vice-Principal" | "Principal";
|
|
@@ -124,6 +125,7 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
124
125
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
125
126
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
126
127
|
export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown" | "Unknown Rarity";
|
|
128
|
+
export type AwardCrimesVersionEnum = "v1" | "v2";
|
|
127
129
|
export type Parameters = string;
|
|
128
130
|
export type ReviveSetting = "Everyone" | "Friends & faction" | "No one" | "Unknown";
|
|
129
131
|
export type FactionWarfareTypeEnum = "ranked" | "territory" | "raid" | "chain" | "chainOngoing" | "db";
|
|
@@ -2782,6 +2784,7 @@ export interface TornHonor {
|
|
|
2782
2784
|
circulation?: number;
|
|
2783
2785
|
equipped?: number;
|
|
2784
2786
|
rarity?: HonorRarityEnum;
|
|
2787
|
+
crimes_version?: AwardCrimesVersionEnum;
|
|
2785
2788
|
}
|
|
2786
2789
|
export interface TornHonorsResponse {
|
|
2787
2790
|
honors: TornHonor[];
|
|
@@ -2796,6 +2799,7 @@ export interface TornMedal {
|
|
|
2796
2799
|
};
|
|
2797
2800
|
circulation: number;
|
|
2798
2801
|
rarity: HonorRarityEnum;
|
|
2802
|
+
crimes_version?: AwardCrimesVersionEnum;
|
|
2799
2803
|
}
|
|
2800
2804
|
export interface TornMedalsResponse {
|
|
2801
2805
|
medals: TornMedal[];
|
package/dist/index.ts
CHANGED
|
@@ -4629,6 +4629,8 @@ export type AttackFinishingHitEffect =
|
|
|
4629
4629
|
| "plunder"
|
|
4630
4630
|
| "irradiate";
|
|
4631
4631
|
|
|
4632
|
+
export type ApiFiltersAttacksRevivesEnum = "incoming" | "outgoing" | "idFilter";
|
|
4633
|
+
|
|
4632
4634
|
export type JobPositionMedicalEnum =
|
|
4633
4635
|
| "Medical Student"
|
|
4634
4636
|
| "Houseman"
|
|
@@ -4852,6 +4854,8 @@ export type HonorRarityEnum =
|
|
|
4852
4854
|
| "Unknown"
|
|
4853
4855
|
| "Unknown Rarity";
|
|
4854
4856
|
|
|
4857
|
+
export type AwardCrimesVersionEnum = "v1" | "v2";
|
|
4858
|
+
|
|
4855
4859
|
export type Parameters = string;
|
|
4856
4860
|
|
|
4857
4861
|
export type ReviveSetting =
|
|
@@ -8394,6 +8398,7 @@ export interface TornHonor {
|
|
|
8394
8398
|
circulation?: number;
|
|
8395
8399
|
equipped?: number;
|
|
8396
8400
|
rarity?: HonorRarityEnum;
|
|
8401
|
+
crimes_version?: AwardCrimesVersionEnum;
|
|
8397
8402
|
}
|
|
8398
8403
|
|
|
8399
8404
|
export interface TornHonorsResponse {
|
|
@@ -8410,6 +8415,7 @@ export interface TornMedal {
|
|
|
8410
8415
|
};
|
|
8411
8416
|
circulation: number;
|
|
8412
8417
|
rarity: HonorRarityEnum;
|
|
8418
|
+
crimes_version?: AwardCrimesVersionEnum;
|
|
8413
8419
|
}
|
|
8414
8420
|
|
|
8415
8421
|
export interface TornMedalsResponse {
|
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": "4.3.
|
|
6
|
+
"version": "4.3.8"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -13856,6 +13856,14 @@
|
|
|
13856
13856
|
"irradiate"
|
|
13857
13857
|
]
|
|
13858
13858
|
},
|
|
13859
|
+
"ApiFiltersAttacksRevivesEnum": {
|
|
13860
|
+
"type": "string",
|
|
13861
|
+
"enum": [
|
|
13862
|
+
"incoming",
|
|
13863
|
+
"outgoing",
|
|
13864
|
+
"idFilter"
|
|
13865
|
+
]
|
|
13866
|
+
},
|
|
13859
13867
|
"JobPositionMedicalEnum": {
|
|
13860
13868
|
"type": "string",
|
|
13861
13869
|
"enum": [
|
|
@@ -14252,6 +14260,13 @@
|
|
|
14252
14260
|
"Unknown Rarity"
|
|
14253
14261
|
]
|
|
14254
14262
|
},
|
|
14263
|
+
"AwardCrimesVersionEnum": {
|
|
14264
|
+
"type": "string",
|
|
14265
|
+
"enum": [
|
|
14266
|
+
"v1",
|
|
14267
|
+
"v2"
|
|
14268
|
+
]
|
|
14269
|
+
},
|
|
14255
14270
|
"Parameters": {
|
|
14256
14271
|
"oneOf": [
|
|
14257
14272
|
{
|
|
@@ -27636,6 +27651,10 @@
|
|
|
27636
27651
|
},
|
|
27637
27652
|
"rarity": {
|
|
27638
27653
|
"$ref": "#/components/schemas/HonorRarityEnum"
|
|
27654
|
+
},
|
|
27655
|
+
"crimes_version": {
|
|
27656
|
+
"$ref": "#/components/schemas/AwardCrimesVersionEnum",
|
|
27657
|
+
"description": "Populated only when the type.id is 5."
|
|
27639
27658
|
}
|
|
27640
27659
|
},
|
|
27641
27660
|
"type": "object"
|
|
@@ -27695,6 +27714,10 @@
|
|
|
27695
27714
|
},
|
|
27696
27715
|
"rarity": {
|
|
27697
27716
|
"$ref": "#/components/schemas/HonorRarityEnum"
|
|
27717
|
+
},
|
|
27718
|
+
"crimes_version": {
|
|
27719
|
+
"$ref": "#/components/schemas/AwardCrimesVersionEnum",
|
|
27720
|
+
"description": "Populated only when the type.id is 'CRM'."
|
|
27698
27721
|
}
|
|
27699
27722
|
},
|
|
27700
27723
|
"type": "object"
|
|
@@ -29482,14 +29505,15 @@
|
|
|
29482
29505
|
"ApiFiltersIncomingOutgoing": {
|
|
29483
29506
|
"name": "filters",
|
|
29484
29507
|
"in": "query",
|
|
29485
|
-
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks / revives. If not specified, this selection will return both incoming and outgoing attacks / revives.",
|
|
29508
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks / revives. If not specified, this selection will return both incoming and outgoing attacks / revives.\nIt's also possible to combine this with 'idFilter'. This filter allows using from/to to filter by ids instead of timestamps.",
|
|
29486
29509
|
"required": false,
|
|
29510
|
+
"style": "form",
|
|
29511
|
+
"explode": false,
|
|
29487
29512
|
"schema": {
|
|
29488
|
-
"type": "
|
|
29489
|
-
"
|
|
29490
|
-
"
|
|
29491
|
-
|
|
29492
|
-
]
|
|
29513
|
+
"type": "array",
|
|
29514
|
+
"items": {
|
|
29515
|
+
"$ref": "#/components/schemas/ApiFiltersAttacksRevivesEnum"
|
|
29516
|
+
}
|
|
29493
29517
|
}
|
|
29494
29518
|
},
|
|
29495
29519
|
"ApiFiltersUser": {
|