@echoxyz/sonar-core 0.14.1 → 0.14.2

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,12 @@
1
1
  # @echoxyz/sonar-core
2
2
 
3
+ ## 0.14.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e02745a: Switch to new "read-commitment-data" path
8
+ - 85f81dc: Add OUTSIDE_TIME_WINDOW to PrePurchaseFailureReason enum
9
+
3
10
  ## 0.14.1
4
11
 
5
12
  ### 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,6 +427,7 @@ 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) => {
package/dist/index.d.cts CHANGED
@@ -98,7 +98,8 @@ 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",
package/dist/index.d.ts CHANGED
@@ -98,7 +98,8 @@ 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",
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,6 +390,7 @@ 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) => {
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.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",