@echoxyz/sonar-core 0.9.0 → 0.11.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 +16 -0
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @echoxyz/sonar-core
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cf2914d: Updated entityID name on permit
|
|
8
|
+
|
|
9
|
+
## 0.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- d42882b: Changed entityID parameter names
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- d3dce74: Change EntityID type to a string and add SaleSpecificEntityID
|
|
18
|
+
|
|
3
19
|
## 0.9.0
|
|
4
20
|
|
|
5
21
|
### 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"
|
|
@@ -60,7 +61,7 @@ type AllocationPermit = {
|
|
|
60
61
|
MinAmount: string;
|
|
61
62
|
};
|
|
62
63
|
type BasicPermitV2 = {
|
|
63
|
-
|
|
64
|
+
SaleSpecificEntityID: Hex;
|
|
64
65
|
SaleUUID: Hex;
|
|
65
66
|
Wallet: Hex;
|
|
66
67
|
ExpiresAt: number;
|
|
@@ -92,7 +93,8 @@ declare enum InvestingRegion {
|
|
|
92
93
|
}
|
|
93
94
|
type EntityDetails = {
|
|
94
95
|
Label: string;
|
|
95
|
-
EntityID:
|
|
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:
|
|
161
|
+
entityID: EntityID;
|
|
160
162
|
walletAddress: string;
|
|
161
163
|
}): Promise<PrePurchaseCheckResponse>;
|
|
162
164
|
generatePurchasePermit(args: {
|
|
163
165
|
saleUUID: string;
|
|
164
|
-
entityID:
|
|
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"
|
|
@@ -60,7 +61,7 @@ type AllocationPermit = {
|
|
|
60
61
|
MinAmount: string;
|
|
61
62
|
};
|
|
62
63
|
type BasicPermitV2 = {
|
|
63
|
-
|
|
64
|
+
SaleSpecificEntityID: Hex;
|
|
64
65
|
SaleUUID: Hex;
|
|
65
66
|
Wallet: Hex;
|
|
66
67
|
ExpiresAt: number;
|
|
@@ -92,7 +93,8 @@ declare enum InvestingRegion {
|
|
|
92
93
|
}
|
|
93
94
|
type EntityDetails = {
|
|
94
95
|
Label: string;
|
|
95
|
-
EntityID:
|
|
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:
|
|
161
|
+
entityID: EntityID;
|
|
160
162
|
walletAddress: string;
|
|
161
163
|
}): Promise<PrePurchaseCheckResponse>;
|
|
162
164
|
generatePurchasePermit(args: {
|
|
163
165
|
saleUUID: string;
|
|
164
|
-
entityID:
|
|
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 };
|