@things-factory/integration-base 5.0.7 → 5.0.11
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/db.test.sqlite +0 -0
- package/dist-server/engine/connection-manager.js +2 -4
- package/dist-server/engine/connection-manager.js.map +1 -1
- package/dist-server/engine/connector/echo-back-connector.js +3 -5
- package/dist-server/engine/connector/echo-back-connector.js.map +1 -1
- package/dist-server/engine/connector/echo-back-server.js +3 -5
- package/dist-server/engine/connector/echo-back-server.js.map +1 -1
- package/dist-server/engine/connector/graphql-connector.js.map +1 -1
- package/dist-server/engine/connector/http-connector.js.map +1 -1
- package/dist-server/engine/connector/index.js.map +1 -1
- package/dist-server/engine/connector/mqtt-connector.js +2 -4
- package/dist-server/engine/connector/mqtt-connector.js.map +1 -1
- package/dist-server/engine/connector/mssql-connector.js.map +1 -1
- package/dist-server/engine/connector/mysql-connector.js +2 -4
- package/dist-server/engine/connector/mysql-connector.js.map +1 -1
- package/dist-server/engine/connector/oracle-connector.js.map +1 -1
- package/dist-server/engine/connector/postgresql-connector.js.map +1 -1
- package/dist-server/engine/connector/socket-server.js +2 -4
- package/dist-server/engine/connector/socket-server.js.map +1 -1
- package/dist-server/engine/connector/sqlite-connector.js.map +1 -1
- package/dist-server/engine/index.js +4 -17
- package/dist-server/engine/index.js.map +1 -1
- package/dist-server/engine/pending-queue.js.map +1 -1
- package/dist-server/engine/scenario-engine.js.map +1 -1
- package/dist-server/engine/task/book-up-scenario.js.map +1 -1
- package/dist-server/engine/task/database-query.js.map +1 -1
- package/dist-server/engine/task/echo-receive.js.map +1 -1
- package/dist-server/engine/task/echo-send.js.map +1 -1
- package/dist-server/engine/task/empty-check.js.map +1 -1
- package/dist-server/engine/task/end.js.map +1 -1
- package/dist-server/engine/task/floating-point.js +2 -4
- package/dist-server/engine/task/floating-point.js.map +1 -1
- package/dist-server/engine/task/goto.js.map +1 -1
- package/dist-server/engine/task/graphql-mutate.js +2 -4
- package/dist-server/engine/task/graphql-mutate.js.map +1 -1
- package/dist-server/engine/task/graphql-query.js +2 -4
- package/dist-server/engine/task/graphql-query.js.map +1 -1
- package/dist-server/engine/task/http-get.js +3 -5
- package/dist-server/engine/task/http-get.js.map +1 -1
- package/dist-server/engine/task/http-post.js +3 -5
- package/dist-server/engine/task/http-post.js.map +1 -1
- package/dist-server/engine/task/index.js.map +1 -1
- package/dist-server/engine/task/local-graphql-mutate.js +2 -4
- package/dist-server/engine/task/local-graphql-mutate.js.map +1 -1
- package/dist-server/engine/task/local-graphql-query.js +2 -4
- package/dist-server/engine/task/local-graphql-query.js.map +1 -1
- package/dist-server/engine/task/log.js.map +1 -1
- package/dist-server/engine/task/mqtt-publish.js.map +1 -1
- package/dist-server/engine/task/mqtt-subscribe.js +2 -4
- package/dist-server/engine/task/mqtt-subscribe.js.map +1 -1
- package/dist-server/engine/task/pick-pending-scenario.js.map +1 -1
- package/dist-server/engine/task/publish.js.map +1 -1
- package/dist-server/engine/task/reset-pending-queue.js.map +1 -1
- package/dist-server/engine/task/script.js.map +1 -1
- package/dist-server/engine/task/sleep.js.map +1 -1
- package/dist-server/engine/task/socket-listener.js.map +1 -1
- package/dist-server/engine/task/sub-scenario.js.map +1 -1
- package/dist-server/engine/task/switch-goto.js.map +1 -1
- package/dist-server/engine/task/switch-range-goto.js.map +1 -1
- package/dist-server/engine/task/switch-range-scenario.js.map +1 -1
- package/dist-server/engine/task/switch-range-set.js.map +1 -1
- package/dist-server/engine/task/switch-scenario.js.map +1 -1
- package/dist-server/engine/task/switch-set.js.map +1 -1
- package/dist-server/engine/task/throw.js.map +1 -1
- package/dist-server/engine/task/utils/substitute.js.map +1 -1
- package/dist-server/engine/task/variables.js.map +1 -1
- package/dist-server/engine/task-registry.js.map +1 -1
- package/dist-server/engine/types.js.map +1 -1
- package/dist-server/index.js +4 -17
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/restful/index.js.map +1 -1
- package/dist-server/restful/unstable/index.js.map +1 -1
- package/dist-server/restful/unstable/run-scenario.js +2 -4
- package/dist-server/restful/unstable/run-scenario.js.map +1 -1
- package/dist-server/restful/unstable/scenario-instance.js +2 -4
- package/dist-server/restful/unstable/scenario-instance.js.map +1 -1
- package/dist-server/restful/unstable/scenario-instances.js +2 -4
- package/dist-server/restful/unstable/scenario-instances.js.map +1 -1
- package/dist-server/restful/unstable/scenario.js +2 -4
- package/dist-server/restful/unstable/scenario.js.map +1 -1
- package/dist-server/restful/unstable/scenarios.js +2 -4
- package/dist-server/restful/unstable/scenarios.js.map +1 -1
- package/dist-server/restful/unstable/start-scenario.js +2 -4
- package/dist-server/restful/unstable/start-scenario.js.map +1 -1
- package/dist-server/restful/unstable/stop-scenario.js +2 -4
- package/dist-server/restful/unstable/stop-scenario.js.map +1 -1
- package/dist-server/routers/scenario-view-router.js +2 -4
- package/dist-server/routers/scenario-view-router.js.map +1 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/connection/connection-mutation.js +45 -56
- package/dist-server/service/connection/connection-mutation.js.map +1 -1
- package/dist-server/service/connection/connection-query.js +35 -46
- package/dist-server/service/connection/connection-query.js.map +1 -1
- package/dist-server/service/connection/connection-subscription.js +14 -25
- package/dist-server/service/connection/connection-subscription.js.map +1 -1
- package/dist-server/service/connection/connection-type.js +82 -90
- package/dist-server/service/connection/connection-type.js.map +1 -1
- package/dist-server/service/connection/index.js.map +1 -1
- package/dist-server/service/connector/connector-query.js +18 -29
- package/dist-server/service/connector/connector-query.js.map +1 -1
- package/dist-server/service/connector/connector-type.js +17 -25
- package/dist-server/service/connector/connector-type.js.map +1 -1
- package/dist-server/service/connector/index.js.map +1 -1
- package/dist-server/service/index.js +11 -24
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/payload-log/index.js.map +1 -1
- package/dist-server/service/payload-log/payload-log-mutation.js +33 -44
- package/dist-server/service/payload-log/payload-log-mutation.js.map +1 -1
- package/dist-server/service/payload-log/payload-log-query.js +29 -40
- package/dist-server/service/payload-log/payload-log-query.js.map +1 -1
- package/dist-server/service/payload-log/payload-log-type.js +20 -28
- package/dist-server/service/payload-log/payload-log-type.js.map +1 -1
- package/dist-server/service/payload-log/payload-log.js +30 -38
- package/dist-server/service/payload-log/payload-log.js.map +1 -1
- package/dist-server/service/property-spec.js +12 -21
- package/dist-server/service/property-spec.js.map +1 -1
- package/dist-server/service/scenario/index.js.map +1 -1
- package/dist-server/service/scenario/scenario-mutation.js +45 -56
- package/dist-server/service/scenario/scenario-mutation.js.map +1 -1
- package/dist-server/service/scenario/scenario-query.js +47 -58
- package/dist-server/service/scenario/scenario-query.js.map +1 -1
- package/dist-server/service/scenario/scenario-type.js +71 -79
- package/dist-server/service/scenario/scenario-type.js.map +1 -1
- package/dist-server/service/scenario-flow/scenario-flow.js +8 -16
- package/dist-server/service/scenario-flow/scenario-flow.js.map +1 -1
- package/dist-server/service/scenario-instance/index.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js +24 -36
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-query.js +44 -55
- package/dist-server/service/scenario-instance/scenario-instance-query.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-subscription.js +17 -28
- package/dist-server/service/scenario-instance/scenario-instance-subscription.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-type.js +60 -71
- package/dist-server/service/scenario-instance/scenario-instance-type.js.map +1 -1
- package/dist-server/service/scenario-queue/index.js.map +1 -1
- package/dist-server/service/scenario-queue/scenario-queue-subscription.js +7 -18
- package/dist-server/service/scenario-queue/scenario-queue-subscription.js.map +1 -1
- package/dist-server/service/scenario-queue/scenario-queue-type.js +16 -24
- package/dist-server/service/scenario-queue/scenario-queue-type.js.map +1 -1
- package/dist-server/service/step/index.js.map +1 -1
- package/dist-server/service/step/step-mutation.js +15 -26
- package/dist-server/service/step/step-mutation.js.map +1 -1
- package/dist-server/service/step/step-query.js +34 -45
- package/dist-server/service/step/step-query.js.map +1 -1
- package/dist-server/service/step/step-type.js +66 -74
- package/dist-server/service/step/step-type.js.map +1 -1
- package/dist-server/service/task-type/index.js.map +1 -1
- package/dist-server/service/task-type/task-type-query.js +19 -30
- package/dist-server/service/task-type/task-type-query.js.map +1 -1
- package/dist-server/service/task-type/task-type-type.js +17 -25
- package/dist-server/service/task-type/task-type-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +6 -6
- package/server/engine/types.ts +1 -2
- package/server/service/property-spec.ts +3 -2
- package/server/service/scenario-instance/scenario-instance-mutation.ts +2 -2
- package/server/service/scenario-instance/scenario-instance-type.ts +4 -4
- package/server/service/scenario-queue/scenario-queue-type.ts +3 -2
|
@@ -1,16 +1,8 @@
|
|
|
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
|
var _a, _b, _c, _d;
|
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
4
|
exports.ConnectionList = exports.ConnectionPatch = exports.NewConnection = exports.ConnectionState = exports.Connection = exports.ConnectionStatus = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
14
6
|
const type_graphql_1 = require("type-graphql");
|
|
15
7
|
const typeorm_1 = require("typeorm");
|
|
16
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
@@ -47,93 +39,93 @@ let Connection = class Connection {
|
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
41
|
};
|
|
50
|
-
__decorate([
|
|
42
|
+
tslib_1.__decorate([
|
|
51
43
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
52
44
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
53
|
-
__metadata("design:type", String)
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
54
46
|
], Connection.prototype, "id", void 0);
|
|
55
|
-
__decorate([
|
|
47
|
+
tslib_1.__decorate([
|
|
56
48
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
57
49
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
58
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
50
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
59
51
|
], Connection.prototype, "domain", void 0);
|
|
60
|
-
__decorate([
|
|
52
|
+
tslib_1.__decorate([
|
|
61
53
|
(0, typeorm_1.RelationId)((connection) => connection.domain),
|
|
62
|
-
__metadata("design:type", String)
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
63
55
|
], Connection.prototype, "domainId", void 0);
|
|
64
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
65
57
|
(0, typeorm_1.Column)(),
|
|
66
58
|
(0, type_graphql_1.Field)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
68
60
|
], Connection.prototype, "name", void 0);
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, typeorm_1.Column)({
|
|
71
63
|
nullable: true
|
|
72
64
|
}),
|
|
73
65
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
74
|
-
__metadata("design:type", String)
|
|
66
|
+
tslib_1.__metadata("design:type", String)
|
|
75
67
|
], Connection.prototype, "description", void 0);
|
|
76
|
-
__decorate([
|
|
68
|
+
tslib_1.__decorate([
|
|
77
69
|
(0, typeorm_1.Column)(),
|
|
78
70
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
__metadata("design:type", String)
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
80
72
|
], Connection.prototype, "type", void 0);
|
|
81
|
-
__decorate([
|
|
73
|
+
tslib_1.__decorate([
|
|
82
74
|
(0, typeorm_1.Column)(),
|
|
83
75
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
84
|
-
__metadata("design:type", String)
|
|
76
|
+
tslib_1.__metadata("design:type", String)
|
|
85
77
|
], Connection.prototype, "endpoint", void 0);
|
|
86
|
-
__decorate([
|
|
78
|
+
tslib_1.__decorate([
|
|
87
79
|
(0, typeorm_1.Column)({
|
|
88
80
|
nullable: true
|
|
89
81
|
}),
|
|
90
82
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
83
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
92
84
|
], Connection.prototype, "active", void 0);
|
|
93
|
-
__decorate([
|
|
85
|
+
tslib_1.__decorate([
|
|
94
86
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
-
__metadata("design:type", String)
|
|
87
|
+
tslib_1.__metadata("design:type", String)
|
|
96
88
|
], Connection.prototype, "state", void 0);
|
|
97
|
-
__decorate([
|
|
89
|
+
tslib_1.__decorate([
|
|
98
90
|
(0, typeorm_1.Column)({
|
|
99
91
|
nullable: true
|
|
100
92
|
}),
|
|
101
93
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
102
|
-
__metadata("design:type", String)
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
103
95
|
], Connection.prototype, "params", void 0);
|
|
104
|
-
__decorate([
|
|
96
|
+
tslib_1.__decorate([
|
|
105
97
|
(0, typeorm_1.CreateDateColumn)(),
|
|
106
98
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
107
|
-
__metadata("design:type", Date)
|
|
99
|
+
tslib_1.__metadata("design:type", Date)
|
|
108
100
|
], Connection.prototype, "createdAt", void 0);
|
|
109
|
-
__decorate([
|
|
101
|
+
tslib_1.__decorate([
|
|
110
102
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
111
103
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
112
|
-
__metadata("design:type", Date)
|
|
104
|
+
tslib_1.__metadata("design:type", Date)
|
|
113
105
|
], Connection.prototype, "updatedAt", void 0);
|
|
114
|
-
__decorate([
|
|
106
|
+
tslib_1.__decorate([
|
|
115
107
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
116
108
|
nullable: true
|
|
117
109
|
}),
|
|
118
110
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
119
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
111
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
120
112
|
], Connection.prototype, "creator", void 0);
|
|
121
|
-
__decorate([
|
|
113
|
+
tslib_1.__decorate([
|
|
122
114
|
(0, typeorm_1.RelationId)((connection) => connection.creator),
|
|
123
|
-
__metadata("design:type", String)
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
124
116
|
], Connection.prototype, "creatorId", void 0);
|
|
125
|
-
__decorate([
|
|
117
|
+
tslib_1.__decorate([
|
|
126
118
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
127
119
|
nullable: true
|
|
128
120
|
}),
|
|
129
121
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
130
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
122
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
131
123
|
], Connection.prototype, "updater", void 0);
|
|
132
|
-
__decorate([
|
|
124
|
+
tslib_1.__decorate([
|
|
133
125
|
(0, typeorm_1.RelationId)((connection) => connection.creator),
|
|
134
|
-
__metadata("design:type", String)
|
|
126
|
+
tslib_1.__metadata("design:type", String)
|
|
135
127
|
], Connection.prototype, "updaterId", void 0);
|
|
136
|
-
Connection = __decorate([
|
|
128
|
+
Connection = tslib_1.__decorate([
|
|
137
129
|
(0, typeorm_1.Entity)(),
|
|
138
130
|
(0, typeorm_1.Index)('ix_connection_0', (connection) => [connection.domain, connection.name], { unique: true }),
|
|
139
131
|
(0, type_graphql_1.ObjectType)()
|
|
@@ -141,113 +133,113 @@ Connection = __decorate([
|
|
|
141
133
|
exports.Connection = Connection;
|
|
142
134
|
let ConnectionState = class ConnectionState {
|
|
143
135
|
};
|
|
144
|
-
__decorate([
|
|
136
|
+
tslib_1.__decorate([
|
|
145
137
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
146
|
-
__metadata("design:type", typeof (_d = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _d : Object)
|
|
138
|
+
tslib_1.__metadata("design:type", typeof (_d = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _d : Object)
|
|
147
139
|
], ConnectionState.prototype, "domain", void 0);
|
|
148
|
-
__decorate([
|
|
140
|
+
tslib_1.__decorate([
|
|
149
141
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
150
|
-
__metadata("design:type", String)
|
|
142
|
+
tslib_1.__metadata("design:type", String)
|
|
151
143
|
], ConnectionState.prototype, "id", void 0);
|
|
152
|
-
__decorate([
|
|
144
|
+
tslib_1.__decorate([
|
|
153
145
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
-
__metadata("design:type", String)
|
|
146
|
+
tslib_1.__metadata("design:type", String)
|
|
155
147
|
], ConnectionState.prototype, "name", void 0);
|
|
156
|
-
__decorate([
|
|
148
|
+
tslib_1.__decorate([
|
|
157
149
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
158
|
-
__metadata("design:type", String)
|
|
150
|
+
tslib_1.__metadata("design:type", String)
|
|
159
151
|
], ConnectionState.prototype, "description", void 0);
|
|
160
|
-
__decorate([
|
|
152
|
+
tslib_1.__decorate([
|
|
161
153
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
162
|
-
__metadata("design:type", String)
|
|
154
|
+
tslib_1.__metadata("design:type", String)
|
|
163
155
|
], ConnectionState.prototype, "type", void 0);
|
|
164
|
-
__decorate([
|
|
156
|
+
tslib_1.__decorate([
|
|
165
157
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
166
|
-
__metadata("design:type", String)
|
|
158
|
+
tslib_1.__metadata("design:type", String)
|
|
167
159
|
], ConnectionState.prototype, "state", void 0);
|
|
168
|
-
__decorate([
|
|
160
|
+
tslib_1.__decorate([
|
|
169
161
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
170
|
-
__metadata("design:type", Date)
|
|
162
|
+
tslib_1.__metadata("design:type", Date)
|
|
171
163
|
], ConnectionState.prototype, "timestamp", void 0);
|
|
172
|
-
ConnectionState = __decorate([
|
|
164
|
+
ConnectionState = tslib_1.__decorate([
|
|
173
165
|
(0, type_graphql_1.ObjectType)()
|
|
174
166
|
], ConnectionState);
|
|
175
167
|
exports.ConnectionState = ConnectionState;
|
|
176
168
|
let NewConnection = class NewConnection {
|
|
177
169
|
};
|
|
178
|
-
__decorate([
|
|
170
|
+
tslib_1.__decorate([
|
|
179
171
|
(0, type_graphql_1.Field)(),
|
|
180
|
-
__metadata("design:type", String)
|
|
172
|
+
tslib_1.__metadata("design:type", String)
|
|
181
173
|
], NewConnection.prototype, "name", void 0);
|
|
182
|
-
__decorate([
|
|
174
|
+
tslib_1.__decorate([
|
|
183
175
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
184
|
-
__metadata("design:type", String)
|
|
176
|
+
tslib_1.__metadata("design:type", String)
|
|
185
177
|
], NewConnection.prototype, "description", void 0);
|
|
186
|
-
__decorate([
|
|
178
|
+
tslib_1.__decorate([
|
|
187
179
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
188
|
-
__metadata("design:type", String)
|
|
180
|
+
tslib_1.__metadata("design:type", String)
|
|
189
181
|
], NewConnection.prototype, "type", void 0);
|
|
190
|
-
__decorate([
|
|
182
|
+
tslib_1.__decorate([
|
|
191
183
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
192
|
-
__metadata("design:type", String)
|
|
184
|
+
tslib_1.__metadata("design:type", String)
|
|
193
185
|
], NewConnection.prototype, "endpoint", void 0);
|
|
194
|
-
__decorate([
|
|
186
|
+
tslib_1.__decorate([
|
|
195
187
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
196
|
-
__metadata("design:type", String)
|
|
188
|
+
tslib_1.__metadata("design:type", String)
|
|
197
189
|
], NewConnection.prototype, "params", void 0);
|
|
198
|
-
NewConnection = __decorate([
|
|
190
|
+
NewConnection = tslib_1.__decorate([
|
|
199
191
|
(0, type_graphql_1.InputType)()
|
|
200
192
|
], NewConnection);
|
|
201
193
|
exports.NewConnection = NewConnection;
|
|
202
194
|
let ConnectionPatch = class ConnectionPatch {
|
|
203
195
|
};
|
|
204
|
-
__decorate([
|
|
196
|
+
tslib_1.__decorate([
|
|
205
197
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
206
|
-
__metadata("design:type", String)
|
|
198
|
+
tslib_1.__metadata("design:type", String)
|
|
207
199
|
], ConnectionPatch.prototype, "id", void 0);
|
|
208
|
-
__decorate([
|
|
200
|
+
tslib_1.__decorate([
|
|
209
201
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
210
|
-
__metadata("design:type", String)
|
|
202
|
+
tslib_1.__metadata("design:type", String)
|
|
211
203
|
], ConnectionPatch.prototype, "name", void 0);
|
|
212
|
-
__decorate([
|
|
204
|
+
tslib_1.__decorate([
|
|
213
205
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
214
|
-
__metadata("design:type", String)
|
|
206
|
+
tslib_1.__metadata("design:type", String)
|
|
215
207
|
], ConnectionPatch.prototype, "description", void 0);
|
|
216
|
-
__decorate([
|
|
208
|
+
tslib_1.__decorate([
|
|
217
209
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
218
|
-
__metadata("design:type", String)
|
|
210
|
+
tslib_1.__metadata("design:type", String)
|
|
219
211
|
], ConnectionPatch.prototype, "type", void 0);
|
|
220
|
-
__decorate([
|
|
212
|
+
tslib_1.__decorate([
|
|
221
213
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
222
|
-
__metadata("design:type", String)
|
|
214
|
+
tslib_1.__metadata("design:type", String)
|
|
223
215
|
], ConnectionPatch.prototype, "endpoint", void 0);
|
|
224
|
-
__decorate([
|
|
216
|
+
tslib_1.__decorate([
|
|
225
217
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
226
|
-
__metadata("design:type", Boolean)
|
|
218
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
227
219
|
], ConnectionPatch.prototype, "active", void 0);
|
|
228
|
-
__decorate([
|
|
220
|
+
tslib_1.__decorate([
|
|
229
221
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
230
|
-
__metadata("design:type", String)
|
|
222
|
+
tslib_1.__metadata("design:type", String)
|
|
231
223
|
], ConnectionPatch.prototype, "params", void 0);
|
|
232
|
-
__decorate([
|
|
224
|
+
tslib_1.__decorate([
|
|
233
225
|
(0, type_graphql_1.Field)(),
|
|
234
|
-
__metadata("design:type", String)
|
|
226
|
+
tslib_1.__metadata("design:type", String)
|
|
235
227
|
], ConnectionPatch.prototype, "cuFlag", void 0);
|
|
236
|
-
ConnectionPatch = __decorate([
|
|
228
|
+
ConnectionPatch = tslib_1.__decorate([
|
|
237
229
|
(0, type_graphql_1.InputType)()
|
|
238
230
|
], ConnectionPatch);
|
|
239
231
|
exports.ConnectionPatch = ConnectionPatch;
|
|
240
232
|
let ConnectionList = class ConnectionList {
|
|
241
233
|
};
|
|
242
|
-
__decorate([
|
|
234
|
+
tslib_1.__decorate([
|
|
243
235
|
(0, type_graphql_1.Field)(type => [Connection]),
|
|
244
|
-
__metadata("design:type", Array)
|
|
236
|
+
tslib_1.__metadata("design:type", Array)
|
|
245
237
|
], ConnectionList.prototype, "items", void 0);
|
|
246
|
-
__decorate([
|
|
238
|
+
tslib_1.__decorate([
|
|
247
239
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
248
|
-
__metadata("design:type", Number)
|
|
240
|
+
tslib_1.__metadata("design:type", Number)
|
|
249
241
|
], ConnectionList.prototype, "total", void 0);
|
|
250
|
-
ConnectionList = __decorate([
|
|
242
|
+
ConnectionList = tslib_1.__decorate([
|
|
251
243
|
(0, type_graphql_1.ObjectType)()
|
|
252
244
|
], ConnectionList);
|
|
253
245
|
exports.ConnectionList = ConnectionList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-type.js","sourceRoot":"","sources":["../../../server/service/connection/connection-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connection-type.js","sourceRoot":"","sources":["../../../server/service/connection/connection-type.ts"],"names":[],"mappings":";;;;;AAAA,+CAAsF;AACtF,qCASgB;AAEhB,yDAAgD;AAChD,6CAA4C;AAC5C,iDAA8C;AAE9C,yCAAgD;AAEhD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAA,+BAAgB,EAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,mCAAmC;CACjD,CAAC,CAAA;AAKF,IAAa,UAAU,GAAvB,MAAa,UAAU;IAuErB,KAA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C;;6CACN;AALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc","sourcesContent":["import { Field, ID, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { logger } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { ConnectionManager } from '../../engine'\n\nexport enum ConnectionStatus {\n CONNECTED = 'CONNECTED',\n DISCONNECTED = 'DISCONNECTED'\n}\n\nregisterEnumType(ConnectionStatus, {\n name: 'ConnectionStatus',\n description: 'state enumeration of a connection'\n})\n\n@Entity()\n@Index('ix_connection_0', (connection: Connection) => [connection.domain, connection.name], { unique: true })\n@ObjectType()\nexport class Connection {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain: Domain\n\n @RelationId((connection: Connection) => connection.domain)\n domainId: string\n\n @Column()\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description: string\n\n @Column()\n @Field({ nullable: true })\n type: string\n\n @Column()\n @Field({ nullable: true })\n endpoint: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n active: boolean\n\n @Field({ nullable: true })\n state: ConnectionStatus\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n params: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((connection: Connection) => connection.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((connection: Connection) => connection.creator)\n updaterId: string\n\n async connect() {\n var connector = ConnectionManager.getConnector(this.type)\n var params = {}\n\n try {\n params = JSON.parse(this.params || '{}')\n } catch (ex) {\n logger.error(`connection '${this.name}' params should be JSON format`, ex)\n }\n\n await connector.connect({\n ...this,\n params\n })\n }\n\n async disconnect() {\n try {\n var connector = ConnectionManager.getConnector(this.type)\n await connector.disconnect(this)\n } finally {\n }\n }\n}\n\n@ObjectType()\nexport class ConnectionState {\n @Field({ nullable: true })\n domain?: Domain\n\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n state?: ConnectionStatus\n\n @Field({ nullable: true })\n timestamp?: Date\n}\n\n@InputType()\nexport class NewConnection {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n endpoint?: string\n\n @Field({ nullable: true })\n params?: string\n}\n\n@InputType()\nexport class ConnectionPatch {\n @Field(type => ID, { nullable: true })\n id: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n endpoint?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n params?: string\n\n @Field()\n cuFlag: string\n}\n\n@ObjectType()\nexport class ConnectionList {\n @Field(type => [Connection])\n items: Connection[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/connection/index.ts"],"names":[],"mappings":";;;AAAA,uDAA8C;AAC9C,yDAAoD;AACpD,+DAA0D;AAC1D,uEAAkE;AAErD,QAAA,QAAQ,GAAG,CAAC,4BAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,kCAAe,EAAE,wCAAkB,EAAE,gDAAsB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/connection/index.ts"],"names":[],"mappings":";;;AAAA,uDAA8C;AAC9C,yDAAoD;AACpD,+DAA0D;AAC1D,uEAAkE;AAErD,QAAA,QAAQ,GAAG,CAAC,4BAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,kCAAe,EAAE,wCAAkB,EAAE,gDAAsB,CAAC,CAAA","sourcesContent":["import { Connection } from './connection-type'\nimport { ConnectionQuery } from './connection-query'\nimport { ConnectionMutation } from './connection-mutation'\nimport { ConnectionSubscription } from './connection-subscription'\n\nexport const entities = [Connection]\nexport const resolvers = [ConnectionQuery, ConnectionMutation, ConnectionSubscription]\n"]}
|
|
@@ -1,18 +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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.ConnectorQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
|
17
6
|
const typeorm_1 = require("typeorm");
|
|
18
7
|
const connection_type_1 = require("../connection/connection-type");
|
|
@@ -59,29 +48,29 @@ let ConnectorQuery = class ConnectorQuery {
|
|
|
59
48
|
return connection && connection_manager_1.ConnectionManager.getConnector(connection.type);
|
|
60
49
|
}
|
|
61
50
|
};
|
|
62
|
-
__decorate([
|
|
51
|
+
tslib_1.__decorate([
|
|
63
52
|
(0, type_graphql_1.Query)(returns => connector_type_1.ConnectorType, { description: 'To fetch a connector' }),
|
|
64
|
-
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
65
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
66
|
-
__metadata("design:type", Function),
|
|
67
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
68
|
-
__metadata("design:returntype", Promise)
|
|
53
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('name')),
|
|
54
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
55
|
+
tslib_1.__metadata("design:type", Function),
|
|
56
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
57
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
69
58
|
], ConnectorQuery.prototype, "connection", null);
|
|
70
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
71
60
|
(0, type_graphql_1.Query)(returns => connector_type_1.ConnectorList, { description: 'To fetch multiple connector' }),
|
|
72
|
-
__metadata("design:type", Function),
|
|
73
|
-
__metadata("design:paramtypes", []),
|
|
74
|
-
__metadata("design:returntype", Promise)
|
|
61
|
+
tslib_1.__metadata("design:type", Function),
|
|
62
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
63
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
75
64
|
], ConnectorQuery.prototype, "connectors", null);
|
|
76
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
77
66
|
(0, type_graphql_1.Query)(returns => connector_type_1.ConnectorType, { description: 'To fetch the connector from a connection' }),
|
|
78
|
-
__param(0, (0, type_graphql_1.Arg)('connectionName')),
|
|
79
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
80
|
-
__metadata("design:type", Function),
|
|
81
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
82
|
-
__metadata("design:returntype", Promise)
|
|
67
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('connectionName')),
|
|
68
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
69
|
+
tslib_1.__metadata("design:type", Function),
|
|
70
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
71
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
83
72
|
], ConnectorQuery.prototype, "connectorByConnection", null);
|
|
84
|
-
ConnectorQuery = __decorate([
|
|
73
|
+
ConnectorQuery = tslib_1.__decorate([
|
|
85
74
|
(0, type_graphql_1.Resolver)(connector_type_1.ConnectorType)
|
|
86
75
|
], ConnectorQuery);
|
|
87
76
|
exports.ConnectorQuery = ConnectorQuery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-query.js","sourceRoot":"","sources":["../../../server/service/connector/connector-query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connector-query.js","sourceRoot":"","sources":["../../../server/service/connector/connector-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAwD;AACxD,qCAAuC;AACvC,mEAA0D;AAC1D,qDAA+D;AAC/D,wEAAmE;AAGnE,IAAa,cAAc,GAA3B,MAAa,cAAc;IAEzB,KAAK,CAAC,UAAU,CAAc,IAAY,EAAS,OAAY;QAC7D,aAAa;QACb,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,sCAAiB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;QAErG,OAAO;YACL,IAAI;YACJ,WAAW;YACX,IAAI;YACJ,aAAa;YACb,YAAY,EAAE,YAAY,IAAI,EAAE;SACjC,CAAA;IACH,CAAC;IAGD,KAAK,CAAC,UAAU;QACd,IA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,IAAA,kBAAG,GAAE,CAAA;;;;gDAWjD;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;;;gDAsB/E;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IAE1F,mBAAA,IAAA,kBAAG,EAAC,gBAAgB,CAAC,CAAA;IACrB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;2DASP;AAnDU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,cAAc,CAoD1B;AApDY,wCAAc","sourcesContent":["import { Resolver, Query, Arg, Ctx } from 'type-graphql'\nimport { getRepository } from 'typeorm'\nimport { Connection } from '../connection/connection-type'\nimport { ConnectorType, ConnectorList } from './connector-type'\nimport { ConnectionManager } from '../../engine/connection-manager'\n\n@Resolver(ConnectorType)\nexport class ConnectorQuery {\n @Query(returns => ConnectorType, { description: 'To fetch a connector' })\n async connection(@Arg('name') name: string, @Ctx() context: any): Promise<ConnectorType> {\n // @ts-ignore\n const { description, help, parameterSpec, taskPrefixes } = ConnectionManager.getConnector(name) || {}\n\n return {\n name,\n description,\n help,\n parameterSpec,\n taskPrefixes: taskPrefixes || []\n }\n }\n\n @Query(returns => ConnectorList, { description: 'To fetch multiple connector' })\n async connectors(): Promise<ConnectorList> {\n var connectors = ConnectionManager.getConnectors()\n var items = Object.keys(connectors)\n .map(name => {\n var connector = connectors[name]\n return {\n name,\n description: connector.description,\n help: connector.help,\n parameterSpec: connector.parameterSpec,\n taskPrefixes: connector.taskPrefixes || []\n }\n })\n .sort((x, y) => {\n return x.name < y.name ? -1 : 1\n })\n\n return {\n items,\n total: items.length\n }\n }\n\n @Query(returns => ConnectorType, { description: 'To fetch the connector from a connection' })\n async connectorByConnection(\n @Arg('connectionName') connectionName: string,\n @Ctx() context: any\n ): Promise<ConnectorType> {\n const { domain } = context.state\n\n var connection = await getRepository(Connection).findOne({\n where: { domain, name: connectionName }\n })\n\n return connection && (ConnectionManager.getConnector(connection.type) as any)\n }\n}\n"]}
|
|
@@ -1,54 +1,46 @@
|
|
|
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.ConnectorList = exports.ConnectorType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const type_graphql_1 = require("type-graphql");
|
|
14
6
|
const property_spec_1 = require("../property-spec");
|
|
15
7
|
let ConnectorType = class ConnectorType {
|
|
16
8
|
};
|
|
17
|
-
__decorate([
|
|
9
|
+
tslib_1.__decorate([
|
|
18
10
|
(0, type_graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
20
12
|
], ConnectorType.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
13
|
+
tslib_1.__decorate([
|
|
22
14
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
24
16
|
], ConnectorType.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
17
|
+
tslib_1.__decorate([
|
|
26
18
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
28
20
|
], ConnectorType.prototype, "help", void 0);
|
|
29
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
30
22
|
(0, type_graphql_1.Field)(type => [property_spec_1.PropertySpec], { nullable: true }),
|
|
31
|
-
__metadata("design:type", Array)
|
|
23
|
+
tslib_1.__metadata("design:type", Array)
|
|
32
24
|
], ConnectorType.prototype, "parameterSpec", void 0);
|
|
33
|
-
__decorate([
|
|
25
|
+
tslib_1.__decorate([
|
|
34
26
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
35
|
-
__metadata("design:type", Array)
|
|
27
|
+
tslib_1.__metadata("design:type", Array)
|
|
36
28
|
], ConnectorType.prototype, "taskPrefixes", void 0);
|
|
37
|
-
ConnectorType = __decorate([
|
|
29
|
+
ConnectorType = tslib_1.__decorate([
|
|
38
30
|
(0, type_graphql_1.ObjectType)()
|
|
39
31
|
], ConnectorType);
|
|
40
32
|
exports.ConnectorType = ConnectorType;
|
|
41
33
|
let ConnectorList = class ConnectorList {
|
|
42
34
|
};
|
|
43
|
-
__decorate([
|
|
35
|
+
tslib_1.__decorate([
|
|
44
36
|
(0, type_graphql_1.Field)(type => [ConnectorType]),
|
|
45
|
-
__metadata("design:type", Array)
|
|
37
|
+
tslib_1.__metadata("design:type", Array)
|
|
46
38
|
], ConnectorList.prototype, "items", void 0);
|
|
47
|
-
__decorate([
|
|
39
|
+
tslib_1.__decorate([
|
|
48
40
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
49
|
-
__metadata("design:type", Number)
|
|
41
|
+
tslib_1.__metadata("design:type", Number)
|
|
50
42
|
], ConnectorList.prototype, "total", void 0);
|
|
51
|
-
ConnectorList = __decorate([
|
|
43
|
+
ConnectorList = tslib_1.__decorate([
|
|
52
44
|
(0, type_graphql_1.ObjectType)()
|
|
53
45
|
], ConnectorList);
|
|
54
46
|
exports.ConnectorList = ConnectorList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-type.js","sourceRoot":"","sources":["../../../server/service/connector/connector-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connector-type.js","sourceRoot":"","sources":["../../../server/service/connector/connector-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,oDAA+C;AAG/C,IAAa,aAAa,GAA1B,MAAa,aAAa;CAezB,CAAA;AAbC;IADC,IAAA,oBAAK,GAAE;;2CACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACP;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACrB;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAdZ,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAezB;AAfY,sCAAa;AAkB1B,IAAa,aAAa,GAA1B,MAAa,aAAa;CAMzB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC;;4CACT;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;AALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB;AANY,sCAAa","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { PropertySpec } from '../property-spec'\n\n@ObjectType()\nexport class ConnectorType {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n help?: string\n\n @Field(type => [PropertySpec], { nullable: true })\n parameterSpec: PropertySpec[]\n\n @Field(type => [String], { nullable: true })\n taskPrefixes?: string[]\n}\n\n@ObjectType()\nexport class ConnectorList {\n @Field(type => [ConnectorType])\n items: ConnectorType[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/connector/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAErC,QAAA,QAAQ,GAAG,EAAE,CAAA;AACb,QAAA,SAAS,GAAG,CAAC,gCAAc,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/connector/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAErC,QAAA,QAAQ,GAAG,EAAE,CAAA;AACb,QAAA,SAAS,GAAG,CAAC,gCAAc,CAAC,CAAA","sourcesContent":["import { ConnectorQuery } from './connector-query'\n\nexport const entities = []\nexport const resolvers = [ConnectorQuery]\n"]}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.createPayloadLog = exports.PayloadType = exports.schema = exports.entities = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
const connection_1 = require("./connection");
|
|
19
6
|
const connector_1 = require("./connector");
|
|
20
7
|
const scenario_1 = require("./scenario");
|
|
@@ -23,16 +10,16 @@ const scenario_queue_1 = require("./scenario-queue");
|
|
|
23
10
|
const step_1 = require("./step");
|
|
24
11
|
const task_type_1 = require("./task-type");
|
|
25
12
|
const payload_log_1 = require("./payload-log");
|
|
26
|
-
__exportStar(require("./property-spec"), exports);
|
|
27
|
-
__exportStar(require("./task-type/task-type-type"), exports);
|
|
28
|
-
__exportStar(require("./connector/connector-type"), exports);
|
|
29
|
-
__exportStar(require("./connection/connection-type"), exports);
|
|
30
|
-
__exportStar(require("./scenario/scenario-type"), exports);
|
|
31
|
-
__exportStar(require("./scenario-instance/scenario-instance-type"), exports);
|
|
32
|
-
__exportStar(require("./scenario-queue/scenario-queue-type"), exports);
|
|
33
|
-
__exportStar(require("./step/step-type"), exports);
|
|
34
|
-
__exportStar(require("./scenario-flow/scenario-flow"), exports);
|
|
35
|
-
__exportStar(require("./payload-log/payload-log"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./property-spec"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./task-type/task-type-type"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./connector/connector-type"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./connection/connection-type"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./scenario/scenario-type"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./scenario-instance/scenario-instance-type"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./scenario-queue/scenario-queue-type"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./step/step-type"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./scenario-flow/scenario-flow"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./payload-log/payload-log"), exports);
|
|
36
23
|
exports.entities = [
|
|
37
24
|
...task_type_1.entities,
|
|
38
25
|
...connector_1.entities,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,6CAA+F;AAC/F,2CAA4F;AAC5F,yCAAyF;AACzF,2DAAkH;AAClH,qDAAyG;AACzG,iCAA6E;AAC7E,2CAA0F;AAC1F,+CAAgG;AAEhG,0DAA+B;AAC/B,qEAA0C;AAC1C,qEAA0C;AAC1C,uEAA4C;AAC5C,mEAAwC;AACxC,qFAA0D;AAC1D,+EAAoD;AACpD,2DAAgC;AAChC,wEAA6C;AAC7C,oEAAyC;AAE5B,QAAA,QAAQ,GAAG;IACtB,GAAG,oBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,qBAAkB;IACrB,GAAG,mBAAgB;IACnB,GAAG,4BAAwB;IAC3B,GAAG,yBAAqB;IACxB,GAAG,eAAY;IACf,GAAG,sBAAkB;CACtB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,GAAG,qBAAiB;QACpB,GAAG,qBAAkB;QACrB,GAAG,sBAAmB;QACtB,GAAG,oBAAiB;QACpB,GAAG,6BAAyB;QAC5B,GAAG,0BAAsB;QACzB,GAAG,gBAAa;QAChB,GAAG,uBAAmB;KACvB;CACF,CAAA;AAED,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AACpB,2EAAqE;AAA5D,wHAAA,gBAAgB,OAAA","sourcesContent":["import { entities as ConnectionEntities, resolvers as ConnectionResolvers } from './connection'\nimport { entities as ConnectorEntities, resolvers as ConnectorResolvers } from './connector'\nimport { entities as ScenarioEntities, resolvers as ScenarioResolvers } from './scenario'\nimport { entities as ScenarioInstanceEntities, resolvers as ScenarioInstanceResolvers } from './scenario-instance'\nimport { entities as ScenarioQueueEntities, resolvers as ScenarioQueueResolvers } from './scenario-queue'\nimport { entities as StepEntities, resolvers as StepResolvers } from './step'\nimport { entities as TaskTypeEntities, resolvers as TaskTypeResolvers } from './task-type'\nimport { entities as PayloadLogEntities, resolvers as PayloadLogResolvers } from './payload-log'\n\nexport * from './property-spec'\nexport * from './task-type/task-type-type'\nexport * from './connector/connector-type'\nexport * from './connection/connection-type'\nexport * from './scenario/scenario-type'\nexport * from './scenario-instance/scenario-instance-type'\nexport * from './scenario-queue/scenario-queue-type'\nexport * from './step/step-type'\nexport * from './scenario-flow/scenario-flow'\nexport * from './payload-log/payload-log'\n\nexport const entities = [\n ...TaskTypeEntities,\n ...ConnectorEntities,\n ...ConnectionEntities,\n ...ScenarioEntities,\n ...ScenarioInstanceEntities,\n ...ScenarioQueueEntities,\n ...StepEntities,\n ...PayloadLogEntities\n]\n\nexport const schema = {\n resolverClasses: [\n ...TaskTypeResolvers,\n ...ConnectorResolvers,\n ...ConnectionResolvers,\n ...ScenarioResolvers,\n ...ScenarioInstanceResolvers,\n ...ScenarioQueueResolvers,\n ...StepResolvers,\n ...PayloadLogResolvers\n ]\n}\n\nexport { PayloadType } from './payload-log/payload-log'\nexport { createPayloadLog } from './payload-log/payload-log-mutation'"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/payload-log/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/payload-log/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA","sourcesContent":["import { PayloadLog } from './payload-log'\nimport { PayloadLogQuery } from './payload-log-query'\nimport { PayloadLogMutation } from './payload-log-mutation'\n\nexport const entities = [PayloadLog]\nexport const resolvers = [PayloadLogQuery, PayloadLogMutation]\n\n"]}
|