@thescaffold/ntx-apps-blobs 0.2.21 → 0.2.30
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/api/file/entities/file.entity.js +10 -10
- package/api/file/entities/file.entity.js.map +1 -1
- package/api/file/file.controller.d.ts +2 -1
- package/api/file/file.controller.js +3 -1
- package/api/file/file.controller.js.map +1 -1
- package/api/page/entities/page.entity.d.ts +0 -1
- package/api/page/entities/page.entity.js +4 -4
- package/api/page/entities/page.entity.js.map +1 -1
- package/migrations/1759862889830-BlobsFile.js +31 -30
- package/migrations/1759862889830-BlobsFile.js.map +1 -1
- package/migrations/1759862889909-BlobsPage.js +19 -18
- package/migrations/1759862889909-BlobsPage.js.map +1 -1
- package/package.json +42 -13
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -17,31 +17,31 @@ let File = class File extends ntx_core_1.BaseEntity {
|
|
|
17
17
|
};
|
|
18
18
|
exports.File = File;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typeorm_1.Column)('
|
|
20
|
+
(0, typeorm_1.Column)('uuid', { name: 'userId' }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], File.prototype, "userId", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)('
|
|
24
|
+
(0, typeorm_1.Column)('varchar', { name: 'clientId' }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], File.prototype, "clientId", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)('
|
|
28
|
+
(0, typeorm_1.Column)('uuid', { name: 'workspaceId' }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], File.prototype, "workspaceId", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)('varchar', { name: 'type'
|
|
32
|
+
(0, typeorm_1.Column)('varchar', { name: 'type' }),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], File.prototype, "type", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)('
|
|
36
|
+
(0, typeorm_1.Column)('uuid', { name: 'parentId', nullable: true }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], File.prototype, "parentId", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)('varchar', { name: 'name'
|
|
40
|
+
(0, typeorm_1.Column)('varchar', { name: 'name' }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], File.prototype, "name", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)('
|
|
44
|
+
(0, typeorm_1.Column)('jsonb', { name: 'tags', nullable: true }),
|
|
45
45
|
__metadata("design:type", Array)
|
|
46
46
|
], File.prototype, "tags", void 0);
|
|
47
47
|
__decorate([
|
|
@@ -49,15 +49,15 @@ __decorate([
|
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
50
|
], File.prototype, "size", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)('varchar', { name: 'mime', nullable: true
|
|
52
|
+
(0, typeorm_1.Column)('varchar', { name: 'mime', nullable: true }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], File.prototype, "mime", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
56
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], File.prototype, "status", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)('
|
|
60
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
61
61
|
__metadata("design:type", Object)
|
|
62
62
|
], File.prototype, "meta", void 0);
|
|
63
63
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/file/entities/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,iEAAuD;AAQhD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAoCnC,CAAA;AApCY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/file/entities/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,iEAAuD;AAQhD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAoCnC,CAAA;AApCY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;oCACpB;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;sCACvB;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;yCACpB;AAGpB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kCACvB;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACnC;AAGlB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kCACvB;AAGb;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCAClC;AAGhB;IADC,IAAA,gBAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCAClC;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACtC;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACtC;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACvC;AAGX;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;;mCAChC;eAnCJ,IAAI;IANhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,IAAI,CAoChB"}
|
|
@@ -11,7 +11,8 @@ export declare class FileController extends FileController_base {
|
|
|
11
11
|
protected name: string;
|
|
12
12
|
protected searchable: string[];
|
|
13
13
|
protected service: FileService;
|
|
14
|
-
protected unique: ({ type, name }: File) => {
|
|
14
|
+
protected unique: ({ workspaceId, type, name }: File) => {
|
|
15
|
+
workspaceId: string;
|
|
15
16
|
type: string;
|
|
16
17
|
name: string;
|
|
17
18
|
}[];
|
|
@@ -25,7 +25,9 @@ let FileController = class FileController extends (0, ntx_core_1.CrudControllerF
|
|
|
25
25
|
this.name = 'file';
|
|
26
26
|
this.searchable = ['type', 'name', 'tags', 'size', 'mime'];
|
|
27
27
|
this.service = this.fileService;
|
|
28
|
-
this.unique = ({ type, name }) => [
|
|
28
|
+
this.unique = ({ workspaceId, type, name }) => [
|
|
29
|
+
{ workspaceId, type, name },
|
|
30
|
+
];
|
|
29
31
|
this.morphRequest = (entity) => entity;
|
|
30
32
|
this.morphs = {
|
|
31
33
|
[ntx_core_1.CrudActionType.beforeCreate]: async (payload, context) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../../libs/blobs/src/api/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAK+B;AAC/B,2DAAsD;AACtD,2DAAsD;AACtD,wDAA8C;AAC9C,iDAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,gCAAqB,EAIvD,+BAAa,EAAE,+BAAa,EAAE,kBAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../../libs/blobs/src/api/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oDAK+B;AAC/B,2DAAsD;AACtD,2DAAsD;AACtD,wDAA8C;AAC9C,iDAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,gCAAqB,EAIvD,+BAAa,EAAE,+BAAa,EAAE,kBAAI,CAAC;IAuBnC,YACmB,WAAwB,EACtB,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,gBAAW,GAAX,WAAW,CAAa;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAzBrC,SAAI,GAAG,MAAM,CAAC;QACd,eAAU,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACtD,YAAO,GAAG,IAAI,CAAC,WAAW,CAAC;QAC3B,WAAM,GAAG,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAQ,EAAE,EAAE,CAAC;YACxD,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;SAC5B,CAAC;QACQ,iBAAY,GAAG,CAAC,MAAY,EAAE,EAAE,CAAC,MAAM,CAAC;QACxC,WAAM,GAAG;YACjB,CAAC,yBAAc,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,OAAY,EAAE,OAAY,EAAE,EAAE;gBAClE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;gBAC/B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;gBAE5C,uCACK,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,EAAE,EACf,QAAQ,EAAE,MAAM,CAAC,EAAE,EACnB,WAAW,EAAE,SAAS,CAAC,EAAE,IACzB;YACJ,CAAC;SACF,CAAC;QACQ,UAAK,GAAG,EAAE,CAAC;IAQrB,CAAC;CACF,CAAA;AAlCY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCA6Be,0BAAW;QACL,0BAAe;QAClB,uBAAY;GA9BpC,cAAc,CAkC1B"}
|
|
@@ -17,7 +17,7 @@ let Page = class Page extends ntx_core_1.BaseEntity {
|
|
|
17
17
|
};
|
|
18
18
|
exports.Page = Page;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typeorm_1.Column)('
|
|
20
|
+
(0, typeorm_1.Column)('uuid', { name: 'fileId' }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], Page.prototype, "fileId", void 0);
|
|
23
23
|
__decorate([
|
|
@@ -31,15 +31,15 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
32
|
], Page.prototype, "index", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)('
|
|
34
|
+
(0, typeorm_1.Column)('bytea', { name: 'raw', nullable: true }),
|
|
35
35
|
__metadata("design:type", Buffer)
|
|
36
36
|
], Page.prototype, "raw", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
38
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], Page.prototype, "status", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)('
|
|
42
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
43
43
|
__metadata("design:type", Object)
|
|
44
44
|
], Page.prototype, "meta", void 0);
|
|
45
45
|
exports.Page = Page = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/page/entities/page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,iEAAuD;AAQhD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAoBnC,CAAA;AApBY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/page/entities/page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,iEAAuD;AAQhD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CAoBnC,CAAA;AApBY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;oCACpB;AAKf;IAHC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE;QAC/C,2BAA2B,EAAE,KAAK;KACnC,CAAC;8BACK,kBAAI;kCAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mCACnB;AAGd;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,MAAM;iCAAC;AAGb;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACtC;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACvC;eAnBA,IAAI;IANhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,IAAI,CAoBhB"}
|
|
@@ -4,42 +4,43 @@ exports.BlobsFile1759862889830 = void 0;
|
|
|
4
4
|
class BlobsFile1759862889830 {
|
|
5
5
|
async up(queryRunner) {
|
|
6
6
|
await queryRunner.query(`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
PRIMARY KEY (
|
|
24
|
-
|
|
25
|
-
KEY \`IdxBlobsFilesUpdatedAt\` (\`updatedAt\`),
|
|
26
|
-
KEY \`IdxBlobsFilesDeletedAt\` (\`deletedAt\`),
|
|
27
|
-
KEY \`IdxBlobsFilesUserId\` (\`userId\`),
|
|
28
|
-
KEY \`IdxBlobsFilesClientId\` (\`clientId\`),
|
|
29
|
-
KEY \`IdxBlobsFilesWorkspaceId\` (\`workspaceId\`),
|
|
30
|
-
KEY \`IdxBlobsFilesType\` (\`type\`),
|
|
31
|
-
KEY \`IdxBlobsFilesParentId\` (\`parentId\`),
|
|
32
|
-
UNIQUE KEY \`IdxBlobsFilesName\` (\`name\`),
|
|
33
|
-
KEY \`IdxBlobsFilesMime\` (\`mime\`),
|
|
34
|
-
KEY \`IdxBlobsFilesStatus\` (\`status\`)
|
|
7
|
+
CREATE TABLE "BlobsFiles" (
|
|
8
|
+
"id" uuid NOT NULL,
|
|
9
|
+
"createdAt" timestamp(6) DEFAULT NULL,
|
|
10
|
+
"updatedAt" timestamp(6) DEFAULT NULL,
|
|
11
|
+
"deletedAt" timestamp(6) DEFAULT NULL,
|
|
12
|
+
"userId" uuid NOT NULL,
|
|
13
|
+
"clientId" varchar(255) NOT NULL,
|
|
14
|
+
"workspaceId" uuid NOT NULL,
|
|
15
|
+
"type" varchar(255) NOT NULL,
|
|
16
|
+
"parentId" uuid NOT NULL,
|
|
17
|
+
"name" varchar(255) NOT NULL,
|
|
18
|
+
"tags" jsonb DEFAULT NULL,
|
|
19
|
+
"size" int NOT NULL,
|
|
20
|
+
"mime" varchar(255) NOT NULL,
|
|
21
|
+
"status" varchar(255) DEFAULT NULL,
|
|
22
|
+
"meta" jsonb DEFAULT NULL,
|
|
23
|
+
PRIMARY KEY ("id"),
|
|
24
|
+
CONSTRAINT "IdxBlobsFilesName_BlobsFiles" UNIQUE ("name")
|
|
35
25
|
|
|
36
26
|
|
|
37
|
-
|
|
27
|
+
|
|
28
|
+
);
|
|
38
29
|
`);
|
|
30
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesCreatedAt_BlobsFiles" ON "BlobsFiles" ("createdAt")`);
|
|
31
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesUpdatedAt_BlobsFiles" ON "BlobsFiles" ("updatedAt")`);
|
|
32
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesDeletedAt_BlobsFiles" ON "BlobsFiles" ("deletedAt")`);
|
|
33
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesUserId_BlobsFiles" ON "BlobsFiles" ("userId")`);
|
|
34
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesClientId_BlobsFiles" ON "BlobsFiles" ("clientId")`);
|
|
35
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesWorkspaceId_BlobsFiles" ON "BlobsFiles" ("workspaceId")`);
|
|
36
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesType_BlobsFiles" ON "BlobsFiles" ("type")`);
|
|
37
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesParentId_BlobsFiles" ON "BlobsFiles" ("parentId")`);
|
|
38
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesMime_BlobsFiles" ON "BlobsFiles" ("mime")`);
|
|
39
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsFilesStatus_BlobsFiles" ON "BlobsFiles" ("status")`);
|
|
39
40
|
}
|
|
40
41
|
async down(queryRunner) {
|
|
41
42
|
await queryRunner.query(`
|
|
42
|
-
DROP TABLE IF EXISTS
|
|
43
|
+
DROP TABLE IF EXISTS "BlobsFiles";
|
|
43
44
|
`);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1759862889830-BlobsFile.js","sourceRoot":"","sources":["../../../../libs/blobs/src/migrations/1759862889830-BlobsFile.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"1759862889830-BlobsFile.js","sourceRoot":"","sources":["../../../../libs/blobs/src/migrations/1759862889830-BlobsFile.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;KAuBvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,8EAA8E,CAC/E,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,oFAAoF,CACrF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,sEAAsE,CACvE,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,8EAA8E,CAC/E,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,sEAAsE,CACvE,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,WAAW,CAAC,KAAK,CAAC;;KAEvB,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,wDA+DC"}
|
|
@@ -4,28 +4,29 @@ exports.BlobsPage1759862889909 = void 0;
|
|
|
4
4
|
class BlobsPage1759862889909 {
|
|
5
5
|
async up(queryRunner) {
|
|
6
6
|
await queryRunner.query(`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PRIMARY KEY (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
KEY \`IdxBlobsPagesDeletedAt\` (\`deletedAt\`),
|
|
21
|
-
KEY \`IdxBlobsPagesFileIdIndex\` (\`fileId\`, \`index\`),
|
|
22
|
-
KEY \`IdxBlobsPagesStatus\` (\`status\`)
|
|
23
|
-
);
|
|
7
|
+
CREATE TABLE "BlobsPages" (
|
|
8
|
+
"id" uuid NOT NULL,
|
|
9
|
+
"createdAt" timestamp(6) DEFAULT NULL,
|
|
10
|
+
"updatedAt" timestamp(6) DEFAULT NULL,
|
|
11
|
+
"deletedAt" timestamp(6) DEFAULT NULL,
|
|
12
|
+
"fileId" uuid NOT NULL,
|
|
13
|
+
"index" int NOT NULL,
|
|
14
|
+
"raw" bytea,
|
|
15
|
+
"status" varchar(255) DEFAULT NULL,
|
|
16
|
+
"meta" jsonb DEFAULT NULL,
|
|
17
|
+
PRIMARY KEY ("id")
|
|
18
|
+
|
|
19
|
+
);
|
|
24
20
|
`);
|
|
21
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsPagesCreatedAt_BlobsPages" ON "BlobsPages" ("createdAt")`);
|
|
22
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsPagesUpdatedAt_BlobsPages" ON "BlobsPages" ("updatedAt")`);
|
|
23
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsPagesDeletedAt_BlobsPages" ON "BlobsPages" ("deletedAt")`);
|
|
24
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsPagesFileIdIndex_BlobsPages" ON "BlobsPages" ("fileId", "index")`);
|
|
25
|
+
await queryRunner.query(`CREATE INDEX "IdxBlobsPagesStatus_BlobsPages" ON "BlobsPages" ("status")`);
|
|
25
26
|
}
|
|
26
27
|
async down(queryRunner) {
|
|
27
28
|
await queryRunner.query(`
|
|
28
|
-
DROP TABLE IF EXISTS
|
|
29
|
+
DROP TABLE IF EXISTS "BlobsPages";
|
|
29
30
|
`);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1759862889909-BlobsPage.js","sourceRoot":"","sources":["../../../../libs/blobs/src/migrations/1759862889909-BlobsPage.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"1759862889909-BlobsPage.js","sourceRoot":"","sources":["../../../../libs/blobs/src/migrations/1759862889909-BlobsPage.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;KAcvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,wFAAwF,CACzF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,WAAW,CAAC,KAAK,CAAC;;KAEvB,CAAC,CAAC;IACL,CAAC;CACF;AAvCD,wDAuCC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thescaffold/ntx-apps-blobs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.30",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@
|
|
6
|
-
"@
|
|
7
|
-
"@
|
|
8
|
-
"@nestjs/
|
|
9
|
-
"@
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
5
|
+
"@fast-csv/format": "^5.0.5",
|
|
6
|
+
"@fastify/multipart": "^9.4.0",
|
|
7
|
+
"@kubernetes/client-node": "^1.4.0",
|
|
8
|
+
"@nestjs/axios": "^4.0.1",
|
|
9
|
+
"@nestjs/common": "^11.1.13",
|
|
10
|
+
"@nestjs/config": "^4.0.3",
|
|
11
|
+
"@nestjs/core": "^11.1.13",
|
|
12
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
13
|
+
"@nestjs/jwt": "^11.0.2",
|
|
14
|
+
"@nestjs/passport": "^11.0.5",
|
|
15
|
+
"@nestjs/schedule": "^6.1.1",
|
|
16
|
+
"@nestjs/swagger": "^11.2.6",
|
|
17
|
+
"@nestjs/terminus": "^11.0.0",
|
|
18
|
+
"@nestjs/throttler": "^6.5.0",
|
|
19
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
20
|
+
"@sentry/nestjs": "^10.38.0",
|
|
21
|
+
"@thescaffold/jsx-blobs": "^0.2.*",
|
|
22
|
+
"@thescaffold/jsx-core": "^0.2.*",
|
|
23
|
+
"@thescaffold/jsx-flags": "^0.2.*",
|
|
24
|
+
"@thescaffold/jsx-polylog": "^0.2.*",
|
|
25
|
+
"@thescaffold/ntx-blobs": "^0.2.*",
|
|
26
|
+
"@thescaffold/ntx-core": "^0.2.*",
|
|
27
|
+
"@thescaffold/ntx-flags": "^0.2.*",
|
|
28
|
+
"@thescaffold/ntx-polylog": "^0.2.*",
|
|
29
|
+
"bcryptjs": "^3.0.3",
|
|
30
|
+
"class-transformer": "^0.5.1",
|
|
31
|
+
"class-validator": "^0.14.3",
|
|
32
|
+
"countly-sdk-nodejs": "^24.10.3",
|
|
33
|
+
"dayjs": "^1.11.19",
|
|
34
|
+
"fastify": "^5.7.4",
|
|
35
|
+
"geoip-lite": "^1.4.10",
|
|
36
|
+
"js-yaml": "^4.1.1",
|
|
37
|
+
"node-ssh": "^13.2.1",
|
|
38
|
+
"nodemailer": "^8.0.1",
|
|
39
|
+
"playwright": "^1.58.2",
|
|
40
|
+
"rxjs": "^7.8.2",
|
|
41
|
+
"stripe": "^20.3.1",
|
|
42
|
+
"typeorm": "^0.3.28",
|
|
43
|
+
"ua-parser-js": "^2.0.9",
|
|
44
|
+
"uuid": "^13.0.0",
|
|
45
|
+
"xlsx": "^0.18.5"
|
|
17
46
|
},
|
|
18
47
|
"sideEffects": false,
|
|
19
48
|
"typings": "index.d.ts",
|