tornapi-typescript 4.3.5 → 4.3.7

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
@@ -603,7 +603,12 @@ export interface UserMoneyResponse {
603
603
  cayman_bank: number;
604
604
  city_bank: {
605
605
  amount: number;
606
+ profit: number;
607
+ /** Initial duration in days. */
608
+ duration: number;
609
+ interest_rate: number;
606
610
  until: number;
611
+ invested_at: number;
607
612
  };
608
613
  faction: {
609
614
  money: number;
@@ -6516,7 +6521,7 @@ export interface UserV2 extends BaseSchema {
6516
6521
  };
6517
6522
  log: {
6518
6523
  response: UserLogsResponse;
6519
- params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
6524
+ params: "log" | "cat" | "target" | "limit" | "to" | "from" | "timestamp";
6520
6525
  };
6521
6526
  medals: {
6522
6527
  response: UserMedalsResponse;
package/dist/index.ts CHANGED
@@ -5607,7 +5607,12 @@ export interface UserMoneyResponse {
5607
5607
  cayman_bank: number;
5608
5608
  city_bank: {
5609
5609
  amount: number;
5610
+ profit: number;
5611
+ /** Initial duration in days. */
5612
+ duration: number;
5613
+ interest_rate: number;
5610
5614
  until: number;
5615
+ invested_at: number;
5611
5616
  };
5612
5617
  faction: {
5613
5618
  money: number;
@@ -12261,7 +12266,14 @@ export interface UserV2 extends BaseSchema {
12261
12266
  };
12262
12267
  log: {
12263
12268
  response: UserLogsResponse;
12264
- params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
12269
+ params:
12270
+ | "log"
12271
+ | "cat"
12272
+ | "target"
12273
+ | "limit"
12274
+ | "to"
12275
+ | "from"
12276
+ | "timestamp";
12265
12277
  };
12266
12278
  medals: {
12267
12279
  response: UserMedalsResponse;
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": "4.3.5"
6
+ "version": "4.3.7"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -1704,6 +1704,15 @@
1704
1704
  "$ref": "#/components/schemas/LogCategoryId"
1705
1705
  }
1706
1706
  },
1707
+ {
1708
+ "name": "target",
1709
+ "in": "query",
1710
+ "description": "Get logs where you interacted with a specific player by passing their player ID.",
1711
+ "required": false,
1712
+ "schema": {
1713
+ "$ref": "#/components/schemas/UserId"
1714
+ }
1715
+ },
1707
1716
  {
1708
1717
  "$ref": "#/components/parameters/ApiLimit100Default20"
1709
1718
  },
@@ -16842,16 +16851,37 @@
16842
16851
  "city_bank": {
16843
16852
  "required": [
16844
16853
  "amount",
16845
- "until"
16854
+ "profit",
16855
+ "duration",
16856
+ "interest_rate",
16857
+ "until",
16858
+ "invested_at"
16846
16859
  ],
16847
16860
  "properties": {
16848
16861
  "amount": {
16849
16862
  "type": "integer",
16850
16863
  "format": "int64"
16851
16864
  },
16865
+ "profit": {
16866
+ "type": "integer",
16867
+ "format": "int64"
16868
+ },
16869
+ "duration": {
16870
+ "description": "Initial duration in days.",
16871
+ "type": "integer",
16872
+ "format": "int32"
16873
+ },
16874
+ "interest_rate": {
16875
+ "type": "number",
16876
+ "format": "float"
16877
+ },
16852
16878
  "until": {
16853
16879
  "type": "integer",
16854
16880
  "format": "int64"
16881
+ },
16882
+ "invested_at": {
16883
+ "type": "integer",
16884
+ "format": "int32"
16855
16885
  }
16856
16886
  },
16857
16887
  "type": "object"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "4.3.5",
4
+ "version": "4.3.7",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },