grm-shared-library 1.1.118 → 1.1.119
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/dist/cjs/modules/auth/dtos/delete-account-request-dto.js +61 -0
- package/dist/cjs/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
- package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js +13 -0
- package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
- package/dist/cjs/modules/auth/index.js +4 -2
- package/dist/cjs/modules/auth/index.js.map +1 -1
- package/dist/cjs/modules/auth/interfaces/delete-account-request.js +3 -0
- package/dist/cjs/modules/auth/interfaces/delete-account-request.js.map +1 -0
- package/dist/esm/modules/auth/dtos/delete-account-request-dto.js +57 -0
- package/dist/esm/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
- package/dist/esm/modules/auth/enums/delete-account-reason.enum.js +10 -0
- package/dist/esm/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
- package/dist/esm/modules/auth/index.js +4 -2
- package/dist/esm/modules/auth/index.js.map +1 -1
- package/dist/esm/modules/auth/interfaces/delete-account-request.js +2 -0
- package/dist/esm/modules/auth/interfaces/delete-account-request.js.map +1 -0
- package/dist/types/modules/auth/dtos/delete-account-request-dto.d.ts +7 -0
- package/dist/types/modules/auth/enums/delete-account-reason.enum.d.ts +8 -0
- package/dist/types/modules/auth/index.d.ts +3 -1
- package/dist/types/modules/auth/interfaces/delete-account-request.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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
|
-
//
|
|
34
|
-
__exportStar(require("./
|
|
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;
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"delete-account-request.js","sourceRoot":"","sources":["../../../../../src/modules/auth/interfaces/delete-account-request.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
-
//
|
|
18
|
-
export * from './
|
|
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;
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"delete-account-request.js","sourceRoot":"","sources":["../../../../../src/modules/auth/interfaces/delete-account-request.ts"],"names":[],"mappings":""}
|
|
@@ -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 './
|
|
17
|
+
export * from './interfaces/delete-account-request';
|