@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
package/package.json
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-yalc-2/omnikernel-module",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Foundational OmniKernel persistence module for nestjs-yalc",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"types": "./src/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./src/index.js",
|
|
10
|
-
"./*.js": "./src/*.js",
|
|
11
10
|
"./*": "./src/*"
|
|
12
11
|
},
|
|
13
|
-
"author": "",
|
|
12
|
+
"author": "Autistic_Intelligence",
|
|
14
13
|
"license": "MIT",
|
|
15
14
|
"files": [
|
|
16
15
|
"dist",
|
|
17
16
|
"src"
|
|
18
17
|
],
|
|
19
18
|
"dependencies": {
|
|
20
|
-
"@nest-yalc-2/crud-gen": "^2.1
|
|
21
|
-
"@nest-yalc-2/data-loader": "^2.1
|
|
22
|
-
"@nest-yalc-2/event-manager": "^2.1
|
|
23
|
-
"@nest-yalc-2/graphql": "^2.1
|
|
19
|
+
"@nest-yalc-2/crud-gen": "^2.2.1",
|
|
20
|
+
"@nest-yalc-2/data-loader": "^2.2.1",
|
|
21
|
+
"@nest-yalc-2/event-manager": "^2.2.1",
|
|
22
|
+
"@nest-yalc-2/graphql": "^2.2.1",
|
|
24
23
|
"@nest-yalc-2/types": "^1.0.0",
|
|
25
|
-
"@nest-yalc-2/utils": "^2.1
|
|
24
|
+
"@nest-yalc-2/utils": "^2.2.1",
|
|
26
25
|
"tslib": "^2.8.1"
|
|
27
26
|
},
|
|
28
27
|
"peerDependencies": {
|
|
@@ -1,45 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
let OmniBaseEntity = class OmniBaseEntity extends typeorm_1.BaseEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { BaseEntity, CreateDateColumn, DeleteDateColumn, PrimaryColumn, UpdateDateColumn, VersionColumn, } from 'typeorm';
|
|
4
|
+
let OmniBaseEntity = class OmniBaseEntity extends BaseEntity {
|
|
8
5
|
constructor() {
|
|
9
6
|
super(...arguments);
|
|
10
7
|
this.scopeId = 'default';
|
|
11
8
|
}
|
|
12
9
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(0, typeorm_1.PrimaryColumn)('varchar', {
|
|
10
|
+
__decorate([
|
|
11
|
+
PrimaryColumn('varchar', {
|
|
16
12
|
name: 'scopeId',
|
|
17
13
|
length: 64,
|
|
18
14
|
default: 'default',
|
|
19
15
|
}),
|
|
20
|
-
|
|
16
|
+
__metadata("design:type", String)
|
|
21
17
|
], OmniBaseEntity.prototype, "scopeId", void 0);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
__decorate([
|
|
19
|
+
PrimaryColumn('varchar', { name: 'guid', length: 36 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
25
21
|
], OmniBaseEntity.prototype, "guid", void 0);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
__decorate([
|
|
23
|
+
VersionColumn({ type: 'integer', default: 1 }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
29
25
|
], OmniBaseEntity.prototype, "revision", void 0);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__decorate([
|
|
27
|
+
DeleteDateColumn({ nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
33
29
|
], OmniBaseEntity.prototype, "deletedAt", void 0);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
__decorate([
|
|
31
|
+
CreateDateColumn(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
37
33
|
], OmniBaseEntity.prototype, "createdAt", void 0);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
__decorate([
|
|
35
|
+
UpdateDateColumn(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
41
37
|
], OmniBaseEntity.prototype, "updatedAt", void 0);
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
OmniBaseEntity = __decorate([
|
|
39
|
+
ObjectType({ isAbstract: true })
|
|
44
40
|
], OmniBaseEntity);
|
|
41
|
+
export { OmniBaseEntity };
|
|
45
42
|
//# sourceMappingURL=omni-base.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-base.entity.js","sourceRoot":"","sources":["omni-base.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-base.entity.js","sourceRoot":"","sources":["omni-base.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,GACd,MAAM,SAAS,CAAC;AAGV,IAAe,cAAc,GAA7B,MAAe,cAAe,SAAQ,UAAU;IAAhD;;QAWL,YAAO,GAAW,SAAS,CAAC;IAkB9B,CAAC;CAAA,CAAA;AAlBC;IALC,aAAa,CAAC,SAAS,EAAE;QACxB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,SAAS;KACnB,CAAC;;+CAC0B;AAG5B;IADC,aAAa,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4CACzC;AAId;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDAC7B;AAIlB;IADC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACb;AAGxB;IADC,gBAAgB,EAAE;8BACP,IAAI;iDAAC;AAGjB;IADC,gBAAgB,EAAE;8BACP,IAAI;iDAAC;AA5BG,cAAc;IADnC,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACX,cAAc,CA6BnC"}
|
|
@@ -1,64 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const omni_base_entity_js_1 = require("./omni-base.entity.js");
|
|
8
|
-
const omni_external_ref_internal_type_enum_js_1 = require("../omni-external-ref-internal-type.enum.js");
|
|
9
|
-
let OmniExternalRefEntity = class OmniExternalRefEntity extends omni_base_entity_js_1.OmniBaseEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
4
|
+
import { OmniBaseEntity } from './omni-base.entity.js';
|
|
5
|
+
import { OmniExternalRefInternalType } from '../omni-external-ref-internal-type.enum.js';
|
|
6
|
+
let OmniExternalRefEntity = class OmniExternalRefEntity extends OmniBaseEntity {
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(0, typeorm_1.Column)({
|
|
8
|
+
__decorate([
|
|
9
|
+
Column({
|
|
14
10
|
type: 'varchar',
|
|
15
|
-
enum: Object.values(
|
|
11
|
+
enum: Object.values(OmniExternalRefInternalType),
|
|
16
12
|
length: 64,
|
|
17
13
|
}),
|
|
18
|
-
|
|
14
|
+
__metadata("design:type", String)
|
|
19
15
|
], OmniExternalRefEntity.prototype, "internalType", void 0);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
__decorate([
|
|
17
|
+
Column({ type: 'varchar', length: 36 }),
|
|
18
|
+
__metadata("design:type", String)
|
|
23
19
|
], OmniExternalRefEntity.prototype, "internalId", void 0);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ type: 'varchar', length: 128 }),
|
|
22
|
+
__metadata("design:type", String)
|
|
27
23
|
], OmniExternalRefEntity.prototype, "provider", void 0);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'varchar', default: '', length: 128 }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
31
27
|
], OmniExternalRefEntity.prototype, "account", void 0);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'varchar', default: '', length: 128 }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
35
31
|
], OmniExternalRefEntity.prototype, "container", void 0);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'varchar', length: 255 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
39
35
|
], OmniExternalRefEntity.prototype, "externalId", void 0);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
43
39
|
], OmniExternalRefEntity.prototype, "payload", void 0);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'varchar', nullable: true, length: 128 }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
47
43
|
], OmniExternalRefEntity.prototype, "payloadSchemaId", void 0);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
51
47
|
], OmniExternalRefEntity.prototype, "payloadSchemaVersion", void 0);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
OmniExternalRefEntity = __decorate([
|
|
49
|
+
Entity('omni-external-ref'),
|
|
50
|
+
Index('omni_external_ref_scope_external_identity_unique', ['scopeId', 'provider', 'account', 'container', 'externalId'], { unique: true }),
|
|
51
|
+
Index('omni_external_ref_scope_internal_lookup_idx', [
|
|
56
52
|
'scopeId',
|
|
57
53
|
'internalType',
|
|
58
54
|
'internalId',
|
|
59
55
|
'provider',
|
|
60
56
|
'guid',
|
|
61
57
|
]),
|
|
62
|
-
|
|
58
|
+
ObjectType({ isAbstract: true })
|
|
63
59
|
], OmniExternalRefEntity);
|
|
60
|
+
export { OmniExternalRefEntity };
|
|
64
61
|
//# sourceMappingURL=omni-external-ref.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-external-ref.entity.js","sourceRoot":"","sources":["omni-external-ref.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-external-ref.entity.js","sourceRoot":"","sources":["omni-external-ref.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAgBlF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,cAAc;CAiCxD,CAAA;AA3BC;IALC,MAAM,CAAC;QACN,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC;QAChD,MAAM,EAAE,EAAE;KACX,CAAC;;2DACyC;AAG3C;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;yDACpB;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uDACvB;AAIlB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sDAC9B;AAIxB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wDAC5B;AAG1B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yDACrB;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAGzC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8DACzB;AAGhC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACP;AAhC1B,qBAAqB;IAdjC,MAAM,CAAC,mBAAmB,CAAC;IAC3B,KAAK,CACJ,kDAAkD,EAClD,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,EAC7D,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,KAAK,CAAC,6CAA6C,EAAE;QACpD,SAAS;QACT,cAAc;QACd,YAAY;QACZ,UAAU;QACV,MAAM;KACP,CAAC;IACD,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,qBAAqB,CAiCjC"}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const omni_base_entity_js_1 = require("./omni-base.entity.js");
|
|
8
|
-
let OmniNamedEntity = class OmniNamedEntity extends omni_base_entity_js_1.OmniBaseEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { Column, Entity } from 'typeorm';
|
|
4
|
+
import { OmniBaseEntity } from './omni-base.entity.js';
|
|
5
|
+
let OmniNamedEntity = class OmniNamedEntity extends OmniBaseEntity {
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
(
|
|
13
|
-
tslib_1.__metadata("design:type", Object)
|
|
7
|
+
__decorate([
|
|
8
|
+
Column({ type: 'varchar', nullable: true, length: 128 }),
|
|
9
|
+
__metadata("design:type", Object)
|
|
14
10
|
], OmniNamedEntity.prototype, "externalId", void 0);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
__decorate([
|
|
12
|
+
Column({ type: 'varchar', length: 255 }),
|
|
13
|
+
__metadata("design:type", String)
|
|
18
14
|
], OmniNamedEntity.prototype, "title", void 0);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
__decorate([
|
|
16
|
+
Column({ type: 'varchar', nullable: true, length: 255 }),
|
|
17
|
+
__metadata("design:type", Object)
|
|
22
18
|
], OmniNamedEntity.prototype, "slug", void 0);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
OmniNamedEntity = __decorate([
|
|
20
|
+
Entity('omni-named'),
|
|
21
|
+
ObjectType({ isAbstract: true })
|
|
26
22
|
], OmniNamedEntity);
|
|
23
|
+
export { OmniNamedEntity };
|
|
27
24
|
//# sourceMappingURL=omni-named.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-named.entity.js","sourceRoot":"","sources":["omni-named.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-named.entity.js","sourceRoot":"","sources":["omni-named.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIhD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,cAAc;CASlD,CAAA;AAPC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAC9B;AAG3B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8CAC1B;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACpC;AARV,eAAe;IAF3B,MAAM,CAAC,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,eAAe,CAS3B"}
|
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const omni_relation_entity_js_1 = require("./omni-relation.entity.js");
|
|
9
|
-
const omni_record_status_enum_js_1 = require("../omni-record-status.enum.js");
|
|
10
|
-
let OmniRecordEntity = class OmniRecordEntity extends omni_named_entity_js_1.OmniNamedEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { Column, Entity, Index, OneToMany, TableInheritance } from 'typeorm';
|
|
4
|
+
import { OmniNamedEntity } from './omni-named.entity.js';
|
|
5
|
+
import { OmniRelationEntity } from './omni-relation.entity.js';
|
|
6
|
+
import { OmniRecordStatus } from '../omni-record-status.enum.js';
|
|
7
|
+
let OmniRecordEntity = class OmniRecordEntity extends OmniNamedEntity {
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
tslib_1.__metadata("design:type", String)
|
|
9
|
+
__decorate([
|
|
10
|
+
Column({ type: 'varchar', length: 64 }),
|
|
11
|
+
__metadata("design:type", String)
|
|
16
12
|
], OmniRecordEntity.prototype, "kind", void 0);
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
__decorate([
|
|
14
|
+
Column({
|
|
19
15
|
type: 'varchar',
|
|
20
|
-
default:
|
|
21
|
-
enum: Object.values(
|
|
16
|
+
default: OmniRecordStatus.Draft,
|
|
17
|
+
enum: Object.values(OmniRecordStatus),
|
|
22
18
|
length: 32,
|
|
23
19
|
}),
|
|
24
|
-
|
|
20
|
+
__metadata("design:type", String)
|
|
25
21
|
], OmniRecordEntity.prototype, "status", void 0);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
29
25
|
], OmniRecordEntity.prototype, "payload", void 0);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'varchar', nullable: true, length: 128 }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
33
29
|
], OmniRecordEntity.prototype, "payloadSchemaId", void 0);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
37
33
|
], OmniRecordEntity.prototype, "payloadSchemaVersion", void 0);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
__decorate([
|
|
35
|
+
OneToMany(() => OmniRelationEntity, (relation) => relation.sourceRecord),
|
|
36
|
+
__metadata("design:type", Object)
|
|
41
37
|
], OmniRecordEntity.prototype, "outgoingRelations", void 0);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
__decorate([
|
|
39
|
+
OneToMany(() => OmniRelationEntity, (relation) => relation.targetRecord),
|
|
40
|
+
__metadata("design:type", Object)
|
|
45
41
|
], OmniRecordEntity.prototype, "incomingRelations", void 0);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
OmniRecordEntity = __decorate([
|
|
43
|
+
Entity('omni-record'),
|
|
44
|
+
Index('omni_record_scope_kind_status_guid_idx', [
|
|
49
45
|
'scopeId',
|
|
50
46
|
'kind',
|
|
51
47
|
'status',
|
|
52
48
|
'guid',
|
|
53
49
|
]),
|
|
54
|
-
|
|
50
|
+
TableInheritance({
|
|
55
51
|
column: {
|
|
56
52
|
name: 'recordType',
|
|
57
53
|
type: 'varchar',
|
|
58
54
|
length: 32,
|
|
59
55
|
},
|
|
60
56
|
}),
|
|
61
|
-
|
|
57
|
+
ObjectType({ isAbstract: true })
|
|
62
58
|
], OmniRecordEntity);
|
|
59
|
+
export { OmniRecordEntity };
|
|
63
60
|
//# sourceMappingURL=omni-record.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-record.entity.js","sourceRoot":"","sources":["omni-record.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-record.entity.js","sourceRoot":"","sources":["omni-record.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiB1D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,eAAe;CA4BpD,CAAA;AA1BC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8CAC1B;AAQd;IANC,MAAM,CAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,gBAAgB,CAAC,KAAK;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACrC,MAAM,EAAE,EAAE;KACX,CAAC;;gDACwB;AAG1B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAIzC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yDACzB;AAIhC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACP;AAGrC;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;;2DACtB;AAGnD;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;;2DACtB;AA3BxC,gBAAgB;IAf5B,MAAM,CAAC,aAAa,CAAC;IACrB,KAAK,CAAC,wCAAwC,EAAE;QAC/C,SAAS;QACT,MAAM;QACN,QAAQ;QACR,MAAM;KACP,CAAC;IACD,gBAAgB,CAAC;QAChB,MAAM,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;SACX;KACF,CAAC;IACD,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,gBAAgB,CA4B5B"}
|
|
@@ -1,67 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const omni_record_entity_js_1 = require("./omni-record.entity.js");
|
|
9
|
-
const omni_relation_status_enum_js_1 = require("../omni-relation-status.enum.js");
|
|
10
|
-
let OmniRelationEntity = class OmniRelationEntity extends omni_base_entity_js_1.OmniBaseEntity {
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ObjectType } from '@nestjs/graphql';
|
|
3
|
+
import { Column, Entity, Index, JoinColumn, ManyToOne } from 'typeorm';
|
|
4
|
+
import { OmniBaseEntity } from './omni-base.entity.js';
|
|
5
|
+
import { OmniRecordEntity } from './omni-record.entity.js';
|
|
6
|
+
import { OmniRelationStatus } from '../omni-relation-status.enum.js';
|
|
7
|
+
let OmniRelationEntity = class OmniRelationEntity extends OmniBaseEntity {
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
tslib_1.__metadata("design:type", String)
|
|
9
|
+
__decorate([
|
|
10
|
+
Column({ type: 'varchar', length: 36 }),
|
|
11
|
+
__metadata("design:type", String)
|
|
16
12
|
], OmniRelationEntity.prototype, "sourceRecordId", void 0);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
__decorate([
|
|
14
|
+
ManyToOne(() => OmniRecordEntity, (record) => record.outgoingRelations),
|
|
15
|
+
JoinColumn([
|
|
20
16
|
{ name: 'scopeId', referencedColumnName: 'scopeId' },
|
|
21
17
|
{ name: 'sourceRecordId', referencedColumnName: 'guid' },
|
|
22
18
|
]),
|
|
23
|
-
|
|
19
|
+
__metadata("design:type", Object)
|
|
24
20
|
], OmniRelationEntity.prototype, "sourceRecord", void 0);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ type: 'varchar', length: 36 }),
|
|
23
|
+
__metadata("design:type", String)
|
|
28
24
|
], OmniRelationEntity.prototype, "targetRecordId", void 0);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
__decorate([
|
|
26
|
+
ManyToOne(() => OmniRecordEntity, (record) => record.incomingRelations),
|
|
27
|
+
JoinColumn([
|
|
32
28
|
{ name: 'scopeId', referencedColumnName: 'scopeId' },
|
|
33
29
|
{ name: 'targetRecordId', referencedColumnName: 'guid' },
|
|
34
30
|
]),
|
|
35
|
-
|
|
31
|
+
__metadata("design:type", Object)
|
|
36
32
|
], OmniRelationEntity.prototype, "targetRecord", void 0);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ type: 'varchar', length: 64 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
40
36
|
], OmniRelationEntity.prototype, "kind", void 0);
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({
|
|
43
39
|
type: 'varchar',
|
|
44
|
-
default:
|
|
45
|
-
enum: Object.values(
|
|
40
|
+
default: OmniRelationStatus.Active,
|
|
41
|
+
enum: Object.values(OmniRelationStatus),
|
|
46
42
|
length: 32,
|
|
47
43
|
}),
|
|
48
|
-
|
|
44
|
+
__metadata("design:type", String)
|
|
49
45
|
], OmniRelationEntity.prototype, "status", void 0);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ type: 'simple-json', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
53
49
|
], OmniRelationEntity.prototype, "payload", void 0);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
__decorate([
|
|
51
|
+
Column({ type: 'varchar', nullable: true, length: 128 }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
57
53
|
], OmniRelationEntity.prototype, "payloadSchemaId", void 0);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
61
57
|
], OmniRelationEntity.prototype, "payloadSchemaVersion", void 0);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
OmniRelationEntity = __decorate([
|
|
59
|
+
Entity('omni-relation'),
|
|
60
|
+
Index('omni_relation_scope_source_kind_status_created_guid_idx', [
|
|
65
61
|
'scopeId',
|
|
66
62
|
'sourceRecordId',
|
|
67
63
|
'kind',
|
|
@@ -69,7 +65,7 @@ exports.OmniRelationEntity = OmniRelationEntity = tslib_1.__decorate([
|
|
|
69
65
|
'createdAt',
|
|
70
66
|
'guid',
|
|
71
67
|
]),
|
|
72
|
-
|
|
68
|
+
Index('omni_relation_scope_target_kind_status_created_guid_idx', [
|
|
73
69
|
'scopeId',
|
|
74
70
|
'targetRecordId',
|
|
75
71
|
'kind',
|
|
@@ -77,7 +73,8 @@ exports.OmniRelationEntity = OmniRelationEntity = tslib_1.__decorate([
|
|
|
77
73
|
'createdAt',
|
|
78
74
|
'guid',
|
|
79
75
|
]),
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
Index('omni_relation_scope_edge_kind_status_unique', ['scopeId', 'sourceRecordId', 'targetRecordId', 'kind', 'status'], { unique: true }),
|
|
77
|
+
ObjectType({ isAbstract: true })
|
|
82
78
|
], OmniRelationEntity);
|
|
79
|
+
export { OmniRelationEntity };
|
|
83
80
|
//# sourceMappingURL=omni-relation.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-relation.entity.js","sourceRoot":"","sources":["omni-relation.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-relation.entity.js","sourceRoot":"","sources":["omni-relation.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAyB9D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,cAAc;CAyCrD,CAAA;AAvCC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0DAChB;AAOxB;IALC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC;IACvE,UAAU,CAAC;QACV,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE;QACpD,EAAE,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,EAAE;KACzD,CAAC;;wDACwC;AAG1C;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0DAChB;AAOxB;IALC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC;IACvE,UAAU,CAAC;QACV,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE;QACpD,EAAE,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,EAAE;KACzD,CAAC;;wDACwC;AAI1C;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDAC1B;AAQd;IANC,MAAM,CAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,kBAAkB,CAAC,MAAM;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;QACvC,MAAM,EAAE,EAAE;KACX,CAAC;;kDAC0B;AAG5B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGzC;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,CAAC;;gEACP;AAxC1B,kBAAkB;IAvB9B,MAAM,CAAC,eAAe,CAAC;IACvB,KAAK,CAAC,yDAAyD,EAAE;QAChE,SAAS;QACT,gBAAgB;QAChB,MAAM;QACN,QAAQ;QACR,WAAW;QACX,MAAM;KACP,CAAC;IACD,KAAK,CAAC,yDAAyD,EAAE;QAChE,SAAS;QACT,gBAAgB;QAChB,MAAM;QACN,QAAQ;QACR,WAAW;QACX,MAAM;KACP,CAAC;IACD,KAAK,CACJ,6CAA6C,EAC7C,CAAC,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,CAAC,EACjE,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,kBAAkB,CAyC9B"}
|