tornapi-typescript 6.1.1 → 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 +5 -1
- package/dist/index.ts +5 -1
- package/dist/openapi.json +44 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -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
|
@@ -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
|
{
|
|
@@ -18301,18 +18301,58 @@
|
|
|
18301
18301
|
"UserTrade": {
|
|
18302
18302
|
"required": [
|
|
18303
18303
|
"id",
|
|
18304
|
-
"timestamp",
|
|
18305
18304
|
"user",
|
|
18306
18305
|
"trader",
|
|
18307
|
-
"items"
|
|
18306
|
+
"items",
|
|
18307
|
+
"completed_at",
|
|
18308
|
+
"expires_at",
|
|
18309
|
+
"modified_at"
|
|
18308
18310
|
],
|
|
18309
18311
|
"properties": {
|
|
18310
18312
|
"id": {
|
|
18311
18313
|
"$ref": "#/components/schemas/TradeId"
|
|
18312
18314
|
},
|
|
18313
18315
|
"timestamp": {
|
|
18316
|
+
"description": "This field is depracted and replaced with 'completed_at' field.",
|
|
18314
18317
|
"type": "integer",
|
|
18315
|
-
"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
|
+
]
|
|
18316
18356
|
},
|
|
18317
18357
|
"user": {
|
|
18318
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
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
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
|
},
|