tornapi-typescript 5.9.0 → 6.0.1
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 +40 -14
- package/dist/index.ts +74 -159
- package/dist/openapi.json +282 -32
- package/package.json +5 -5
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
|
+
"version": "6.0.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1935,7 +1935,7 @@
|
|
|
1935
1935
|
"User"
|
|
1936
1936
|
],
|
|
1937
1937
|
"summary": "Get your logs",
|
|
1938
|
-
"description": "Requires full access key. <br> It's possible to pass a list of log ids or a log category id.<br>",
|
|
1938
|
+
"description": "Requires full access key. <br> It's possible to pass a list of log ids or a log category id.<br>This selection is standalone and cannot be used together with other selections.",
|
|
1939
1939
|
"operationId": "getMyLogs",
|
|
1940
1940
|
"parameters": [
|
|
1941
1941
|
{
|
|
@@ -6781,6 +6781,97 @@
|
|
|
6781
6781
|
"x-stability": "Unstable"
|
|
6782
6782
|
}
|
|
6783
6783
|
},
|
|
6784
|
+
"/company/search": {
|
|
6785
|
+
"get": {
|
|
6786
|
+
"tags": [
|
|
6787
|
+
"Company"
|
|
6788
|
+
],
|
|
6789
|
+
"summary": "Search companies by name or other criteria",
|
|
6790
|
+
"description": "Requires public access key. <br>This selection is standalone and cannot be used together with other selections.",
|
|
6791
|
+
"operationId": "getCompaniesSearch",
|
|
6792
|
+
"parameters": [
|
|
6793
|
+
{
|
|
6794
|
+
"$ref": "#/components/parameters/ApiName"
|
|
6795
|
+
},
|
|
6796
|
+
{
|
|
6797
|
+
"$ref": "#/components/parameters/ApiCompanySearchFilter"
|
|
6798
|
+
},
|
|
6799
|
+
{
|
|
6800
|
+
"$ref": "#/components/parameters/ApiLimit50Default20"
|
|
6801
|
+
},
|
|
6802
|
+
{
|
|
6803
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
6804
|
+
},
|
|
6805
|
+
{
|
|
6806
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
6807
|
+
},
|
|
6808
|
+
{
|
|
6809
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6813
|
+
}
|
|
6814
|
+
],
|
|
6815
|
+
"responses": {
|
|
6816
|
+
"200": {
|
|
6817
|
+
"description": "Successful operation",
|
|
6818
|
+
"content": {
|
|
6819
|
+
"application/json": {
|
|
6820
|
+
"schema": {
|
|
6821
|
+
"$ref": "#/components/schemas/CompaniesSearchResponse"
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6824
|
+
}
|
|
6825
|
+
}
|
|
6826
|
+
},
|
|
6827
|
+
"security": [
|
|
6828
|
+
{
|
|
6829
|
+
"api_key": []
|
|
6830
|
+
}
|
|
6831
|
+
],
|
|
6832
|
+
"x-stability": "Unstable"
|
|
6833
|
+
}
|
|
6834
|
+
},
|
|
6835
|
+
"/company/snapshot": {
|
|
6836
|
+
"get": {
|
|
6837
|
+
"tags": [
|
|
6838
|
+
"Company"
|
|
6839
|
+
],
|
|
6840
|
+
"summary": "Get daily companies snapshot CSV",
|
|
6841
|
+
"description": "Requires public access key.<br>Returns a CSV daily snapshot of companies.<br>This selection is standalone and cannot be used together with other selections.<br>\nCSV columns: id, name, created_at, days_old, image, type, rating, director_id,\nemployees_hired, employees_capacity, daily_income, daily_customers,\nweekly_income, weekly_customers, applications_allowed",
|
|
6842
|
+
"operationId": "getCompaniesSnapshot",
|
|
6843
|
+
"parameters": [
|
|
6844
|
+
{
|
|
6845
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
6846
|
+
},
|
|
6847
|
+
{
|
|
6848
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
6849
|
+
},
|
|
6850
|
+
{
|
|
6851
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
6852
|
+
}
|
|
6853
|
+
],
|
|
6854
|
+
"responses": {
|
|
6855
|
+
"200": {
|
|
6856
|
+
"description": "Successful CSV response",
|
|
6857
|
+
"content": {
|
|
6858
|
+
"text/csv": {
|
|
6859
|
+
"schema": {
|
|
6860
|
+
"type": "string",
|
|
6861
|
+
"example": "id,name,created_at,days_old,image,type,rating,director_id,employees_hired,employees_capacity,daily_income,daily_customers,weekly_income,weekly_customers,applications_allowed\\n125981,Safety first,1779957421,0,,10,0,4082850,1,7,0,0,0,0,1"
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
6865
|
+
}
|
|
6866
|
+
},
|
|
6867
|
+
"security": [
|
|
6868
|
+
{
|
|
6869
|
+
"api_key": []
|
|
6870
|
+
}
|
|
6871
|
+
],
|
|
6872
|
+
"x-stability": "Unstable"
|
|
6873
|
+
}
|
|
6874
|
+
},
|
|
6784
6875
|
"/company/stock": {
|
|
6785
6876
|
"get": {
|
|
6786
6877
|
"tags": [
|
|
@@ -11702,7 +11793,7 @@
|
|
|
11702
11793
|
"FAD",
|
|
11703
11794
|
"FAE",
|
|
11704
11795
|
"FAF",
|
|
11705
|
-
"
|
|
11796
|
+
"XAG",
|
|
11706
11797
|
"FBA",
|
|
11707
11798
|
"FBB",
|
|
11708
11799
|
"FBC",
|
|
@@ -15905,6 +15996,21 @@
|
|
|
15905
15996
|
"v2"
|
|
15906
15997
|
]
|
|
15907
15998
|
},
|
|
15999
|
+
"CompanySearchParameter": {
|
|
16000
|
+
"oneOf": [
|
|
16001
|
+
{
|
|
16002
|
+
"type": "string",
|
|
16003
|
+
"enum": [
|
|
16004
|
+
"recruiting",
|
|
16005
|
+
"notRecruiting"
|
|
16006
|
+
]
|
|
16007
|
+
},
|
|
16008
|
+
{
|
|
16009
|
+
"type": "string",
|
|
16010
|
+
"pattern": "^(id|type|daysOld|rating|dailyIncome|weeklyIncome|dailyCustomers|weeklyCustomers):(=|!=|<|<=|>=|>|Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater):\\d+$"
|
|
16011
|
+
}
|
|
16012
|
+
]
|
|
16013
|
+
},
|
|
15908
16014
|
"Parameters": {
|
|
15909
16015
|
"oneOf": [
|
|
15910
16016
|
{
|
|
@@ -15918,7 +16024,7 @@
|
|
|
15918
16024
|
},
|
|
15919
16025
|
{
|
|
15920
16026
|
"type": "string",
|
|
15921
|
-
"pattern": "^(id|respect|members)(Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater)
|
|
16027
|
+
"pattern": "^(id|respect|members|membersMax):(=|!=|<|<=|>=|>|Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater):\\d+$"
|
|
15922
16028
|
}
|
|
15923
16029
|
]
|
|
15924
16030
|
},
|
|
@@ -17864,6 +17970,25 @@
|
|
|
17864
17970
|
},
|
|
17865
17971
|
"type": "object"
|
|
17866
17972
|
},
|
|
17973
|
+
"ErrorFileDoesNotExist": {
|
|
17974
|
+
"required": [
|
|
17975
|
+
"code",
|
|
17976
|
+
"error"
|
|
17977
|
+
],
|
|
17978
|
+
"properties": {
|
|
17979
|
+
"code": {
|
|
17980
|
+
"type": "integer",
|
|
17981
|
+
"format": "int32",
|
|
17982
|
+
"enum": [
|
|
17983
|
+
30
|
|
17984
|
+
]
|
|
17985
|
+
},
|
|
17986
|
+
"error": {
|
|
17987
|
+
"type": "string"
|
|
17988
|
+
}
|
|
17989
|
+
},
|
|
17990
|
+
"type": "object"
|
|
17991
|
+
},
|
|
17867
17992
|
"ApiError": {
|
|
17868
17993
|
"oneOf": [
|
|
17869
17994
|
{
|
|
@@ -17955,6 +18080,9 @@
|
|
|
17955
18080
|
},
|
|
17956
18081
|
{
|
|
17957
18082
|
"$ref": "#/components/schemas/ErrorCategorySelectionUnavailableForInteractionLogs"
|
|
18083
|
+
},
|
|
18084
|
+
{
|
|
18085
|
+
"$ref": "#/components/schemas/ErrorFileDoesNotExist"
|
|
17958
18086
|
}
|
|
17959
18087
|
]
|
|
17960
18088
|
},
|
|
@@ -25914,6 +26042,7 @@
|
|
|
25914
26042
|
"name",
|
|
25915
26043
|
"respect",
|
|
25916
26044
|
"members",
|
|
26045
|
+
"members_max",
|
|
25917
26046
|
"leader",
|
|
25918
26047
|
"co_leader",
|
|
25919
26048
|
"image",
|
|
@@ -25937,6 +26066,10 @@
|
|
|
25937
26066
|
"type": "integer",
|
|
25938
26067
|
"format": "int32"
|
|
25939
26068
|
},
|
|
26069
|
+
"members_max": {
|
|
26070
|
+
"type": "integer",
|
|
26071
|
+
"format": "int32"
|
|
26072
|
+
},
|
|
25940
26073
|
"leader": {
|
|
25941
26074
|
"$ref": "#/components/schemas/FactionSearchLeader"
|
|
25942
26075
|
},
|
|
@@ -28082,15 +28215,6 @@
|
|
|
28082
28215
|
"position_info": {
|
|
28083
28216
|
"$ref": "#/components/schemas/FactionSlotPositionInfo"
|
|
28084
28217
|
},
|
|
28085
|
-
"position_id": {
|
|
28086
|
-
"$ref": "#/components/schemas/TornOrganizedCrimePositionIdDeprecated"
|
|
28087
|
-
},
|
|
28088
|
-
"position_number": {
|
|
28089
|
-
"description": "This field is now available in 'position_info' object as 'number' field.<br>This field will be removed on 1st of June 2026.",
|
|
28090
|
-
"type": "integer",
|
|
28091
|
-
"format": "int32",
|
|
28092
|
-
"deprecated": true
|
|
28093
|
-
},
|
|
28094
28218
|
"item_requirement": {
|
|
28095
28219
|
"description": "Details of item required for the slot, if applicable.",
|
|
28096
28220
|
"oneOf": [
|
|
@@ -28709,18 +28833,18 @@
|
|
|
28709
28833
|
"CompanySelectionName": {
|
|
28710
28834
|
"oneOf": [
|
|
28711
28835
|
{
|
|
28712
|
-
"description": "The following selections
|
|
28836
|
+
"description": "The following selections are not available in API v2: 'details'.",
|
|
28713
28837
|
"type": "string",
|
|
28714
28838
|
"enum": [
|
|
28715
28839
|
"applications",
|
|
28840
|
+
"companies",
|
|
28716
28841
|
"employees",
|
|
28717
28842
|
"lookup",
|
|
28718
28843
|
"news",
|
|
28719
28844
|
"profile",
|
|
28845
|
+
"snapshot",
|
|
28720
28846
|
"stock",
|
|
28721
|
-
"timestamp"
|
|
28722
|
-
"companies",
|
|
28723
|
-
"search"
|
|
28847
|
+
"timestamp"
|
|
28724
28848
|
]
|
|
28725
28849
|
},
|
|
28726
28850
|
{
|
|
@@ -28771,6 +28895,24 @@
|
|
|
28771
28895
|
},
|
|
28772
28896
|
"type": "object"
|
|
28773
28897
|
},
|
|
28898
|
+
"CompaniesSearchResponse": {
|
|
28899
|
+
"required": [
|
|
28900
|
+
"search",
|
|
28901
|
+
"_metadata"
|
|
28902
|
+
],
|
|
28903
|
+
"properties": {
|
|
28904
|
+
"search": {
|
|
28905
|
+
"type": "array",
|
|
28906
|
+
"items": {
|
|
28907
|
+
"$ref": "#/components/schemas/CompanySearchProfile"
|
|
28908
|
+
}
|
|
28909
|
+
},
|
|
28910
|
+
"_metadata": {
|
|
28911
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
28912
|
+
}
|
|
28913
|
+
},
|
|
28914
|
+
"type": "object"
|
|
28915
|
+
},
|
|
28774
28916
|
"CompanyProfileResponse": {
|
|
28775
28917
|
"required": [
|
|
28776
28918
|
"profile"
|
|
@@ -28823,7 +28965,6 @@
|
|
|
28823
28965
|
"efficiency",
|
|
28824
28966
|
"environment",
|
|
28825
28967
|
"trains",
|
|
28826
|
-
"applications_allowed",
|
|
28827
28968
|
"advertisement_budget",
|
|
28828
28969
|
"upgrades",
|
|
28829
28970
|
"value"
|
|
@@ -28849,9 +28990,6 @@
|
|
|
28849
28990
|
"type": "integer",
|
|
28850
28991
|
"format": "int32"
|
|
28851
28992
|
},
|
|
28852
|
-
"applications_allowed": {
|
|
28853
|
-
"type": "boolean"
|
|
28854
|
-
},
|
|
28855
28993
|
"advertisement_budget": {
|
|
28856
28994
|
"type": "integer",
|
|
28857
28995
|
"format": "int64"
|
|
@@ -28899,7 +29037,8 @@
|
|
|
28899
29037
|
"director",
|
|
28900
29038
|
"employees",
|
|
28901
29039
|
"income",
|
|
28902
|
-
"customers"
|
|
29040
|
+
"customers",
|
|
29041
|
+
"applications_allowed"
|
|
28903
29042
|
],
|
|
28904
29043
|
"properties": {
|
|
28905
29044
|
"id": {
|
|
@@ -28917,7 +29056,14 @@
|
|
|
28917
29056
|
"format": "int32"
|
|
28918
29057
|
},
|
|
28919
29058
|
"image": {
|
|
28920
|
-
"
|
|
29059
|
+
"oneOf": [
|
|
29060
|
+
{
|
|
29061
|
+
"type": "string"
|
|
29062
|
+
},
|
|
29063
|
+
{
|
|
29064
|
+
"type": "null"
|
|
29065
|
+
}
|
|
29066
|
+
]
|
|
28921
29067
|
},
|
|
28922
29068
|
"type": {
|
|
28923
29069
|
"$ref": "#/components/schemas/CompanyType"
|
|
@@ -28937,6 +29083,70 @@
|
|
|
28937
29083
|
},
|
|
28938
29084
|
"customers": {
|
|
28939
29085
|
"$ref": "#/components/schemas/CompanyCustomers"
|
|
29086
|
+
},
|
|
29087
|
+
"applications_allowed": {
|
|
29088
|
+
"type": "boolean"
|
|
29089
|
+
}
|
|
29090
|
+
},
|
|
29091
|
+
"type": "object"
|
|
29092
|
+
},
|
|
29093
|
+
"CompanySearchProfile": {
|
|
29094
|
+
"required": [
|
|
29095
|
+
"id",
|
|
29096
|
+
"name",
|
|
29097
|
+
"created_at",
|
|
29098
|
+
"days_old",
|
|
29099
|
+
"image",
|
|
29100
|
+
"type",
|
|
29101
|
+
"rating",
|
|
29102
|
+
"employees",
|
|
29103
|
+
"income",
|
|
29104
|
+
"customers",
|
|
29105
|
+
"applications_allowed"
|
|
29106
|
+
],
|
|
29107
|
+
"properties": {
|
|
29108
|
+
"id": {
|
|
29109
|
+
"$ref": "#/components/schemas/CompanyId"
|
|
29110
|
+
},
|
|
29111
|
+
"name": {
|
|
29112
|
+
"type": "string"
|
|
29113
|
+
},
|
|
29114
|
+
"created_at": {
|
|
29115
|
+
"type": "integer",
|
|
29116
|
+
"format": "int32"
|
|
29117
|
+
},
|
|
29118
|
+
"days_old": {
|
|
29119
|
+
"type": "integer",
|
|
29120
|
+
"format": "int32"
|
|
29121
|
+
},
|
|
29122
|
+
"image": {
|
|
29123
|
+
"oneOf": [
|
|
29124
|
+
{
|
|
29125
|
+
"type": "string"
|
|
29126
|
+
},
|
|
29127
|
+
{
|
|
29128
|
+
"type": "null"
|
|
29129
|
+
}
|
|
29130
|
+
]
|
|
29131
|
+
},
|
|
29132
|
+
"type": {
|
|
29133
|
+
"$ref": "#/components/schemas/CompanyType"
|
|
29134
|
+
},
|
|
29135
|
+
"rating": {
|
|
29136
|
+
"type": "integer",
|
|
29137
|
+
"format": "int32"
|
|
29138
|
+
},
|
|
29139
|
+
"employees": {
|
|
29140
|
+
"$ref": "#/components/schemas/CompanyEmployees"
|
|
29141
|
+
},
|
|
29142
|
+
"income": {
|
|
29143
|
+
"$ref": "#/components/schemas/CompanyIncome"
|
|
29144
|
+
},
|
|
29145
|
+
"customers": {
|
|
29146
|
+
"$ref": "#/components/schemas/CompanyCustomers"
|
|
29147
|
+
},
|
|
29148
|
+
"applications_allowed": {
|
|
29149
|
+
"type": "boolean"
|
|
28940
29150
|
}
|
|
28941
29151
|
},
|
|
28942
29152
|
"type": "object"
|
|
@@ -31543,8 +31753,16 @@
|
|
|
31543
31753
|
],
|
|
31544
31754
|
"properties": {
|
|
31545
31755
|
"skill_gain": {
|
|
31546
|
-
"
|
|
31547
|
-
"
|
|
31756
|
+
"description": "This value is null for races which have status 'in_progress'",
|
|
31757
|
+
"oneOf": [
|
|
31758
|
+
{
|
|
31759
|
+
"type": "number",
|
|
31760
|
+
"format": "float"
|
|
31761
|
+
},
|
|
31762
|
+
{
|
|
31763
|
+
"type": "null"
|
|
31764
|
+
}
|
|
31765
|
+
]
|
|
31548
31766
|
}
|
|
31549
31767
|
},
|
|
31550
31768
|
"type": "object"
|
|
@@ -32325,9 +32543,6 @@
|
|
|
32325
32543
|
"required_item"
|
|
32326
32544
|
],
|
|
32327
32545
|
"properties": {
|
|
32328
|
-
"id": {
|
|
32329
|
-
"$ref": "#/components/schemas/TornOrganizedCrimePositionIdDeprecated"
|
|
32330
|
-
},
|
|
32331
32546
|
"position_info": {
|
|
32332
32547
|
"$ref": "#/components/schemas/FactionSlotPositionInfo"
|
|
32333
32548
|
},
|
|
@@ -33966,6 +34181,33 @@
|
|
|
33966
34181
|
}
|
|
33967
34182
|
},
|
|
33968
34183
|
"parameters": {
|
|
34184
|
+
"ApiCompanySearchFilter": {
|
|
34185
|
+
"name": "filters",
|
|
34186
|
+
"in": "query",
|
|
34187
|
+
"description": "A filtering query parameter allowing a comma-separated list of filters. <br>\n * Each filter can be one of the following:\n * Fixed options: `recruiting`, `notRecruiting`\n * Dynamic options: `fieldName`+`condition`+`number`. Each dynamic filter is made out of 3 parts separated by colon `:`:\n * * `fieldName` is one of: `id`, `type`, `daysOld`, `rating`, `dailyIncome`, `weeklyIncome`, `dailyCustomers`, `weeklyCustomers`\n * * `condition` is one of: `=`, `!=`, `<`, `<=`, `>=`, `>`, `Equal`, `NotEqual`, `Less`, `LessOrEqual`, `GreaterOrEqual`, `Greater`\n * * `number`: any integer value\n * Examples: `filters=recruiting`, `filters=weeklyIncome:>=:20000,id:<:1000,notRecruiting`, `filters=type:Equal:10,rating:=:10,dailyIncome:<=:6666666`",
|
|
34188
|
+
"required": false,
|
|
34189
|
+
"style": "form",
|
|
34190
|
+
"explode": false,
|
|
34191
|
+
"schema": {
|
|
34192
|
+
"type": "array",
|
|
34193
|
+
"items": {
|
|
34194
|
+
"schema": "CompanySearchParameter",
|
|
34195
|
+
"oneOf": [
|
|
34196
|
+
{
|
|
34197
|
+
"type": "string",
|
|
34198
|
+
"enum": [
|
|
34199
|
+
"recruiting",
|
|
34200
|
+
"notRecruiting"
|
|
34201
|
+
]
|
|
34202
|
+
},
|
|
34203
|
+
{
|
|
34204
|
+
"type": "string",
|
|
34205
|
+
"pattern": "^(id|type|daysOld|rating|dailyIncome|weeklyIncome|dailyCustomers|weeklyCustomers):(=|!=|<|<=|>=|>|Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater):\\d+$"
|
|
34206
|
+
}
|
|
34207
|
+
]
|
|
34208
|
+
}
|
|
34209
|
+
}
|
|
34210
|
+
},
|
|
33969
34211
|
"ApiKeyPublic": {
|
|
33970
34212
|
"name": "key",
|
|
33971
34213
|
"in": "query",
|
|
@@ -34005,10 +34247,18 @@
|
|
|
34005
34247
|
"ApiTimestamp": {
|
|
34006
34248
|
"name": "timestamp",
|
|
34007
34249
|
"in": "query",
|
|
34008
|
-
"description": "Timestamp to bypass cache",
|
|
34250
|
+
"description": "Timestamp to bypass cache or get the data in specific point in time",
|
|
34009
34251
|
"required": false,
|
|
34010
34252
|
"schema": {
|
|
34011
|
-
"
|
|
34253
|
+
"oneOf": [
|
|
34254
|
+
{
|
|
34255
|
+
"type": "integer",
|
|
34256
|
+
"format": "int32"
|
|
34257
|
+
},
|
|
34258
|
+
{
|
|
34259
|
+
"type": "string"
|
|
34260
|
+
}
|
|
34261
|
+
]
|
|
34012
34262
|
}
|
|
34013
34263
|
},
|
|
34014
34264
|
"ApiFiltersIncomingOutgoing": {
|
|
@@ -34056,7 +34306,7 @@
|
|
|
34056
34306
|
"ApiFactionSearchFilter": {
|
|
34057
34307
|
"name": "filters",
|
|
34058
34308
|
"in": "query",
|
|
34059
|
-
"description": "A filtering query parameter allowing a comma-separated list of filters. <br>\n * Each filter can be one of the following:\n * Fixed options:
|
|
34309
|
+
"description": "A filtering query parameter allowing a comma-separated list of filters. <br>\n * Each filter can be one of the following:\n * Fixed options: `destroyed`, `notDestroyed`, `recruiting`, `notRecruiting`\n * Dynamic options: `fieldName`+`condition`+`number`. Each dynamic filter is made out of 3 parts separated by colon `:`:\n * * `fieldName` is one of: `id`, `respect`, `members`, `membersMax`\n * * `condition` is one of: `=`, `!=`, `<`, `<=`, `>=`, `>`, `Equal`, `NotEqual`, `Less`, `LessOrEqual`, `GreaterOrEqual`, `Greater`\n * * `number`: any integer value\n * Examples: `filters=destroyed`, `filters=notDestroyed,recruiting`, `filters=respect:>=:20000,id:<:100,notRecruiting`",
|
|
34060
34310
|
"required": false,
|
|
34061
34311
|
"style": "form",
|
|
34062
34312
|
"explode": false,
|
|
@@ -34076,7 +34326,7 @@
|
|
|
34076
34326
|
},
|
|
34077
34327
|
{
|
|
34078
34328
|
"type": "string",
|
|
34079
|
-
"pattern": "^(id|respect|members)(Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater)
|
|
34329
|
+
"pattern": "^(id|respect|members|membersMax):(=|!=|<|<=|>=|>|Equal|NotEqual|Less|LessOrEqual|GreaterOrEqual|Greater):\\d+$"
|
|
34080
34330
|
}
|
|
34081
34331
|
]
|
|
34082
34332
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.1",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "https://github.com/Torn-Playground/tornapi-typescript"
|
|
6
|
+
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"generate-types": "tsc && node build/index.js"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@scalar/openapi-types": "^0.9.
|
|
13
|
-
"@types/node": "^25.9.
|
|
14
|
-
"prettier": "^3.
|
|
12
|
+
"@scalar/openapi-types": "^0.9.1",
|
|
13
|
+
"@types/node": "^25.9.5",
|
|
14
|
+
"prettier": "^3.9.4",
|
|
15
15
|
"typeconv": "^2.3.1",
|
|
16
16
|
"typescript": "^6.0.3"
|
|
17
17
|
},
|