tornapi-typescript 6.1.0 → 6.1.2
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 +6 -2
- package/dist/index.ts +6 -2
- package/dist/openapi.json +46 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export type FactionTerritoryWarsCategoryEnum = "finsihed" | "ongoing";
|
|
|
66
66
|
export type TradeCategoryEnum = "finished" | "ongoing";
|
|
67
67
|
export type FactionCrimeUserOutcome = "Successful" | "Failed" | "Jailed" | "Injured" | "Hospitalized";
|
|
68
68
|
export type FactionCrimeUserItemOutcomeEnum = "user" | "faction";
|
|
69
|
-
export type FactionCrimeItemOutcomeEnum = "lost" | "used";
|
|
69
|
+
export type FactionCrimeItemOutcomeEnum = "lost" | "used" | "unused";
|
|
70
70
|
export type RaceId = number;
|
|
71
71
|
export type HonorId = number;
|
|
72
72
|
export type MedalId = number;
|
|
@@ -542,7 +542,11 @@ export interface UserTradeResponse {
|
|
|
542
542
|
}
|
|
543
543
|
export interface UserTrade {
|
|
544
544
|
id: TradeId;
|
|
545
|
-
|
|
545
|
+
/** This field is depracted and replaced with 'completed_at' field. */
|
|
546
|
+
timestamp?: number;
|
|
547
|
+
completed_at: number | null;
|
|
548
|
+
expires_at: number | null;
|
|
549
|
+
modified_at: number | null;
|
|
546
550
|
user: UserTradeParticipant;
|
|
547
551
|
trader: UserTradeParticipant;
|
|
548
552
|
}
|
package/dist/index.ts
CHANGED
|
@@ -4701,7 +4701,7 @@ export type FactionCrimeUserOutcome =
|
|
|
4701
4701
|
|
|
4702
4702
|
export type FactionCrimeUserItemOutcomeEnum = "user" | "faction";
|
|
4703
4703
|
|
|
4704
|
-
export type FactionCrimeItemOutcomeEnum = "lost" | "used";
|
|
4704
|
+
export type FactionCrimeItemOutcomeEnum = "lost" | "used" | "unused";
|
|
4705
4705
|
|
|
4706
4706
|
export type RaceId = number;
|
|
4707
4707
|
|
|
@@ -5563,7 +5563,11 @@ export interface UserTradeResponse {
|
|
|
5563
5563
|
|
|
5564
5564
|
export interface UserTrade {
|
|
5565
5565
|
id: TradeId;
|
|
5566
|
-
|
|
5566
|
+
/** This field is depracted and replaced with 'completed_at' field. */
|
|
5567
|
+
timestamp?: number;
|
|
5568
|
+
completed_at: number | null;
|
|
5569
|
+
expires_at: number | null;
|
|
5570
|
+
modified_at: number | null;
|
|
5567
5571
|
user: UserTradeParticipant;
|
|
5568
5572
|
trader: UserTradeParticipant;
|
|
5569
5573
|
}
|
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.1.
|
|
6
|
+
"version": "6.1.2"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -15713,7 +15713,8 @@
|
|
|
15713
15713
|
"type": "string",
|
|
15714
15714
|
"enum": [
|
|
15715
15715
|
"lost",
|
|
15716
|
-
"used"
|
|
15716
|
+
"used",
|
|
15717
|
+
"unused"
|
|
15717
15718
|
]
|
|
15718
15719
|
},
|
|
15719
15720
|
"RaceId": {
|
|
@@ -18300,18 +18301,58 @@
|
|
|
18300
18301
|
"UserTrade": {
|
|
18301
18302
|
"required": [
|
|
18302
18303
|
"id",
|
|
18303
|
-
"timestamp",
|
|
18304
18304
|
"user",
|
|
18305
18305
|
"trader",
|
|
18306
|
-
"items"
|
|
18306
|
+
"items",
|
|
18307
|
+
"completed_at",
|
|
18308
|
+
"expires_at",
|
|
18309
|
+
"modified_at"
|
|
18307
18310
|
],
|
|
18308
18311
|
"properties": {
|
|
18309
18312
|
"id": {
|
|
18310
18313
|
"$ref": "#/components/schemas/TradeId"
|
|
18311
18314
|
},
|
|
18312
18315
|
"timestamp": {
|
|
18316
|
+
"description": "This field is depracted and replaced with 'completed_at' field.",
|
|
18313
18317
|
"type": "integer",
|
|
18314
|
-
"format": "int32"
|
|
18318
|
+
"format": "int32",
|
|
18319
|
+
"deprecated": true
|
|
18320
|
+
},
|
|
18321
|
+
"completed_at": {
|
|
18322
|
+
"description": "Populated when selected category is 'finished'.",
|
|
18323
|
+
"oneOf": [
|
|
18324
|
+
{
|
|
18325
|
+
"type": "integer",
|
|
18326
|
+
"format": "int32"
|
|
18327
|
+
},
|
|
18328
|
+
{
|
|
18329
|
+
"type": "null"
|
|
18330
|
+
}
|
|
18331
|
+
]
|
|
18332
|
+
},
|
|
18333
|
+
"expires_at": {
|
|
18334
|
+
"description": "Populated when selected category is 'ongoing'.",
|
|
18335
|
+
"oneOf": [
|
|
18336
|
+
{
|
|
18337
|
+
"type": "integer",
|
|
18338
|
+
"format": "int32"
|
|
18339
|
+
},
|
|
18340
|
+
{
|
|
18341
|
+
"type": "null"
|
|
18342
|
+
}
|
|
18343
|
+
]
|
|
18344
|
+
},
|
|
18345
|
+
"modified_at": {
|
|
18346
|
+
"description": "Populated when selected category is 'ongoing'.",
|
|
18347
|
+
"oneOf": [
|
|
18348
|
+
{
|
|
18349
|
+
"type": "integer",
|
|
18350
|
+
"format": "int32"
|
|
18351
|
+
},
|
|
18352
|
+
{
|
|
18353
|
+
"type": "null"
|
|
18354
|
+
}
|
|
18355
|
+
]
|
|
18315
18356
|
},
|
|
18316
18357
|
"user": {
|
|
18317
18358
|
"$ref": "#/components/schemas/UserTradeParticipant"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"generate-types": "tsc && node build/index.js"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@scalar/openapi-types": "^0.9.
|
|
12
|
+
"@scalar/openapi-types": "^0.9.3",
|
|
13
13
|
"@types/node": "^25.9.5",
|
|
14
|
-
"prettier": "^3.9.
|
|
14
|
+
"prettier": "^3.9.6",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|
|
17
17
|
},
|