tornapi-typescript 1.11.1 → 1.11.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.
Files changed (2) hide show
  1. package/dist/openapi.json +43 -2
  2. package/package.json +1 -1
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": "1.11.1"
6
+ "version": "1.11.2"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -2499,6 +2499,21 @@
2499
2499
  ]
2500
2500
  }
2501
2501
  },
2502
+ {
2503
+ "name": "filters",
2504
+ "in": "query",
2505
+ "description": "It's possible to set this parameter to specify a field used for the sort, from & to query parameters. If not specified, the field will default to the category sorting as described above.",
2506
+ "required": false,
2507
+ "schema": {
2508
+ "type": "string",
2509
+ "enum": [
2510
+ "created_at",
2511
+ "executed_at",
2512
+ "ready_at",
2513
+ "expired_at"
2514
+ ]
2515
+ }
2516
+ },
2502
2517
  {
2503
2518
  "$ref": "#/components/parameters/ApiOffset"
2504
2519
  },
@@ -3395,7 +3410,7 @@
3395
3410
  "$ref": "#/components/parameters/ApiFactionSearchFilter"
3396
3411
  },
3397
3412
  {
3398
- "$ref": "#/components/parameters/ApiLimit20"
3413
+ "$ref": "#/components/parameters/ApiLimit50Default20"
3399
3414
  },
3400
3415
  {
3401
3416
  "$ref": "#/components/parameters/ApiOffset"
@@ -4134,6 +4149,20 @@
4134
4149
  "$ref": "#/components/schemas/FactionStatEnum"
4135
4150
  }
4136
4151
  },
4152
+ {
4153
+ "name": "filters",
4154
+ "in": "query",
4155
+ "required": false,
4156
+ "schema": {
4157
+ "type": "string",
4158
+ "enum": [
4159
+ "created_at",
4160
+ "executed_at",
4161
+ "ready_at",
4162
+ "expired_at"
4163
+ ]
4164
+ }
4165
+ },
4137
4166
  {
4138
4167
  "$ref": "#/components/parameters/ApiStripTags"
4139
4168
  },
@@ -24646,6 +24675,18 @@
24646
24675
  "minimum": 1
24647
24676
  }
24648
24677
  },
24678
+ "ApiLimit50Default20": {
24679
+ "name": "limit",
24680
+ "in": "query",
24681
+ "required": false,
24682
+ "schema": {
24683
+ "type": "integer",
24684
+ "format": "int32",
24685
+ "default": 20,
24686
+ "maximum": 50,
24687
+ "minimum": 1
24688
+ }
24689
+ },
24649
24690
  "ApiLimit100": {
24650
24691
  "name": "limit",
24651
24692
  "in": "query",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "1.11.1",
4
+ "version": "1.11.2",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },