@sudobility/types 1.8.21
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/CLAUDE.md +285 -0
- package/README.md +310 -0
- package/dist/index.cjs +62 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +62 -0
- package/dist/index.js.map +1 -0
- package/dist/types/blockchain/common.cjs +102 -0
- package/dist/types/blockchain/common.d.ts +262 -0
- package/dist/types/blockchain/common.d.ts.map +1 -0
- package/dist/types/blockchain/common.js +102 -0
- package/dist/types/blockchain/common.js.map +1 -0
- package/dist/types/blockchain/index.cjs +18 -0
- package/dist/types/blockchain/index.d.ts +4 -0
- package/dist/types/blockchain/index.d.ts.map +1 -0
- package/dist/types/blockchain/index.js +18 -0
- package/dist/types/blockchain/index.js.map +1 -0
- package/dist/types/blockchain/validation.cjs +88 -0
- package/dist/types/blockchain/validation.d.ts +9 -0
- package/dist/types/blockchain/validation.d.ts.map +1 -0
- package/dist/types/blockchain/validation.js +88 -0
- package/dist/types/blockchain/validation.js.map +1 -0
- package/dist/types/business/enums.cjs +314 -0
- package/dist/types/business/enums.d.ts +227 -0
- package/dist/types/business/enums.d.ts.map +1 -0
- package/dist/types/business/enums.js +314 -0
- package/dist/types/business/enums.js.map +1 -0
- package/dist/types/business/index.cjs +33 -0
- package/dist/types/business/index.d.ts +5 -0
- package/dist/types/business/index.d.ts.map +1 -0
- package/dist/types/business/index.js +33 -0
- package/dist/types/business/index.js.map +1 -0
- package/dist/types/business/wallet-status.cjs +38 -0
- package/dist/types/business/wallet-status.d.ts +32 -0
- package/dist/types/business/wallet-status.d.ts.map +1 -0
- package/dist/types/business/wallet-status.js +38 -0
- package/dist/types/business/wallet-status.js.map +1 -0
- package/dist/types/common.cjs +6 -0
- package/dist/types/common.d.ts +142 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +6 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/config/app-config.cjs +6 -0
- package/dist/types/config/app-config.d.ts +67 -0
- package/dist/types/config/app-config.d.ts.map +1 -0
- package/dist/types/config/app-config.js +6 -0
- package/dist/types/config/app-config.js.map +1 -0
- package/dist/types/config/environment.cjs +24 -0
- package/dist/types/config/environment.d.ts +68 -0
- package/dist/types/config/environment.d.ts.map +1 -0
- package/dist/types/config/environment.js +24 -0
- package/dist/types/config/environment.js.map +1 -0
- package/dist/types/config/index.cjs +6 -0
- package/dist/types/config/index.d.ts +4 -0
- package/dist/types/config/index.d.ts.map +1 -0
- package/dist/types/config/index.js +6 -0
- package/dist/types/config/index.js.map +1 -0
- package/dist/types/index.cjs +35 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +35 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/indexer/index.cjs +19 -0
- package/dist/types/indexer/index.d.ts +3 -0
- package/dist/types/indexer/index.d.ts.map +1 -0
- package/dist/types/indexer/index.js +19 -0
- package/dist/types/indexer/index.js.map +1 -0
- package/dist/types/indexer/indexer-guards.cjs +145 -0
- package/dist/types/indexer/indexer-guards.d.ts +26 -0
- package/dist/types/indexer/indexer-guards.d.ts.map +1 -0
- package/dist/types/indexer/indexer-guards.js +145 -0
- package/dist/types/indexer/indexer-guards.js.map +1 -0
- package/dist/types/indexer/indexer-responses.cjs +8 -0
- package/dist/types/indexer/indexer-responses.d.ts +136 -0
- package/dist/types/indexer/indexer-responses.d.ts.map +1 -0
- package/dist/types/indexer/indexer-responses.js +8 -0
- package/dist/types/indexer/indexer-responses.js.map +1 -0
- package/dist/types/infrastructure/analytics.cjs +212 -0
- package/dist/types/infrastructure/analytics.d.ts +449 -0
- package/dist/types/infrastructure/analytics.d.ts.map +1 -0
- package/dist/types/infrastructure/analytics.js +212 -0
- package/dist/types/infrastructure/analytics.js.map +1 -0
- package/dist/types/infrastructure/api.cjs +17 -0
- package/dist/types/infrastructure/api.d.ts +152 -0
- package/dist/types/infrastructure/api.d.ts.map +1 -0
- package/dist/types/infrastructure/api.js +17 -0
- package/dist/types/infrastructure/api.js.map +1 -0
- package/dist/types/infrastructure/index.cjs +14 -0
- package/dist/types/infrastructure/index.d.ts +9 -0
- package/dist/types/infrastructure/index.d.ts.map +1 -0
- package/dist/types/infrastructure/index.js +14 -0
- package/dist/types/infrastructure/index.js.map +1 -0
- package/dist/types/infrastructure/navigation.cjs +3 -0
- package/dist/types/infrastructure/navigation.d.ts +56 -0
- package/dist/types/infrastructure/navigation.d.ts.map +1 -0
- package/dist/types/infrastructure/navigation.js +3 -0
- package/dist/types/infrastructure/navigation.js.map +1 -0
- package/dist/types/infrastructure/network.cjs +18 -0
- package/dist/types/infrastructure/network.d.ts +48 -0
- package/dist/types/infrastructure/network.d.ts.map +1 -0
- package/dist/types/infrastructure/network.js +18 -0
- package/dist/types/infrastructure/network.js.map +1 -0
- package/dist/types/infrastructure/wallet.cjs +37 -0
- package/dist/types/infrastructure/wallet.d.ts +33 -0
- package/dist/types/infrastructure/wallet.d.ts.map +1 -0
- package/dist/types/infrastructure/wallet.js +37 -0
- package/dist/types/infrastructure/wallet.js.map +1 -0
- package/dist/types/kyc/index.cjs +19 -0
- package/dist/types/kyc/index.d.ts +2 -0
- package/dist/types/kyc/index.d.ts.map +1 -0
- package/dist/types/kyc/index.js +19 -0
- package/dist/types/kyc/index.js.map +1 -0
- package/dist/types/kyc/kyc-types.cjs +12 -0
- package/dist/types/kyc/kyc-types.d.ts +260 -0
- package/dist/types/kyc/kyc-types.d.ts.map +1 -0
- package/dist/types/kyc/kyc-types.js +12 -0
- package/dist/types/kyc/kyc-types.js.map +1 -0
- package/dist/types/mailer/index.cjs +19 -0
- package/dist/types/mailer/index.d.ts +2 -0
- package/dist/types/mailer/index.d.ts.map +1 -0
- package/dist/types/mailer/index.js +19 -0
- package/dist/types/mailer/index.js.map +1 -0
- package/dist/types/mailer/mail-types.cjs +38 -0
- package/dist/types/mailer/mail-types.d.ts +296 -0
- package/dist/types/mailer/mail-types.d.ts.map +1 -0
- package/dist/types/mailer/mail-types.js +38 -0
- package/dist/types/mailer/mail-types.js.map +1 -0
- package/dist/types/wildduck/index.cjs +19 -0
- package/dist/types/wildduck/index.d.ts +2 -0
- package/dist/types/wildduck/index.d.ts.map +1 -0
- package/dist/types/wildduck/index.js +19 -0
- package/dist/types/wildduck/index.js.map +1 -0
- package/dist/types/wildduck/wildduck-types.cjs +48 -0
- package/dist/types/wildduck/wildduck-types.d.ts +1239 -0
- package/dist/types/wildduck/wildduck-types.d.ts.map +1 -0
- package/dist/types/wildduck/wildduck-types.js +48 -0
- package/dist/types/wildduck/wildduck-types.js.map +1 -0
- package/dist/utils/async-helpers.cjs +130 -0
- package/dist/utils/async-helpers.d.ts +35 -0
- package/dist/utils/async-helpers.d.ts.map +1 -0
- package/dist/utils/async-helpers.js +130 -0
- package/dist/utils/async-helpers.js.map +1 -0
- package/dist/utils/auth/auth.cjs +96 -0
- package/dist/utils/auth/auth.d.ts +40 -0
- package/dist/utils/auth/auth.d.ts.map +1 -0
- package/dist/utils/auth/auth.js +96 -0
- package/dist/utils/auth/auth.js.map +1 -0
- package/dist/utils/auth/index.cjs +14 -0
- package/dist/utils/auth/index.d.ts +2 -0
- package/dist/utils/auth/index.d.ts.map +1 -0
- package/dist/utils/auth/index.js +14 -0
- package/dist/utils/auth/index.js.map +1 -0
- package/dist/utils/blockchain/address.cjs +231 -0
- package/dist/utils/blockchain/address.d.ts +65 -0
- package/dist/utils/blockchain/address.d.ts.map +1 -0
- package/dist/utils/blockchain/address.js +231 -0
- package/dist/utils/blockchain/address.js.map +1 -0
- package/dist/utils/blockchain/event-helpers.cjs +143 -0
- package/dist/utils/blockchain/event-helpers.d.ts +87 -0
- package/dist/utils/blockchain/event-helpers.d.ts.map +1 -0
- package/dist/utils/blockchain/event-helpers.js +143 -0
- package/dist/utils/blockchain/event-helpers.js.map +1 -0
- package/dist/utils/blockchain/index.cjs +30 -0
- package/dist/utils/blockchain/index.d.ts +8 -0
- package/dist/utils/blockchain/index.d.ts.map +1 -0
- package/dist/utils/blockchain/index.js +30 -0
- package/dist/utils/blockchain/index.js.map +1 -0
- package/dist/utils/blockchain/rpc-helpers.cjs +865 -0
- package/dist/utils/blockchain/rpc-helpers.d.ts +251 -0
- package/dist/utils/blockchain/rpc-helpers.d.ts.map +1 -0
- package/dist/utils/blockchain/rpc-helpers.js +865 -0
- package/dist/utils/blockchain/rpc-helpers.js.map +1 -0
- package/dist/utils/constants/application.cjs +158 -0
- package/dist/utils/constants/application.d.ts +119 -0
- package/dist/utils/constants/application.d.ts.map +1 -0
- package/dist/utils/constants/application.js +158 -0
- package/dist/utils/constants/application.js.map +1 -0
- package/dist/utils/constants/index.cjs +30 -0
- package/dist/utils/constants/index.d.ts +7 -0
- package/dist/utils/constants/index.d.ts.map +1 -0
- package/dist/utils/constants/index.js +30 -0
- package/dist/utils/constants/index.js.map +1 -0
- package/dist/utils/constants/status-values.cjs +14 -0
- package/dist/utils/constants/status-values.d.ts +12 -0
- package/dist/utils/constants/status-values.d.ts.map +1 -0
- package/dist/utils/constants/status-values.js +14 -0
- package/dist/utils/constants/status-values.js.map +1 -0
- package/dist/utils/formatting/currency.cjs +36 -0
- package/dist/utils/formatting/currency.d.ts +26 -0
- package/dist/utils/formatting/currency.d.ts.map +1 -0
- package/dist/utils/formatting/currency.js +36 -0
- package/dist/utils/formatting/currency.js.map +1 -0
- package/dist/utils/formatting/date.cjs +138 -0
- package/dist/utils/formatting/date.d.ts +33 -0
- package/dist/utils/formatting/date.d.ts.map +1 -0
- package/dist/utils/formatting/date.js +138 -0
- package/dist/utils/formatting/date.js.map +1 -0
- package/dist/utils/formatting/index.cjs +37 -0
- package/dist/utils/formatting/index.d.ts +4 -0
- package/dist/utils/formatting/index.d.ts.map +1 -0
- package/dist/utils/formatting/index.js +37 -0
- package/dist/utils/formatting/index.js.map +1 -0
- package/dist/utils/formatting/string.cjs +193 -0
- package/dist/utils/formatting/string.d.ts +69 -0
- package/dist/utils/formatting/string.d.ts.map +1 -0
- package/dist/utils/formatting/string.js +193 -0
- package/dist/utils/formatting/string.js.map +1 -0
- package/dist/utils/index.cjs +28 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +28 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logging/index.cjs +16 -0
- package/dist/utils/logging/index.d.ts +5 -0
- package/dist/utils/logging/index.d.ts.map +1 -0
- package/dist/utils/logging/index.js +16 -0
- package/dist/utils/logging/index.js.map +1 -0
- package/dist/utils/logging/logger.cjs +92 -0
- package/dist/utils/logging/logger.d.ts +70 -0
- package/dist/utils/logging/logger.d.ts.map +1 -0
- package/dist/utils/logging/logger.js +92 -0
- package/dist/utils/logging/logger.js.map +1 -0
- package/dist/utils/url/index.cjs +13 -0
- package/dist/utils/url/index.d.ts +5 -0
- package/dist/utils/url/index.d.ts.map +1 -0
- package/dist/utils/url/index.js +13 -0
- package/dist/utils/url/index.js.map +1 -0
- package/dist/utils/url/url-params.cjs +128 -0
- package/dist/utils/url/url-params.d.ts +36 -0
- package/dist/utils/url/url-params.d.ts.map +1 -0
- package/dist/utils/url/url-params.js +128 -0
- package/dist/utils/url/url-params.js.map +1 -0
- package/dist/utils/validation/index.cjs +25 -0
- package/dist/utils/validation/index.d.ts +5 -0
- package/dist/utils/validation/index.d.ts.map +1 -0
- package/dist/utils/validation/index.js +25 -0
- package/dist/utils/validation/index.js.map +1 -0
- package/dist/utils/validation/type-validation.cjs +167 -0
- package/dist/utils/validation/type-validation.d.ts +68 -0
- package/dist/utils/validation/type-validation.d.ts.map +1 -0
- package/dist/utils/validation/type-validation.js +167 -0
- package/dist/utils/validation/type-validation.js.map +1 -0
- package/dist/utils/validation/web3-username-validator.cjs +132 -0
- package/dist/utils/validation/web3-username-validator.d.ts +43 -0
- package/dist/utils/validation/web3-username-validator.d.ts.map +1 -0
- package/dist/utils/validation/web3-username-validator.js +132 -0
- package/dist/utils/validation/web3-username-validator.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Wallet status management types
|
|
4
|
+
* Defines the structure for tracking wallet connection and verification state
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getWalletConnectionState = exports.isWalletVerified = exports.isWalletConnected = void 0;
|
|
8
|
+
const enums_1 = require("./enums");
|
|
9
|
+
/**
|
|
10
|
+
* Type guard to check if wallet status is defined
|
|
11
|
+
*/
|
|
12
|
+
const isWalletConnected = (status) => {
|
|
13
|
+
return (status !== undefined && status !== null && Boolean(status.walletAddress));
|
|
14
|
+
};
|
|
15
|
+
exports.isWalletConnected = isWalletConnected;
|
|
16
|
+
/**
|
|
17
|
+
* Type guard to check if wallet is verified (has message and signature)
|
|
18
|
+
*/
|
|
19
|
+
const isWalletVerified = (status) => {
|
|
20
|
+
return ((0, exports.isWalletConnected)(status) &&
|
|
21
|
+
Boolean(status.message) &&
|
|
22
|
+
Boolean(status.signature));
|
|
23
|
+
};
|
|
24
|
+
exports.isWalletVerified = isWalletVerified;
|
|
25
|
+
/**
|
|
26
|
+
* Get current wallet connection state
|
|
27
|
+
*/
|
|
28
|
+
const getWalletConnectionState = (status) => {
|
|
29
|
+
if (!(0, exports.isWalletConnected)(status)) {
|
|
30
|
+
return enums_1.ConnectionState.DISCONNECTED;
|
|
31
|
+
}
|
|
32
|
+
if ((0, exports.isWalletVerified)(status)) {
|
|
33
|
+
return enums_1.ConnectionState.VERIFIED;
|
|
34
|
+
}
|
|
35
|
+
return enums_1.ConnectionState.CONNECTED;
|
|
36
|
+
};
|
|
37
|
+
exports.getWalletConnectionState = getWalletConnectionState;
|
|
38
|
+
//# sourceMappingURL=wallet-status.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet status management types
|
|
3
|
+
* Defines the structure for tracking wallet connection and verification state
|
|
4
|
+
*/
|
|
5
|
+
import { Optional } from '../common';
|
|
6
|
+
import { ConnectionState, ChainType } from './enums';
|
|
7
|
+
/**
|
|
8
|
+
* Wallet status interface representing the current state of wallet connection
|
|
9
|
+
*/
|
|
10
|
+
export interface WalletStatus {
|
|
11
|
+
/** The connected wallet address */
|
|
12
|
+
walletAddress: string;
|
|
13
|
+
/** The blockchain type (EVM or Solana) */
|
|
14
|
+
chainType: ChainType;
|
|
15
|
+
/** Optional verification message (present when wallet is verified) */
|
|
16
|
+
message?: Optional<string>;
|
|
17
|
+
/** Optional signature (present when wallet is verified) */
|
|
18
|
+
signature?: Optional<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Type guard to check if wallet status is defined
|
|
22
|
+
*/
|
|
23
|
+
export declare const isWalletConnected: (status?: Optional<WalletStatus>) => status is WalletStatus;
|
|
24
|
+
/**
|
|
25
|
+
* Type guard to check if wallet is verified (has message and signature)
|
|
26
|
+
*/
|
|
27
|
+
export declare const isWalletVerified: (status?: Optional<WalletStatus>) => status is Required<WalletStatus>;
|
|
28
|
+
/**
|
|
29
|
+
* Get current wallet connection state
|
|
30
|
+
*/
|
|
31
|
+
export declare const getWalletConnectionState: (status?: Optional<WalletStatus>) => ConnectionState;
|
|
32
|
+
//# sourceMappingURL=wallet-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-status.d.ts","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,sEAAsE;IACtE,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3B,2DAA2D;IAC3D,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,MAAM,IAAI,YAIZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,MAAM,IAAI,QAAQ,CAAC,YAAY,CAMjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,eAUF,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Wallet status management types
|
|
4
|
+
* Defines the structure for tracking wallet connection and verification state
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getWalletConnectionState = exports.isWalletVerified = exports.isWalletConnected = void 0;
|
|
8
|
+
const enums_1 = require("./enums");
|
|
9
|
+
/**
|
|
10
|
+
* Type guard to check if wallet status is defined
|
|
11
|
+
*/
|
|
12
|
+
const isWalletConnected = (status) => {
|
|
13
|
+
return (status !== undefined && status !== null && Boolean(status.walletAddress));
|
|
14
|
+
};
|
|
15
|
+
exports.isWalletConnected = isWalletConnected;
|
|
16
|
+
/**
|
|
17
|
+
* Type guard to check if wallet is verified (has message and signature)
|
|
18
|
+
*/
|
|
19
|
+
const isWalletVerified = (status) => {
|
|
20
|
+
return ((0, exports.isWalletConnected)(status) &&
|
|
21
|
+
Boolean(status.message) &&
|
|
22
|
+
Boolean(status.signature));
|
|
23
|
+
};
|
|
24
|
+
exports.isWalletVerified = isWalletVerified;
|
|
25
|
+
/**
|
|
26
|
+
* Get current wallet connection state
|
|
27
|
+
*/
|
|
28
|
+
const getWalletConnectionState = (status) => {
|
|
29
|
+
if (!(0, exports.isWalletConnected)(status)) {
|
|
30
|
+
return enums_1.ConnectionState.DISCONNECTED;
|
|
31
|
+
}
|
|
32
|
+
if ((0, exports.isWalletVerified)(status)) {
|
|
33
|
+
return enums_1.ConnectionState.VERIFIED;
|
|
34
|
+
}
|
|
35
|
+
return enums_1.ConnectionState.CONNECTED;
|
|
36
|
+
};
|
|
37
|
+
exports.getWalletConnectionState = getWalletConnectionState;
|
|
38
|
+
//# sourceMappingURL=wallet-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-status.js","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,mCAAqD;AAgBrD;;GAEG;AACI,MAAM,iBAAiB,GAAG,CAC/B,MAA+B,EACP,EAAE;IAC1B,OAAO,CACL,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CACzE,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B;AAEF;;GAEG;AACI,MAAM,gBAAgB,GAAG,CAC9B,MAA+B,EACG,EAAE;IACpC,OAAO,CACL,IAAA,yBAAiB,EAAC,MAAM,CAAC;QACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAC1B,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B;AAEF;;GAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,MAA+B,EACd,EAAE;IACnB,IAAI,CAAC,IAAA,yBAAiB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,OAAO,uBAAe,CAAC,YAAY,CAAC;IACtC,CAAC;IAED,IAAI,IAAA,wBAAgB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,uBAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,OAAO,uBAAe,CAAC,SAAS,CAAC;AACnC,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common utility types used throughout the application
|
|
3
|
+
*/
|
|
4
|
+
import { ChainType } from './business/enums';
|
|
5
|
+
/**
|
|
6
|
+
* Utility type for values that can be T, undefined, or null
|
|
7
|
+
* Provides a more semantic way to represent optional/nullable values
|
|
8
|
+
*/
|
|
9
|
+
export type Optional<T> = T | undefined | null;
|
|
10
|
+
/**
|
|
11
|
+
* Base wallet data structure containing address and chain type
|
|
12
|
+
* Used across all wallet-related interfaces to ensure consistency
|
|
13
|
+
*/
|
|
14
|
+
export interface WalletData {
|
|
15
|
+
/** Wallet address (EVM 0x format or Solana Base58) */
|
|
16
|
+
walletAddress: string;
|
|
17
|
+
/** Chain type classification (EVM or Solana) */
|
|
18
|
+
chainType: ChainType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Base folder data structure containing common folder properties
|
|
22
|
+
* Used across all folder/mailbox-related interfaces to ensure consistency
|
|
23
|
+
*/
|
|
24
|
+
export interface FolderBase {
|
|
25
|
+
/** Folder name */
|
|
26
|
+
name: string;
|
|
27
|
+
/** Total message count */
|
|
28
|
+
count: number;
|
|
29
|
+
/** Unread message count */
|
|
30
|
+
unreadCount: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Base message structure containing core message fields
|
|
34
|
+
* Used across all message/email-related interfaces to ensure consistency
|
|
35
|
+
*/
|
|
36
|
+
export interface MessageBase {
|
|
37
|
+
/** Message sender */
|
|
38
|
+
from: string;
|
|
39
|
+
/** Message recipient */
|
|
40
|
+
to: string;
|
|
41
|
+
/** Message subject line */
|
|
42
|
+
subject: string;
|
|
43
|
+
/** Message body content */
|
|
44
|
+
body: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Base response structure for all API operations
|
|
48
|
+
* Unified response interface for consistency across the entire application
|
|
49
|
+
*/
|
|
50
|
+
export interface BaseResponse<T = unknown> {
|
|
51
|
+
/** Operation success status */
|
|
52
|
+
success: boolean;
|
|
53
|
+
/** Response data */
|
|
54
|
+
data?: Optional<T>;
|
|
55
|
+
/** Error message if operation failed */
|
|
56
|
+
error?: Optional<string>;
|
|
57
|
+
/** Response timestamp */
|
|
58
|
+
timestamp: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Unified pagination options for querying
|
|
62
|
+
*/
|
|
63
|
+
export interface PaginationOptions {
|
|
64
|
+
/** Number of items per page */
|
|
65
|
+
limit: number;
|
|
66
|
+
/** Offset from start (for offset-based pagination) */
|
|
67
|
+
offset?: Optional<number>;
|
|
68
|
+
/** Cursor for cursor-based pagination */
|
|
69
|
+
cursor?: Optional<string>;
|
|
70
|
+
/** Sort order */
|
|
71
|
+
sortOrder?: Optional<'asc' | 'desc'>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Unified pagination metadata for responses
|
|
75
|
+
*/
|
|
76
|
+
export interface PaginationInfo {
|
|
77
|
+
/** Whether there are more items after current page */
|
|
78
|
+
hasNextPage: boolean;
|
|
79
|
+
/** Whether there are items before current page */
|
|
80
|
+
hasPreviousPage?: Optional<boolean>;
|
|
81
|
+
/** Cursor to fetch next page */
|
|
82
|
+
nextCursor?: Optional<string>;
|
|
83
|
+
/** Cursor to fetch previous page */
|
|
84
|
+
previousCursor?: Optional<string>;
|
|
85
|
+
/** Total count of items (if available) */
|
|
86
|
+
totalCount?: Optional<number>;
|
|
87
|
+
/** Current page size */
|
|
88
|
+
pageSize: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Paginated response structure
|
|
92
|
+
*/
|
|
93
|
+
export interface PaginatedResponse<T> extends BaseResponse<T[]> {
|
|
94
|
+
/** Pagination metadata */
|
|
95
|
+
pagination: PaginationInfo;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Unified error structure for all operations
|
|
99
|
+
*/
|
|
100
|
+
export interface UnifiedError {
|
|
101
|
+
/** Error type/code */
|
|
102
|
+
type: 'ValidationError' | 'InsufficientFunds' | 'Unauthorized' | 'ContractError' | 'NetworkError' | 'OperationError';
|
|
103
|
+
/** Error code (optional, for more specific categorization) */
|
|
104
|
+
code?: Optional<string>;
|
|
105
|
+
/** Human-readable error message */
|
|
106
|
+
message: string;
|
|
107
|
+
/** Additional error details */
|
|
108
|
+
details?: Optional<{
|
|
109
|
+
field?: Optional<string>;
|
|
110
|
+
expectedValue?: Optional<unknown>;
|
|
111
|
+
actualValue?: Optional<unknown>;
|
|
112
|
+
txHash?: Optional<string>;
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
}>;
|
|
115
|
+
/** Suggested user action */
|
|
116
|
+
suggestedAction?: Optional<string>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Result type for operations that can succeed or fail
|
|
120
|
+
* @template T Success result type
|
|
121
|
+
* @template E Error type (defaults to UnifiedError)
|
|
122
|
+
*/
|
|
123
|
+
export type Result<T, E = UnifiedError> = {
|
|
124
|
+
success: true;
|
|
125
|
+
data: T;
|
|
126
|
+
} | {
|
|
127
|
+
success: false;
|
|
128
|
+
error: E;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Unified validation result pattern
|
|
132
|
+
* @template T The validated data type
|
|
133
|
+
*/
|
|
134
|
+
export type ValidationResult<T = unknown> = {
|
|
135
|
+
isValid: true;
|
|
136
|
+
data: T;
|
|
137
|
+
} | {
|
|
138
|
+
isValid: false;
|
|
139
|
+
error: string;
|
|
140
|
+
data?: Optional<never>;
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application configuration types
|
|
3
|
+
*/
|
|
4
|
+
import { Optional } from '../common';
|
|
5
|
+
/**
|
|
6
|
+
* Firebase service configuration interface.
|
|
7
|
+
*
|
|
8
|
+
* Contains all necessary configuration for Firebase services including
|
|
9
|
+
* authentication, analytics, messaging, and web push notifications.
|
|
10
|
+
*/
|
|
11
|
+
export interface FirebaseConfig {
|
|
12
|
+
/** Firebase project API key */
|
|
13
|
+
apiKey: string;
|
|
14
|
+
/** Firebase authentication domain */
|
|
15
|
+
authDomain: string;
|
|
16
|
+
/** Firebase project ID */
|
|
17
|
+
projectId: string;
|
|
18
|
+
/** Firebase storage bucket URL */
|
|
19
|
+
storageBucket: string;
|
|
20
|
+
/** Firebase Cloud Messaging sender ID */
|
|
21
|
+
messagingSenderId: string;
|
|
22
|
+
/** Firebase application ID */
|
|
23
|
+
appId: string;
|
|
24
|
+
/** Google Analytics measurement ID (optional) */
|
|
25
|
+
measurementId?: Optional<string>;
|
|
26
|
+
/** VAPID key for web push notifications (optional) */
|
|
27
|
+
vapidKey?: Optional<string>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Main application configuration interface.
|
|
31
|
+
*
|
|
32
|
+
* Centralizes all application configuration including API endpoints,
|
|
33
|
+
* service keys, and feature flags. Designed for email/communication
|
|
34
|
+
* applications with blockchain wallet integration.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const config: AppConfig = {
|
|
39
|
+
* wildDuckBackendUrl: 'https://api.myemailapp.com',
|
|
40
|
+
* indexerBackendUrl: 'https://indexer.myapp.com',
|
|
41
|
+
* // ... other required configuration
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface AppConfig {
|
|
46
|
+
/** Backend API URL for Wildduck email server */
|
|
47
|
+
wildDuckBackendUrl: string;
|
|
48
|
+
/** Backend URL for blockchain/crypto indexer service */
|
|
49
|
+
indexerBackendUrl: string;
|
|
50
|
+
/** API token for Wildduck email server authentication */
|
|
51
|
+
wildDuckApiToken: string;
|
|
52
|
+
/** RevenueCat API key for subscription management */
|
|
53
|
+
revenueCatApiKey: string;
|
|
54
|
+
/** WalletConnect project ID for crypto wallet integration */
|
|
55
|
+
walletConnectProjectId: string;
|
|
56
|
+
/** Privy application ID for authentication service */
|
|
57
|
+
privyAppId: string;
|
|
58
|
+
/** Complete Firebase service configuration */
|
|
59
|
+
firebase: FirebaseConfig;
|
|
60
|
+
/** Whether to use Cloudflare Worker for proxy/caching */
|
|
61
|
+
useCloudflareWorker: boolean;
|
|
62
|
+
/** Cloudflare Worker URL when enabled */
|
|
63
|
+
cloudflareWorkerUrl: string;
|
|
64
|
+
/** Enable mock/fallback services for development/testing */
|
|
65
|
+
useMockFallback: boolean;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=app-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,iBAAiB,EAAE,MAAM,CAAC;IAE1B,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IAEnB,8CAA8C;IAC9C,QAAQ,EAAE,cAAc,CAAC;IAEzB,yDAAyD;IACzD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,4DAA4D;IAC5D,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment configuration types for cross-platform applications
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StorageType = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Storage type enumeration for cross-platform storage abstraction.
|
|
9
|
+
*
|
|
10
|
+
* Provides runtime-accessible values for different storage mechanisms
|
|
11
|
+
* across web browsers, React Native, and Node.js environments.
|
|
12
|
+
*/
|
|
13
|
+
var StorageType;
|
|
14
|
+
(function (StorageType) {
|
|
15
|
+
/** Web browser localStorage for persistent client-side storage */
|
|
16
|
+
StorageType["LOCAL_STORAGE"] = "localStorage";
|
|
17
|
+
/** Web browser sessionStorage for session-based storage */
|
|
18
|
+
StorageType["SESSION_STORAGE"] = "sessionStorage";
|
|
19
|
+
/** React Native AsyncStorage for mobile persistent storage */
|
|
20
|
+
StorageType["ASYNC_STORAGE"] = "asyncStorage";
|
|
21
|
+
/** In-memory storage for testing or temporary data */
|
|
22
|
+
StorageType["MEMORY"] = "memory";
|
|
23
|
+
})(StorageType || (exports.StorageType = StorageType = {}));
|
|
24
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment configuration types for cross-platform applications
|
|
3
|
+
*/
|
|
4
|
+
import { Optional } from '../common';
|
|
5
|
+
/**
|
|
6
|
+
* Environment variables interface with typed NODE_ENV and flexible additional properties.
|
|
7
|
+
*/
|
|
8
|
+
export interface EnvironmentVariables {
|
|
9
|
+
/** Node.js environment setting with strict typing */
|
|
10
|
+
NODE_ENV?: Optional<'development' | 'production' | 'test'>;
|
|
11
|
+
/** Additional environment variables with flexible string keys */
|
|
12
|
+
[key: string]: Optional<string>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Environment provider interface for accessing and validating environment configuration.
|
|
16
|
+
*
|
|
17
|
+
* Provides type-safe access to environment variables with runtime environment detection.
|
|
18
|
+
* Essential for configuration management across different deployment environments.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* class NodeEnvProvider implements EnvProvider {
|
|
23
|
+
* get(key: string, defaultValue?: string) {
|
|
24
|
+
* return process.env[key] ?? defaultValue;
|
|
25
|
+
* }
|
|
26
|
+
* isDevelopment() { return this.get('NODE_ENV') === 'development'; }
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export interface EnvProvider {
|
|
31
|
+
/**
|
|
32
|
+
* Get environment variable with type-safe key access.
|
|
33
|
+
*/
|
|
34
|
+
get<K extends keyof EnvironmentVariables>(key: K, defaultValue?: string): EnvironmentVariables[K] | Optional<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Check if currently running in development environment.
|
|
37
|
+
*/
|
|
38
|
+
isDevelopment(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Check if currently running in production environment.
|
|
41
|
+
*/
|
|
42
|
+
isProduction(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Check if currently running in test environment.
|
|
45
|
+
*/
|
|
46
|
+
isTest(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Get all environment variables as a typed object.
|
|
49
|
+
*/
|
|
50
|
+
getAll(): EnvironmentVariables;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Storage type enumeration for cross-platform storage abstraction.
|
|
54
|
+
*
|
|
55
|
+
* Provides runtime-accessible values for different storage mechanisms
|
|
56
|
+
* across web browsers, React Native, and Node.js environments.
|
|
57
|
+
*/
|
|
58
|
+
export declare enum StorageType {
|
|
59
|
+
/** Web browser localStorage for persistent client-side storage */
|
|
60
|
+
LOCAL_STORAGE = "localStorage",
|
|
61
|
+
/** Web browser sessionStorage for session-based storage */
|
|
62
|
+
SESSION_STORAGE = "sessionStorage",
|
|
63
|
+
/** React Native AsyncStorage for mobile persistent storage */
|
|
64
|
+
ASYNC_STORAGE = "asyncStorage",
|
|
65
|
+
/** In-memory storage for testing or temporary data */
|
|
66
|
+
MEMORY = "memory"
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC;IAC3D,iEAAiE;IACjE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,oBAAoB,EACtC,GAAG,EAAE,CAAC,EACN,YAAY,CAAC,EAAE,MAAM,GACpB,oBAAoB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC;IAEzB;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAElB;;OAEG;IACH,MAAM,IAAI,oBAAoB,CAAC;CAChC;AAED;;;;;GAKG;AACH,oBAAY,WAAW;IACrB,kEAAkE;IAClE,aAAa,iBAAiB;IAC9B,2DAA2D;IAC3D,eAAe,mBAAmB;IAClC,8DAA8D;IAC9D,aAAa,iBAAiB;IAC9B,sDAAsD;IACtD,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment configuration types for cross-platform applications
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StorageType = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Storage type enumeration for cross-platform storage abstraction.
|
|
9
|
+
*
|
|
10
|
+
* Provides runtime-accessible values for different storage mechanisms
|
|
11
|
+
* across web browsers, React Native, and Node.js environments.
|
|
12
|
+
*/
|
|
13
|
+
var StorageType;
|
|
14
|
+
(function (StorageType) {
|
|
15
|
+
/** Web browser localStorage for persistent client-side storage */
|
|
16
|
+
StorageType["LOCAL_STORAGE"] = "localStorage";
|
|
17
|
+
/** Web browser sessionStorage for session-based storage */
|
|
18
|
+
StorageType["SESSION_STORAGE"] = "sessionStorage";
|
|
19
|
+
/** React Native AsyncStorage for mobile persistent storage */
|
|
20
|
+
StorageType["ASYNC_STORAGE"] = "asyncStorage";
|
|
21
|
+
/** In-memory storage for testing or temporary data */
|
|
22
|
+
StorageType["MEMORY"] = "memory";
|
|
23
|
+
})(StorageType || (exports.StorageType = StorageType = {}));
|
|
24
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA4DH;;;;;GAKG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kEAAkE;IAClE,6CAA8B,CAAA;IAC9B,2DAA2D;IAC3D,iDAAkC,CAAA;IAClC,8DAA8D;IAC9D,6CAA8B,CAAA;IAC9B,sDAAsD;IACtD,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageType = void 0;
|
|
4
|
+
var environment_1 = require("./environment");
|
|
5
|
+
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageType = void 0;
|
|
4
|
+
var environment_1 = require("./environment");
|
|
5
|
+
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":";;;AAGA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Common utility types
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
19
|
+
// Indexer API response types
|
|
20
|
+
__exportStar(require("./indexer"), exports);
|
|
21
|
+
// Business domain types
|
|
22
|
+
__exportStar(require("./business"), exports);
|
|
23
|
+
// Blockchain and crypto types
|
|
24
|
+
__exportStar(require("./blockchain"), exports);
|
|
25
|
+
// Application configuration
|
|
26
|
+
__exportStar(require("./config"), exports);
|
|
27
|
+
// Infrastructure types
|
|
28
|
+
__exportStar(require("./infrastructure"), exports);
|
|
29
|
+
// Mailer and mailbox contract response types
|
|
30
|
+
__exportStar(require("./mailer"), exports);
|
|
31
|
+
// KYC verification types
|
|
32
|
+
__exportStar(require("./kyc"), exports);
|
|
33
|
+
// WildDuck Mail Server API types
|
|
34
|
+
__exportStar(require("./wildduck"), exports);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './indexer';
|
|
3
|
+
export * from './business';
|
|
4
|
+
export * from './blockchain';
|
|
5
|
+
export * from './config';
|
|
6
|
+
export * from './infrastructure';
|
|
7
|
+
export * from './mailer';
|
|
8
|
+
export * from './kyc';
|
|
9
|
+
export * from './wildduck';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,UAAU,CAAC;AAGzB,cAAc,OAAO,CAAC;AAGtB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Common utility types
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
19
|
+
// Indexer API response types
|
|
20
|
+
__exportStar(require("./indexer"), exports);
|
|
21
|
+
// Business domain types
|
|
22
|
+
__exportStar(require("./business"), exports);
|
|
23
|
+
// Blockchain and crypto types
|
|
24
|
+
__exportStar(require("./blockchain"), exports);
|
|
25
|
+
// Application configuration
|
|
26
|
+
__exportStar(require("./config"), exports);
|
|
27
|
+
// Infrastructure types
|
|
28
|
+
__exportStar(require("./infrastructure"), exports);
|
|
29
|
+
// Mailer and mailbox contract response types
|
|
30
|
+
__exportStar(require("./mailer"), exports);
|
|
31
|
+
// KYC verification types
|
|
32
|
+
__exportStar(require("./kyc"), exports);
|
|
33
|
+
// WildDuck Mail Server API types
|
|
34
|
+
__exportStar(require("./wildduck"), exports);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,2CAAyB;AAEzB,6BAA6B;AAC7B,4CAA0B;AAE1B,wBAAwB;AACxB,6CAA2B;AAE3B,8BAA8B;AAC9B,+CAA6B;AAE7B,4BAA4B;AAC5B,2CAAyB;AAEzB,uBAAuB;AACvB,mDAAiC;AAEjC,6CAA6C;AAC7C,2CAAyB;AAEzB,yBAAyB;AACzB,wCAAsB;AAEtB,iCAAiC;AACjC,6CAA2B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isIndexerSuccessResponse = exports.isIndexerErrorResponse = exports.isSiteStatsResponse = exports.isLeaderboardResponse = exports.isPointsResponse = exports.isSignInMessageResponse = exports.isEntitlementResponse = exports.isNonceResponse = exports.isDelegatedFromResponse = exports.isDelegatedToResponse = exports.isRewardsResponse = exports.isEmailAccountsResponse = exports.isAddressValidationResponse = void 0;
|
|
4
|
+
// Export type guards
|
|
5
|
+
var indexer_guards_1 = require("./indexer-guards");
|
|
6
|
+
Object.defineProperty(exports, "isAddressValidationResponse", { enumerable: true, get: function () { return indexer_guards_1.isAddressValidationResponse; } });
|
|
7
|
+
Object.defineProperty(exports, "isEmailAccountsResponse", { enumerable: true, get: function () { return indexer_guards_1.isEmailAccountsResponse; } });
|
|
8
|
+
Object.defineProperty(exports, "isRewardsResponse", { enumerable: true, get: function () { return indexer_guards_1.isRewardsResponse; } });
|
|
9
|
+
Object.defineProperty(exports, "isDelegatedToResponse", { enumerable: true, get: function () { return indexer_guards_1.isDelegatedToResponse; } });
|
|
10
|
+
Object.defineProperty(exports, "isDelegatedFromResponse", { enumerable: true, get: function () { return indexer_guards_1.isDelegatedFromResponse; } });
|
|
11
|
+
Object.defineProperty(exports, "isNonceResponse", { enumerable: true, get: function () { return indexer_guards_1.isNonceResponse; } });
|
|
12
|
+
Object.defineProperty(exports, "isEntitlementResponse", { enumerable: true, get: function () { return indexer_guards_1.isEntitlementResponse; } });
|
|
13
|
+
Object.defineProperty(exports, "isSignInMessageResponse", { enumerable: true, get: function () { return indexer_guards_1.isSignInMessageResponse; } });
|
|
14
|
+
Object.defineProperty(exports, "isPointsResponse", { enumerable: true, get: function () { return indexer_guards_1.isPointsResponse; } });
|
|
15
|
+
Object.defineProperty(exports, "isLeaderboardResponse", { enumerable: true, get: function () { return indexer_guards_1.isLeaderboardResponse; } });
|
|
16
|
+
Object.defineProperty(exports, "isSiteStatsResponse", { enumerable: true, get: function () { return indexer_guards_1.isSiteStatsResponse; } });
|
|
17
|
+
Object.defineProperty(exports, "isIndexerErrorResponse", { enumerable: true, get: function () { return indexer_guards_1.isIndexerErrorResponse; } });
|
|
18
|
+
Object.defineProperty(exports, "isIndexerSuccessResponse", { enumerable: true, get: function () { return indexer_guards_1.isIndexerSuccessResponse; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|