grm-shared-library 1.1.117 → 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.
Files changed (41) hide show
  1. package/dist/cjs/modules/auth/dtos/delete-account-request-dto.js +61 -0
  2. package/dist/cjs/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
  3. package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js +13 -0
  4. package/dist/cjs/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
  5. package/dist/cjs/modules/auth/index.js +4 -2
  6. package/dist/cjs/modules/auth/index.js.map +1 -1
  7. package/dist/cjs/modules/auth/interfaces/delete-account-request.js +3 -0
  8. package/dist/cjs/modules/auth/interfaces/delete-account-request.js.map +1 -0
  9. package/dist/cjs/modules/dms/dtos/audio-file-upload-options.dto.js +85 -0
  10. package/dist/cjs/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -1
  11. package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js +43 -0
  12. package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -1
  13. package/dist/cjs/modules/dms/dtos/image-file-upload-options.dto.js +52 -0
  14. package/dist/cjs/modules/dms/dtos/image-file-upload-options.dto.js.map +1 -1
  15. package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js +31 -0
  16. package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js.map +1 -1
  17. package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js +65 -0
  18. package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -1
  19. package/dist/esm/modules/auth/dtos/delete-account-request-dto.js +57 -0
  20. package/dist/esm/modules/auth/dtos/delete-account-request-dto.js.map +1 -0
  21. package/dist/esm/modules/auth/enums/delete-account-reason.enum.js +10 -0
  22. package/dist/esm/modules/auth/enums/delete-account-reason.enum.js.map +1 -0
  23. package/dist/esm/modules/auth/index.js +4 -2
  24. package/dist/esm/modules/auth/index.js.map +1 -1
  25. package/dist/esm/modules/auth/interfaces/delete-account-request.js +2 -0
  26. package/dist/esm/modules/auth/interfaces/delete-account-request.js.map +1 -0
  27. package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js +85 -0
  28. package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -1
  29. package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js +43 -0
  30. package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -1
  31. package/dist/esm/modules/dms/dtos/image-file-upload-options.dto.js +52 -0
  32. package/dist/esm/modules/dms/dtos/image-file-upload-options.dto.js.map +1 -1
  33. package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js +31 -0
  34. package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js.map +1 -1
  35. package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js +65 -0
  36. package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -1
  37. package/dist/types/modules/auth/dtos/delete-account-request-dto.d.ts +7 -0
  38. package/dist/types/modules/auth/enums/delete-account-reason.enum.d.ts +8 -0
  39. package/dist/types/modules/auth/index.d.ts +3 -1
  40. package/dist/types/modules/auth/interfaces/delete-account-request.d.ts +7 -0
  41. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyG;AACzG,uEAA2D;AAE3D,MAAa,yBAAyB;CAqBrC;AArBD,8DAqBC;AAlBG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACa;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2DACO;AAGvB,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAJG;IADC,IAAA,wBAAM,EAAC,4BAAQ,CAAC;;+CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;kDACC"}
1
+ {"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyG;AACzG,6CAAmE;AACnE,uEAA2D;AAE3D,MAAa,yBAAyB;CA0CrC;AA1CD,8DA0CC;AAnCG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,EAAE;KACd,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACa;AAUxB;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,CAAC,eAAe,EAAE,WAAW,EAAE,MAAM,CAAC;QAC/C,IAAI,EAAE,CAAC,MAAM,CAAC;KACjB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAQhB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,0CAA0C;KACtD,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACU;AAQrB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2DACO;AAGvB,MAAa,iBAAiB;CAe7B;AAfD,8CAeC;AARG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,4BAAQ;QACd,OAAO,EAAE,4BAAQ,CAAC,KAAK;KAC1B,CAAC;IACD,IAAA,wBAAM,EAAC,4BAAQ,CAAC;;+CACD;AAOhB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,8JAA8J;QAC3K,OAAO,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE;KAC7D,CAAC;IACD,IAAA,4BAAU,GAAE;;kDACC"}
@@ -11,61 +11,110 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.VideoFileUploadOptionsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const swagger_1 = require("@nestjs/swagger");
14
15
  class VideoFileUploadOptionsDto {
15
16
  }
16
17
  exports.VideoFileUploadOptionsDto = VideoFileUploadOptionsDto;
17
18
  __decorate([
19
+ (0, swagger_1.ApiPropertyOptional)({
20
+ description: 'Destination folder path for the video',
21
+ example: 'videos/training/2024',
22
+ }),
18
23
  (0, class_validator_1.IsString)(),
19
24
  (0, class_validator_1.IsOptional)(),
20
25
  __metadata("design:type", String)
21
26
  ], VideoFileUploadOptionsDto.prototype, "folder", void 0);
22
27
  __decorate([
28
+ (0, swagger_1.ApiPropertyOptional)({
29
+ description: 'Maximum file size allowed in megabytes',
30
+ example: 100,
31
+ }),
23
32
  (0, class_validator_1.IsNumber)(),
24
33
  (0, class_validator_1.IsOptional)(),
25
34
  __metadata("design:type", Number)
26
35
  ], VideoFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
27
36
  __decorate([
37
+ (0, swagger_1.ApiPropertyOptional)({
38
+ description: 'Allowed MIME types for video files',
39
+ example: ['video/mp4', 'video/webm', 'video/quicktime'],
40
+ type: [String],
41
+ }),
28
42
  (0, class_validator_1.IsString)({ each: true }),
29
43
  (0, class_validator_1.IsOptional)(),
30
44
  __metadata("design:type", Array)
31
45
  ], VideoFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
32
46
  __decorate([
47
+ (0, swagger_1.ApiPropertyOptional)({
48
+ description: 'Whether the video should be publicly accessible',
49
+ example: false,
50
+ }),
33
51
  (0, class_validator_1.IsBoolean)(),
34
52
  (0, class_validator_1.IsOptional)(),
35
53
  __metadata("design:type", Boolean)
36
54
  ], VideoFileUploadOptionsDto.prototype, "isPublic", void 0);
37
55
  __decorate([
56
+ (0, swagger_1.ApiPropertyOptional)({
57
+ description: 'Tags for categorizing and searching the video',
58
+ example: ['training', 'tutorial', 'onboarding'],
59
+ type: [String],
60
+ }),
38
61
  (0, class_validator_1.IsArray)(),
39
62
  (0, class_validator_1.IsString)({ each: true }),
40
63
  (0, class_validator_1.IsOptional)(),
41
64
  __metadata("design:type", Array)
42
65
  ], VideoFileUploadOptionsDto.prototype, "tags", void 0);
43
66
  __decorate([
67
+ (0, swagger_1.ApiPropertyOptional)({
68
+ description: 'Title of the video',
69
+ example: 'Employee Onboarding Tutorial - Part 1',
70
+ }),
44
71
  (0, class_validator_1.IsString)(),
45
72
  (0, class_validator_1.IsOptional)(),
46
73
  __metadata("design:type", String)
47
74
  ], VideoFileUploadOptionsDto.prototype, "title", void 0);
48
75
  __decorate([
76
+ (0, swagger_1.ApiPropertyOptional)({
77
+ description: 'Detailed description of the video content',
78
+ example: 'Comprehensive guide for new employees covering company policies',
79
+ }),
49
80
  (0, class_validator_1.IsString)(),
50
81
  (0, class_validator_1.IsOptional)(),
51
82
  __metadata("design:type", String)
52
83
  ], VideoFileUploadOptionsDto.prototype, "description", void 0);
53
84
  __decorate([
85
+ (0, swagger_1.ApiPropertyOptional)({
86
+ description: 'Whether to automatically generate a thumbnail from the video',
87
+ example: true,
88
+ }),
54
89
  (0, class_validator_1.IsBoolean)(),
55
90
  (0, class_validator_1.IsOptional)(),
56
91
  __metadata("design:type", Boolean)
57
92
  ], VideoFileUploadOptionsDto.prototype, "generateThumbnail", void 0);
58
93
  __decorate([
94
+ (0, swagger_1.ApiPropertyOptional)({
95
+ description: 'Whether to generate a short preview clip',
96
+ example: true,
97
+ }),
59
98
  (0, class_validator_1.IsBoolean)(),
60
99
  (0, class_validator_1.IsOptional)(),
61
100
  __metadata("design:type", Boolean)
62
101
  ], VideoFileUploadOptionsDto.prototype, "generatePreview", void 0);
63
102
  __decorate([
103
+ (0, swagger_1.ApiPropertyOptional)({
104
+ description: 'Whether to enable video transcoding to multiple formats',
105
+ example: true,
106
+ }),
64
107
  (0, class_validator_1.IsBoolean)(),
65
108
  (0, class_validator_1.IsOptional)(),
66
109
  __metadata("design:type", Boolean)
67
110
  ], VideoFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
68
111
  __decorate([
112
+ (0, swagger_1.ApiPropertyOptional)({
113
+ description: 'Target quality levels for transcoded videos',
114
+ example: ['1080p', '720p', '480p'],
115
+ enum: ['1080p', '720p', '480p', '360p', '240p'],
116
+ isArray: true,
117
+ }),
69
118
  (0, class_validator_1.IsArray)(),
70
119
  (0, class_validator_1.IsString)({ each: true }),
71
120
  (0, class_validator_1.IsOptional)(),
@@ -73,21 +122,37 @@ __decorate([
73
122
  __metadata("design:type", Array)
74
123
  ], VideoFileUploadOptionsDto.prototype, "targetQualities", void 0);
75
124
  __decorate([
125
+ (0, swagger_1.ApiPropertyOptional)({
126
+ description: 'Whether to enable adaptive streaming capabilities',
127
+ example: true,
128
+ }),
76
129
  (0, class_validator_1.IsBoolean)(),
77
130
  (0, class_validator_1.IsOptional)(),
78
131
  __metadata("design:type", Boolean)
79
132
  ], VideoFileUploadOptionsDto.prototype, "enableStreaming", void 0);
80
133
  __decorate([
134
+ (0, swagger_1.ApiPropertyOptional)({
135
+ description: 'Whether to preserve the original filename',
136
+ example: false,
137
+ }),
81
138
  (0, class_validator_1.IsBoolean)(),
82
139
  (0, class_validator_1.IsOptional)(),
83
140
  __metadata("design:type", Boolean)
84
141
  ], VideoFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
85
142
  __decorate([
143
+ (0, swagger_1.ApiProperty)({
144
+ description: 'ID of the user uploading the video',
145
+ example: 1,
146
+ }),
86
147
  (0, class_validator_1.IsNotEmpty)(),
87
148
  (0, class_validator_1.IsNumber)(),
88
149
  __metadata("design:type", Number)
89
150
  ], VideoFileUploadOptionsDto.prototype, "userId", void 0);
90
151
  __decorate([
152
+ (0, swagger_1.ApiProperty)({
153
+ description: 'ID of the organization the video belongs to',
154
+ example: 12,
155
+ }),
91
156
  (0, class_validator_1.IsNotEmpty)(),
92
157
  (0, class_validator_1.IsNumber)(),
93
158
  __metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AAEvG,MAAa,yBAAyB;CA+DrC;AA/DD,8DA+DC;AA5DG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;mEACe;AAI5B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACM;AAKnB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;uDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAIrB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACe;AAI5B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACa;AAI1B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACe;AAM5B;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACE;AAIlE;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACa;AAI1B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACkB;AAI/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACa"}
1
+ {"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6CAAmE;AAEnE,MAAa,yBAAyB;CA+HrC;AA/HD,8DA+HC;AAxHG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACG;AAQhB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,GAAG;KACf,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,GAAE;;yDACK;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,EAAE;KACd,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACa"}
@@ -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":""}
@@ -9,14 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { IsOptional, IsString, IsNumber, IsBoolean, IsArray, IsEnum, Min, Max, IsNotEmpty } from 'class-validator';
11
11
  import { Transform, Type } from 'class-transformer';
12
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
12
13
  export class AudioFileUploadOptionsDto {
13
14
  }
14
15
  __decorate([
16
+ ApiPropertyOptional({
17
+ description: 'Destination folder path for the audio file',
18
+ example: 'audio/podcasts/2024',
19
+ }),
15
20
  IsOptional(),
16
21
  IsString(),
17
22
  __metadata("design:type", String)
18
23
  ], AudioFileUploadOptionsDto.prototype, "folder", void 0);
19
24
  __decorate([
25
+ ApiPropertyOptional({
26
+ description: 'Maximum file size allowed in megabytes (1-200 MB)',
27
+ minimum: 1,
28
+ maximum: 200,
29
+ example: 50,
30
+ }),
20
31
  IsOptional(),
21
32
  IsNumber(),
22
33
  Min(1),
@@ -26,44 +37,80 @@ __decorate([
26
37
  __metadata("design:type", Number)
27
38
  ], AudioFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
28
39
  __decorate([
40
+ ApiPropertyOptional({
41
+ description: 'Allowed MIME types for audio files',
42
+ example: ['audio/mpeg', 'audio/wav', 'audio/flac', 'audio/aac'],
43
+ type: [String],
44
+ }),
29
45
  IsOptional(),
30
46
  IsArray(),
31
47
  IsString({ each: true }),
32
48
  __metadata("design:type", Array)
33
49
  ], AudioFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
34
50
  __decorate([
51
+ ApiPropertyOptional({
52
+ description: 'Whether the audio file should be publicly accessible',
53
+ example: false,
54
+ }),
35
55
  IsOptional(),
36
56
  IsBoolean(),
37
57
  Transform(({ value }) => value === 'true' || value === true),
38
58
  __metadata("design:type", Boolean)
39
59
  ], AudioFileUploadOptionsDto.prototype, "isPublic", void 0);
40
60
  __decorate([
61
+ ApiPropertyOptional({
62
+ description: 'Tags for categorizing and searching the audio file',
63
+ example: ['podcast', 'interview', 'music'],
64
+ type: [String],
65
+ }),
41
66
  IsOptional(),
42
67
  IsArray(),
43
68
  IsString({ each: true }),
44
69
  __metadata("design:type", Array)
45
70
  ], AudioFileUploadOptionsDto.prototype, "tags", void 0);
46
71
  __decorate([
72
+ ApiPropertyOptional({
73
+ description: 'Title of the audio file',
74
+ example: 'Tech Trends 2024 - Episode 42',
75
+ }),
47
76
  IsOptional(),
48
77
  IsString(),
49
78
  __metadata("design:type", String)
50
79
  ], AudioFileUploadOptionsDto.prototype, "title", void 0);
51
80
  __decorate([
81
+ ApiPropertyOptional({
82
+ description: 'Artist or creator of the audio content',
83
+ example: 'John Doe',
84
+ }),
52
85
  IsOptional(),
53
86
  IsString(),
54
87
  __metadata("design:type", String)
55
88
  ], AudioFileUploadOptionsDto.prototype, "artist", void 0);
56
89
  __decorate([
90
+ ApiPropertyOptional({
91
+ description: 'Album name if the audio is part of an album',
92
+ example: 'Greatest Hits 2024',
93
+ }),
57
94
  IsOptional(),
58
95
  IsString(),
59
96
  __metadata("design:type", String)
60
97
  ], AudioFileUploadOptionsDto.prototype, "album", void 0);
61
98
  __decorate([
99
+ ApiPropertyOptional({
100
+ description: 'Genre or category of the audio content',
101
+ example: 'Podcast',
102
+ }),
62
103
  IsOptional(),
63
104
  IsString(),
64
105
  __metadata("design:type", String)
65
106
  ], AudioFileUploadOptionsDto.prototype, "genre", void 0);
66
107
  __decorate([
108
+ ApiPropertyOptional({
109
+ description: 'Year of release or recording (1900-2100)',
110
+ minimum: 1900,
111
+ maximum: 2100,
112
+ example: 2024,
113
+ }),
67
114
  IsOptional(),
68
115
  IsNumber(),
69
116
  Min(1900),
@@ -72,52 +119,90 @@ __decorate([
72
119
  __metadata("design:type", Number)
73
120
  ], AudioFileUploadOptionsDto.prototype, "year", void 0);
74
121
  __decorate([
122
+ ApiPropertyOptional({
123
+ description: 'Detailed description of the audio content',
124
+ example: 'An in-depth discussion about emerging technology trends',
125
+ }),
75
126
  IsOptional(),
76
127
  IsString(),
77
128
  __metadata("design:type", String)
78
129
  ], AudioFileUploadOptionsDto.prototype, "description", void 0);
79
130
  __decorate([
131
+ ApiPropertyOptional({
132
+ description: 'Whether to generate a waveform visualization for the audio',
133
+ example: true,
134
+ }),
80
135
  IsOptional(),
81
136
  IsBoolean(),
82
137
  Transform(({ value }) => value === 'true' || value === true),
83
138
  __metadata("design:type", Boolean)
84
139
  ], AudioFileUploadOptionsDto.prototype, "generateWaveform", void 0);
85
140
  __decorate([
141
+ ApiPropertyOptional({
142
+ description: 'Whether to extract embedded cover art from the audio file',
143
+ example: true,
144
+ }),
86
145
  IsOptional(),
87
146
  IsBoolean(),
88
147
  Transform(({ value }) => value === 'true' || value === true),
89
148
  __metadata("design:type", Boolean)
90
149
  ], AudioFileUploadOptionsDto.prototype, "extractCoverArt", void 0);
91
150
  __decorate([
151
+ ApiPropertyOptional({
152
+ description: 'Whether to enable audio transcoding to multiple formats',
153
+ example: false,
154
+ }),
92
155
  IsOptional(),
93
156
  IsBoolean(),
94
157
  Transform(({ value }) => value === 'true' || value === true),
95
158
  __metadata("design:type", Boolean)
96
159
  ], AudioFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
97
160
  __decorate([
161
+ ApiPropertyOptional({
162
+ description: 'Target quality levels for transcoded audio files',
163
+ example: ['high', 'medium'],
164
+ enum: ['high', 'medium', 'low'],
165
+ isArray: true,
166
+ }),
98
167
  IsOptional(),
99
168
  IsArray(),
100
169
  IsEnum(['high', 'medium', 'low'], { each: true }),
101
170
  __metadata("design:type", Array)
102
171
  ], AudioFileUploadOptionsDto.prototype, "targetQualities", void 0);
103
172
  __decorate([
173
+ ApiPropertyOptional({
174
+ description: 'Whether to enable streaming capabilities for the audio file',
175
+ example: true,
176
+ }),
104
177
  IsOptional(),
105
178
  IsBoolean(),
106
179
  Transform(({ value }) => value === 'true' || value === true),
107
180
  __metadata("design:type", Boolean)
108
181
  ], AudioFileUploadOptionsDto.prototype, "enableStreaming", void 0);
109
182
  __decorate([
183
+ ApiPropertyOptional({
184
+ description: 'Whether to preserve the original filename',
185
+ example: false,
186
+ }),
110
187
  IsOptional(),
111
188
  IsBoolean(),
112
189
  Transform(({ value }) => value === 'true' || value === true),
113
190
  __metadata("design:type", Boolean)
114
191
  ], AudioFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
115
192
  __decorate([
193
+ ApiProperty({
194
+ description: 'ID of the user uploading the audio file',
195
+ example: 1,
196
+ }),
116
197
  IsNotEmpty(),
117
198
  IsNumber(),
118
199
  __metadata("design:type", Number)
119
200
  ], AudioFileUploadOptionsDto.prototype, "userId", void 0);
120
201
  __decorate([
202
+ ApiProperty({
203
+ description: 'ID of the organization the audio file belongs to',
204
+ example: 12,
205
+ }),
121
206
  IsNotEmpty(),
122
207
  IsNumber(),
123
208
  __metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"audio-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/audio-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,yBAAyB;CA4FrC;AAzFG;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAOhB;IALC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,CAAC;IACN,GAAG,CAAC,GAAG,CAAC,CAAC,4BAA4B;;IACrC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8DACE;AAKrB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,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C,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACF;AAKhD;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;kEACnC;AAK1B;IAHC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;;uEAC9B;AAK/B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;iEACa"}
1
+ {"version":3,"file":"audio-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/audio-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,OAAO,yBAAyB;CA+KrC;AAxKG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,qBAAqB;KACjC,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAahB;IAXC,mBAAmB,CAAC;QACjB,WAAW,EAAE,mDAAmD;QAChE,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,EAAE;KACd,CAAC;IACD,UAAU,EAAE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 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { IsArray, IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
11
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
11
12
  export class DocumentFileUploadOptionsDto {
12
13
  }
13
14
  __decorate([
15
+ ApiPropertyOptional({
16
+ description: 'Destination folder path for the document',
17
+ example: 'documents/reports/2024',
18
+ }),
14
19
  IsString(),
15
20
  IsOptional(),
16
21
  __metadata("design:type", String)
17
22
  ], DocumentFileUploadOptionsDto.prototype, "folder", void 0);
18
23
  __decorate([
24
+ ApiPropertyOptional({
25
+ description: 'Maximum file size allowed in megabytes',
26
+ example: 10,
27
+ }),
19
28
  IsNumber(),
20
29
  IsOptional(),
21
30
  __metadata("design:type", Number)
22
31
  ], DocumentFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
23
32
  __decorate([
33
+ ApiPropertyOptional({
34
+ description: 'Allowed MIME types for document files',
35
+ example: ['application/pdf', 'application/msword', 'text/plain'],
36
+ type: [String],
37
+ }),
24
38
  IsString({ each: true }),
25
39
  IsOptional(),
26
40
  __metadata("design:type", Array)
27
41
  ], DocumentFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
28
42
  __decorate([
43
+ ApiPropertyOptional({
44
+ description: 'Whether the document should be publicly accessible',
45
+ example: false,
46
+ }),
29
47
  IsBoolean(),
30
48
  IsOptional(),
31
49
  __metadata("design:type", Boolean)
32
50
  ], DocumentFileUploadOptionsDto.prototype, "isPublic", void 0);
33
51
  __decorate([
52
+ ApiPropertyOptional({
53
+ description: 'Tags for categorizing and searching the document',
54
+ example: ['report', 'quarterly', 'financial'],
55
+ type: [String],
56
+ }),
34
57
  IsArray(),
35
58
  IsString({ each: true }),
36
59
  IsOptional(),
37
60
  __metadata("design:type", Array)
38
61
  ], DocumentFileUploadOptionsDto.prototype, "tags", void 0);
39
62
  __decorate([
63
+ ApiPropertyOptional({
64
+ description: 'Description of the document content',
65
+ example: 'Q4 2024 Financial Report',
66
+ }),
40
67
  IsString(),
41
68
  IsOptional(),
42
69
  __metadata("design:type", String)
43
70
  ], DocumentFileUploadOptionsDto.prototype, "description", void 0);
44
71
  __decorate([
72
+ ApiPropertyOptional({
73
+ description: 'Whether to preserve the original filename',
74
+ example: true,
75
+ }),
45
76
  IsBoolean(),
46
77
  IsOptional(),
47
78
  __metadata("design:type", Boolean)
48
79
  ], DocumentFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
49
80
  __decorate([
81
+ ApiPropertyOptional({
82
+ description: 'Whether to enable version control for the document',
83
+ example: true,
84
+ }),
50
85
  IsBoolean(),
51
86
  IsOptional(),
52
87
  __metadata("design:type", Boolean)
53
88
  ], DocumentFileUploadOptionsDto.prototype, "enableVersioning", void 0);
54
89
  __decorate([
90
+ ApiProperty({
91
+ description: 'ID of the user uploading the document',
92
+ example: 1,
93
+ }),
55
94
  IsNotEmpty(),
56
95
  IsNumber(),
57
96
  __metadata("design:type", Number)
58
97
  ], DocumentFileUploadOptionsDto.prototype, "userId", void 0);
59
98
  __decorate([
99
+ ApiProperty({
100
+ description: 'ID of the organization the document belongs to',
101
+ example: 12,
102
+ }),
60
103
  IsNotEmpty(),
61
104
  IsNumber(),
62
105
  __metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"document-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/document-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,OAAO,4BAA4B;CAyCxC;AAtCG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACQ;AAIrB;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;sEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;8DACM;AAKnB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;0DACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;0EACkB;AAI/B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;sEACc;AAI3B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DACK;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;oEACa"}
1
+ {"version":3,"file":"document-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/document-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,OAAO,4BAA4B;CAmFxC;AA5EG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,wBAAwB;KACpC,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACG;AAQhB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,EAAE;KACd,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACQ;AASrB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,YAAY,CAAC;QAChE,IAAI,EAAE,CAAC,MA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