@ubs-platform/notify-common 2.0.1

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 (77) hide show
  1. package/.eslintrc.json +25 -0
  2. package/LICENSE +21 -0
  3. package/README.md +5 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +5 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/lib/dto/base/search-result.dto.d.ts +9 -0
  8. package/dist/lib/dto/base/search-result.dto.js +3 -0
  9. package/dist/lib/dto/base/search-result.dto.js.map +1 -0
  10. package/dist/lib/dto/email-template.dto.d.ts +5 -0
  11. package/dist/lib/dto/email-template.dto.js +3 -0
  12. package/dist/lib/dto/email-template.dto.js.map +1 -0
  13. package/dist/lib/dto/email-template.search.d.ts +5 -0
  14. package/dist/lib/dto/email-template.search.js +3 -0
  15. package/dist/lib/dto/email-template.search.js.map +1 -0
  16. package/dist/lib/dto/email.dto.d.ts +7 -0
  17. package/dist/lib/dto/email.dto.js +3 -0
  18. package/dist/lib/dto/email.dto.js.map +1 -0
  19. package/dist/lib/dto/error-consts.d.ts +7 -0
  20. package/dist/lib/dto/error-consts.js +12 -0
  21. package/dist/lib/dto/error-consts.js.map +1 -0
  22. package/dist/lib/dto/error-informations.d.ts +5 -0
  23. package/dist/lib/dto/error-informations.js +11 -0
  24. package/dist/lib/dto/error-informations.js.map +1 -0
  25. package/dist/lib/dto/expansion-input.dto.d.ts +4 -0
  26. package/dist/lib/dto/expansion-input.dto.js +3 -0
  27. package/dist/lib/dto/expansion-input.dto.js.map +1 -0
  28. package/dist/lib/dto/global-variable-rename.d.ts +4 -0
  29. package/dist/lib/dto/global-variable-rename.js +3 -0
  30. package/dist/lib/dto/global-variable-rename.js.map +1 -0
  31. package/dist/lib/dto/global-variable-search.dto.d.ts +4 -0
  32. package/dist/lib/dto/global-variable-search.dto.js +3 -0
  33. package/dist/lib/dto/global-variable-search.dto.js.map +1 -0
  34. package/dist/lib/dto/global-variable-write.dto.d.ts +5 -0
  35. package/dist/lib/dto/global-variable-write.dto.js +3 -0
  36. package/dist/lib/dto/global-variable-write.dto.js.map +1 -0
  37. package/dist/lib/dto/global-variable.d.ts +8 -0
  38. package/dist/lib/dto/global-variable.js +3 -0
  39. package/dist/lib/dto/global-variable.js.map +1 -0
  40. package/dist/lib/dto/index.d.ts +9 -0
  41. package/dist/lib/dto/index.js +13 -0
  42. package/dist/lib/dto/index.js.map +1 -0
  43. package/dist/lib/dto/password-change-dto.d.ts +4 -0
  44. package/dist/lib/dto/password-change-dto.js +3 -0
  45. package/dist/lib/dto/password-change-dto.js.map +1 -0
  46. package/dist/lib/dto/user-admin-dto.d.ts +11 -0
  47. package/dist/lib/dto/user-admin-dto.js +3 -0
  48. package/dist/lib/dto/user-admin-dto.js.map +1 -0
  49. package/dist/lib/dto/user-auth-status.model.d.ts +15 -0
  50. package/dist/lib/dto/user-auth-status.model.js +19 -0
  51. package/dist/lib/dto/user-auth-status.model.js.map +1 -0
  52. package/dist/lib/dto/user-auth.model.d.ts +4 -0
  53. package/dist/lib/dto/user-auth.model.js +3 -0
  54. package/dist/lib/dto/user-auth.model.js.map +1 -0
  55. package/dist/lib/dto/user-create-dto.d.ts +12 -0
  56. package/dist/lib/dto/user-create-dto.js +3 -0
  57. package/dist/lib/dto/user-create-dto.js.map +1 -0
  58. package/dist/lib/dto/user-dto.d.ts +10 -0
  59. package/dist/lib/dto/user-dto.js +3 -0
  60. package/dist/lib/dto/user-dto.js.map +1 -0
  61. package/dist/lib/dto/user-full-dto.d.ts +19 -0
  62. package/dist/lib/dto/user-full-dto.js +3 -0
  63. package/dist/lib/dto/user-full-dto.js.map +1 -0
  64. package/dist/lib/dto/user-general-info-dto.d.ts +12 -0
  65. package/dist/lib/dto/user-general-info-dto.js +3 -0
  66. package/dist/lib/dto/user-general-info-dto.js.map +1 -0
  67. package/dist/lib/dto/user-minimalized.dto.d.ts +5 -0
  68. package/dist/lib/dto/user-minimalized.dto.js +3 -0
  69. package/dist/lib/dto/user-minimalized.dto.js.map +1 -0
  70. package/dist/lib/dto/user-register.model.d.ts +7 -0
  71. package/dist/lib/dto/user-register.model.js +3 -0
  72. package/dist/lib/dto/user-register.model.js.map +1 -0
  73. package/jest.config.ts +11 -0
  74. package/package.json +1 -0
  75. package/tsconfig.json +26 -0
  76. package/tsconfig.lib.json +10 -0
  77. 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 UBS Platform
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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,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,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,9 @@
1
+ export * from './email-template.dto';
2
+ export * from './email-template.search';
3
+ export * from './email.dto';
4
+ export * from './expansion-input.dto';
5
+ export * from './global-variable';
6
+ export * from './global-variable-write.dto';
7
+ export * from './global-variable-rename';
8
+ export * from './global-variable-search.dto';
9
+ export * from './base/search-result.dto';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./email-template.dto"), exports);
5
+ tslib_1.__exportStar(require("./email-template.search"), exports);
6
+ tslib_1.__exportStar(require("./email.dto"), exports);
7
+ tslib_1.__exportStar(require("./expansion-input.dto"), exports);
8
+ tslib_1.__exportStar(require("./global-variable"), exports);
9
+ tslib_1.__exportStar(require("./global-variable-write.dto"), exports);
10
+ tslib_1.__exportStar(require("./global-variable-rename"), exports);
11
+ tslib_1.__exportStar(require("./global-variable-search.dto"), exports);
12
+ tslib_1.__exportStar(require("./base/search-result.dto"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/dto/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,kEAAwC;AACxC,sDAA4B;AAC5B,gEAAsC;AACtC,4DAAkC;AAClC,sEAA4C;AAC5C,mEAAyC;AACzC,uEAA6C;AAC7C,mEAAyC"}
@@ -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/notify-common", "version": "2.0.1", "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
+ }