@thescaffold/ntx-apps-blobs 0.0.10

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.
Files changed (72) hide show
  1. package/README.md +1 -0
  2. package/api/file/dto/create-file.dto.d.ts +10 -0
  3. package/api/file/dto/create-file.dto.js +63 -0
  4. package/api/file/dto/create-file.dto.js.map +1 -0
  5. package/api/file/dto/update-file.dto.d.ts +10 -0
  6. package/api/file/dto/update-file.dto.js +67 -0
  7. package/api/file/dto/update-file.dto.js.map +1 -0
  8. package/api/file/entities/file.entity.d.ts +16 -0
  9. package/api/file/entities/file.entity.js +75 -0
  10. package/api/file/entities/file.entity.js.map +1 -0
  11. package/api/file/file.controller.d.ts +25 -0
  12. package/api/file/file.controller.js +47 -0
  13. package/api/file/file.controller.js.map +1 -0
  14. package/api/file/file.module.d.ts +2 -0
  15. package/api/file/file.module.js +27 -0
  16. package/api/file/file.module.js.map +1 -0
  17. package/api/file/file.service.d.ts +17 -0
  18. package/api/file/file.service.js +46 -0
  19. package/api/file/file.service.js.map +1 -0
  20. package/api/file/index.d.ts +6 -0
  21. package/api/file/index.js +23 -0
  22. package/api/file/index.js.map +1 -0
  23. package/api/page/dto/create-page.dto.d.ts +7 -0
  24. package/api/page/dto/create-page.dto.js +47 -0
  25. package/api/page/dto/create-page.dto.js.map +1 -0
  26. package/api/page/dto/update-page.dto.d.ts +7 -0
  27. package/api/page/dto/update-page.dto.js +48 -0
  28. package/api/page/dto/update-page.dto.js.map +1 -0
  29. package/api/page/entities/page.entity.d.ts +11 -0
  30. package/api/page/entities/page.entity.js +53 -0
  31. package/api/page/entities/page.entity.js.map +1 -0
  32. package/api/page/index.d.ts +6 -0
  33. package/api/page/index.js +23 -0
  34. package/api/page/index.js.map +1 -0
  35. package/api/page/page.controller.d.ts +19 -0
  36. package/api/page/page.controller.js +40 -0
  37. package/api/page/page.controller.js.map +1 -0
  38. package/api/page/page.module.d.ts +2 -0
  39. package/api/page/page.module.js +27 -0
  40. package/api/page/page.module.js.map +1 -0
  41. package/api/page/page.service.d.ts +17 -0
  42. package/api/page/page.service.js +48 -0
  43. package/api/page/page.service.js.map +1 -0
  44. package/app.config.d.ts +0 -0
  45. package/app.config.js +1 -0
  46. package/app.config.js.map +1 -0
  47. package/app.controller.d.ts +62 -0
  48. package/app.controller.js +145 -0
  49. package/app.controller.js.map +1 -0
  50. package/app.dto.d.ts +13 -0
  51. package/app.dto.js +48 -0
  52. package/app.dto.js.map +1 -0
  53. package/app.module.d.ts +2 -0
  54. package/app.module.js +42 -0
  55. package/app.module.js.map +1 -0
  56. package/app.service.d.ts +31 -0
  57. package/app.service.js +170 -0
  58. package/app.service.js.map +1 -0
  59. package/index.d.ts +20 -0
  60. package/index.js +50 -0
  61. package/index.js.map +1 -0
  62. package/migrations/1759862889830-BlobsFile.d.ts +5 -0
  63. package/migrations/1759862889830-BlobsFile.js +47 -0
  64. package/migrations/1759862889830-BlobsFile.js.map +1 -0
  65. package/migrations/1759862889909-BlobsPage.d.ts +5 -0
  66. package/migrations/1759862889909-BlobsPage.js +33 -0
  67. package/migrations/1759862889909-BlobsPage.js.map +1 -0
  68. package/migrations/index.d.ts +2 -0
  69. package/migrations/index.js +7 -0
  70. package/migrations/index.js.map +1 -0
  71. package/package.json +18 -0
  72. package/tsconfig.lib.tsbuildinfo +1 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Ntx SDK
@@ -0,0 +1,10 @@
1
+ export declare class CreateFileDto {
2
+ type: string;
3
+ parentId?: string;
4
+ name: string;
5
+ tags?: string[];
6
+ size: number;
7
+ mime: string;
8
+ meta?: any;
9
+ status?: string;
10
+ }
@@ -0,0 +1,63 @@
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.CreateFileDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateFileDto {
16
+ }
17
+ exports.CreateFileDto = CreateFileDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, swagger_1.ApiProperty)(),
21
+ __metadata("design:type", String)
22
+ ], CreateFileDto.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsUUID)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, swagger_1.ApiPropertyOptional)(),
27
+ __metadata("design:type", String)
28
+ ], CreateFileDto.prototype, "parentId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, swagger_1.ApiProperty)(),
32
+ __metadata("design:type", String)
33
+ ], CreateFileDto.prototype, "name", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsArray)(),
36
+ (0, class_validator_1.IsString)({ each: true }),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, swagger_1.ApiPropertyOptional)(),
39
+ __metadata("design:type", Array)
40
+ ], CreateFileDto.prototype, "tags", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsNumber)(),
43
+ (0, swagger_1.ApiProperty)(),
44
+ __metadata("design:type", Number)
45
+ ], CreateFileDto.prototype, "size", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ (0, swagger_1.ApiProperty)(),
49
+ __metadata("design:type", String)
50
+ ], CreateFileDto.prototype, "mime", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsObject)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, swagger_1.ApiPropertyOptional)(),
55
+ __metadata("design:type", Object)
56
+ ], CreateFileDto.prototype, "meta", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, swagger_1.ApiPropertyOptional)(),
61
+ __metadata("design:type", String)
62
+ ], CreateFileDto.prototype, "status", void 0);
63
+ //# sourceMappingURL=create-file.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-file.dto.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/file/dto/create-file.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAOyB;AAEzB,MAAa,aAAa;CAqCzB;AArCD,sCAqCC;AAlCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2CACD;AAKb;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACJ;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2CACD;AAMb;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACN;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2CACD;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2CACD;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN"}
@@ -0,0 +1,10 @@
1
+ export declare class UpdateFileDto {
2
+ type?: string;
3
+ parentId?: string;
4
+ name?: string;
5
+ tags?: string[];
6
+ size?: number;
7
+ mime?: string;
8
+ meta?: any;
9
+ status?: string;
10
+ }
@@ -0,0 +1,67 @@
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.UpdateFileDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateFileDto {
16
+ }
17
+ exports.UpdateFileDto = UpdateFileDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, swagger_1.ApiPropertyOptional)(),
22
+ __metadata("design:type", String)
23
+ ], UpdateFileDto.prototype, "type", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, swagger_1.ApiPropertyOptional)(),
28
+ __metadata("design:type", String)
29
+ ], UpdateFileDto.prototype, "parentId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, swagger_1.ApiPropertyOptional)(),
34
+ __metadata("design:type", String)
35
+ ], UpdateFileDto.prototype, "name", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsArray)(),
38
+ (0, class_validator_1.IsString)({ each: true }),
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, swagger_1.ApiPropertyOptional)(),
41
+ __metadata("design:type", Array)
42
+ ], UpdateFileDto.prototype, "tags", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsNumber)(),
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, swagger_1.ApiPropertyOptional)(),
47
+ __metadata("design:type", Number)
48
+ ], UpdateFileDto.prototype, "size", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsString)(),
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, swagger_1.ApiPropertyOptional)(),
53
+ __metadata("design:type", String)
54
+ ], UpdateFileDto.prototype, "mime", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsObject)(),
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, swagger_1.ApiPropertyOptional)(),
59
+ __metadata("design:type", Object)
60
+ ], UpdateFileDto.prototype, "meta", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsString)(),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, swagger_1.ApiPropertyOptional)(),
65
+ __metadata("design:type", String)
66
+ ], UpdateFileDto.prototype, "status", void 0);
67
+ //# sourceMappingURL=update-file.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-file.dto.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/file/dto/update-file.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAOyB;AAEzB,MAAa,aAAa;CAyCzB;AAzCD,sCAyCC;AArCC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACJ;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAMd;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN"}
@@ -0,0 +1,16 @@
1
+ import { BaseEntity } from '@thescaffold/ntx-core';
2
+ import { Page } from '../../page/entities/page.entity';
3
+ export declare class File extends BaseEntity {
4
+ userId: string;
5
+ clientId: string;
6
+ workspaceId: string;
7
+ type: string;
8
+ parentId?: string;
9
+ name: string;
10
+ tags?: string[];
11
+ size?: number;
12
+ mime?: string;
13
+ status?: string;
14
+ meta?: any;
15
+ pages?: Page[];
16
+ }
@@ -0,0 +1,75 @@
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.File = void 0;
13
+ const ntx_core_1 = require("@thescaffold/ntx-core");
14
+ const typeorm_1 = require("typeorm");
15
+ const page_entity_1 = require("../../page/entities/page.entity");
16
+ let File = class File extends ntx_core_1.BaseEntity {
17
+ };
18
+ exports.File = File;
19
+ __decorate([
20
+ (0, typeorm_1.Column)('char', { name: 'userId', length: 36 }),
21
+ __metadata("design:type", String)
22
+ ], File.prototype, "userId", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)('char', { name: 'clientId', length: 36 }),
25
+ __metadata("design:type", String)
26
+ ], File.prototype, "clientId", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)('char', { name: 'workspaceId', length: 36 }),
29
+ __metadata("design:type", String)
30
+ ], File.prototype, "workspaceId", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)('varchar', { name: 'type', length: 52 }),
33
+ __metadata("design:type", String)
34
+ ], File.prototype, "type", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)('char', { name: 'parentId', length: 36, nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], File.prototype, "parentId", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)('varchar', { name: 'name', length: 255 }),
41
+ __metadata("design:type", String)
42
+ ], File.prototype, "name", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)('json', { name: 'tags', nullable: true }),
45
+ __metadata("design:type", Array)
46
+ ], File.prototype, "tags", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)('int', { name: 'size', nullable: true }),
49
+ __metadata("design:type", Number)
50
+ ], File.prototype, "size", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)('varchar', { name: 'mime', nullable: true, length: 255 }),
53
+ __metadata("design:type", String)
54
+ ], File.prototype, "mime", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)('varchar', { name: 'status', nullable: true, length: 52 }),
57
+ __metadata("design:type", String)
58
+ ], File.prototype, "status", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)('json', { name: 'meta', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], File.prototype, "meta", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.OneToMany)((type) => page_entity_1.Page, (page) => page.file),
65
+ __metadata("design:type", Array)
66
+ ], File.prototype, "pages", void 0);
67
+ exports.File = File = __decorate([
68
+ (0, typeorm_1.Entity)({
69
+ name: 'BlobsFiles',
70
+ orderBy: {
71
+ createdAt: 'DESC',
72
+ },
73
+ })
74
+ ], File);
75
+ //# sourceMappingURL=file.entity.js.map
@@ -0,0 +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,MAAM,EAAE,EAAE,EAAE,CAAC;;oCAChC;AAGf;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sCAChC;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;yCAChC;AAGpB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kCACnC;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC/C;AAGlB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kCACpC;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACjC;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,MAAM,EAAE,GAAG,EAAE,CAAC;;kCACnD;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;oCAClD;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACtC;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"}
@@ -0,0 +1,25 @@
1
+ import { LanguageService, MediaService } from '@thescaffold/ntx-core';
2
+ import { CreateFileDto } from './dto/create-file.dto';
3
+ import { UpdateFileDto } from './dto/update-file.dto';
4
+ import { File } from './entities/file.entity';
5
+ import { FileService } from './file.service';
6
+ declare const FileController_base: import("@nestjs/common").Type<import("@thescaffold/ntx-core").CrudControllerContract<File, CreateFileDto, UpdateFileDto>>;
7
+ export declare class FileController extends FileController_base {
8
+ private readonly fileService;
9
+ protected readonly languageService: LanguageService;
10
+ protected readonly mediaService: MediaService;
11
+ protected name: string;
12
+ protected searchable: string[];
13
+ protected service: FileService;
14
+ protected unique: ({ type, name }: File) => {
15
+ type: string;
16
+ name: string;
17
+ }[];
18
+ protected morphRequest: (entity: File) => File;
19
+ protected morphs: {
20
+ beforeCreate: (payload: any, context: any) => Promise<any>;
21
+ };
22
+ protected hooks: {};
23
+ constructor(fileService: FileService, languageService: LanguageService, mediaService: MediaService);
24
+ }
25
+ export {};
@@ -0,0 +1,47 @@
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.FileController = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const ntx_core_1 = require("@thescaffold/ntx-core");
15
+ const create_file_dto_1 = require("./dto/create-file.dto");
16
+ const update_file_dto_1 = require("./dto/update-file.dto");
17
+ const file_entity_1 = require("./entities/file.entity");
18
+ const file_service_1 = require("./file.service");
19
+ let FileController = class FileController extends (0, ntx_core_1.CrudControllerFactory)(create_file_dto_1.CreateFileDto, update_file_dto_1.UpdateFileDto, file_entity_1.File) {
20
+ constructor(fileService, languageService, mediaService) {
21
+ super();
22
+ this.fileService = fileService;
23
+ this.languageService = languageService;
24
+ this.mediaService = mediaService;
25
+ this.name = 'file';
26
+ this.searchable = ['type', 'name', 'tags', 'size', 'mime'];
27
+ this.service = this.fileService;
28
+ this.unique = ({ type, name }) => [{ type, name }];
29
+ this.morphRequest = (entity) => entity;
30
+ this.morphs = {
31
+ [ntx_core_1.CrudActionType.beforeCreate]: async (payload, context) => {
32
+ const { preference } = context;
33
+ const { user, client, workspace } = context;
34
+ return Object.assign(Object.assign({}, payload), { userId: user.id, clientId: client.id, workspaceId: workspace.id });
35
+ },
36
+ };
37
+ this.hooks = {};
38
+ }
39
+ };
40
+ exports.FileController = FileController;
41
+ exports.FileController = FileController = __decorate([
42
+ (0, common_1.Controller)('file'),
43
+ __metadata("design:paramtypes", [file_service_1.FileService,
44
+ ntx_core_1.LanguageService,
45
+ ntx_core_1.MediaService])
46
+ ], FileController);
47
+ //# sourceMappingURL=file.controller.js.map
@@ -0,0 +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;IAqBnC,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;QAvBrC,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,IAAI,EAAE,IAAI,EAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,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;AAhCY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCA2Be,0BAAW;QACL,0BAAe;QAClB,uBAAY;GA5BpC,cAAc,CAgC1B"}
@@ -0,0 +1,2 @@
1
+ export declare class FileModule {
2
+ }
@@ -0,0 +1,27 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FileModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const ntx_core_1 = require("@thescaffold/ntx-core");
13
+ const file_entity_1 = require("./entities/file.entity");
14
+ const file_controller_1 = require("./file.controller");
15
+ const file_service_1 = require("./file.service");
16
+ let FileModule = class FileModule {
17
+ };
18
+ exports.FileModule = FileModule;
19
+ exports.FileModule = FileModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [typeorm_1.TypeOrmModule.forFeature([file_entity_1.File]), ntx_core_1.ServicesModule],
22
+ controllers: [file_controller_1.FileController],
23
+ providers: [file_service_1.FileService],
24
+ exports: [file_service_1.FileService],
25
+ })
26
+ ], FileModule);
27
+ //# sourceMappingURL=file.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.module.js","sourceRoot":"","sources":["../../../../../libs/blobs/src/api/file/file.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oDAAuD;AACvD,wDAA8C;AAC9C,uDAAmD;AACnD,iDAA6C;AAQtC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IANtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,kBAAI,CAAC,CAAC,EAAE,yBAAc,CAAC;QAC3D,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE,CAAC,0BAAW,CAAC;QACxB,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
@@ -0,0 +1,17 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { BaseRepository, LanguageService, MediaService, PermissionScopeType, TrackerService } from '@thescaffold/ntx-core';
3
+ import { File } from './entities/file.entity';
4
+ export declare class FileService extends BaseRepository<File> {
5
+ protected readonly trackerService: TrackerService;
6
+ protected readonly configService: ConfigService;
7
+ protected readonly languageService: LanguageService;
8
+ protected readonly mediaService: MediaService;
9
+ protected [PermissionScopeType.Self]: {
10
+ userId: string;
11
+ }[];
12
+ protected [PermissionScopeType.Workspace]: {
13
+ workspaceId: string;
14
+ }[];
15
+ protected [PermissionScopeType.Global]: any[];
16
+ constructor(request: any, trackerService: TrackerService, configService: ConfigService, languageService: LanguageService, mediaService: MediaService);
17
+ }
@@ -0,0 +1,46 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var _a, _b, _c;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileService = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const config_1 = require("@nestjs/config");
19
+ const core_1 = require("@nestjs/core");
20
+ const ntx_core_1 = require("@thescaffold/ntx-core");
21
+ const file_entity_1 = require("./entities/file.entity");
22
+ let FileService = class FileService extends ntx_core_1.BaseRepository {
23
+ constructor(request, trackerService, configService, languageService, mediaService) {
24
+ super(request, file_entity_1.File);
25
+ this.trackerService = trackerService;
26
+ this.configService = configService;
27
+ this.languageService = languageService;
28
+ this.mediaService = mediaService;
29
+ this[_a] = [{ userId: 'user.id' }];
30
+ this[_b] = [{ workspaceId: 'workspace.id' }];
31
+ this[_c] = [];
32
+ }
33
+ };
34
+ exports.FileService = FileService;
35
+ _a = ntx_core_1.PermissionScopeType.Self;
36
+ _b = ntx_core_1.PermissionScopeType.Workspace;
37
+ _c = ntx_core_1.PermissionScopeType.Global;
38
+ exports.FileService = FileService = __decorate([
39
+ (0, common_1.Injectable)({ scope: common_1.Scope.REQUEST }),
40
+ __param(0, (0, common_1.Inject)(core_1.REQUEST)),
41
+ __metadata("design:paramtypes", [Object, ntx_core_1.TrackerService,
42
+ config_1.ConfigService,
43
+ ntx_core_1.LanguageService,
44
+ ntx_core_1.MediaService])
45
+ ], FileService);
46
+ //# sourceMappingURL=file.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.service.js","sourceRoot":"","sources":["../../../../../libs/blobs/src/api/file/file.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA2D;AAC3D,2CAA+C;AAC/C,uCAAuC;AACvC,oDAM+B;AAC/B,wDAA8C;AAGvC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,yBAAoB;IAOnD,YACmB,OAAY,EACV,cAA8B,EAC9B,aAA4B,EAC5B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,CAAC,OAAO,EAAE,kBAAI,CAAC,CAAC;QALF,mBAAc,GAAd,cAAc,CAAgB;QAC9B,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAXrC,QAA0B,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAErD,QAA+B,GAAG,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;QAEpE,QAA4B,GAAG,EAAE,CAAC;IAU5C,CAAC;CACF,CAAA;AAhBY,kCAAW;KACX,8BAAmB,CAAC,IAAI;KAExB,8BAAmB,CAAC,SAAS;KAE7B,8BAAmB,CAAC,MAAM;sBAL1B,WAAW;IADvB,IAAA,mBAAU,EAAC,EAAE,KAAK,EAAE,cAAK,CAAC,OAAO,EAAE,CAAC;IAShC,WAAA,IAAA,eAAM,EAAC,cAAO,CAAC,CAAA;6CACmB,yBAAc;QACf,sBAAa;QACX,0BAAe;QAClB,uBAAY;GAZpC,WAAW,CAgBvB"}
@@ -0,0 +1,6 @@
1
+ export * from './dto/create-file.dto';
2
+ export * from './dto/update-file.dto';
3
+ export * from './entities/file.entity';
4
+ export * from './file.controller';
5
+ export * from './file.service';
6
+ export * from './file.module';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/create-file.dto"), exports);
18
+ __exportStar(require("./dto/update-file.dto"), exports);
19
+ __exportStar(require("./entities/file.entity"), exports);
20
+ __exportStar(require("./file.controller"), exports);
21
+ __exportStar(require("./file.service"), exports);
22
+ __exportStar(require("./file.module"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/blobs/src/api/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B"}
@@ -0,0 +1,7 @@
1
+ export declare class CreatePageDto {
2
+ fileId?: string;
3
+ index?: number;
4
+ raw: string;
5
+ status?: string;
6
+ meta?: any;
7
+ }
@@ -0,0 +1,47 @@
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.CreatePageDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreatePageDto {
16
+ }
17
+ exports.CreatePageDto = CreatePageDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsUUID)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, swagger_1.ApiPropertyOptional)(),
22
+ __metadata("design:type", String)
23
+ ], CreatePageDto.prototype, "fileId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNumber)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, swagger_1.ApiPropertyOptional)(),
28
+ __metadata("design:type", Number)
29
+ ], CreatePageDto.prototype, "index", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, swagger_1.ApiProperty)(),
33
+ __metadata("design:type", String)
34
+ ], CreatePageDto.prototype, "raw", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, swagger_1.ApiPropertyOptional)(),
39
+ __metadata("design:type", String)
40
+ ], CreatePageDto.prototype, "status", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsObject)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, swagger_1.ApiPropertyOptional)(),
45
+ __metadata("design:type", Object)
46
+ ], CreatePageDto.prototype, "meta", void 0);
47
+ //# sourceMappingURL=create-page.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-page.dto.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/page/dto/create-page.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAMyB;AAEzB,MAAa,aAAa;CAwBzB;AAxBD,sCAwBC;AApBC;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;4CACP;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0CACF;AAKZ;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX"}
@@ -0,0 +1,7 @@
1
+ export declare class UpdatePageDto {
2
+ fileId?: string;
3
+ index?: number;
4
+ raw?: string;
5
+ status?: string;
6
+ meta?: any;
7
+ }
@@ -0,0 +1,48 @@
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.UpdatePageDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdatePageDto {
16
+ }
17
+ exports.UpdatePageDto = UpdatePageDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsUUID)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, swagger_1.ApiPropertyOptional)(),
22
+ __metadata("design:type", String)
23
+ ], UpdatePageDto.prototype, "fileId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNumber)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, swagger_1.ApiPropertyOptional)(),
28
+ __metadata("design:type", Number)
29
+ ], UpdatePageDto.prototype, "index", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, swagger_1.ApiPropertyOptional)(),
34
+ __metadata("design:type", String)
35
+ ], UpdatePageDto.prototype, "raw", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, swagger_1.ApiPropertyOptional)(),
40
+ __metadata("design:type", String)
41
+ ], UpdatePageDto.prototype, "status", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsObject)(),
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, swagger_1.ApiPropertyOptional)(),
46
+ __metadata("design:type", Object)
47
+ ], UpdatePageDto.prototype, "meta", void 0);
48
+ //# sourceMappingURL=update-page.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-page.dto.js","sourceRoot":"","sources":["../../../../../../libs/blobs/src/api/page/dto/update-page.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAMyB;AAEzB,MAAa,aAAa;CAyBzB;AAzBD,sCAyBC;AArBC;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;4CACP;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACT;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import { BaseEntity } from '@thescaffold/ntx-core';
3
+ import { File } from '../../file/entities/file.entity';
4
+ export declare class Page extends BaseEntity {
5
+ fileId: string;
6
+ file?: File;
7
+ index: number;
8
+ raw?: Buffer;
9
+ status?: string;
10
+ meta?: any;
11
+ }