@things-factory/board-service 5.0.2 → 5.0.14
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/dist-server/controllers/fonts.js.map +1 -1
- package/dist-server/controllers/headless-model.js.map +1 -1
- package/dist-server/controllers/headless-pool-for-board.js +2 -24
- package/dist-server/controllers/headless-pool-for-board.js.map +1 -1
- package/dist-server/controllers/headless-pool-for-label.js +3 -32
- package/dist-server/controllers/headless-pool-for-label.js.map +1 -1
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/controllers/label-command.js.map +1 -1
- package/dist-server/controllers/pdf.js.map +1 -1
- package/dist-server/controllers/print.js.map +1 -1
- package/dist-server/controllers/screenshot.js.map +1 -1
- package/dist-server/controllers/thumbnail.js.map +1 -1
- package/dist-server/index.js +4 -17
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/1556862253000-SeedGroup.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routers/board-print-router.js +2 -4
- package/dist-server/routers/board-print-router.js.map +1 -1
- package/dist-server/routers/internal-board-view-router.js +2 -4
- package/dist-server/routers/internal-board-view-router.js.map +1 -1
- package/dist-server/routers/standalone-board-service-router.js +3 -5
- package/dist-server/routers/standalone-board-service-router.js.map +1 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/board/board-mutation.js +21 -32
- package/dist-server/service/board/board-mutation.js.map +1 -1
- package/dist-server/service/board/board-query.js +39 -51
- package/dist-server/service/board/board-query.js.map +1 -1
- package/dist-server/service/board/board-type.js +28 -36
- package/dist-server/service/board/board-type.js.map +1 -1
- package/dist-server/service/board/board.js +34 -42
- package/dist-server/service/board/board.js.map +1 -1
- package/dist-server/service/board/index.js.map +1 -1
- package/dist-server/service/group/group-mutation.js +28 -39
- package/dist-server/service/group/group-mutation.js.map +1 -1
- package/dist-server/service/group/group-query.js +34 -45
- package/dist-server/service/group/group-query.js.map +1 -1
- package/dist-server/service/group/group-type.js +16 -24
- package/dist-server/service/group/group-type.js.map +1 -1
- package/dist-server/service/group/group.js +26 -34
- package/dist-server/service/group/group.js.map +1 -1
- package/dist-server/service/group/index.js.map +1 -1
- package/dist-server/service/index.js +4 -17
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/play-group/index.js.map +1 -1
- package/dist-server/service/play-group/play-group-mutation.js +35 -46
- package/dist-server/service/play-group/play-group-mutation.js.map +1 -1
- package/dist-server/service/play-group/play-group-query.js +34 -45
- package/dist-server/service/play-group/play-group-query.js.map +1 -1
- package/dist-server/service/play-group/play-group-type.js +16 -24
- package/dist-server/service/play-group/play-group-type.js.map +1 -1
- package/dist-server/service/play-group/play-group.js +26 -34
- package/dist-server/service/play-group/play-group.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -4
- package/server/service/board/board-query.ts +0 -1
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
var _a;
|
|
15
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
4
|
exports.GroupQuery = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
17
6
|
const type_graphql_1 = require("type-graphql");
|
|
18
7
|
const typeorm_1 = require("typeorm");
|
|
19
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
@@ -54,51 +43,51 @@ let GroupQuery = class GroupQuery {
|
|
|
54
43
|
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(group.creatorId);
|
|
55
44
|
}
|
|
56
45
|
};
|
|
57
|
-
__decorate([
|
|
46
|
+
tslib_1.__decorate([
|
|
58
47
|
(0, type_graphql_1.Query)(returns => group_1.Group, { nullable: true, description: 'To fetch a Group' }),
|
|
59
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
60
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
61
|
-
__metadata("design:type", Function),
|
|
62
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
63
|
-
__metadata("design:returntype", Promise)
|
|
48
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
49
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
50
|
+
tslib_1.__metadata("design:type", Function),
|
|
51
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
52
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
64
53
|
], GroupQuery.prototype, "group", null);
|
|
65
|
-
__decorate([
|
|
54
|
+
tslib_1.__decorate([
|
|
66
55
|
(0, type_graphql_1.Query)(returns => group_type_1.GroupList, { description: 'To fetch multiple Groups' }),
|
|
67
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
68
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
71
|
-
__metadata("design:returntype", Promise)
|
|
56
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
57
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
58
|
+
tslib_1.__metadata("design:type", Function),
|
|
59
|
+
tslib_1.__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
60
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
72
61
|
], GroupQuery.prototype, "groups", null);
|
|
73
|
-
__decorate([
|
|
62
|
+
tslib_1.__decorate([
|
|
74
63
|
(0, type_graphql_1.FieldResolver)(type => [board_1.Board]),
|
|
75
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
76
|
-
__metadata("design:type", Function),
|
|
77
|
-
__metadata("design:paramtypes", [group_1.Group]),
|
|
78
|
-
__metadata("design:returntype", Promise)
|
|
64
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
65
|
+
tslib_1.__metadata("design:type", Function),
|
|
66
|
+
tslib_1.__metadata("design:paramtypes", [group_1.Group]),
|
|
67
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
79
68
|
], GroupQuery.prototype, "boards", null);
|
|
80
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
81
70
|
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
82
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
83
|
-
__metadata("design:type", Function),
|
|
84
|
-
__metadata("design:paramtypes", [group_1.Group]),
|
|
85
|
-
__metadata("design:returntype", Promise)
|
|
71
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
72
|
+
tslib_1.__metadata("design:type", Function),
|
|
73
|
+
tslib_1.__metadata("design:paramtypes", [group_1.Group]),
|
|
74
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
86
75
|
], GroupQuery.prototype, "domain", null);
|
|
87
|
-
__decorate([
|
|
76
|
+
tslib_1.__decorate([
|
|
88
77
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
89
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
90
|
-
__metadata("design:type", Function),
|
|
91
|
-
__metadata("design:paramtypes", [group_1.Group]),
|
|
92
|
-
__metadata("design:returntype", Promise)
|
|
78
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
79
|
+
tslib_1.__metadata("design:type", Function),
|
|
80
|
+
tslib_1.__metadata("design:paramtypes", [group_1.Group]),
|
|
81
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
93
82
|
], GroupQuery.prototype, "updater", null);
|
|
94
|
-
__decorate([
|
|
83
|
+
tslib_1.__decorate([
|
|
95
84
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
96
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
97
|
-
__metadata("design:type", Function),
|
|
98
|
-
__metadata("design:paramtypes", [group_1.Group]),
|
|
99
|
-
__metadata("design:returntype", Promise)
|
|
85
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
86
|
+
tslib_1.__metadata("design:type", Function),
|
|
87
|
+
tslib_1.__metadata("design:paramtypes", [group_1.Group]),
|
|
88
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
100
89
|
], GroupQuery.prototype, "creator", null);
|
|
101
|
-
GroupQuery = __decorate([
|
|
90
|
+
GroupQuery = tslib_1.__decorate([
|
|
102
91
|
(0, type_graphql_1.Resolver)(group_1.Group)
|
|
103
92
|
], GroupQuery);
|
|
104
93
|
exports.GroupQuery = GroupQuery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-query.js","sourceRoot":"","sources":["../../../server/service/group/group-query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"group-query.js","sourceRoot":"","sources":["../../../server/service/group/group-query.ts"],"names":[],"mappings":";;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,yDAAgD;AAChD,iDAAwF;AAExF,0CAAsC;AACtC,mCAA+B;AAC/B,6CAAwC;AAGxC,IAAa,UAA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'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain, getQueryBuilderFromListParams, ListParam } from '@things-factory/shell'\n\nimport { Board } from '../board/board'\nimport { Group } from './group'\nimport { GroupList } from './group-type'\n\n@Resolver(Group)\nexport class GroupQuery {\n @Query(returns => Group, { nullable: true, description: 'To fetch a Group' })\n async group(@Arg('id') id: string, @Ctx() context: any): Promise<Group> {\n const { domain } = context.state\n\n return await getRepository(Group).findOne({\n where: { domain, id }\n })\n }\n\n @Query(returns => GroupList, { description: 'To fetch multiple Groups' })\n async groups(@Args() params: ListParam, @Ctx() context: any): Promise<GroupList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n repository: getRepository(Group),\n params,\n domain,\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [Board])\n async boards(@Root() group: Group) {\n return await getRepository(Board).find({\n group\n })\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() group: Group) {\n return await getRepository(Domain).findOne(group.domainId)\n }\n\n @FieldResolver(type => User)\n async updater(@Root() group: Group): Promise<User> {\n return await getRepository(User).findOne(group.updaterId)\n }\n\n @FieldResolver(type => User)\n async creator(@Root() group: Group): Promise<User> {\n return await getRepository(User).findOne(group.creatorId)\n }\n}\n"]}
|
|
@@ -1,56 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.GroupList = exports.GroupPatch = exports.NewGroup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const type_graphql_1 = require("type-graphql");
|
|
14
6
|
const group_1 = require("./group");
|
|
15
7
|
let NewGroup = class NewGroup {
|
|
16
8
|
};
|
|
17
|
-
__decorate([
|
|
9
|
+
tslib_1.__decorate([
|
|
18
10
|
(0, type_graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
20
12
|
], NewGroup.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
13
|
+
tslib_1.__decorate([
|
|
22
14
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
24
16
|
], NewGroup.prototype, "description", void 0);
|
|
25
|
-
NewGroup = __decorate([
|
|
17
|
+
NewGroup = tslib_1.__decorate([
|
|
26
18
|
(0, type_graphql_1.InputType)()
|
|
27
19
|
], NewGroup);
|
|
28
20
|
exports.NewGroup = NewGroup;
|
|
29
21
|
let GroupPatch = class GroupPatch {
|
|
30
22
|
};
|
|
31
|
-
__decorate([
|
|
23
|
+
tslib_1.__decorate([
|
|
32
24
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
34
26
|
], GroupPatch.prototype, "name", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
-
__metadata("design:type", String)
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
38
30
|
], GroupPatch.prototype, "description", void 0);
|
|
39
|
-
GroupPatch = __decorate([
|
|
31
|
+
GroupPatch = tslib_1.__decorate([
|
|
40
32
|
(0, type_graphql_1.InputType)()
|
|
41
33
|
], GroupPatch);
|
|
42
34
|
exports.GroupPatch = GroupPatch;
|
|
43
35
|
let GroupList = class GroupList {
|
|
44
36
|
};
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, type_graphql_1.Field)(type => [group_1.Group]),
|
|
47
|
-
__metadata("design:type", Array)
|
|
39
|
+
tslib_1.__metadata("design:type", Array)
|
|
48
40
|
], GroupList.prototype, "items", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
51
|
-
__metadata("design:type", Number)
|
|
43
|
+
tslib_1.__metadata("design:type", Number)
|
|
52
44
|
], GroupList.prototype, "total", void 0);
|
|
53
|
-
GroupList = __decorate([
|
|
45
|
+
GroupList = tslib_1.__decorate([
|
|
54
46
|
(0, type_graphql_1.ObjectType)()
|
|
55
47
|
], GroupList);
|
|
56
48
|
exports.GroupList = GroupList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-type.js","sourceRoot":"","sources":["../../../server/service/group/group-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"group-type.js","sourceRoot":"","sources":["../../../server/service/group/group-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,mCAA+B;AAG/B,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAMpB,CAAA;AAJC;IADC,IAAA,oBAAK,GAAE;;sCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACN;AALT,QAAQ;IADpB,IAAA,wBAAS,GAAE;GACC,QAAQ,CAMpB;AANY,4BAAQ;AASrB,IAAa,UAAU,GAAvB,MAAa,UAAU;CAMtB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AALT,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAMtB;AANY,gCAAU;AASvB,IAAa,SAAS,GAAtB,MAAa,SAAS;CAMrB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAK,CAAC,CAAC;;wCACT;AAGd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;wCACN;AALF,SAAS;IADrB,IAAA,yBAAU,GAAE;GACA,SAAS,CAMrB;AANY,8BAAS","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Group } from './group'\n\n@InputType()\nexport class NewGroup {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n}\n\n@InputType()\nexport class GroupPatch {\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n description?: string\n}\n\n@ObjectType()\nexport class GroupList {\n @Field(type => [Group])\n items: Group[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
var _a, _b, _c;
|
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
4
|
exports.Group = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
14
6
|
const typeorm_1 = require("typeorm");
|
|
15
7
|
const type_graphql_1 = require("type-graphql");
|
|
16
8
|
const shell_1 = require("@things-factory/shell");
|
|
@@ -18,70 +10,70 @@ const auth_base_1 = require("@things-factory/auth-base");
|
|
|
18
10
|
const board_1 = require("../board/board");
|
|
19
11
|
let Group = class Group {
|
|
20
12
|
};
|
|
21
|
-
__decorate([
|
|
13
|
+
tslib_1.__decorate([
|
|
22
14
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
15
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
-
__metadata("design:type", String)
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
25
17
|
], Group.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
18
|
+
tslib_1.__decorate([
|
|
27
19
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
20
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
21
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
30
22
|
], Group.prototype, "domain", void 0);
|
|
31
|
-
__decorate([
|
|
23
|
+
tslib_1.__decorate([
|
|
32
24
|
(0, typeorm_1.RelationId)((group) => group.domain),
|
|
33
|
-
__metadata("design:type", String)
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
34
26
|
], Group.prototype, "domainId", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, typeorm_1.Column)(),
|
|
37
29
|
(0, type_graphql_1.Field)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
39
31
|
], Group.prototype, "name", void 0);
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, typeorm_1.Column)({
|
|
42
34
|
nullable: true
|
|
43
35
|
}),
|
|
44
36
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
-
__metadata("design:type", String)
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
46
38
|
], Group.prototype, "description", void 0);
|
|
47
|
-
__decorate([
|
|
39
|
+
tslib_1.__decorate([
|
|
48
40
|
(0, typeorm_1.OneToMany)(type => board_1.Board, board => board.group),
|
|
49
41
|
(0, type_graphql_1.Field)(type => [board_1.Board], { nullable: true }),
|
|
50
|
-
__metadata("design:type", Array)
|
|
42
|
+
tslib_1.__metadata("design:type", Array)
|
|
51
43
|
], Group.prototype, "boards", void 0);
|
|
52
|
-
__decorate([
|
|
44
|
+
tslib_1.__decorate([
|
|
53
45
|
(0, typeorm_1.CreateDateColumn)(),
|
|
54
46
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", Date)
|
|
47
|
+
tslib_1.__metadata("design:type", Date)
|
|
56
48
|
], Group.prototype, "createdAt", void 0);
|
|
57
|
-
__decorate([
|
|
49
|
+
tslib_1.__decorate([
|
|
58
50
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
59
51
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
60
|
-
__metadata("design:type", Date)
|
|
52
|
+
tslib_1.__metadata("design:type", Date)
|
|
61
53
|
], Group.prototype, "updatedAt", void 0);
|
|
62
|
-
__decorate([
|
|
54
|
+
tslib_1.__decorate([
|
|
63
55
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
64
56
|
nullable: true
|
|
65
57
|
}),
|
|
66
58
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
59
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
68
60
|
], Group.prototype, "creator", void 0);
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, typeorm_1.RelationId)((group) => group.creator),
|
|
71
|
-
__metadata("design:type", String)
|
|
63
|
+
tslib_1.__metadata("design:type", String)
|
|
72
64
|
], Group.prototype, "creatorId", void 0);
|
|
73
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
74
66
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
75
67
|
nullable: true
|
|
76
68
|
}),
|
|
77
69
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
78
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
70
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
79
71
|
], Group.prototype, "updater", void 0);
|
|
80
|
-
__decorate([
|
|
72
|
+
tslib_1.__decorate([
|
|
81
73
|
(0, typeorm_1.RelationId)((group) => group.creator),
|
|
82
|
-
__metadata("design:type", String)
|
|
74
|
+
tslib_1.__metadata("design:type", String)
|
|
83
75
|
], Group.prototype, "updaterId", void 0);
|
|
84
|
-
Group = __decorate([
|
|
76
|
+
Group = tslib_1.__decorate([
|
|
85
77
|
(0, typeorm_1.Entity)(),
|
|
86
78
|
(0, typeorm_1.Index)('ix_group_0', (group) => [group.domain, group.name], { unique: true }),
|
|
87
79
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for Board Management Group' })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../server/service/group/group.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../server/service/group/group.ts"],"names":[],"mappings":";;;;;AAAA,qCAUgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,0CAAsC;AAKtC,IAAa,KAAK,GAAlB,MAAa,KAAK;CAmDjB,CAAA;AAhDC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;iCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DACjB,cAAM,oBAAN,cAAM;qCAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;;uCAC1B;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;mCACI;AAMZ;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACN;AAIpB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,aAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAC5B;AAIf;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;wCAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;wCAAA;AAMhB;IAJC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,gBAAI,oBAAJ,gBAAI;sCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;wCAC1B;AAMlB;IAJC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,gBAAI,oBAAJ,gBAAI;sCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;wCAC1B;AAlDP,KAAK;IAHjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,YAAY,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACnF,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;GACpD,KAAK,CAmDjB;AAnDY,sBAAK","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Board } from '../board/board'\n\n@Entity()\n@Index('ix_group_0', (group: Group) => [group.domain, group.name], { unique: true })\n@ObjectType({ description: 'Entity for Board Management Group' })\nexport class Group {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((group: Group) => group.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description?: string\n\n @OneToMany(type => Board, board => board.group)\n @Field(type => [Board], { nullable: true })\n boards: Board[]\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((group: Group) => group.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((group: Group) => group.creator)\n updaterId?: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/group/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAC/B,+CAA0C;AAC1C,qDAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,aAAK,CAAC,CAAA;AAClB,QAAA,SAAS,GAAG,CAAC,wBAAU,EAAE,8BAAa,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/group/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAC/B,+CAA0C;AAC1C,qDAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,aAAK,CAAC,CAAA;AAClB,QAAA,SAAS,GAAG,CAAC,wBAAU,EAAE,8BAAa,CAAC,CAAA","sourcesContent":["import { Group } from './group'\nimport { GroupQuery } from './group-query'\nimport { GroupMutation } from './group-mutation'\n\nexport const entities = [Group]\nexport const resolvers = [GroupQuery, GroupMutation]\n"]}
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.schema = exports.entities = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
/* EXPORT ENTITY TYPES */
|
|
19
|
-
__exportStar(require("./board/board"), exports);
|
|
20
|
-
__exportStar(require("./group/group"), exports);
|
|
21
|
-
__exportStar(require("./play-group/play-group"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./board/board"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./group/group"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./play-group/play-group"), exports);
|
|
22
9
|
/* IMPORT ENTITIES AND RESOLVERS */
|
|
23
10
|
const board_1 = require("./board");
|
|
24
11
|
const group_1 = require("./group");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,wDAA6B;AAC7B,wDAA6B;AAC7B,kEAAuC;AAEvC,mCAAmC;AACnC,mCAAgF;AAChF,mCAAgF;AAChF,6CAA6F;AAEhF,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,qBAAiB;CACrB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,iBAAc;QACjB,GAAG,iBAAc;QACjB,GAAG,sBAAkB;KACtB;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './board/board'\nexport * from './group/group'\nexport * from './play-group/play-group'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as BoardEntities, resolvers as BoardResolvers } from './board'\nimport { entities as GroupEntities, resolvers as GroupResolvers } from './group'\nimport { entities as PlayGroupEntities, resolvers as PlayGroupResolvers } from './play-group'\n\nexport const entities = [\n /* ENTITIES */\n ...BoardEntities,\n ...GroupEntities,\n ...PlayGroupEntities\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...BoardResolvers,\n ...GroupResolvers,\n ...PlayGroupResolvers\n ]\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/play-group/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,yDAAmD;AACnD,+DAAyD;AAE5C,QAAA,QAAQ,GAAG,CAAC,sBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,iCAAc,EAAE,uCAAiB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/play-group/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,yDAAmD;AACnD,+DAAyD;AAE5C,QAAA,QAAQ,GAAG,CAAC,sBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,iCAAc,EAAE,uCAAiB,CAAC,CAAA","sourcesContent":["import { PlayGroup } from './play-group'\nimport { PlayGroupQuery } from './play-group-query'\nimport { PlayGroupMutation } from './play-group-mutation'\n\nexport const entities = [PlayGroup]\nexport const resolvers = [PlayGroupQuery, PlayGroupMutation]\n"]}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.PlayGroupMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
|
17
6
|
const typeorm_1 = require("typeorm");
|
|
18
7
|
const board_1 = require("../board/board");
|
|
@@ -69,50 +58,50 @@ let PlayGroupMutation = class PlayGroupMutation {
|
|
|
69
58
|
return true;
|
|
70
59
|
}
|
|
71
60
|
};
|
|
72
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
73
62
|
(0, type_graphql_1.Mutation)(returns => play_group_1.PlayGroup, { description: 'To create new PlayGroup' }),
|
|
74
|
-
__param(0, (0, type_graphql_1.Arg)('playGroup')),
|
|
75
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
76
|
-
__metadata("design:type", Function),
|
|
77
|
-
__metadata("design:paramtypes", [play_group_type_1.NewPlayGroup, Object]),
|
|
78
|
-
__metadata("design:returntype", Promise)
|
|
63
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('playGroup')),
|
|
64
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
65
|
+
tslib_1.__metadata("design:type", Function),
|
|
66
|
+
tslib_1.__metadata("design:paramtypes", [play_group_type_1.NewPlayGroup, Object]),
|
|
67
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
79
68
|
], PlayGroupMutation.prototype, "createPlayGroup", null);
|
|
80
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
81
70
|
(0, type_graphql_1.Mutation)(returns => play_group_1.PlayGroup, { description: 'To modify PlayGroup information' }),
|
|
82
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
83
|
-
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
84
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
85
|
-
__metadata("design:type", Function),
|
|
86
|
-
__metadata("design:paramtypes", [String, play_group_type_1.PlayGroupPatch, Object]),
|
|
87
|
-
__metadata("design:returntype", Promise)
|
|
71
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
72
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
73
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
74
|
+
tslib_1.__metadata("design:type", Function),
|
|
75
|
+
tslib_1.__metadata("design:paramtypes", [String, play_group_type_1.PlayGroupPatch, Object]),
|
|
76
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
88
77
|
], PlayGroupMutation.prototype, "updatePlayGroup", null);
|
|
89
|
-
__decorate([
|
|
78
|
+
tslib_1.__decorate([
|
|
90
79
|
(0, type_graphql_1.Mutation)(returns => play_group_1.PlayGroup, { description: 'To make the board to join the play group' }),
|
|
91
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
92
|
-
__param(1, (0, type_graphql_1.Arg)('boardIds', type => [String])),
|
|
93
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
94
|
-
__metadata("design:type", Function),
|
|
95
|
-
__metadata("design:paramtypes", [String, Array, Object]),
|
|
96
|
-
__metadata("design:returntype", Promise)
|
|
80
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
81
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('boardIds', type => [String])),
|
|
82
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
83
|
+
tslib_1.__metadata("design:type", Function),
|
|
84
|
+
tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
|
|
85
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
97
86
|
], PlayGroupMutation.prototype, "joinPlayGroup", null);
|
|
98
|
-
__decorate([
|
|
87
|
+
tslib_1.__decorate([
|
|
99
88
|
(0, type_graphql_1.Mutation)(returns => play_group_1.PlayGroup, { description: 'To make the board to leave from the play group' }),
|
|
100
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
101
|
-
__param(1, (0, type_graphql_1.Arg)('boardIds', type => [String])),
|
|
102
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
103
|
-
__metadata("design:type", Function),
|
|
104
|
-
__metadata("design:paramtypes", [String, Array, Object]),
|
|
105
|
-
__metadata("design:returntype", Promise)
|
|
89
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
90
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('boardIds', type => [String])),
|
|
91
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
92
|
+
tslib_1.__metadata("design:type", Function),
|
|
93
|
+
tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
|
|
94
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
106
95
|
], PlayGroupMutation.prototype, "leavePlayGroup", null);
|
|
107
|
-
__decorate([
|
|
96
|
+
tslib_1.__decorate([
|
|
108
97
|
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete PlayGroup' }),
|
|
109
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
110
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
111
|
-
__metadata("design:type", Function),
|
|
112
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
113
|
-
__metadata("design:returntype", Promise)
|
|
98
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
99
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
100
|
+
tslib_1.__metadata("design:type", Function),
|
|
101
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
102
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
114
103
|
], PlayGroupMutation.prototype, "deletePlayGroup", null);
|
|
115
|
-
PlayGroupMutation = __decorate([
|
|
104
|
+
PlayGroupMutation = tslib_1.__decorate([
|
|
116
105
|
(0, type_graphql_1.Resolver)(play_group_1.PlayGroup)
|
|
117
106
|
], PlayGroupMutation);
|
|
118
107
|
exports.PlayGroupMutation = PlayGroupMutation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"play-group-mutation.js","sourceRoot":"","sources":["../../../server/service/play-group/play-group-mutation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"play-group-mutation.js","sourceRoot":"","sources":["../../../server/service/play-group/play-group-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,0CAAsC;AACtC,6CAAwC;AACxC,uDAAgE;AAGhE,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAE5B,KAAK,CAAC,eAAe,CAAmB,SAAuB,EAAS,OAAY;QAClF,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,G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;AAGD;IADC,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAC9C,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;wDASlD;AAhGU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,sBAAS,CAAC;GACP,iBAAiB,CAiG7B;AAjGY,8CAAiB","sourcesContent":["import { Arg, Ctx, Mutation, Resolver } from 'type-graphql'\nimport { getRepository } from 'typeorm'\n\nimport { Board } from '../board/board'\nimport { PlayGroup } from './play-group'\nimport { NewPlayGroup, PlayGroupPatch } from './play-group-type'\n\n@Resolver(PlayGroup)\nexport class PlayGroupMutation {\n @Mutation(returns => PlayGroup, { description: 'To create new PlayGroup' })\n async createPlayGroup(@Arg('playGroup') playGroup: NewPlayGroup, @Ctx() context: any): Promise<PlayGroup> {\n const { domain, user } = context.state\n\n return await getRepository(PlayGroup).save({\n domain,\n ...playGroup,\n creator: user,\n updater: user\n })\n }\n\n @Mutation(returns => PlayGroup, { description: 'To modify PlayGroup information' })\n async updatePlayGroup(\n @Arg('id') id: string,\n @Arg('patch') patch: PlayGroupPatch,\n @Ctx() context: any\n ): Promise<PlayGroup> {\n const { domain, user } = context.state\n const repository = getRepository(PlayGroup)\n\n const playGroup = await repository.findOne({ domain, id })\n\n return await repository.save({\n ...playGroup,\n ...patch,\n updater: user\n })\n }\n\n @Mutation(returns => PlayGroup, { description: 'To make the board to join the play group' })\n async joinPlayGroup(\n @Arg('id') id: string,\n @Arg('boardIds', type => [String]) boardIds: string[],\n @Ctx() context: any\n ) {\n const repository = getRepository(PlayGroup)\n const playGroup = await repository.findOne(\n { id },\n {\n relations: ['boards']\n }\n )\n\n const boardIdList = playGroup.boards.map(board => board.id)\n boardIds.forEach(boardId => {\n if (boardIdList.indexOf(boardId) == -1) {\n boardIdList.push(boardId)\n }\n })\n\n const boardRepository = getRepository(Board)\n playGroup.boards = await boardRepository.findByIds(boardIdList)\n\n return await repository.save(playGroup)\n }\n\n @Mutation(returns => PlayGroup, { description: 'To make the board to leave from the play group' })\n async leavePlayGroup(\n @Arg('id') id: string,\n @Arg('boardIds', type => [String]) boardIds: string[],\n @Ctx() context: any\n ) {\n const repository = getRepository(PlayGroup)\n const playGroup = await repository.findOne(\n { id },\n {\n relations: ['boards']\n }\n )\n\n const boardIdList = playGroup.boards.map(board => board.id)\n boardIds.forEach(boardId => {\n let index = boardIdList.indexOf(boardId)\n if (index !== -1) {\n boardIdList.splice(index, 1)\n }\n })\n\n const boardRepository = getRepository(Board)\n playGroup.boards = await boardRepository.findByIds(boardIdList)\n\n return await repository.save(playGroup)\n }\n\n @Mutation(returns => Boolean, { description: 'To delete PlayGroup' })\n async deletePlayGroup(@Arg('id') id: string, @Ctx() context: any): Promise<boolean> {\n const { domain } = context.state\n const repository = getRepository(PlayGroup)\n\n /* TODO - 플레이 그룹은 소속된 보드-플레이그룹 관계들도 제거되어야 한다. */\n const playGroup = await repository.findOne({ domain, id })\n\n await repository.delete(id)\n return true\n }\n}\n"]}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
var _a;
|
|
15
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
4
|
exports.PlayGroupQuery = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
17
6
|
const type_graphql_1 = require("type-graphql");
|
|
18
7
|
const typeorm_1 = require("typeorm");
|
|
19
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
@@ -53,51 +42,51 @@ let PlayGroupQuery = class PlayGroupQuery {
|
|
|
53
42
|
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(playGroup.creatorId);
|
|
54
43
|
}
|
|
55
44
|
};
|
|
56
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
57
46
|
(0, type_graphql_1.Query)(returns => play_group_1.PlayGroup, { nullable: true, description: 'To fetch a PlayGroup' }),
|
|
58
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
59
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
60
|
-
__metadata("design:type", Function),
|
|
61
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
62
|
-
__metadata("design:returntype", Promise)
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
48
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
49
|
+
tslib_1.__metadata("design:type", Function),
|
|
50
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
51
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
63
52
|
], PlayGroupQuery.prototype, "playGroup", null);
|
|
64
|
-
__decorate([
|
|
53
|
+
tslib_1.__decorate([
|
|
65
54
|
(0, type_graphql_1.Query)(returns => play_group_type_1.PlayGroupList, { description: 'To fetch multiple PlayGroups' }),
|
|
66
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
67
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
55
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
56
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
57
|
+
tslib_1.__metadata("design:type", Function),
|
|
58
|
+
tslib_1.__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
59
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
71
60
|
], PlayGroupQuery.prototype, "playGroups", null);
|
|
72
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
73
62
|
(0, type_graphql_1.FieldResolver)(type => [board_1.Board]),
|
|
74
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
75
|
-
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [Object]),
|
|
77
|
-
__metadata("design:returntype", Promise)
|
|
63
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
64
|
+
tslib_1.__metadata("design:type", Function),
|
|
65
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
66
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
78
67
|
], PlayGroupQuery.prototype, "boards", null);
|
|
79
|
-
__decorate([
|
|
68
|
+
tslib_1.__decorate([
|
|
80
69
|
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
81
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
82
|
-
__metadata("design:type", Function),
|
|
83
|
-
__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
84
|
-
__metadata("design:returntype", Promise)
|
|
70
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
71
|
+
tslib_1.__metadata("design:type", Function),
|
|
72
|
+
tslib_1.__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
73
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
85
74
|
], PlayGroupQuery.prototype, "domain", null);
|
|
86
|
-
__decorate([
|
|
75
|
+
tslib_1.__decorate([
|
|
87
76
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
88
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
89
|
-
__metadata("design:type", Function),
|
|
90
|
-
__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
91
|
-
__metadata("design:returntype", Promise)
|
|
77
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
78
|
+
tslib_1.__metadata("design:type", Function),
|
|
79
|
+
tslib_1.__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
80
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
92
81
|
], PlayGroupQuery.prototype, "updater", null);
|
|
93
|
-
__decorate([
|
|
82
|
+
tslib_1.__decorate([
|
|
94
83
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
95
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
96
|
-
__metadata("design:type", Function),
|
|
97
|
-
__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
98
|
-
__metadata("design:returntype", Promise)
|
|
84
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
85
|
+
tslib_1.__metadata("design:type", Function),
|
|
86
|
+
tslib_1.__metadata("design:paramtypes", [play_group_1.PlayGroup]),
|
|
87
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
99
88
|
], PlayGroupQuery.prototype, "creator", null);
|
|
100
|
-
PlayGroupQuery = __decorate([
|
|
89
|
+
PlayGroupQuery = tslib_1.__decorate([
|
|
101
90
|
(0, type_graphql_1.Resolver)(play_group_1.PlayGroup)
|
|
102
91
|
], PlayGroupQuery);
|
|
103
92
|
exports.PlayGroupQuery = PlayGroupQuery;
|