@nest-yalc-2/omnikernel-module 2.1.0 → 2.2.1
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 +7 -8
- package/src/base/omni-base.entity.js +25 -28
- package/src/base/omni-base.entity.js.map +1 -1
- package/src/base/omni-external-ref.entity.js +40 -43
- package/src/base/omni-external-ref.entity.js.map +1 -1
- package/src/base/omni-named.entity.js +18 -21
- package/src/base/omni-named.entity.js.map +1 -1
- package/src/base/omni-record.entity.js +36 -39
- package/src/base/omni-record.entity.js.map +1 -1
- package/src/base/omni-relation.entity.js +45 -48
- package/src/base/omni-relation.entity.js.map +1 -1
- package/src/index.js +49 -52
- package/src/index.js.map +1 -1
- package/src/omni-collection-kind.enum.js +4 -7
- package/src/omni-collection-kind.enum.js.map +1 -1
- package/src/omni-collection.backend.js +8 -12
- package/src/omni-collection.backend.js.map +1 -1
- package/src/omni-collection.dto.d.ts +1 -1
- package/src/omni-collection.dto.js +110 -113
- package/src/omni-collection.dto.js.map +1 -1
- package/src/omni-collection.dto.ts +1 -1
- package/src/omni-collection.entity.js +19 -22
- package/src/omni-collection.entity.js.map +1 -1
- package/src/omni-collection.service.js +4 -8
- package/src/omni-collection.service.js.map +1 -1
- package/src/omni-document-kind.enum.js +4 -7
- package/src/omni-document-kind.enum.js.map +1 -1
- package/src/omni-document.backend.js +8 -12
- package/src/omni-document.backend.js.map +1 -1
- package/src/omni-document.dto.d.ts +1 -1
- package/src/omni-document.dto.js +130 -133
- package/src/omni-document.dto.js.map +1 -1
- package/src/omni-document.dto.ts +1 -1
- package/src/omni-document.entity.js +28 -31
- package/src/omni-document.entity.js.map +1 -1
- package/src/omni-document.service.js +4 -8
- package/src/omni-document.service.js.map +1 -1
- package/src/omni-dto.helpers.js +1 -4
- package/src/omni-dto.helpers.js.map +1 -1
- package/src/omni-extension-projection.definition.js +24 -29
- package/src/omni-extension-projection.definition.js.map +1 -1
- package/src/omni-extension-projection.resource.d.ts +1 -1
- package/src/omni-extension-projection.resource.js +32 -35
- package/src/omni-extension-projection.resource.js.map +1 -1
- package/src/omni-extension-projection.resource.ts +1 -1
- package/src/omni-extension-projection.service.js +15 -19
- package/src/omni-extension-projection.service.js.map +1 -1
- package/src/omni-external-ref-binding.validator.js +9 -13
- package/src/omni-external-ref-binding.validator.js.map +1 -1
- package/src/omni-external-ref-internal-type.enum.js +4 -7
- package/src/omni-external-ref-internal-type.enum.js.map +1 -1
- package/src/omni-external-ref.backend.js +12 -16
- package/src/omni-external-ref.backend.js.map +1 -1
- package/src/omni-external-ref.dto.d.ts +1 -1
- package/src/omni-external-ref.dto.js +91 -94
- package/src/omni-external-ref.dto.js.map +1 -1
- package/src/omni-external-ref.dto.ts +1 -1
- package/src/omni-external-ref.service.js +11 -15
- package/src/omni-external-ref.service.js.map +1 -1
- package/src/omni-migration.js +22 -27
- package/src/omni-migration.js.map +1 -1
- package/src/omni-named.backend.js +6 -10
- package/src/omni-named.backend.js.map +1 -1
- package/src/omni-named.dto.d.ts +1 -1
- package/src/omni-named.dto.js +57 -60
- package/src/omni-named.dto.js.map +1 -1
- package/src/omni-named.dto.ts +1 -1
- package/src/omni-projection.catalog.js +18 -23
- package/src/omni-projection.catalog.js.map +1 -1
- package/src/omni-projection.lifecycle.js +1 -2
- package/src/omni-record-status.enum.js +4 -7
- package/src/omni-record-status.enum.js.map +1 -1
- package/src/omni-record.backend.js +6 -10
- package/src/omni-record.backend.js.map +1 -1
- package/src/omni-record.dto.d.ts +1 -1
- package/src/omni-record.dto.js +100 -103
- package/src/omni-record.dto.js.map +1 -1
- package/src/omni-record.dto.ts +1 -1
- package/src/omni-record.service.js +6 -10
- package/src/omni-record.service.js.map +1 -1
- package/src/omni-relation-kind.contract.js +10 -14
- package/src/omni-relation-kind.contract.js.map +1 -1
- package/src/omni-relation-kind.enum.js +4 -7
- package/src/omni-relation-kind.enum.js.map +1 -1
- package/src/omni-relation-projection.definition.js +7 -12
- package/src/omni-relation-projection.definition.js.map +1 -1
- package/src/omni-relation-projection.resource.d.ts +1 -1
- package/src/omni-relation-projection.resource.js +66 -71
- package/src/omni-relation-projection.resource.js.map +1 -1
- package/src/omni-relation-projection.resource.ts +2 -2
- package/src/omni-relation-projection.service.js +44 -48
- package/src/omni-relation-projection.service.js.map +1 -1
- package/src/omni-relation-semantics.js +16 -23
- package/src/omni-relation-semantics.js.map +1 -1
- package/src/omni-relation-status.enum.js +4 -7
- package/src/omni-relation-status.enum.js.map +1 -1
- package/src/omni-relation.backend.js +10 -14
- package/src/omni-relation.backend.js.map +1 -1
- package/src/omni-relation.dto.d.ts +1 -1
- package/src/omni-relation.dto.js +89 -92
- package/src/omni-relation.dto.js.map +1 -1
- package/src/omni-relation.dto.ts +1 -1
- package/src/omni-relation.service.js +14 -18
- package/src/omni-relation.service.js.map +1 -1
- package/src/omni-scope.js +14 -18
- package/src/omni-scope.js.map +1 -1
- package/src/omni-scoped.backend.d.ts +1 -1
- package/src/omni-scoped.backend.js +21 -25
- package/src/omni-scoped.backend.js.map +1 -1
- package/src/omni-scoped.backend.ts +1 -1
- package/src/omni-scoped.repository.js +1 -5
- package/src/omni-scoped.repository.js.map +1 -1
- package/src/omni-scoped.service.js +17 -21
- package/src/omni-scoped.service.js.map +1 -1
- package/src/omnikernel.diagnostics.js +1 -4
- package/src/omnikernel.diagnostics.js.map +1 -1
- package/src/omnikernel.module.js +44 -47
- package/src/omnikernel.module.js.map +1 -1
- package/src/omnikernel.query.service.js +21 -26
- package/src/omnikernel.query.service.js.map +1 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.OmniDocumentKind = void 0;
|
|
4
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
5
|
-
var OmniDocumentKind;
|
|
1
|
+
import { registerEnumType } from '@nestjs/graphql';
|
|
2
|
+
export var OmniDocumentKind;
|
|
6
3
|
(function (OmniDocumentKind) {
|
|
7
4
|
OmniDocumentKind["Document"] = "document";
|
|
8
5
|
OmniDocumentKind["Note"] = "note";
|
|
9
6
|
OmniDocumentKind["Article"] = "article";
|
|
10
7
|
OmniDocumentKind["Page"] = "page";
|
|
11
|
-
})(OmniDocumentKind || (
|
|
12
|
-
|
|
8
|
+
})(OmniDocumentKind || (OmniDocumentKind = {}));
|
|
9
|
+
registerEnumType(OmniDocumentKind, {
|
|
13
10
|
name: 'OmniDocumentKind',
|
|
14
11
|
});
|
|
15
12
|
//# sourceMappingURL=omni-document-kind.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-document-kind.enum.js","sourceRoot":"","sources":["omni-document-kind.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-document-kind.enum.js","sourceRoot":"","sources":["omni-document-kind.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,iCAAa,CAAA;AACf,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAED,gBAAgB,CAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const omni_scoped_backend_js_1 = require("./omni-scoped.backend.js");
|
|
7
|
-
const omniDocumentBackendProvidersFactory = (dbConnection) => (0, omni_scoped_backend_js_1.omniScopedBackendProvidersFactory)({
|
|
8
|
-
entityModel: omni_document_entity_js_1.OmniDocumentEntity,
|
|
1
|
+
import { OmniDocumentEntity } from './omni-document.entity.js';
|
|
2
|
+
import { OmniDocumentService } from './omni-document.service.js';
|
|
3
|
+
import { omniBackendServiceToken, omniScopedBackendProvidersFactory, } from './omni-scoped.backend.js';
|
|
4
|
+
export const omniDocumentBackendProvidersFactory = (dbConnection) => omniScopedBackendProvidersFactory({
|
|
5
|
+
entityModel: OmniDocumentEntity,
|
|
9
6
|
dbConnection,
|
|
10
|
-
serviceToken:
|
|
11
|
-
serviceProvider:
|
|
12
|
-
createService: (repository, scope, options) => new
|
|
7
|
+
serviceToken: omniBackendServiceToken(OmniDocumentService),
|
|
8
|
+
serviceProvider: OmniDocumentService,
|
|
9
|
+
createService: (repository, scope, options) => new OmniDocumentService(repository, scope, options.deletion.document),
|
|
13
10
|
});
|
|
14
|
-
exports.omniDocumentBackendProvidersFactory = omniDocumentBackendProvidersFactory;
|
|
15
11
|
//# sourceMappingURL=omni-document.backend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-document.backend.js","sourceRoot":"","sources":["omni-document.backend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-document.backend.js","sourceRoot":"","sources":["omni-document.backend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,YAAoB,EAAE,EAAE,CAC1E,iCAAiC,CAAqB;IACpD,WAAW,EAAE,kBAAkB;IAC/B,YAAY;IACZ,YAAY,EAAE,uBAAuB,CAAC,mBAAmB,CAAC;IAC1D,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAC5C,IAAI,mBAAmB,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;CACxE,CAAC,CAAC"}
|
|
@@ -23,7 +23,7 @@ export declare class OmniDocumentType extends OmniDocumentEntity {
|
|
|
23
23
|
sourceUrl?: string | null;
|
|
24
24
|
publishedAt?: Date | null;
|
|
25
25
|
}
|
|
26
|
-
declare const OmniDocumentCreateInput_base: import("@nestjs/common").Type<Omit<OmniDocumentType, "
|
|
26
|
+
declare const OmniDocumentCreateInput_base: import("@nestjs/common").Type<Omit<OmniDocumentType, "revision" | "createdAt" | "updatedAt" | "kind" | "outgoingRelations" | "incomingRelations">>;
|
|
27
27
|
export declare class OmniDocumentCreateInput extends OmniDocumentCreateInput_base {
|
|
28
28
|
}
|
|
29
29
|
declare const OmniDocumentCondition_base: import("@nestjs/common").Type<Partial<OmniDocumentCreateInput>>;
|
package/src/omni-document.dto.js
CHANGED
|
@@ -1,202 +1,199 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const omni_relation_entity_js_1 = require("./base/omni-relation.entity.js");
|
|
16
|
-
const omni_relation_dto_js_1 = require("./omni-relation.dto.js");
|
|
17
|
-
let OmniDocumentType = class OmniDocumentType extends omni_document_entity_js_1.OmniDocumentEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { InputType, Int, ObjectType, OmitType, PartialType, } from '@nestjs/graphql';
|
|
3
|
+
import { ModelField, ModelObject, } from '@nest-yalc-2/crud-gen/object.decorator.js';
|
|
4
|
+
import { UUIDScalar } from '@nest-yalc-2/graphql/scalars/uuid.scalar.js';
|
|
5
|
+
import returnValue from '@node-yalc/utils/returnValue.js';
|
|
6
|
+
import { IsDate, IsEnum, IsInt, IsObject, IsOptional, IsString, IsUrl, IsUUID, MaxLength, } from 'class-validator';
|
|
7
|
+
import { GraphQLJSONObject } from 'graphql-type-json';
|
|
8
|
+
import { OmniDocumentEntity } from './omni-document.entity.js';
|
|
9
|
+
import { OmniDocumentKind } from './omni-document-kind.enum.js';
|
|
10
|
+
import { assignOmniPublicDto } from './omni-dto.helpers.js';
|
|
11
|
+
import { OmniRecordStatus } from './omni-record-status.enum.js';
|
|
12
|
+
import { OmniRelationEntity } from './base/omni-relation.entity.js';
|
|
13
|
+
import { OmniRelationType } from './omni-relation.dto.js';
|
|
14
|
+
let OmniDocumentType = class OmniDocumentType extends OmniDocumentEntity {
|
|
18
15
|
constructor(data) {
|
|
19
16
|
super();
|
|
20
17
|
if (data) {
|
|
21
|
-
|
|
18
|
+
assignOmniPublicDto(this, data);
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(
|
|
28
|
-
(
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
22
|
+
__decorate([
|
|
23
|
+
ModelField({ gqlType: returnValue(UUIDScalar), isRequired: true }),
|
|
24
|
+
IsUUID(),
|
|
25
|
+
__metadata("design:type", String)
|
|
30
26
|
], OmniDocumentType.prototype, "guid", void 0);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
__decorate([
|
|
28
|
+
ModelField({ gqlType: returnValue(Int) }),
|
|
29
|
+
IsInt(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
35
31
|
], OmniDocumentType.prototype, "revision", void 0);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
gqlType: (
|
|
32
|
+
__decorate([
|
|
33
|
+
ModelField({
|
|
34
|
+
gqlType: returnValue(String),
|
|
39
35
|
gqlOptions: { nullable: true },
|
|
40
36
|
}),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
IsOptional(),
|
|
38
|
+
IsString(),
|
|
39
|
+
MaxLength(128),
|
|
40
|
+
__metadata("design:type", Object)
|
|
45
41
|
], OmniDocumentType.prototype, "externalId", void 0);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
__decorate([
|
|
43
|
+
ModelField({ gqlType: returnValue(String) }),
|
|
44
|
+
IsString(),
|
|
45
|
+
MaxLength(255),
|
|
46
|
+
__metadata("design:type", String)
|
|
51
47
|
], OmniDocumentType.prototype, "title", void 0);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
gqlType: (
|
|
48
|
+
__decorate([
|
|
49
|
+
ModelField({
|
|
50
|
+
gqlType: returnValue(String),
|
|
55
51
|
gqlOptions: { nullable: true },
|
|
56
52
|
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
IsOptional(),
|
|
54
|
+
IsString(),
|
|
55
|
+
MaxLength(255),
|
|
56
|
+
__metadata("design:type", Object)
|
|
61
57
|
], OmniDocumentType.prototype, "slug", void 0);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
__decorate([
|
|
59
|
+
ModelField({ gqlType: returnValue(OmniDocumentKind) }),
|
|
60
|
+
IsEnum(OmniDocumentKind),
|
|
61
|
+
__metadata("design:type", String)
|
|
66
62
|
], OmniDocumentType.prototype, "kind", void 0);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
__decorate([
|
|
64
|
+
ModelField({ gqlType: returnValue(OmniRecordStatus) }),
|
|
65
|
+
IsEnum(OmniRecordStatus),
|
|
66
|
+
__metadata("design:type", String)
|
|
71
67
|
], OmniDocumentType.prototype, "status", void 0);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
gqlType: (
|
|
68
|
+
__decorate([
|
|
69
|
+
ModelField({
|
|
70
|
+
gqlType: returnValue(GraphQLJSONObject),
|
|
75
71
|
gqlOptions: { nullable: true },
|
|
76
72
|
}),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
IsOptional(),
|
|
74
|
+
IsObject(),
|
|
75
|
+
__metadata("design:type", Object)
|
|
80
76
|
], OmniDocumentType.prototype, "payload", void 0);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
gqlType: (
|
|
77
|
+
__decorate([
|
|
78
|
+
ModelField({
|
|
79
|
+
gqlType: returnValue(String),
|
|
84
80
|
gqlOptions: { nullable: true },
|
|
85
81
|
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
IsOptional(),
|
|
83
|
+
IsString(),
|
|
84
|
+
MaxLength(128),
|
|
85
|
+
__metadata("design:type", Object)
|
|
90
86
|
], OmniDocumentType.prototype, "payloadSchemaId", void 0);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
gqlType: (
|
|
87
|
+
__decorate([
|
|
88
|
+
ModelField({
|
|
89
|
+
gqlType: returnValue(Int),
|
|
94
90
|
gqlOptions: { nullable: true },
|
|
95
91
|
}),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
IsOptional(),
|
|
93
|
+
IsInt(),
|
|
94
|
+
__metadata("design:type", Object)
|
|
99
95
|
], OmniDocumentType.prototype, "payloadSchemaVersion", void 0);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
gqlType: () => [
|
|
96
|
+
__decorate([
|
|
97
|
+
ModelField({
|
|
98
|
+
gqlType: () => [OmniRelationType],
|
|
103
99
|
gqlOptions: { nullable: true },
|
|
104
100
|
relation: {
|
|
105
101
|
relationType: 'one-to-many',
|
|
106
102
|
sourceKey: { dst: 'guid', alias: 'guid' },
|
|
107
103
|
targetKey: { dst: 'sourceRecordId', alias: 'sourceRecordId' },
|
|
108
|
-
type: () =>
|
|
104
|
+
type: () => OmniRelationEntity,
|
|
109
105
|
},
|
|
110
106
|
}),
|
|
111
|
-
|
|
107
|
+
__metadata("design:type", Object)
|
|
112
108
|
], OmniDocumentType.prototype, "outgoingRelations", void 0);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
gqlType: () => [
|
|
109
|
+
__decorate([
|
|
110
|
+
ModelField({
|
|
111
|
+
gqlType: () => [OmniRelationType],
|
|
116
112
|
gqlOptions: { nullable: true },
|
|
117
113
|
relation: {
|
|
118
114
|
relationType: 'one-to-many',
|
|
119
115
|
sourceKey: { dst: 'guid', alias: 'guid' },
|
|
120
116
|
targetKey: { dst: 'targetRecordId', alias: 'targetRecordId' },
|
|
121
|
-
type: () =>
|
|
117
|
+
type: () => OmniRelationEntity,
|
|
122
118
|
},
|
|
123
119
|
}),
|
|
124
|
-
|
|
120
|
+
__metadata("design:type", Object)
|
|
125
121
|
], OmniDocumentType.prototype, "incomingRelations", void 0);
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
__decorate([
|
|
123
|
+
ModelField({ gqlType: returnValue(OmniDocumentKind) }),
|
|
124
|
+
IsEnum(OmniDocumentKind),
|
|
125
|
+
__metadata("design:type", String)
|
|
130
126
|
], OmniDocumentType.prototype, "documentKind", void 0);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
gqlType: (
|
|
127
|
+
__decorate([
|
|
128
|
+
ModelField({
|
|
129
|
+
gqlType: returnValue(String),
|
|
134
130
|
gqlOptions: { nullable: true },
|
|
135
131
|
}),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
IsOptional(),
|
|
133
|
+
IsString(),
|
|
134
|
+
__metadata("design:type", Object)
|
|
139
135
|
], OmniDocumentType.prototype, "content", void 0);
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
gqlType: (
|
|
136
|
+
__decorate([
|
|
137
|
+
ModelField({
|
|
138
|
+
gqlType: returnValue(String),
|
|
143
139
|
gqlOptions: { nullable: true },
|
|
144
140
|
}),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
IsOptional(),
|
|
142
|
+
IsString(),
|
|
143
|
+
MaxLength(128),
|
|
144
|
+
__metadata("design:type", Object)
|
|
149
145
|
], OmniDocumentType.prototype, "contentMimeType", void 0);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
gqlType: (
|
|
146
|
+
__decorate([
|
|
147
|
+
ModelField({
|
|
148
|
+
gqlType: returnValue(String),
|
|
153
149
|
gqlOptions: { nullable: true },
|
|
154
150
|
}),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
IsOptional(),
|
|
152
|
+
IsUrl(),
|
|
153
|
+
MaxLength(2048),
|
|
154
|
+
__metadata("design:type", Object)
|
|
159
155
|
], OmniDocumentType.prototype, "sourceUrl", void 0);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
gqlType: (
|
|
156
|
+
__decorate([
|
|
157
|
+
ModelField({
|
|
158
|
+
gqlType: returnValue(Date),
|
|
163
159
|
gqlOptions: { nullable: true },
|
|
164
160
|
}),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
IsOptional(),
|
|
162
|
+
IsDate(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
168
164
|
], OmniDocumentType.prototype, "publishedAt", void 0);
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
OmniDocumentType = __decorate([
|
|
166
|
+
ObjectType(),
|
|
167
|
+
ModelObject(),
|
|
168
|
+
__metadata("design:paramtypes", [Object])
|
|
173
169
|
], OmniDocumentType);
|
|
174
|
-
|
|
170
|
+
export { OmniDocumentType };
|
|
171
|
+
let OmniDocumentCreateInput = class OmniDocumentCreateInput extends OmitType(OmniDocumentType, [
|
|
175
172
|
'createdAt',
|
|
176
173
|
'updatedAt',
|
|
177
174
|
'revision',
|
|
178
175
|
'kind',
|
|
179
176
|
'outgoingRelations',
|
|
180
177
|
'incomingRelations',
|
|
181
|
-
],
|
|
178
|
+
], InputType) {
|
|
182
179
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
(
|
|
186
|
-
(0, object_decorator_js_1.ModelObject)()
|
|
180
|
+
OmniDocumentCreateInput = __decorate([
|
|
181
|
+
InputType(),
|
|
182
|
+
ModelObject()
|
|
187
183
|
], OmniDocumentCreateInput);
|
|
188
|
-
|
|
184
|
+
export { OmniDocumentCreateInput };
|
|
185
|
+
let OmniDocumentCondition = class OmniDocumentCondition extends PartialType(OmniDocumentCreateInput, InputType) {
|
|
189
186
|
};
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
(
|
|
193
|
-
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniDocumentType })
|
|
187
|
+
OmniDocumentCondition = __decorate([
|
|
188
|
+
InputType(),
|
|
189
|
+
ModelObject({ copyFrom: OmniDocumentType })
|
|
194
190
|
], OmniDocumentCondition);
|
|
195
|
-
|
|
191
|
+
export { OmniDocumentCondition };
|
|
192
|
+
let OmniDocumentUpdateInput = class OmniDocumentUpdateInput extends PartialType(OmniDocumentCreateInput, InputType) {
|
|
196
193
|
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
(
|
|
200
|
-
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniDocumentType })
|
|
194
|
+
OmniDocumentUpdateInput = __decorate([
|
|
195
|
+
InputType(),
|
|
196
|
+
ModelObject({ copyFrom: OmniDocumentType })
|
|
201
197
|
], OmniDocumentUpdateInput);
|
|
198
|
+
export { OmniDocumentUpdateInput };
|
|
202
199
|
//# sourceMappingURL=omni-document.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-document.dto.js","sourceRoot":"","sources":["omni-document.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-document.dto.js","sourceRoot":"","sources":["omni-document.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,GAAG,EACH,UAAU,EACV,QAAQ,EACR,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,UAAU,EACV,WAAW,GACZ,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EACL,MAAM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,EAAE;IACZ,KAAK,EAAE;IACP,SAAS,CAAC,IAAI,CAAC;;mDACU;AAQ1B;IANC,UAAU,CAAC;QACV,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC;QAC1B,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC/B,CAAC;IACD,UAAU,EAAE;IACZ,MAAM,EAAE;;qDACiB;AApIf,gBAAgB;IAF5B,UAAU,EAAE;IACZ,WAAW,EAAE;;GACD,gBAAgB,CAqI5B;;AAIM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,QAAQ,CACnD,gBAAgB,EAChB;IACE,WAAW;IACX,WAAW;IACX,UAAU;IACV,MAAM;IACN,mBAAmB;IACnB,mBAAmB;CACX,EACV,SAAS,CACV;CAAG,CAAA;AAXS,uBAAuB;IAFnC,SAAS,EAAE;IACX,WAAW,EAAE;GACD,uBAAuB,CAWhC;;AAIG,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,WAAW,CACpD,uBAAuB,EACvB,SAAS,CACV;CAAG,CAAA;AAHS,qBAAqB;IAFjC,SAAS,EAAE;IACX,WAAW,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;GAC/B,qBAAqB,CAG9B;;AAIG,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,WAAW,CACtD,uBAAuB,EACvB,SAAS,CACV;CAAG,CAAA;AAHS,uBAAuB;IAFnC,SAAS,EAAE;IACX,WAAW,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;GAC/B,uBAAuB,CAGhC"}
|
package/src/omni-document.dto.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ModelObject,
|
|
11
11
|
} from '@nest-yalc-2/crud-gen/object.decorator.js';
|
|
12
12
|
import { UUIDScalar } from '@nest-yalc-2/graphql/scalars/uuid.scalar.js';
|
|
13
|
-
import returnValue from '@node-yalc/utils/returnValue';
|
|
13
|
+
import returnValue from '@node-yalc/utils/returnValue.js';
|
|
14
14
|
import {
|
|
15
15
|
IsDate,
|
|
16
16
|
IsEnum,
|
|
@@ -1,45 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const omni_record_entity_js_1 = require("./base/omni-record.entity.js");
|
|
8
|
-
const omni_document_kind_enum_js_1 = require("./omni-document-kind.enum.js");
|
|
9
|
-
let OmniDocumentEntity = class OmniDocumentEntity extends omni_record_entity_js_1.OmniRecordEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { ChildEntity, Column } from 'typeorm';
|
|
4
|
+
import { OmniRecordEntity } from './base/omni-record.entity.js';
|
|
5
|
+
import { OmniDocumentKind } from './omni-document-kind.enum.js';
|
|
6
|
+
let OmniDocumentEntity = class OmniDocumentEntity extends OmniRecordEntity {
|
|
10
7
|
constructor() {
|
|
11
8
|
super(...arguments);
|
|
12
|
-
this.kind =
|
|
9
|
+
this.kind = OmniDocumentKind.Document;
|
|
13
10
|
}
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(0, typeorm_1.Column)({
|
|
12
|
+
__decorate([
|
|
13
|
+
Column({
|
|
18
14
|
type: 'varchar',
|
|
19
|
-
default:
|
|
20
|
-
enum: Object.values(
|
|
15
|
+
default: OmniDocumentKind.Document,
|
|
16
|
+
enum: Object.values(OmniDocumentKind),
|
|
21
17
|
length: 32,
|
|
22
18
|
}),
|
|
23
|
-
|
|
19
|
+
__metadata("design:type", String)
|
|
24
20
|
], OmniDocumentEntity.prototype, "documentKind", void 0);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ type: 'text', nullable: true }),
|
|
23
|
+
__metadata("design:type", Object)
|
|
28
24
|
], OmniDocumentEntity.prototype, "content", void 0);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ type: 'varchar', nullable: true, length: 128 }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
32
28
|
], OmniDocumentEntity.prototype, "contentMimeType", void 0);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ type: 'varchar', nullable: true, length: 2048 }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
36
32
|
], OmniDocumentEntity.prototype, "sourceUrl", void 0);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ type: Date, nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
40
36
|
], OmniDocumentEntity.prototype, "publishedAt", void 0);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
OmniDocumentEntity = __decorate([
|
|
38
|
+
ChildEntity(OmniDocumentKind.Document),
|
|
39
|
+
ObjectType({ isAbstract: true })
|
|
44
40
|
], OmniDocumentEntity);
|
|
41
|
+
export { OmniDocumentEntity };
|
|
45
42
|
//# sourceMappingURL=omni-document.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-document.entity.js","sourceRoot":"","sources":["omni-document.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-document.entity.js","sourceRoot":"","sources":["omni-document.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAIzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,gBAAgB;IAAjD;;QACL,SAAI,GAAqB,gBAAgB,CAAC,QAAQ,CAAC;IAqBrD,CAAC;CAAA,CAAA;AAbC;IANC,MAAM,CAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,gBAAgB,CAAC,QAAQ;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACrC,MAAM,EAAE,EAAE;KACX,CAAC;;wDAC8B;AAGhC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACjB;AAGxB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2DACzB;AAGhC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qDAChC;AAG1B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACb;AArBf,kBAAkB;IAF9B,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,kBAAkB,CAsB9B"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const omni_document_kind_enum_js_1 = require("./omni-document-kind.enum.js");
|
|
5
|
-
const omni_scoped_service_js_1 = require("./omni-scoped.service.js");
|
|
6
|
-
class OmniDocumentService extends omni_scoped_service_js_1.OmniScopedService {
|
|
1
|
+
import { OmniDocumentKind } from './omni-document-kind.enum.js';
|
|
2
|
+
import { OmniScopedService } from './omni-scoped.service.js';
|
|
3
|
+
export class OmniDocumentService extends OmniScopedService {
|
|
7
4
|
constructor(repository, scopeOrRepositoryWrite, deletion = 'tombstone') {
|
|
8
5
|
super(repository, scopeOrRepositoryWrite, deletion);
|
|
9
6
|
}
|
|
10
7
|
normalizeDocumentInput(input) {
|
|
11
8
|
return {
|
|
12
9
|
...input,
|
|
13
|
-
kind:
|
|
10
|
+
kind: OmniDocumentKind.Document,
|
|
14
11
|
};
|
|
15
12
|
}
|
|
16
13
|
async createEntity(input, findOptions, returnEntity = true) {
|
|
@@ -20,5 +17,4 @@ class OmniDocumentService extends omni_scoped_service_js_1.OmniScopedService {
|
|
|
20
17
|
return super.updateEntity(conditions, this.normalizeDocumentInput(input), findOptions, returnEntity);
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
exports.OmniDocumentService = OmniDocumentService;
|
|
24
20
|
//# sourceMappingURL=omni-document.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-document.service.js","sourceRoot":"","sources":["omni-document.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-document.service.js","sourceRoot":"","sources":["omni-document.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,OAAO,mBAAoB,SAAQ,iBAAqC;IAC5E,YACE,UAAwD,EACxD,sBAC0D,EAC1D,WAA6B,WAAW;QAExC,KAAK,CAAC,UAAU,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAES,sBAAsB,CAC9B,KAAsC;QAEtC,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,gBAAgB,CAAC,QAAQ;SAChC,CAAC;IACJ,CAAC;IAYQ,KAAK,CAAC,YAAY,CACzB,KAAsC,EACtC,WAAwD,EACxD,YAAY,GAAG,IAAI;QAEnB,OAAO,KAAK,CAAC,YAAY,CACvB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAClC,WAAW,EACX,YAAY,CACb,CAAC;IACJ,CAAC;IAcQ,KAAK,CAAC,YAAY,CACzB,UAAgD,EAChD,KAAsC,EACtC,WAAwD,EACxD,YAAY,GAAG,IAAI;QAEnB,OAAO,KAAK,CAAC,YAAY,CACvB,UAAU,EACV,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAClC,WAAW,EACX,YAAY,CACb,CAAC;IACJ,CAAC;CACF"}
|
package/src/omni-dto.helpers.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assignOmniPublicDto = assignOmniPublicDto;
|
|
4
|
-
function assignOmniPublicDto(target, data) {
|
|
1
|
+
export function assignOmniPublicDto(target, data) {
|
|
5
2
|
const { scopeId: _scopeId, deletedAt: _deletedAt, ...publicData } = data;
|
|
6
3
|
Object.assign(target, publicData);
|
|
7
4
|
delete target.scopeId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-dto.helpers.js","sourceRoot":"","sources":["omni-dto.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-dto.helpers.js","sourceRoot":"","sources":["omni-dto.helpers.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,mBAAmB,CACjC,MAAS,EACT,IAAY;IAEZ,MAAM,EACJ,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,UAAU,EACrB,GAAG,UAAU,EACd,GAAG,IAGH,CAAC;IACF,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAClC,OAAQ,MAAgC,CAAC,OAAO,CAAC;IACjD,OAAQ,MAAkC,CAAC,SAAS,CAAC;AACvD,CAAC"}
|