@digitaldefiance/suite-core-lib 1.1.10 → 1.1.12
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/README.md +89 -90
- package/dist/errors/account-locked.d.ts +1 -2
- package/dist/errors/account-locked.d.ts.map +1 -1
- package/dist/errors/account-locked.js.map +1 -1
- package/dist/errors/account-status.d.ts +1 -2
- package/dist/errors/account-status.d.ts.map +1 -1
- package/dist/errors/account-status.js.map +1 -1
- package/dist/errors/core-typed-handleable.d.ts +2 -2
- package/dist/errors/core-typed-handleable.d.ts.map +1 -1
- package/dist/errors/core-typed-handleable.js.map +1 -1
- package/dist/errors/email-in-use.d.ts +1 -2
- package/dist/errors/email-in-use.d.ts.map +1 -1
- package/dist/errors/email-in-use.js.map +1 -1
- package/dist/errors/email-token-expired.d.ts +1 -2
- package/dist/errors/email-token-expired.d.ts.map +1 -1
- package/dist/errors/email-token-expired.js.map +1 -1
- package/dist/errors/email-token-failed-to-send.d.ts +1 -2
- package/dist/errors/email-token-failed-to-send.d.ts.map +1 -1
- package/dist/errors/email-token-failed-to-send.js.map +1 -1
- package/dist/errors/email-token-used-or-invalid.d.ts +1 -2
- package/dist/errors/email-token-used-or-invalid.d.ts.map +1 -1
- package/dist/errors/email-token-used-or-invalid.js.map +1 -1
- package/dist/errors/fec-error.d.ts +3 -3
- package/dist/errors/fec-error.d.ts.map +1 -1
- package/dist/errors/fec-error.js.map +1 -1
- package/dist/errors/invalid-credentials.d.ts +1 -2
- package/dist/errors/invalid-credentials.d.ts.map +1 -1
- package/dist/errors/invalid-credentials.js.map +1 -1
- package/dist/errors/invalid-email.d.ts +3 -3
- package/dist/errors/invalid-email.d.ts.map +1 -1
- package/dist/errors/invalid-email.js.map +1 -1
- package/dist/errors/invalid-token.d.ts +1 -2
- package/dist/errors/invalid-token.d.ts.map +1 -1
- package/dist/errors/invalid-token.js.map +1 -1
- package/dist/errors/invalid-userid.d.ts +1 -2
- package/dist/errors/invalid-userid.d.ts.map +1 -1
- package/dist/errors/invalid-userid.js.map +1 -1
- package/dist/errors/invalid-username.d.ts +1 -2
- package/dist/errors/invalid-username.d.ts.map +1 -1
- package/dist/errors/invalid-username.js.map +1 -1
- package/dist/errors/pbkdf2-error.d.ts +3 -3
- package/dist/errors/pbkdf2-error.d.ts.map +1 -1
- package/dist/errors/pbkdf2-error.js.map +1 -1
- package/dist/errors/pending-email-verification.d.ts +1 -2
- package/dist/errors/pending-email-verification.d.ts.map +1 -1
- package/dist/errors/pending-email-verification.js.map +1 -1
- package/dist/errors/private-key-required.d.ts +1 -2
- package/dist/errors/private-key-required.d.ts.map +1 -1
- package/dist/errors/private-key-required.js.map +1 -1
- package/dist/errors/translatable-suite-handleable.d.ts +1 -2
- package/dist/errors/translatable-suite-handleable.d.ts.map +1 -1
- package/dist/errors/translatable-suite-handleable.js.map +1 -1
- package/dist/errors/translatable-suite.d.ts +1 -2
- package/dist/errors/translatable-suite.d.ts.map +1 -1
- package/dist/errors/translatable-suite.js.map +1 -1
- package/dist/errors/user-not-found.d.ts +1 -2
- package/dist/errors/user-not-found.d.ts.map +1 -1
- package/dist/errors/user-not-found.js.map +1 -1
- package/dist/errors/username-email-required.d.ts +1 -2
- package/dist/errors/username-email-required.d.ts.map +1 -1
- package/dist/errors/username-email-required.js.map +1 -1
- package/dist/errors/username-in-use.d.ts +1 -2
- package/dist/errors/username-in-use.d.ts.map +1 -1
- package/dist/errors/username-in-use.js.map +1 -1
- package/dist/i18n-setup.d.ts +9 -9
- package/dist/i18n-setup.d.ts.map +1 -1
- package/dist/i18n-setup.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](http://www.typescriptlang.org/)
|
|
6
6
|
|
|
7
|
-
A library
|
|
7
|
+
A comprehensive library providing higher-level primitives and foundational building blocks for creating a cryptographically-secure user management system and Node.js Express server framework. Built on top of **@digitaldefiance/ecies-lib** and **@digitaldefiance/node-ecies-lib**, this package serves as the core foundation for the **node-ecies** and **node-express-suite** projects, which together form a complete full-stack security and user management ecosystem.
|
|
8
8
|
|
|
9
9
|
## 🚀 Framework Ecosystem
|
|
10
10
|
|
|
11
|
-
`@digitaldefiance/
|
|
11
|
+
`@digitaldefiance/suite-core-lib` offers the essential **core primitives and abstractions** that power:
|
|
12
12
|
|
|
13
|
-
- user accounts and authentication
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
13
|
+
- Secure user accounts and authentication mechanisms
|
|
14
|
+
- End-to-end encryption between users and servers
|
|
15
|
+
- Zero-knowledge proof based authentication flows
|
|
16
|
+
- Role-based access control (RBAC) with fine-grained permissions
|
|
17
|
+
- Multi-language internationalization (i18n) with plugin-based architecture
|
|
18
18
|
|
|
19
19
|
## 📦 Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm install @digitaldefiance/
|
|
22
|
+
npm install @digitaldefiance/suite-core-lib
|
|
23
23
|
# or
|
|
24
|
-
yarn add @digitaldefiance/
|
|
24
|
+
yarn add @digitaldefiance/suite-core-lib
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## 🌍 Internationalization
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
This library includes built-in support for **five major languages** using a modern plugin-based i18n architecture:
|
|
30
30
|
|
|
31
|
-
- **English** (US
|
|
31
|
+
- **English** (US and UK variants)
|
|
32
32
|
- **French**
|
|
33
33
|
- **Spanish**
|
|
34
34
|
- **Mandarin Chinese**
|
|
35
35
|
- **Ukrainian**
|
|
36
36
|
|
|
37
|
-
All error messages, validation
|
|
37
|
+
All error messages, validation texts, and user-facing strings are fully localized and designed to be extensible for additional languages.
|
|
38
38
|
|
|
39
39
|
## 🏗️ Architecture Overview
|
|
40
40
|
|
|
@@ -47,16 +47,16 @@ import {
|
|
|
47
47
|
AccountStatus,
|
|
48
48
|
Role,
|
|
49
49
|
CoreLanguage
|
|
50
|
-
} from '@digitaldefiance/
|
|
50
|
+
} from '@digitaldefiance/suite-core-lib';
|
|
51
51
|
|
|
52
|
-
// Frontend-optimized user interface
|
|
52
|
+
// Frontend-optimized user interface with string-based IDs
|
|
53
53
|
interface AppUser extends IFrontendUser<'en'> {
|
|
54
54
|
_id: string;
|
|
55
55
|
siteLanguage: 'en';
|
|
56
56
|
accountStatus: AccountStatus;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// Backend database interface
|
|
59
|
+
// Backend database interface supporting ObjectId types
|
|
60
60
|
interface DatabaseUser extends IBackendUser<'en'> {
|
|
61
61
|
_id: Types.ObjectId;
|
|
62
62
|
createdBy: Types.ObjectId;
|
|
@@ -67,20 +67,20 @@ interface DatabaseUser extends IBackendUser<'en'> {
|
|
|
67
67
|
### Secure Backup Code System
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
|
-
import { BackupCodeString, Constants } from '@digitaldefiance/
|
|
70
|
+
import { BackupCodeString, Constants } from '@digitaldefiance/suite-core-lib';
|
|
71
71
|
|
|
72
72
|
// Generate cryptographically secure backup codes
|
|
73
73
|
const backupCodes = BackupCodeString.generateBackupCodes();
|
|
74
|
-
console.log(backupCodes.length); // 10
|
|
74
|
+
console.log(backupCodes.length); // Default is 10, configurable via Constants.BACKUP_CODES.Count
|
|
75
75
|
|
|
76
|
-
//
|
|
76
|
+
// Format a backup code for user display
|
|
77
77
|
const code = new BackupCodeString('deadbeefcafebabefeedface01234567');
|
|
78
|
-
console.log(code.value); // "dead-beef-cafe-babe-feed-face-0123-4567"
|
|
78
|
+
console.log(code.value); // Outputs: "dead-beef-cafe-babe-feed-face-0123-4567"
|
|
79
79
|
|
|
80
|
-
//
|
|
80
|
+
// Access multiple secure encoding formats
|
|
81
81
|
console.log(code.valueAsHexString); // Hex-encoded UTF-8 bytes
|
|
82
|
-
console.log(code.valueAsBase64String); // Base64-encoded
|
|
83
|
-
console.log(code.valueAsUint8Array); // Raw byte array
|
|
82
|
+
console.log(code.valueAsBase64String); // Base64-encoded string
|
|
83
|
+
console.log(code.valueAsUint8Array); // Raw Uint8Array byte array
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
### Localized Error Handling
|
|
@@ -91,36 +91,36 @@ import {
|
|
|
91
91
|
UsernameInUseError,
|
|
92
92
|
AccountLockedError,
|
|
93
93
|
CoreLanguage
|
|
94
|
-
} from '@digitaldefiance/
|
|
94
|
+
} from '@digitaldefiance/suite-core-lib';
|
|
95
95
|
|
|
96
|
-
//
|
|
96
|
+
// Throw errors with automatic localization support
|
|
97
97
|
throw new UserNotFoundError(CoreLanguage.French);
|
|
98
|
-
// "Compte utilisateur introuvable"
|
|
98
|
+
// Output: "Compte utilisateur introuvable"
|
|
99
99
|
|
|
100
100
|
throw new UsernameInUseError(CoreLanguage.Spanish);
|
|
101
|
-
// "El nombre de usuario ya está en uso"
|
|
101
|
+
// Output: "El nombre de usuario ya está en uso"
|
|
102
102
|
|
|
103
103
|
throw new AccountLockedError(CoreLanguage.German);
|
|
104
|
-
// "Konto ist von einem Administrator gesperrt"
|
|
104
|
+
// Output: "Konto ist von einem Administrator gesperrt"
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
## 🎯 How Frameworks Use These Primitives
|
|
108
108
|
|
|
109
|
-
The **@digitaldefiance/node-express-suite** package builds upon these primitives to create full framework components:
|
|
109
|
+
The **@digitaldefiance/node-express-suite** package builds upon these primitives to create full-featured framework components:
|
|
110
110
|
|
|
111
111
|
### Express.js Framework Usage
|
|
112
112
|
|
|
113
113
|
```typescript
|
|
114
|
-
// node-express-suite
|
|
114
|
+
// Internal usage of suite-core-lib primitives in node-express-suite
|
|
115
115
|
import {
|
|
116
116
|
IFrontendUser,
|
|
117
117
|
AccountStatus,
|
|
118
118
|
BackupCodeString,
|
|
119
119
|
UserNotFoundError,
|
|
120
120
|
CoreLanguage
|
|
121
|
-
} from '@digitaldefiance/
|
|
121
|
+
} from '@digitaldefiance/suite-core-lib';
|
|
122
122
|
|
|
123
|
-
//
|
|
123
|
+
// Middleware example: validate backup code input
|
|
124
124
|
function validateBackupCode(userInput: string, storedCodes: IBackupCode[]) {
|
|
125
125
|
try {
|
|
126
126
|
const inputCode = new BackupCodeString(userInput);
|
|
@@ -129,7 +129,7 @@ function validateBackupCode(userInput: string, storedCodes: IBackupCode[]) {
|
|
|
129
129
|
);
|
|
130
130
|
} catch (error) {
|
|
131
131
|
if (error instanceof InvalidBackupCodeError) {
|
|
132
|
-
//
|
|
132
|
+
// Handle localized error response gracefully
|
|
133
133
|
return false;
|
|
134
134
|
}
|
|
135
135
|
throw error;
|
|
@@ -140,16 +140,16 @@ function validateBackupCode(userInput: string, storedCodes: IBackupCode[]) {
|
|
|
140
140
|
### Frontend Framework Integration
|
|
141
141
|
|
|
142
142
|
```typescript
|
|
143
|
-
// Frontend frameworks consume
|
|
144
|
-
import { IFrontendUser, AccountStatus } from '@digitaldefiance/
|
|
143
|
+
// Frontend frameworks consume type-safe interfaces
|
|
144
|
+
import { IFrontendUser, AccountStatus } from '@digitaldefiance/suite-core-lib';
|
|
145
145
|
|
|
146
|
-
// React/Vue/Angular
|
|
146
|
+
// React/Vue/Angular component props example
|
|
147
147
|
interface UserProfileProps {
|
|
148
148
|
user: IFrontendUser<'en' | 'fr' | 'es'>;
|
|
149
149
|
onStatusChange: (status: AccountStatus) => void;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
//
|
|
152
|
+
// Function to update user status with type safety
|
|
153
153
|
function updateUserStatus(user: IFrontendUser<string>, status: AccountStatus) {
|
|
154
154
|
return {
|
|
155
155
|
...user,
|
|
@@ -162,11 +162,10 @@ function updateUserStatus(user: IFrontendUser<string>, status: AccountStatus) {
|
|
|
162
162
|
### Database Layer Integration
|
|
163
163
|
|
|
164
164
|
```typescript
|
|
165
|
-
//
|
|
166
|
-
import { IBackendUser, IUserRoleBase } from '@digitaldefiance/
|
|
165
|
+
// Database schemas implementing suite-core-lib interfaces
|
|
166
|
+
import { IBackendUser, IUserRoleBase } from '@digitaldefiance/suite-core-lib';
|
|
167
167
|
import { Types } from 'mongoose';
|
|
168
168
|
|
|
169
|
-
// Framework database schemas implement our interfaces
|
|
170
169
|
const userSchema = new mongoose.Schema<IBackendUser<'en'>>({
|
|
171
170
|
_id: { type: Types.ObjectId, required: true },
|
|
172
171
|
username: { type: String, required: true, unique: true },
|
|
@@ -176,7 +175,7 @@ const userSchema = new mongoose.Schema<IBackendUser<'en'>>({
|
|
|
176
175
|
enum: Object.values(AccountStatus),
|
|
177
176
|
default: AccountStatus.PendingEmailVerification
|
|
178
177
|
},
|
|
179
|
-
//
|
|
178
|
+
// Additional schema fields matching the interface
|
|
180
179
|
});
|
|
181
180
|
```
|
|
182
181
|
|
|
@@ -184,14 +183,14 @@ const userSchema = new mongoose.Schema<IBackendUser<'en'>>({
|
|
|
184
183
|
|
|
185
184
|
### Custom Model Extensions & Dynamic Registration
|
|
186
185
|
|
|
187
|
-
> **Note:** The static `ModelName` and `BaseModelName` enums are deprecated. For extensibility, use dynamic model registration
|
|
186
|
+
> **Note:** The static `ModelName` and `BaseModelName` enums are deprecated. For extensibility, use dynamic model registration available in `ModelRegistry` from `node-express-suite`.
|
|
188
187
|
|
|
189
|
-
You can
|
|
188
|
+
You can register and extend models dynamically at runtime:
|
|
190
189
|
|
|
191
190
|
```typescript
|
|
192
191
|
import { ModelRegistry } from '@digitaldefiance/node-express-suite';
|
|
193
192
|
|
|
194
|
-
// Register a custom model
|
|
193
|
+
// Register a custom model, e.g., Organization
|
|
195
194
|
ModelRegistry.instance.register({
|
|
196
195
|
modelName: 'Organization',
|
|
197
196
|
schema: organizationSchema,
|
|
@@ -199,18 +198,18 @@ ModelRegistry.instance.register({
|
|
|
199
198
|
collection: 'organizations',
|
|
200
199
|
});
|
|
201
200
|
|
|
202
|
-
// Retrieve
|
|
201
|
+
// Retrieve the model anywhere in your application
|
|
203
202
|
const orgModel = ModelRegistry.instance.get('Organization')?.model;
|
|
204
203
|
```
|
|
205
204
|
|
|
206
|
-
This approach
|
|
205
|
+
This dynamic approach supports advanced use cases such as multi-tenancy and plugin-based architectures.
|
|
207
206
|
|
|
208
207
|
### Email Token Types
|
|
209
208
|
|
|
210
209
|
```typescript
|
|
211
|
-
import { EmailTokenType } from '@digitaldefiance/
|
|
210
|
+
import { EmailTokenType } from '@digitaldefiance/suite-core-lib';
|
|
212
211
|
|
|
213
|
-
//
|
|
212
|
+
// Common built-in email token types
|
|
214
213
|
const tokenTypes = [
|
|
215
214
|
EmailTokenType.AccountVerification, // Email confirmation
|
|
216
215
|
EmailTokenType.PasswordReset, // Password reset flow
|
|
@@ -223,30 +222,30 @@ const tokenTypes = [
|
|
|
223
222
|
### Account Status Management
|
|
224
223
|
|
|
225
224
|
```typescript
|
|
226
|
-
import { AccountStatus } from '@digitaldefiance/
|
|
225
|
+
import { AccountStatus } from '@digitaldefiance/suite-core-lib';
|
|
227
226
|
|
|
228
|
-
//
|
|
227
|
+
// Manage user account states with fine granularity
|
|
229
228
|
switch (user.accountStatus) {
|
|
230
229
|
case AccountStatus.PendingEmailVerification:
|
|
231
|
-
//
|
|
230
|
+
// Trigger email verification workflow
|
|
232
231
|
break;
|
|
233
232
|
case AccountStatus.Active:
|
|
234
|
-
//
|
|
233
|
+
// Grant full access
|
|
235
234
|
break;
|
|
236
235
|
case AccountStatus.AdminLock:
|
|
237
|
-
//
|
|
236
|
+
// Restrict access pending admin intervention
|
|
238
237
|
break;
|
|
239
238
|
}
|
|
240
239
|
```
|
|
241
240
|
|
|
242
241
|
### Framework Integration (Built by Other Projects)
|
|
243
242
|
|
|
244
|
-
The **@digitaldefiance/node-ecies** and **@digitaldefiance/node-express-suite** packages
|
|
243
|
+
The **@digitaldefiance/node-ecies** and **@digitaldefiance/node-express-suite** packages leverage these primitives to build:
|
|
245
244
|
|
|
246
|
-
-
|
|
247
|
-
-
|
|
248
|
-
-
|
|
249
|
-
-
|
|
245
|
+
- A complete Express.js framework with middleware, routing, and database integration
|
|
246
|
+
- Frontend adapters for React, Vue, Angular, and Svelte
|
|
247
|
+
- Mobile and desktop SDKs for React Native, Flutter, Electron, and Tauri
|
|
248
|
+
- DevOps and deployment tooling including Docker, Kubernetes, and CI/CD pipelines
|
|
250
249
|
|
|
251
250
|
## 🧪 Testing & Quality
|
|
252
251
|
|
|
@@ -260,23 +259,23 @@ import {
|
|
|
260
259
|
registerSuiteCoreRuntimeConfiguration,
|
|
261
260
|
} from '@digitaldefiance/suite-core-lib';
|
|
262
261
|
|
|
263
|
-
//
|
|
262
|
+
// Retrieve current configuration
|
|
264
263
|
const config = getSuiteCoreRuntimeConfiguration();
|
|
265
264
|
|
|
266
|
-
// Register a custom
|
|
265
|
+
// Register a custom configuration with overrides
|
|
267
266
|
const customKey = Symbol('custom-suite-core-config');
|
|
268
267
|
registerSuiteCoreRuntimeConfiguration(customKey, 'example.com', { BcryptRounds: 12 });
|
|
269
268
|
const customConfig = getSuiteCoreRuntimeConfiguration(customKey);
|
|
270
269
|
```
|
|
271
270
|
|
|
272
|
-
All constants are immutable and accessible via the registry/config API. See `src/constants.ts` and `src/defaults.ts` for
|
|
271
|
+
All constants are immutable and accessible via the registry/config API. See `src/constants.ts` and `src/defaults.ts` for more information.
|
|
273
272
|
|
|
274
273
|
## 🏛️ Architectural Conventions
|
|
275
274
|
|
|
276
|
-
- Centralized constants file
|
|
277
|
-
- Immutability via Object.freeze
|
|
275
|
+
- Centralized constants file for configuration
|
|
276
|
+
- Immutability enforced via Object.freeze
|
|
278
277
|
- Registry/config pattern for runtime overrides
|
|
279
|
-
- Type-safe interfaces for all
|
|
278
|
+
- Type-safe interfaces for all configuration objects
|
|
280
279
|
|
|
281
280
|
## 🧪 Testing & Quality
|
|
282
281
|
|
|
@@ -295,13 +294,13 @@ yarn test
|
|
|
295
294
|
|
|
296
295
|
## 🤝 Contributing
|
|
297
296
|
|
|
298
|
-
We welcome contributions to help build the future of secure user management! Areas where
|
|
297
|
+
We welcome contributions to help build the future of secure user management! Areas where contributions are especially appreciated:
|
|
299
298
|
|
|
300
|
-
-
|
|
301
|
-
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
299
|
+
- Frontend component libraries for popular frameworks
|
|
300
|
+
- Additional language translations and localization
|
|
301
|
+
- Performance optimizations and benchmarking
|
|
302
|
+
- Documentation and example applications
|
|
303
|
+
- Security auditing and penetration testing
|
|
305
304
|
|
|
306
305
|
## 📄 License
|
|
307
306
|
|
|
@@ -327,6 +326,17 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
327
326
|
|
|
328
327
|
## ChangeLog
|
|
329
328
|
|
|
329
|
+
## v1.1.12: Update readme
|
|
330
|
+
|
|
331
|
+
- Sun Oct 26 2025 22:31:00 GMT-07 (Pacific Daylight Time)
|
|
332
|
+
- Update readme
|
|
333
|
+
|
|
334
|
+
## v1.1.11: Update libs
|
|
335
|
+
|
|
336
|
+
- Sun Oct 26 2025 20:33:00 GMT-0700 (Pacific Daylight Time)
|
|
337
|
+
- Update libraries
|
|
338
|
+
- Update error classes to not use CoreLanguageCode (use string instead)
|
|
339
|
+
|
|
330
340
|
## v1.1.10: Add string keys
|
|
331
341
|
|
|
332
342
|
- Sun Oct 26 2025 13:46:00 GMT-0700 (Pacific Daylight Time)
|
|
@@ -348,8 +358,9 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
348
358
|
- Version bump
|
|
349
359
|
|
|
350
360
|
## v1.1.5: add InvalidChallengeResponseError/LoginChallengeExpiredError
|
|
351
|
-
|
|
352
|
-
|
|
361
|
+
|
|
362
|
+
- Thu Oct 23 2025 20:34:00 GMT-0700 (Pacific Daylight Time)
|
|
363
|
+
- add InvalidChallengeResponseError/LoginChallengeExpiredError
|
|
353
364
|
|
|
354
365
|
## v1.1.4: export PrivateKeyRequiredError
|
|
355
366
|
|
|
@@ -392,14 +403,15 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
392
403
|
|
|
393
404
|
### Dependency Updates
|
|
394
405
|
|
|
395
|
-
- Updated
|
|
406
|
+
- Updated
|
|
396
407
|
|
|
397
408
|
```plaintext
|
|
398
409
|
@digitaldefiance/ecies-lib
|
|
399
410
|
```
|
|
411
|
+
|
|
400
412
|
from 1.0.31 to 1.0.32
|
|
401
413
|
|
|
402
|
-
- Updated
|
|
414
|
+
- Updated
|
|
403
415
|
|
|
404
416
|
```plaintext
|
|
405
417
|
@digitaldefiance/node-ecies-lib
|
|
@@ -407,10 +419,9 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
407
419
|
|
|
408
420
|
from 1.0.12 to 1.0.13
|
|
409
421
|
|
|
410
|
-
|
|
411
422
|
### New Features
|
|
412
423
|
|
|
413
|
-
- Added site configuration constants:
|
|
424
|
+
- Added site configuration constants:
|
|
414
425
|
|
|
415
426
|
```plaintext
|
|
416
427
|
Site
|
|
@@ -420,39 +431,26 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
420
431
|
SiteTagline
|
|
421
432
|
```
|
|
422
433
|
|
|
423
|
-
|
|
424
434
|
```plaintext
|
|
425
435
|
SiteDescription
|
|
426
436
|
```
|
|
427
437
|
|
|
428
|
-
|
|
429
438
|
to core constants
|
|
430
439
|
|
|
431
|
-
|
|
432
|
-
|
|
433
440
|
- Added new error type enumerations:
|
|
434
441
|
|
|
435
|
-
|
|
436
442
|
```plaintext
|
|
437
443
|
FecErrorType
|
|
438
444
|
```
|
|
439
445
|
|
|
440
|
-
|
|
441
|
-
|
|
442
446
|
\- Forward Error Correction error types (13 error cases)
|
|
443
447
|
|
|
444
|
-
|
|
445
|
-
|
|
446
448
|
```plaintext
|
|
447
449
|
Pbkdf2ErrorType
|
|
448
450
|
```
|
|
449
451
|
|
|
450
|
-
|
|
451
|
-
|
|
452
452
|
\- PBKDF2 validation error types (2 error cases)
|
|
453
453
|
|
|
454
|
-
|
|
455
|
-
|
|
456
454
|
### String Key Refactoring
|
|
457
455
|
|
|
458
456
|
- Removed unused common string keys (UnexpectedError, Ready, Connecting, Disconnected, MongoDB, Unauthorized, NoActiveRequest, NoUserOnRequest, NoActiveResponse)
|
|
@@ -462,18 +460,19 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
|
|
|
462
460
|
|
|
463
461
|
### Module Exports
|
|
464
462
|
|
|
465
|
-
- Updated enumeration index to export new
|
|
463
|
+
- Updated enumeration index to export new
|
|
466
464
|
|
|
467
465
|
```plaintext
|
|
468
466
|
FecErrorType
|
|
469
467
|
```
|
|
468
|
+
|
|
470
469
|
and
|
|
471
470
|
|
|
472
471
|
```plaintext
|
|
473
472
|
Pbkdf2ErrorType
|
|
474
473
|
```
|
|
475
|
-
enumerations
|
|
476
474
|
|
|
475
|
+
enumerations
|
|
477
476
|
|
|
478
477
|
## v1.0.13: Add string
|
|
479
478
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
2
1
|
import { AccountStatusError } from './account-status';
|
|
3
2
|
export declare class AccountLockedError extends AccountStatusError {
|
|
4
|
-
constructor(language?:
|
|
3
|
+
constructor(language?: string, statusCode?: number);
|
|
5
4
|
}
|
|
6
5
|
//# sourceMappingURL=account-locked.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-locked.d.ts","sourceRoot":"","sources":["../../src/errors/account-locked.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-locked.d.ts","sourceRoot":"","sources":["../../src/errors/account-locked.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,SAAM;CAIhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-locked.js","sourceRoot":"","sources":["../../src/errors/account-locked.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"account-locked.js","sourceRoot":"","sources":["../../src/errors/account-locked.ts"],"names":[],"mappings":";;;AAAA,mEAA+D;AAC/D,qDAAsD;AAEtD,MAAa,kBAAmB,SAAQ,mCAAkB;IACxD,YAAY,QAAiB,EAAE,UAAU,GAAG,GAAG;QAC7C,KAAK,CAAC,8BAAa,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AALD,gDAKC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HandleableError } from '@digitaldefiance/ecies-lib';
|
|
2
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
3
2
|
import { AccountStatus } from '../enumerations/account-status';
|
|
4
3
|
export declare class AccountStatusError extends HandleableError {
|
|
5
4
|
readonly accountStatus: AccountStatus;
|
|
6
|
-
constructor(accountStatus: AccountStatus, language?:
|
|
5
|
+
constructor(accountStatus: AccountStatus, language?: string, statusCode?: number);
|
|
7
6
|
}
|
|
8
7
|
//# sourceMappingURL=account-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-status.d.ts","sourceRoot":"","sources":["../../src/errors/account-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"account-status.d.ts","sourceRoot":"","sources":["../../src/errors/account-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,SAAgB,aAAa,EAAE,aAAa,CAAC;gBAG3C,aAAa,EAAE,aAAa,EAC5B,QAAQ,CAAC,EAAE,MAAM,EACjB,UAAU,SAAM;CAqBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-status.js","sourceRoot":"","sources":["../../src/errors/account-status.ts"],"names":[],"mappings":";;;AAAA,0DAA6D;
|
|
1
|
+
{"version":3,"file":"account-status.js","sourceRoot":"","sources":["../../src/errors/account-status.ts"],"names":[],"mappings":";;;AAAA,0DAA6D;AAC7D,kDAAqD;AACrD,mEAA+D;AAC/D,6DAA8D;AAE9D,MAAa,kBAAmB,SAAQ,2BAAe;IAGrD,YACE,aAA4B,EAC5B,QAAiB,EACjB,UAAU,GAAG,GAAG;QAEhB,0CAA0C;QAC1C,MAAM,WAAW,GAAG,CAAC,MAAqB,EAAsB,EAAE;YAChE,QAAQ,MAAM,EAAE,CAAC;gBACf,KAAK,8BAAa,CAAC,MAAM;oBACvB,OAAO,iCAAkB,CAAC,0BAA0B,CAAC;gBACvD,KAAK,8BAAa,CAAC,SAAS;oBAC1B,OAAO,iCAAkB,CAAC,6BAA6B,CAAC;gBAC1D,KAAK,8BAAa,CAAC,wBAAwB;oBACzC,OAAO,iCAAkB,CAAC,4CAA4C,CAAC;gBACzE;oBACE,OAAO,iCAAkB,CAAC,0BAA0B,CAAC;YACzD,CAAC;QACH,CAAC,CAAC;QAEF,MAAM,QAAQ,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;QAC5C,KAAK,CAAC,IAAI,2CAAsB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;QACjF,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AA3BD,gDA2BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompleteReasonMap,
|
|
1
|
+
import { CompleteReasonMap, CoreStringKey, CoreTypedError, PluginI18nEngine } from '@digitaldefiance/i18n-lib';
|
|
2
2
|
import { HandleableErrorOptions } from '../interfaces';
|
|
3
3
|
import { IHandleable } from '@digitaldefiance/ecies-lib';
|
|
4
4
|
export declare class CoreTypedHandleableError<TEnum extends Record<string, string>> extends CoreTypedError<TEnum> implements IHandleable {
|
|
@@ -6,7 +6,7 @@ export declare class CoreTypedHandleableError<TEnum extends Record<string, strin
|
|
|
6
6
|
readonly statusCode: number;
|
|
7
7
|
readonly sourceData?: unknown;
|
|
8
8
|
private _handled;
|
|
9
|
-
constructor(type: TEnum[keyof TEnum], reasonMap: CompleteReasonMap<TEnum, CoreStringKey>, engine: PluginI18nEngine<
|
|
9
|
+
constructor(type: TEnum[keyof TEnum], reasonMap: CompleteReasonMap<TEnum, CoreStringKey>, engine: PluginI18nEngine<string>, source: Error, options?: HandleableErrorOptions, language?: string, otherVars?: Record<string, string | number>);
|
|
10
10
|
get handled(): boolean;
|
|
11
11
|
set handled(value: boolean);
|
|
12
12
|
toJSON(): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-typed-handleable.d.ts","sourceRoot":"","sources":["../../src/errors/core-typed-handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"core-typed-handleable.d.ts","sourceRoot":"","sources":["../../src/errors/core-typed-handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/G,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAmB,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG1E,qBAAa,wBAAwB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAE,SAAQ,cAAc,CAAC,KAAK,CAAE,YAAW,WAAW;IAC9H,SAAgB,KAAK,CAAC,EAAE,KAAK,CAAC;IAC9B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,QAAQ,CAAU;gBAEd,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,SAAS,EAAE,iBAAiB,CAAC,KAAK,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAyB3O,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAEM,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAczC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-typed-handleable.js","sourceRoot":"","sources":["../../src/errors/core-typed-handleable.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"core-typed-handleable.js","sourceRoot":"","sources":["../../src/errors/core-typed-handleable.ts"],"names":[],"mappings":";;;AAAA,wDAA+G;AAE/G,0DAA0E;AAC1E,uEAAuE;AAEvE,MAAa,wBAA+D,SAAQ,yBAAqB;IAMvG,YAAY,IAAwB,EAAE,SAAkD,EAAE,MAAgC,EAAE,MAAa,EAAE,OAAgC,EAAE,QAAiB,EAAE,SAA2C;QACzO,KAAK,CACH,MAAM,EACN,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,SAAS,CACV,CAAC;QACF,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,OAAO,EAAE,UAAU,IAAI,GAAG,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,EAAE,UAAU,CAAC;QAEtC,sEAAsE;QACtE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC5B,CAAC;aAAM,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YACnC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;IAGD,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAEM,MAAM;QACX,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EACH,IAAI,CAAC,KAAK,YAAY,2BAAe,IAAI,IAAI,CAAC,KAAK,YAAY,oDAA0B,IAAI,IAAI,CAAC,KAAK,YAAY,wBAAwB;gBACzI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACrB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO;YACzB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5D,CAAC;IACJ,CAAC;CACF;AArDD,4DAqDC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
2
1
|
import { TranslatableSuiteHandleableError } from './translatable-suite-handleable';
|
|
3
2
|
export declare class EmailInUseError extends TranslatableSuiteHandleableError {
|
|
4
|
-
constructor(language?:
|
|
3
|
+
constructor(language?: string, statusCode?: number);
|
|
5
4
|
}
|
|
6
5
|
//# sourceMappingURL=email-in-use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-in-use.d.ts","sourceRoot":"","sources":["../../src/errors/email-in-use.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-in-use.d.ts","sourceRoot":"","sources":["../../src/errors/email-in-use.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAEnF,qBAAa,eAAgB,SAAQ,gCAAgC;gBACvD,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,SAAM;CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-in-use.js","sourceRoot":"","sources":["../../src/errors/email-in-use.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"email-in-use.js","sourceRoot":"","sources":["../../src/errors/email-in-use.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,mFAAmF;AAEnF,MAAa,eAAgB,SAAQ,gEAAgC;IACnE,YAAY,QAAiB,EAAE,UAAU,GAAG,GAAG;QAC7C,KAAK,CAAC,iCAAkB,CAAC,qBAAqB,EAAE,SAAS,EAAE,QAAQ,EAAE;YACnE,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAPD,0CAOC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
2
1
|
import { TranslatableSuiteHandleableError } from './translatable-suite-handleable';
|
|
3
2
|
export declare class EmailTokenExpiredError extends TranslatableSuiteHandleableError {
|
|
4
|
-
constructor(language?:
|
|
3
|
+
constructor(language?: string, statusCode?: number);
|
|
5
4
|
}
|
|
6
5
|
//# sourceMappingURL=email-token-expired.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-expired.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-expired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"email-token-expired.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-expired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAInF,qBAAa,sBAAuB,SAAQ,gCAAgC;gBAC9D,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,SAAM;CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-expired.js","sourceRoot":"","sources":["../../src/errors/email-token-expired.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"email-token-expired.js","sourceRoot":"","sources":["../../src/errors/email-token-expired.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACnF,kDAAqD;AAGrD,MAAa,sBAAuB,SAAQ,gEAAgC;IAC1E,YAAY,QAAiB,EAAE,UAAU,GAAG,GAAG;QAC7C,KAAK,CAAC,iCAAkB,CAAC,uBAAuB,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE;YACtE,UAAU;SACX,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAPD,wDAOC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HandleableError, HandleableErrorOptions } from '@digitaldefiance/ecies-lib';
|
|
2
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
3
2
|
import { EmailTokenType } from '../enumerations';
|
|
4
3
|
export declare class EmailTokenFailedToSendError extends HandleableError {
|
|
5
|
-
constructor(tokenType: EmailTokenType, language?:
|
|
4
|
+
constructor(tokenType: EmailTokenType, language?: string, options?: HandleableErrorOptions);
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=email-token-failed-to-send.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-failed-to-send.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-failed-to-send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"email-token-failed-to-send.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-failed-to-send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAsB,MAAM,iBAAiB,CAAC;AAGrE,qBAAa,2BAA4B,SAAQ,eAAe;gBAClD,SAAS,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB;CAa3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-failed-to-send.js","sourceRoot":"","sources":["../../src/errors/email-token-failed-to-send.ts"],"names":[],"mappings":";;;AAAA,0DAAqF;
|
|
1
|
+
{"version":3,"file":"email-token-failed-to-send.js","sourceRoot":"","sources":["../../src/errors/email-token-failed-to-send.ts"],"names":[],"mappings":";;;AAAA,0DAAqF;AACrF,kDAAqE;AACrE,8CAAwD;AAExD,MAAa,2BAA4B,SAAQ,2BAAe;IAC9D,YAAY,SAAyB,EAAE,QAAiB,EAAE,OAAgC;QACxF,MAAM,GAAG,GAA+C;YACtD,CAAC,6BAAc,CAAC,mBAAmB,CAAC,EAAE,iCAAkB,CAAC,6BAA6B;YACtF,CAAC,6BAAc,CAAC,aAAa,CAAC,EAAE,iCAAkB,CAAC,uBAAuB;YAC1E,CAAC,6BAAc,CAAC,YAAY,CAAC,EAAE,iCAAkB,CAAC,sBAAsB;YACxE,CAAC,6BAAc,CAAC,uBAAuB,CAAC,EAAE,iCAAkB,CAAC,iCAAiC;YAC9F,CAAC,6BAAc,CAAC,iBAAiB,CAAC,EAAE,iCAAkB,CAAC,2BAA2B;SACnF,CAAC;QACF,MAAM,SAAS,GAAG,IAAA,oCAAuB,EAAC,GAAG,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QAC/E,KAAK,CACH,IAAI,KAAK,CAAC,GAAG,IAAA,oCAAuB,EAAC,iCAAkB,CAAC,uBAAuB,EAAE,SAAS,EAAE,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC,EAAE,OAAO,CAChI,CAAC;IACJ,CAAC;CACF;AAdD,kEAcC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoreLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
2
1
|
import { TranslatableSuiteHandleableError } from './translatable-suite-handleable';
|
|
3
2
|
export declare class EmailTokenUsedOrInvalidError extends TranslatableSuiteHandleableError {
|
|
4
|
-
constructor(language?:
|
|
3
|
+
constructor(language?: string, statusCode?: number);
|
|
5
4
|
}
|
|
6
5
|
//# sourceMappingURL=email-token-used-or-invalid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-used-or-invalid.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-used-or-invalid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-token-used-or-invalid.d.ts","sourceRoot":"","sources":["../../src/errors/email-token-used-or-invalid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAEnF,qBAAa,4BAA6B,SAAQ,gCAAgC;gBACpE,QAAQ,CAAC,EAAE,MAAM,EAAE,UAAU,SAAM;CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-token-used-or-invalid.js","sourceRoot":"","sources":["../../src/errors/email-token-used-or-invalid.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"email-token-used-or-invalid.js","sourceRoot":"","sources":["../../src/errors/email-token-used-or-invalid.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AAErD,mFAAmF;AAEnF,MAAa,4BAA6B,SAAQ,gEAAgC;IAChF,YAAY,QAAiB,EAAE,UAAU,GAAG,GAAG;QAC7C,KAAK,CAAC,iCAAkB,CAAC,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE;YACrE,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC;IAC7C,CAAC;CACF;AAPD,oEAOC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PluginTypedError } from '@digitaldefiance/i18n-lib';
|
|
2
2
|
import { FecErrorType, SuiteCoreStringKey } from '../enumerations';
|
|
3
|
-
export declare class FecError extends PluginTypedError<typeof FecErrorType, SuiteCoreStringKey,
|
|
4
|
-
constructor(type: FecErrorType, language?:
|
|
3
|
+
export declare class FecError extends PluginTypedError<typeof FecErrorType, SuiteCoreStringKey, string> {
|
|
4
|
+
constructor(type: FecErrorType, language?: string, templateParams?: Record<string, string>);
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=fec-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fec-error.d.ts","sourceRoot":"","sources":["../../src/errors/fec-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"fec-error.d.ts","sourceRoot":"","sources":["../../src/errors/fec-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGnE,qBAAa,QAAS,SAAQ,gBAAgB,CAAC,OAAO,YAAY,EAAE,kBAAkB,EAAE,MAAM,CAAC;gBAE3F,IAAI,EAAE,YAAY,EAClB,QAAQ,CAAC,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAyB1C"}
|