@volontariapp/contracts 4.3.16-snap-1e7a542 → 4.4.0-snap-b8889b8
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/CHANGELOG.md +6 -0
- package/dist/gateway/index.d.ts +2 -0
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +2 -0
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/storage/request/index.d.ts +2 -0
- package/dist/gateway/storage/request/index.d.ts.map +1 -0
- package/dist/gateway/storage/request/index.js +2 -0
- package/dist/gateway/storage/request/index.js.map +1 -0
- package/dist/gateway/storage/request/storage.request.d.ts +9 -0
- package/dist/gateway/storage/request/storage.request.d.ts.map +1 -0
- package/dist/gateway/storage/request/storage.request.js +2 -0
- package/dist/gateway/storage/request/storage.request.js.map +1 -0
- package/dist/gateway/storage/response/index.d.ts +2 -0
- package/dist/gateway/storage/response/index.d.ts.map +1 -0
- package/dist/gateway/storage/response/index.js +2 -0
- package/dist/gateway/storage/response/index.js.map +1 -0
- package/dist/gateway/storage/response/storage.response.d.ts +19 -0
- package/dist/gateway/storage/response/storage.response.d.ts.map +1 -0
- package/dist/gateway/storage/response/storage.response.js +2 -0
- package/dist/gateway/storage/response/storage.response.js.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add the gateway storage module types (GenerateUploadUrlRequest, ConfirmUploadRequest, GetFileMetadataRequest, FileMetadataDTO and the web responses) shared between api-gateway and the front-end.
|
|
8
|
+
|
|
3
9
|
## 4.3.16
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/gateway/index.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ export * from './post/request/index.js';
|
|
|
6
6
|
export * from './post/response/index.js';
|
|
7
7
|
export * from './social/request/index.js';
|
|
8
8
|
export * from './social/response/index.js';
|
|
9
|
+
export * from './storage/request/index.js';
|
|
10
|
+
export * from './storage/response/index.js';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAG3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
package/dist/gateway/index.js
CHANGED
|
@@ -6,4 +6,6 @@ export * from './post/request/index.js';
|
|
|
6
6
|
export * from './post/response/index.js';
|
|
7
7
|
export * from './social/request/index.js';
|
|
8
8
|
export * from './social/response/index.js';
|
|
9
|
+
export * from './storage/request/index.js';
|
|
10
|
+
export * from './storage/response/index.js';
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAG3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/storage/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/storage/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GenerateUploadUrlCommand, ConfirmUploadCommand } from '../../../storage/storage.command.js';
|
|
2
|
+
import type { GetFileMetadataQuery } from '../../../storage/storage.query.js';
|
|
3
|
+
export interface GenerateUploadUrlRequest extends Omit<GenerateUploadUrlCommand, 'isPublic'> {
|
|
4
|
+
}
|
|
5
|
+
export interface ConfirmUploadRequest extends ConfirmUploadCommand {
|
|
6
|
+
}
|
|
7
|
+
export interface GetFileMetadataRequest extends GetFileMetadataQuery {
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=storage.request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/storage/request/storage.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAM9E,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC;CAAG;AAM/F,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;CAAG;AAMrE,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.request.js","sourceRoot":"","sources":["../../../../src/gateway/storage/request/storage.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/storage/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/storage/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FileMetadata } from '../../../storage/storage.js';
|
|
2
|
+
export interface FileMetadataDTO extends Omit<FileMetadata, 'uploadExpiresAt' | 'createdAt' | 'updatedAt' | 'isPublic'> {
|
|
3
|
+
uploadExpiresAt?: Date;
|
|
4
|
+
createdAt?: Date;
|
|
5
|
+
updatedAt?: Date;
|
|
6
|
+
}
|
|
7
|
+
export interface GenerateUploadUrlWebResponse {
|
|
8
|
+
fileId: string;
|
|
9
|
+
uploadUrl: string;
|
|
10
|
+
uploadFields: Record<string, string>;
|
|
11
|
+
expiresAt?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface ConfirmUploadWebResponse {
|
|
14
|
+
file: FileMetadataDTO;
|
|
15
|
+
}
|
|
16
|
+
export interface FileMetadataWebResponse {
|
|
17
|
+
file: FileMetadataDTO;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=storage.response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/storage/response/storage.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAMhE,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,YAAY,EAAE,iBAAiB,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IACtF,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,eAAe,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.response.js","sourceRoot":"","sources":["../../../../src/gateway/storage/response/storage.response.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volontariapp/contracts",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0-snap-b8889b8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "5.7.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@volontariapp/logger": "0.4.0
|
|
42
|
+
"@volontariapp/logger": "0.4.0",
|
|
43
43
|
"protobufjs": "^7.5.8"
|
|
44
44
|
}
|
|
45
45
|
}
|