@echoxyz/sonar-core 0.14.1 → 0.14.3

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,18 @@
1
1
  # @echoxyz/sonar-core
2
2
 
3
+ ## 0.14.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5a7d0b3: Add support for "eu" investing region
8
+
9
+ ## 0.14.2
10
+
11
+ ### Patch Changes
12
+
13
+ - e02745a: Switch to new "read-commitment-data" path
14
+ - 85f81dc: Add OUTSIDE_TIME_WINDOW to PrePurchaseFailureReason enum
15
+
3
16
  ## 0.14.1
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -319,7 +319,7 @@ var SonarClient = class {
319
319
  // Public API
320
320
  async readCommitmentData(args) {
321
321
  return this.postJSON(
322
- "/sales.ReadCommitmentData",
322
+ "/sonar/v1/public/read-commitment-data",
323
323
  {
324
324
  SaleUUID: args.saleUUID
325
325
  },
@@ -427,12 +427,14 @@ var PrePurchaseFailureReason = /* @__PURE__ */ ((PrePurchaseFailureReason2) => {
427
427
  PrePurchaseFailureReason2["REQUIRES_LIVENESS"] = "requires-liveness";
428
428
  PrePurchaseFailureReason2["SALE_NOT_ACTIVE"] = "sale-not-active";
429
429
  PrePurchaseFailureReason2["WALLET_NOT_LINKED"] = "wallet-not-linked";
430
+ PrePurchaseFailureReason2["OUTSIDE_TIME_WINDOW"] = "outside-time-window";
430
431
  return PrePurchaseFailureReason2;
431
432
  })(PrePurchaseFailureReason || {});
432
433
  var InvestingRegion = /* @__PURE__ */ ((InvestingRegion2) => {
433
434
  InvestingRegion2["UNKNOWN"] = "unknown";
434
435
  InvestingRegion2["OTHER"] = "other";
435
436
  InvestingRegion2["US"] = "us";
437
+ InvestingRegion2["EU"] = "eu";
436
438
  return InvestingRegion2;
437
439
  })(InvestingRegion || {});
438
440
 
package/dist/index.d.cts CHANGED
@@ -98,12 +98,14 @@ declare enum PrePurchaseFailureReason {
98
98
  MAX_WALLETS_USED = "max-wallets-used",
99
99
  REQUIRES_LIVENESS = "requires-liveness",
100
100
  SALE_NOT_ACTIVE = "sale-not-active",
101
- WALLET_NOT_LINKED = "wallet-not-linked"
101
+ WALLET_NOT_LINKED = "wallet-not-linked",
102
+ OUTSIDE_TIME_WINDOW = "outside-time-window"
102
103
  }
103
104
  declare enum InvestingRegion {
104
105
  UNKNOWN = "unknown",
105
106
  OTHER = "other",
106
- US = "us"
107
+ US = "us",
108
+ EU = "eu"
107
109
  }
108
110
  type EntityDetails = {
109
111
  Label: string;
package/dist/index.d.ts CHANGED
@@ -98,12 +98,14 @@ declare enum PrePurchaseFailureReason {
98
98
  MAX_WALLETS_USED = "max-wallets-used",
99
99
  REQUIRES_LIVENESS = "requires-liveness",
100
100
  SALE_NOT_ACTIVE = "sale-not-active",
101
- WALLET_NOT_LINKED = "wallet-not-linked"
101
+ WALLET_NOT_LINKED = "wallet-not-linked",
102
+ OUTSIDE_TIME_WINDOW = "outside-time-window"
102
103
  }
103
104
  declare enum InvestingRegion {
104
105
  UNKNOWN = "unknown",
105
106
  OTHER = "other",
106
- US = "us"
107
+ US = "us",
108
+ EU = "eu"
107
109
  }
108
110
  type EntityDetails = {
109
111
  Label: string;
package/dist/index.js CHANGED
@@ -282,7 +282,7 @@ var SonarClient = class {
282
282
  // Public API
283
283
  async readCommitmentData(args) {
284
284
  return this.postJSON(
285
- "/sales.ReadCommitmentData",
285
+ "/sonar/v1/public/read-commitment-data",
286
286
  {
287
287
  SaleUUID: args.saleUUID
288
288
  },
@@ -390,12 +390,14 @@ var PrePurchaseFailureReason = /* @__PURE__ */ ((PrePurchaseFailureReason2) => {
390
390
  PrePurchaseFailureReason2["REQUIRES_LIVENESS"] = "requires-liveness";
391
391
  PrePurchaseFailureReason2["SALE_NOT_ACTIVE"] = "sale-not-active";
392
392
  PrePurchaseFailureReason2["WALLET_NOT_LINKED"] = "wallet-not-linked";
393
+ PrePurchaseFailureReason2["OUTSIDE_TIME_WINDOW"] = "outside-time-window";
393
394
  return PrePurchaseFailureReason2;
394
395
  })(PrePurchaseFailureReason || {});
395
396
  var InvestingRegion = /* @__PURE__ */ ((InvestingRegion2) => {
396
397
  InvestingRegion2["UNKNOWN"] = "unknown";
397
398
  InvestingRegion2["OTHER"] = "other";
398
399
  InvestingRegion2["US"] = "us";
400
+ InvestingRegion2["EU"] = "eu";
399
401
  return InvestingRegion2;
400
402
  })(InvestingRegion || {});
401
403
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoxyz/sonar-core",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
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"