grm-shared-library 1.1.118 → 1.1.120

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 (26) hide show
  1. package/dist/cjs/kafka/topics.js +2 -0
  2. package/dist/cjs/kafka/topics.js.map +1 -1
  3. package/dist/cjs/modules/auth/dtos/delete-account-request-dto.js +61 -0
  4. package/dist/cjs/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
  5. package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js +13 -0
  6. package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
  7. package/dist/cjs/modules/auth/index.js +4 -2
  8. package/dist/cjs/modules/auth/index.js.map +1 -1
  9. package/dist/cjs/modules/auth/interfaces/delete-account-request.js +3 -0
  10. package/dist/cjs/modules/auth/interfaces/delete-account-request.js.map +1 -0
  11. package/dist/esm/kafka/topics.js +2 -0
  12. package/dist/esm/kafka/topics.js.map +1 -1
  13. package/dist/esm/modules/auth/dtos/delete-account-request-dto.js +57 -0
  14. package/dist/esm/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
  15. package/dist/esm/modules/auth/enums/delete-account-reason.enum.js +10 -0
  16. package/dist/esm/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
  17. package/dist/esm/modules/auth/index.js +4 -2
  18. package/dist/esm/modules/auth/index.js.map +1 -1
  19. package/dist/esm/modules/auth/interfaces/delete-account-request.js +2 -0
  20. package/dist/esm/modules/auth/interfaces/delete-account-request.js.map +1 -0
  21. package/dist/types/kafka/topics.d.ts +2 -0
  22. package/dist/types/modules/auth/dtos/delete-account-request-dto.d.ts +7 -0
  23. package/dist/types/modules/auth/enums/delete-account-reason.enum.d.ts +8 -0
  24. package/dist/types/modules/auth/index.d.ts +3 -1
  25. package/dist/types/modules/auth/interfaces/delete-account-request.d.ts +7 -0
  26. package/package.json +1 -1
@@ -6,6 +6,8 @@ exports.KAFKA_TOPICS = {
6
6
  USER_REGISTERED: 'user.registered',
7
7
  USER_LOGGED_IN: 'user.logged.in',
8
8
  USER_LOGGED_OUT: 'user.logged.out',
9
+ USER_ACCOUNT_DELETE_REQUESTED: 'user.account.delete.requested',
10
+ USER_ACCOUNT_DELETE_CONFIRMED: 'user.account.delete.confirmed',
9
11
  // User
10
12
  USER_CREATED: 'user.created',
11
13
  USER_UPDATED: 'user.updated',
@@ -1 +1 @@
1
- {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/kafka/topics.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IACxB,OAAO;IACP,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,OAAO;IACP,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,MAAM;IACN,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,MAAM;IACN,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW;IACX,cAAc,EAAE,gBAAgB;IAChC,WAAW;IACX,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,2BAA2B,EAAE,6BAA6B;IAC1D,yCAAyC,EAAE,2CAA2C;CACzF,CAAC"}
1
+ {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/kafka/topics.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IACxB,OAAO;IACP,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,6BAA6B,EAAE,+BAA+B;IAC9D,6BAA6B,EAAE,+BAA+B;IAC9D,OAAO;IACP,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,MAAM;IACN,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,MAAM;IACN,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW;IACX,cAAc,EAAE,gBAAgB;IAChC,WAAW;IACX,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,2BAA2B,EAAE,6BAA6B;IAC1D,yCAAyC,EAAE,2CAA2C;CACzF,CAAC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DeleteAccountRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const delete_account_reason_enum_1 = require("../enums/delete-account-reason.enum");
16
+ class DeleteAccountRequestDto {
17
+ }
18
+ exports.DeleteAccountRequestDto = DeleteAccountRequestDto;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({
21
+ description: 'The ID of the user requesting account deletion',
22
+ example: 123,
23
+ type: Number
24
+ }),
25
+ (0, class_validator_1.IsNumber)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", Number)
28
+ ], DeleteAccountRequestDto.prototype, "userId", void 0);
29
+ __decorate([
30
+ (0, swagger_1.ApiProperty)({
31
+ description: 'The reason for account deletion',
32
+ example: 'privacy',
33
+ enum: delete_account_reason_enum_1.DeleteAccountReason
34
+ }),
35
+ (0, class_validator_1.IsEnum)(delete_account_reason_enum_1.DeleteAccountReason),
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ __metadata("design:type", String)
38
+ ], DeleteAccountRequestDto.prototype, "reason", void 0);
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)({
41
+ description: 'Additional comments or feedback about the deletion request',
42
+ example: 'I found the service difficult to navigate',
43
+ required: false,
44
+ maxLength: 500
45
+ }),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.MaxLength)(500),
49
+ __metadata("design:type", String)
50
+ ], DeleteAccountRequestDto.prototype, "additionalComments", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({
53
+ description: 'Email address confirmation for verification',
54
+ example: 'user@example.com',
55
+ format: 'email'
56
+ }),
57
+ (0, class_validator_1.IsEmail)(),
58
+ (0, class_validator_1.IsNotEmpty)(),
59
+ __metadata("design:type", String)
60
+ ], DeleteAccountRequestDto.prototype, "confirmEmail", void 0);
61
+ //# sourceMappingURL=delete-account-request-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-request-dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/delete-account-request-dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyG;AACzG,6CAA8C;AAC9C,oFAA0E;AAE1E,MAAa,uBAAuB;CAsCnC;AAtCD,0DAsCC;AA9BG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,GAAG;QACZ,IAAI,EAAE,MAAM;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACG;AAShB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,gDAAmB;KAC5B,CAAC;IACD,IAAA,wBAAM,EAAC,gDAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;uDACgB;AAW7B;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,2CAA2C;QACpD,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,GAAG;KACjB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;mEACa;AAS5B;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;6DACS"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAccountReason = void 0;
4
+ var DeleteAccountReason;
5
+ (function (DeleteAccountReason) {
6
+ DeleteAccountReason["PRIVACY"] = "Privacy Concerns";
7
+ DeleteAccountReason["NO_LONGER_NEEDED"] = "No Longer Needed";
8
+ DeleteAccountReason["SWITCHING"] = "Switching to Another Service";
9
+ DeleteAccountReason["DIFFICULT_TO_USE"] = "Difficult to Use";
10
+ DeleteAccountReason["SECURITY"] = "Security Issues";
11
+ DeleteAccountReason["OTHER"] = "Other";
12
+ })(DeleteAccountReason || (exports.DeleteAccountReason = DeleteAccountReason = {}));
13
+ //# sourceMappingURL=delete-account-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-reason.enum.js","sourceRoot":"","sources":["../../../../../src/modules/auth/enums/delete-account-reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,mDAA4B,CAAA;IAC5B,4DAAqC,CAAA;IACrC,iEAA0C,CAAA;IAC1C,4DAAqC,CAAA;IACrC,mDAA4B,CAAA;IAC5B,sCAAe,CAAA;AACnB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B"}
@@ -28,8 +28,10 @@ __exportStar(require("./dtos/login-mobile-user.dto"), exports);
28
28
  __exportStar(require("./dtos/register-mobile-user.dto"), exports);
29
29
  __exportStar(require("./dtos/login-response.dto"), exports);
30
30
  __exportStar(require("./dtos/register-response.dto"), exports);
31
+ __exportStar(require("./dtos/delete-account-request-dto"), exports);
31
32
  // Enums
33
+ __exportStar(require("./enums/delete-account-reason.enum"), exports);
32
34
  __exportStar(require("./enums/otp-action"), exports);
33
- // Enums
34
- __exportStar(require("./enums/otp-action"), exports);
35
+ // Interfaces
36
+ __exportStar(require("./interfaces/delete-account-request"), exports);
35
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,sDAAoC;AACpC,mDAAiC;AACjC,4DAA0C;AAC1C,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,+DAA6C;AAE7C,QAAQ;AACR,qDAAmC;AAEnC,QAAQ;AACR,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,sDAAoC;AACpC,mDAAiC;AACjC,4DAA0C;AAC1C,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,+DAA6C;AAC7C,oEAAkD;AAElD,QAAQ;AACR,qEAAmD;AACnD,qDAAmC;AAEnC,aAAa;AACb,sEAAoD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=delete-account-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-request.js","sourceRoot":"","sources":["../../../../../src/modules/auth/interfaces/delete-account-request.ts"],"names":[],"mappings":""}
@@ -3,6 +3,8 @@ export const KAFKA_TOPICS = {
3
3
  USER_REGISTERED: 'user.registered',
4
4
  USER_LOGGED_IN: 'user.logged.in',
5
5
  USER_LOGGED_OUT: 'user.logged.out',
6
+ USER_ACCOUNT_DELETE_REQUESTED: 'user.account.delete.requested',
7
+ USER_ACCOUNT_DELETE_CONFIRMED: 'user.account.delete.confirmed',
6
8
  // User
7
9
  USER_CREATED: 'user.created',
8
10
  USER_UPDATED: 'user.updated',
@@ -1 +1 @@
1
- {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/kafka/topics.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,OAAO;IACP,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,OAAO;IACP,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,MAAM;IACN,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,MAAM;IACN,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW;IACX,cAAc,EAAE,gBAAgB;IAChC,WAAW;IACX,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,2BAA2B,EAAE,6BAA6B;IAC1D,yCAAyC,EAAE,2CAA2C;CACzF,CAAC"}
1
+ {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/kafka/topics.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,OAAO;IACP,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,6BAA6B,EAAE,+BAA+B;IAC9D,6BAA6B,EAAE,+BAA+B;IAC9D,OAAO;IACP,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,MAAM;IACN,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,MAAM;IACN,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW;IACX,cAAc,EAAE,gBAAgB;IAChC,WAAW;IACX,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,2BAA2B,EAAE,6BAA6B;IAC1D,yCAAyC,EAAE,2CAA2C;CACzF,CAAC"}
@@ -0,0 +1,57 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
11
+ import { ApiProperty } from "@nestjs/swagger";
12
+ import { DeleteAccountReason } from "../enums/delete-account-reason.enum";
13
+ export class DeleteAccountRequestDto {
14
+ }
15
+ __decorate([
16
+ ApiProperty({
17
+ description: 'The ID of the user requesting account deletion',
18
+ example: 123,
19
+ type: Number
20
+ }),
21
+ IsNumber(),
22
+ IsNotEmpty(),
23
+ __metadata("design:type", Number)
24
+ ], DeleteAccountRequestDto.prototype, "userId", void 0);
25
+ __decorate([
26
+ ApiProperty({
27
+ description: 'The reason for account deletion',
28
+ example: 'privacy',
29
+ enum: DeleteAccountReason
30
+ }),
31
+ IsEnum(DeleteAccountReason),
32
+ IsNotEmpty(),
33
+ __metadata("design:type", String)
34
+ ], DeleteAccountRequestDto.prototype, "reason", void 0);
35
+ __decorate([
36
+ ApiProperty({
37
+ description: 'Additional comments or feedback about the deletion request',
38
+ example: 'I found the service difficult to navigate',
39
+ required: false,
40
+ maxLength: 500
41
+ }),
42
+ IsString(),
43
+ IsOptional(),
44
+ MaxLength(500),
45
+ __metadata("design:type", String)
46
+ ], DeleteAccountRequestDto.prototype, "additionalComments", void 0);
47
+ __decorate([
48
+ ApiProperty({
49
+ description: 'Email address confirmation for verification',
50
+ example: 'user@example.com',
51
+ format: 'email'
52
+ }),
53
+ IsEmail(),
54
+ IsNotEmpty(),
55
+ __metadata("design:type", String)
56
+ ], DeleteAccountRequestDto.prototype, "confirmEmail", void 0);
57
+ //# sourceMappingURL=delete-account-request-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-request-dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/delete-account-request-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,OAAO,uBAAuB;CAsCnC;AA9BG;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,GAAG;QACZ,IAAI,EAAE,MAAM;KACf,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACG;AAShB;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,mBAAmB;KAC5B,CAAC;IACD,MAAM,CAAC,mBAAmB,CAAC;IAC3B,UAAU,EAAE;;uDACgB;AAW7B;IATC,WAAW,CAAC;QACT,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,2CAA2C;QACpD,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,GAAG;KACjB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,CAAC;;mEACa;AAS5B;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,OAAO,EAAE;IACT,UAAU,EAAE;;6DACS"}
@@ -0,0 +1,10 @@
1
+ export var DeleteAccountReason;
2
+ (function (DeleteAccountReason) {
3
+ DeleteAccountReason["PRIVACY"] = "Privacy Concerns";
4
+ DeleteAccountReason["NO_LONGER_NEEDED"] = "No Longer Needed";
5
+ DeleteAccountReason["SWITCHING"] = "Switching to Another Service";
6
+ DeleteAccountReason["DIFFICULT_TO_USE"] = "Difficult to Use";
7
+ DeleteAccountReason["SECURITY"] = "Security Issues";
8
+ DeleteAccountReason["OTHER"] = "Other";
9
+ })(DeleteAccountReason || (DeleteAccountReason = {}));
10
+ //# sourceMappingURL=delete-account-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-reason.enum.js","sourceRoot":"","sources":["../../../../../src/modules/auth/enums/delete-account-reason.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,mDAA4B,CAAA;IAC5B,4DAAqC,CAAA;IACrC,iEAA0C,CAAA;IAC1C,4DAAqC,CAAA;IACrC,mDAA4B,CAAA;IAC5B,sCAAe,CAAA;AACnB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B"}
@@ -12,8 +12,10 @@ export * from './dtos/login-mobile-user.dto';
12
12
  export * from './dtos/register-mobile-user.dto';
13
13
  export * from './dtos/login-response.dto';
14
14
  export * from './dtos/register-response.dto';
15
+ export * from './dtos/delete-account-request-dto';
15
16
  // Enums
17
+ export * from './enums/delete-account-reason.enum';
16
18
  export * from './enums/otp-action';
17
- // Enums
18
- export * from './enums/otp-action';
19
+ // Interfaces
20
+ export * from './interfaces/delete-account-request';
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAE7C,QAAQ;AACR,cAAc,oBAAoB,CAAC;AAEnC,QAAQ;AACR,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAElD,QAAQ;AACR,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AAEnC,aAAa;AACb,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=delete-account-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account-request.js","sourceRoot":"","sources":["../../../../../src/modules/auth/interfaces/delete-account-request.ts"],"names":[],"mappings":""}
@@ -2,6 +2,8 @@ export declare const KAFKA_TOPICS: {
2
2
  USER_REGISTERED: string;
3
3
  USER_LOGGED_IN: string;
4
4
  USER_LOGGED_OUT: string;
5
+ USER_ACCOUNT_DELETE_REQUESTED: string;
6
+ USER_ACCOUNT_DELETE_CONFIRMED: string;
5
7
  USER_CREATED: string;
6
8
  USER_UPDATED: string;
7
9
  USER_DELETED: string;
@@ -0,0 +1,7 @@
1
+ import { DeleteAccountReason } from "../enums/delete-account-reason.enum";
2
+ export declare class DeleteAccountRequestDto {
3
+ userId: number;
4
+ reason: DeleteAccountReason;
5
+ additionalComments?: string;
6
+ confirmEmail: string;
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum DeleteAccountReason {
2
+ PRIVACY = "Privacy Concerns",
3
+ NO_LONGER_NEEDED = "No Longer Needed",
4
+ SWITCHING = "Switching to Another Service",
5
+ DIFFICULT_TO_USE = "Difficult to Use",
6
+ SECURITY = "Security Issues",
7
+ OTHER = "Other"
8
+ }
@@ -11,5 +11,7 @@ export * from './dtos/login-mobile-user.dto';
11
11
  export * from './dtos/register-mobile-user.dto';
12
12
  export * from './dtos/login-response.dto';
13
13
  export * from './dtos/register-response.dto';
14
+ export * from './dtos/delete-account-request-dto';
15
+ export * from './enums/delete-account-reason.enum';
14
16
  export * from './enums/otp-action';
15
- export * from './enums/otp-action';
17
+ export * from './interfaces/delete-account-request';
@@ -0,0 +1,7 @@
1
+ import { DeleteAccountReason } from "../enums/delete-account-reason.enum";
2
+ export interface DeleteAccountRequest {
3
+ userId: number;
4
+ reason: DeleteAccountReason;
5
+ additionalComments?: string;
6
+ confirmEmail: string;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.118",
3
+ "version": "1.1.120",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",