@things-factory/shell 4.0.22 → 4.0.23
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/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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/shell",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.23",
|
4
4
|
"description": "Core module for framework",
|
5
5
|
"bin": {
|
6
6
|
"things-factory": "bin/things-factory",
|
@@ -44,10 +44,10 @@
|
|
44
44
|
"@material/mwc-slider": "^0.25.3",
|
45
45
|
"@material/mwc-textfield": "^0.25.3",
|
46
46
|
"@operato/board": "^0.2.50",
|
47
|
-
"@things-factory/ejs-remote": "^4.0.
|
48
|
-
"@things-factory/env": "^4.0.
|
49
|
-
"@things-factory/styles": "^4.0.
|
50
|
-
"@things-factory/utils": "^4.0.
|
47
|
+
"@things-factory/ejs-remote": "^4.0.23",
|
48
|
+
"@things-factory/env": "^4.0.23",
|
49
|
+
"@things-factory/styles": "^4.0.23",
|
50
|
+
"@things-factory/utils": "^4.0.23",
|
51
51
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
52
52
|
"apollo-server-core": "^3.5.0",
|
53
53
|
"apollo-server-koa": "^3.5.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"resolutions": {
|
121
121
|
"core-js": "^3.16.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "49ba662dea1d349e9608a9a58c8fcfbc1310a5d6"
|
124
124
|
}
|
@@ -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"}
|
@@ -1,14 +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.CreateDomainInput = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.CreateDomainInput = graphql_tag_1.default `
|
9
|
-
input DomainInput {
|
10
|
-
name: String!
|
11
|
-
description: String
|
12
|
-
}
|
13
|
-
`;
|
14
|
-
//# sourceMappingURL=domain-input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain-input.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/domain-input.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,iBAAiB,GAAG,qBAAG,CAAA;;;;;CAKnC,CAAA"}
|
@@ -1,14 +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.DomainList = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.DomainList = graphql_tag_1.default `
|
9
|
-
type DomainList {
|
10
|
-
items: [Domain]
|
11
|
-
total: Int
|
12
|
-
}
|
13
|
-
`;
|
14
|
-
//# sourceMappingURL=domain-list.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/domain-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,UAAU,GAAG,qBAAG,CAAA;;;;;CAK5B,CAAA"}
|
@@ -1,22 +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.DomainPatch = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.DomainPatch = graphql_tag_1.default `
|
9
|
-
input DomainPatch {
|
10
|
-
id: String
|
11
|
-
name: String
|
12
|
-
description: String
|
13
|
-
timezone: String
|
14
|
-
systemFlag: Boolean
|
15
|
-
subdomain: String
|
16
|
-
brandName: String
|
17
|
-
brandImage: String
|
18
|
-
contentImage: String
|
19
|
-
theme: String
|
20
|
-
}
|
21
|
-
`;
|
22
|
-
//# sourceMappingURL=domain-patch.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/domain-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,WAAW,GAAG,qBAAG,CAAA;;;;;;;;;;;;;CAa7B,CAAA"}
|
@@ -1,26 +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.Domain = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Domain = graphql_tag_1.default `
|
9
|
-
type Domain {
|
10
|
-
id: String
|
11
|
-
name: String
|
12
|
-
description: String
|
13
|
-
extType: String
|
14
|
-
timezone: String
|
15
|
-
systemFlag: Boolean
|
16
|
-
subdomain: String
|
17
|
-
brandName: String
|
18
|
-
brandImage: String
|
19
|
-
contentImage: String
|
20
|
-
owner: String
|
21
|
-
theme: String
|
22
|
-
createdAt: String
|
23
|
-
updatedAt: String
|
24
|
-
}
|
25
|
-
`;
|
26
|
-
//# sourceMappingURL=domain.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/domain.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,MAAM,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;CAiBxB,CAAA"}
|
@@ -1,42 +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.DomainResolver = void 0;
|
17
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
18
|
-
__exportStar(require("./domain"), exports);
|
19
|
-
__exportStar(require("./new-domain"), exports);
|
20
|
-
__exportStar(require("./domain-patch"), exports);
|
21
|
-
__exportStar(require("./domain-list"), exports);
|
22
|
-
__exportStar(require("./domain-input"), exports);
|
23
|
-
exports.DomainResolver = graphql_tag_1.default `
|
24
|
-
extend type Mutation {
|
25
|
-
createDomain(domainInput: DomainPatch!): Domain
|
26
|
-
@privilege(category: "system", privilege: "mutation", superUserGranted: true)
|
27
|
-
updateDomain(name: String!, patch: DomainPatch!): Domain
|
28
|
-
@privilege(category: "system", privilege: "mutation", domainOwnerGranted: true, superUserGranted: true)
|
29
|
-
updateDomains(patches: [DomainPatch]!): Boolean
|
30
|
-
@privilege(category: "system", privilege: "mutation", superUserGranted: true)
|
31
|
-
deleteDomain(name: String!): Domain @privilege(category: "system", privilege: "mutation", superUserGranted: true)
|
32
|
-
deleteDomains(names: [String]!): Boolean
|
33
|
-
@privilege(category: "system", privilege: "mutation", superUserGranted: true)
|
34
|
-
}
|
35
|
-
|
36
|
-
extend type Query {
|
37
|
-
domains(filters: [Filter], pagination: Pagination, sortings: [Sorting]): DomainList
|
38
|
-
@privilege(category: "system", privilege: "mutation", superUserGranted: true)
|
39
|
-
domain(name: String!): Domain @privilege(category: "system", privilege: "query")
|
40
|
-
}
|
41
|
-
`;
|
42
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA6B;AAE7B,2CAAwB;AACxB,+CAA4B;AAC5B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAEjB,QAAA,cAAc,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;CAkBhC,CAAA"}
|
@@ -1,22 +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.NewDomain = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.NewDomain = graphql_tag_1.default `
|
9
|
-
input NewDomain {
|
10
|
-
name: String!
|
11
|
-
description: String
|
12
|
-
extType: String!
|
13
|
-
timezone: String
|
14
|
-
systemFlag: Boolean
|
15
|
-
subdomain: String!
|
16
|
-
brandName: String
|
17
|
-
brandImage: String
|
18
|
-
contentImage: String
|
19
|
-
theme: String
|
20
|
-
}
|
21
|
-
`;
|
22
|
-
//# sourceMappingURL=new-domain.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"new-domain.js","sourceRoot":"","sources":["../../../../server/graphql/types/domain/new-domain.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,SAAS,GAAG,qBAAG,CAAA;;;;;;;;;;;;;CAa3B,CAAA"}
|
@@ -1,16 +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.Filter = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Filter = graphql_tag_1.default `
|
9
|
-
input Filter {
|
10
|
-
name: String
|
11
|
-
operator: String
|
12
|
-
value: Any
|
13
|
-
relation: Boolean
|
14
|
-
}
|
15
|
-
`;
|
16
|
-
//# sourceMappingURL=filter.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../server/graphql/types/filter.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,MAAM,GAAG,qBAAG,CAAA;;;;;;;CAOxB,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 __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"), exports);
|
14
|
-
__exportStar(require("./transaction"), exports);
|
15
|
-
__exportStar(require("./filter"), exports);
|
16
|
-
__exportStar(require("./data"), exports);
|
17
|
-
__exportStar(require("./pagination"), exports);
|
18
|
-
__exportStar(require("./sorting"), exports);
|
19
|
-
__exportStar(require("./list-param"), exports);
|
20
|
-
__exportStar(require("./object-ref"), exports);
|
21
|
-
__exportStar(require("./scalar-object"), exports);
|
22
|
-
__exportStar(require("./scalar-any"), exports);
|
23
|
-
__exportStar(require("./scalar-date"), exports);
|
24
|
-
__exportStar(require("./log"), exports);
|
25
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwB;AACxB,gDAA6B;AAC7B,2CAAwB;AACxB,yCAAsB;AACtB,+CAA4B;AAC5B,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,kDAA+B;AAC/B,+CAA4B;AAC5B,gDAA6B;AAC7B,wCAAqB"}
|
@@ -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.ListParam = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.ListParam = graphql_tag_1.default `
|
9
|
-
input ListParam {
|
10
|
-
filters: [Filter]
|
11
|
-
pagination: Pagination
|
12
|
-
sortings: [Sorting]
|
13
|
-
}
|
14
|
-
`;
|
15
|
-
//# sourceMappingURL=list-param.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"list-param.js","sourceRoot":"","sources":["../../../server/graphql/types/list-param.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,SAAS,GAAG,qBAAG,CAAA;;;;;;CAM3B,CAAA"}
|
@@ -1,16 +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.Log = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Log = graphql_tag_1.default `
|
9
|
-
type Log {
|
10
|
-
source: Object
|
11
|
-
level: String
|
12
|
-
message: String
|
13
|
-
timestamp: String
|
14
|
-
}
|
15
|
-
`;
|
16
|
-
//# sourceMappingURL=log.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../server/graphql/types/log.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,GAAG,GAAG,qBAAG,CAAA;;;;;;;CAOrB,CAAA"}
|
@@ -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.ObjectRef = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.ObjectRef = graphql_tag_1.default `
|
9
|
-
input ObjectRef {
|
10
|
-
id: String!
|
11
|
-
name: String
|
12
|
-
description: String
|
13
|
-
}
|
14
|
-
`;
|
15
|
-
//# sourceMappingURL=object-ref.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"object-ref.js","sourceRoot":"","sources":["../../../server/graphql/types/object-ref.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,SAAS,GAAG,qBAAG,CAAA;;;;;;CAM3B,CAAA"}
|
@@ -1,14 +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.Pagination = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Pagination = graphql_tag_1.default `
|
9
|
-
input Pagination {
|
10
|
-
page: Int
|
11
|
-
limit: Int
|
12
|
-
}
|
13
|
-
`;
|
14
|
-
//# sourceMappingURL=pagination.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../server/graphql/types/pagination.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,UAAU,GAAG,qBAAG,CAAA;;;;;CAK5B,CAAA"}
|
@@ -1,36 +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.ScalarAny = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
const graphql_1 = require("graphql");
|
9
|
-
const type = new graphql_1.GraphQLScalarType({
|
10
|
-
name: 'Any',
|
11
|
-
description: 'Any Scalar type (String, Boolean, Int, Float)',
|
12
|
-
serialize(value) {
|
13
|
-
// Implement your own behavior here by setting the 'result' variable
|
14
|
-
return value;
|
15
|
-
},
|
16
|
-
parseValue(value) {
|
17
|
-
// Implement your own behavior here by setting the 'result' variable
|
18
|
-
return value;
|
19
|
-
},
|
20
|
-
parseLiteral(ast) {
|
21
|
-
switch (ast.kind) {
|
22
|
-
case graphql_1.Kind.INT:
|
23
|
-
return parseInt(ast.value);
|
24
|
-
case graphql_1.Kind.FLOAT:
|
25
|
-
return parseFloat(ast.value);
|
26
|
-
case graphql_1.Kind.BOOLEAN:
|
27
|
-
return ast.value;
|
28
|
-
case graphql_1.Kind.STRING:
|
29
|
-
return ast.value;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
});
|
33
|
-
exports.ScalarAny = graphql_tag_1.default `
|
34
|
-
scalar Any
|
35
|
-
`;
|
36
|
-
//# sourceMappingURL=scalar-any.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scalar-any.js","sourceRoot":"","sources":["../../../server/graphql/types/scalar-any.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAC7B,qCAAiD;AAEjD,MAAM,IAAI,GAAG,IAAI,2BAAiB,CAAC;IACjC,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,+CAA+C;IAC5D,SAAS,CAAC,KAAK;QACb,oEAAoE;QACpE,OAAO,KAAK,CAAA;IACd,CAAC;IACD,UAAU,CAAC,KAAK;QACd,oEAAoE;QACpE,OAAO,KAAK,CAAA;IACd,CAAC;IACD,YAAY,CAAC,GAAG;QACd,QAAQ,GAAG,CAAC,IAAI,EAAE;YAChB,KAAK,cAAI,CAAC,GAAG;gBACX,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;YAC5B,KAAK,cAAI,CAAC,KAAK;gBACb,OAAO,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;YAC9B,KAAK,cAAI,CAAC,OAAO;gBACf,OAAO,GAAG,CAAC,KAAK,CAAA;YAClB,KAAK,cAAI,CAAC,MAAM;gBACd,OAAO,GAAG,CAAC,KAAK,CAAA;SACnB;IACH,CAAC;CACF,CAAC,CAAA;AAEW,QAAA,SAAS,GAAG,qBAAG,CAAA;;CAE3B,CAAA"}
|
@@ -1,28 +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.ScalarDate = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
const graphql_1 = require("graphql");
|
9
|
-
const type = new graphql_1.GraphQLScalarType({
|
10
|
-
name: 'Date',
|
11
|
-
description: 'Date custom scalar type',
|
12
|
-
parseValue(value) {
|
13
|
-
return new Date(value); // value from the client
|
14
|
-
},
|
15
|
-
serialize(value) {
|
16
|
-
return value.getTime(); // value sent to the client
|
17
|
-
},
|
18
|
-
parseLiteral(ast) {
|
19
|
-
if (ast.kind === graphql_1.Kind.INT) {
|
20
|
-
return new Date(+ast.value); // ast value is always in string format
|
21
|
-
}
|
22
|
-
return null;
|
23
|
-
}
|
24
|
-
});
|
25
|
-
exports.ScalarDate = graphql_tag_1.default `
|
26
|
-
scalar Date
|
27
|
-
`;
|
28
|
-
//# sourceMappingURL=scalar-date.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scalar-date.js","sourceRoot":"","sources":["../../../server/graphql/types/scalar-date.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAC7B,qCAAiD;AAEjD,MAAM,IAAI,GAAG,IAAI,2BAAiB,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,yBAAyB;IACtC,UAAU,CAAC,KAAK;QACd,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC,wBAAwB;IACjD,CAAC;IACD,SAAS,CAAC,KAAK;QACb,OAAO,KAAK,CAAC,OAAO,EAAE,CAAA,CAAC,2BAA2B;IACpD,CAAC;IACD,YAAY,CAAC,GAAG;QACd,IAAI,GAAG,CAAC,IAAI,KAAK,cAAI,CAAC,GAAG,EAAE;YACzB,OAAO,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA,CAAC,uCAAuC;SACpE;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAC,CAAA;AAEW,QAAA,UAAU,GAAG,qBAAG,CAAA;;CAE5B,CAAA"}
|
@@ -1,25 +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.ScalarObject = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
const { GraphQLScalarType } = require('graphql');
|
9
|
-
const type = new GraphQLScalarType({
|
10
|
-
name: 'Object',
|
11
|
-
description: 'Can be anything',
|
12
|
-
parseValue(value) {
|
13
|
-
return value;
|
14
|
-
},
|
15
|
-
serialize(value) {
|
16
|
-
return value;
|
17
|
-
},
|
18
|
-
parseLiteral(ast) {
|
19
|
-
return ast;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
exports.ScalarObject = graphql_tag_1.default `
|
23
|
-
scalar Object
|
24
|
-
`;
|
25
|
-
//# sourceMappingURL=scalar-object.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scalar-object.js","sourceRoot":"","sources":["../../../server/graphql/types/scalar-object.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAC7B,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;AAEhD,MAAM,IAAI,GAAG,IAAI,iBAAiB,CAAC;IACjC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iBAAiB;IAC9B,UAAU,CAAC,KAAK;QACd,OAAO,KAAK,CAAA;IACd,CAAC;IACD,SAAS,CAAC,KAAK;QACb,OAAO,KAAK,CAAA;IACd,CAAC;IACD,YAAY,CAAC,GAAG;QACd,OAAO,GAAG,CAAA;IACZ,CAAC;CACF,CAAC,CAAA;AAEW,QAAA,YAAY,GAAG,qBAAG,CAAA;;CAE9B,CAAA"}
|
@@ -1,14 +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.Sorting = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.Sorting = graphql_tag_1.default `
|
9
|
-
input Sorting {
|
10
|
-
name: String
|
11
|
-
desc: Boolean
|
12
|
-
}
|
13
|
-
`;
|
14
|
-
//# sourceMappingURL=sorting.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sorting.js","sourceRoot":"","sources":["../../../server/graphql/types/sorting.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,OAAO,GAAG,qBAAG,CAAA;;;;;CAKzB,CAAA"}
|
@@ -1,11 +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.TransactionDirective = void 0;
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
8
|
-
exports.TransactionDirective = graphql_tag_1.default `
|
9
|
-
directive @transaction on FIELD_DEFINITION
|
10
|
-
`;
|
11
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/transaction/index.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,oBAAoB,GAAG,qBAAG,CAAA;;CAEtC,CAAA"}
|