@sudobility/types 1.9.52 → 1.9.54
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.cjs +10 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/types/blockchain/index.cjs +30 -0
- package/dist/types/blockchain/index.d.ts +14 -0
- package/dist/types/blockchain/index.d.ts.map +1 -0
- package/dist/types/blockchain/index.js +30 -0
- package/dist/types/blockchain/index.js.map +1 -0
- package/dist/types/blockchain/validation.cjs +57 -1
- package/dist/types/blockchain/validation.d.ts +57 -1
- package/dist/types/blockchain/validation.d.ts.map +1 -1
- package/dist/types/blockchain/validation.js +57 -1
- package/dist/types/blockchain/validation.js.map +1 -1
- package/dist/types/business/enums.cjs +110 -25
- package/dist/types/business/enums.d.ts +110 -2
- package/dist/types/business/enums.d.ts.map +1 -1
- package/dist/types/business/enums.js +110 -25
- package/dist/types/business/enums.js.map +1 -1
- package/dist/types/common.cjs +7 -1
- package/dist/types/common.d.ts +134 -20
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +7 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/subscription/entitlements.cjs +14 -0
- package/dist/types/subscription/entitlements.d.ts +11 -0
- package/dist/types/subscription/entitlements.d.ts.map +1 -0
- package/dist/types/subscription/entitlements.js +14 -0
- package/dist/types/subscription/entitlements.js.map +1 -0
- package/dist/types/subscription/period.cjs +29 -0
- package/dist/types/subscription/period.d.ts +18 -0
- package/dist/types/subscription/period.d.ts.map +1 -0
- package/dist/types/subscription/period.js +29 -0
- package/dist/types/subscription/period.js.map +1 -0
- package/dist/utils/async-helpers.cjs +124 -10
- package/dist/utils/async-helpers.d.ts +129 -8
- package/dist/utils/async-helpers.d.ts.map +1 -1
- package/dist/utils/async-helpers.js +124 -10
- package/dist/utils/async-helpers.js.map +1 -1
- package/dist/utils/formatting/currency.cjs +5 -2
- package/dist/utils/formatting/currency.d.ts +5 -1
- package/dist/utils/formatting/currency.d.ts.map +1 -1
- package/dist/utils/formatting/currency.js +5 -2
- package/dist/utils/formatting/currency.js.map +1 -1
- package/dist/utils/formatting/date.cjs +67 -8
- package/dist/utils/formatting/date.d.ts +67 -8
- package/dist/utils/formatting/date.d.ts.map +1 -1
- package/dist/utils/formatting/date.js +67 -8
- package/dist/utils/formatting/date.js.map +1 -1
- package/dist/utils/formatting/string.cjs +150 -17
- package/dist/utils/formatting/string.d.ts +150 -17
- package/dist/utils/formatting/string.d.ts.map +1 -1
- package/dist/utils/formatting/string.js +150 -17
- package/dist/utils/formatting/string.js.map +1 -1
- package/dist/utils/validation/type-validation.cjs +94 -11
- package/dist/utils/validation/type-validation.d.ts +94 -11
- package/dist/utils/validation/type-validation.d.ts.map +1 -1
- package/dist/utils/validation/type-validation.js +94 -11
- package/dist/utils/validation/type-validation.js.map +1 -1
- package/package.json +6 -1
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Platform-agnostic enums for discrete states
|
|
4
|
-
* These replace string literals throughout the application
|
|
3
|
+
* Platform-agnostic enums for discrete states.
|
|
4
|
+
* These replace string literals throughout the application.
|
|
5
|
+
*
|
|
6
|
+
* @since 1.0.0
|
|
5
7
|
*/
|
|
6
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
9
|
exports.Currency = exports.ErrorType = exports.FeatureFlag = exports.EmailValidationState = exports.PlatformType = exports.ConnectionState = exports.ConnectionType = exports.EmailSortCriteria = exports.SortOrder = exports.EmailAddressType = exports.InfoType = exports.NotificationType = exports.RequestStatus = exports.SubscriptionAction = exports.EmailAction = exports.MediumView = exports.MobileView = exports.EmailComposeType = exports.FontSize = exports.Theme = exports.Chain = exports.ChainType = exports.AuthStatus = void 0;
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Authentication status of a wallet connection.
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
9
14
|
var AuthStatus;
|
|
10
15
|
(function (AuthStatus) {
|
|
16
|
+
/** Wallet is connected but not yet verified via signature */
|
|
11
17
|
AuthStatus["CONNECTED"] = "connected";
|
|
18
|
+
/** Wallet is not connected */
|
|
12
19
|
AuthStatus["DISCONNECTED"] = "disconnected";
|
|
20
|
+
/** Wallet is connected and ownership is verified via signature */
|
|
13
21
|
AuthStatus["VERIFIED"] = "verified";
|
|
14
22
|
})(AuthStatus || (exports.AuthStatus = AuthStatus = {}));
|
|
15
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Blockchain family classification.
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
*/
|
|
16
27
|
var ChainType;
|
|
17
28
|
(function (ChainType) {
|
|
29
|
+
/** Ethereum Virtual Machine compatible chains */
|
|
18
30
|
ChainType["EVM"] = "evm";
|
|
31
|
+
/** Solana blockchain */
|
|
19
32
|
ChainType["SOLANA"] = "solana";
|
|
20
33
|
})(ChainType || (exports.ChainType = ChainType = {}));
|
|
21
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Supported blockchain networks across EVM and Solana ecosystems.
|
|
36
|
+
* Includes mainnets, testnets, and local development chains.
|
|
37
|
+
* @since 1.0.0
|
|
38
|
+
*/
|
|
22
39
|
var Chain;
|
|
23
40
|
(function (Chain) {
|
|
24
41
|
// Ethereum
|
|
@@ -110,21 +127,33 @@ var Chain;
|
|
|
110
127
|
Chain["EVM_LOCAL"] = "evm-local";
|
|
111
128
|
Chain["SOLANA_LOCAL"] = "solana-local";
|
|
112
129
|
})(Chain || (exports.Chain = Chain = {}));
|
|
113
|
-
|
|
130
|
+
/**
|
|
131
|
+
* UI theme preference.
|
|
132
|
+
* @since 1.0.0
|
|
133
|
+
*/
|
|
114
134
|
var Theme;
|
|
115
135
|
(function (Theme) {
|
|
136
|
+
/** Light color scheme */
|
|
116
137
|
Theme["LIGHT"] = "light";
|
|
138
|
+
/** Dark color scheme */
|
|
117
139
|
Theme["DARK"] = "dark";
|
|
140
|
+
/** Follow OS/system preference */
|
|
118
141
|
Theme["SYSTEM"] = "system";
|
|
119
142
|
})(Theme || (exports.Theme = Theme = {}));
|
|
120
|
-
|
|
143
|
+
/**
|
|
144
|
+
* UI font size preference.
|
|
145
|
+
* @since 1.2.0
|
|
146
|
+
*/
|
|
121
147
|
var FontSize;
|
|
122
148
|
(function (FontSize) {
|
|
123
149
|
FontSize["SMALL"] = "small";
|
|
124
150
|
FontSize["MEDIUM"] = "medium";
|
|
125
151
|
FontSize["LARGE"] = "large";
|
|
126
152
|
})(FontSize || (exports.FontSize = FontSize = {}));
|
|
127
|
-
|
|
153
|
+
/**
|
|
154
|
+
* Email composition mode.
|
|
155
|
+
* @since 1.0.0
|
|
156
|
+
*/
|
|
128
157
|
var EmailComposeType;
|
|
129
158
|
(function (EmailComposeType) {
|
|
130
159
|
EmailComposeType["NEW"] = "new";
|
|
@@ -132,7 +161,10 @@ var EmailComposeType;
|
|
|
132
161
|
EmailComposeType["REPLY_ALL"] = "replyAll";
|
|
133
162
|
EmailComposeType["FORWARD"] = "forward";
|
|
134
163
|
})(EmailComposeType || (exports.EmailComposeType = EmailComposeType = {}));
|
|
135
|
-
|
|
164
|
+
/**
|
|
165
|
+
* Mobile navigation view states.
|
|
166
|
+
* @since 1.0.0
|
|
167
|
+
*/
|
|
136
168
|
var MobileView;
|
|
137
169
|
(function (MobileView) {
|
|
138
170
|
MobileView["EMAIL_ADDRESSES"] = "emailAddresses";
|
|
@@ -140,13 +172,19 @@ var MobileView;
|
|
|
140
172
|
MobileView["EMAILS"] = "emails";
|
|
141
173
|
MobileView["EMAIL_BODY"] = "emailBody";
|
|
142
174
|
})(MobileView || (exports.MobileView = MobileView = {}));
|
|
143
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Medium-screen (tablet) navigation pane selection.
|
|
177
|
+
* @since 1.0.0
|
|
178
|
+
*/
|
|
144
179
|
var MediumView;
|
|
145
180
|
(function (MediumView) {
|
|
146
181
|
MediumView["LEFT"] = "left";
|
|
147
182
|
MediumView["RIGHT"] = "right";
|
|
148
183
|
})(MediumView || (exports.MediumView = MediumView = {}));
|
|
149
|
-
|
|
184
|
+
/**
|
|
185
|
+
* Actions that can be performed on an email message.
|
|
186
|
+
* @since 1.0.0
|
|
187
|
+
*/
|
|
150
188
|
var EmailAction;
|
|
151
189
|
(function (EmailAction) {
|
|
152
190
|
EmailAction["OPEN"] = "open";
|
|
@@ -158,7 +196,10 @@ var EmailAction;
|
|
|
158
196
|
EmailAction["MARK_READ"] = "mark_read";
|
|
159
197
|
EmailAction["MARK_UNREAD"] = "mark_unread";
|
|
160
198
|
})(EmailAction || (exports.EmailAction = EmailAction = {}));
|
|
161
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Subscription lifecycle actions.
|
|
201
|
+
* @since 1.3.0
|
|
202
|
+
*/
|
|
162
203
|
var SubscriptionAction;
|
|
163
204
|
(function (SubscriptionAction) {
|
|
164
205
|
SubscriptionAction["VIEW"] = "view";
|
|
@@ -166,15 +207,25 @@ var SubscriptionAction;
|
|
|
166
207
|
SubscriptionAction["CANCEL"] = "cancel";
|
|
167
208
|
SubscriptionAction["RESTORE"] = "restore";
|
|
168
209
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
169
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Network request lifecycle states.
|
|
212
|
+
* @since 1.0.0
|
|
213
|
+
*/
|
|
170
214
|
var RequestStatus;
|
|
171
215
|
(function (RequestStatus) {
|
|
216
|
+
/** No request in progress */
|
|
172
217
|
RequestStatus["IDLE"] = "idle";
|
|
218
|
+
/** Request is in flight */
|
|
173
219
|
RequestStatus["LOADING"] = "loading";
|
|
220
|
+
/** Request completed successfully */
|
|
174
221
|
RequestStatus["SUCCESS"] = "success";
|
|
222
|
+
/** Request failed */
|
|
175
223
|
RequestStatus["ERROR"] = "error";
|
|
176
224
|
})(RequestStatus || (exports.RequestStatus = RequestStatus = {}));
|
|
177
|
-
|
|
225
|
+
/**
|
|
226
|
+
* UI notification severity levels.
|
|
227
|
+
* @since 1.0.0
|
|
228
|
+
*/
|
|
178
229
|
var NotificationType;
|
|
179
230
|
(function (NotificationType) {
|
|
180
231
|
NotificationType["INFO"] = "info";
|
|
@@ -182,7 +233,10 @@ var NotificationType;
|
|
|
182
233
|
NotificationType["WARNING"] = "warning";
|
|
183
234
|
NotificationType["ERROR"] = "error";
|
|
184
235
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
185
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Info-level UI feedback types.
|
|
238
|
+
* @since 1.0.0
|
|
239
|
+
*/
|
|
186
240
|
var InfoType;
|
|
187
241
|
(function (InfoType) {
|
|
188
242
|
InfoType["INFO"] = "info";
|
|
@@ -190,7 +244,10 @@ var InfoType;
|
|
|
190
244
|
InfoType["WARNING"] = "warning";
|
|
191
245
|
InfoType["ERROR"] = "error";
|
|
192
246
|
})(InfoType || (exports.InfoType = InfoType = {}));
|
|
193
|
-
|
|
247
|
+
/**
|
|
248
|
+
* Email address resolution types.
|
|
249
|
+
* @since 1.0.0
|
|
250
|
+
*/
|
|
194
251
|
var EmailAddressType;
|
|
195
252
|
(function (EmailAddressType) {
|
|
196
253
|
EmailAddressType["DIRECT"] = "direct";
|
|
@@ -198,13 +255,19 @@ var EmailAddressType;
|
|
|
198
255
|
EmailAddressType["SNS"] = "sns";
|
|
199
256
|
EmailAddressType["CUSTOM"] = "custom";
|
|
200
257
|
})(EmailAddressType || (exports.EmailAddressType = EmailAddressType = {}));
|
|
201
|
-
|
|
258
|
+
/**
|
|
259
|
+
* Sort order direction.
|
|
260
|
+
* @since 1.0.0
|
|
261
|
+
*/
|
|
202
262
|
var SortOrder;
|
|
203
263
|
(function (SortOrder) {
|
|
204
264
|
SortOrder["ASC"] = "asc";
|
|
205
265
|
SortOrder["DESC"] = "desc";
|
|
206
266
|
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
207
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Fields by which emails can be sorted.
|
|
269
|
+
* @since 1.0.0
|
|
270
|
+
*/
|
|
208
271
|
var EmailSortCriteria;
|
|
209
272
|
(function (EmailSortCriteria) {
|
|
210
273
|
EmailSortCriteria["DATE"] = "date";
|
|
@@ -212,7 +275,10 @@ var EmailSortCriteria;
|
|
|
212
275
|
EmailSortCriteria["FROM"] = "from";
|
|
213
276
|
EmailSortCriteria["SIZE"] = "size";
|
|
214
277
|
})(EmailSortCriteria || (exports.EmailSortCriteria = EmailSortCriteria = {}));
|
|
215
|
-
|
|
278
|
+
/**
|
|
279
|
+
* Network connection type (WiFi, cellular, etc.).
|
|
280
|
+
* @since 1.1.0
|
|
281
|
+
*/
|
|
216
282
|
var ConnectionType;
|
|
217
283
|
(function (ConnectionType) {
|
|
218
284
|
ConnectionType["UNKNOWN"] = "unknown";
|
|
@@ -224,7 +290,11 @@ var ConnectionType;
|
|
|
224
290
|
ConnectionType["CELLULAR_5G"] = "5g";
|
|
225
291
|
ConnectionType["ETHERNET"] = "ethernet";
|
|
226
292
|
})(ConnectionType || (exports.ConnectionType = ConnectionType = {}));
|
|
227
|
-
|
|
293
|
+
/**
|
|
294
|
+
* Wallet/network connection lifecycle states.
|
|
295
|
+
* Consolidated from WalletConnectionState, NetworkStatus, and ConnectionState.
|
|
296
|
+
* @since 1.0.0
|
|
297
|
+
*/
|
|
228
298
|
var ConnectionState;
|
|
229
299
|
(function (ConnectionState) {
|
|
230
300
|
ConnectionState["UNKNOWN"] = "unknown";
|
|
@@ -236,14 +306,20 @@ var ConnectionState;
|
|
|
236
306
|
ConnectionState["LIMITED"] = "limited";
|
|
237
307
|
ConnectionState["ERROR"] = "error";
|
|
238
308
|
})(ConnectionState || (exports.ConnectionState = ConnectionState = {}));
|
|
239
|
-
|
|
309
|
+
/**
|
|
310
|
+
* Runtime platform identification.
|
|
311
|
+
* @since 1.0.0
|
|
312
|
+
*/
|
|
240
313
|
var PlatformType;
|
|
241
314
|
(function (PlatformType) {
|
|
242
315
|
PlatformType["WEB"] = "web";
|
|
243
316
|
PlatformType["REACT_NATIVE"] = "react_native";
|
|
244
317
|
PlatformType["DESKTOP"] = "desktop";
|
|
245
318
|
})(PlatformType || (exports.PlatformType = PlatformType = {}));
|
|
246
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Email address validation status.
|
|
321
|
+
* @since 1.0.0
|
|
322
|
+
*/
|
|
247
323
|
var EmailValidationState;
|
|
248
324
|
(function (EmailValidationState) {
|
|
249
325
|
EmailValidationState["VALID"] = "valid";
|
|
@@ -251,7 +327,10 @@ var EmailValidationState;
|
|
|
251
327
|
EmailValidationState["PENDING"] = "pending";
|
|
252
328
|
EmailValidationState["UNKNOWN"] = "unknown";
|
|
253
329
|
})(EmailValidationState || (exports.EmailValidationState = EmailValidationState = {}));
|
|
254
|
-
|
|
330
|
+
/**
|
|
331
|
+
* Feature flags for gating experimental or premium features.
|
|
332
|
+
* @since 1.2.0
|
|
333
|
+
*/
|
|
255
334
|
var FeatureFlag;
|
|
256
335
|
(function (FeatureFlag) {
|
|
257
336
|
FeatureFlag["AI_SEARCH"] = "ai_search";
|
|
@@ -261,7 +340,10 @@ var FeatureFlag;
|
|
|
261
340
|
FeatureFlag["NOTIFICATIONS"] = "notifications";
|
|
262
341
|
FeatureFlag["ANALYTICS"] = "analytics";
|
|
263
342
|
})(FeatureFlag || (exports.FeatureFlag = FeatureFlag = {}));
|
|
264
|
-
|
|
343
|
+
/**
|
|
344
|
+
* High-level error category classification.
|
|
345
|
+
* @since 1.0.0
|
|
346
|
+
*/
|
|
265
347
|
var ErrorType;
|
|
266
348
|
(function (ErrorType) {
|
|
267
349
|
ErrorType["NETWORK"] = "network";
|
|
@@ -270,7 +352,10 @@ var ErrorType;
|
|
|
270
352
|
ErrorType["PERMISSION"] = "permission";
|
|
271
353
|
ErrorType["UNKNOWN"] = "unknown";
|
|
272
354
|
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
273
|
-
|
|
355
|
+
/**
|
|
356
|
+
* Fiat currency codes for subscription pricing.
|
|
357
|
+
* @since 1.3.0
|
|
358
|
+
*/
|
|
274
359
|
var Currency;
|
|
275
360
|
(function (Currency) {
|
|
276
361
|
Currency["USD"] = "USD";
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Platform-agnostic enums for discrete states
|
|
3
|
-
* These replace string literals throughout the application
|
|
2
|
+
* Platform-agnostic enums for discrete states.
|
|
3
|
+
* These replace string literals throughout the application.
|
|
4
|
+
*
|
|
5
|
+
* @since 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Authentication status of a wallet connection.
|
|
9
|
+
* @since 1.0.0
|
|
4
10
|
*/
|
|
5
11
|
export declare enum AuthStatus {
|
|
12
|
+
/** Wallet is connected but not yet verified via signature */
|
|
6
13
|
CONNECTED = "connected",
|
|
14
|
+
/** Wallet is not connected */
|
|
7
15
|
DISCONNECTED = "disconnected",
|
|
16
|
+
/** Wallet is connected and ownership is verified via signature */
|
|
8
17
|
VERIFIED = "verified"
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Blockchain family classification.
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
*/
|
|
10
23
|
export declare enum ChainType {
|
|
24
|
+
/** Ethereum Virtual Machine compatible chains */
|
|
11
25
|
EVM = "evm",
|
|
26
|
+
/** Solana blockchain */
|
|
12
27
|
SOLANA = "solana"
|
|
13
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Supported blockchain networks across EVM and Solana ecosystems.
|
|
31
|
+
* Includes mainnets, testnets, and local development chains.
|
|
32
|
+
* @since 1.0.0
|
|
33
|
+
*/
|
|
14
34
|
export declare enum Chain {
|
|
15
35
|
ETH_MAINNET = "eth-mainnet",
|
|
16
36
|
ETH_SEPOLIA = "eth-sepolia",
|
|
@@ -71,32 +91,59 @@ export declare enum Chain {
|
|
|
71
91
|
EVM_LOCAL = "evm-local",
|
|
72
92
|
SOLANA_LOCAL = "solana-local"
|
|
73
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* UI theme preference.
|
|
96
|
+
* @since 1.0.0
|
|
97
|
+
*/
|
|
74
98
|
export declare enum Theme {
|
|
99
|
+
/** Light color scheme */
|
|
75
100
|
LIGHT = "light",
|
|
101
|
+
/** Dark color scheme */
|
|
76
102
|
DARK = "dark",
|
|
103
|
+
/** Follow OS/system preference */
|
|
77
104
|
SYSTEM = "system"
|
|
78
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* UI font size preference.
|
|
108
|
+
* @since 1.2.0
|
|
109
|
+
*/
|
|
79
110
|
export declare enum FontSize {
|
|
80
111
|
SMALL = "small",
|
|
81
112
|
MEDIUM = "medium",
|
|
82
113
|
LARGE = "large"
|
|
83
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Email composition mode.
|
|
117
|
+
* @since 1.0.0
|
|
118
|
+
*/
|
|
84
119
|
export declare enum EmailComposeType {
|
|
85
120
|
NEW = "new",
|
|
86
121
|
REPLY = "reply",
|
|
87
122
|
REPLY_ALL = "replyAll",
|
|
88
123
|
FORWARD = "forward"
|
|
89
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Mobile navigation view states.
|
|
127
|
+
* @since 1.0.0
|
|
128
|
+
*/
|
|
90
129
|
export declare enum MobileView {
|
|
91
130
|
EMAIL_ADDRESSES = "emailAddresses",
|
|
92
131
|
FOLDERS = "folders",
|
|
93
132
|
EMAILS = "emails",
|
|
94
133
|
EMAIL_BODY = "emailBody"
|
|
95
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Medium-screen (tablet) navigation pane selection.
|
|
137
|
+
* @since 1.0.0
|
|
138
|
+
*/
|
|
96
139
|
export declare enum MediumView {
|
|
97
140
|
LEFT = "left",
|
|
98
141
|
RIGHT = "right"
|
|
99
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Actions that can be performed on an email message.
|
|
145
|
+
* @since 1.0.0
|
|
146
|
+
*/
|
|
100
147
|
export declare enum EmailAction {
|
|
101
148
|
OPEN = "open",
|
|
102
149
|
REPLY = "reply",
|
|
@@ -107,46 +154,82 @@ export declare enum EmailAction {
|
|
|
107
154
|
MARK_READ = "mark_read",
|
|
108
155
|
MARK_UNREAD = "mark_unread"
|
|
109
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Subscription lifecycle actions.
|
|
159
|
+
* @since 1.3.0
|
|
160
|
+
*/
|
|
110
161
|
export declare enum SubscriptionAction {
|
|
111
162
|
VIEW = "view",
|
|
112
163
|
PURCHASE = "purchase",
|
|
113
164
|
CANCEL = "cancel",
|
|
114
165
|
RESTORE = "restore"
|
|
115
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Network request lifecycle states.
|
|
169
|
+
* @since 1.0.0
|
|
170
|
+
*/
|
|
116
171
|
export declare enum RequestStatus {
|
|
172
|
+
/** No request in progress */
|
|
117
173
|
IDLE = "idle",
|
|
174
|
+
/** Request is in flight */
|
|
118
175
|
LOADING = "loading",
|
|
176
|
+
/** Request completed successfully */
|
|
119
177
|
SUCCESS = "success",// STATUS_VALUES.SUCCESS
|
|
178
|
+
/** Request failed */
|
|
120
179
|
ERROR = "error"
|
|
121
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* UI notification severity levels.
|
|
183
|
+
* @since 1.0.0
|
|
184
|
+
*/
|
|
122
185
|
export declare enum NotificationType {
|
|
123
186
|
INFO = "info",
|
|
124
187
|
SUCCESS = "success",// STATUS_VALUES.SUCCESS
|
|
125
188
|
WARNING = "warning",
|
|
126
189
|
ERROR = "error"
|
|
127
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Info-level UI feedback types.
|
|
193
|
+
* @since 1.0.0
|
|
194
|
+
*/
|
|
128
195
|
export declare enum InfoType {
|
|
129
196
|
INFO = "info",
|
|
130
197
|
SUCCESS = "success",
|
|
131
198
|
WARNING = "warning",
|
|
132
199
|
ERROR = "error"
|
|
133
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Email address resolution types.
|
|
203
|
+
* @since 1.0.0
|
|
204
|
+
*/
|
|
134
205
|
export declare enum EmailAddressType {
|
|
135
206
|
DIRECT = "direct",
|
|
136
207
|
ENS = "ens",
|
|
137
208
|
SNS = "sns",
|
|
138
209
|
CUSTOM = "custom"
|
|
139
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Sort order direction.
|
|
213
|
+
* @since 1.0.0
|
|
214
|
+
*/
|
|
140
215
|
export declare enum SortOrder {
|
|
141
216
|
ASC = "asc",
|
|
142
217
|
DESC = "desc"
|
|
143
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Fields by which emails can be sorted.
|
|
221
|
+
* @since 1.0.0
|
|
222
|
+
*/
|
|
144
223
|
export declare enum EmailSortCriteria {
|
|
145
224
|
DATE = "date",
|
|
146
225
|
SUBJECT = "subject",
|
|
147
226
|
FROM = "from",
|
|
148
227
|
SIZE = "size"
|
|
149
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* Network connection type (WiFi, cellular, etc.).
|
|
231
|
+
* @since 1.1.0
|
|
232
|
+
*/
|
|
150
233
|
export declare enum ConnectionType {
|
|
151
234
|
UNKNOWN = "unknown",
|
|
152
235
|
NONE = "none",
|
|
@@ -157,6 +240,11 @@ export declare enum ConnectionType {
|
|
|
157
240
|
CELLULAR_5G = "5g",
|
|
158
241
|
ETHERNET = "ethernet"
|
|
159
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* Wallet/network connection lifecycle states.
|
|
245
|
+
* Consolidated from WalletConnectionState, NetworkStatus, and ConnectionState.
|
|
246
|
+
* @since 1.0.0
|
|
247
|
+
*/
|
|
160
248
|
export declare enum ConnectionState {
|
|
161
249
|
UNKNOWN = "unknown",
|
|
162
250
|
DISCONNECTED = "disconnected",
|
|
@@ -167,17 +255,29 @@ export declare enum ConnectionState {
|
|
|
167
255
|
LIMITED = "limited",
|
|
168
256
|
ERROR = "error"
|
|
169
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Runtime platform identification.
|
|
260
|
+
* @since 1.0.0
|
|
261
|
+
*/
|
|
170
262
|
export declare enum PlatformType {
|
|
171
263
|
WEB = "web",
|
|
172
264
|
REACT_NATIVE = "react_native",
|
|
173
265
|
DESKTOP = "desktop"
|
|
174
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* Email address validation status.
|
|
269
|
+
* @since 1.0.0
|
|
270
|
+
*/
|
|
175
271
|
export declare enum EmailValidationState {
|
|
176
272
|
VALID = "valid",
|
|
177
273
|
INVALID = "invalid",
|
|
178
274
|
PENDING = "pending",// STATUS_VALUES.PENDING
|
|
179
275
|
UNKNOWN = "unknown"
|
|
180
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Feature flags for gating experimental or premium features.
|
|
279
|
+
* @since 1.2.0
|
|
280
|
+
*/
|
|
181
281
|
export declare enum FeatureFlag {
|
|
182
282
|
AI_SEARCH = "ai_search",
|
|
183
283
|
SMART_COMPOSE = "smart_compose",
|
|
@@ -186,6 +286,10 @@ export declare enum FeatureFlag {
|
|
|
186
286
|
NOTIFICATIONS = "notifications",
|
|
187
287
|
ANALYTICS = "analytics"
|
|
188
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* High-level error category classification.
|
|
291
|
+
* @since 1.0.0
|
|
292
|
+
*/
|
|
189
293
|
export declare enum ErrorType {
|
|
190
294
|
NETWORK = "network",
|
|
191
295
|
AUTH = "auth",
|
|
@@ -193,6 +297,10 @@ export declare enum ErrorType {
|
|
|
193
297
|
PERMISSION = "permission",
|
|
194
298
|
UNKNOWN = "unknown"
|
|
195
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Fiat currency codes for subscription pricing.
|
|
302
|
+
* @since 1.3.0
|
|
303
|
+
*/
|
|
196
304
|
export declare enum Currency {
|
|
197
305
|
USD = "USD",
|
|
198
306
|
EUR = "EUR",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/business/enums.ts"],"names":[],"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