@things-factory/shell 4.0.22 → 4.0.26
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/client/hot-client/hot.js +140 -0
- package/client/hot-client/index.js +103 -0
- package/client/hot-client/log.js +44 -0
- package/client/hot-client/socket.js +63 -0
- package/dist-server/server-dev.js +4 -2
- package/dist-server/server-dev.js.map +1 -1
- package/dist-server/webpack/koa-webpack/client.js +24 -0
- package/dist-server/webpack/koa-webpack/client.js.map +1 -0
- package/dist-server/webpack/koa-webpack/index.js +58 -0
- package/dist-server/webpack/koa-webpack/index.js.map +1 -0
- package/dist-server/webpack/koa-webpack/middleware.js +42 -0
- package/dist-server/webpack/koa-webpack/middleware.js.map +1 -0
- package/dist-server/webpack/koa-webpack/validate.js +26 -0
- package/dist-server/webpack/koa-webpack/validate.js.map +1 -0
- package/package.json +13 -11
- package/server/server-dev.ts +4 -2
- package/server/webpack/koa-webpack/client.ts +26 -0
- package/server/webpack/koa-webpack/index.ts +71 -0
- package/server/webpack/koa-webpack/middleware.ts +47 -0
- package/server/webpack/koa-webpack/validate.ts +27 -0
- package/dist-server/entities/domain.js +0 -97
- package/dist-server/entities/domain.js.map +0 -1
- package/dist-server/entities/index.js +0 -7
- package/dist-server/entities/index.js.map +0 -1
- package/dist-server/graphql/index.js +0 -30
- package/dist-server/graphql/index.js.map +0 -1
- package/dist-server/graphql/resolvers/data/index.js +0 -25
- package/dist-server/graphql/resolvers/data/index.js.map +0 -1
- package/dist-server/graphql/resolvers/data/subscribe-data.js +0 -34
- package/dist-server/graphql/resolvers/data/subscribe-data.js.map +0 -1
- package/dist-server/graphql/resolvers/domain/domain-mutation.js +0 -45
- package/dist-server/graphql/resolvers/domain/domain-mutation.js.map +0 -1
- package/dist-server/graphql/resolvers/domain/domain-query.js +0 -19
- package/dist-server/graphql/resolvers/domain/domain-query.js.map +0 -1
- package/dist-server/graphql/resolvers/domain/index.js +0 -15
- package/dist-server/graphql/resolvers/domain/index.js.map +0 -1
- package/dist-server/graphql/resolvers/index.js +0 -27
- package/dist-server/graphql/resolvers/index.js.map +0 -1
- package/dist-server/graphql/resolvers/transaction/directive-transaction.js +0 -25
- package/dist-server/graphql/resolvers/transaction/directive-transaction.js.map +0 -1
- package/dist-server/graphql/resolvers/transaction/index.js +0 -14
- package/dist-server/graphql/resolvers/transaction/index.js.map +0 -1
- package/dist-server/graphql/types/data/data.js +0 -15
- package/dist-server/graphql/types/data/data.js.map +0 -1
- package/dist-server/graphql/types/data/index.js +0 -24
- package/dist-server/graphql/types/data/index.js.map +0 -1
- package/dist-server/graphql/types/domain/domain-input.js +0 -14
- package/dist-server/graphql/types/domain/domain-input.js.map +0 -1
- package/dist-server/graphql/types/domain/domain-list.js +0 -14
- package/dist-server/graphql/types/domain/domain-list.js.map +0 -1
- package/dist-server/graphql/types/domain/domain-patch.js +0 -22
- package/dist-server/graphql/types/domain/domain-patch.js.map +0 -1
- package/dist-server/graphql/types/domain/domain.js +0 -26
- package/dist-server/graphql/types/domain/domain.js.map +0 -1
- package/dist-server/graphql/types/domain/index.js +0 -42
- package/dist-server/graphql/types/domain/index.js.map +0 -1
- package/dist-server/graphql/types/domain/new-domain.js +0 -22
- package/dist-server/graphql/types/domain/new-domain.js.map +0 -1
- package/dist-server/graphql/types/filter.js +0 -16
- package/dist-server/graphql/types/filter.js.map +0 -1
- package/dist-server/graphql/types/index.js +0 -25
- package/dist-server/graphql/types/index.js.map +0 -1
- package/dist-server/graphql/types/list-param.js +0 -15
- package/dist-server/graphql/types/list-param.js.map +0 -1
- package/dist-server/graphql/types/log.js +0 -16
- package/dist-server/graphql/types/log.js.map +0 -1
- package/dist-server/graphql/types/object-ref.js +0 -15
- package/dist-server/graphql/types/object-ref.js.map +0 -1
- package/dist-server/graphql/types/pagination.js +0 -14
- package/dist-server/graphql/types/pagination.js.map +0 -1
- package/dist-server/graphql/types/scalar-any.js +0 -36
- package/dist-server/graphql/types/scalar-any.js.map +0 -1
- package/dist-server/graphql/types/scalar-date.js +0 -28
- package/dist-server/graphql/types/scalar-date.js.map +0 -1
- package/dist-server/graphql/types/scalar-object.js +0 -25
- package/dist-server/graphql/types/scalar-object.js.map +0 -1
- package/dist-server/graphql/types/sorting.js +0 -14
- package/dist-server/graphql/types/sorting.js.map +0 -1
- package/dist-server/graphql/types/transaction/index.js +0 -11
- package/dist-server/graphql/types/transaction/index.js.map +0 -1
package/server/server-dev.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
// @prettier-ignore
|
1
2
|
process.env.NODE_ENV = 'development'
|
2
3
|
process.setMaxListeners(0)
|
4
|
+
/** Never move following lines */
|
3
5
|
|
4
6
|
import { ConnectionContext, SubscriptionServer } from 'subscriptions-transport-ws'
|
5
7
|
import { config, loader, logger, orderedModuleNames } from '@things-factory/env'
|
@@ -20,7 +22,7 @@ import { historyApiFallback } from 'koa2-connect-history-api-fallback'
|
|
20
22
|
import ip from 'koa-ip'
|
21
23
|
import koaBodyParser from 'koa-bodyparser'
|
22
24
|
import koaStatic from 'koa-static'
|
23
|
-
import koaWebpack from 'koa-webpack'
|
25
|
+
import koaWebpack from '@hatiolab/koa-webpack'
|
24
26
|
import { schema } from './schema'
|
25
27
|
|
26
28
|
const debug = require('debug')('things-factory:shell:server-dev')
|
@@ -192,7 +194,7 @@ const bootstrap = async () => {
|
|
192
194
|
})
|
193
195
|
|
194
196
|
// only for development mode. triggered after webpack compilation is done.
|
195
|
-
compiler.
|
197
|
+
compiler.hooks.done.tap({ name: 'server-dev' }, stats => {
|
196
198
|
process.emit('client-rebuilt' as any, app, compiler.outputFileSystem)
|
197
199
|
})
|
198
200
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*
|
2
|
+
Copyright © 2016 Andrew Powell
|
3
|
+
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
6
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be
|
9
|
+
included in all copies or substantial portions of this Source Code Form.
|
10
|
+
*/
|
11
|
+
const webpackHotClient = require('@hatiolab/webpack-hot-client')
|
12
|
+
|
13
|
+
module.exports = {
|
14
|
+
getClient(compiler, options) {
|
15
|
+
if (!options.hotClient) {
|
16
|
+
return Promise.resolve(null)
|
17
|
+
}
|
18
|
+
|
19
|
+
return new Promise(resolve => {
|
20
|
+
const client = webpackHotClient(compiler, options.hotClient)
|
21
|
+
const { server } = client
|
22
|
+
|
23
|
+
server.on('listening', () => resolve(client))
|
24
|
+
})
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/*
|
2
|
+
Copyright © 2016 Andrew Powell
|
3
|
+
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
6
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be
|
9
|
+
included in all copies or substantial portions of this Source Code Form.
|
10
|
+
*/
|
11
|
+
const { join } = require('path')
|
12
|
+
|
13
|
+
const root = require('app-root-path')
|
14
|
+
const chalk = require('chalk')
|
15
|
+
const webpack = require('webpack')
|
16
|
+
const webpackDevMiddleware = require('webpack-dev-middleware')
|
17
|
+
|
18
|
+
const { getClient } = require('./client')
|
19
|
+
const { getMiddleware } = require('./middleware')
|
20
|
+
const { validate } = require('./validate')
|
21
|
+
|
22
|
+
const defaults = { devMiddleware: {}, hotClient: {} }
|
23
|
+
|
24
|
+
export default async opts => {
|
25
|
+
const valid = validate(opts)
|
26
|
+
|
27
|
+
if (valid.error) {
|
28
|
+
const { error } = console
|
29
|
+
error(chalk.red('⬢ koa-webpack:'), 'An option was passed to koa-webpack that is not valid')
|
30
|
+
throw valid.error
|
31
|
+
}
|
32
|
+
|
33
|
+
const options = Object.assign({}, defaults, opts)
|
34
|
+
|
35
|
+
let { compiler, config } = options
|
36
|
+
|
37
|
+
if (!compiler) {
|
38
|
+
if (!config) {
|
39
|
+
// eslint-disable-next-line import/no-dynamic-require, global-require
|
40
|
+
config = require(options.configPath || join(root.path, 'webpack.config.js'))
|
41
|
+
}
|
42
|
+
|
43
|
+
compiler = webpack(config)
|
44
|
+
}
|
45
|
+
|
46
|
+
if (!options.devMiddleware.publicPath) {
|
47
|
+
const { publicPath } = compiler.options.output
|
48
|
+
|
49
|
+
if (!publicPath) {
|
50
|
+
throw new Error(
|
51
|
+
"koa-webpack: publicPath must be set on `dev` options, or in a compiler's `output` configuration."
|
52
|
+
)
|
53
|
+
}
|
54
|
+
|
55
|
+
options.devMiddleware.publicPath = publicPath
|
56
|
+
}
|
57
|
+
|
58
|
+
const hotClient = await getClient(compiler, options)
|
59
|
+
const devMiddleware = webpackDevMiddleware(compiler, options.devMiddleware)
|
60
|
+
const middleware = getMiddleware(compiler, devMiddleware)
|
61
|
+
const close = callback => {
|
62
|
+
const next = hotClient ? () => hotClient.close(callback) : callback
|
63
|
+
devMiddleware.close(next)
|
64
|
+
}
|
65
|
+
|
66
|
+
return Object.assign(middleware, {
|
67
|
+
hotClient,
|
68
|
+
devMiddleware,
|
69
|
+
close
|
70
|
+
})
|
71
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/*
|
2
|
+
Copyright © 2016 Andrew Powell
|
3
|
+
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
6
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be
|
9
|
+
included in all copies or substantial portions of this Source Code Form.
|
10
|
+
*/
|
11
|
+
module.exports = {
|
12
|
+
getMiddleware(compiler, devMiddleware) {
|
13
|
+
return (context, next) => {
|
14
|
+
// wait for webpack-dev-middleware to signal that the build is ready
|
15
|
+
const ready = new Promise((resolve, reject) => {
|
16
|
+
for (const comp of [].concat(compiler.compilers || compiler)) {
|
17
|
+
comp.hooks.failed.tap('KoaWebpack', error => {
|
18
|
+
reject(error)
|
19
|
+
})
|
20
|
+
}
|
21
|
+
|
22
|
+
devMiddleware.waitUntilValid(() => {
|
23
|
+
resolve(true)
|
24
|
+
})
|
25
|
+
})
|
26
|
+
// tell webpack-dev-middleware to handle the request
|
27
|
+
const init = new Promise(resolve => {
|
28
|
+
devMiddleware(
|
29
|
+
context.req,
|
30
|
+
{
|
31
|
+
end: content => {
|
32
|
+
// eslint-disable-next-line no-param-reassign
|
33
|
+
context.body = content
|
34
|
+
resolve(null)
|
35
|
+
},
|
36
|
+
getHeader: context.get.bind(context),
|
37
|
+
setHeader: context.set.bind(context),
|
38
|
+
locals: context.state
|
39
|
+
},
|
40
|
+
() => resolve(next())
|
41
|
+
)
|
42
|
+
})
|
43
|
+
|
44
|
+
return Promise.all([ready, init])
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*
|
2
|
+
Copyright © 2016 Andrew Powell
|
3
|
+
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
6
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be
|
9
|
+
included in all copies or substantial portions of this Source Code Form.
|
10
|
+
*/
|
11
|
+
const Joi = require('joi');
|
12
|
+
|
13
|
+
module.exports = {
|
14
|
+
validate(options) {
|
15
|
+
const keys = {
|
16
|
+
compiler: [Joi.object().allow(null)],
|
17
|
+
config: [Joi.object().allow(null)],
|
18
|
+
configPath: [Joi.string().allow(null)],
|
19
|
+
devMiddleware: [Joi.object()],
|
20
|
+
hotClient: [Joi.boolean(), Joi.object().allow(null)]
|
21
|
+
};
|
22
|
+
const schema = Joi.object().keys(keys);
|
23
|
+
const results = schema.validate(options);
|
24
|
+
|
25
|
+
return results;
|
26
|
+
}
|
27
|
+
};
|
@@ -1,97 +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.Domain = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Domain = class Domain {
|
15
|
-
};
|
16
|
-
__decorate([
|
17
|
-
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
18
|
-
__metadata("design:type", String)
|
19
|
-
], Domain.prototype, "id", void 0);
|
20
|
-
__decorate([
|
21
|
-
typeorm_1.Column({
|
22
|
-
unique: true
|
23
|
-
}),
|
24
|
-
__metadata("design:type", String)
|
25
|
-
], Domain.prototype, "name", void 0);
|
26
|
-
__decorate([
|
27
|
-
typeorm_1.Column({
|
28
|
-
nullable: true
|
29
|
-
}),
|
30
|
-
__metadata("design:type", String)
|
31
|
-
], Domain.prototype, "description", void 0);
|
32
|
-
__decorate([
|
33
|
-
typeorm_1.Column({
|
34
|
-
nullable: true
|
35
|
-
}),
|
36
|
-
__metadata("design:type", String)
|
37
|
-
], Domain.prototype, "extType", void 0);
|
38
|
-
__decorate([
|
39
|
-
typeorm_1.Column({
|
40
|
-
nullable: true
|
41
|
-
}),
|
42
|
-
__metadata("design:type", String)
|
43
|
-
], Domain.prototype, "timezone", void 0);
|
44
|
-
__decorate([
|
45
|
-
typeorm_1.Column({
|
46
|
-
default: false
|
47
|
-
}),
|
48
|
-
__metadata("design:type", Boolean)
|
49
|
-
], Domain.prototype, "systemFlag", void 0);
|
50
|
-
__decorate([
|
51
|
-
typeorm_1.Column({
|
52
|
-
nullable: true
|
53
|
-
}),
|
54
|
-
__metadata("design:type", String)
|
55
|
-
], Domain.prototype, "subdomain", void 0);
|
56
|
-
__decorate([
|
57
|
-
typeorm_1.Column({
|
58
|
-
nullable: true
|
59
|
-
}),
|
60
|
-
__metadata("design:type", String)
|
61
|
-
], Domain.prototype, "brandName", void 0);
|
62
|
-
__decorate([
|
63
|
-
typeorm_1.Column({
|
64
|
-
nullable: true
|
65
|
-
}),
|
66
|
-
__metadata("design:type", String)
|
67
|
-
], Domain.prototype, "brandImage", void 0);
|
68
|
-
__decorate([
|
69
|
-
typeorm_1.Column({
|
70
|
-
nullable: true
|
71
|
-
}),
|
72
|
-
__metadata("design:type", String)
|
73
|
-
], Domain.prototype, "contentImage", void 0);
|
74
|
-
__decorate([
|
75
|
-
typeorm_1.Column({ nullable: true }),
|
76
|
-
__metadata("design:type", String)
|
77
|
-
], Domain.prototype, "owner", void 0);
|
78
|
-
__decorate([
|
79
|
-
typeorm_1.Column({
|
80
|
-
nullable: true
|
81
|
-
}),
|
82
|
-
__metadata("design:type", String)
|
83
|
-
], Domain.prototype, "theme", void 0);
|
84
|
-
__decorate([
|
85
|
-
typeorm_1.CreateDateColumn(),
|
86
|
-
__metadata("design:type", Date)
|
87
|
-
], Domain.prototype, "createdAt", void 0);
|
88
|
-
__decorate([
|
89
|
-
typeorm_1.UpdateDateColumn(),
|
90
|
-
__metadata("design:type", Date)
|
91
|
-
], Domain.prototype, "updatedAt", void 0);
|
92
|
-
Domain = __decorate([
|
93
|
-
typeorm_1.Entity(),
|
94
|
-
typeorm_1.Index('ix_domain_0', (domain) => [domain.subdomain], { unique: true })
|
95
|
-
], Domain);
|
96
|
-
exports.Domain = Domain;
|
97
|
-
//# sourceMappingURL=domain.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../server/entities/domain.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2G;AAI3G,IAAa,MAAM,GAAnB,MAAa,MAAM;CA8DlB,CAAA;AA5DC;IADC,gCAAsB,CAAC,MAAM,CAAC;;kCACrB;AAKV;IAHC,gBAAM,CAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;oCACU;AAKZ;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;2CACiB;AAKnB;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;uCACa;AAKf;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;wCACc;AAKhB;IAHC,gBAAM,CAAC;QACN,OAAO,EAAE,KAAK;KACf,CAAC;;0CACiB;AAKnB;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;yCACe;AAKjB;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;yCACe;AAKjB;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACgB;AAKlB;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;4CACkB;AAGpB;IADC,gBAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACd;AAKb;IAHC,gBAAM,CAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACW;AAGb;IADC,0BAAgB,EAAE;8BACR,IAAI;yCAAA;AAGf;IADC,0BAAgB,EAAE;8BACR,IAAI;yCAAA;AA7DJ,MAAM;IAFlB,gBAAM,EAAE;IACR,eAAK,CAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAClE,MAAM,CA8DlB;AA9DY,wBAAM"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Domain = exports.entities = void 0;
|
4
|
-
const domain_1 = require("./domain");
|
5
|
-
Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return domain_1.Domain; } });
|
6
|
-
exports.entities = [domain_1.Domain];
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/entities/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAIxB,uFAJA,eAAM,OAIA;AAFF,QAAA,QAAQ,GAAG,CAAC,eAAM,CAAC,CAAA"}
|
@@ -1,30 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
-
}) : function(o, v) {
|
12
|
-
o["default"] = v;
|
13
|
-
});
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
-
if (mod && mod.__esModule) return mod;
|
16
|
-
var result = {};
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
-
__setModuleDefault(result, mod);
|
19
|
-
return result;
|
20
|
-
};
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
22
|
-
exports.schema = void 0;
|
23
|
-
const utils_1 = require("@things-factory/utils");
|
24
|
-
const resolvers = __importStar(require("./resolvers"));
|
25
|
-
const typeDefs = __importStar(require("./types"));
|
26
|
-
exports.schema = {
|
27
|
-
typeDefs,
|
28
|
-
resolvers: utils_1.deepMerge.apply(null, Object.values(resolvers))
|
29
|
-
};
|
30
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiD;AAEjD,uDAAwC;AACxC,kDAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,QAAQ;IACR,SAAS,EAAE,iBAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;CAC3D,CAAA"}
|
@@ -1,25 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
-
}) : function(o, v) {
|
12
|
-
o["default"] = v;
|
13
|
-
});
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
-
if (mod && mod.__esModule) return mod;
|
16
|
-
var result = {};
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
-
__setModuleDefault(result, mod);
|
19
|
-
return result;
|
20
|
-
};
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
22
|
-
exports.DataResolver = void 0;
|
23
|
-
const data = __importStar(require("./subscribe-data"));
|
24
|
-
exports.DataResolver = data;
|
25
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAwC;AAE3B,QAAA,YAAY,GAAG,IAAI,CAAA"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Subscription = void 0;
|
4
|
-
const pubsub_1 = require("../../../pubsub");
|
5
|
-
const graphql_subscriptions_1 = require("graphql-subscriptions");
|
6
|
-
const debug = require('debug')('things-factory:integraton-base:subscribe-data');
|
7
|
-
exports.Subscription = {
|
8
|
-
data: {
|
9
|
-
subscribe: (_, args, context, info) => {
|
10
|
-
var _a;
|
11
|
-
const { domain, user } = context.state;
|
12
|
-
const { tag } = args;
|
13
|
-
const subdomain = domain === null || domain === void 0 ? void 0 : domain.subdomain;
|
14
|
-
debug('subscribe', subdomain, tag);
|
15
|
-
if (!domain || !tag) {
|
16
|
-
throw new Error('domain and tag required');
|
17
|
-
}
|
18
|
-
if (!((_a = user.domains) === null || _a === void 0 ? void 0 : _a.find(d => d.subdomain === subdomain))) {
|
19
|
-
throw new Error(`domain(${subdomain}) is not working for user(${user.email}).`);
|
20
|
-
}
|
21
|
-
return graphql_subscriptions_1.withFilter(() => pubsub_1.pubsub.asyncIterator('data'), (payload, variables, context, info) => {
|
22
|
-
const { domain: pdomain, tag } = payload.data;
|
23
|
-
if (tag !== variables.tag) {
|
24
|
-
return false;
|
25
|
-
}
|
26
|
-
if (subdomain !== (pdomain === null || pdomain === void 0 ? void 0 : pdomain.subdomain)) {
|
27
|
-
return false;
|
28
|
-
}
|
29
|
-
return true;
|
30
|
-
})(_, args, context, info);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
};
|
34
|
-
//# sourceMappingURL=subscribe-data.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"subscribe-data.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/data/subscribe-data.ts"],"names":[],"mappings":";;;AAAA,4CAAwC;AACxC,iEAAkD;AAElD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,+CAA+C,CAAC,CAAA;AAElE,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;YACpC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;YACtC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;YACpB,MAAM,SAAS,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAA;YAEnC,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;YAElC,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE;gBACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;aAC3C;YAED,IAAI,QAAC,IAAI,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,EAAC,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,UAAU,SAAS,6BAA6B,IAAI,CAAC,KAAK,IAAI,CAAC,CAAA;aAChF;YAED,OAAO,kCAAU,CACf,GAAG,EAAE,CAAC,eAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAClC,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;gBACpC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAA;gBAE7C,IAAI,GAAG,KAAK,SAAS,CAAC,GAAG,EAAE;oBACzB,OAAO,KAAK,CAAA;iBACb;gBAED,IAAI,SAAS,MAAK,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAA,EAAE;oBACpC,OAAO,KAAK,CAAA;iBACb;gBAED,OAAO,IAAI,CAAA;YACb,CAAC,CACF,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;QAC3B,CAAC;KACF;CACF,CAAA"}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Mutation = void 0;
|
4
|
-
const typeorm_1 = require("typeorm");
|
5
|
-
const entities_1 = require("../../../entities");
|
6
|
-
const utils_1 = require("@things-factory/utils");
|
7
|
-
exports.Mutation = {
|
8
|
-
async createDomain(_, { domainInput }) {
|
9
|
-
const { name, description } = domainInput;
|
10
|
-
const domainRepo = typeorm_1.getRepository(entities_1.Domain);
|
11
|
-
const subdomain = utils_1.slugger(name);
|
12
|
-
const domain = await domainRepo.findOne({ subdomain });
|
13
|
-
if (domain) {
|
14
|
-
throw new Error('domain is duplicated');
|
15
|
-
}
|
16
|
-
return await domainRepo.save({ name, description, subdomain });
|
17
|
-
},
|
18
|
-
async deleteDomain(_, { name }) {
|
19
|
-
return await typeorm_1.getRepository(entities_1.Domain).delete({ name });
|
20
|
-
},
|
21
|
-
async deleteDomains(_, { names }) {
|
22
|
-
const domains = await typeorm_1.getRepository(entities_1.Domain).find({ where: { name: typeorm_1.In(names) } });
|
23
|
-
const domainIds = domains.map(domain => domain.id);
|
24
|
-
await typeorm_1.getRepository(entities_1.Domain).delete({ id: typeorm_1.In(domainIds) });
|
25
|
-
},
|
26
|
-
async updateDomain(_, { name, patch }) {
|
27
|
-
const repository = typeorm_1.getRepository(entities_1.Domain);
|
28
|
-
const domain = await repository.findOne({ name });
|
29
|
-
return await repository.save(Object.assign(Object.assign({}, domain), patch));
|
30
|
-
},
|
31
|
-
async updateDomains(_, { patches }) {
|
32
|
-
const domainRepo = typeorm_1.getRepository(entities_1.Domain);
|
33
|
-
const patchIds = patches.filter((patch) => patch.id);
|
34
|
-
if (patchIds.length > 0) {
|
35
|
-
patchIds.forEach(async (updateRecord) => {
|
36
|
-
const domain = await domainRepo.findOne({ where: { id: updateRecord.id } });
|
37
|
-
if (updateRecord.name) {
|
38
|
-
updateRecord.subdomain = utils_1.slugger(updateRecord.name);
|
39
|
-
}
|
40
|
-
await domainRepo.save(Object.assign(Object.assign({}, domain), updateRecord));
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
};
|
45
|
-
//# sourceMappingURL=domain-mutation.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain-mutation.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/domain/domain-mutation.ts"],"names":[],"mappings":";;;AAAA,qCAAuD;AACvD,gDAA0C;AAC1C,iDAA+C;AAElC,QAAA,QAAQ,GAAG;IACtB,KAAK,CAAC,YAAY,CAAC,CAAM,EAAE,EAAE,WAAW,EAAE;QACxC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,WAAW,CAAA;QACzC,MAAM,UAAU,GAAuB,uBAAa,CAAC,iBAAM,CAAC,CAAA;QAC5D,MAAM,SAAS,GAAW,eAAO,CAAC,IAAI,CAAC,CAAA;QAEvC,MAAM,MAAM,GAAW,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;QAC9D,IAAI,MAAM,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;SACxC;QAED,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAA;IAChE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE;QACjC,OAAO,MAAM,uBAAa,CAAC,iBAAM,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;IACrD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,CAAM,EAAE,EAAE,KAAK,EAAE;QACnC,MAAM,OAAO,GAAa,MAAM,uBAAa,CAAC,iBAAM,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,YAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAA;QAC1F,MAAM,SAAS,GAAa,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAE5D,MAAM,uBAAa,CAAC,iBAAM,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,YAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IAC3D,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;QACxC,MAAM,UAAU,GAAG,uBAAa,CAAC,iBAAM,CAAC,CAAA;QACxC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;QAEjD,OAAO,MAAM,UAAU,CAAC,IAAI,iCACvB,MAAM,GACN,KAAK,EACR,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE;QACrC,MAAM,UAAU,GAAuB,uBAAa,CAAC,iBAAM,CAAC,CAAA;QAE5D,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;QAEzD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAC,YAAY,EAAC,EAAE;gBACpC,MAAM,MAAM,GAAW,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;gBAEnF,IAAI,YAAY,CAAC,IAAI,EAAE;oBACrB,YAAY,CAAC,SAAS,GAAG,eAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;iBACpD;gBAED,MAAM,UAAU,CAAC,IAAI,iCAChB,MAAM,GACN,YAAY,EACf,CAAA;YACJ,CAAC,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Query = void 0;
|
4
|
-
const typeorm_1 = require("typeorm");
|
5
|
-
const list_query_builder_1 = require("../../../utils/list-query-builder");
|
6
|
-
const entities_1 = require("../../../entities");
|
7
|
-
exports.Query = {
|
8
|
-
async domain(_, { name }, context, info) {
|
9
|
-
const repository = typeorm_1.getRepository(entities_1.Domain);
|
10
|
-
return await repository.findOne({ name });
|
11
|
-
},
|
12
|
-
async domains(_, params, context) {
|
13
|
-
const queryBuilder = typeorm_1.getRepository(entities_1.Domain).createQueryBuilder();
|
14
|
-
list_query_builder_1.buildQuery(queryBuilder, params, context, false);
|
15
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
16
|
-
return { items, total };
|
17
|
-
}
|
18
|
-
};
|
19
|
-
//# sourceMappingURL=domain-query.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain-query.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/domain/domain-query.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,0EAA8D;AAC9D,gDAA0C;AAE7B,QAAA,KAAK,GAAG;IACnB,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI;QACrC,MAAM,UAAU,GAAG,uBAAa,CAAC,iBAAM,CAAC,CAAA;QAExC,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;IAC3C,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,CAAM,EAAE,MAAwB,EAAE,OAAY;QAC1D,MAAM,YAAY,GAAG,uBAAa,CAAC,iBAAM,CAAC,CAAC,kBAAkB,EAAE,CAAA;QAC/D,+BAAU,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;QAChD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;CACF,CAAA"}
|
@@ -1,15 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
__exportStar(require("./domain-query"), exports);
|
14
|
-
__exportStar(require("./domain-mutation"), exports);
|
15
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8B;AAC9B,oDAAiC"}
|
@@ -1,27 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
-
}) : function(o, v) {
|
12
|
-
o["default"] = v;
|
13
|
-
});
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
-
if (mod && mod.__esModule) return mod;
|
16
|
-
var result = {};
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
-
__setModuleDefault(result, mod);
|
19
|
-
return result;
|
20
|
-
};
|
21
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
22
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
23
|
-
};
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.DomainResolver = __importStar(require("./domain"));
|
26
|
-
__exportStar(require("./data"), exports);
|
27
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/resolvers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0C;AAC1C,yCAAsB"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TransactionDirective = void 0;
|
4
|
-
const graphql_tools_1 = require("graphql-tools");
|
5
|
-
const graphql_1 = require("graphql");
|
6
|
-
const typeorm_1 = require("typeorm");
|
7
|
-
const debug = require('debug')('things-factory:shell:directive-transaction');
|
8
|
-
class TransactionDirective extends graphql_tools_1.SchemaDirectiveVisitor {
|
9
|
-
visitFieldDefinition(field) {
|
10
|
-
const { resolve = graphql_1.defaultFieldResolver, name } = field;
|
11
|
-
field.resolve = async function (source, args, context, info) {
|
12
|
-
debug('@transaction-begin : ', name);
|
13
|
-
return await typeorm_1.getConnection().transaction(async (tx) => {
|
14
|
-
/* local-graphql-client로부터 invoke인 경우에는 context.req, context.res 가 없으므로, 빈 오브젝트로 대체해준다. */
|
15
|
-
let wrap = context.app.createContext(context.req || {}, context.res || {});
|
16
|
-
wrap.state = Object.assign(Object.assign({}, context.state), { tx });
|
17
|
-
let result = await resolve.call(this, source, args, wrap, info);
|
18
|
-
debug('@transaction-end : ', name);
|
19
|
-
return result;
|
20
|
-
});
|
21
|
-
};
|
22
|
-
}
|
23
|
-
}
|
24
|
-
exports.TransactionDirective = TransactionDirective;
|
25
|
-
//# sourceMappingURL=directive-transaction.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"directive-transaction.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/transaction/directive-transaction.ts"],"names":[],"mappings":";;;AAAA,iDAAsD;AACtD,qCAA8C;AAC9C,qCAAuC;AAEvC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,4CAA4C,CAAC,CAAA;AAE5E,MAAa,oBAAqB,SAAQ,sCAAsB;IAC9D,oBAAoB,CAAC,KAAK;QACxB,MAAM,EAAE,OAAO,GAAG,8BAAoB,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;QAEtD,KAAK,CAAC,OAAO,GAAG,KAAK,WAAW,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;YACzD,KAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAA;YAEpC,OAAO,MAAM,uBAAa,EAAE,CAAC,WAAW,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;gBAClD,0FAA0F;gBAC1F,IAAI,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC,CAAA;gBAE1E,IAAI,CAAC,KAAK,mCACL,OAAO,CAAC,KAAK,KAChB,EAAE,GACH,CAAA;gBAED,IAAI,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;gBAE/D,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAA;gBAElC,OAAO,MAAM,CAAA;YACf,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CACF;AAxBD,oDAwBC"}
|
@@ -1,14 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
__exportStar(require("./directive-transaction"), exports);
|
14
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAuC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.Data = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Data = graphql_tag_1.default `
|
9
|
-
type Data {
|
10
|
-
domain: Domain
|
11
|
-
tag: String!
|
12
|
-
data: Object!
|
13
|
-
}
|
14
|
-
`;
|
15
|
-
//# sourceMappingURL=data.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../server/graphql/types/data/data.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,IAAI,GAAG,qBAAG,CAAA;;;;;;CAMtB,CAAA"}
|
@@ -1,24 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
14
|
-
};
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.DataResolver = void 0;
|
17
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
18
|
-
__exportStar(require("./data"), exports);
|
19
|
-
exports.DataResolver = graphql_tag_1.default `
|
20
|
-
extend type Subscription {
|
21
|
-
data(tag: String): Data
|
22
|
-
}
|
23
|
-
`;
|
24
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA6B;AAE7B,yCAAsB;AAET,QAAA,YAAY,GAAG,qBAAG,CAAA;;;;CAI9B,CAAA"}
|