@things-factory/integration-base 4.3.652 → 4.3.671
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/package.json +6 -6
- package/dist-server/engine/connection-manager.js +0 -141
- package/dist-server/engine/connection-manager.js.map +0 -1
- package/dist-server/engine/connector/echo-back-connector.js +0 -41
- package/dist-server/engine/connector/echo-back-connector.js.map +0 -1
- package/dist-server/engine/connector/echo-back-server.js +0 -60
- package/dist-server/engine/connector/echo-back-server.js.map +0 -1
- package/dist-server/engine/connector/graphql-connector.js +0 -91
- package/dist-server/engine/connector/graphql-connector.js.map +0 -1
- package/dist-server/engine/connector/http-connector.js +0 -52
- package/dist-server/engine/connector/http-connector.js.map +0 -1
- package/dist-server/engine/connector/index.js +0 -14
- package/dist-server/engine/connector/index.js.map +0 -1
- package/dist-server/engine/connector/mqtt-connector.js +0 -44
- package/dist-server/engine/connector/mqtt-connector.js.map +0 -1
- package/dist-server/engine/connector/mssql-connector.js +0 -88
- package/dist-server/engine/connector/mssql-connector.js.map +0 -1
- package/dist-server/engine/connector/mysql-connector.js +0 -82
- package/dist-server/engine/connector/mysql-connector.js.map +0 -1
- package/dist-server/engine/connector/oracle-connector.js +0 -80
- package/dist-server/engine/connector/oracle-connector.js.map +0 -1
- package/dist-server/engine/connector/postgresql-connector.js +0 -88
- package/dist-server/engine/connector/postgresql-connector.js.map +0 -1
- package/dist-server/engine/connector/socket-server.js +0 -78
- package/dist-server/engine/connector/socket-server.js.map +0 -1
- package/dist-server/engine/connector/sqlite-connector.js +0 -57
- package/dist-server/engine/connector/sqlite-connector.js.map +0 -1
- package/dist-server/engine/index.js +0 -22
- package/dist-server/engine/index.js.map +0 -1
- package/dist-server/engine/pending-queue.js +0 -75
- package/dist-server/engine/pending-queue.js.map +0 -1
- package/dist-server/engine/scenario-engine.js +0 -74
- package/dist-server/engine/scenario-engine.js.map +0 -1
- package/dist-server/engine/task/book-up-scenario.js +0 -63
- package/dist-server/engine/task/book-up-scenario.js.map +0 -1
- package/dist-server/engine/task/database-query.js +0 -30
- package/dist-server/engine/task/database-query.js.map +0 -1
- package/dist-server/engine/task/echo-receive.js +0 -15
- package/dist-server/engine/task/echo-receive.js.map +0 -1
- package/dist-server/engine/task/echo-send.js +0 -24
- package/dist-server/engine/task/echo-send.js.map +0 -1
- package/dist-server/engine/task/empty-check.js +0 -29
- package/dist-server/engine/task/empty-check.js.map +0 -1
- package/dist-server/engine/task/end.js +0 -14
- package/dist-server/engine/task/end.js.map +0 -1
- package/dist-server/engine/task/floating-point.js +0 -64
- package/dist-server/engine/task/floating-point.js.map +0 -1
- package/dist-server/engine/task/goto.js +0 -20
- package/dist-server/engine/task/goto.js.map +0 -1
- package/dist-server/engine/task/graphql-mutate.js +0 -41
- package/dist-server/engine/task/graphql-mutate.js.map +0 -1
- package/dist-server/engine/task/graphql-query.js +0 -40
- package/dist-server/engine/task/graphql-query.js.map +0 -1
- package/dist-server/engine/task/http-get.js +0 -67
- package/dist-server/engine/task/http-get.js.map +0 -1
- package/dist-server/engine/task/http-post.js +0 -106
- package/dist-server/engine/task/http-post.js.map +0 -1
- package/dist-server/engine/task/index.js +0 -35
- package/dist-server/engine/task/index.js.map +0 -1
- package/dist-server/engine/task/local-graphql-mutate.js +0 -51
- package/dist-server/engine/task/local-graphql-mutate.js.map +0 -1
- package/dist-server/engine/task/local-graphql-query.js +0 -51
- package/dist-server/engine/task/local-graphql-query.js.map +0 -1
- package/dist-server/engine/task/log.js +0 -48
- package/dist-server/engine/task/log.js.map +0 -1
- package/dist-server/engine/task/mqtt-publish.js +0 -35
- package/dist-server/engine/task/mqtt-publish.js.map +0 -1
- package/dist-server/engine/task/mqtt-subscribe.js +0 -109
- package/dist-server/engine/task/mqtt-subscribe.js.map +0 -1
- package/dist-server/engine/task/pick-pending-scenario.js +0 -61
- package/dist-server/engine/task/pick-pending-scenario.js.map +0 -1
- package/dist-server/engine/task/publish.js +0 -31
- package/dist-server/engine/task/publish.js.map +0 -1
- package/dist-server/engine/task/reset-pending-queue.js +0 -13
- package/dist-server/engine/task/reset-pending-queue.js.map +0 -1
- package/dist-server/engine/task/script.js +0 -32
- package/dist-server/engine/task/script.js.map +0 -1
- package/dist-server/engine/task/sleep.js +0 -26
- package/dist-server/engine/task/sleep.js.map +0 -1
- package/dist-server/engine/task/socket-listener.js +0 -86
- package/dist-server/engine/task/socket-listener.js.map +0 -1
- package/dist-server/engine/task/sub-scenario.js +0 -45
- package/dist-server/engine/task/sub-scenario.js.map +0 -1
- package/dist-server/engine/task/switch-goto.js +0 -32
- package/dist-server/engine/task/switch-goto.js.map +0 -1
- package/dist-server/engine/task/switch-range-goto.js +0 -39
- package/dist-server/engine/task/switch-range-goto.js.map +0 -1
- package/dist-server/engine/task/switch-range-scenario.js +0 -60
- package/dist-server/engine/task/switch-range-scenario.js.map +0 -1
- package/dist-server/engine/task/switch-range-set.js +0 -35
- package/dist-server/engine/task/switch-range-set.js.map +0 -1
- package/dist-server/engine/task/switch-scenario.js +0 -53
- package/dist-server/engine/task/switch-scenario.js.map +0 -1
- package/dist-server/engine/task/switch-set.js +0 -28
- package/dist-server/engine/task/switch-set.js.map +0 -1
- package/dist-server/engine/task/throw.js +0 -19
- package/dist-server/engine/task/throw.js.map +0 -1
- package/dist-server/engine/task/utils/substitute.js +0 -46
- package/dist-server/engine/task/utils/substitute.js.map +0 -1
- package/dist-server/engine/task/variables.js +0 -13
- package/dist-server/engine/task/variables.js.map +0 -1
- package/dist-server/engine/task-registry.js +0 -20
- package/dist-server/engine/task-registry.js.map +0 -1
- package/dist-server/engine/types.js +0 -3
- package/dist-server/engine/types.js.map +0 -1
- package/dist-server/index.js +0 -25
- package/dist-server/index.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/restful/index.js +0 -4
- package/dist-server/restful/index.js.map +0 -1
- package/dist-server/restful/unstable/index.js +0 -10
- package/dist-server/restful/unstable/index.js.map +0 -1
- package/dist-server/restful/unstable/run-scenario.js +0 -40
- package/dist-server/restful/unstable/run-scenario.js.map +0 -1
- package/dist-server/restful/unstable/scenario-instance.js +0 -54
- package/dist-server/restful/unstable/scenario-instance.js.map +0 -1
- package/dist-server/restful/unstable/scenario-instances.js +0 -76
- package/dist-server/restful/unstable/scenario-instances.js.map +0 -1
- package/dist-server/restful/unstable/scenario.js +0 -44
- package/dist-server/restful/unstable/scenario.js.map +0 -1
- package/dist-server/restful/unstable/scenarios.js +0 -65
- package/dist-server/restful/unstable/scenarios.js.map +0 -1
- package/dist-server/restful/unstable/start-scenario.js +0 -35
- package/dist-server/restful/unstable/start-scenario.js.map +0 -1
- package/dist-server/restful/unstable/stop-scenario.js +0 -32
- package/dist-server/restful/unstable/stop-scenario.js.map +0 -1
- package/dist-server/routers/scenario-view-router.js +0 -42
- package/dist-server/routers/scenario-view-router.js.map +0 -1
- package/dist-server/routes.js +0 -14
- package/dist-server/routes.js.map +0 -1
- package/dist-server/service/connection/connection-mutation.js +0 -162
- package/dist-server/service/connection/connection-mutation.js.map +0 -1
- package/dist-server/service/connection/connection-query.js +0 -112
- package/dist-server/service/connection/connection-query.js.map +0 -1
- package/dist-server/service/connection/connection-subscription.js +0 -114
- package/dist-server/service/connection/connection-subscription.js.map +0 -1
- package/dist-server/service/connection/connection-type.js +0 -253
- package/dist-server/service/connection/connection-type.js.map +0 -1
- package/dist-server/service/connection/index.js +0 -10
- package/dist-server/service/connection/index.js.map +0 -1
- package/dist-server/service/connector/connector-query.js +0 -88
- package/dist-server/service/connector/connector-query.js.map +0 -1
- package/dist-server/service/connector/connector-type.js +0 -55
- package/dist-server/service/connector/connector-type.js.map +0 -1
- package/dist-server/service/connector/index.js +0 -7
- package/dist-server/service/connector/index.js.map +0 -1
- package/dist-server/service/index.js +0 -81
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/integration/index.js +0 -9
- package/dist-server/service/integration/index.js.map +0 -1
- package/dist-server/service/integration/integration-mutation.js +0 -120
- package/dist-server/service/integration/integration-mutation.js.map +0 -1
- package/dist-server/service/integration/integration-query.js +0 -87
- package/dist-server/service/integration/integration-query.js.map +0 -1
- package/dist-server/service/integration/integration-type.js +0 -77
- package/dist-server/service/integration/integration-type.js.map +0 -1
- package/dist-server/service/integration/integration.js +0 -147
- package/dist-server/service/integration/integration.js.map +0 -1
- package/dist-server/service/payload-log/index.js +0 -9
- package/dist-server/service/payload-log/index.js.map +0 -1
- package/dist-server/service/payload-log/payload-log-mutation.js +0 -144
- package/dist-server/service/payload-log/payload-log-mutation.js.map +0 -1
- package/dist-server/service/payload-log/payload-log-query.js +0 -77
- package/dist-server/service/payload-log/payload-log-query.js.map +0 -1
- package/dist-server/service/payload-log/payload-log-type.js +0 -65
- package/dist-server/service/payload-log/payload-log-type.js.map +0 -1
- package/dist-server/service/payload-log/payload-log.js +0 -109
- package/dist-server/service/payload-log/payload-log.js.map +0 -1
- package/dist-server/service/property-spec.js +0 -42
- package/dist-server/service/property-spec.js.map +0 -1
- package/dist-server/service/scenario/index.js +0 -9
- package/dist-server/service/scenario/index.js.map +0 -1
- package/dist-server/service/scenario/scenario-mutation.js +0 -213
- package/dist-server/service/scenario/scenario-mutation.js.map +0 -1
- package/dist-server/service/scenario/scenario-query.js +0 -130
- package/dist-server/service/scenario/scenario-query.js.map +0 -1
- package/dist-server/service/scenario/scenario-type.js +0 -220
- package/dist-server/service/scenario/scenario-type.js.map +0 -1
- package/dist-server/service/scenario-flow/scenario-flow.js +0 -37
- package/dist-server/service/scenario-flow/scenario-flow.js.map +0 -1
- package/dist-server/service/scenario-instance/index.js +0 -9
- package/dist-server/service/scenario-instance/index.js.map +0 -1
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js +0 -115
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js.map +0 -1
- package/dist-server/service/scenario-instance/scenario-instance-query.js +0 -122
- package/dist-server/service/scenario-instance/scenario-instance-query.js.map +0 -1
- package/dist-server/service/scenario-instance/scenario-instance-subscription.js +0 -122
- package/dist-server/service/scenario-instance/scenario-instance-subscription.js.map +0 -1
- package/dist-server/service/scenario-instance/scenario-instance-type.js +0 -428
- package/dist-server/service/scenario-instance/scenario-instance-type.js.map +0 -1
- package/dist-server/service/scenario-queue/index.js +0 -7
- package/dist-server/service/scenario-queue/index.js.map +0 -1
- package/dist-server/service/scenario-queue/scenario-queue-subscription.js +0 -69
- package/dist-server/service/scenario-queue/scenario-queue-subscription.js.map +0 -1
- package/dist-server/service/scenario-queue/scenario-queue-type.js +0 -52
- package/dist-server/service/scenario-queue/scenario-queue-type.js.map +0 -1
- package/dist-server/service/step/index.js +0 -9
- package/dist-server/service/step/index.js.map +0 -1
- package/dist-server/service/step/step-mutation.js +0 -66
- package/dist-server/service/step/step-mutation.js.map +0 -1
- package/dist-server/service/step/step-query.js +0 -97
- package/dist-server/service/step/step-query.js.map +0 -1
- package/dist-server/service/step/step-type.js +0 -194
- package/dist-server/service/step/step-type.js.map +0 -1
- package/dist-server/service/task-type/index.js +0 -7
- package/dist-server/service/task-type/index.js.map +0 -1
- package/dist-server/service/task-type/task-type-query.js +0 -119
- package/dist-server/service/task-type/task-type-query.js.map +0 -1
- package/dist-server/service/task-type/task-type-type.js +0 -55
- package/dist-server/service/task-type/task-type-type.js.map +0 -1
- package/dist-server/service/webhook/index.js +0 -9
- package/dist-server/service/webhook/index.js.map +0 -1
- package/dist-server/service/webhook/webhook-mutation.js +0 -19
- package/dist-server/service/webhook/webhook-mutation.js.map +0 -1
- package/dist-server/service/webhook/webhook-query.js +0 -18
- package/dist-server/service/webhook/webhook-query.js.map +0 -1
- package/dist-server/service/webhook/webhook-type.js +0 -77
- package/dist-server/service/webhook/webhook-type.js.map +0 -1
- package/dist-server/service/webhook/webhook.js +0 -82
- package/dist-server/service/webhook/webhook.js.map +0 -1
- package/dist-server/service/webhook-event/index.js +0 -9
- package/dist-server/service/webhook-event/index.js.map +0 -1
- package/dist-server/service/webhook-event/webhook-event-enums.js +0 -36
- package/dist-server/service/webhook-event/webhook-event-enums.js.map +0 -1
- package/dist-server/service/webhook-event/webhook-event-mutation.js +0 -18
- package/dist-server/service/webhook-event/webhook-event-mutation.js.map +0 -1
- package/dist-server/service/webhook-event/webhook-event-query.js +0 -18
- package/dist-server/service/webhook-event/webhook-event-query.js.map +0 -1
- package/dist-server/service/webhook-event/webhook-event-type.js +0 -77
- package/dist-server/service/webhook-event/webhook-event-type.js.map +0 -1
- package/dist-server/service/webhook-event/webhook-event.js +0 -60
- package/dist-server/service/webhook-event/webhook-event.js.map +0 -1
- package/dist-server/service/webhook-handler/lambda-handler.js +0 -30
- package/dist-server/service/webhook-handler/lambda-handler.js.map +0 -1
- package/dist-server/service/webhook-handler/webhook-controller.js +0 -54
- package/dist-server/service/webhook-handler/webhook-controller.js.map +0 -1
- package/dist-server/sqs-client.js +0 -29
- package/dist-server/sqs-client.js.map +0 -1
- package/dist-server/sqs-const.js +0 -6
- package/dist-server/sqs-const.js.map +0 -1
- package/dist-server/util/index.js +0 -19
- package/dist-server/util/index.js.map +0 -1
- package/dist-server/util/lambda/lambda-const.js +0 -7
- package/dist-server/util/lambda/lambda-const.js.map +0 -1
- package/dist-server/util/lambda/lambda-service.js +0 -33
- package/dist-server/util/lambda/lambda-service.js.map +0 -1
- package/dist-server/util/sqs-send-message.js +0 -11
- package/dist-server/util/sqs-send-message.js.map +0 -1
|
@@ -1,114 +0,0 @@
|
|
|
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
|
-
var _a;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConnectionSubscription = void 0;
|
|
17
|
-
const type_graphql_1 = require("type-graphql");
|
|
18
|
-
const typeorm_1 = require("typeorm");
|
|
19
|
-
const connection_type_1 = require("./connection-type");
|
|
20
|
-
const shell_1 = require("@things-factory/shell");
|
|
21
|
-
const graphql_subscriptions_1 = require("graphql-subscriptions");
|
|
22
|
-
const connection_manager_1 = require("../../engine/connection-manager");
|
|
23
|
-
const debug = require('debug')('things-factory:integration:connection-subscription');
|
|
24
|
-
let ConnectionSubscription = class ConnectionSubscription {
|
|
25
|
-
connectionState(payload, name) {
|
|
26
|
-
return payload.connectionState;
|
|
27
|
-
}
|
|
28
|
-
connectionLog(payload, level) {
|
|
29
|
-
return payload.log;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, type_graphql_1.Subscription)({
|
|
34
|
-
subscribe: (_, args, context, info) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const { domain, user } = context.state;
|
|
37
|
-
const { name } = args;
|
|
38
|
-
const subdomain = domain === null || domain === void 0 ? void 0 : domain.subdomain;
|
|
39
|
-
debug('subscribe', subdomain);
|
|
40
|
-
if (!domain) {
|
|
41
|
-
throw new Error('domain required.');
|
|
42
|
-
}
|
|
43
|
-
if (!((_a = user.domains) === null || _a === void 0 ? void 0 : _a.find(d => d.subdomain === subdomain))) {
|
|
44
|
-
throw new Error(`domain(${subdomain}) is not working for user(${user.email}).`);
|
|
45
|
-
}
|
|
46
|
-
process.nextTick(async () => {
|
|
47
|
-
var where = { domain };
|
|
48
|
-
if (name) {
|
|
49
|
-
where['name'] = name;
|
|
50
|
-
}
|
|
51
|
-
var connections = await (0, typeorm_1.getRepository)(connection_type_1.Connection).find({
|
|
52
|
-
where,
|
|
53
|
-
relations: ['domain']
|
|
54
|
-
});
|
|
55
|
-
connections.forEach(connection => {
|
|
56
|
-
shell_1.pubsub.publish('connection-state', {
|
|
57
|
-
connectionState: Object.assign(Object.assign({}, connection), { state: connection_manager_1.ConnectionManager.getConnectionInstance(connection)
|
|
58
|
-
? connection_type_1.ConnectionStatus.CONNECTED
|
|
59
|
-
: connection_type_1.ConnectionStatus.DISCONNECTED, timestamp: new Date() })
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
return (0, graphql_subscriptions_1.withFilter)(() => shell_1.pubsub.asyncIterator('connection-state'), (payload, variables, context, info) => {
|
|
64
|
-
const { domain: pdomain, name: pname } = payload.connectionState;
|
|
65
|
-
const { name } = variables;
|
|
66
|
-
return (!name || name === pname) && subdomain === (pdomain === null || pdomain === void 0 ? void 0 : pdomain.subdomain);
|
|
67
|
-
})(_, args, context, info);
|
|
68
|
-
}
|
|
69
|
-
}),
|
|
70
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
71
|
-
__param(1, (0, type_graphql_1.Arg)('name', { nullable: true })),
|
|
72
|
-
__metadata("design:type", Function),
|
|
73
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
74
|
-
__metadata("design:returntype", connection_type_1.ConnectionState)
|
|
75
|
-
], ConnectionSubscription.prototype, "connectionState", null);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, type_graphql_1.Subscription)({
|
|
78
|
-
subscribe: (_, args, context, info) => {
|
|
79
|
-
var _a;
|
|
80
|
-
const { domain, user } = context.state;
|
|
81
|
-
const { level } = args;
|
|
82
|
-
const subdomain = domain === null || domain === void 0 ? void 0 : domain.subdomain;
|
|
83
|
-
debug('subscribe', subdomain);
|
|
84
|
-
if (!domain) {
|
|
85
|
-
throw new Error('domain required');
|
|
86
|
-
}
|
|
87
|
-
if (!((_a = user.domains) === null || _a === void 0 ? void 0 : _a.find(d => d.subdomain === subdomain))) {
|
|
88
|
-
throw new Error(`domain(${subdomain}) is not working for user(${user.email}).`);
|
|
89
|
-
}
|
|
90
|
-
return (0, graphql_subscriptions_1.withFilter)(() => shell_1.pubsub.asyncIterator('connection-log'), (payload, variables, context, info) => {
|
|
91
|
-
// TODO support domain filtering
|
|
92
|
-
const { /* source, */ level: plevel } = payload.connectionLog;
|
|
93
|
-
// const { domain: pdomain } = source
|
|
94
|
-
// if (subdomain !== pdomain?.subdomain) {
|
|
95
|
-
// return false
|
|
96
|
-
// }
|
|
97
|
-
if (level && level !== plevel) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
return true;
|
|
101
|
-
})(_, args, context, info);
|
|
102
|
-
}
|
|
103
|
-
}),
|
|
104
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
105
|
-
__param(1, (0, type_graphql_1.Arg)('level', { nullable: true })),
|
|
106
|
-
__metadata("design:type", Function),
|
|
107
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
108
|
-
__metadata("design:returntype", typeof (_a = typeof shell_1.Log !== "undefined" && shell_1.Log) === "function" ? _a : Object)
|
|
109
|
-
], ConnectionSubscription.prototype, "connectionLog", null);
|
|
110
|
-
ConnectionSubscription = __decorate([
|
|
111
|
-
(0, type_graphql_1.Resolver)(connection_type_1.Connection)
|
|
112
|
-
], ConnectionSubscription);
|
|
113
|
-
exports.ConnectionSubscription = ConnectionSubscription;
|
|
114
|
-
//# sourceMappingURL=connection-subscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-subscription.js","sourceRoot":"","sources":["../../../server/service/connection/connection-subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,qCAAuC;AACvC,uDAAiF;AACjF,iDAAmD;AACnD,i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E,CAAC,CAAA;;;wDAAiB,WAAG,oBAAH,WAAG;2DAEjG;AAjGU,sBAAsB;IADlC,IAAA,uBAAQ,EAAC,4BAAU,CAAC;GACR,sBAAsB,CAkGlC;AAlGY,wDAAsB"}
|
|
@@ -1,253 +0,0 @@
|
|
|
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 _a, _b, _c, _d;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ConnectionList = exports.ConnectionPatch = exports.NewConnection = exports.ConnectionState = exports.Connection = exports.ConnectionStatus = void 0;
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const type_graphql_1 = require("type-graphql");
|
|
16
|
-
const shell_1 = require("@things-factory/shell");
|
|
17
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
|
-
const engine_1 = require("../../engine");
|
|
19
|
-
var ConnectionStatus;
|
|
20
|
-
(function (ConnectionStatus) {
|
|
21
|
-
ConnectionStatus["CONNECTED"] = "CONNECTED";
|
|
22
|
-
ConnectionStatus["DISCONNECTED"] = "DISCONNECTED";
|
|
23
|
-
})(ConnectionStatus = exports.ConnectionStatus || (exports.ConnectionStatus = {}));
|
|
24
|
-
(0, type_graphql_1.registerEnumType)(ConnectionStatus, {
|
|
25
|
-
name: 'ConnectionStatus',
|
|
26
|
-
description: 'state enumeration of a connection'
|
|
27
|
-
});
|
|
28
|
-
let Connection = class Connection {
|
|
29
|
-
async connect() {
|
|
30
|
-
var connector = engine_1.ConnectionManager.getConnector(this.type);
|
|
31
|
-
var params = {};
|
|
32
|
-
try {
|
|
33
|
-
params = JSON.parse(this.params || '{}');
|
|
34
|
-
}
|
|
35
|
-
catch (ex) {
|
|
36
|
-
console.error(`connection '${this.name}' params should be JSON format`, ex);
|
|
37
|
-
}
|
|
38
|
-
await connector.connect(Object.assign(Object.assign({}, this), { params }));
|
|
39
|
-
}
|
|
40
|
-
async disconnect() {
|
|
41
|
-
try {
|
|
42
|
-
var connector = engine_1.ConnectionManager.getConnector(this.type);
|
|
43
|
-
await connector.disconnect(this);
|
|
44
|
-
}
|
|
45
|
-
finally {
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
51
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], Connection.prototype, "id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
56
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
58
|
-
], Connection.prototype, "domain", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.RelationId)((connection) => connection.domain),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], Connection.prototype, "domainId", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)(),
|
|
65
|
-
(0, type_graphql_1.Field)(),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], Connection.prototype, "name", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({
|
|
70
|
-
nullable: true
|
|
71
|
-
}),
|
|
72
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], Connection.prototype, "description", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)(),
|
|
77
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], Connection.prototype, "type", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)(),
|
|
82
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], Connection.prototype, "endpoint", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({
|
|
87
|
-
nullable: true
|
|
88
|
-
}),
|
|
89
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
90
|
-
__metadata("design:type", Boolean)
|
|
91
|
-
], Connection.prototype, "active", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
|
-
], Connection.prototype, "state", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({
|
|
98
|
-
nullable: true
|
|
99
|
-
}),
|
|
100
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], Connection.prototype, "params", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
105
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
106
|
-
__metadata("design:type", Date)
|
|
107
|
-
], Connection.prototype, "createdAt", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
110
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
111
|
-
__metadata("design:type", Date)
|
|
112
|
-
], Connection.prototype, "updatedAt", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
115
|
-
nullable: true
|
|
116
|
-
}),
|
|
117
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
118
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
119
|
-
], Connection.prototype, "creator", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, typeorm_1.RelationId)((connection) => connection.creator),
|
|
122
|
-
__metadata("design:type", String)
|
|
123
|
-
], Connection.prototype, "creatorId", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
126
|
-
nullable: true
|
|
127
|
-
}),
|
|
128
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
129
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
130
|
-
], Connection.prototype, "updater", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, typeorm_1.RelationId)((connection) => connection.creator),
|
|
133
|
-
__metadata("design:type", String)
|
|
134
|
-
], Connection.prototype, "updaterId", void 0);
|
|
135
|
-
Connection = __decorate([
|
|
136
|
-
(0, typeorm_1.Entity)(),
|
|
137
|
-
(0, typeorm_1.Index)('ix_connection_0', (connection) => [connection.domain, connection.name], { unique: true }),
|
|
138
|
-
(0, type_graphql_1.ObjectType)()
|
|
139
|
-
], Connection);
|
|
140
|
-
exports.Connection = Connection;
|
|
141
|
-
let ConnectionState = class ConnectionState {
|
|
142
|
-
};
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
145
|
-
__metadata("design:type", typeof (_d = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _d : Object)
|
|
146
|
-
], ConnectionState.prototype, "domain", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], ConnectionState.prototype, "id", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
153
|
-
__metadata("design:type", String)
|
|
154
|
-
], ConnectionState.prototype, "name", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
157
|
-
__metadata("design:type", String)
|
|
158
|
-
], ConnectionState.prototype, "description", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
161
|
-
__metadata("design:type", String)
|
|
162
|
-
], ConnectionState.prototype, "type", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
-
__metadata("design:type", String)
|
|
166
|
-
], ConnectionState.prototype, "state", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
169
|
-
__metadata("design:type", Date)
|
|
170
|
-
], ConnectionState.prototype, "timestamp", void 0);
|
|
171
|
-
ConnectionState = __decorate([
|
|
172
|
-
(0, type_graphql_1.ObjectType)()
|
|
173
|
-
], ConnectionState);
|
|
174
|
-
exports.ConnectionState = ConnectionState;
|
|
175
|
-
let NewConnection = class NewConnection {
|
|
176
|
-
};
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, type_graphql_1.Field)(),
|
|
179
|
-
__metadata("design:type", String)
|
|
180
|
-
], NewConnection.prototype, "name", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
183
|
-
__metadata("design:type", String)
|
|
184
|
-
], NewConnection.prototype, "description", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
187
|
-
__metadata("design:type", String)
|
|
188
|
-
], NewConnection.prototype, "type", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
191
|
-
__metadata("design:type", String)
|
|
192
|
-
], NewConnection.prototype, "endpoint", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
195
|
-
__metadata("design:type", String)
|
|
196
|
-
], NewConnection.prototype, "params", void 0);
|
|
197
|
-
NewConnection = __decorate([
|
|
198
|
-
(0, type_graphql_1.InputType)()
|
|
199
|
-
], NewConnection);
|
|
200
|
-
exports.NewConnection = NewConnection;
|
|
201
|
-
let ConnectionPatch = class ConnectionPatch {
|
|
202
|
-
};
|
|
203
|
-
__decorate([
|
|
204
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
205
|
-
__metadata("design:type", String)
|
|
206
|
-
], ConnectionPatch.prototype, "id", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
209
|
-
__metadata("design:type", String)
|
|
210
|
-
], ConnectionPatch.prototype, "name", void 0);
|
|
211
|
-
__decorate([
|
|
212
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
213
|
-
__metadata("design:type", String)
|
|
214
|
-
], ConnectionPatch.prototype, "description", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
217
|
-
__metadata("design:type", String)
|
|
218
|
-
], ConnectionPatch.prototype, "type", void 0);
|
|
219
|
-
__decorate([
|
|
220
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
221
|
-
__metadata("design:type", String)
|
|
222
|
-
], ConnectionPatch.prototype, "endpoint", void 0);
|
|
223
|
-
__decorate([
|
|
224
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
225
|
-
__metadata("design:type", Boolean)
|
|
226
|
-
], ConnectionPatch.prototype, "active", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
229
|
-
__metadata("design:type", String)
|
|
230
|
-
], ConnectionPatch.prototype, "params", void 0);
|
|
231
|
-
__decorate([
|
|
232
|
-
(0, type_graphql_1.Field)(),
|
|
233
|
-
__metadata("design:type", String)
|
|
234
|
-
], ConnectionPatch.prototype, "cuFlag", void 0);
|
|
235
|
-
ConnectionPatch = __decorate([
|
|
236
|
-
(0, type_graphql_1.InputType)()
|
|
237
|
-
], ConnectionPatch);
|
|
238
|
-
exports.ConnectionPatch = ConnectionPatch;
|
|
239
|
-
let ConnectionList = class ConnectionList {
|
|
240
|
-
};
|
|
241
|
-
__decorate([
|
|
242
|
-
(0, type_graphql_1.Field)(type => [Connection]),
|
|
243
|
-
__metadata("design:type", Array)
|
|
244
|
-
], ConnectionList.prototype, "items", void 0);
|
|
245
|
-
__decorate([
|
|
246
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
247
|
-
__metadata("design:type", Number)
|
|
248
|
-
], ConnectionList.prototype, "total", void 0);
|
|
249
|
-
ConnectionList = __decorate([
|
|
250
|
-
(0, type_graphql_1.ObjectType)()
|
|
251
|
-
], ConnectionList);
|
|
252
|
-
exports.ConnectionList = ConnectionList;
|
|
253
|
-
//# sourceMappingURL=connection-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-type.js","sourceRoot":"","sources":["../../../server/service/connection/connection-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCASgB;AAChB,+CAAsF;AAEtF,iDAA8C;AAC9C,yDAAgD;AAChD,yCAAgD;AAEhD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB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AAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;;6CACT;AAEnB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;6CACN;AALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const connection_type_1 = require("./connection-type");
|
|
5
|
-
const connection_query_1 = require("./connection-query");
|
|
6
|
-
const connection_mutation_1 = require("./connection-mutation");
|
|
7
|
-
const connection_subscription_1 = require("./connection-subscription");
|
|
8
|
-
exports.entities = [connection_type_1.Connection];
|
|
9
|
-
exports.resolvers = [connection_query_1.ConnectionQuery, connection_mutation_1.ConnectionMutation, connection_subscription_1.ConnectionSubscription];
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,88 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ConnectorQuery = void 0;
|
|
16
|
-
const type_graphql_1 = require("type-graphql");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const connection_type_1 = require("../connection/connection-type");
|
|
19
|
-
const connector_type_1 = require("./connector-type");
|
|
20
|
-
const connection_manager_1 = require("../../engine/connection-manager");
|
|
21
|
-
let ConnectorQuery = class ConnectorQuery {
|
|
22
|
-
async connection(name, context) {
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
const { description, help, parameterSpec, taskPrefixes } = connection_manager_1.ConnectionManager.getConnector(name) || {};
|
|
25
|
-
return {
|
|
26
|
-
name,
|
|
27
|
-
description,
|
|
28
|
-
help,
|
|
29
|
-
parameterSpec,
|
|
30
|
-
taskPrefixes: taskPrefixes || []
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
async connectors() {
|
|
34
|
-
var connectors = connection_manager_1.ConnectionManager.getConnectors();
|
|
35
|
-
var items = Object.keys(connectors)
|
|
36
|
-
.map(name => {
|
|
37
|
-
var connector = connectors[name];
|
|
38
|
-
return {
|
|
39
|
-
name,
|
|
40
|
-
description: connector.description,
|
|
41
|
-
help: connector.help,
|
|
42
|
-
parameterSpec: connector.parameterSpec,
|
|
43
|
-
taskPrefixes: connector.taskPrefixes || []
|
|
44
|
-
};
|
|
45
|
-
})
|
|
46
|
-
.sort((x, y) => {
|
|
47
|
-
return x.name < y.name ? -1 : 1;
|
|
48
|
-
});
|
|
49
|
-
return {
|
|
50
|
-
items,
|
|
51
|
-
total: items.length
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
async connectorByConnection(connectionName, context) {
|
|
55
|
-
const { domain } = context.state;
|
|
56
|
-
var connection = await (0, typeorm_1.getRepository)(connection_type_1.Connection).findOne({
|
|
57
|
-
where: { domain, name: connectionName }
|
|
58
|
-
});
|
|
59
|
-
return connection && connection_manager_1.ConnectionManager.getConnector(connection.type);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
__decorate([
|
|
63
|
-
(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)
|
|
69
|
-
], ConnectorQuery.prototype, "connection", null);
|
|
70
|
-
__decorate([
|
|
71
|
-
(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)
|
|
75
|
-
], ConnectorQuery.prototype, "connectors", null);
|
|
76
|
-
__decorate([
|
|
77
|
-
(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)
|
|
83
|
-
], ConnectorQuery.prototype, "connectorByConnection", null);
|
|
84
|
-
ConnectorQuery = __decorate([
|
|
85
|
-
(0, type_graphql_1.Resolver)(connector_type_1.ConnectorType)
|
|
86
|
-
], ConnectorQuery);
|
|
87
|
-
exports.ConnectorQuery = ConnectorQuery;
|
|
88
|
-
//# sourceMappingURL=connector-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAG5D,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,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;IAGK,AAAN,KAAK,CAAC,UAAU;QACd,IAAI,UAAU,GAAG,sCAAiB,CAAC,aAAa,EAAE,CAAA;QAClD,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;aAChC,GAAG,CAAC,IAAI,CAAC,EAAE;YACV,IAAI,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;YAChC,OAAO;gBACL,IAAI;gBACJ,WAAW,EAAE,SAAS,CAAC,WAAW;gBAClC,IAAI,EAAE,SAAS,CAAC,IAAI;gBACpB,aAAa,EAAE,SAAS,CAAC,aAAa;gBACtC,YAAY,EAAE,SAAS,CAAC,YAAY,IAAI,EAAE;aAC3C,CAAA;QACH,CAAC,CAAC;aACD,IAAI,CAAC,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c,CAoD1B;AApDY,wCAAc"}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ConnectorList = exports.ConnectorType = void 0;
|
|
13
|
-
const type_graphql_1 = require("type-graphql");
|
|
14
|
-
const property_spec_1 = require("../property-spec");
|
|
15
|
-
let ConnectorType = class ConnectorType {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, type_graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], ConnectorType.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ConnectorType.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ConnectorType.prototype, "help", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, type_graphql_1.Field)(type => [property_spec_1.PropertySpec], { nullable: true }),
|
|
31
|
-
__metadata("design:type", Array)
|
|
32
|
-
], ConnectorType.prototype, "parameterSpec", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
35
|
-
__metadata("design:type", Array)
|
|
36
|
-
], ConnectorType.prototype, "taskPrefixes", void 0);
|
|
37
|
-
ConnectorType = __decorate([
|
|
38
|
-
(0, type_graphql_1.ObjectType)()
|
|
39
|
-
], ConnectorType);
|
|
40
|
-
exports.ConnectorType = ConnectorType;
|
|
41
|
-
let ConnectorList = class ConnectorList {
|
|
42
|
-
};
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, type_graphql_1.Field)(type => [ConnectorType]),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], ConnectorList.prototype, "items", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], ConnectorList.prototype, "total", void 0);
|
|
51
|
-
ConnectorList = __decorate([
|
|
52
|
-
(0, type_graphql_1.ObjectType)()
|
|
53
|
-
], ConnectorList);
|
|
54
|
-
exports.ConnectorList = ConnectorList;
|
|
55
|
-
//# sourceMappingURL=connector-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector-type.js","sourceRoot":"","sources":["../../../server/service/connector/connector-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAqD;AACrD,oDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAezB,CAAA;AAdC;IAAC,IAAA,oBAAK,GAAE;;2CACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACrB;AAE7B;IAAC,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;AAkBnB,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC;;4CACT;AAEtB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;AALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB;AANY,sCAAa"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const connector_query_1 = require("./connector-query");
|
|
5
|
-
exports.entities = [];
|
|
6
|
-
exports.resolvers = [connector_query_1.ConnectorQuery];
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,81 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.WebhookEvent = exports.Webhook = exports.WebhookEventsEnum = exports.webhookHandler = exports.createPayloadLog = exports.PayloadType = exports.schema = exports.entities = void 0;
|
|
18
|
-
const connection_1 = require("./connection");
|
|
19
|
-
const connector_1 = require("./connector");
|
|
20
|
-
const integration_1 = require("./integration");
|
|
21
|
-
const payload_log_1 = require("./payload-log");
|
|
22
|
-
const scenario_1 = require("./scenario");
|
|
23
|
-
const scenario_instance_1 = require("./scenario-instance");
|
|
24
|
-
const scenario_queue_1 = require("./scenario-queue");
|
|
25
|
-
const step_1 = require("./step");
|
|
26
|
-
const task_type_1 = require("./task-type");
|
|
27
|
-
const webhook_1 = require("./webhook");
|
|
28
|
-
const webhook_event_1 = require("./webhook-event");
|
|
29
|
-
__exportStar(require("./property-spec"), exports);
|
|
30
|
-
__exportStar(require("./task-type/task-type-type"), exports);
|
|
31
|
-
__exportStar(require("./connector/connector-type"), exports);
|
|
32
|
-
__exportStar(require("./connection/connection-type"), exports);
|
|
33
|
-
__exportStar(require("./scenario/scenario-type"), exports);
|
|
34
|
-
__exportStar(require("./scenario-instance/scenario-instance-type"), exports);
|
|
35
|
-
__exportStar(require("./scenario-queue/scenario-queue-type"), exports);
|
|
36
|
-
__exportStar(require("./step/step-type"), exports);
|
|
37
|
-
__exportStar(require("./scenario-flow/scenario-flow"), exports);
|
|
38
|
-
__exportStar(require("./payload-log/payload-log"), exports);
|
|
39
|
-
__exportStar(require("./integration/integration"), exports);
|
|
40
|
-
__exportStar(require("./webhook/webhook"), exports);
|
|
41
|
-
exports.entities = [
|
|
42
|
-
...task_type_1.entities,
|
|
43
|
-
...connector_1.entities,
|
|
44
|
-
...connection_1.entities,
|
|
45
|
-
...scenario_1.entities,
|
|
46
|
-
...scenario_instance_1.entities,
|
|
47
|
-
...scenario_queue_1.entities,
|
|
48
|
-
...step_1.entities,
|
|
49
|
-
...payload_log_1.entities,
|
|
50
|
-
...integration_1.entities,
|
|
51
|
-
...webhook_1.entities,
|
|
52
|
-
...webhook_event_1.entities
|
|
53
|
-
];
|
|
54
|
-
exports.schema = {
|
|
55
|
-
resolverClasses: [
|
|
56
|
-
...task_type_1.resolvers,
|
|
57
|
-
...connector_1.resolvers,
|
|
58
|
-
...connection_1.resolvers,
|
|
59
|
-
...scenario_1.resolvers,
|
|
60
|
-
...scenario_instance_1.resolvers,
|
|
61
|
-
...scenario_queue_1.resolvers,
|
|
62
|
-
...step_1.resolvers,
|
|
63
|
-
...payload_log_1.resolvers,
|
|
64
|
-
...integration_1.resolvers,
|
|
65
|
-
...webhook_1.resolvers,
|
|
66
|
-
...webhook_event_1.resolvers
|
|
67
|
-
]
|
|
68
|
-
};
|
|
69
|
-
var payload_log_2 = require("./payload-log/payload-log");
|
|
70
|
-
Object.defineProperty(exports, "PayloadType", { enumerable: true, get: function () { return payload_log_2.PayloadType; } });
|
|
71
|
-
var payload_log_mutation_1 = require("./payload-log/payload-log-mutation");
|
|
72
|
-
Object.defineProperty(exports, "createPayloadLog", { enumerable: true, get: function () { return payload_log_mutation_1.createPayloadLog; } });
|
|
73
|
-
var webhook_controller_1 = require("./webhook-handler/webhook-controller");
|
|
74
|
-
Object.defineProperty(exports, "webhookHandler", { enumerable: true, get: function () { return webhook_controller_1.webhookHandler; } });
|
|
75
|
-
var webhook_event_enums_1 = require("./webhook-event/webhook-event-enums");
|
|
76
|
-
Object.defineProperty(exports, "WebhookEventsEnum", { enumerable: true, get: function () { return webhook_event_enums_1.WebhookEventsEnum; } });
|
|
77
|
-
var webhook_2 = require("./webhook/webhook");
|
|
78
|
-
Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_2.Webhook; } });
|
|
79
|
-
var webhook_event_2 = require("./webhook-event/webhook-event");
|
|
80
|
-
Object.defineProperty(exports, "WebhookEvent", { enumerable: true, get: function () { return webhook_event_2.WebhookEvent; } });
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA+F;AAC/F,2CAA4F;AAC5F,+CAAkG;AAClG,+CAAgG;AAChG,yCAAyF;AACzF,2DAAkH;AAClH,qDAAyG;AACzG,iCAA6E;AAC7E,2CAA0F;AAC1F,uCAAsF;AACtF,mDAAsG;AAEtG,kDAA+B;AAC/B,6DAA0C;AAC1C,6DAA0C;AAC1C,+DAA4C;AAC5C,2DAAwC;AACxC,6EAA0D;AAC1D,uEAAoD;AACpD,mDAAgC;AAChC,gEAA6C;AAC7C,4DAAyC;AACzC,4DAAyC;AACzC,oDAAiC;AAEpB,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;IACrB,GAAG,sBAAmB;IACtB,GAAG,kBAAe;IAClB,GAAG,wBAAoB;CACxB,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;QACtB,GAAG,uBAAoB;QACvB,GAAG,mBAAgB;QACnB,GAAG,yBAAqB;KACzB;CACF,CAAA;AAED,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AACpB,2EAAqE;AAA5D,wHAAA,gBAAgB,OAAA;AACzB,2EAAqE;AAA5D,oHAAA,cAAc,OAAA;AACvB,2EAAuE;AAA9D,wHAAA,iBAAiB,OAAA;AAC1B,6CAA2C;AAAlC,kGAAA,OAAO,OAAA;AAChB,+DAA4D;AAAnD,6GAAA,YAAY,OAAA"}
|