tornapi-typescript 3.0.3 → 3.0.4

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 CHANGED
@@ -5957,11 +5957,11 @@ export interface UserV2 extends BaseSchema {
5957
5957
  selections: {
5958
5958
  attacks: {
5959
5959
  response: FactionAttacksResponse;
5960
- params: "limit" | "sort" | "to" | "from" | "timestamp";
5960
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
5961
5961
  };
5962
5962
  attacksfull: {
5963
5963
  response: FactionAttacksFullResponse;
5964
- params: "limit" | "sort" | "to" | "from" | "timestamp";
5964
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
5965
5965
  };
5966
5966
  bounties: {
5967
5967
  response: UserBountiesResponse;
@@ -6057,11 +6057,11 @@ export interface UserV2 extends BaseSchema {
6057
6057
  };
6058
6058
  revives: {
6059
6059
  response: RevivesResponse;
6060
- params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6060
+ params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6061
6061
  };
6062
6062
  revivesFull: {
6063
6063
  response: RevivesFullResponse;
6064
- params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6064
+ params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6065
6065
  };
6066
6066
  lookup: {
6067
6067
  response: UserLookupResponse;
@@ -6081,11 +6081,11 @@ export interface FactionV2 extends BaseSchema {
6081
6081
  };
6082
6082
  attacks: {
6083
6083
  response: FactionAttacksResponse;
6084
- params: "limit" | "sort" | "to" | "from" | "timestamp";
6084
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
6085
6085
  };
6086
6086
  attacksfull: {
6087
6087
  response: FactionAttacksFullResponse;
6088
- params: "limit" | "sort" | "to" | "from" | "timestamp";
6088
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
6089
6089
  };
6090
6090
  balance: {
6091
6091
  response: FactionBalanceResponse;
@@ -6161,11 +6161,11 @@ export interface FactionV2 extends BaseSchema {
6161
6161
  };
6162
6162
  revives: {
6163
6163
  response: RevivesResponse;
6164
- params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6164
+ params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6165
6165
  };
6166
6166
  revivesFull: {
6167
6167
  response: RevivesFullResponse;
6168
- params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6168
+ params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
6169
6169
  };
6170
6170
  search: {
6171
6171
  response: FactionSearchResponse;
package/dist/index.ts CHANGED
@@ -11417,11 +11417,11 @@ export interface UserV2 extends BaseSchema {
11417
11417
  selections: {
11418
11418
  attacks: {
11419
11419
  response: FactionAttacksResponse;
11420
- params: "limit" | "sort" | "to" | "from" | "timestamp";
11420
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
11421
11421
  };
11422
11422
  attacksfull: {
11423
11423
  response: FactionAttacksFullResponse;
11424
- params: "limit" | "sort" | "to" | "from" | "timestamp";
11424
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
11425
11425
  };
11426
11426
  bounties: {
11427
11427
  response: UserBountiesResponse;
@@ -11524,6 +11524,7 @@ export interface UserV2 extends BaseSchema {
11524
11524
  revives: {
11525
11525
  response: RevivesResponse;
11526
11526
  params:
11527
+ | "filters"
11527
11528
  | "limit"
11528
11529
  | "sort"
11529
11530
  | "to"
@@ -11534,6 +11535,7 @@ export interface UserV2 extends BaseSchema {
11534
11535
  revivesFull: {
11535
11536
  response: RevivesFullResponse;
11536
11537
  params:
11538
+ | "filters"
11537
11539
  | "limit"
11538
11540
  | "sort"
11539
11541
  | "to"
@@ -11559,11 +11561,11 @@ export interface FactionV2 extends BaseSchema {
11559
11561
  };
11560
11562
  attacks: {
11561
11563
  response: FactionAttacksResponse;
11562
- params: "limit" | "sort" | "to" | "from" | "timestamp";
11564
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
11563
11565
  };
11564
11566
  attacksfull: {
11565
11567
  response: FactionAttacksFullResponse;
11566
- params: "limit" | "sort" | "to" | "from" | "timestamp";
11568
+ params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
11567
11569
  };
11568
11570
  balance: {
11569
11571
  response: FactionBalanceResponse;
@@ -11654,6 +11656,7 @@ export interface FactionV2 extends BaseSchema {
11654
11656
  revives: {
11655
11657
  response: RevivesResponse;
11656
11658
  params:
11659
+ | "filters"
11657
11660
  | "limit"
11658
11661
  | "sort"
11659
11662
  | "to"
@@ -11664,6 +11667,7 @@ export interface FactionV2 extends BaseSchema {
11664
11667
  revivesFull: {
11665
11668
  response: RevivesFullResponse;
11666
11669
  params:
11670
+ | "filters"
11667
11671
  | "limit"
11668
11672
  | "sort"
11669
11673
  | "to"
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": "3.0.3"
6
+ "version": "3.0.4"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -21,6 +21,19 @@
21
21
  "description": "Requires limited access key. <br>",
22
22
  "operationId": "3acc98a3016974b786cb01e04e1ced04",
23
23
  "parameters": [
24
+ {
25
+ "name": "filters",
26
+ "in": "query",
27
+ "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
28
+ "required": false,
29
+ "schema": {
30
+ "type": "string",
31
+ "enum": [
32
+ "incoming",
33
+ "outgoing"
34
+ ]
35
+ }
36
+ },
24
37
  {
25
38
  "$ref": "#/components/parameters/ApiLimit100"
26
39
  },
@@ -72,6 +85,19 @@
72
85
  "description": "Requires limited access key. <br>Returns up to 1,000 rows. <br>",
73
86
  "operationId": "e995691fd9845c8b4a91f065ac9c8420",
74
87
  "parameters": [
88
+ {
89
+ "name": "filters",
90
+ "in": "query",
91
+ "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
92
+ "required": false,
93
+ "schema": {
94
+ "type": "string",
95
+ "enum": [
96
+ "incoming",
97
+ "outgoing"
98
+ ]
99
+ }
100
+ },
75
101
  {
76
102
  "$ref": "#/components/parameters/ApiLimit1000"
77
103
  },
@@ -1589,6 +1615,19 @@
1589
1615
  "description": "Requires limited access key. <br>",
1590
1616
  "operationId": "3c847eb1325040798f37a7492108e094",
1591
1617
  "parameters": [
1618
+ {
1619
+ "name": "filters",
1620
+ "in": "query",
1621
+ "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
1622
+ "required": false,
1623
+ "schema": {
1624
+ "type": "string",
1625
+ "enum": [
1626
+ "incoming",
1627
+ "outgoing"
1628
+ ]
1629
+ }
1630
+ },
1592
1631
  {
1593
1632
  "$ref": "#/components/parameters/ApiLimit100Default20"
1594
1633
  },
@@ -1643,6 +1682,19 @@
1643
1682
  "description": "Requires limited access key. <br>",
1644
1683
  "operationId": "8820cd889afde899353037ca5a0f9a07",
1645
1684
  "parameters": [
1685
+ {
1686
+ "name": "filters",
1687
+ "in": "query",
1688
+ "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
1689
+ "required": false,
1690
+ "schema": {
1691
+ "type": "string",
1692
+ "enum": [
1693
+ "incoming",
1694
+ "outgoing"
1695
+ ]
1696
+ }
1697
+ },
1646
1698
  {
1647
1699
  "$ref": "#/components/parameters/ApiLimit1000Default20"
1648
1700
  },
@@ -2019,6 +2071,19 @@
2019
2071
  "description": "Requires limited access key with faction API access permissions. <br>",
2020
2072
  "operationId": "cb5b38ba64c389e706526df8bc8af9b6",
2021
2073
  "parameters": [
2074
+ {
2075
+ "name": "filters",
2076
+ "in": "query",
2077
+ "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
2078
+ "required": false,
2079
+ "schema": {
2080
+ "type": "string",
2081
+ "enum": [
2082
+ "incoming",
2083
+ "outgoing"
2084
+ ]
2085
+ }
2086
+ },
2022
2087
  {
2023
2088
  "$ref": "#/components/parameters/ApiLimit100"
2024
2089
  },
@@ -2070,6 +2135,19 @@
2070
2135
  "description": "Requires limited access key with faction API access permissions. <br>",
2071
2136
  "operationId": "8551280aaaf9819aa94be5c469a523de",
2072
2137
  "parameters": [
2138
+ {
2139
+ "name": "filters",
2140
+ "in": "query",
2141
+ "description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
2142
+ "required": false,
2143
+ "schema": {
2144
+ "type": "string",
2145
+ "enum": [
2146
+ "incoming",
2147
+ "outgoing"
2148
+ ]
2149
+ }
2150
+ },
2073
2151
  {
2074
2152
  "$ref": "#/components/parameters/ApiLimit1000"
2075
2153
  },
@@ -3408,6 +3486,19 @@
3408
3486
  "description": "Requires limited access key with faction API access permissions. <br>",
3409
3487
  "operationId": "486fcda26ed1aa6aba8ec7091080723b",
3410
3488
  "parameters": [
3489
+ {
3490
+ "name": "filters",
3491
+ "in": "query",
3492
+ "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
3493
+ "required": false,
3494
+ "schema": {
3495
+ "type": "string",
3496
+ "enum": [
3497
+ "incoming",
3498
+ "outgoing"
3499
+ ]
3500
+ }
3501
+ },
3411
3502
  {
3412
3503
  "$ref": "#/components/parameters/ApiLimit100"
3413
3504
  },
@@ -3462,6 +3553,19 @@
3462
3553
  "description": "Requires limited access key with faction API access permissions. <br>",
3463
3554
  "operationId": "f17a4064779e8de5200238816c233c02",
3464
3555
  "parameters": [
3556
+ {
3557
+ "name": "filters",
3558
+ "in": "query",
3559
+ "description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
3560
+ "required": false,
3561
+ "schema": {
3562
+ "type": "string",
3563
+ "enum": [
3564
+ "incoming",
3565
+ "outgoing"
3566
+ ]
3567
+ }
3568
+ },
3465
3569
  {
3466
3570
  "$ref": "#/components/parameters/ApiLimit1000"
3467
3571
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },