tornapi-typescript 6.13.3 → 6.13.5
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 +8 -1
- package/dist/index.ts +9 -1
- package/dist/openapi.json +43 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -634,6 +634,7 @@ export interface UserTrade {
|
|
|
634
634
|
id: TradeId;
|
|
635
635
|
/** This field is depracted and replaced with 'completed_at' field. */
|
|
636
636
|
timestamp?: number;
|
|
637
|
+
description: string;
|
|
637
638
|
completed_at: number | null;
|
|
638
639
|
expires_at: number | null;
|
|
639
640
|
modified_at: number | null;
|
|
@@ -3284,7 +3285,7 @@ export interface ItemMarketListingStackable {
|
|
|
3284
3285
|
}
|
|
3285
3286
|
export interface ItemMarketListingItemDetails {
|
|
3286
3287
|
uid: ItemUid;
|
|
3287
|
-
stats: ItemMarketListingItemStats;
|
|
3288
|
+
stats: ItemMarketListingItemStats | null;
|
|
3288
3289
|
bonuses: ItemMarketListingItemBonus[];
|
|
3289
3290
|
rarity: ("yellow" | "orange" | "red") | null;
|
|
3290
3291
|
}
|
|
@@ -3778,16 +3779,22 @@ export interface TornStockDetailedResponse {
|
|
|
3778
3779
|
export interface TornEliminationTeamLeader extends BasicUser {
|
|
3779
3780
|
active: boolean;
|
|
3780
3781
|
}
|
|
3782
|
+
export interface TornEliminationTeamAttacksSummary {
|
|
3783
|
+
team_id: EliminationTeamId;
|
|
3784
|
+
attacks: number;
|
|
3785
|
+
}
|
|
3781
3786
|
export interface TornEliminationTeam {
|
|
3782
3787
|
id: EliminationTeamId;
|
|
3783
3788
|
name: string;
|
|
3784
3789
|
participants: number;
|
|
3790
|
+
participants_left: number;
|
|
3785
3791
|
position: number;
|
|
3786
3792
|
score: number;
|
|
3787
3793
|
lives: number;
|
|
3788
3794
|
wins: number;
|
|
3789
3795
|
losses: number;
|
|
3790
3796
|
eliminated: boolean;
|
|
3797
|
+
attacking_summary: TornEliminationTeamAttacksSummary[];
|
|
3791
3798
|
eliminated_timestamp: number | null;
|
|
3792
3799
|
leaders: {
|
|
3793
3800
|
captain: TornEliminationTeamLeader | null;
|
package/dist/index.ts
CHANGED
|
@@ -5730,6 +5730,7 @@ export interface UserTrade {
|
|
|
5730
5730
|
id: TradeId;
|
|
5731
5731
|
/** This field is depracted and replaced with 'completed_at' field. */
|
|
5732
5732
|
timestamp?: number;
|
|
5733
|
+
description: string;
|
|
5733
5734
|
completed_at: number | null;
|
|
5734
5735
|
expires_at: number | null;
|
|
5735
5736
|
modified_at: number | null;
|
|
@@ -9082,7 +9083,7 @@ export interface ItemMarketListingStackable {
|
|
|
9082
9083
|
|
|
9083
9084
|
export interface ItemMarketListingItemDetails {
|
|
9084
9085
|
uid: ItemUid;
|
|
9085
|
-
stats: ItemMarketListingItemStats;
|
|
9086
|
+
stats: ItemMarketListingItemStats | null;
|
|
9086
9087
|
bonuses: ItemMarketListingItemBonus[];
|
|
9087
9088
|
rarity: ("yellow" | "orange" | "red") | null;
|
|
9088
9089
|
}
|
|
@@ -9637,16 +9638,23 @@ export interface TornEliminationTeamLeader extends BasicUser {
|
|
|
9637
9638
|
active: boolean;
|
|
9638
9639
|
}
|
|
9639
9640
|
|
|
9641
|
+
export interface TornEliminationTeamAttacksSummary {
|
|
9642
|
+
team_id: EliminationTeamId;
|
|
9643
|
+
attacks: number;
|
|
9644
|
+
}
|
|
9645
|
+
|
|
9640
9646
|
export interface TornEliminationTeam {
|
|
9641
9647
|
id: EliminationTeamId;
|
|
9642
9648
|
name: string;
|
|
9643
9649
|
participants: number;
|
|
9650
|
+
participants_left: number;
|
|
9644
9651
|
position: number;
|
|
9645
9652
|
score: number;
|
|
9646
9653
|
lives: number;
|
|
9647
9654
|
wins: number;
|
|
9648
9655
|
losses: number;
|
|
9649
9656
|
eliminated: boolean;
|
|
9657
|
+
attacking_summary: TornEliminationTeamAttacksSummary[];
|
|
9650
9658
|
eliminated_timestamp: number | null;
|
|
9651
9659
|
leaders: {
|
|
9652
9660
|
captain: TornEliminationTeamLeader | null;
|
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": "6.13.
|
|
6
|
+
"version": "6.13.5"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -20127,7 +20127,8 @@
|
|
|
20127
20127
|
"items",
|
|
20128
20128
|
"completed_at",
|
|
20129
20129
|
"expires_at",
|
|
20130
|
-
"modified_at"
|
|
20130
|
+
"modified_at",
|
|
20131
|
+
"description"
|
|
20131
20132
|
],
|
|
20132
20133
|
"properties": {
|
|
20133
20134
|
"id": {
|
|
@@ -20139,6 +20140,9 @@
|
|
|
20139
20140
|
"format": "int32",
|
|
20140
20141
|
"deprecated": true
|
|
20141
20142
|
},
|
|
20143
|
+
"description": {
|
|
20144
|
+
"type": "string"
|
|
20145
|
+
},
|
|
20142
20146
|
"completed_at": {
|
|
20143
20147
|
"description": "Populated when selected category is 'finished'.",
|
|
20144
20148
|
"oneOf": [
|
|
@@ -33202,7 +33206,14 @@
|
|
|
33202
33206
|
"$ref": "#/components/schemas/ItemUid"
|
|
33203
33207
|
},
|
|
33204
33208
|
"stats": {
|
|
33205
|
-
"
|
|
33209
|
+
"oneOf": [
|
|
33210
|
+
{
|
|
33211
|
+
"$ref": "#/components/schemas/ItemMarketListingItemStats"
|
|
33212
|
+
},
|
|
33213
|
+
{
|
|
33214
|
+
"type": "null"
|
|
33215
|
+
}
|
|
33216
|
+
]
|
|
33206
33217
|
},
|
|
33207
33218
|
"bonuses": {
|
|
33208
33219
|
"type": "array",
|
|
@@ -35563,11 +35574,28 @@
|
|
|
35563
35574
|
}
|
|
35564
35575
|
]
|
|
35565
35576
|
},
|
|
35577
|
+
"TornEliminationTeamAttacksSummary": {
|
|
35578
|
+
"required": [
|
|
35579
|
+
"team_id",
|
|
35580
|
+
"attacks"
|
|
35581
|
+
],
|
|
35582
|
+
"properties": {
|
|
35583
|
+
"team_id": {
|
|
35584
|
+
"$ref": "#/components/schemas/EliminationTeamId"
|
|
35585
|
+
},
|
|
35586
|
+
"attacks": {
|
|
35587
|
+
"type": "integer",
|
|
35588
|
+
"format": "int32"
|
|
35589
|
+
}
|
|
35590
|
+
},
|
|
35591
|
+
"type": "object"
|
|
35592
|
+
},
|
|
35566
35593
|
"TornEliminationTeam": {
|
|
35567
35594
|
"required": [
|
|
35568
35595
|
"id",
|
|
35569
35596
|
"name",
|
|
35570
35597
|
"participants",
|
|
35598
|
+
"participants_left",
|
|
35571
35599
|
"position",
|
|
35572
35600
|
"score",
|
|
35573
35601
|
"lives",
|
|
@@ -35575,7 +35603,8 @@
|
|
|
35575
35603
|
"losses",
|
|
35576
35604
|
"eliminated",
|
|
35577
35605
|
"eliminated_timestamp",
|
|
35578
|
-
"leaders"
|
|
35606
|
+
"leaders",
|
|
35607
|
+
"attacking_summary"
|
|
35579
35608
|
],
|
|
35580
35609
|
"properties": {
|
|
35581
35610
|
"id": {
|
|
@@ -35588,6 +35617,10 @@
|
|
|
35588
35617
|
"type": "integer",
|
|
35589
35618
|
"format": "int32"
|
|
35590
35619
|
},
|
|
35620
|
+
"participants_left": {
|
|
35621
|
+
"type": "integer",
|
|
35622
|
+
"format": "int32"
|
|
35623
|
+
},
|
|
35591
35624
|
"position": {
|
|
35592
35625
|
"type": "integer",
|
|
35593
35626
|
"format": "int32"
|
|
@@ -35611,6 +35644,12 @@
|
|
|
35611
35644
|
"eliminated": {
|
|
35612
35645
|
"type": "boolean"
|
|
35613
35646
|
},
|
|
35647
|
+
"attacking_summary": {
|
|
35648
|
+
"type": "array",
|
|
35649
|
+
"items": {
|
|
35650
|
+
"$ref": "#/components/schemas/TornEliminationTeamAttacksSummary"
|
|
35651
|
+
}
|
|
35652
|
+
},
|
|
35614
35653
|
"eliminated_timestamp": {
|
|
35615
35654
|
"oneOf": [
|
|
35616
35655
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.13.
|
|
4
|
+
"version": "6.13.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@scalar/openapi-types": "^0.9.5",
|
|
13
|
-
"@types/node": "^25.9.
|
|
13
|
+
"@types/node": "^25.9.6",
|
|
14
14
|
"prettier": "^3.9.6",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|