@digitaldefiance/suite-core-lib 3.6.0 → 3.6.6

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.
Files changed (38) hide show
  1. package/README.md +112 -0
  2. package/package.json +8 -2
  3. package/src/interfaces/index.d.ts +1 -2
  4. package/src/interfaces/index.d.ts.map +1 -1
  5. package/src/interfaces/index.js +1 -2
  6. package/src/interfaces/index.js.map +1 -1
  7. package/src/interfaces/models/email-token.d.ts +0 -6
  8. package/src/interfaces/models/email-token.d.ts.map +0 -1
  9. package/src/interfaces/models/email-token.js +0 -3
  10. package/src/interfaces/models/email-token.js.map +0 -1
  11. package/src/interfaces/models/index.d.ts +0 -9
  12. package/src/interfaces/models/index.d.ts.map +0 -1
  13. package/src/interfaces/models/index.js +0 -12
  14. package/src/interfaces/models/index.js.map +0 -1
  15. package/src/interfaces/models/mnemonic.d.ts +0 -6
  16. package/src/interfaces/models/mnemonic.d.ts.map +0 -1
  17. package/src/interfaces/models/mnemonic.js +0 -3
  18. package/src/interfaces/models/mnemonic.js.map +0 -1
  19. package/src/interfaces/models/role.d.ts +0 -6
  20. package/src/interfaces/models/role.d.ts.map +0 -1
  21. package/src/interfaces/models/role.js +0 -3
  22. package/src/interfaces/models/role.js.map +0 -1
  23. package/src/interfaces/models/token-role.d.ts +0 -11
  24. package/src/interfaces/models/token-role.d.ts.map +0 -1
  25. package/src/interfaces/models/token-role.js +0 -3
  26. package/src/interfaces/models/token-role.js.map +0 -1
  27. package/src/interfaces/models/used-direct-login-token.d.ts +0 -11
  28. package/src/interfaces/models/used-direct-login-token.d.ts.map +0 -1
  29. package/src/interfaces/models/used-direct-login-token.js +0 -3
  30. package/src/interfaces/models/used-direct-login-token.js.map +0 -1
  31. package/src/interfaces/models/user-role.d.ts +0 -11
  32. package/src/interfaces/models/user-role.d.ts.map +0 -1
  33. package/src/interfaces/models/user-role.js +0 -3
  34. package/src/interfaces/models/user-role.js.map +0 -1
  35. package/src/interfaces/models/user.d.ts +0 -12
  36. package/src/interfaces/models/user.d.ts.map +0 -1
  37. package/src/interfaces/models/user.js +0 -3
  38. package/src/interfaces/models/user.js.map +0 -1
package/README.md CHANGED
@@ -424,8 +424,120 @@ MIT © [Digital Defiance](https://github.com/digitaldefiance)
424
424
 
425
425
  **Building user management primitives?** Start with `@digitaldefiance/suite-core-lib` for type-safe, secure, and internationalized user system foundations. For complete frameworks, check out the **node-ecies** and **node-express-suite** projects! 🚀
426
426
 
427
+ ## Testing
428
+
429
+ ### Testing Approach
430
+
431
+ The suite-core-lib package uses comprehensive testing with 409 tests covering all user management primitives, validation logic, and error handling.
432
+
433
+ **Test Framework**: Jest with TypeScript support
434
+ **Property-Based Testing**: fast-check for validation properties
435
+ **Coverage**: 98.47% statements, 94.56% branches, 88.09% functions
436
+
437
+ ### Running Tests
438
+
439
+ ```bash
440
+ # Run all tests
441
+ npm test
442
+
443
+ # Run with coverage
444
+ npm test -- --coverage
445
+
446
+ # Run specific test suite
447
+ npm test -- user-builder.spec.ts
448
+ ```
449
+
450
+ ### Test Patterns
451
+
452
+ #### Testing Builders
453
+
454
+ ```typescript
455
+ import { UserBuilder, RoleBuilder, Role } from '@digitaldefiance/suite-core-lib';
456
+
457
+ describe('User Builder', () => {
458
+ it('should build user with fluent API', () => {
459
+ const user = UserBuilder.create()
460
+ .withUsername('alice')
461
+ .withEmail('alice@example.com')
462
+ .withEmailVerified(true)
463
+ .build();
464
+
465
+ expect(user.username).toBe('alice');
466
+ expect(user.emailVerified).toBe(true);
467
+ });
468
+ });
469
+ ```
470
+
471
+ #### Testing Validators
472
+
473
+ ```typescript
474
+ import { isValidUsername, isValidEmail, isValidPassword } from '@digitaldefiance/suite-core-lib';
475
+
476
+ describe('Validators', () => {
477
+ it('should validate usernames', () => {
478
+ expect(isValidUsername('alice123')).toBe(true);
479
+ expect(isValidUsername('ab')).toBe(false); // too short
480
+ });
481
+
482
+ it('should validate emails', () => {
483
+ expect(isValidEmail('alice@example.com')).toBe(true);
484
+ expect(isValidEmail('invalid')).toBe(false);
485
+ });
486
+ });
487
+ ```
488
+
489
+ #### Testing Error Handling
490
+
491
+ ```typescript
492
+ import { UserNotFoundError, UsernameInUseError, CoreLanguage } from '@digitaldefiance/suite-core-lib';
493
+
494
+ describe('Error Handling', () => {
495
+ it('should throw localized errors', () => {
496
+ const error = new UserNotFoundError(CoreLanguage.French);
497
+ expect(error.message).toContain('utilisateur');
498
+ });
499
+ });
500
+ ```
501
+
502
+ ### Cross-Package Testing
503
+
504
+ Testing with node-express-suite:
505
+
506
+ ```typescript
507
+ import { IBackendUser, AccountStatus } from '@digitaldefiance/suite-core-lib';
508
+ import { UserService } from '@digitaldefiance/node-express-suite';
509
+
510
+ describe('Integration with node-express-suite', () => {
511
+ it('should work with UserService', async () => {
512
+ const user: IBackendUser = {
513
+ username: 'alice',
514
+ email: 'alice@example.com',
515
+ accountStatus: AccountStatus.Active,
516
+ // ... other fields
517
+ };
518
+
519
+ // Use with UserService
520
+ expect(user.accountStatus).toBe(AccountStatus.Active);
521
+ });
522
+ });
523
+ ```
524
+
427
525
  ## ChangeLog
428
526
 
527
+ ## v3.6.6
528
+
529
+ - Move models to node-express-suite
530
+ - Update testing
531
+ - Update ecies
532
+
533
+ ## v3.6.5
534
+
535
+ - Update testing
536
+
537
+ ## v3.6.0
538
+
539
+ - Upgrade ecies to 4.4.0
540
+
429
541
  ## v.3.5.8
430
542
 
431
543
  - Upgrade ECIES to 4.3.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/suite-core-lib",
3
- "version": "3.6.0",
3
+ "version": "3.6.6",
4
4
  "description": "Generic user system and document system common core for applications",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "publish:public": "npm publish --access public"
23
23
  },
24
24
  "dependencies": {
25
- "@digitaldefiance/ecies-lib": "4.4.0",
25
+ "@digitaldefiance/ecies-lib": "4.4.2",
26
26
  "@digitaldefiance/i18n-lib": "3.8.0"
27
27
  },
28
28
  "files": [
@@ -36,5 +36,11 @@
36
36
  "author": "Digital Defiance",
37
37
  "license": "MIT",
38
38
  "packageManager": "yarn@4.10.3",
39
+ "devDependencies": {
40
+ "@typescript-eslint/eslint-plugin": "^8.48.0",
41
+ "@typescript-eslint/parser": "^8.48.0",
42
+ "eslint-plugin-import": "^2.32.0",
43
+ "eslint-plugin-prettier": "^5.5.4"
44
+ },
39
45
  "type": "commonjs"
40
46
  }
@@ -1,6 +1,7 @@
1
1
  export * from './backup-code';
2
2
  export * from './backup-code-consts';
3
3
  export * from './bases';
4
+ export * from './combined-role-privileges';
4
5
  export * from './constants';
5
6
  export * from './core-consts';
6
7
  export * from './deep-partial';
@@ -16,9 +17,7 @@ export * from './has-timestamp-owners';
16
17
  export * from './has-timestamps';
17
18
  export * from './has-updater';
18
19
  export * from './has-updates';
19
- export * from './models';
20
20
  export * from './success-message';
21
21
  export * from './token-user';
22
22
  export * from './user-settings';
23
- export * from './combined-role-privileges';
24
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./backup-code"), exports);
5
5
  tslib_1.__exportStar(require("./backup-code-consts"), exports);
6
6
  tslib_1.__exportStar(require("./bases"), exports);
7
+ tslib_1.__exportStar(require("./combined-role-privileges"), exports);
7
8
  tslib_1.__exportStar(require("./constants"), exports);
8
9
  tslib_1.__exportStar(require("./core-consts"), exports);
9
10
  tslib_1.__exportStar(require("./deep-partial"), exports);
@@ -19,9 +20,7 @@ tslib_1.__exportStar(require("./has-timestamp-owners"), exports);
19
20
  tslib_1.__exportStar(require("./has-timestamps"), exports);
20
21
  tslib_1.__exportStar(require("./has-updater"), exports);
21
22
  tslib_1.__exportStar(require("./has-updates"), exports);
22
- tslib_1.__exportStar(require("./models"), exports);
23
23
  tslib_1.__exportStar(require("./success-message"), exports);
24
24
  tslib_1.__exportStar(require("./token-user"), exports);
25
25
  tslib_1.__exportStar(require("./user-settings"), exports);
26
- tslib_1.__exportStar(require("./combined-role-privileges"), exports);
27
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,+DAAqC;AACrC,kDAAwB;AACxB,sDAA4B;AAC5B,wDAA8B;AAC9B,yDAA+B;AAC/B,gDAAsB;AACtB,4DAAkC;AAClC,6DAAmC;AACnC,yDAA+B;AAC/B,wDAA8B;AAC9B,mDAAyB;AACzB,4DAAkC;AAClC,6DAAmC;AACnC,iEAAuC;AACvC,2DAAiC;AACjC,wDAA8B;AAC9B,wDAA8B;AAC9B,mDAAyB;AACzB,4DAAkC;AAClC,uDAA6B;AAC7B,0DAAgC;AAChC,qEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,+DAAqC;AACrC,kDAAwB;AACxB,qEAA2C;AAC3C,sDAA4B;AAC5B,wDAA8B;AAC9B,yDAA+B;AAC/B,gDAAsB;AACtB,4DAAkC;AAClC,6DAAmC;AACnC,yDAA+B;AAC/B,wDAA8B;AAC9B,mDAAyB;AACzB,4DAAkC;AAClC,6DAAmC;AACnC,iEAAuC;AACvC,2DAAiC;AACjC,wDAA8B;AAC9B,wDAA8B;AAC9B,4DAAkC;AAClC,uDAA6B;AAC7B,0DAAgC"}
@@ -1,6 +0,0 @@
1
- import { IEmailTokenBase } from '../bases/email-token';
2
- /**
3
- * Front-End Base interface for email token collection documents
4
- */
5
- export type IFrontendEmailToken = IEmailTokenBase<string, Date, string>;
6
- //# sourceMappingURL=email-token.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-token.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/email-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=email-token.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-token.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/email-token.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export * from '../bases/token-role';
2
- export * from './email-token';
3
- export * from './mnemonic';
4
- export * from './role';
5
- export * from './token-role';
6
- export * from './used-direct-login-token';
7
- export * from './user';
8
- export * from './user-role';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("../bases/token-role"), exports);
5
- tslib_1.__exportStar(require("./email-token"), exports);
6
- tslib_1.__exportStar(require("./mnemonic"), exports);
7
- tslib_1.__exportStar(require("./role"), exports);
8
- tslib_1.__exportStar(require("./token-role"), exports);
9
- tslib_1.__exportStar(require("./used-direct-login-token"), exports);
10
- tslib_1.__exportStar(require("./user"), exports);
11
- tslib_1.__exportStar(require("./user-role"), exports);
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,wDAA8B;AAC9B,qDAA2B;AAC3B,iDAAuB;AACvB,uDAA6B;AAC7B,oEAA0C;AAC1C,iDAAuB;AACvB,sDAA4B"}
@@ -1,6 +0,0 @@
1
- import { IMnemonicBase } from '../bases/mnemonic';
2
- /**
3
- * Represents a front-end mnemonic hash being stored to check for uniqueness
4
- */
5
- export type IFrontendMnemonic = IMnemonicBase<string>;
6
- //# sourceMappingURL=mnemonic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/mnemonic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=mnemonic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mnemonic.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/mnemonic.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { IRoleBase } from '../bases/role';
2
- /**
3
- * Front-end Base interface for role collection documents
4
- */
5
- export type IFrontendRole = IRoleBase<string, Date>;
6
- //# sourceMappingURL=role.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/role.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { ITokenRole } from '../bases';
3
- /**
4
- * Front-end Base interface for token role collection documents
5
- */
6
- export type IFrontendTokenRole = ITokenRole<string, Date>;
7
- /**
8
- * Back-end Base interface for token role collection documents
9
- */
10
- export type IBackendTokenRole<I = Types.ObjectId> = ITokenRole<I, Date>;
11
- //# sourceMappingURL=token-role.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-role.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/token-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC1D;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=token-role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-role.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/token-role.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { IUsedDirectLoginTokenBase } from '../bases/used-direct-login-token';
3
- /**
4
- * Base interface for front-end used direct login token collection documents
5
- */
6
- export type IFrontendUsedDirectLoginToken = IUsedDirectLoginTokenBase<string>;
7
- /**
8
- * Base interface for back-end used direct login token collection documents
9
- */
10
- export type IBackendUsedDirectLoginToken<I = Types.ObjectId> = IUsedDirectLoginTokenBase<I>;
11
- //# sourceMappingURL=used-direct-login-token.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"used-direct-login-token.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/used-direct-login-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC9E;;GAEG;AACH,MAAM,MAAM,4BAA4B,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,IACzD,yBAAyB,CAAC,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=used-direct-login-token.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"used-direct-login-token.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/used-direct-login-token.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { IUserRoleBase } from '../bases/user-role';
3
- /**
4
- * Front-end Base interface for user role collection documents
5
- */
6
- export type IFrontendUserRole = IUserRoleBase<string, Date>;
7
- /**
8
- * Back-end Base interface for user role collection documents
9
- */
10
- export type IBackendUserRole<I = Types.ObjectId> = IUserRoleBase<I, Date>;
11
- //# sourceMappingURL=user-role.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-role.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/user-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC5D;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,IAAI,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user-role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-role.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/user-role.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { AccountStatus } from '../../enumerations/account-status';
3
- import { IUserBase } from '../bases/user';
4
- /**
5
- * Front-end Base interface for user collection documents
6
- */
7
- export type IFrontendUser<TLanguage extends string> = IUserBase<string, Date, TLanguage, AccountStatus>;
8
- /**
9
- * Back-end Base interface for user collection documents
10
- */
11
- export type IBackendUser<TLanguage extends string, I = Types.ObjectId> = IUserBase<I, Date, TLanguage, AccountStatus>;
12
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,SAAS,SAAS,MAAM,IAAI,SAAS,CAC7D,MAAM,EACN,IAAI,EACJ,SAAS,EACT,aAAa,CACd,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,SAAS,SAAS,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,IAAI,SAAS,CAChF,CAAC,EACD,IAAI,EACJ,SAAS,EACT,aAAa,CACd,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../packages/digitaldefiance-suite-core-lib/src/interfaces/models/user.ts"],"names":[],"mappings":""}