@echoxyz/sonar-core 0.9.0 → 0.10.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,15 @@
1
1
  # @echoxyz/sonar-core
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d42882b: Changed entityID parameter names
8
+
9
+ ### Patch Changes
10
+
11
+ - d3dce74: Change EntityID type to a string and add SaleSpecificEntityID
12
+
3
13
  ## 0.9.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -28,6 +28,7 @@ declare class AuthSession {
28
28
  }
29
29
 
30
30
  type Hex = `0x${string}`;
31
+ type EntityID = string;
31
32
  declare enum EntityType {
32
33
  USER = "user",
33
34
  ORGANIZATION = "organization"
@@ -92,7 +93,8 @@ declare enum InvestingRegion {
92
93
  }
93
94
  type EntityDetails = {
94
95
  Label: string;
95
- EntityID: Hex;
96
+ EntityID: EntityID;
97
+ SaleSpecificEntityID: Hex;
96
98
  EntityType: EntityType;
97
99
  EntitySetupState: EntitySetupState;
98
100
  SaleEligibility: SaleEligibility;
@@ -156,12 +158,12 @@ declare class SonarClient {
156
158
  }): Promise<TokenResponse>;
157
159
  prePurchaseCheck(args: {
158
160
  saleUUID: string;
159
- entityID: Hex;
161
+ entityID: EntityID;
160
162
  walletAddress: string;
161
163
  }): Promise<PrePurchaseCheckResponse>;
162
164
  generatePurchasePermit(args: {
163
165
  saleUUID: string;
164
- entityID: Hex;
166
+ entityID: EntityID;
165
167
  walletAddress: string;
166
168
  }): Promise<GeneratePurchasePermitResponse>;
167
169
  fetchAllocation(args: {
@@ -209,4 +211,4 @@ type CreateClientOptions = {
209
211
  };
210
212
  declare function createClient(options?: CreateClientOptions): SonarClient;
211
213
 
212
- export { APIError, type AllocationPermit, type AllocationResponse, type BasicPermit, type BasicPermitV2, type BuildAuthorizationUrlArgs, type ClientOptions, type CreateClientOptions, type EntityDetails, EntitySetupState, EntityType, type FetchLike, type GeneratePurchasePermitResponse, type Hex, InvestingRegion, type ListAvailableEntitiesResponse, type PrePurchaseCheckResponse, PrePurchaseFailureReason, type PurchasePermit, PurchasePermitType, type ReadEntityResponse, SaleEligibility, SonarClient, type StorageLike, type TokenResponse, buildAuthorizationUrl, createClient, createMemoryStorage, createWebStorage, generatePKCEParams };
214
+ export { APIError, type AllocationPermit, type AllocationResponse, type BasicPermit, type BasicPermitV2, type BuildAuthorizationUrlArgs, type ClientOptions, type CreateClientOptions, type EntityDetails, type EntityID, EntitySetupState, EntityType, type FetchLike, type GeneratePurchasePermitResponse, type Hex, InvestingRegion, type ListAvailableEntitiesResponse, type PrePurchaseCheckResponse, PrePurchaseFailureReason, type PurchasePermit, PurchasePermitType, type ReadEntityResponse, SaleEligibility, SonarClient, type StorageLike, type TokenResponse, buildAuthorizationUrl, createClient, createMemoryStorage, createWebStorage, generatePKCEParams };
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ declare class AuthSession {
28
28
  }
29
29
 
30
30
  type Hex = `0x${string}`;
31
+ type EntityID = string;
31
32
  declare enum EntityType {
32
33
  USER = "user",
33
34
  ORGANIZATION = "organization"
@@ -92,7 +93,8 @@ declare enum InvestingRegion {
92
93
  }
93
94
  type EntityDetails = {
94
95
  Label: string;
95
- EntityID: Hex;
96
+ EntityID: EntityID;
97
+ SaleSpecificEntityID: Hex;
96
98
  EntityType: EntityType;
97
99
  EntitySetupState: EntitySetupState;
98
100
  SaleEligibility: SaleEligibility;
@@ -156,12 +158,12 @@ declare class SonarClient {
156
158
  }): Promise<TokenResponse>;
157
159
  prePurchaseCheck(args: {
158
160
  saleUUID: string;
159
- entityID: Hex;
161
+ entityID: EntityID;
160
162
  walletAddress: string;
161
163
  }): Promise<PrePurchaseCheckResponse>;
162
164
  generatePurchasePermit(args: {
163
165
  saleUUID: string;
164
- entityID: Hex;
166
+ entityID: EntityID;
165
167
  walletAddress: string;
166
168
  }): Promise<GeneratePurchasePermitResponse>;
167
169
  fetchAllocation(args: {
@@ -209,4 +211,4 @@ type CreateClientOptions = {
209
211
  };
210
212
  declare function createClient(options?: CreateClientOptions): SonarClient;
211
213
 
212
- export { APIError, type AllocationPermit, type AllocationResponse, type BasicPermit, type BasicPermitV2, type BuildAuthorizationUrlArgs, type ClientOptions, type CreateClientOptions, type EntityDetails, EntitySetupState, EntityType, type FetchLike, type GeneratePurchasePermitResponse, type Hex, InvestingRegion, type ListAvailableEntitiesResponse, type PrePurchaseCheckResponse, PrePurchaseFailureReason, type PurchasePermit, PurchasePermitType, type ReadEntityResponse, SaleEligibility, SonarClient, type StorageLike, type TokenResponse, buildAuthorizationUrl, createClient, createMemoryStorage, createWebStorage, generatePKCEParams };
214
+ export { APIError, type AllocationPermit, type AllocationResponse, type BasicPermit, type BasicPermitV2, type BuildAuthorizationUrlArgs, type ClientOptions, type CreateClientOptions, type EntityDetails, type EntityID, EntitySetupState, EntityType, type FetchLike, type GeneratePurchasePermitResponse, type Hex, InvestingRegion, type ListAvailableEntitiesResponse, type PrePurchaseCheckResponse, PrePurchaseFailureReason, type PurchasePermit, PurchasePermitType, type ReadEntityResponse, SaleEligibility, SonarClient, type StorageLike, type TokenResponse, buildAuthorizationUrl, createClient, createMemoryStorage, createWebStorage, generatePKCEParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoxyz/sonar-core",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",