@echoxyz/sonar-core 0.14.2 → 0.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @echoxyz/sonar-core
2
2
 
3
+ ## 0.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 06bc5a6: Support passing in EntityID to ReadEntity
8
+
9
+ ## 0.14.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 5a7d0b3: Add support for "eu" investing region
14
+
3
15
  ## 0.14.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -308,6 +308,7 @@ var SonarClient = class {
308
308
  async readEntity(args) {
309
309
  return this.postJSON("/externalapi.ReadEntity", {
310
310
  SaleUUID: args.saleUUID,
311
+ EntityID: args.entityID,
311
312
  WalletAddress: args.walletAddress
312
313
  });
313
314
  }
@@ -434,6 +435,7 @@ var InvestingRegion = /* @__PURE__ */ ((InvestingRegion2) => {
434
435
  InvestingRegion2["UNKNOWN"] = "unknown";
435
436
  InvestingRegion2["OTHER"] = "other";
436
437
  InvestingRegion2["US"] = "us";
438
+ InvestingRegion2["EU"] = "eu";
437
439
  return InvestingRegion2;
438
440
  })(InvestingRegion || {});
439
441
 
package/dist/index.d.cts CHANGED
@@ -104,7 +104,8 @@ declare enum PrePurchaseFailureReason {
104
104
  declare enum InvestingRegion {
105
105
  UNKNOWN = "unknown",
106
106
  OTHER = "other",
107
- US = "us"
107
+ US = "us",
108
+ EU = "eu"
108
109
  }
109
110
  type EntityDetails = {
110
111
  Label: string;
@@ -227,7 +228,9 @@ declare class SonarClient {
227
228
  }): Promise<LimitsResponse>;
228
229
  readEntity(args: {
229
230
  saleUUID: string;
230
- walletAddress: string;
231
+ entityID?: string;
232
+ /** Only used for a wallet linking feature, enabled for niche use-cases on request. */
233
+ walletAddress?: string;
231
234
  }): Promise<ReadEntityResponse>;
232
235
  listAvailableEntities(args: {
233
236
  saleUUID: string;
package/dist/index.d.ts CHANGED
@@ -104,7 +104,8 @@ declare enum PrePurchaseFailureReason {
104
104
  declare enum InvestingRegion {
105
105
  UNKNOWN = "unknown",
106
106
  OTHER = "other",
107
- US = "us"
107
+ US = "us",
108
+ EU = "eu"
108
109
  }
109
110
  type EntityDetails = {
110
111
  Label: string;
@@ -227,7 +228,9 @@ declare class SonarClient {
227
228
  }): Promise<LimitsResponse>;
228
229
  readEntity(args: {
229
230
  saleUUID: string;
230
- walletAddress: string;
231
+ entityID?: string;
232
+ /** Only used for a wallet linking feature, enabled for niche use-cases on request. */
233
+ walletAddress?: string;
231
234
  }): Promise<ReadEntityResponse>;
232
235
  listAvailableEntities(args: {
233
236
  saleUUID: string;
package/dist/index.js CHANGED
@@ -271,6 +271,7 @@ var SonarClient = class {
271
271
  async readEntity(args) {
272
272
  return this.postJSON("/externalapi.ReadEntity", {
273
273
  SaleUUID: args.saleUUID,
274
+ EntityID: args.entityID,
274
275
  WalletAddress: args.walletAddress
275
276
  });
276
277
  }
@@ -397,6 +398,7 @@ var InvestingRegion = /* @__PURE__ */ ((InvestingRegion2) => {
397
398
  InvestingRegion2["UNKNOWN"] = "unknown";
398
399
  InvestingRegion2["OTHER"] = "other";
399
400
  InvestingRegion2["US"] = "us";
401
+ InvestingRegion2["EU"] = "eu";
400
402
  return InvestingRegion2;
401
403
  })(InvestingRegion || {});
402
404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoxyz/sonar-core",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "https://github.com/echoxyz/sonar"
21
+ "url": "https://github.com/sunrisedotdev/sonar"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"