tychat-contracts 1.0.43 → 1.0.44

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.
@@ -4,5 +4,6 @@ export declare class PresignedUrlResponseDto {
4
4
  key: string;
5
5
  expiresAt: number;
6
6
  expiresInSeconds: number;
7
+ storageId?: string;
7
8
  }
8
9
  //# sourceMappingURL=presigned-url-response.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presigned-url-response.dto.d.ts","sourceRoot":"","sources":["../../src/storage/presigned-url-response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAElC,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;IAGtB,GAAG,EAAE,MAAM,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAGZ,SAAS,EAAE,MAAM,CAAC;IAGlB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"presigned-url-response.dto.d.ts","sourceRoot":"","sources":["../../src/storage/presigned-url-response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAElC,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;IAGtB,GAAG,EAAE,MAAM,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAGZ,SAAS,EAAE,MAAM,CAAC;IAGlB,gBAAgB,EAAE,MAAM,CAAC;IAMzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -17,6 +17,7 @@ class PresignedUrlResponseDto {
17
17
  key;
18
18
  expiresAt;
19
19
  expiresInSeconds;
20
+ storageId;
20
21
  }
21
22
  exports.PresignedUrlResponseDto = PresignedUrlResponseDto;
22
23
  __decorate([
@@ -39,3 +40,10 @@ __decorate([
39
40
  (0, swagger_1.ApiProperty)({ description: 'Lifetime used for signing, in seconds' }),
40
41
  __metadata("design:type", Number)
41
42
  ], PresignedUrlResponseDto.prototype, "expiresInSeconds", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiPropertyOptional)({
45
+ description: 'Tenant DB row id (set on presign-upload after persisting metadata)',
46
+ example: '550e8400-e29b-41d4-a716-446655440000',
47
+ }),
48
+ __metadata("design:type", String)
49
+ ], PresignedUrlResponseDto.prototype, "storageId", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "DTOs compartilhados com class-validator (API e microserviços)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ApiProperty } from '@nestjs/swagger';
1
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
2
2
 
3
3
  export class PresignedUrlResponseDto {
4
4
  @ApiProperty({ description: 'HTTP method to use with the presigned URL', example: 'PUT' })
@@ -15,4 +15,10 @@ export class PresignedUrlResponseDto {
15
15
 
16
16
  @ApiProperty({ description: 'Lifetime used for signing, in seconds' })
17
17
  expiresInSeconds: number;
18
+
19
+ @ApiPropertyOptional({
20
+ description: 'Tenant DB row id (set on presign-upload after persisting metadata)',
21
+ example: '550e8400-e29b-41d4-a716-446655440000',
22
+ })
23
+ storageId?: string;
18
24
  }
Binary file