@things-factory/routing-base 4.0.27 → 4.0.31

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.
@@ -18,6 +18,18 @@ const routing_item_1 = require("./routing-item");
18
18
  __exportStar(require("./routing/routing"), exports);
19
19
  __exportStar(require("./routing-item/routing-item"), exports);
20
20
  __exportStar(require("./operation/operation"), exports);
21
+ /* EXPORT TYPES */
22
+ __exportStar(require("./routing/routing-type"), exports);
23
+ __exportStar(require("./operation/operation-type"), exports);
24
+ __exportStar(require("./routing-item/routing-item-type"), exports);
25
+ /* EXPORT MUTAIONS */
26
+ __exportStar(require("./routing/routing-mutation"), exports);
27
+ __exportStar(require("./operation/operation-mutation"), exports);
28
+ __exportStar(require("./routing-item/routing-item-mutation"), exports);
29
+ /* EXPORT QUERIES */
30
+ __exportStar(require("./routing/routing-query"), exports);
31
+ __exportStar(require("./operation/operation-query"), exports);
32
+ __exportStar(require("./routing-item/routing-item-query"), exports);
21
33
  exports.entities = [
22
34
  /* ENTITIES */
23
35
  ...routing_1.entities,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAGoB;AACpB,uCAGkB;AAClB,iDAGuB;AAEvB,yBAAyB;AACzB,oDAAiC;AACjC,8DAA2C;AAC3C,wDAAqC;AAExB,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,kBAAe;IAClB,GAAG,uBAAmB;IACtB,GAAG,oBAAiB;CACrB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE,CAAC,GAAG,mBAAgB,EAAE,GAAG,wBAAoB,EAAE,GAAG,qBAAkB,CAAC;CACvF,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAGoB;AACpB,uCAGkB;AAClB,iDAGuB;AAEvB,yBAAyB;AACzB,oDAAiC;AACjC,8DAA2C;AAC3C,wDAAqC;AAErC,kBAAkB;AAClB,yDAAsC;AACtC,6DAA0C;AAC1C,mEAAgD;AAEhD,qBAAqB;AACrB,6DAA0C;AAC1C,iEAA8C;AAC9C,uEAAoD;AAEpD,oBAAoB;AACpB,0DAAuC;AACvC,8DAA2C;AAC3C,oEAAiD;AAEpC,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,kBAAe;IAClB,GAAG,uBAAmB;IACtB,GAAG,oBAAiB;CACrB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE,CAAC,GAAG,mBAAgB,EAAE,GAAG,wBAAoB,EAAE,GAAG,qBAAkB,CAAC;CACvF,CAAA"}
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
13
  exports.resolvers = exports.entities = void 0;
4
14
  const operation_1 = require("./operation");
5
- const operation_query_1 = require("./operation-query");
6
15
  const operation_mutation_1 = require("./operation-mutation");
16
+ const operation_query_1 = require("./operation-query");
7
17
  exports.entities = [operation_1.Operation];
8
18
  exports.resolvers = [operation_query_1.OperationQuery, operation_mutation_1.OperationMutation];
19
+ __exportStar(require("./operation-query"), exports);
20
+ __exportStar(require("./operation-mutation"), exports);
9
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/operation/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,uDAAkD;AAClD,6DAAwD;AAE3C,QAAA,QAAQ,GAAG,CAAC,qBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,gCAAc,EAAE,sCAAiB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/operation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAuC;AACvC,6DAAwD;AACxD,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,qBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,gCAAc,EAAE,sCAAiB,CAAC,CAAA;AAE5D,oDAAiC;AACjC,uDAAoC"}
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
13
  exports.resolvers = exports.entities = void 0;
4
14
  const routing_1 = require("./routing");
5
- const routing_query_1 = require("./routing-query");
6
15
  const routing_mutation_1 = require("./routing-mutation");
16
+ const routing_query_1 = require("./routing-query");
7
17
  exports.entities = [routing_1.Routing];
8
18
  exports.resolvers = [routing_query_1.RoutingQuery, routing_mutation_1.RoutingMutation];
19
+ __exportStar(require("./routing-query"), exports);
20
+ __exportStar(require("./routing-mutation"), exports);
9
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/routing/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AACnC,mDAA8C;AAC9C,yDAAoD;AAEvC,QAAA,QAAQ,GAAG,CAAC,iBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,4BAAY,EAAE,kCAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/routing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uCAAmC;AACnC,yDAAoD;AACpD,mDAA8C;AAEjC,QAAA,QAAQ,GAAG,CAAC,iBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,4BAAY,EAAE,kCAAe,CAAC,CAAA;AAExD,kDAA+B;AAC/B,qDAAkC"}
@@ -86,7 +86,8 @@ RoutingQuery = __decorate([
86
86
  ], RoutingQuery);
87
87
  exports.RoutingQuery = RoutingQuery;
88
88
  async function firstOperation(routingId, context) {
89
- const operation = await (0, typeorm_1.getRepository)(operation_1.Operation).query(`
89
+ const { domain, user, tx } = context.state;
90
+ const operation = await tx.getRepository(operation_1.Operation).query(`
90
91
  select
91
92
  *
92
93
  from
@@ -1 +1 @@
1
- {"version":3,"file":"routing-query.js","sourceRoot":"","sources":["../../../server/service/routing/routing-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAQqB;AACrB,qCAAuC;AAEvC,yDAAgD;AAChD,iDAI8B;AAE9B,sDAAkD;AAClD,uCAAmC;AACnC,iDAA4C;AAG5C,IAAa,YAAY,GAAzB,MAAa,YAAY;IAEvB,KAAK,CAAC,OAAO,CAAY,EAAU,EAAS,OAAY;QACtD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,iBAAO,CAAC,CAAC,OAAO,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACxB,CAAC,CAAA;IACJ,CAAC;IAGD,KAAK,CAAC,QAAQ,CAAS,MAAiB,EAAS,OAAY;QAC3D,MAA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,SAAS;;;OAGxC,CACJ,CAAA;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AA9BD,sCA8BC"}
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
13
  exports.resolvers = exports.entities = void 0;
4
14
  const routing_item_1 = require("./routing-item");
5
- const routing_item_query_1 = require("./routing-item-query");
6
15
  const routing_item_mutation_1 = require("./routing-item-mutation");
16
+ const routing_item_query_1 = require("./routing-item-query");
7
17
  exports.entities = [routing_item_1.RoutingItem];
8
18
  exports.resolvers = [routing_item_query_1.RoutingItemQuery, routing_item_mutation_1.RoutingItemMutation];
19
+ __exportStar(require("./routing-item-query"), exports);
20
+ __exportStar(require("./routing-item-mutation"), exports);
9
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/routing-item/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,6DAAuD;AACvD,mEAA6D;AAEhD,QAAA,QAAQ,GAAG,CAAC,0BAAW,CAAC,CAAA;AACxB,QAAA,SAAS,GAAG,CAAC,qCAAgB,EAAE,2CAAmB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/routing-item/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA4C;AAC5C,mEAA6D;AAC7D,6DAAuD;AAE1C,QAAA,QAAQ,GAAG,CAAC,0BAAW,CAAC,CAAA;AACxB,QAAA,SAAS,GAAG,CAAC,qCAAgB,EAAE,2CAAmB,CAAC,CAAA;AAEhE,uDAAoC;AACpC,0DAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/routing-base",
3
- "version": "4.0.27",
3
+ "version": "4.0.31",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,8 +24,8 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/auth-base": "^4.0.27",
28
- "@things-factory/shell": "^4.0.27"
27
+ "@things-factory/auth-base": "^4.0.31",
28
+ "@things-factory/shell": "^4.0.31"
29
29
  },
30
- "gitHead": "276eaface2890c8f229ce6c9f64cde9c6b1e0083"
30
+ "gitHead": "6c021ffdeacc9d123298528f6bba91f61389f33d"
31
31
  }
@@ -16,6 +16,21 @@ export * from './routing/routing'
16
16
  export * from './routing-item/routing-item'
17
17
  export * from './operation/operation'
18
18
 
19
+ /* EXPORT TYPES */
20
+ export * from './routing/routing-type'
21
+ export * from './operation/operation-type'
22
+ export * from './routing-item/routing-item-type'
23
+
24
+ /* EXPORT MUTAIONS */
25
+ export * from './routing/routing-mutation'
26
+ export * from './operation/operation-mutation'
27
+ export * from './routing-item/routing-item-mutation'
28
+
29
+ /* EXPORT QUERIES */
30
+ export * from './routing/routing-query'
31
+ export * from './operation/operation-query'
32
+ export * from './routing-item/routing-item-query'
33
+
19
34
  export const entities = [
20
35
  /* ENTITIES */
21
36
  ...RoutingEntities,
@@ -1,6 +1,9 @@
1
1
  import { Operation } from './operation'
2
- import { OperationQuery } from './operation-query'
3
2
  import { OperationMutation } from './operation-mutation'
3
+ import { OperationQuery } from './operation-query'
4
4
 
5
5
  export const entities = [Operation]
6
6
  export const resolvers = [OperationQuery, OperationMutation]
7
+
8
+ export * from './operation-query'
9
+ export * from './operation-mutation'
@@ -1,6 +1,9 @@
1
1
  import { Routing } from './routing'
2
- import { RoutingQuery } from './routing-query'
3
2
  import { RoutingMutation } from './routing-mutation'
3
+ import { RoutingQuery } from './routing-query'
4
4
 
5
5
  export const entities = [Routing]
6
6
  export const resolvers = [RoutingQuery, RoutingMutation]
7
+
8
+ export * from './routing-query'
9
+ export * from './routing-mutation'
@@ -58,7 +58,8 @@ export class RoutingQuery {
58
58
  }
59
59
 
60
60
  export async function firstOperation(routingId: string, context: any): Promise<Operation> {
61
- const operation = await getRepository(Operation).query(
61
+ const { domain, user, tx } = context.state
62
+ const operation: Operation = await tx.getRepository(Operation).query(
62
63
  `
63
64
  select
64
65
  *
@@ -1,6 +1,9 @@
1
1
  import { RoutingItem } from './routing-item'
2
- import { RoutingItemQuery } from './routing-item-query'
3
2
  import { RoutingItemMutation } from './routing-item-mutation'
3
+ import { RoutingItemQuery } from './routing-item-query'
4
4
 
5
5
  export const entities = [RoutingItem]
6
6
  export const resolvers = [RoutingItemQuery, RoutingItemMutation]
7
+
8
+ export * from './routing-item-query'
9
+ export * from './routing-item-mutation'