@ubs-platform/social-common 3.2.0

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 (82) hide show
  1. package/.eslintrc.json +25 -0
  2. package/README.md +5 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +5 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lib/dto/application-social-restriction.dto.d.ts +18 -0
  7. package/dist/lib/dto/application-social-restriction.dto.js +3 -0
  8. package/dist/lib/dto/application-social-restriction.dto.js.map +1 -0
  9. package/dist/lib/dto/base/search-result.dto.d.ts +9 -0
  10. package/dist/lib/dto/base/search-result.dto.js +3 -0
  11. package/dist/lib/dto/base/search-result.dto.js.map +1 -0
  12. package/dist/lib/dto/comment.dto.d.ts +82 -0
  13. package/dist/lib/dto/comment.dto.js +3 -0
  14. package/dist/lib/dto/comment.dto.js.map +1 -0
  15. package/dist/lib/dto/email-template.dto.d.ts +5 -0
  16. package/dist/lib/dto/email-template.dto.js +3 -0
  17. package/dist/lib/dto/email-template.dto.js.map +1 -0
  18. package/dist/lib/dto/email-template.search.d.ts +5 -0
  19. package/dist/lib/dto/email-template.search.js +3 -0
  20. package/dist/lib/dto/email-template.search.js.map +1 -0
  21. package/dist/lib/dto/email.dto.d.ts +7 -0
  22. package/dist/lib/dto/email.dto.js +3 -0
  23. package/dist/lib/dto/email.dto.js.map +1 -0
  24. package/dist/lib/dto/error-consts.d.ts +7 -0
  25. package/dist/lib/dto/error-consts.js +12 -0
  26. package/dist/lib/dto/error-consts.js.map +1 -0
  27. package/dist/lib/dto/error-informations.d.ts +5 -0
  28. package/dist/lib/dto/error-informations.js +11 -0
  29. package/dist/lib/dto/error-informations.js.map +1 -0
  30. package/dist/lib/dto/expansion-input.dto.d.ts +4 -0
  31. package/dist/lib/dto/expansion-input.dto.js +3 -0
  32. package/dist/lib/dto/expansion-input.dto.js.map +1 -0
  33. package/dist/lib/dto/global-variable-rename.d.ts +4 -0
  34. package/dist/lib/dto/global-variable-rename.js +3 -0
  35. package/dist/lib/dto/global-variable-rename.js.map +1 -0
  36. package/dist/lib/dto/global-variable-search.dto.d.ts +4 -0
  37. package/dist/lib/dto/global-variable-search.dto.js +3 -0
  38. package/dist/lib/dto/global-variable-search.dto.js.map +1 -0
  39. package/dist/lib/dto/global-variable-write.dto.d.ts +5 -0
  40. package/dist/lib/dto/global-variable-write.dto.js +3 -0
  41. package/dist/lib/dto/global-variable-write.dto.js.map +1 -0
  42. package/dist/lib/dto/global-variable.d.ts +8 -0
  43. package/dist/lib/dto/global-variable.js +3 -0
  44. package/dist/lib/dto/global-variable.js.map +1 -0
  45. package/dist/lib/dto/index.d.ts +2 -0
  46. package/dist/lib/dto/index.js +6 -0
  47. package/dist/lib/dto/index.js.map +1 -0
  48. package/dist/lib/dto/password-change-dto.d.ts +4 -0
  49. package/dist/lib/dto/password-change-dto.js +3 -0
  50. package/dist/lib/dto/password-change-dto.js.map +1 -0
  51. package/dist/lib/dto/user-admin-dto.d.ts +11 -0
  52. package/dist/lib/dto/user-admin-dto.js +3 -0
  53. package/dist/lib/dto/user-admin-dto.js.map +1 -0
  54. package/dist/lib/dto/user-auth-status.model.d.ts +15 -0
  55. package/dist/lib/dto/user-auth-status.model.js +19 -0
  56. package/dist/lib/dto/user-auth-status.model.js.map +1 -0
  57. package/dist/lib/dto/user-auth.model.d.ts +4 -0
  58. package/dist/lib/dto/user-auth.model.js +3 -0
  59. package/dist/lib/dto/user-auth.model.js.map +1 -0
  60. package/dist/lib/dto/user-create-dto.d.ts +12 -0
  61. package/dist/lib/dto/user-create-dto.js +3 -0
  62. package/dist/lib/dto/user-create-dto.js.map +1 -0
  63. package/dist/lib/dto/user-dto.d.ts +10 -0
  64. package/dist/lib/dto/user-dto.js +3 -0
  65. package/dist/lib/dto/user-dto.js.map +1 -0
  66. package/dist/lib/dto/user-full-dto.d.ts +19 -0
  67. package/dist/lib/dto/user-full-dto.js +3 -0
  68. package/dist/lib/dto/user-full-dto.js.map +1 -0
  69. package/dist/lib/dto/user-general-info-dto.d.ts +12 -0
  70. package/dist/lib/dto/user-general-info-dto.js +3 -0
  71. package/dist/lib/dto/user-general-info-dto.js.map +1 -0
  72. package/dist/lib/dto/user-minimalized.dto.d.ts +5 -0
  73. package/dist/lib/dto/user-minimalized.dto.js +3 -0
  74. package/dist/lib/dto/user-minimalized.dto.js.map +1 -0
  75. package/dist/lib/dto/user-register.model.d.ts +7 -0
  76. package/dist/lib/dto/user-register.model.js +3 -0
  77. package/dist/lib/dto/user-register.model.js.map +1 -0
  78. package/jest.config.ts +11 -0
  79. package/package.json +1 -0
  80. package/tsconfig.json +26 -0
  81. package/tsconfig.lib.json +10 -0
  82. package/tsconfig.spec.json +14 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": ["../../.eslintrc.base.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
+ "rules": {}
8
+ },
9
+ {
10
+ "files": ["*.ts", "*.tsx"],
11
+ "rules": {}
12
+ },
13
+ {
14
+ "files": ["*.js", "*.jsx"],
15
+ "rules": {}
16
+ },
17
+ {
18
+ "files": ["*.json"],
19
+ "parser": "jsonc-eslint-parser",
20
+ "rules": {
21
+ "@nx/dependency-checks": "error"
22
+ }
23
+ }
24
+ ]
25
+ }
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # users-common
2
+
3
+ This library has common declerations that is used as HttpResponse in Users Mona
4
+
5
+ Will be documented well soon
@@ -0,0 +1 @@
1
+ export * from './lib/dto';
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/dto"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B"}
@@ -0,0 +1,18 @@
1
+ export interface ApplicationSocialRestrictionDTO {
2
+ _id: string;
3
+ userId: string;
4
+ restriction: 'COMMENT' | 'POST';
5
+ until?: string;
6
+ endless: boolean;
7
+ note: string;
8
+ }
9
+ export interface ApplicationSocialRestrictionAddDTO {
10
+ userId: string;
11
+ restriction: 'COMMENT' | 'POST';
12
+ until?: string;
13
+ note: string;
14
+ }
15
+ export interface ApplicationSocialRestrictionSearchDTO {
16
+ userId: string;
17
+ restriction: 'COMMENT' | 'POST';
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=application-social-restriction.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-social-restriction.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/application-social-restriction.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface SearchResult<OUTPUT> {
2
+ content: OUTPUT[];
3
+ page: number;
4
+ size: number;
5
+ maxItemLength: number;
6
+ maxPagesIndex: number;
7
+ lastPage: boolean;
8
+ firstPage: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=search-result.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-result.dto.js","sourceRoot":"","sources":["../../../../src/lib/dto/base/search-result.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,82 @@
1
+ export interface CommentAddDTO {
2
+ _id?: String;
3
+ entityGroup: String;
4
+ mainEntityName: String;
5
+ mainEntityId: String;
6
+ childEntityName: String;
7
+ childEntityId: String;
8
+ textContent: String;
9
+ childOfCommentId?: string;
10
+ }
11
+ export interface BanUserDTO {
12
+ entityGroup: string;
13
+ mainEntityName: string;
14
+ mainEntityId: string;
15
+ byUserId: string;
16
+ }
17
+ export interface CommentMetaSearchDTO {
18
+ entityGroup: String;
19
+ mainEntityName: String;
20
+ mainEntityId: String;
21
+ }
22
+ export interface CommentSearchDTO {
23
+ entityGroup: String;
24
+ mainEntityName: String;
25
+ mainEntityId: String;
26
+ childEntityName: String;
27
+ childEntityId: String;
28
+ childOfCommentId?: string;
29
+ }
30
+ export interface CommentDTO {
31
+ _id: String;
32
+ entityGroup: String;
33
+ mainEntityName: String;
34
+ mainEntityId: String;
35
+ childEntityName: String;
36
+ childEntityId: String;
37
+ textContent: String;
38
+ byUserId: String;
39
+ byFullName: String;
40
+ creationDate: Date;
41
+ lastEditDate: Date;
42
+ editCount: number;
43
+ isChild?: boolean;
44
+ childOfCommentId?: string;
45
+ userDownVoted: boolean;
46
+ userUpVoted: boolean;
47
+ votesLength: number;
48
+ childCommentsCount: number;
49
+ canRemove: boolean;
50
+ canEdit: boolean;
51
+ userCommentAdmin: boolean;
52
+ userBanned: boolean;
53
+ }
54
+ export interface CommentAbilityDTO {
55
+ userCanComment: boolean;
56
+ userCommentBlockReason: string;
57
+ extraNote?: string;
58
+ }
59
+ export interface CommentEditDTO {
60
+ textContent: String;
61
+ }
62
+ export interface CanManuplateComment {
63
+ allow: boolean;
64
+ }
65
+ export type SORT_FIELD = 'VOTE' | 'CREATIONDATE';
66
+ export type SORT_ROTATION = 'ASC' | 'DESC';
67
+ export interface PaginationRequest {
68
+ page: number;
69
+ size: number;
70
+ sortField: SORT_FIELD;
71
+ sortRotation: SORT_ROTATION;
72
+ }
73
+ export interface PaginationResult {
74
+ page: number;
75
+ size: number;
76
+ maxItemLength: number;
77
+ list: CommentDTO[];
78
+ }
79
+ export type CommentStatus = 'ALLOW' | 'DISABLE' | 'ARCHIVE';
80
+ export type NewCommentingStatus = CommentMetaSearchDTO & {
81
+ newStatus: 'ALLOW' | 'DISABLE' | 'ARCHIVE';
82
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=comment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/comment.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface EmailTemplateDTO {
2
+ _id: string;
3
+ htmlContent: string;
4
+ name: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=email-template.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/email-template.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface EmailTemplateSearch {
2
+ _id: String;
3
+ htmlContentContains: String;
4
+ nameContains: String;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=email-template.search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-template.search.js","sourceRoot":"","sources":["../../../src/lib/dto/email-template.search.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface EmailDto {
2
+ to: string;
3
+ subject: string;
4
+ templateName: string;
5
+ specialVariables: any;
6
+ language?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=email.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/email.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare class UBSUsersErrorConsts {
2
+ static readonly EXIST_USERNAME = "exist-username";
3
+ static readonly EXIST_PRIMARY_MAIL = "exist-primary-mail";
4
+ static readonly EMPTY_DATA = "empty-data";
5
+ static readonly AUTHENTICATION_FAIL = "fail-authentication";
6
+ static readonly USER_NOTFOUND = "notfound-user";
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UBSUsersErrorConsts = void 0;
4
+ class UBSUsersErrorConsts {
5
+ }
6
+ exports.UBSUsersErrorConsts = UBSUsersErrorConsts;
7
+ UBSUsersErrorConsts.EXIST_USERNAME = 'exist-username';
8
+ UBSUsersErrorConsts.EXIST_PRIMARY_MAIL = 'exist-primary-mail';
9
+ UBSUsersErrorConsts.EMPTY_DATA = 'empty-data';
10
+ UBSUsersErrorConsts.AUTHENTICATION_FAIL = 'fail-authentication';
11
+ UBSUsersErrorConsts.USER_NOTFOUND = 'notfound-user';
12
+ //# sourceMappingURL=error-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-consts.js","sourceRoot":"","sources":["../../../src/lib/dto/error-consts.ts"],"names":[],"mappings":";;;AAAA,MAAa,mBAAmB;;AAAhC,kDAMC;AALiB,kCAAc,GAAG,gBAAgB,CAAC;AAClC,sCAAkB,GAAG,oBAAoB,CAAC;AAC1C,8BAAU,GAAG,YAAY,CAAC;AAC1B,uCAAmB,GAAG,qBAAqB,CAAC;AAC5C,iCAAa,GAAG,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare class ErrorInformations {
2
+ key: string;
3
+ message: string;
4
+ constructor(key: string, message: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorInformations = void 0;
4
+ class ErrorInformations {
5
+ constructor(key, message) {
6
+ this.key = key;
7
+ this.message = message;
8
+ }
9
+ }
10
+ exports.ErrorInformations = ErrorInformations;
11
+ //# sourceMappingURL=error-informations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-informations.js","sourceRoot":"","sources":["../../../src/lib/dto/error-informations.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IAC5B,YAAmB,GAAW,EAAS,OAAe;QAAnC,QAAG,GAAH,GAAG,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;CAC3D;AAFD,8CAEC"}
@@ -0,0 +1,4 @@
1
+ export interface VariableExpansion {
2
+ text: string;
3
+ language?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=expansion-input.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expansion-input.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/expansion-input.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface GlobalVariableRenameDTO {
2
+ _id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=global-variable-rename.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-variable-rename.js","sourceRoot":"","sources":["../../../src/lib/dto/global-variable-rename.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface GlobalVariableSearchDTO {
2
+ name: String;
3
+ language?: String;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=global-variable-search.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-variable-search.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/global-variable-search.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface GlobalVariableWriteDTO {
2
+ name: string;
3
+ language: string;
4
+ value: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=global-variable-write.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-variable-write.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/global-variable-write.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface GlobalVariableDTO {
2
+ id: string;
3
+ name: string;
4
+ values: Array<{
5
+ language: string;
6
+ value: string;
7
+ }>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=global-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-variable.js","sourceRoot":"","sources":["../../../src/lib/dto/global-variable.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './comment.dto';
2
+ export * from './application-social-restriction.dto';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./comment.dto"), exports);
5
+ tslib_1.__exportStar(require("./application-social-restriction.dto"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/dto/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,+EAAqD"}
@@ -0,0 +1,4 @@
1
+ export interface PasswordChangeDto {
2
+ currentPassword: string;
3
+ newPassword: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=password-change-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-change-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/password-change-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface UserAuthBackendDTO {
2
+ username: string;
3
+ primaryEmail: string;
4
+ name: string;
5
+ surname: string;
6
+ id: string;
7
+ suspended: boolean;
8
+ suspendReason: string;
9
+ roles: string[];
10
+ active: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-admin-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-admin-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-admin-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export interface UserAuthStatus {
2
+ success: boolean;
3
+ message: string;
4
+ token?: string;
5
+ }
6
+ export declare class UserAuthSuccess implements UserAuthStatus {
7
+ token?: string;
8
+ constructor(token?: string);
9
+ success: boolean;
10
+ message: string;
11
+ }
12
+ export declare class UserAuthFail implements UserAuthStatus {
13
+ success: boolean;
14
+ message: string;
15
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserAuthFail = exports.UserAuthSuccess = void 0;
4
+ class UserAuthSuccess {
5
+ constructor(token) {
6
+ this.token = token;
7
+ this.success = true;
8
+ this.message = 'User login is success';
9
+ }
10
+ }
11
+ exports.UserAuthSuccess = UserAuthSuccess;
12
+ class UserAuthFail {
13
+ constructor() {
14
+ this.success = false;
15
+ this.message = 'Username or Password is wrong';
16
+ }
17
+ }
18
+ exports.UserAuthFail = UserAuthFail;
19
+ //# sourceMappingURL=user-auth-status.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-auth-status.model.js","sourceRoot":"","sources":["../../../src/lib/dto/user-auth-status.model.ts"],"names":[],"mappings":";;;AAMA,MAAa,eAAe;IAC1B,YAAmB,KAAc;QAAd,UAAK,GAAL,KAAK,CAAS;QACjC,YAAO,GAAG,IAAI,CAAC;QACf,YAAO,GAAG,uBAAuB,CAAC;IAFE,CAAC;CAGtC;AAJD,0CAIC;AAED,MAAa,YAAY;IAAzB;QACE,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,+BAA+B,CAAC;IAC5C,CAAC;CAAA;AAHD,oCAGC"}
@@ -0,0 +1,4 @@
1
+ export interface UserAuth {
2
+ login: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-auth.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-auth.model.js","sourceRoot":"","sources":["../../../src/lib/dto/user-auth.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * ‼️‼️ do not use in frontend ‼️‼️
3
+ */
4
+ export interface UserCreateDTO {
5
+ username: string;
6
+ password: string;
7
+ primaryEmail: string;
8
+ name: string;
9
+ surname: string;
10
+ active: boolean;
11
+ roles: Array<string>;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-create-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-create-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-create-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export interface UserDTO {
2
+ username: string;
3
+ primaryEmail: string;
4
+ name: string;
5
+ surname: string;
6
+ id: string;
7
+ suspended: boolean;
8
+ suspendReason: string;
9
+ active: boolean;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export interface UserFullDto {
2
+ _id?: any;
3
+ username: string;
4
+ primaryEmail: string;
5
+ name: string;
6
+ surname: string;
7
+ country: string;
8
+ state: string;
9
+ city: string;
10
+ district: string;
11
+ gender: string;
12
+ pronounce: string;
13
+ roles: string[];
14
+ webSites: string[];
15
+ active: boolean;
16
+ suspended: boolean;
17
+ suspendReason: string;
18
+ password?: string;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-full-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-full-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-full-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export interface UserGeneralInfoDTO {
2
+ id?: string;
3
+ name: string;
4
+ surname: string;
5
+ gender: string;
6
+ pronounce: string;
7
+ webSites: string[];
8
+ country: string;
9
+ state: string;
10
+ city: string;
11
+ district: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-general-info-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-general-info-dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-general-info-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface UserOnlyRequiredDTO {
2
+ name: string;
3
+ surname: string;
4
+ id: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-minimalized.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-minimalized.dto.js","sourceRoot":"","sources":["../../../src/lib/dto/user-minimalized.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface UserRegisterDTO {
2
+ username: string;
3
+ password: string;
4
+ primaryEmail: string;
5
+ name: string;
6
+ surname: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-register.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-register.model.js","sourceRoot":"","sources":["../../../src/lib/dto/user-register.model.ts"],"names":[],"mappings":""}
package/jest.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'nest-microservice-setup-util',
4
+ preset: '../../jest.preset.js',
5
+ testEnvironment: 'node',
6
+ transform: {
7
+ '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
8
+ },
9
+ moduleFileExtensions: ['ts', 'js', 'html'],
10
+ coverageDirectory: '../../coverage/libs/nest-microservice-setup-util',
11
+ };
package/package.json ADDED
@@ -0,0 +1 @@
1
+ { "name": "@ubs-platform/social-common", "version": "3.2.0", "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "devDependencies": { "typescript": "~5.3.2", "@types/node": "~18.16.9" }, "publishConfig": { "access": "public" }, "peerDependencies": {}, "scripts": { "build": "tsc", "build-publish": "npm run build && npm publish" }, "type": "commonjs", "main": "./dist/index.js" }
package/tsconfig.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "sourceMap": true,
6
+ "moduleResolution": "node",
7
+ "emitDecoratorMetadata": true,
8
+ "experimentalDecorators": true,
9
+ "importHelpers": true,
10
+ "target": "es2015",
11
+ "module": "commonjs",
12
+ "outDir": "./dist",
13
+ "lib": ["es2020", "dom"],
14
+ "skipLibCheck": true,
15
+ "skipDefaultLibCheck": true,
16
+ "declaration": true,
17
+ },
18
+ "exclude": [
19
+ "node_modules",
20
+ "tmp",
21
+ "jest.config.ts",
22
+ "src/**/*.spec.ts",
23
+ "src/**/*.test.ts"
24
+ ],
25
+ "include": ["src/**/*.ts"]
26
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "declaration": true,
6
+ "types": ["node"]
7
+ },
8
+ "include": ["src/**/*.ts"],
9
+ "exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"]
10
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "types": ["jest", "node"]
7
+ },
8
+ "include": [
9
+ "jest.config.ts",
10
+ "src/**/*.test.ts",
11
+ "src/**/*.spec.ts",
12
+ "src/**/*.d.ts"
13
+ ]
14
+ }