@tc-libs/storage 5.7.1 → 5.7.3
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/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tc-libs/storage",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-sdk/client-s3": "^3.779.0",
|
|
6
6
|
"@aws-sdk/s3-request-presigner": "^3.779.0",
|
|
7
|
-
"@
|
|
8
|
-
"@tc-libs/constant": "5.7.1",
|
|
7
|
+
"@tc-libs/constant": "5.7.3",
|
|
9
8
|
"jsonc-eslint-parser": "2.4.0",
|
|
10
9
|
"tslib": "^2.8.1"
|
|
11
10
|
},
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StorageMultipartSerialization = exports.StorageMultipartPartsSerialization = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const faker_1 = require("@faker-js/faker");
|
|
6
5
|
const swagger_1 = require("@nestjs/swagger");
|
|
7
6
|
const class_transformer_1 = require("class-transformer");
|
|
8
7
|
const storage_serialization_1 = require("./storage.serialization");
|
|
@@ -11,7 +10,7 @@ class StorageMultipartPartsSerialization {
|
|
|
11
10
|
exports.StorageMultipartPartsSerialization = StorageMultipartPartsSerialization;
|
|
12
11
|
tslib_1.__decorate([
|
|
13
12
|
(0, swagger_1.ApiProperty)({
|
|
14
|
-
example:
|
|
13
|
+
example: 'aBcDeFgHiJ',
|
|
15
14
|
description: 'ETag from aws after init multipart',
|
|
16
15
|
}),
|
|
17
16
|
(0, class_transformer_1.Type)(() => String),
|
|
@@ -29,7 +28,7 @@ class StorageMultipartSerialization extends storage_serialization_1.StorageFileS
|
|
|
29
28
|
exports.StorageMultipartSerialization = StorageMultipartSerialization;
|
|
30
29
|
tslib_1.__decorate([
|
|
31
30
|
(0, swagger_1.ApiProperty)({
|
|
32
|
-
example:
|
|
31
|
+
example: 'aBcDeFgHiJkLmNoPqRsT',
|
|
33
32
|
description: 'Upload id from aws after init multipart',
|
|
34
33
|
}),
|
|
35
34
|
(0, class_transformer_1.Type)(() => String),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.multipart.serialization.js","sourceRoot":"","sources":["../../../../../packages/storage/src/serializations/storage.multipart.serialization.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"storage.multipart.serialization.js","sourceRoot":"","sources":["../../../../../packages/storage/src/serializations/storage.multipart.serialization.ts"],"names":[],"mappings":";;;;AAAA,6CAA6D;AAC7D,yDAAyC;AACzC,mEAAmE;AAEnE,MAAa,kCAAkC;CAa9C;AAbD,gFAaC;AAPC;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,oCAAoC;KAClD,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gEACN;AAMb;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,CAAC;KACX,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sEACA;AAGrB,MAAa,6BAA8B,SAAQ,gDAAwB;CAgC1E;AAhCD,sEAgCC;AA1BC;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EAAE,yCAAyC;KACvD,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+DACF;AAOjB;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,2BAA2B;KACzC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iEACC;AAOpB;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,GAAG;QACZ,WAAW,EAAE,yCAAyC;KACvD,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oEACI;AAWvB;IATC,IAAA,qBAAW,EAAC;QACX,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,kCAAkC,CAAC;gBACvD,IAAI,EAAE,OAAO;aACd;SACF;KACF,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;;4DACF"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StorageFileResponseSerialization = exports.StorageFileSerialization = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const faker_1 = require("@faker-js/faker");
|
|
6
5
|
const swagger_1 = require("@nestjs/swagger");
|
|
7
6
|
const class_transformer_1 = require("class-transformer");
|
|
8
7
|
const acl_enum_1 = require("../constants/acl.enum");
|
|
@@ -11,49 +10,49 @@ class StorageFileSerialization {
|
|
|
11
10
|
exports.StorageFileSerialization = StorageFileSerialization;
|
|
12
11
|
tslib_1.__decorate([
|
|
13
12
|
(0, swagger_1.ApiProperty)({
|
|
14
|
-
example:
|
|
13
|
+
example: '/uploads/2026/01',
|
|
15
14
|
}),
|
|
16
15
|
(0, class_transformer_1.Type)(() => String),
|
|
17
16
|
tslib_1.__metadata("design:type", String)
|
|
18
17
|
], StorageFileSerialization.prototype, "path", void 0);
|
|
19
18
|
tslib_1.__decorate([
|
|
20
19
|
(0, swagger_1.ApiProperty)({
|
|
21
|
-
example:
|
|
20
|
+
example: '/uploads/2026/01/photo.png',
|
|
22
21
|
}),
|
|
23
22
|
(0, class_transformer_1.Type)(() => String),
|
|
24
23
|
tslib_1.__metadata("design:type", String)
|
|
25
24
|
], StorageFileSerialization.prototype, "pathWithFilename", void 0);
|
|
26
25
|
tslib_1.__decorate([
|
|
27
26
|
(0, swagger_1.ApiProperty)({
|
|
28
|
-
example:
|
|
27
|
+
example: 'photo.png',
|
|
29
28
|
}),
|
|
30
29
|
(0, class_transformer_1.Type)(() => String),
|
|
31
30
|
tslib_1.__metadata("design:type", String)
|
|
32
31
|
], StorageFileSerialization.prototype, "filename", void 0);
|
|
33
32
|
tslib_1.__decorate([
|
|
34
33
|
(0, swagger_1.ApiProperty)({
|
|
35
|
-
example:
|
|
34
|
+
example: 'https://example.com/uploads/2026/01/photo.png',
|
|
36
35
|
}),
|
|
37
36
|
(0, class_transformer_1.Type)(() => String),
|
|
38
37
|
tslib_1.__metadata("design:type", String)
|
|
39
38
|
], StorageFileSerialization.prototype, "completeUrl", void 0);
|
|
40
39
|
tslib_1.__decorate([
|
|
41
40
|
(0, swagger_1.ApiProperty)({
|
|
42
|
-
example:
|
|
41
|
+
example: 'https://example.com',
|
|
43
42
|
}),
|
|
44
43
|
(0, class_transformer_1.Type)(() => String),
|
|
45
44
|
tslib_1.__metadata("design:type", String)
|
|
46
45
|
], StorageFileSerialization.prototype, "baseUrl", void 0);
|
|
47
46
|
tslib_1.__decorate([
|
|
48
47
|
(0, swagger_1.ApiProperty)({
|
|
49
|
-
example:
|
|
48
|
+
example: 'image/png',
|
|
50
49
|
}),
|
|
51
50
|
(0, class_transformer_1.Type)(() => String),
|
|
52
51
|
tslib_1.__metadata("design:type", String)
|
|
53
52
|
], StorageFileSerialization.prototype, "mime", void 0);
|
|
54
53
|
tslib_1.__decorate([
|
|
55
54
|
(0, swagger_1.ApiProperty)({
|
|
56
|
-
example:
|
|
55
|
+
example: 'public-read',
|
|
57
56
|
}),
|
|
58
57
|
(0, class_transformer_1.Type)(() => String),
|
|
59
58
|
tslib_1.__metadata("design:type", String)
|
|
@@ -86,7 +85,7 @@ tslib_1.__decorate([
|
|
|
86
85
|
], StorageFileResponseSerialization.prototype, "isTruncated", void 0);
|
|
87
86
|
tslib_1.__decorate([
|
|
88
87
|
(0, swagger_1.ApiProperty)({
|
|
89
|
-
example:
|
|
88
|
+
example: 'Qr56St78Uv90Wx12Yz',
|
|
90
89
|
nullable: true,
|
|
91
90
|
required: false,
|
|
92
91
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.serialization.js","sourceRoot":"","sources":["../../../../../packages/storage/src/serializations/storage.serialization.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"storage.serialization.js","sourceRoot":"","sources":["../../../../../packages/storage/src/serializations/storage.serialization.ts"],"names":[],"mappings":";;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,oDAA4C;AAE5C,MAAa,wBAAwB;CAgDpC;AAhDD,4DAgDC;AA3CC;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACN;AAMb;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,4BAA4B;KACtC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kEACM;AAMzB;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,WAAW;KACrB,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACF;AAMjB;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,+CAA+C;KACzD,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6DACC;AAMpB;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,qBAAqB;KAC/B,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACH;AAMhB;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,WAAW;KACrB,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACL;AAMd;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,aAAa;KACvB,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACT;AAMV;IAJC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;0DACe;AAGnB,MAAa,gCAAgC;CAmB5C;AAnBD,4EAmBC;AAbC;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAwB;KACrC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;;+DACH;AAMlC;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;qEACmB;AAMrB;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,oBAAoB;QAC7B,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;2EACyB"}
|