@comet/cms-api 8.21.0 → 8.21.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.
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PartialType = PartialType;
|
|
4
4
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
5
5
|
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const plugin_constants_js_1 = require("@nestjs/graphql/dist/plugin/plugin-constants.js");
|
|
7
|
+
const get_fields_and_decorator_util_js_1 = require("@nestjs/graphql/dist/schema-builder/utils/get-fields-and-decorator.util.js");
|
|
8
|
+
const type_helpers_utils_js_1 = require("@nestjs/graphql/dist/type-helpers/type-helpers.utils.js");
|
|
9
9
|
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
10
10
|
const is_undefinable_1 = require("../validators/is-undefinable");
|
|
11
11
|
//Copy from @nestjs/graphql with applyIsOptionalDecorator changed to use IsUndefinable instead of IsOptional and changed defaultValue to undefined
|
|
12
12
|
function PartialType(classRef, decorator) {
|
|
13
|
-
const { fields, decoratorFactory } = (0,
|
|
13
|
+
const { fields, decoratorFactory } = (0, get_fields_and_decorator_util_js_1.getFieldsAndDecoratorForType)(classRef);
|
|
14
14
|
class PartialObjectType {
|
|
15
15
|
constructor() {
|
|
16
16
|
(0, mapped_types_1.inheritPropertyInitializers)(this, classRef);
|
|
@@ -34,10 +34,10 @@ function PartialType(classRef, decorator) {
|
|
|
34
34
|
}
|
|
35
35
|
(0, graphql_1.Field)(item.typeFn, Object.assign(Object.assign({}, item.options), { nullable: true, defaultValue: undefined }))(PartialObjectType.prototype, item.name);
|
|
36
36
|
applyIsOptionalDecorator(PartialObjectType, item.name);
|
|
37
|
-
(0,
|
|
37
|
+
(0, type_helpers_utils_js_1.applyFieldDecorators)(PartialObjectType, item);
|
|
38
38
|
});
|
|
39
|
-
if (PartialObjectType[
|
|
40
|
-
const pluginFields = Object.keys(PartialObjectType[
|
|
39
|
+
if (PartialObjectType[plugin_constants_js_1.METADATA_FACTORY_NAME]) {
|
|
40
|
+
const pluginFields = Object.keys(PartialObjectType[plugin_constants_js_1.METADATA_FACTORY_NAME]());
|
|
41
41
|
pluginFields.forEach((key) => applyIsOptionalDecorator(PartialObjectType, key));
|
|
42
42
|
}
|
|
43
43
|
Object.defineProperty(PartialObjectType, "name", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partial-type.helper.js","sourceRoot":"","sources":["../../../src/common/helper/partial-type.helper.ts"],"names":[],"mappings":";;AAaA,kCAuCC;AAlDD,oEAA+D;AAC/D,6CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"partial-type.helper.js","sourceRoot":"","sources":["../../../src/common/helper/partial-type.helper.ts"],"names":[],"mappings":";;AAaA,kCAuCC;AAlDD,oEAA+D;AAC/D,6CAAwC;AAExC,yFAAwF;AACxF,iIAA0H;AAC1H,mGAA+F;AAC/F,uDAA6H;AAE7H,iEAA6D;AAE7D,kJAAkJ;AAClJ,SAAgB,WAAW,CAAI,QAAiB,EAAE,SAAiC;IAC/E,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,+DAA4B,EAAC,QAAQ,CAAC,CAAC;IAE5E,MAAe,iBAAiB;QAC5B;YACI,IAAA,0CAA2B,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KACJ;IACD,IAAI,SAAS,EAAE,CAAC;QACZ,SAAS,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACJ,gBAAgB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC9D,CAAC;IAED,IAAA,wCAAyB,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC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1,5 @@
|
|
|
1
1
|
import { EntityMetadata, EntityRepository, MikroORM } from "@mikro-orm/postgresql";
|
|
2
|
-
import { ObjectTypeMetadata } from "@nestjs/graphql/dist/schema-builder/metadata/object-type.metadata";
|
|
2
|
+
import { ObjectTypeMetadata } from "@nestjs/graphql/dist/schema-builder/metadata/object-type.metadata.js";
|
|
3
3
|
import { Block } from "../blocks/block";
|
|
4
4
|
import { RootBlockEntityOptions } from "../blocks/decorators/root-block-entity";
|
|
5
5
|
interface DiscoverRootBlocksResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.service.d.ts","sourceRoot":"","sources":["../../src/dependencies/discover.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"discover.service.d.ts","sourceRoot":"","sources":["../../src/dependencies/discover.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sEAAsE,CAAC;AAE1G,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,OAAO,EAAkC,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhH,UAAU,wBAAwB;IAE9B,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAElC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,sBAAsB,CAAC;CACnC;AAED,UAAU,4BAA4B;IAClC,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAElC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,qBACa,eAAe;IAGZ,OAAO,CAAC,QAAQ,CAAC,GAAG;IAFhC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;gBAEb,GAAG,EAAE,QAAQ;IAI1C,kBAAkB,IAAI,wBAAwB,EAAE;IA8BhD,sBAAsB,IAAI,4BAA4B,EAAE;CAkB3D"}
|