@fiado/type-kit 3.95.0 → 3.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ import { PhotoContentType } from '../enums/PhotoContentType';
2
+ export declare class UploadProfilePhotoRequest {
3
+ /** Base64 puro (sin prefijo data:image/...) */
4
+ photoBase64: string;
5
+ /** MIME type de la imagen */
6
+ mimeType: PhotoContentType;
7
+ }
@@ -0,0 +1,29 @@
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.UploadProfilePhotoRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const PhotoContentType_1 = require("../enums/PhotoContentType");
16
+ class UploadProfilePhotoRequest {
17
+ }
18
+ exports.UploadProfilePhotoRequest = UploadProfilePhotoRequest;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], UploadProfilePhotoRequest.prototype, "photoBase64", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsEnum)(PhotoContentType_1.PhotoContentType),
28
+ __metadata("design:type", String)
29
+ ], UploadProfilePhotoRequest.prototype, "mimeType", void 0);
@@ -0,0 +1,4 @@
1
+ export interface UploadProfilePhotoResponse {
2
+ /** Presigned URL para acceder a la foto recien subida */
3
+ photoUrl: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,3 +21,5 @@ export * from './dtos/ListLeadGroupsResponse';
21
21
  export * from './dtos/GetPhotoUploadUrlRequest';
22
22
  export * from './dtos/PhotoUploadUrlResponse';
23
23
  export * from './dtos/DeletePhotoResponse';
24
+ export * from './dtos/UploadProfilePhotoRequest';
25
+ export * from './dtos/UploadProfilePhotoResponse';
@@ -42,3 +42,5 @@ __exportStar(require("./dtos/ListLeadGroupsResponse"), exports);
42
42
  __exportStar(require("./dtos/GetPhotoUploadUrlRequest"), exports);
43
43
  __exportStar(require("./dtos/PhotoUploadUrlResponse"), exports);
44
44
  __exportStar(require("./dtos/DeletePhotoResponse"), exports);
45
+ __exportStar(require("./dtos/UploadProfilePhotoRequest"), exports);
46
+ __exportStar(require("./dtos/UploadProfilePhotoResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.95.0",
3
+ "version": "3.96.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,11 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsString, IsNotEmpty, IsEnum } from 'class-validator';
3
+ import { PhotoContentType } from '../enums/PhotoContentType';
4
+
5
+ export class UploadProfilePhotoRequest {
6
+ /** Base64 puro (sin prefijo data:image/...) */
7
+ @Expose() @IsString() @IsNotEmpty() photoBase64!: string;
8
+
9
+ /** MIME type de la imagen */
10
+ @Expose() @IsEnum(PhotoContentType) mimeType!: PhotoContentType;
11
+ }
@@ -0,0 +1,4 @@
1
+ export interface UploadProfilePhotoResponse {
2
+ /** Presigned URL para acceder a la foto recien subida */
3
+ photoUrl: string;
4
+ }
@@ -30,3 +30,5 @@ export * from './dtos/ListLeadGroupsResponse';
30
30
  export * from './dtos/GetPhotoUploadUrlRequest';
31
31
  export * from './dtos/PhotoUploadUrlResponse';
32
32
  export * from './dtos/DeletePhotoResponse';
33
+ export * from './dtos/UploadProfilePhotoRequest';
34
+ export * from './dtos/UploadProfilePhotoResponse';