@things-factory/integration-base 4.3.281 → 4.3.310
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.
|
@@ -8,12 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b, _c;
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Integration = exports.Platform = void 0;
|
|
14
14
|
const type_graphql_1 = require("type-graphql");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
17
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
17
18
|
const env_1 = require("@things-factory/env");
|
|
18
19
|
const shell_1 = require("@things-factory/shell");
|
|
19
20
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
@@ -44,6 +45,15 @@ __decorate([
|
|
|
44
45
|
(0, typeorm_1.RelationId)((integration) => integration.domain),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
47
|
], Integration.prototype, "domainId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
|
|
52
|
+
], Integration.prototype, "bizplace", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.RelationId)((integration) => integration.bizplace),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Integration.prototype, "bizplaceId", void 0);
|
|
47
57
|
__decorate([
|
|
48
58
|
(0, typeorm_1.Column)(),
|
|
49
59
|
(0, type_graphql_1.Field)(),
|
|
@@ -106,7 +116,7 @@ __decorate([
|
|
|
106
116
|
nullable: true
|
|
107
117
|
}),
|
|
108
118
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
109
|
-
__metadata("design:type", typeof (
|
|
119
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
110
120
|
], Integration.prototype, "creator", void 0);
|
|
111
121
|
__decorate([
|
|
112
122
|
(0, typeorm_1.RelationId)((integration) => integration.creator),
|
|
@@ -117,7 +127,7 @@ __decorate([
|
|
|
117
127
|
nullable: true
|
|
118
128
|
}),
|
|
119
129
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
120
|
-
__metadata("design:type", typeof (
|
|
130
|
+
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
121
131
|
], Integration.prototype, "updater", void 0);
|
|
122
132
|
__decorate([
|
|
123
133
|
(0, typeorm_1.RelationId)((integration) => integration.creator),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../server/service/integration/integration.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../server/service/integration/integration.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAKqB;AACrB,qCASgB;AAEhB,yDAAgD;AAChD,uDAAmD;AACnD,6CAA4C;AAC5C,iDAA8C;AAE9C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,+CAAmC,CAAA;IACnC,6BAAiB,CAAA;AACnB,CAAC,EAJW,QAAQ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AAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;4CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;;8CAC5C;AArFP,WAAW;IAHvB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACjH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;GACzC,WAAW,CAsFvB;AAtFY,kCAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-base",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.310",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"promise-socket": "^7.0.0",
|
|
41
41
|
"vm2": "^3.9.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a65e44ff31b1ca683c81c028d46803916b878730"
|
|
44
44
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Field,
|
|
3
|
+
ID,
|
|
4
|
+
ObjectType,
|
|
5
|
+
registerEnumType
|
|
6
|
+
} from 'type-graphql'
|
|
2
7
|
import {
|
|
3
8
|
Column,
|
|
4
9
|
CreateDateColumn,
|
|
@@ -11,6 +16,7 @@ import {
|
|
|
11
16
|
} from 'typeorm'
|
|
12
17
|
|
|
13
18
|
import { User } from '@things-factory/auth-base'
|
|
19
|
+
import { Bizplace } from '@things-factory/biz-base'
|
|
14
20
|
import { config } from '@things-factory/env'
|
|
15
21
|
import { Domain } from '@things-factory/shell'
|
|
16
22
|
|
|
@@ -43,6 +49,13 @@ export class Integration {
|
|
|
43
49
|
@RelationId((integration: Integration) => integration.domain)
|
|
44
50
|
domainId?: string
|
|
45
51
|
|
|
52
|
+
@ManyToOne(type => Bizplace)
|
|
53
|
+
@Field({ nullable: true })
|
|
54
|
+
bizplace?: Bizplace
|
|
55
|
+
|
|
56
|
+
@RelationId((integration: Integration) => integration.bizplace)
|
|
57
|
+
bizplaceId?: string
|
|
58
|
+
|
|
46
59
|
@Column()
|
|
47
60
|
@Field()
|
|
48
61
|
name: string
|