@things-factory/shell 6.0.114 → 6.0.118

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.
@@ -103,14 +103,14 @@ module.exports = {
103
103
  synchronize: false,
104
104
  logging: true,
105
105
  logger: 'debug'
106
- },
107
-
108
- ormconfig4Tx: {
109
- name: 'tx',
110
- type: 'sqlite',
111
- database: 'db.sqlite',
112
- synchronize: false,
113
- logging: true,
114
- logger: 'debug'
115
106
  }
107
+
108
+ // ormconfig4Tx: {
109
+ // name: 'tx',
110
+ // type: 'sqlite',
111
+ // database: 'db.sqlite',
112
+ // synchronize: false,
113
+ // logging: true,
114
+ // logger: 'debug'
115
+ // }
116
116
  }
@@ -1,3 +1,8 @@
1
+ export declare enum InheritedValueType {
2
+ None = "None",
3
+ Only = "Only",
4
+ Include = "Include"
5
+ }
1
6
  export declare class Sorting {
2
7
  name: string;
3
8
  desc?: boolean;
@@ -16,4 +21,5 @@ export declare class ListParam {
16
21
  filters?: Filter[];
17
22
  pagination?: Pagination;
18
23
  sortings?: Sorting[];
24
+ inherited?: InheritedValueType;
19
25
  }
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListParam = exports.Filter = exports.Pagination = exports.Sorting = void 0;
3
+ exports.ListParam = exports.Filter = exports.Pagination = exports.Sorting = exports.InheritedValueType = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const scalar_any_1 = require("./scalar-any");
7
+ var InheritedValueType;
8
+ (function (InheritedValueType) {
9
+ InheritedValueType["None"] = "None";
10
+ InheritedValueType["Only"] = "Only";
11
+ InheritedValueType["Include"] = "Include";
12
+ })(InheritedValueType = exports.InheritedValueType || (exports.InheritedValueType = {}));
13
+ (0, type_graphql_1.registerEnumType)(InheritedValueType, {
14
+ name: 'InheritedValueType'
15
+ });
7
16
  let Sorting = class Sorting {
8
17
  };
9
18
  tslib_1.__decorate([
@@ -68,6 +77,10 @@ tslib_1.__decorate([
68
77
  (0, type_graphql_1.Field)(type => [Sorting], { nullable: true }),
69
78
  tslib_1.__metadata("design:type", Array)
70
79
  ], ListParam.prototype, "sortings", void 0);
80
+ tslib_1.__decorate([
81
+ (0, type_graphql_1.Field)(type => InheritedValueType, { nullable: true }),
82
+ tslib_1.__metadata("design:type", String)
83
+ ], ListParam.prototype, "inherited", void 0);
71
84
  ListParam = tslib_1.__decorate([
72
85
  (0, type_graphql_1.ArgsType)()
73
86
  ], ListParam);
@@ -1 +1 @@
1
- {"version":3,"file":"list-param.js","sourceRoot":"","sources":["../../../server/service/common-types/list-param.ts"],"names":[],"mappings":";;;;AAAA,+CAA8D;AAE9D,6CAAwC;AAGjC,IAAM,OAAO,GAAb,MAAM,OAAO;CAMnB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;qCACpC;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oDAAoD,EAAE,CAAC;;qCAC/E;AALH,OAAO;IADnB,IAAA,wBAAS,GAAE;GACC,OAAO,CAMnB;AANY,0BAAO;AASb,IAAM,UAAU,GAAhB,MAAM,UAAU;CAMtB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC1B;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzB;AALH,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAMtB;AANY,gCAAU;AAShB,IAAM,MAAM,GAAZ,MAAM,MAAM;CAYlB,CAAA;AAXC;IAAC,IAAA,oBAAK,GAAE;;oCACI;AAEZ;IAAC,IAAA,oBAAK,GAAE;;wCACQ;AAEhB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,sBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAClC;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACR;AAXP,MAAM;IADlB,IAAA,wBAAS,GAAE;GACC,MAAM,CAYlB;AAZY,wBAAM;AAeZ,IAAM,SAAS,GAAf,MAAM,SAAS;CASrB,CAAA;AARC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,UAAU;6CAAA;AAEvB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACzB;AART,SAAS;IADrB,IAAA,uBAAQ,GAAE;GACE,SAAS,CASrB;AATY,8BAAS","sourcesContent":["import { ArgsType, Field, InputType, Int } from 'type-graphql'\n\nimport { ScalarAny } from './scalar-any'\n\n@InputType()\nexport class Sorting {\n @Field({ description: 'Field name to sort by' })\n name: string\n\n @Field({ nullable: true, description: 'Set to true if descending sort. Default is \"false\"' })\n desc?: boolean\n}\n\n@InputType()\nexport class Pagination {\n @Field(type => Int, { nullable: true })\n page?: number\n\n @Field(type => Int, { nullable: true })\n limit?: number\n}\n\n@InputType()\nexport class Filter {\n @Field()\n name: string\n\n @Field()\n operator: string\n\n @Field(type => ScalarAny, { nullable: true })\n value?: any\n\n @Field({ nullable: true })\n relation?: boolean\n}\n\n@ArgsType()\nexport class ListParam {\n @Field(type => [Filter], { nullable: true })\n filters?: Filter[]\n\n @Field(type => Pagination, { nullable: true })\n pagination?: Pagination\n\n @Field(type => [Sorting], { nullable: true })\n sortings?: Sorting[]\n}\n"]}
1
+ {"version":3,"file":"list-param.js","sourceRoot":"","sources":["../../../server/service/common-types/list-param.ts"],"names":[],"mappings":";;;;AAAA,+CAAgF;AAEhF,6CAAwC;AAExC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,yCAAmB,CAAA;AACrB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAA,+BAAgB,EAAC,kBAAkB,EAAE;IACnC,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAA;AAGK,IAAM,OAAO,GAAb,MAAM,OAAO;CAMnB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;qCACpC;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oDAAoD,EAAE,CAAC;;qCAC/E;AALH,OAAO;IADnB,IAAA,wBAAS,GAAE;GACC,OAAO,CAMnB;AANY,0BAAO;AASb,IAAM,UAAU,GAAhB,MAAM,UAAU;CAMtB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC1B;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzB;AALH,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAMtB;AANY,gCAAU;AAShB,IAAM,MAAM,GAAZ,MAAM,MAAM;CAYlB,CAAA;AAXC;IAAC,IAAA,oBAAK,GAAE;;oCACI;AAEZ;IAAC,IAAA,oBAAK,GAAE;;wCACQ;AAEhB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,sBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAClC;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACR;AAXP,MAAM;IADlB,IAAA,wBAAS,GAAE;GACC,MAAM,CAYlB;AAZY,wBAAM;AAeZ,IAAM,SAAS,GAAf,MAAM,SAAS;CAYrB,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,UAAU;6CAAA;AAEvB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACzB;AAEpB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACxB;AAXnB,SAAS;IADrB,IAAA,uBAAQ,GAAE;GACE,SAAS,CAYrB;AAZY,8BAAS","sourcesContent":["import { ArgsType, Field, InputType, Int, registerEnumType } from 'type-graphql'\n\nimport { ScalarAny } from './scalar-any'\n\nexport enum InheritedValueType {\n None = 'None',\n Only = 'Only',\n Include = 'Include'\n}\n\nregisterEnumType(InheritedValueType, {\n name: 'InheritedValueType'\n})\n\n@InputType()\nexport class Sorting {\n @Field({ description: 'Field name to sort by' })\n name: string\n\n @Field({ nullable: true, description: 'Set to true if descending sort. Default is \"false\"' })\n desc?: boolean\n}\n\n@InputType()\nexport class Pagination {\n @Field(type => Int, { nullable: true })\n page?: number\n\n @Field(type => Int, { nullable: true })\n limit?: number\n}\n\n@InputType()\nexport class Filter {\n @Field()\n name: string\n\n @Field()\n operator: string\n\n @Field(type => ScalarAny, { nullable: true })\n value?: any\n\n @Field({ nullable: true })\n relation?: boolean\n}\n\n@ArgsType()\nexport class ListParam {\n @Field(type => [Filter], { nullable: true })\n filters?: Filter[]\n\n @Field(type => Pagination, { nullable: true })\n pagination?: Pagination\n\n @Field(type => [Sorting], { nullable: true })\n sortings?: Sorting[]\n\n @Field(type => InheritedValueType, { nullable: true })\n inherited?: InheritedValueType\n}\n"]}
@@ -8,7 +8,7 @@ export declare const schema: {
8
8
  typeDefs: {
9
9
  transactionDirectiveTypeDefs: import("graphql").DocumentNode;
10
10
  };
11
- resolverClasses: (typeof import("./attribute-set/attribute-set-query").AttributeSetQuery | typeof import("./attribute-set/attribute-set-mutation").AttributeSetMutation | typeof import("./domain/domain-resolver").DomainResolver | typeof import("./subscription-data/data-resolver").DataResolver)[];
11
+ resolverClasses: (typeof import("./domain/domain-resolver").DomainResolver | typeof import("./attribute-set/attribute-set-query").AttributeSetQuery | typeof import("./attribute-set/attribute-set-mutation").AttributeSetMutation | typeof import("./subscription-data/data-resolver").DataResolver)[];
12
12
  directives: {
13
13
  transaction: (schema: import("graphql").GraphQLSchema) => import("graphql").GraphQLSchema;
14
14
  };