@nest-yalc-2/omnikernel-module 1.1.0 → 2.1.0
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 +6 -6
- package/src/base/omni-base.entity.js +14 -22
- package/src/base/omni-base.entity.js.map +1 -1
- package/src/base/omni-external-ref.entity.js +20 -28
- package/src/base/omni-external-ref.entity.js.map +1 -1
- package/src/base/omni-named.entity.js +8 -16
- package/src/base/omni-named.entity.js.map +1 -1
- package/src/base/omni-record.entity.js +16 -24
- package/src/base/omni-record.entity.js.map +1 -1
- package/src/base/omni-relation.entity.js +20 -28
- package/src/base/omni-relation.entity.js.map +1 -1
- package/src/index.js +50 -63
- package/src/index.js.map +1 -1
- package/src/omni-collection.dto.d.ts +1 -1
- package/src/omni-collection.dto.js +47 -58
- package/src/omni-collection.dto.js.map +1 -1
- package/src/omni-collection.dto.ts +1 -1
- package/src/omni-collection.entity.js +6 -14
- package/src/omni-collection.entity.js.map +1 -1
- package/src/omni-document.dto.d.ts +1 -1
- package/src/omni-document.dto.js +56 -67
- package/src/omni-document.dto.js.map +1 -1
- package/src/omni-document.dto.ts +1 -1
- package/src/omni-document.entity.js +12 -20
- package/src/omni-document.entity.js.map +1 -1
- package/src/omni-extension-projection.resource.d.ts +1 -1
- package/src/omni-extension-projection.resource.ts +1 -1
- package/src/omni-external-ref.dto.d.ts +1 -1
- package/src/omni-external-ref.dto.js +40 -51
- package/src/omni-external-ref.dto.js.map +1 -1
- package/src/omni-external-ref.dto.ts +1 -1
- package/src/omni-named.dto.d.ts +1 -1
- package/src/omni-named.dto.js +22 -33
- package/src/omni-named.dto.js.map +1 -1
- package/src/omni-named.dto.ts +1 -1
- package/src/omni-record.dto.d.ts +1 -1
- package/src/omni-record.dto.js +41 -52
- package/src/omni-record.dto.js.map +1 -1
- package/src/omni-record.dto.ts +1 -1
- package/src/omni-relation-projection.resource.d.ts +1 -1
- package/src/omni-relation-projection.resource.js +3 -5
- package/src/omni-relation-projection.resource.js.map +1 -1
- package/src/omni-relation-projection.resource.ts +2 -2
- package/src/omni-relation.dto.d.ts +1 -1
- package/src/omni-relation.dto.js +38 -49
- package/src/omni-relation.dto.js.map +1 -1
- package/src/omni-relation.dto.ts +1 -1
- package/src/omni-scope.js +5 -16
- package/src/omni-scope.js.map +1 -1
- package/src/omni-scoped.backend.d.ts +1 -1
- package/src/omni-scoped.backend.ts +1 -1
- package/src/omnikernel.module.js +2 -7
- package/src/omnikernel.module.js.map +1 -1
|
@@ -1,15 +1,7 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.OmniDocumentEntity = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
6
|
const typeorm_1 = require("typeorm");
|
|
15
7
|
const omni_record_entity_js_1 = require("./base/omni-record.entity.js");
|
|
@@ -21,32 +13,32 @@ let OmniDocumentEntity = class OmniDocumentEntity extends omni_record_entity_js_
|
|
|
21
13
|
}
|
|
22
14
|
};
|
|
23
15
|
exports.OmniDocumentEntity = OmniDocumentEntity;
|
|
24
|
-
__decorate([
|
|
16
|
+
tslib_1.__decorate([
|
|
25
17
|
(0, typeorm_1.Column)({
|
|
26
18
|
type: 'varchar',
|
|
27
19
|
default: omni_document_kind_enum_js_1.OmniDocumentKind.Document,
|
|
28
20
|
enum: Object.values(omni_document_kind_enum_js_1.OmniDocumentKind),
|
|
29
21
|
length: 32,
|
|
30
22
|
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
32
24
|
], OmniDocumentEntity.prototype, "documentKind", void 0);
|
|
33
|
-
__decorate([
|
|
25
|
+
tslib_1.__decorate([
|
|
34
26
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
27
|
+
tslib_1.__metadata("design:type", Object)
|
|
36
28
|
], OmniDocumentEntity.prototype, "content", void 0);
|
|
37
|
-
__decorate([
|
|
29
|
+
tslib_1.__decorate([
|
|
38
30
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: 128 }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
31
|
+
tslib_1.__metadata("design:type", Object)
|
|
40
32
|
], OmniDocumentEntity.prototype, "contentMimeType", void 0);
|
|
41
|
-
__decorate([
|
|
33
|
+
tslib_1.__decorate([
|
|
42
34
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: 2048 }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
35
|
+
tslib_1.__metadata("design:type", Object)
|
|
44
36
|
], OmniDocumentEntity.prototype, "sourceUrl", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, typeorm_1.Column)({ type: Date, nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
39
|
+
tslib_1.__metadata("design:type", Object)
|
|
48
40
|
], OmniDocumentEntity.prototype, "publishedAt", void 0);
|
|
49
|
-
exports.OmniDocumentEntity = OmniDocumentEntity = __decorate([
|
|
41
|
+
exports.OmniDocumentEntity = OmniDocumentEntity = tslib_1.__decorate([
|
|
50
42
|
(0, typeorm_1.ChildEntity)(omni_document_kind_enum_js_1.OmniDocumentKind.Document),
|
|
51
43
|
(0, graphql_1.ObjectType)({ isAbstract: true })
|
|
52
44
|
], OmniDocumentEntity);
|
|
@@ -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,6CAA6C;AAC7C,qCAA8C;AAC9C,wEAAgE;AAChE,6EAAgE;AAIzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wCAAgB;IAAjD;;QACL,SAAI,GAAqB,6CAAgB,CAAC,QAAQ,CAAC;IAqBrD,CAAC;CAAA,CAAA;AAtBY,gDAAkB;AAS7B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,6CAAgB,CAAC,QAAQ;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,6CAAgB,CAAC;QACrC,MAAM,EAAE,EAAE;KACX,CAAC;;wDAC8B;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACjB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2DACzB;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qDAChC;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACb;6BArBf,kBAAkB;IAF9B,IAAA,qBAAW,EAAC,6CAAgB,CAAC,QAAQ,CAAC;IACtC,IAAA,oBAAU,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACpB,kBAAkB,CAsB9B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InjectionToken, type Provider } from '@nestjs/common';
|
|
2
2
|
import { type ICrudGenResourceFactoryResult, type ProjectionGraphqlTypes } from '@nest-yalc-2/crud-gen';
|
|
3
|
-
import type { ClassType } from '@
|
|
3
|
+
import type { ClassType } from '@node-yalc/types/globals';
|
|
4
4
|
import type { EntityTarget, ObjectLiteral } from 'typeorm';
|
|
5
5
|
import type { OmniExtensionProjectionDefinition } from './omni-extension-projection.definition.js';
|
|
6
6
|
import type { OmniExtensionProjectionReaderRegistration, OmniProjectionReaderCatalogProvider } from './omni-projection.catalog.js';
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getFn,
|
|
15
15
|
} from '@nest-yalc-2/data-loader';
|
|
16
16
|
import { YalcEventService } from '@nest-yalc-2/event-manager';
|
|
17
|
-
import type { ClassType } from '@
|
|
17
|
+
import type { ClassType } from '@node-yalc/types/globals';
|
|
18
18
|
import type { DataSource, EntityTarget, ObjectLiteral } from 'typeorm';
|
|
19
19
|
import { OmniRecordEntity } from './base/omni-record.entity.js';
|
|
20
20
|
import type { OmniExtensionProjectionDefinition } from './omni-extension-projection.definition.js';
|
|
@@ -14,7 +14,7 @@ export declare class OmniExternalRefType extends OmniExternalRefEntity {
|
|
|
14
14
|
payloadSchemaId?: string | null;
|
|
15
15
|
payloadSchemaVersion?: number | null;
|
|
16
16
|
}
|
|
17
|
-
declare const OmniExternalRefCreateInput_base: import("@nestjs/common").Type<Omit<OmniExternalRefType, "
|
|
17
|
+
declare const OmniExternalRefCreateInput_base: import("@nestjs/common").Type<Omit<OmniExternalRefType, "createdAt" | "updatedAt" | "revision">>;
|
|
18
18
|
export declare class OmniExternalRefCreateInput extends OmniExternalRefCreateInput_base {
|
|
19
19
|
}
|
|
20
20
|
declare const OmniExternalRefCondition_base: import("@nestjs/common").Type<Partial<OmniExternalRefCreateInput>>;
|
|
@@ -1,22 +1,11 @@
|
|
|
1
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OmniExternalRefUpdateInput = exports.OmniExternalRefCondition = exports.OmniExternalRefCreateInput = exports.OmniExternalRefType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
6
|
const object_decorator_js_1 = require("@nest-yalc-2/crud-gen/object.decorator.js");
|
|
18
7
|
const uuid_scalar_js_1 = require("@nest-yalc-2/graphql/scalars/uuid.scalar.js");
|
|
19
|
-
const
|
|
8
|
+
const returnValue_1 = tslib_1.__importDefault(require("@node-yalc/utils/returnValue"));
|
|
20
9
|
const class_validator_1 = require("class-validator");
|
|
21
10
|
const graphql_type_json_1 = require("graphql-type-json");
|
|
22
11
|
const omni_external_ref_entity_js_1 = require("./base/omni-external-ref.entity.js");
|
|
@@ -31,109 +20,109 @@ let OmniExternalRefType = class OmniExternalRefType extends omni_external_ref_en
|
|
|
31
20
|
}
|
|
32
21
|
};
|
|
33
22
|
exports.OmniExternalRefType = OmniExternalRefType;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(uuid_scalar_js_1.UUIDScalar), isRequired: true }),
|
|
36
25
|
(0, class_validator_1.IsUUID)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
38
27
|
], OmniExternalRefType.prototype, "guid", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(graphql_1.Int) }),
|
|
41
30
|
(0, class_validator_1.IsInt)(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
31
|
+
tslib_1.__metadata("design:type", Number)
|
|
43
32
|
], OmniExternalRefType.prototype, "revision", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(omni_external_ref_internal_type_enum_js_1.OmniExternalRefInternalType) }),
|
|
46
35
|
(0, class_validator_1.IsEnum)(omni_external_ref_internal_type_enum_js_1.OmniExternalRefInternalType),
|
|
47
|
-
__metadata("design:type", String)
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
48
37
|
], OmniExternalRefType.prototype, "internalType", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(uuid_scalar_js_1.UUIDScalar), isRequired: true }),
|
|
51
40
|
(0, class_validator_1.IsUUID)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
53
42
|
], OmniExternalRefType.prototype, "internalId", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(String) }),
|
|
56
45
|
(0, class_validator_1.IsString)(),
|
|
57
46
|
(0, class_validator_1.MaxLength)(128),
|
|
58
|
-
__metadata("design:type", String)
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
59
48
|
], OmniExternalRefType.prototype, "provider", void 0);
|
|
60
|
-
__decorate([
|
|
49
|
+
tslib_1.__decorate([
|
|
61
50
|
(0, object_decorator_js_1.ModelField)({
|
|
62
|
-
gqlType: (0,
|
|
51
|
+
gqlType: (0, returnValue_1.default)(String),
|
|
63
52
|
gqlOptions: { nullable: true },
|
|
64
53
|
}),
|
|
65
54
|
(0, class_validator_1.IsOptional)(),
|
|
66
55
|
(0, class_validator_1.IsString)(),
|
|
67
56
|
(0, class_validator_1.MaxLength)(128),
|
|
68
|
-
__metadata("design:type", Object)
|
|
57
|
+
tslib_1.__metadata("design:type", Object)
|
|
69
58
|
], OmniExternalRefType.prototype, "account", void 0);
|
|
70
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
71
60
|
(0, object_decorator_js_1.ModelField)({
|
|
72
|
-
gqlType: (0,
|
|
61
|
+
gqlType: (0, returnValue_1.default)(String),
|
|
73
62
|
gqlOptions: { nullable: true },
|
|
74
63
|
}),
|
|
75
64
|
(0, class_validator_1.IsOptional)(),
|
|
76
65
|
(0, class_validator_1.IsString)(),
|
|
77
66
|
(0, class_validator_1.MaxLength)(128),
|
|
78
|
-
__metadata("design:type", Object)
|
|
67
|
+
tslib_1.__metadata("design:type", Object)
|
|
79
68
|
], OmniExternalRefType.prototype, "container", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(String) }),
|
|
82
71
|
(0, class_validator_1.IsString)(),
|
|
83
72
|
(0, class_validator_1.MaxLength)(255),
|
|
84
|
-
__metadata("design:type", String)
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
85
74
|
], OmniExternalRefType.prototype, "externalId", void 0);
|
|
86
|
-
__decorate([
|
|
75
|
+
tslib_1.__decorate([
|
|
87
76
|
(0, object_decorator_js_1.ModelField)({
|
|
88
|
-
gqlType: (0,
|
|
77
|
+
gqlType: (0, returnValue_1.default)(graphql_type_json_1.GraphQLJSONObject),
|
|
89
78
|
gqlOptions: { nullable: true },
|
|
90
79
|
}),
|
|
91
80
|
(0, class_validator_1.IsOptional)(),
|
|
92
81
|
(0, class_validator_1.IsObject)(),
|
|
93
|
-
__metadata("design:type", Object)
|
|
82
|
+
tslib_1.__metadata("design:type", Object)
|
|
94
83
|
], OmniExternalRefType.prototype, "payload", void 0);
|
|
95
|
-
__decorate([
|
|
84
|
+
tslib_1.__decorate([
|
|
96
85
|
(0, object_decorator_js_1.ModelField)({
|
|
97
|
-
gqlType: (0,
|
|
86
|
+
gqlType: (0, returnValue_1.default)(String),
|
|
98
87
|
gqlOptions: { nullable: true },
|
|
99
88
|
}),
|
|
100
89
|
(0, class_validator_1.IsOptional)(),
|
|
101
90
|
(0, class_validator_1.IsString)(),
|
|
102
91
|
(0, class_validator_1.MaxLength)(128),
|
|
103
|
-
__metadata("design:type", Object)
|
|
92
|
+
tslib_1.__metadata("design:type", Object)
|
|
104
93
|
], OmniExternalRefType.prototype, "payloadSchemaId", void 0);
|
|
105
|
-
__decorate([
|
|
94
|
+
tslib_1.__decorate([
|
|
106
95
|
(0, object_decorator_js_1.ModelField)({
|
|
107
|
-
gqlType: (0,
|
|
96
|
+
gqlType: (0, returnValue_1.default)(graphql_1.Int),
|
|
108
97
|
gqlOptions: { nullable: true },
|
|
109
98
|
}),
|
|
110
99
|
(0, class_validator_1.IsOptional)(),
|
|
111
100
|
(0, class_validator_1.IsInt)(),
|
|
112
|
-
__metadata("design:type", Object)
|
|
101
|
+
tslib_1.__metadata("design:type", Object)
|
|
113
102
|
], OmniExternalRefType.prototype, "payloadSchemaVersion", void 0);
|
|
114
|
-
exports.OmniExternalRefType = OmniExternalRefType = __decorate([
|
|
103
|
+
exports.OmniExternalRefType = OmniExternalRefType = tslib_1.__decorate([
|
|
115
104
|
(0, graphql_1.ObjectType)(),
|
|
116
105
|
(0, object_decorator_js_1.ModelObject)(),
|
|
117
|
-
__metadata("design:paramtypes", [Object])
|
|
106
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
118
107
|
], OmniExternalRefType);
|
|
119
108
|
let OmniExternalRefCreateInput = class OmniExternalRefCreateInput extends (0, graphql_1.OmitType)(OmniExternalRefType, ['createdAt', 'updatedAt', 'revision'], graphql_1.InputType) {
|
|
120
109
|
};
|
|
121
110
|
exports.OmniExternalRefCreateInput = OmniExternalRefCreateInput;
|
|
122
|
-
exports.OmniExternalRefCreateInput = OmniExternalRefCreateInput = __decorate([
|
|
111
|
+
exports.OmniExternalRefCreateInput = OmniExternalRefCreateInput = tslib_1.__decorate([
|
|
123
112
|
(0, graphql_1.InputType)(),
|
|
124
113
|
(0, object_decorator_js_1.ModelObject)()
|
|
125
114
|
], OmniExternalRefCreateInput);
|
|
126
115
|
let OmniExternalRefCondition = class OmniExternalRefCondition extends (0, graphql_1.PartialType)(OmniExternalRefCreateInput, graphql_1.InputType) {
|
|
127
116
|
};
|
|
128
117
|
exports.OmniExternalRefCondition = OmniExternalRefCondition;
|
|
129
|
-
exports.OmniExternalRefCondition = OmniExternalRefCondition = __decorate([
|
|
118
|
+
exports.OmniExternalRefCondition = OmniExternalRefCondition = tslib_1.__decorate([
|
|
130
119
|
(0, graphql_1.InputType)(),
|
|
131
120
|
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniExternalRefType })
|
|
132
121
|
], OmniExternalRefCondition);
|
|
133
122
|
let OmniExternalRefUpdateInput = class OmniExternalRefUpdateInput extends (0, graphql_1.PartialType)(OmniExternalRefCreateInput, graphql_1.InputType) {
|
|
134
123
|
};
|
|
135
124
|
exports.OmniExternalRefUpdateInput = OmniExternalRefUpdateInput;
|
|
136
|
-
exports.OmniExternalRefUpdateInput = OmniExternalRefUpdateInput = __decorate([
|
|
125
|
+
exports.OmniExternalRefUpdateInput = OmniExternalRefUpdateInput = tslib_1.__decorate([
|
|
137
126
|
(0, graphql_1.InputType)(),
|
|
138
127
|
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniExternalRefType })
|
|
139
128
|
], OmniExternalRefUpdateInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-external-ref.dto.js","sourceRoot":"","sources":["omni-external-ref.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-external-ref.dto.js","sourceRoot":"","sources":["omni-external-ref.dto.ts"],"names":[],"mappings":";;;;AAAA,6CAMyB;AACzB,mFAGmD;AACnD,gFAAyE;AACzE,uFAAuD;AACvD,qDAQyB;AACzB,yDAAsD;AACtD,oFAA2E;AAC3E,+DAA4D;AAC5D,uGAAwF;AAIjF,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,mDAAqB;IAC5D,YAAY,IAAmC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,IAAI,EAAE,CAAC;YACT,IAAA,yCAAmB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CAsEF,CAAA;AA5EY,kDAAmB;AAU9B;IAFC,IAAA,gCAAU,EAAC,EAAE,OAAO,EAA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pC,IAAA,mBAAS,GAAE;IACX,IAAA,iCAAW,EAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC;GAClC,wBAAwB,CAGjC;AAIG,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,IAAA,qBAAW,EACzD,0BAA0B,EAC1B,mBAAS,CACV;CAAG,CAAA;AAHS,gEAA0B;qCAA1B,0BAA0B;IAFtC,IAAA,mBAAS,GAAE;IACX,IAAA,iCAAW,EAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC;GAClC,0BAA0B,CAGnC"}
|
|
@@ -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 '@
|
|
13
|
+
import returnValue from '@node-yalc/utils/returnValue';
|
|
14
14
|
import {
|
|
15
15
|
IsEnum,
|
|
16
16
|
IsInt,
|
package/src/omni-named.dto.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class OmniNamedType extends OmniNamedEntity {
|
|
|
7
7
|
title: string;
|
|
8
8
|
slug?: string | null;
|
|
9
9
|
}
|
|
10
|
-
declare const OmniNamedCreateInput_base: import("@nestjs/common").Type<Omit<OmniNamedType, "
|
|
10
|
+
declare const OmniNamedCreateInput_base: import("@nestjs/common").Type<Omit<OmniNamedType, "createdAt" | "updatedAt" | "revision">>;
|
|
11
11
|
export declare class OmniNamedCreateInput extends OmniNamedCreateInput_base {
|
|
12
12
|
}
|
|
13
13
|
declare const OmniNamedCondition_base: import("@nestjs/common").Type<Partial<OmniNamedCreateInput>>;
|
package/src/omni-named.dto.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.OmniNamedUpdateInput = exports.OmniNamedCondition = exports.OmniNamedCreateInput = exports.OmniNamedType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
6
|
const object_decorator_js_1 = require("@nest-yalc-2/crud-gen/object.decorator.js");
|
|
18
7
|
const uuid_scalar_js_1 = require("@nest-yalc-2/graphql/scalars/uuid.scalar.js");
|
|
19
|
-
const
|
|
8
|
+
const returnValue_1 = tslib_1.__importDefault(require("@node-yalc/utils/returnValue"));
|
|
20
9
|
const class_validator_1 = require("class-validator");
|
|
21
10
|
const omni_named_entity_js_1 = require("./base/omni-named.entity.js");
|
|
22
11
|
const omni_dto_helpers_js_1 = require("./omni-dto.helpers.js");
|
|
@@ -29,65 +18,65 @@ let OmniNamedType = class OmniNamedType extends omni_named_entity_js_1.OmniNamed
|
|
|
29
18
|
}
|
|
30
19
|
};
|
|
31
20
|
exports.OmniNamedType = OmniNamedType;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(uuid_scalar_js_1.UUIDScalar), isRequired: true }),
|
|
34
23
|
(0, class_validator_1.IsUUID)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
36
25
|
], OmniNamedType.prototype, "guid", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(graphql_1.Int) }),
|
|
39
28
|
(0, class_validator_1.IsInt)(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
29
|
+
tslib_1.__metadata("design:type", Number)
|
|
41
30
|
], OmniNamedType.prototype, "revision", void 0);
|
|
42
|
-
__decorate([
|
|
31
|
+
tslib_1.__decorate([
|
|
43
32
|
(0, object_decorator_js_1.ModelField)({
|
|
44
|
-
gqlType: (0,
|
|
33
|
+
gqlType: (0, returnValue_1.default)(String),
|
|
45
34
|
gqlOptions: { nullable: true },
|
|
46
35
|
}),
|
|
47
36
|
(0, class_validator_1.IsOptional)(),
|
|
48
37
|
(0, class_validator_1.IsString)(),
|
|
49
38
|
(0, class_validator_1.MaxLength)(128),
|
|
50
|
-
__metadata("design:type", Object)
|
|
39
|
+
tslib_1.__metadata("design:type", Object)
|
|
51
40
|
], OmniNamedType.prototype, "externalId", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, object_decorator_js_1.ModelField)({ gqlType: (0,
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, object_decorator_js_1.ModelField)({ gqlType: (0, returnValue_1.default)(String) }),
|
|
54
43
|
(0, class_validator_1.IsString)(),
|
|
55
44
|
(0, class_validator_1.MaxLength)(255),
|
|
56
|
-
__metadata("design:type", String)
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
57
46
|
], OmniNamedType.prototype, "title", void 0);
|
|
58
|
-
__decorate([
|
|
47
|
+
tslib_1.__decorate([
|
|
59
48
|
(0, object_decorator_js_1.ModelField)({
|
|
60
|
-
gqlType: (0,
|
|
49
|
+
gqlType: (0, returnValue_1.default)(String),
|
|
61
50
|
gqlOptions: { nullable: true },
|
|
62
51
|
}),
|
|
63
52
|
(0, class_validator_1.IsOptional)(),
|
|
64
53
|
(0, class_validator_1.IsString)(),
|
|
65
54
|
(0, class_validator_1.MaxLength)(255),
|
|
66
|
-
__metadata("design:type", Object)
|
|
55
|
+
tslib_1.__metadata("design:type", Object)
|
|
67
56
|
], OmniNamedType.prototype, "slug", void 0);
|
|
68
|
-
exports.OmniNamedType = OmniNamedType = __decorate([
|
|
57
|
+
exports.OmniNamedType = OmniNamedType = tslib_1.__decorate([
|
|
69
58
|
(0, graphql_1.ObjectType)(),
|
|
70
59
|
(0, object_decorator_js_1.ModelObject)(),
|
|
71
|
-
__metadata("design:paramtypes", [Object])
|
|
60
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
72
61
|
], OmniNamedType);
|
|
73
62
|
let OmniNamedCreateInput = class OmniNamedCreateInput extends (0, graphql_1.OmitType)(OmniNamedType, ['createdAt', 'updatedAt', 'revision'], graphql_1.InputType) {
|
|
74
63
|
};
|
|
75
64
|
exports.OmniNamedCreateInput = OmniNamedCreateInput;
|
|
76
|
-
exports.OmniNamedCreateInput = OmniNamedCreateInput = __decorate([
|
|
65
|
+
exports.OmniNamedCreateInput = OmniNamedCreateInput = tslib_1.__decorate([
|
|
77
66
|
(0, graphql_1.InputType)(),
|
|
78
67
|
(0, object_decorator_js_1.ModelObject)()
|
|
79
68
|
], OmniNamedCreateInput);
|
|
80
69
|
let OmniNamedCondition = class OmniNamedCondition extends (0, graphql_1.PartialType)(OmniNamedCreateInput, graphql_1.InputType) {
|
|
81
70
|
};
|
|
82
71
|
exports.OmniNamedCondition = OmniNamedCondition;
|
|
83
|
-
exports.OmniNamedCondition = OmniNamedCondition = __decorate([
|
|
72
|
+
exports.OmniNamedCondition = OmniNamedCondition = tslib_1.__decorate([
|
|
84
73
|
(0, graphql_1.InputType)(),
|
|
85
74
|
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniNamedType })
|
|
86
75
|
], OmniNamedCondition);
|
|
87
76
|
let OmniNamedUpdateInput = class OmniNamedUpdateInput extends (0, graphql_1.PartialType)(OmniNamedCreateInput, graphql_1.InputType) {
|
|
88
77
|
};
|
|
89
78
|
exports.OmniNamedUpdateInput = OmniNamedUpdateInput;
|
|
90
|
-
exports.OmniNamedUpdateInput = OmniNamedUpdateInput = __decorate([
|
|
79
|
+
exports.OmniNamedUpdateInput = OmniNamedUpdateInput = tslib_1.__decorate([
|
|
91
80
|
(0, graphql_1.InputType)(),
|
|
92
81
|
(0, object_decorator_js_1.ModelObject)({ copyFrom: OmniNamedType })
|
|
93
82
|
], OmniNamedUpdateInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omni-named.dto.js","sourceRoot":"","sources":["omni-named.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"omni-named.dto.js","sourceRoot":"","sources":["omni-named.dto.ts"],"names":[],"mappings":";;;;AAAA,6CAMyB;AACzB,mFAGmD;AACnD,gFAAyE;AACzE,uFAAuD;AACvD,qDAMyB;AACzB,sEAA8D;AAC9D,+DAA4D;AAIrD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,sCAAe;IAChD,YAAY,IAA6B;QACvC,KAAK,EAAE,CAAC;QACR,IAAI,IAAI,EAAE,CAAC;YACT,IAAA,yCAAmB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CAgCF,CAAA;AAtCY,sCAAa;AAUxB;IAFC,IAAA,gCAAU,EAAC,EAAE,OAAO,EAAE,IAAA,qBAAW,EAAC,2BAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAClE,IAAA,wBAAM,GAA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;6BAAlB,kBAAkB;IAF9B,IAAA,mBAAS,GAAE;IACX,IAAA,iCAAW,EAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;GAC5B,kBAAkB,CAG3B;AAIG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,IAAA,qBAAW,EACnD,oBAAoB,EACpB,mBAAS,CACV;CAAG,CAAA;AAHS,oDAAoB;+BAApB,oBAAoB;IAFhC,IAAA,mBAAS,GAAE;IACX,IAAA,iCAAW,EAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;GAC5B,oBAAoB,CAG7B"}
|
package/src/omni-named.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 '@
|
|
13
|
+
import returnValue from '@node-yalc/utils/returnValue';
|
|
14
14
|
import {
|
|
15
15
|
IsInt,
|
|
16
16
|
IsOptional,
|
package/src/omni-record.dto.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class OmniRecordType extends OmniRecordEntity {
|
|
|
17
17
|
outgoingRelations?: Relation<OmniRelationType[]>;
|
|
18
18
|
incomingRelations?: Relation<OmniRelationType[]>;
|
|
19
19
|
}
|
|
20
|
-
declare const OmniRecordCreateInput_base: import("@nestjs/common").Type<Omit<OmniRecordType, "
|
|
20
|
+
declare const OmniRecordCreateInput_base: import("@nestjs/common").Type<Omit<OmniRecordType, "createdAt" | "updatedAt" | "revision" | "outgoingRelations" | "incomingRelations">>;
|
|
21
21
|
export declare class OmniRecordCreateInput extends OmniRecordCreateInput_base {
|
|
22
22
|
}
|
|
23
23
|
declare const OmniRecordCondition_base: import("@nestjs/common").Type<Partial<OmniRecordCreateInput>>;
|