tornapi-typescript 6.10.1 → 6.11.0

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
@@ -81,6 +81,7 @@ export type RaceCarUpgradeId = number;
81
81
  export type ItemId = number;
82
82
  export type AuctionListingId = number;
83
83
  export type ItemModId = number;
84
+ export type CityShopId = number;
84
85
  export type AmmoId = number;
85
86
  export type RankedWarId = number;
86
87
  export type TerritoryWarId = number;
@@ -91,6 +92,7 @@ export type CompanyPositionId = number;
91
92
  export type CompanySpecialId = number;
92
93
  export type CompanyStockId = number;
93
94
  export type TradeId = number;
95
+ export type PokerTableId = number;
94
96
  export type StockId = number;
95
97
  export type DiscordId = string;
96
98
  export type UserDiscordPathId = UserId | DiscordId;
@@ -148,6 +150,7 @@ export interface RequestMetadataWithLinksAndNanostamp {
148
150
  */
149
151
  export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
150
152
  export type GymClassEnum = "Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
153
+ export type ShopNameEnum = "Arms Dealer" | "General Store" | "Black Market" | "Big Al's Gun Shop" | "Sally's Sweet Shop" | "TC Clothing" | "Bits 'n' Bobs" | "Jewelry Store" | "Super Store" | "Docks" | "Post Office" | "Pharmacy" | "Nikeh Sports" | "Print Shop" | "Recycling Center" | "Cyber Force" | "Pawn Shop";
151
154
  export type UserGenderEnum = "Male" | "Female" | "Enby";
152
155
  export type CompanyStaffRoomSizeEnum = "No staff room" | "Small staff room" | "Standard staff room" | "Large staff room" | "Very large staff room" | "Huge staff room" | "Colossal staff room";
153
156
  export type CompanyStorageSizeEnum = "Small room" | "Standard room" | "Large room" | "Huge room" | "Warehouse" | "Large warehouse" | "Huge warehouse";
@@ -1342,7 +1345,7 @@ export interface UserRacesResponse {
1342
1345
  }
1343
1346
  export interface UserRaceCarDetails extends RaceCar {
1344
1347
  id: RaceCarId;
1345
- car_name?: string | null;
1348
+ car_name: string | null;
1346
1349
  worth: number;
1347
1350
  points_spent: number;
1348
1351
  races_entered: number;
@@ -3409,6 +3412,54 @@ export type PropertySelectionName = string;
3409
3412
  export interface PropertyLookupResponse {
3410
3413
  selections: PropertySelectionName[];
3411
3414
  }
3415
+ export interface TornPokerTable {
3416
+ id: PokerTableId;
3417
+ name: string;
3418
+ blinds: {
3419
+ big: number;
3420
+ small: number;
3421
+ };
3422
+ players: {
3423
+ current: number;
3424
+ maximum: number;
3425
+ };
3426
+ speed: number;
3427
+ }
3428
+ export interface TornPokerTablesResponse {
3429
+ pokertables: TornPokerTable[];
3430
+ }
3431
+ export interface TornCard {
3432
+ name: string;
3433
+ short_name: string;
3434
+ class: string;
3435
+ }
3436
+ export interface TornCardsResponse {
3437
+ cards: TornCard[];
3438
+ }
3439
+ export interface TornBank {
3440
+ days: number;
3441
+ rate: number;
3442
+ }
3443
+ export interface TornBankResponse {
3444
+ bank: TornBank[];
3445
+ }
3446
+ export interface TornCityShopItem {
3447
+ id: ItemId;
3448
+ name: string;
3449
+ price: number;
3450
+ stock: {
3451
+ current: number;
3452
+ default: number;
3453
+ };
3454
+ }
3455
+ export interface TornCityShop {
3456
+ id: CityShopId;
3457
+ name: string;
3458
+ items: TornCityShopItem[];
3459
+ }
3460
+ export interface TornCityShopsResponse {
3461
+ cityshops: TornCityShop[];
3462
+ }
3412
3463
  export interface TornGymModifiers {
3413
3464
  strength: number;
3414
3465
  speed: number;
@@ -3922,6 +3973,12 @@ export interface TornItemArmorDetails {
3922
3973
  coverage: TornItemArmorCoverage[];
3923
3974
  base_stats: TornItemBaseStats;
3924
3975
  }
3976
+ export interface TornItemShop {
3977
+ country: CountryEnum;
3978
+ shop: ShopNameEnum;
3979
+ buy_price: number | null;
3980
+ sell_price: number | null;
3981
+ }
3925
3982
  export interface TornItem {
3926
3983
  id: ItemId;
3927
3984
  name: string;
@@ -3935,12 +3992,13 @@ export interface TornItem {
3935
3992
  is_tradable: boolean;
3936
3993
  is_found_in_city: boolean;
3937
3994
  value: {
3938
- vendor: {
3995
+ vendor?: {
3939
3996
  country: string;
3940
3997
  name: string;
3941
3998
  } | null;
3942
- buy_price: number | null;
3943
- sell_price: number | null;
3999
+ shops: TornItemShop[];
4000
+ buy_price?: number | null;
4001
+ sell_price?: number | null;
3944
4002
  market_price: number;
3945
4003
  };
3946
4004
  circulation: number;
@@ -3972,8 +4030,8 @@ export interface TornFactionTreeResponse {
3972
4030
  factionTree: TornFactionTree[];
3973
4031
  }
3974
4032
  /**
3975
- * The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
3976
- * * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
4033
+ * The following selections will fallback to API v1 and may change at any time:'competition','itemstats','organisedcrimes','rockpaperscissors','stats'.
4034
+ * * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.
3977
4035
  */
3978
4036
  export type TornSelectionName = string;
3979
4037
  export interface TornLookupResponse {
@@ -4144,6 +4202,10 @@ export interface UserV1 extends BaseSchema {
4144
4202
  };
4145
4203
  bazaar: {
4146
4204
  response: {
4205
+ bazaar_timestamp: number;
4206
+ bazaar_delay: number;
4207
+ bazaar_is_open: boolean;
4208
+ bazaar_exists: boolean;
4147
4209
  bazaar: {
4148
4210
  ID: number;
4149
4211
  UID: number | null;
@@ -7868,6 +7930,10 @@ export interface TornV2 extends BaseSchema {
7868
7930
  response: AttackLogResponse;
7869
7931
  params: "log" | "offset" | "sort" | "striptags" | "timestamp";
7870
7932
  };
7933
+ bank: {
7934
+ response: TornBankResponse;
7935
+ params: "timestamp";
7936
+ };
7871
7937
  bounties: {
7872
7938
  response: TornBountiesResponse;
7873
7939
  params: "limit" | "offset" | "timestamp";
@@ -7876,6 +7942,14 @@ export interface TornV2 extends BaseSchema {
7876
7942
  response: TornCalendarResponse;
7877
7943
  params: "timestamp";
7878
7944
  };
7945
+ cards: {
7946
+ response: TornCardsResponse;
7947
+ params: "timestamp";
7948
+ };
7949
+ cityshops: {
7950
+ response: TornCityShopsResponse;
7951
+ params: "timestamp";
7952
+ };
7879
7953
  companies: {
7880
7954
  response: TornCompaniesResponse;
7881
7955
  params: "timestamp";
@@ -7956,6 +8030,10 @@ export interface TornV2 extends BaseSchema {
7956
8030
  response: TornOrganizedCrimeResponse;
7957
8031
  params: "timestamp";
7958
8032
  };
8033
+ pokertables: {
8034
+ response: TornPokerTablesResponse;
8035
+ params: "timestamp";
8036
+ };
7959
8037
  properties: {
7960
8038
  response: TornProperties;
7961
8039
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -4731,6 +4731,8 @@ export type AuctionListingId = number;
4731
4731
 
4732
4732
  export type ItemModId = number;
4733
4733
 
4734
+ export type CityShopId = number;
4735
+
4734
4736
  export type AmmoId = number;
4735
4737
 
4736
4738
  export type RankedWarId = number;
@@ -4751,6 +4753,8 @@ export type CompanyStockId = number;
4751
4753
 
4752
4754
  export type TradeId = number;
4753
4755
 
4756
+ export type PokerTableId = number;
4757
+
4754
4758
  export type StockId = number;
4755
4759
 
4756
4760
  export type DiscordId = string;
@@ -4842,6 +4846,25 @@ export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
4842
4846
  export type GymClassEnum =
4843
4847
  "Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
4844
4848
 
4849
+ export type ShopNameEnum =
4850
+ | "Arms Dealer"
4851
+ | "General Store"
4852
+ | "Black Market"
4853
+ | "Big Al's Gun Shop"
4854
+ | "Sally's Sweet Shop"
4855
+ | "TC Clothing"
4856
+ | "Bits 'n' Bobs"
4857
+ | "Jewelry Store"
4858
+ | "Super Store"
4859
+ | "Docks"
4860
+ | "Post Office"
4861
+ | "Pharmacy"
4862
+ | "Nikeh Sports"
4863
+ | "Print Shop"
4864
+ | "Recycling Center"
4865
+ | "Cyber Force"
4866
+ | "Pawn Shop";
4867
+
4845
4868
  export type UserGenderEnum = "Male" | "Female" | "Enby";
4846
4869
 
4847
4870
  export type CompanyStaffRoomSizeEnum =
@@ -6522,7 +6545,7 @@ export interface UserRacesResponse {
6522
6545
 
6523
6546
  export interface UserRaceCarDetails extends RaceCar {
6524
6547
  id: RaceCarId;
6525
- car_name?: string | null;
6548
+ car_name: string | null;
6526
6549
  worth: number;
6527
6550
  points_spent: number;
6528
6551
  races_entered: number;
@@ -9175,6 +9198,63 @@ export interface PropertyLookupResponse {
9175
9198
  selections: PropertySelectionName[];
9176
9199
  }
9177
9200
 
9201
+ export interface TornPokerTable {
9202
+ id: PokerTableId;
9203
+ name: string;
9204
+ blinds: {
9205
+ big: number;
9206
+ small: number;
9207
+ };
9208
+ players: {
9209
+ current: number;
9210
+ maximum: number;
9211
+ };
9212
+ speed: number;
9213
+ }
9214
+
9215
+ export interface TornPokerTablesResponse {
9216
+ pokertables: TornPokerTable[];
9217
+ }
9218
+
9219
+ export interface TornCard {
9220
+ name: string;
9221
+ short_name: string;
9222
+ class: string;
9223
+ }
9224
+
9225
+ export interface TornCardsResponse {
9226
+ cards: TornCard[];
9227
+ }
9228
+
9229
+ export interface TornBank {
9230
+ days: number;
9231
+ rate: number;
9232
+ }
9233
+
9234
+ export interface TornBankResponse {
9235
+ bank: TornBank[];
9236
+ }
9237
+
9238
+ export interface TornCityShopItem {
9239
+ id: ItemId;
9240
+ name: string;
9241
+ price: number;
9242
+ stock: {
9243
+ current: number;
9244
+ default: number;
9245
+ };
9246
+ }
9247
+
9248
+ export interface TornCityShop {
9249
+ id: CityShopId;
9250
+ name: string;
9251
+ items: TornCityShopItem[];
9252
+ }
9253
+
9254
+ export interface TornCityShopsResponse {
9255
+ cityshops: TornCityShop[];
9256
+ }
9257
+
9178
9258
  export interface TornGymModifiers {
9179
9259
  strength: number;
9180
9260
  speed: number;
@@ -9771,6 +9851,13 @@ export interface TornItemArmorDetails {
9771
9851
  base_stats: TornItemBaseStats;
9772
9852
  }
9773
9853
 
9854
+ export interface TornItemShop {
9855
+ country: CountryEnum;
9856
+ shop: ShopNameEnum;
9857
+ buy_price: number | null;
9858
+ sell_price: number | null;
9859
+ }
9860
+
9774
9861
  export interface TornItem {
9775
9862
  id: ItemId;
9776
9863
  name: string;
@@ -9784,12 +9871,13 @@ export interface TornItem {
9784
9871
  is_tradable: boolean;
9785
9872
  is_found_in_city: boolean;
9786
9873
  value: {
9787
- vendor: {
9874
+ vendor?: {
9788
9875
  country: string;
9789
9876
  name: string;
9790
9877
  } | null;
9791
- buy_price: number | null;
9792
- sell_price: number | null;
9878
+ shops: TornItemShop[];
9879
+ buy_price?: number | null;
9880
+ sell_price?: number | null;
9793
9881
  market_price: number;
9794
9882
  };
9795
9883
  circulation: number;
@@ -9826,8 +9914,8 @@ export interface TornFactionTreeResponse {
9826
9914
  }
9827
9915
 
9828
9916
  /**
9829
- * The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
9830
- * * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
9917
+ * The following selections will fallback to API v1 and may change at any time:'competition','itemstats','organisedcrimes','rockpaperscissors','stats'.
9918
+ * * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.
9831
9919
  */
9832
9920
  export type TornSelectionName = string;
9833
9921
 
@@ -10057,6 +10145,10 @@ export interface UserV1 extends BaseSchema {
10057
10145
  };
10058
10146
  bazaar: {
10059
10147
  response: {
10148
+ bazaar_timestamp: number;
10149
+ bazaar_delay: number;
10150
+ bazaar_is_open: boolean;
10151
+ bazaar_exists: boolean;
10060
10152
  bazaar: {
10061
10153
  ID: number;
10062
10154
  UID: number | null;
@@ -13865,6 +13957,10 @@ export interface TornV2 extends BaseSchema {
13865
13957
  response: AttackLogResponse;
13866
13958
  params: "log" | "offset" | "sort" | "striptags" | "timestamp";
13867
13959
  };
13960
+ bank: {
13961
+ response: TornBankResponse;
13962
+ params: "timestamp";
13963
+ };
13868
13964
  bounties: {
13869
13965
  response: TornBountiesResponse;
13870
13966
  params: "limit" | "offset" | "timestamp";
@@ -13873,6 +13969,14 @@ export interface TornV2 extends BaseSchema {
13873
13969
  response: TornCalendarResponse;
13874
13970
  params: "timestamp";
13875
13971
  };
13972
+ cards: {
13973
+ response: TornCardsResponse;
13974
+ params: "timestamp";
13975
+ };
13976
+ cityshops: {
13977
+ response: TornCityShopsResponse;
13978
+ params: "timestamp";
13979
+ };
13876
13980
  companies: {
13877
13981
  response: TornCompaniesResponse;
13878
13982
  params: "timestamp";
@@ -13953,6 +14057,10 @@ export interface TornV2 extends BaseSchema {
13953
14057
  response: TornOrganizedCrimeResponse;
13954
14058
  params: "timestamp";
13955
14059
  };
14060
+ pokertables: {
14061
+ response: TornPokerTablesResponse;
14062
+ params: "timestamp";
14063
+ };
13956
14064
  properties: {
13957
14065
  response: TornProperties;
13958
14066
  params: "timestamp";
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.10.1"
6
+ "version": "6.11.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -9739,6 +9739,45 @@
9739
9739
  "x-stability": "Stable"
9740
9740
  }
9741
9741
  },
9742
+ "/torn/bank": {
9743
+ "get": {
9744
+ "tags": [
9745
+ "Torn"
9746
+ ],
9747
+ "summary": "Get current bank rates",
9748
+ "description": "Requires public access key. <br>",
9749
+ "operationId": "getTornBank",
9750
+ "parameters": [
9751
+ {
9752
+ "$ref": "#/components/parameters/ApiTimestamp"
9753
+ },
9754
+ {
9755
+ "$ref": "#/components/parameters/ApiComment"
9756
+ },
9757
+ {
9758
+ "$ref": "#/components/parameters/ApiKeyPublic"
9759
+ }
9760
+ ],
9761
+ "responses": {
9762
+ "200": {
9763
+ "description": "Successful operation",
9764
+ "content": {
9765
+ "application/json": {
9766
+ "schema": {
9767
+ "$ref": "#/components/schemas/TornBankResponse"
9768
+ }
9769
+ }
9770
+ }
9771
+ }
9772
+ },
9773
+ "security": [
9774
+ {
9775
+ "api_key": []
9776
+ }
9777
+ ],
9778
+ "x-stability": "Unstable"
9779
+ }
9780
+ },
9742
9781
  "/torn/bounties": {
9743
9782
  "get": {
9744
9783
  "tags": [
@@ -9823,6 +9862,132 @@
9823
9862
  "x-stability": "Stable"
9824
9863
  }
9825
9864
  },
9865
+ "/torn/cards": {
9866
+ "get": {
9867
+ "tags": [
9868
+ "Torn"
9869
+ ],
9870
+ "summary": "Get casino playing cards",
9871
+ "description": "Requires public access key. <br>",
9872
+ "operationId": "getTornCards",
9873
+ "parameters": [
9874
+ {
9875
+ "$ref": "#/components/parameters/ApiTimestamp"
9876
+ },
9877
+ {
9878
+ "$ref": "#/components/parameters/ApiComment"
9879
+ },
9880
+ {
9881
+ "$ref": "#/components/parameters/ApiKeyPublic"
9882
+ }
9883
+ ],
9884
+ "responses": {
9885
+ "200": {
9886
+ "description": "Successful operation",
9887
+ "content": {
9888
+ "application/json": {
9889
+ "schema": {
9890
+ "$ref": "#/components/schemas/TornCardsResponse"
9891
+ }
9892
+ }
9893
+ }
9894
+ }
9895
+ },
9896
+ "security": [
9897
+ {
9898
+ "api_key": []
9899
+ }
9900
+ ],
9901
+ "x-stability": "Unstable"
9902
+ }
9903
+ },
9904
+ "/torn/cityshops": {
9905
+ "get": {
9906
+ "tags": [
9907
+ "Torn"
9908
+ ],
9909
+ "summary": "Get city shops stock information",
9910
+ "description": "Requires public access key. <br>",
9911
+ "operationId": "getTornCityShops",
9912
+ "parameters": [
9913
+ {
9914
+ "$ref": "#/components/parameters/ApiTimestamp"
9915
+ },
9916
+ {
9917
+ "$ref": "#/components/parameters/ApiComment"
9918
+ },
9919
+ {
9920
+ "$ref": "#/components/parameters/ApiKeyPublic"
9921
+ }
9922
+ ],
9923
+ "responses": {
9924
+ "200": {
9925
+ "description": "Successful operation",
9926
+ "content": {
9927
+ "application/json": {
9928
+ "schema": {
9929
+ "$ref": "#/components/schemas/TornCityShopsResponse"
9930
+ }
9931
+ }
9932
+ }
9933
+ }
9934
+ },
9935
+ "security": [
9936
+ {
9937
+ "api_key": []
9938
+ }
9939
+ ],
9940
+ "x-stability": "Unstable"
9941
+ }
9942
+ },
9943
+ "/torn/{shopId}/cityshops": {
9944
+ "get": {
9945
+ "tags": [
9946
+ "Torn"
9947
+ ],
9948
+ "summary": "Get stock information for a specific shop",
9949
+ "description": "Requires public access key. <br>",
9950
+ "operationId": "getTornCityShopSpecific",
9951
+ "parameters": [
9952
+ {
9953
+ "name": "shopId",
9954
+ "in": "path",
9955
+ "description": "Shop id",
9956
+ "required": true,
9957
+ "schema": {
9958
+ "$ref": "#/components/schemas/CityShopId"
9959
+ }
9960
+ },
9961
+ {
9962
+ "$ref": "#/components/parameters/ApiTimestamp"
9963
+ },
9964
+ {
9965
+ "$ref": "#/components/parameters/ApiComment"
9966
+ },
9967
+ {
9968
+ "$ref": "#/components/parameters/ApiKeyPublic"
9969
+ }
9970
+ ],
9971
+ "responses": {
9972
+ "200": {
9973
+ "description": "Successful operation",
9974
+ "content": {
9975
+ "application/json": {
9976
+ "schema": {
9977
+ "$ref": "#/components/schemas/TornCityShopsResponse"
9978
+ }
9979
+ }
9980
+ }
9981
+ }
9982
+ },
9983
+ "security": [
9984
+ {
9985
+ "api_key": []
9986
+ }
9987
+ ],
9988
+ "x-stability": "Unstable"
9989
+ }
9990
+ },
9826
9991
  "/torn/companies": {
9827
9992
  "get": {
9828
9993
  "tags": [
@@ -10936,6 +11101,45 @@
10936
11101
  "x-stability": "Stable"
10937
11102
  }
10938
11103
  },
11104
+ "/torn/pokertables": {
11105
+ "get": {
11106
+ "tags": [
11107
+ "Torn"
11108
+ ],
11109
+ "summary": "Get active poker tables",
11110
+ "description": "Requires public access key. <br>",
11111
+ "operationId": "getTornPokerTables",
11112
+ "parameters": [
11113
+ {
11114
+ "$ref": "#/components/parameters/ApiTimestamp"
11115
+ },
11116
+ {
11117
+ "$ref": "#/components/parameters/ApiComment"
11118
+ },
11119
+ {
11120
+ "$ref": "#/components/parameters/ApiKeyPublic"
11121
+ }
11122
+ ],
11123
+ "responses": {
11124
+ "200": {
11125
+ "description": "Successful operation",
11126
+ "content": {
11127
+ "application/json": {
11128
+ "schema": {
11129
+ "$ref": "#/components/schemas/TornPokerTablesResponse"
11130
+ }
11131
+ }
11132
+ }
11133
+ }
11134
+ },
11135
+ "security": [
11136
+ {
11137
+ "api_key": []
11138
+ }
11139
+ ],
11140
+ "x-stability": "Unstable"
11141
+ }
11142
+ },
10939
11143
  "/torn/properties": {
10940
11144
  "get": {
10941
11145
  "tags": [
@@ -11367,6 +11571,9 @@
11367
11571
  {
11368
11572
  "$ref": "#/components/schemas/EliminationTeamId"
11369
11573
  },
11574
+ {
11575
+ "$ref": "#/components/schemas/CityShopId"
11576
+ },
11370
11577
  {
11371
11578
  "$ref": "#/components/schemas/ItemUid"
11372
11579
  },
@@ -11483,6 +11690,9 @@
11483
11690
  {
11484
11691
  "$ref": "#/components/schemas/TornLogTypesResponse"
11485
11692
  },
11693
+ {
11694
+ "$ref": "#/components/schemas/TornCardsResponse"
11695
+ },
11486
11696
  {
11487
11697
  "$ref": "#/components/schemas/TornItemsResponse"
11488
11698
  },
@@ -11507,18 +11717,27 @@
11507
11717
  {
11508
11718
  "$ref": "#/components/schemas/TornEliminationTeamsResponse"
11509
11719
  },
11720
+ {
11721
+ "$ref": "#/components/schemas/TornCityShopsResponse"
11722
+ },
11510
11723
  {
11511
11724
  "$ref": "#/components/schemas/TornEliminationTeamPlayersResponse"
11512
11725
  },
11513
11726
  {
11514
11727
  "$ref": "#/components/schemas/TornMedalsResponse"
11515
11728
  },
11729
+ {
11730
+ "$ref": "#/components/schemas/TornBankResponse"
11731
+ },
11516
11732
  {
11517
11733
  "$ref": "#/components/schemas/TornBountiesResponse"
11518
11734
  },
11519
11735
  {
11520
11736
  "$ref": "#/components/schemas/TornGymsResponse"
11521
11737
  },
11738
+ {
11739
+ "$ref": "#/components/schemas/TornPokerTablesResponse"
11740
+ },
11522
11741
  {
11523
11742
  "$ref": "#/components/schemas/TornItemAmmoResponse"
11524
11743
  },
@@ -16599,6 +16818,10 @@
16599
16818
  "type": "integer",
16600
16819
  "format": "int32"
16601
16820
  },
16821
+ "CityShopId": {
16822
+ "type": "integer",
16823
+ "format": "int32"
16824
+ },
16602
16825
  "AmmoId": {
16603
16826
  "type": "integer",
16604
16827
  "format": "int32"
@@ -16639,6 +16862,10 @@
16639
16862
  "type": "integer",
16640
16863
  "format": "int64"
16641
16864
  },
16865
+ "PokerTableId": {
16866
+ "type": "integer",
16867
+ "format": "int32"
16868
+ },
16642
16869
  "StockId": {
16643
16870
  "type": "integer",
16644
16871
  "format": "int32"
@@ -16852,6 +17079,28 @@
16852
17079
  "Specialist"
16853
17080
  ]
16854
17081
  },
17082
+ "ShopNameEnum": {
17083
+ "type": "string",
17084
+ "enum": [
17085
+ "Arms Dealer",
17086
+ "General Store",
17087
+ "Black Market",
17088
+ "Big Al's Gun Shop",
17089
+ "Sally's Sweet Shop",
17090
+ "TC Clothing",
17091
+ "Bits 'n' Bobs",
17092
+ "Jewelry Store",
17093
+ "Super Store",
17094
+ "Docks",
17095
+ "Post Office",
17096
+ "Pharmacy",
17097
+ "Nikeh Sports",
17098
+ "Print Shop",
17099
+ "Recycling Center",
17100
+ "Cyber Force",
17101
+ "Pawn Shop"
17102
+ ]
17103
+ },
16855
17104
  "UserGenderEnum": {
16856
17105
  "type": "string",
16857
17106
  "enum": [
@@ -23113,7 +23362,8 @@
23113
23362
  "races_entered",
23114
23363
  "races_won",
23115
23364
  "is_removed",
23116
- "parts"
23365
+ "parts",
23366
+ "car_name"
23117
23367
  ],
23118
23368
  "properties": {
23119
23369
  "id": {
@@ -33336,6 +33586,214 @@
33336
33586
  },
33337
33587
  "type": "object"
33338
33588
  },
33589
+ "TornPokerTable": {
33590
+ "required": [
33591
+ "id",
33592
+ "name",
33593
+ "blinds",
33594
+ "players",
33595
+ "speed"
33596
+ ],
33597
+ "properties": {
33598
+ "id": {
33599
+ "$ref": "#/components/schemas/PokerTableId"
33600
+ },
33601
+ "name": {
33602
+ "type": "string"
33603
+ },
33604
+ "blinds": {
33605
+ "required": [
33606
+ "big",
33607
+ "small"
33608
+ ],
33609
+ "properties": {
33610
+ "big": {
33611
+ "type": "integer",
33612
+ "format": "int64"
33613
+ },
33614
+ "small": {
33615
+ "type": "integer",
33616
+ "format": "int64"
33617
+ }
33618
+ },
33619
+ "type": "object"
33620
+ },
33621
+ "players": {
33622
+ "required": [
33623
+ "current",
33624
+ "maximum"
33625
+ ],
33626
+ "properties": {
33627
+ "current": {
33628
+ "type": "integer",
33629
+ "format": "int32"
33630
+ },
33631
+ "maximum": {
33632
+ "type": "integer",
33633
+ "format": "int32"
33634
+ }
33635
+ },
33636
+ "type": "object"
33637
+ },
33638
+ "speed": {
33639
+ "type": "integer",
33640
+ "format": "int32"
33641
+ }
33642
+ },
33643
+ "type": "object"
33644
+ },
33645
+ "TornPokerTablesResponse": {
33646
+ "required": [
33647
+ "pokertables"
33648
+ ],
33649
+ "properties": {
33650
+ "pokertables": {
33651
+ "type": "array",
33652
+ "items": {
33653
+ "$ref": "#/components/schemas/TornPokerTable"
33654
+ }
33655
+ }
33656
+ },
33657
+ "type": "object"
33658
+ },
33659
+ "TornCard": {
33660
+ "required": [
33661
+ "name",
33662
+ "short_name",
33663
+ "class"
33664
+ ],
33665
+ "properties": {
33666
+ "name": {
33667
+ "type": "string"
33668
+ },
33669
+ "short_name": {
33670
+ "type": "string"
33671
+ },
33672
+ "class": {
33673
+ "type": "string"
33674
+ }
33675
+ },
33676
+ "type": "object"
33677
+ },
33678
+ "TornCardsResponse": {
33679
+ "required": [
33680
+ "cards"
33681
+ ],
33682
+ "properties": {
33683
+ "cards": {
33684
+ "type": "array",
33685
+ "items": {
33686
+ "$ref": "#/components/schemas/TornCard"
33687
+ }
33688
+ }
33689
+ },
33690
+ "type": "object"
33691
+ },
33692
+ "TornBank": {
33693
+ "required": [
33694
+ "days",
33695
+ "rate"
33696
+ ],
33697
+ "properties": {
33698
+ "days": {
33699
+ "type": "integer",
33700
+ "format": "int32"
33701
+ },
33702
+ "rate": {
33703
+ "type": "number",
33704
+ "format": "float"
33705
+ }
33706
+ },
33707
+ "type": "object"
33708
+ },
33709
+ "TornBankResponse": {
33710
+ "required": [
33711
+ "bank"
33712
+ ],
33713
+ "properties": {
33714
+ "bank": {
33715
+ "type": "array",
33716
+ "items": {
33717
+ "$ref": "#/components/schemas/TornBank"
33718
+ }
33719
+ }
33720
+ },
33721
+ "type": "object"
33722
+ },
33723
+ "TornCityShopItem": {
33724
+ "required": [
33725
+ "id",
33726
+ "name",
33727
+ "price",
33728
+ "stock"
33729
+ ],
33730
+ "properties": {
33731
+ "id": {
33732
+ "$ref": "#/components/schemas/ItemId"
33733
+ },
33734
+ "name": {
33735
+ "type": "string"
33736
+ },
33737
+ "price": {
33738
+ "type": "integer",
33739
+ "format": "int64"
33740
+ },
33741
+ "stock": {
33742
+ "required": [
33743
+ "current",
33744
+ "default"
33745
+ ],
33746
+ "properties": {
33747
+ "current": {
33748
+ "type": "integer",
33749
+ "format": "int32"
33750
+ },
33751
+ "default": {
33752
+ "type": "integer",
33753
+ "format": "int32"
33754
+ }
33755
+ },
33756
+ "type": "object"
33757
+ }
33758
+ },
33759
+ "type": "object"
33760
+ },
33761
+ "TornCityShop": {
33762
+ "required": [
33763
+ "id",
33764
+ "name",
33765
+ "items"
33766
+ ],
33767
+ "properties": {
33768
+ "id": {
33769
+ "$ref": "#/components/schemas/CityShopId"
33770
+ },
33771
+ "name": {
33772
+ "type": "string"
33773
+ },
33774
+ "items": {
33775
+ "type": "array",
33776
+ "items": {
33777
+ "$ref": "#/components/schemas/TornCityShopItem"
33778
+ }
33779
+ }
33780
+ },
33781
+ "type": "object"
33782
+ },
33783
+ "TornCityShopsResponse": {
33784
+ "required": [
33785
+ "cityshops"
33786
+ ],
33787
+ "properties": {
33788
+ "cityshops": {
33789
+ "type": "array",
33790
+ "items": {
33791
+ "$ref": "#/components/schemas/TornCityShop"
33792
+ }
33793
+ }
33794
+ },
33795
+ "type": "object"
33796
+ },
33339
33797
  "TornGymModifiers": {
33340
33798
  "required": [
33341
33799
  "strength",
@@ -35728,6 +36186,45 @@
35728
36186
  },
35729
36187
  "type": "object"
35730
36188
  },
36189
+ "TornItemShop": {
36190
+ "required": [
36191
+ "country",
36192
+ "shop",
36193
+ "buy_price",
36194
+ "sell_price"
36195
+ ],
36196
+ "properties": {
36197
+ "country": {
36198
+ "$ref": "#/components/schemas/CountryEnum"
36199
+ },
36200
+ "shop": {
36201
+ "$ref": "#/components/schemas/ShopNameEnum"
36202
+ },
36203
+ "buy_price": {
36204
+ "oneOf": [
36205
+ {
36206
+ "type": "integer",
36207
+ "format": "int64"
36208
+ },
36209
+ {
36210
+ "type": "null"
36211
+ }
36212
+ ]
36213
+ },
36214
+ "sell_price": {
36215
+ "oneOf": [
36216
+ {
36217
+ "type": "integer",
36218
+ "format": "int64"
36219
+ },
36220
+ {
36221
+ "type": "null"
36222
+ }
36223
+ ]
36224
+ }
36225
+ },
36226
+ "type": "object"
36227
+ },
35731
36228
  "TornItem": {
35732
36229
  "required": [
35733
36230
  "id",
@@ -35802,13 +36299,13 @@
35802
36299
  },
35803
36300
  "value": {
35804
36301
  "required": [
35805
- "vendor",
35806
- "buy_price",
35807
- "sell_price",
35808
- "market_price"
36302
+ "market_price",
36303
+ "shops"
35809
36304
  ],
35810
36305
  "properties": {
35811
36306
  "vendor": {
36307
+ "description": "This field is replaced with shops array and will be removed on 1st of January 2027.",
36308
+ "deprecated": true,
35812
36309
  "oneOf": [
35813
36310
  {
35814
36311
  "required": [
@@ -35830,7 +36327,15 @@
35830
36327
  }
35831
36328
  ]
35832
36329
  },
36330
+ "shops": {
36331
+ "type": "array",
36332
+ "items": {
36333
+ "$ref": "#/components/schemas/TornItemShop"
36334
+ }
36335
+ },
35833
36336
  "buy_price": {
36337
+ "description": "This field is replaced with shops array and will be removed on 1st of January 2027.",
36338
+ "deprecated": true,
35834
36339
  "oneOf": [
35835
36340
  {
35836
36341
  "type": "integer",
@@ -35842,6 +36347,8 @@
35842
36347
  ]
35843
36348
  },
35844
36349
  "sell_price": {
36350
+ "description": "This field is replaced with shops array and will be removed on 1st of January 2027.",
36351
+ "deprecated": true,
35845
36352
  "oneOf": [
35846
36353
  {
35847
36354
  "type": "integer",
@@ -36001,12 +36508,16 @@
36001
36508
  "TornSelectionName": {
36002
36509
  "oneOf": [
36003
36510
  {
36004
- "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
36511
+ "description": "The following selections will fallback to API v1 and may change at any time:'competition','itemstats','organisedcrimes','rockpaperscissors','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars', 'pawnshop'.",
36005
36512
  "type": "string",
36006
36513
  "enum": [
36007
36514
  "attacklog",
36515
+ "bank",
36008
36516
  "bounties",
36009
36517
  "calendar",
36518
+ "cards",
36519
+ "cityshops",
36520
+ "companies",
36010
36521
  "crimes",
36011
36522
  "education",
36012
36523
  "elimination",
@@ -36017,6 +36528,7 @@
36017
36528
  "hof",
36018
36529
  "honors",
36019
36530
  "itemammo",
36531
+ "itemdetails",
36020
36532
  "itemmods",
36021
36533
  "items",
36022
36534
  "logcategories",
@@ -36026,6 +36538,7 @@
36026
36538
  "merits",
36027
36539
  "museum",
36028
36540
  "organizedcrimes",
36541
+ "pokertables",
36029
36542
  "properties",
36030
36543
  "searchforcash",
36031
36544
  "shoplifting",
@@ -36033,17 +36546,9 @@
36033
36546
  "subcrimes",
36034
36547
  "territory",
36035
36548
  "timestamp",
36036
- "bank",
36037
- "cards",
36038
- "cityshops",
36039
- "companies",
36040
36549
  "competition",
36041
- "gyms",
36042
- "itemdetails",
36043
36550
  "itemstats",
36044
36551
  "organisedcrimes",
36045
- "pawnshop",
36046
- "pokertables",
36047
36552
  "rockpaperscissors",
36048
36553
  "stats"
36049
36554
  ]
@@ -36222,7 +36727,7 @@
36222
36727
  "ApiNanostamp": {
36223
36728
  "name": "nanostamp",
36224
36729
  "in": "query",
36225
- "description": "Timestamp in nanoseconds to bypass system limitation when using regular timestamps",
36730
+ "description": "Timestamp in nanoseconds to bypass system limitation when more than 100 logs were returned in the same second.",
36226
36731
  "required": false,
36227
36732
  "schema": {
36228
36733
  "type": "string"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.10.1",
4
+ "version": "6.11.0",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },