@heliofi/common-fe 0.2.306 → 0.2.308
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/dist/index.d.ts +51 -51
- package/dist/index.js +12 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,16 @@ declare enum ThemeMode {
|
|
|
94
94
|
DARK = "DARK",
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
+
//#region ../common/src/domain/model/feature-flags/entities/BetaFeature.entity.d.ts
|
|
98
|
+
declare enum BetaFeature {
|
|
99
|
+
SWAP = "SWAP",
|
|
100
|
+
MOONPAY_HEADLESS_FRAMES = "MOONPAY_HEADLESS_FRAMES",
|
|
101
|
+
GLIDE_DEPOSITS = "GLIDE_DEPOSITS",
|
|
102
|
+
CHECKOUT_V2 = "checkout_v2",
|
|
103
|
+
TRON_ENERGY_RENTAL = "TRON_ENERGY_RENTAL",
|
|
104
|
+
THEMES_V2 = "themesV2",
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
97
107
|
//#region ../common/src/domain/model/entity/Entity.d.ts
|
|
98
108
|
declare class Entity {
|
|
99
109
|
static fromObject<T extends Entity>(record: T): T;
|
|
@@ -195,56 +205,6 @@ declare enum FIATCurrencies {
|
|
|
195
205
|
USD = "USD",
|
|
196
206
|
}
|
|
197
207
|
//#endregion
|
|
198
|
-
//#region ../common/src/domain/model/withdraw/entities/WithdrawalConfig.entity.d.ts
|
|
199
|
-
declare class WithdrawalConfigEntity extends Entity {
|
|
200
|
-
id: string;
|
|
201
|
-
name: string;
|
|
202
|
-
platform: Platform;
|
|
203
|
-
disabled: boolean;
|
|
204
|
-
disabledAt: string | null;
|
|
205
|
-
disabledBlockchainSymbols: BlockchainSymbol[];
|
|
206
|
-
enabledFeatures: WithdrawalFeature[];
|
|
207
|
-
themeId?: string;
|
|
208
|
-
createdAt: string;
|
|
209
|
-
updatedAt: string;
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region ../common/src/domain/model/withdraw/entities/WithdrawalCurrenciesExchangeRate.entity.d.ts
|
|
213
|
-
declare class WithdrawalCurrenciesExchangeRate extends Entity {
|
|
214
|
-
minimalUnitRate: bigint;
|
|
215
|
-
decimalRate: string;
|
|
216
|
-
fromCurrencyId: string;
|
|
217
|
-
toCurrencyId: string;
|
|
218
|
-
fromCurrencySymbol: string;
|
|
219
|
-
fromBlockchainSymbol: BlockchainSymbol;
|
|
220
|
-
toCurrencySymbol: FIATCurrencies;
|
|
221
|
-
}
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region ../common/src/domain/model/withdraw/entities/WithdrawalMinSupportedVersions.entity.d.ts
|
|
224
|
-
declare enum WithdrawalPackage {
|
|
225
|
-
HELIOFI_WITHDRAW_CORE = "@heliofi/withdraw-core",
|
|
226
|
-
HELIOFI_WITHDRAW_REACT = "@heliofi/withdraw-react",
|
|
227
|
-
}
|
|
228
|
-
declare class WithdrawalMinSupportedVersions extends Entity {
|
|
229
|
-
packages: Partial<Record<WithdrawalPackage, string>>;
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region ../common/src/domain/model/feature-flags/entities/BetaFeature.entity.d.ts
|
|
233
|
-
declare enum BetaFeature {
|
|
234
|
-
SWAP = "SWAP",
|
|
235
|
-
MOONPAY_HEADLESS_FRAMES = "MOONPAY_HEADLESS_FRAMES",
|
|
236
|
-
GLIDE_DEPOSITS = "GLIDE_DEPOSITS",
|
|
237
|
-
CHECKOUT_V2 = "checkout_v2",
|
|
238
|
-
TRON_ENERGY_RENTAL = "TRON_ENERGY_RENTAL",
|
|
239
|
-
MOONPAY_WALLET_VERIFY = "MOONPAY_WALLET_VERIFY",
|
|
240
|
-
THEMES_V2 = "themesV2",
|
|
241
|
-
}
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region ../common/src/domain/model/currency/entities/Currency.entity.d.ts
|
|
244
|
-
declare class Currency extends BaseCurrency {
|
|
245
|
-
blockchain: Blockchain;
|
|
246
|
-
}
|
|
247
|
-
//#endregion
|
|
248
208
|
//#region ../common/src/domain/model/theme/entities/CustomTheme.entity.d.ts
|
|
249
209
|
declare class CustomTheme extends Entity {
|
|
250
210
|
primaryColor: string;
|
|
@@ -317,6 +277,7 @@ declare class BaseCompany extends Entity {
|
|
|
317
277
|
customTheme?: CustomTheme;
|
|
318
278
|
defaultThemeId?: string;
|
|
319
279
|
allowDeposit?: boolean;
|
|
280
|
+
walletVerificationRequired?: boolean;
|
|
320
281
|
enabledRestrictedDepositEngines?: BlockchainEngineType[];
|
|
321
282
|
enabledBetaFeatures: BetaFeature[];
|
|
322
283
|
verifiedEntity?: {
|
|
@@ -325,6 +286,45 @@ declare class BaseCompany extends Entity {
|
|
|
325
286
|
};
|
|
326
287
|
}
|
|
327
288
|
//#endregion
|
|
289
|
+
//#region ../common/src/domain/model/withdraw/entities/WithdrawalConfig.entity.d.ts
|
|
290
|
+
declare class WithdrawalConfigEntity extends Entity {
|
|
291
|
+
id: string;
|
|
292
|
+
name: string;
|
|
293
|
+
platform: Platform;
|
|
294
|
+
disabled: boolean;
|
|
295
|
+
disabledAt: string | null;
|
|
296
|
+
disabledBlockchainSymbols: BlockchainSymbol[];
|
|
297
|
+
enabledFeatures: WithdrawalFeature[];
|
|
298
|
+
themeId?: string;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
}
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region ../common/src/domain/model/withdraw/entities/WithdrawalCurrenciesExchangeRate.entity.d.ts
|
|
304
|
+
declare class WithdrawalCurrenciesExchangeRate extends Entity {
|
|
305
|
+
minimalUnitRate: bigint;
|
|
306
|
+
decimalRate: string;
|
|
307
|
+
fromCurrencyId: string;
|
|
308
|
+
toCurrencyId: string;
|
|
309
|
+
fromCurrencySymbol: string;
|
|
310
|
+
fromBlockchainSymbol: BlockchainSymbol;
|
|
311
|
+
toCurrencySymbol: FIATCurrencies;
|
|
312
|
+
}
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region ../common/src/domain/model/withdraw/entities/WithdrawalMinSupportedVersions.entity.d.ts
|
|
315
|
+
declare enum WithdrawalPackage {
|
|
316
|
+
HELIOFI_WITHDRAW_CORE = "@heliofi/withdraw-core",
|
|
317
|
+
HELIOFI_WITHDRAW_REACT = "@heliofi/withdraw-react",
|
|
318
|
+
}
|
|
319
|
+
declare class WithdrawalMinSupportedVersions extends Entity {
|
|
320
|
+
packages: Partial<Record<WithdrawalPackage, string>>;
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region ../common/src/domain/model/currency/entities/Currency.entity.d.ts
|
|
324
|
+
declare class Currency extends BaseCurrency {
|
|
325
|
+
blockchain: Blockchain;
|
|
326
|
+
}
|
|
327
|
+
//#endregion
|
|
328
328
|
//#region ../common/src/domain/model/withdraw/entities/PublicWithdrawalConfig.entity.d.ts
|
|
329
329
|
declare class PublicWithdrawalConfigEntity extends WithdrawalConfigEntity {
|
|
330
330
|
fromCurrencies: SlimCurrencyWithPopulatedBlockchain[];
|
|
@@ -465,4 +465,4 @@ declare class SubmitWithdrawalDto {
|
|
|
465
465
|
signedTx: string;
|
|
466
466
|
}
|
|
467
467
|
//#endregion
|
|
468
|
-
export { type BaseBlockchain, type Blockchain, type BlockchainEngine, BlockchainEngineType, BlockchainSymbol, BroadcastAck, GeneralNetwork, type HypercorePreparedTransaction, Platform, type PolymarketWalletPreparedTransaction, type PreparedTransaction, type PreparedWithdrawalDto, type PreparedWithdrawalEntity, type PreparedWithdrawalSummaryDto, type PreparedWithdrawalTypedDataDto, type PublicWithdrawalConfigEntity, type RawPreparedTransaction, SignedTransactionKind, type SlimCurrencyWithBlockchain, type SlimCurrencyWithPopulatedBlockchain, type SubmitWithdrawalDto, type SubmitWithdrawalEntity, TextColor, ThemeMode, ThemeType, type UserOpPreparedTransaction, type WalletCurrencyBalance, type WithdrawalBalancesResponse, type WithdrawalCurrenciesExchangeRate, type WithdrawalCustomerSwapRoute, type WithdrawalCustomerSwapRoutesResponse, WithdrawalFeature, type WithdrawalMinSupportedVersions, type WithdrawalQuoteFeeEntity, WithdrawalState };
|
|
468
|
+
export { type BaseBlockchain, type BaseCompany, BetaFeature, type Blockchain, type BlockchainEngine, BlockchainEngineType, BlockchainSymbol, BroadcastAck, GeneralNetwork, type HypercorePreparedTransaction, Platform, type PolymarketWalletPreparedTransaction, type PreparedTransaction, type PreparedWithdrawalDto, type PreparedWithdrawalEntity, type PreparedWithdrawalSummaryDto, type PreparedWithdrawalTypedDataDto, type PublicWithdrawalConfigEntity, type RawPreparedTransaction, SignedTransactionKind, type SlimCurrencyWithBlockchain, type SlimCurrencyWithPopulatedBlockchain, type SubmitWithdrawalDto, type SubmitWithdrawalEntity, TextColor, type Theme, type ThemeDesignTokens, ThemeMode, type ThemePalette, ThemeType, type UserOpPreparedTransaction, type WalletCurrencyBalance, type WithdrawalBalancesResponse, type WithdrawalCurrenciesExchangeRate, type WithdrawalCustomerSwapRoute, type WithdrawalCustomerSwapRoutesResponse, WithdrawalFeature, type WithdrawalMinSupportedVersions, type WithdrawalQuoteFeeEntity, WithdrawalState };
|
package/dist/index.js
CHANGED
|
@@ -108,4 +108,15 @@ let ThemeMode = /* @__PURE__ */ function(ThemeMode) {
|
|
|
108
108
|
return ThemeMode;
|
|
109
109
|
}({});
|
|
110
110
|
//#endregion
|
|
111
|
-
|
|
111
|
+
//#region ../common/src/domain/model/feature-flags/entities/BetaFeature.entity.ts
|
|
112
|
+
let BetaFeature = /* @__PURE__ */ function(BetaFeature) {
|
|
113
|
+
BetaFeature["SWAP"] = "SWAP";
|
|
114
|
+
BetaFeature["MOONPAY_HEADLESS_FRAMES"] = "MOONPAY_HEADLESS_FRAMES";
|
|
115
|
+
BetaFeature["GLIDE_DEPOSITS"] = "GLIDE_DEPOSITS";
|
|
116
|
+
BetaFeature["CHECKOUT_V2"] = "checkout_v2";
|
|
117
|
+
BetaFeature["TRON_ENERGY_RENTAL"] = "TRON_ENERGY_RENTAL";
|
|
118
|
+
BetaFeature["THEMES_V2"] = "themesV2";
|
|
119
|
+
return BetaFeature;
|
|
120
|
+
}({});
|
|
121
|
+
//#endregion
|
|
122
|
+
export { BetaFeature, BlockchainEngineType, BlockchainSymbol, BroadcastAck, GeneralNetwork, Platform, SignedTransactionKind, TextColor, ThemeMode, ThemeType, WithdrawalFeature, WithdrawalState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliofi/common-fe",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.308",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Zero-dependency, frontend-safe shared enums (and, later, DTO type shapes) for Helio consumers. No class-validator / reflect-metadata / heavy blockchain deps.",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"typescript": "5.*"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "d5dc7bc6c9e1ceabf3240f130da9a90ba32f1e65"
|
|
33
33
|
}
|