tornapi-typescript 6.5.0 → 6.6.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 CHANGED
@@ -3058,6 +3058,14 @@ export interface KeyInfoResponse {
3058
3058
  };
3059
3059
  }
3060
3060
  export type KeySelectionName = string;
3061
+ export interface PointsMarketResponse {
3062
+ pointsmarket: {
3063
+ id: number;
3064
+ quantity: number;
3065
+ cost: number;
3066
+ total_cost: number;
3067
+ }[];
3068
+ }
3061
3069
  export interface AuctionHouseStackableItem {
3062
3070
  id: ItemId;
3063
3071
  uid: ItemUid;
@@ -3214,7 +3222,6 @@ export interface MarketItemMarketResponse {
3214
3222
  itemmarket: ItemMarket;
3215
3223
  _metadata: RequestMetadataWithLinksAndTotal;
3216
3224
  }
3217
- /** The following selections will fallback to API v1 and may change at any time: 'pointsmarket'. */
3218
3225
  export type MarketSelectionName = string;
3219
3226
  export interface MarketLookupResponse {
3220
3227
  selections: MarketSelectionName[];
@@ -7626,6 +7633,10 @@ export interface MarketV2 extends BaseSchema {
7626
7633
  response: MarketPropertiesResponse;
7627
7634
  params: "propertyTypeId" | "offset" | "limit" | "sort" | "timestamp";
7628
7635
  };
7636
+ pointsmarket: {
7637
+ response: PointsMarketResponse;
7638
+ params: "timestamp";
7639
+ };
7629
7640
  rentals: {
7630
7641
  response: MarketRentalsResponse;
7631
7642
  params: "propertyTypeId" | "offset" | "limit" | "sort" | "timestamp";
package/dist/index.ts CHANGED
@@ -8747,6 +8747,15 @@ export interface KeyInfoResponse {
8747
8747
 
8748
8748
  export type KeySelectionName = string;
8749
8749
 
8750
+ export interface PointsMarketResponse {
8751
+ pointsmarket: {
8752
+ id: number;
8753
+ quantity: number;
8754
+ cost: number;
8755
+ total_cost: number;
8756
+ }[];
8757
+ }
8758
+
8750
8759
  export interface AuctionHouseStackableItem {
8751
8760
  id: ItemId;
8752
8761
  uid: ItemUid;
@@ -8933,7 +8942,6 @@ export interface MarketItemMarketResponse {
8933
8942
  _metadata: RequestMetadataWithLinksAndTotal;
8934
8943
  }
8935
8944
 
8936
- /** The following selections will fallback to API v1 and may change at any time: 'pointsmarket'. */
8937
8945
  export type MarketSelectionName = string;
8938
8946
 
8939
8947
  export interface MarketLookupResponse {
@@ -13582,6 +13590,10 @@ export interface MarketV2 extends BaseSchema {
13582
13590
  params:
13583
13591
  "propertyTypeId" | "offset" | "limit" | "sort" | "timestamp";
13584
13592
  };
13593
+ pointsmarket: {
13594
+ response: PointsMarketResponse;
13595
+ params: "timestamp";
13596
+ };
13585
13597
  rentals: {
13586
13598
  response: MarketRentalsResponse;
13587
13599
  params:
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.5.0"
6
+ "version": "6.6.1"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -3287,7 +3287,7 @@
3287
3287
  "User"
3288
3288
  ],
3289
3289
  "summary": "Get daily active players snapshot CSV",
3290
- "description": "Requires public access key.<br>Returns a CSV daily snapshot of active players.<br>This selection is standalone and cannot be used together with other selections.<br>\nCSV columns: id, name, gender, role, signed_up, last_action, level, rank, donator, networth, faction, company, spouse, display_case, bazaar, location, fed, fed_reason",
3290
+ "description": "Requires public access key.<br>Returns a CSV daily snapshot of active players.<br>This selection is standalone and cannot be used together with other selections.<br>\nCSV columns: id, name, gender, signed_up, level, rank, donator, faction, company, job, spouse, display_case, bazaar, fed, fed_reason, time_played, awards",
3291
3291
  "operationId": "getUsersSnapshot",
3292
3292
  "parameters": [
3293
3293
  {
@@ -3307,7 +3307,7 @@
3307
3307
  "text/csv": {
3308
3308
  "schema": {
3309
3309
  "type": "string",
3310
- "example": "id,name,gender,role,signed_up,last_action,level,rank,donator,networth,faction,company,spouse,display_case,bazaar,location,fed,fed_reason\\n33,1,Chedburn,Male,Admin,1100521336,1785154349,15,Outstanding,1,299829600590,40992,79286,2103253,1,1,Torn,0,"
3310
+ "example": "id,name,gender,signed_up,level,rank,donator,faction,company,job,spouse,display_case,bazaar,fed,fed_reason,time_played,awards\\n33,1,Chedburn,Male,1100521336,15,Outstanding,1,40992,79286,,2103253,1,1,0,,48076299,1388"
3311
3311
  }
3312
3312
  }
3313
3313
  }
@@ -8259,6 +8259,45 @@
8259
8259
  "x-stability": "Stable"
8260
8260
  }
8261
8261
  },
8262
+ "/market/pointsmarket": {
8263
+ "get": {
8264
+ "tags": [
8265
+ "Market"
8266
+ ],
8267
+ "summary": "Get points market listings",
8268
+ "description": "Requires public access key. <br>",
8269
+ "operationId": "getMarketPoints",
8270
+ "parameters": [
8271
+ {
8272
+ "$ref": "#/components/parameters/ApiTimestamp"
8273
+ },
8274
+ {
8275
+ "$ref": "#/components/parameters/ApiComment"
8276
+ },
8277
+ {
8278
+ "$ref": "#/components/parameters/ApiKeyPublic"
8279
+ }
8280
+ ],
8281
+ "responses": {
8282
+ "200": {
8283
+ "description": "Successful operation",
8284
+ "content": {
8285
+ "application/json": {
8286
+ "schema": {
8287
+ "$ref": "#/components/schemas/PointsMarketResponse"
8288
+ }
8289
+ }
8290
+ }
8291
+ }
8292
+ },
8293
+ "security": [
8294
+ {
8295
+ "api_key": []
8296
+ }
8297
+ ],
8298
+ "x-stability": "Unstable"
8299
+ }
8300
+ },
8262
8301
  "/market/{propertyTypeId}/rentals": {
8263
8302
  "get": {
8264
8303
  "tags": [
@@ -8522,6 +8561,9 @@
8522
8561
  {
8523
8562
  "$ref": "#/components/schemas/AuctionHouseListingResponse"
8524
8563
  },
8564
+ {
8565
+ "$ref": "#/components/schemas/PointsMarketResponse"
8566
+ },
8525
8567
  {
8526
8568
  "$ref": "#/components/schemas/MarketPropertiesResponse"
8527
8569
  },
@@ -30870,6 +30912,44 @@
30870
30912
  }
30871
30913
  ]
30872
30914
  },
30915
+ "PointsMarketResponse": {
30916
+ "required": [
30917
+ "pointsmarket"
30918
+ ],
30919
+ "properties": {
30920
+ "pointsmarket": {
30921
+ "type": "array",
30922
+ "items": {
30923
+ "required": [
30924
+ "id",
30925
+ "quantity",
30926
+ "cost",
30927
+ "total_cost"
30928
+ ],
30929
+ "properties": {
30930
+ "id": {
30931
+ "type": "integer",
30932
+ "format": "int32"
30933
+ },
30934
+ "quantity": {
30935
+ "type": "integer",
30936
+ "format": "int32"
30937
+ },
30938
+ "cost": {
30939
+ "type": "integer",
30940
+ "format": "int32"
30941
+ },
30942
+ "total_cost": {
30943
+ "type": "integer",
30944
+ "format": "int64"
30945
+ }
30946
+ },
30947
+ "type": "object"
30948
+ }
30949
+ }
30950
+ },
30951
+ "type": "object"
30952
+ },
30873
30953
  "AuctionHouseStackableItem": {
30874
30954
  "required": [
30875
30955
  "id",
@@ -31646,18 +31726,17 @@
31646
31726
  "MarketSelectionName": {
31647
31727
  "oneOf": [
31648
31728
  {
31649
- "description": "The following selections will fallback to API v1 and may change at any time: 'pointsmarket'.",
31650
31729
  "type": "string",
31651
31730
  "enum": [
31731
+ "auctionhouse",
31732
+ "auctionhouselisting",
31652
31733
  "bazaar",
31653
31734
  "itemmarket",
31735
+ "pointsmarket",
31654
31736
  "properties",
31655
31737
  "rentals",
31656
31738
  "lookup",
31657
- "timestamp",
31658
- "pointsmarket",
31659
- "auctionhouse",
31660
- "auctionhouselisting"
31739
+ "timestamp"
31661
31740
  ]
31662
31741
  },
31663
31742
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "6.5.0",
4
+ "version": "6.6.1",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
7
7
  },