@things-factory/board-service 9.0.0-beta.80 → 9.0.1
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/service/board/board-history.js +26 -16
- package/dist-server/service/board/board-history.js.map +1 -1
- package/dist-server/service/board/board-mutation.js +11 -7
- package/dist-server/service/board/board-mutation.js.map +1 -1
- package/dist-server/service/board/board-query.js +13 -11
- package/dist-server/service/board/board-query.js.map +1 -1
- package/dist-server/service/board/board-subscription.js +1 -0
- package/dist-server/service/board/board-subscription.js.map +1 -1
- package/dist-server/service/board/board-type.js +20 -20
- package/dist-server/service/board/board-type.js.map +1 -1
- package/dist-server/service/board/board.js +17 -17
- package/dist-server/service/board/board.js.map +1 -1
- package/dist-server/service/board-favorite/board-favorite-type.js +5 -5
- package/dist-server/service/board-favorite/board-favorite-type.js.map +1 -1
- package/dist-server/service/board-template/board-template-type.js +20 -17
- package/dist-server/service/board-template/board-template-type.js.map +1 -1
- package/dist-server/service/board-template/board-template.js +14 -14
- package/dist-server/service/board-template/board-template.js.map +1 -1
- package/dist-server/service/group/group-mutation.js +4 -4
- package/dist-server/service/group/group-mutation.js.map +1 -1
- package/dist-server/service/group/group-query.js +6 -6
- package/dist-server/service/group/group-query.js.map +1 -1
- package/dist-server/service/group/group-type.js +9 -9
- package/dist-server/service/group/group-type.js.map +1 -1
- package/dist-server/service/group/group.js +10 -10
- package/dist-server/service/group/group.js.map +1 -1
- package/dist-server/service/play-group/play-group-mutation.js +6 -6
- package/dist-server/service/play-group/play-group-mutation.js.map +1 -1
- package/dist-server/service/play-group/play-group-query.js +9 -7
- package/dist-server/service/play-group/play-group-query.js.map +1 -1
- package/dist-server/service/play-group/play-group-subscription.js +1 -0
- package/dist-server/service/play-group/play-group-subscription.js.map +1 -1
- package/dist-server/service/play-group/play-group-type.js +9 -9
- package/dist-server/service/play-group/play-group-type.js.map +1 -1
- package/dist-server/service/play-group/play-group.d.ts +1 -1
- package/dist-server/service/play-group/play-group.js +15 -11
- package/dist-server/service/play-group/play-group.js.map +1 -1
- package/dist-server/service/theme/theme-mutation.js +8 -6
- package/dist-server/service/theme/theme-mutation.js.map +1 -1
- package/dist-server/service/theme/theme-query.js +5 -5
- package/dist-server/service/theme/theme-query.js.map +1 -1
- package/dist-server/service/theme/theme-type.js +17 -17
- package/dist-server/service/theme/theme-type.js.map +1 -1
- package/dist-server/service/theme/theme.js +16 -13
- package/dist-server/service/theme/theme.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -9,88 +9,88 @@ let NewBoard = class NewBoard {
|
|
|
9
9
|
};
|
|
10
10
|
exports.NewBoard = NewBoard;
|
|
11
11
|
tslib_1.__decorate([
|
|
12
|
-
(0, type_graphql_1.Field)(),
|
|
12
|
+
(0, type_graphql_1.Field)({ description: 'The name of the new board.' }),
|
|
13
13
|
tslib_1.__metadata("design:type", String)
|
|
14
14
|
], NewBoard.prototype, "name", void 0);
|
|
15
15
|
tslib_1.__decorate([
|
|
16
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A detailed description for the new board.' }),
|
|
17
17
|
tslib_1.__metadata("design:type", String)
|
|
18
18
|
], NewBoard.prototype, "description", void 0);
|
|
19
19
|
tslib_1.__decorate([
|
|
20
|
-
(0, type_graphql_1.Field)(),
|
|
20
|
+
(0, type_graphql_1.Field)({ description: 'The JSON model for the new board.' }),
|
|
21
21
|
tslib_1.__metadata("design:type", String)
|
|
22
22
|
], NewBoard.prototype, "model", void 0);
|
|
23
23
|
tslib_1.__decorate([
|
|
24
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The type for the new board, can be 'main', 'sub', or 'popup'." }),
|
|
25
25
|
tslib_1.__metadata("design:type", String)
|
|
26
26
|
], NewBoard.prototype, "type", void 0);
|
|
27
27
|
tslib_1.__decorate([
|
|
28
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The ID of the group to associate the new board with.' }),
|
|
29
29
|
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], NewBoard.prototype, "groupId", void 0);
|
|
31
31
|
tslib_1.__decorate([
|
|
32
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A base64 encoded thumbnail image for the new board.' }),
|
|
33
33
|
tslib_1.__metadata("design:type", String)
|
|
34
34
|
], NewBoard.prototype, "thumbnail", void 0);
|
|
35
35
|
exports.NewBoard = NewBoard = tslib_1.__decorate([
|
|
36
|
-
(0, type_graphql_1.InputType)()
|
|
36
|
+
(0, type_graphql_1.InputType)({ description: 'Input for creating a new board.' })
|
|
37
37
|
], NewBoard);
|
|
38
38
|
let BoardPatch = class BoardPatch {
|
|
39
39
|
};
|
|
40
40
|
exports.BoardPatch = BoardPatch;
|
|
41
41
|
tslib_1.__decorate([
|
|
42
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new name for the board.' }),
|
|
43
43
|
tslib_1.__metadata("design:type", String)
|
|
44
44
|
], BoardPatch.prototype, "name", void 0);
|
|
45
45
|
tslib_1.__decorate([
|
|
46
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new description for the board.' }),
|
|
47
47
|
tslib_1.__metadata("design:type", String)
|
|
48
48
|
], BoardPatch.prototype, "description", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The new type for the board, can be 'main', 'sub', or 'popup'." }),
|
|
51
51
|
tslib_1.__metadata("design:type", String)
|
|
52
52
|
], BoardPatch.prototype, "type", void 0);
|
|
53
53
|
tslib_1.__decorate([
|
|
54
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new JSON model for the board.' }),
|
|
55
55
|
tslib_1.__metadata("design:type", String)
|
|
56
56
|
], BoardPatch.prototype, "model", void 0);
|
|
57
57
|
tslib_1.__decorate([
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
58
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new group ID for the board.' }),
|
|
59
59
|
tslib_1.__metadata("design:type", String)
|
|
60
60
|
], BoardPatch.prototype, "groupId", void 0);
|
|
61
61
|
tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new base64 encoded thumbnail image for the board.' }),
|
|
63
63
|
tslib_1.__metadata("design:type", String)
|
|
64
64
|
], BoardPatch.prototype, "thumbnail", void 0);
|
|
65
65
|
exports.BoardPatch = BoardPatch = tslib_1.__decorate([
|
|
66
|
-
(0, type_graphql_1.InputType)()
|
|
66
|
+
(0, type_graphql_1.InputType)({ description: 'Input for updating (patching) an existing board.' })
|
|
67
67
|
], BoardPatch);
|
|
68
68
|
let BoardList = class BoardList {
|
|
69
69
|
};
|
|
70
70
|
exports.BoardList = BoardList;
|
|
71
71
|
tslib_1.__decorate([
|
|
72
|
-
(0, type_graphql_1.Field)(type => [board_js_1.Board]),
|
|
72
|
+
(0, type_graphql_1.Field)(type => [board_js_1.Board], { description: 'The list of board items.' }),
|
|
73
73
|
tslib_1.__metadata("design:type", Array)
|
|
74
74
|
], BoardList.prototype, "items", void 0);
|
|
75
75
|
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
76
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The total number of boards.' }),
|
|
77
77
|
tslib_1.__metadata("design:type", Number)
|
|
78
78
|
], BoardList.prototype, "total", void 0);
|
|
79
79
|
exports.BoardList = BoardList = tslib_1.__decorate([
|
|
80
|
-
(0, type_graphql_1.ObjectType)()
|
|
80
|
+
(0, type_graphql_1.ObjectType)({ description: 'A paginated list of boards.' })
|
|
81
81
|
], BoardList);
|
|
82
82
|
let BoardHistoryList = class BoardHistoryList {
|
|
83
83
|
};
|
|
84
84
|
exports.BoardHistoryList = BoardHistoryList;
|
|
85
85
|
tslib_1.__decorate([
|
|
86
|
-
(0, type_graphql_1.Field)(type => [board_history_js_1.BoardHistory]),
|
|
86
|
+
(0, type_graphql_1.Field)(type => [board_history_js_1.BoardHistory], { description: 'The list of board history items.' }),
|
|
87
87
|
tslib_1.__metadata("design:type", Array)
|
|
88
88
|
], BoardHistoryList.prototype, "items", void 0);
|
|
89
89
|
tslib_1.__decorate([
|
|
90
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
90
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The total number of board histories.' }),
|
|
91
91
|
tslib_1.__metadata("design:type", Number)
|
|
92
92
|
], BoardHistoryList.prototype, "total", void 0);
|
|
93
93
|
exports.BoardHistoryList = BoardHistoryList = tslib_1.__decorate([
|
|
94
|
-
(0, type_graphql_1.ObjectType)()
|
|
94
|
+
(0, type_graphql_1.ObjectType)({ description: 'A paginated list of board histories.' })
|
|
95
95
|
], BoardHistoryList);
|
|
96
96
|
//# sourceMappingURL=board-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-type.js","sourceRoot":"","sources":["../../../server/service/board/board-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,yCAAkC;AAClC,yDAAiD;AAG1C,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAkBpB,CAAA;AAlBY,4BAAQ;AAEnB;IADC,IAAA,oBAAK,
|
|
1
|
+
{"version":3,"file":"board-type.js","sourceRoot":"","sources":["../../../server/service/board/board-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAE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,CAAC;;yCAC9D;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;;2CAC1D;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uDAAuD,EAAE,CAAC;;6CAC9E;qBAjBP,UAAU;IADtB,IAAA,wBAAS,EAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;GAClE,UAAU,CAkBtB;AAGM,IAAM,SAAS,GAAf,MAAM,SAAS;CAMrB,CAAA;AANY,8BAAS;AAEpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,gBAAK,CAAC,EAAE,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;;wCACtD;AAGd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;wCACtD;oBALF,SAAS;IADrB,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,SAAS,CAMrB;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAM5B,CAAA;AANY,4CAAgB;AAE3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,+BAAY,CAAC,EAAE,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;;+CAC9D;AAGrB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;+CAC/D;2BALF,gBAAgB;IAD5B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,gBAAgB,CAM5B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Board } from './board.js'\nimport { BoardHistory } from './board-history.js'\n\n@InputType({ description: 'Input for creating a new board.' })\nexport class NewBoard {\n @Field({ description: 'The name of the new board.' })\n name: string\n\n @Field({ nullable: true, description: 'A detailed description for the new board.' })\n description?: string\n\n @Field({ description: 'The JSON model for the new board.' })\n model: string\n\n @Field({ nullable: true, description: \"The type for the new board, can be 'main', 'sub', or 'popup'.\" })\n type?: 'main' | 'sub' | 'popup'\n\n @Field({ nullable: true, description: 'The ID of the group to associate the new board with.' })\n groupId?: string\n\n @Field({ nullable: true, description: 'A base64 encoded thumbnail image for the new board.' })\n thumbnail?: string\n}\n\n@InputType({ description: 'Input for updating (patching) an existing board.' })\nexport class BoardPatch {\n @Field({ nullable: true, description: 'The new name for the board.' })\n name?: string\n\n @Field({ nullable: true, description: 'The new description for the board.' })\n description?: string\n\n @Field({ nullable: true, description: \"The new type for the board, can be 'main', 'sub', or 'popup'.\" })\n type?: 'main' | 'sub' | 'popup'\n\n @Field({ nullable: true, description: 'The new JSON model for the board.' })\n model?: string\n\n @Field({ nullable: true, description: 'The new group ID for the board.' })\n groupId?: string\n\n @Field({ nullable: true, description: 'The new base64 encoded thumbnail image for the board.' })\n thumbnail?: string\n}\n\n@ObjectType({ description: 'A paginated list of boards.' })\nexport class BoardList {\n @Field(type => [Board], { description: 'The list of board items.' })\n items: Board[]\n\n @Field(type => Int, { description: 'The total number of boards.' })\n total: number\n}\n\n@ObjectType({ description: 'A paginated list of board histories.' })\nexport class BoardHistoryList {\n @Field(type => [BoardHistory], { description: 'The list of board history items.' })\n items: BoardHistory[]\n\n @Field(type => Int, { description: 'The total number of board histories.' })\n total: number\n}\n"]}
|
|
@@ -19,17 +19,17 @@ let Board = class Board {
|
|
|
19
19
|
exports.Board = Board;
|
|
20
20
|
tslib_1.__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
22
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true, description: 'Unique identifier for the board.' }),
|
|
23
23
|
tslib_1.__metadata("design:type", String)
|
|
24
24
|
], Board.prototype, "id", void 0);
|
|
25
25
|
tslib_1.__decorate([
|
|
26
26
|
(0, typeorm_1.Column)({ nullable: true, default: 1 }),
|
|
27
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The version of the board model.' }),
|
|
28
28
|
tslib_1.__metadata("design:type", Number)
|
|
29
29
|
], Board.prototype, "version", void 0);
|
|
30
30
|
tslib_1.__decorate([
|
|
31
31
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
32
|
-
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true }),
|
|
32
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain to which this board belongs.' }),
|
|
33
33
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
34
34
|
], Board.prototype, "domain", void 0);
|
|
35
35
|
tslib_1.__decorate([
|
|
@@ -38,22 +38,22 @@ tslib_1.__decorate([
|
|
|
38
38
|
], Board.prototype, "domainId", void 0);
|
|
39
39
|
tslib_1.__decorate([
|
|
40
40
|
(0, typeorm_1.Column)(),
|
|
41
|
-
(0, type_graphql_1.Field)(),
|
|
41
|
+
(0, type_graphql_1.Field)({ description: 'The name of the board.' }),
|
|
42
42
|
tslib_1.__metadata("design:type", String)
|
|
43
43
|
], Board.prototype, "name", void 0);
|
|
44
44
|
tslib_1.__decorate([
|
|
45
45
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A detailed description of the board.' }),
|
|
47
47
|
tslib_1.__metadata("design:type", String)
|
|
48
48
|
], Board.prototype, "description", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({ nullable: true, default: 'main' }),
|
|
51
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The type of the board, can be 'main', 'sub', or 'popup'." }),
|
|
52
52
|
tslib_1.__metadata("design:type", String)
|
|
53
53
|
], Board.prototype, "type", void 0);
|
|
54
54
|
tslib_1.__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({ nullable: true, default: 'draft' }),
|
|
56
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The state of the board, can be 'draft' or 'released'." }),
|
|
57
57
|
tslib_1.__metadata("design:type", String)
|
|
58
58
|
], Board.prototype, "state", void 0);
|
|
59
59
|
tslib_1.__decorate([
|
|
@@ -68,7 +68,7 @@ tslib_1.__decorate([
|
|
|
68
68
|
: 'varchar',
|
|
69
69
|
length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined
|
|
70
70
|
}),
|
|
71
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The JSON model defining the layout and components of the board.' }),
|
|
72
72
|
tslib_1.__metadata("design:type", String)
|
|
73
73
|
], Board.prototype, "model", void 0);
|
|
74
74
|
tslib_1.__decorate([
|
|
@@ -83,12 +83,12 @@ tslib_1.__decorate([
|
|
|
83
83
|
: 'varchar',
|
|
84
84
|
length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined
|
|
85
85
|
}),
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A base64 encoded thumbnail image of the board.' }),
|
|
87
87
|
tslib_1.__metadata("design:type", String)
|
|
88
88
|
], Board.prototype, "thumbnail", void 0);
|
|
89
89
|
tslib_1.__decorate([
|
|
90
90
|
(0, typeorm_1.ManyToOne)(type => group_js_1.Group, group => group.boards),
|
|
91
|
-
(0, type_graphql_1.Field)(type => group_js_1.Group, { nullable: true }),
|
|
91
|
+
(0, type_graphql_1.Field)(type => group_js_1.Group, { nullable: true, description: 'The group to which this board belongs.' }),
|
|
92
92
|
tslib_1.__metadata("design:type", group_js_1.Group)
|
|
93
93
|
], Board.prototype, "group", void 0);
|
|
94
94
|
tslib_1.__decorate([
|
|
@@ -97,22 +97,22 @@ tslib_1.__decorate([
|
|
|
97
97
|
], Board.prototype, "groupId", void 0);
|
|
98
98
|
tslib_1.__decorate([
|
|
99
99
|
(0, typeorm_1.ManyToMany)(type => play_group_js_1.PlayGroup, playGroup => playGroup.boards),
|
|
100
|
-
(0, type_graphql_1.Field)(type => [play_group_js_1.PlayGroup], { nullable: true }),
|
|
100
|
+
(0, type_graphql_1.Field)(type => [play_group_js_1.PlayGroup], { nullable: true, description: 'A list of play groups that this board is a part of.' }),
|
|
101
101
|
tslib_1.__metadata("design:type", Array)
|
|
102
102
|
], Board.prototype, "playGroups", void 0);
|
|
103
103
|
tslib_1.__decorate([
|
|
104
104
|
(0, typeorm_1.CreateDateColumn)(),
|
|
105
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
105
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The timestamp when the board was created.' }),
|
|
106
106
|
tslib_1.__metadata("design:type", Date)
|
|
107
107
|
], Board.prototype, "createdAt", void 0);
|
|
108
108
|
tslib_1.__decorate([
|
|
109
109
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
110
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
110
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The timestamp when the board was last updated.' }),
|
|
111
111
|
tslib_1.__metadata("design:type", Date)
|
|
112
112
|
], Board.prototype, "updatedAt", void 0);
|
|
113
113
|
tslib_1.__decorate([
|
|
114
114
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
115
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
115
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who created the board.' }),
|
|
116
116
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
117
117
|
], Board.prototype, "creator", void 0);
|
|
118
118
|
tslib_1.__decorate([
|
|
@@ -121,7 +121,7 @@ tslib_1.__decorate([
|
|
|
121
121
|
], Board.prototype, "creatorId", void 0);
|
|
122
122
|
tslib_1.__decorate([
|
|
123
123
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
124
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
124
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who last updated the board.' }),
|
|
125
125
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
126
126
|
], Board.prototype, "updater", void 0);
|
|
127
127
|
tslib_1.__decorate([
|
|
@@ -130,7 +130,7 @@ tslib_1.__decorate([
|
|
|
130
130
|
], Board.prototype, "updaterId", void 0);
|
|
131
131
|
tslib_1.__decorate([
|
|
132
132
|
(0, typeorm_1.DeleteDateColumn)(),
|
|
133
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The timestamp when the board was soft-deleted.' }),
|
|
134
134
|
tslib_1.__metadata("design:type", Date)
|
|
135
135
|
], Board.prototype, "deletedAt", void 0);
|
|
136
136
|
exports.Board = Board = tslib_1.__decorate([
|
|
@@ -140,6 +140,6 @@ exports.Board = Board = tslib_1.__decorate([
|
|
|
140
140
|
where: '"deleted_at" IS NULL'
|
|
141
141
|
}),
|
|
142
142
|
(0, typeorm_1.Index)('ix_board_3', (board) => [board.domain, board.group]),
|
|
143
|
-
(0, type_graphql_1.ObjectType)({ description: '
|
|
143
|
+
(0, type_graphql_1.ObjectType)({ description: 'Represents a visual dashboard or display board.' })
|
|
144
144
|
], Board);
|
|
145
145
|
//# sourceMappingURL=board.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board.js","sourceRoot":"","sources":["../../../server/service/board/board.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,gDAAyC;AACzC,+DAAuD;AACvD,yDAAgD;AAChD,6CAA4C;AAE5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAS7B,IAAM,KAAK,GAAX,MAAM,KAAK;IAAX;QAOL,YAAO,GAAY,CAAC,CAAA;IA2FtB,CAAC;CAAA,CAAA;AAlGY,sBAAK;AAGP;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"board.js","sourceRoot":"","sources":["../../../server/service/board/board.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,gDAAyC;AACzC,+DAAuD;AACvD,yDAAgD;AAChD,6CAA4C;AAE5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAS7B,IAAM,KAAK,GAAX,MAAM,KAAK;IAAX;QAOL,YAAO,GAAY,CAAC,CAAA;IA2FtB,CAAC;CAAA,CAAA;AAlGY,sBAAK;AAGP;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;;iCACnE;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtC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E,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gDAAgD,EAAE,CAAC;sCAC7E,IAAI;wCAAA;gBAjGL,KAAK;IAPjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,YAAY,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE;QACjE,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,YAAY,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClE,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iDAAiD,EAAE,CAAC;GAClE,KAAK,CAkGjB","sourcesContent":["import {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToMany,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n DeleteDateColumn,\n UpdateDateColumn\n} from 'typeorm'\nimport { Field, ID, ObjectType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { Group } from '../group/group.js'\nimport { PlayGroup } from '../play-group/play-group.js'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_board_1', (board: Board) => [board.domain, board.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_board_3', (board: Board) => [board.domain, board.group])\n@ObjectType({ description: 'Represents a visual dashboard or display board.' })\nexport class Board {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true, description: 'Unique identifier for the board.' })\n readonly id?: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true, description: 'The version of the board model.' })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain to which this board belongs.' })\n domain?: Domain\n\n @RelationId((board: Board) => board.domain)\n domainId?: string\n\n @Column()\n @Field({ description: 'The name of the board.' })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'A detailed description of the board.' })\n description?: string\n\n @Column({ nullable: true, default: 'main' })\n @Field({ nullable: true, description: \"The type of the board, can be 'main', 'sub', or 'popup'.\" })\n type?: 'main' | 'sub' | 'popup'\n\n @Column({ nullable: true, default: 'draft' })\n @Field({ nullable: true, description: \"The state of the board, can be 'draft' or 'released'.\" })\n state?: 'draft' | 'released'\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined\n })\n @Field({ nullable: true, description: 'The JSON model defining the layout and components of the board.' })\n model?: string\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined\n })\n @Field({ nullable: true, description: 'A base64 encoded thumbnail image of the board.' })\n thumbnail?: string\n\n @ManyToOne(type => Group, group => group.boards)\n @Field(type => Group, { nullable: true, description: 'The group to which this board belongs.' })\n group?: Group\n\n @RelationId((board: Board) => board.group)\n groupId?: string\n\n @ManyToMany(type => PlayGroup, playGroup => playGroup.boards)\n @Field(type => [PlayGroup], { nullable: true, description: 'A list of play groups that this board is a part of.' })\n playGroups?: PlayGroup[]\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'The timestamp when the board was created.' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'The timestamp when the board was last updated.' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who created the board.' })\n creator?: User\n\n @RelationId((board: Board) => board.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who last updated the board.' })\n updater?: User\n\n @RelationId((board: Board) => board.updater)\n updaterId?: string\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'The timestamp when the board was soft-deleted.' })\n deletedAt?: Date\n}\n"]}
|
|
@@ -8,24 +8,24 @@ let BoardFavorite = class BoardFavorite extends board_js_1.Board {
|
|
|
8
8
|
};
|
|
9
9
|
exports.BoardFavorite = BoardFavorite;
|
|
10
10
|
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
11
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The unique identifier for the favorite marking itself.' }),
|
|
12
12
|
tslib_1.__metadata("design:type", String)
|
|
13
13
|
], BoardFavorite.prototype, "favoriteId", void 0);
|
|
14
14
|
exports.BoardFavorite = BoardFavorite = tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.ObjectType)()
|
|
15
|
+
(0, type_graphql_1.ObjectType)({ description: 'Represents a board that a user has marked as a favorite.' })
|
|
16
16
|
], BoardFavorite);
|
|
17
17
|
let BoardFavoriteList = class BoardFavoriteList {
|
|
18
18
|
};
|
|
19
19
|
exports.BoardFavoriteList = BoardFavoriteList;
|
|
20
20
|
tslib_1.__decorate([
|
|
21
|
-
(0, type_graphql_1.Field)(type => [BoardFavorite]),
|
|
21
|
+
(0, type_graphql_1.Field)(type => [BoardFavorite], { description: 'The list of favorite board items.' }),
|
|
22
22
|
tslib_1.__metadata("design:type", Array)
|
|
23
23
|
], BoardFavoriteList.prototype, "items", void 0);
|
|
24
24
|
tslib_1.__decorate([
|
|
25
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
25
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The total number of favorite boards.' }),
|
|
26
26
|
tslib_1.__metadata("design:type", Number)
|
|
27
27
|
], BoardFavoriteList.prototype, "total", void 0);
|
|
28
28
|
exports.BoardFavoriteList = BoardFavoriteList = tslib_1.__decorate([
|
|
29
|
-
(0, type_graphql_1.ObjectType)()
|
|
29
|
+
(0, type_graphql_1.ObjectType)({ description: 'A paginated list of favorite boards.' })
|
|
30
30
|
], BoardFavoriteList);
|
|
31
31
|
//# sourceMappingURL=board-favorite-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-favorite-type.js","sourceRoot":"","sources":["../../../server/service/board-favorite/board-favorite-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AAErD,gDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,gBAAK;CAGvC,CAAA;AAHY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"board-favorite-type.js","sourceRoot":"","sources":["../../../server/service/board-favorite/board-favorite-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AAErD,gDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,gBAAK;CAGvC,CAAA;AAHY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;;iDAC9E;wBAFR,aAAa;IADzB,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,0DAA0D,EAAE,CAAC;GAC3E,aAAa,CAGzB;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;;gDAC/D;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;gDAC/D;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,iBAAiB,CAM7B","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\n\nimport { Board } from '../board/board.js'\n\n@ObjectType({ description: 'Represents a board that a user has marked as a favorite.' })\nexport class BoardFavorite extends Board {\n @Field({ nullable: true, description: 'The unique identifier for the favorite marking itself.' })\n favoriteId?: string\n}\n\n@ObjectType({ description: 'A paginated list of favorite boards.' })\nexport class BoardFavoriteList {\n @Field(type => [BoardFavorite], { description: 'The list of favorite board items.' })\n items: BoardFavorite[]\n\n @Field(type => Int, { description: 'The total number of favorite boards.' })\n total: number\n}\n"]}
|
|
@@ -8,74 +8,77 @@ let NewBoardTemplate = class NewBoardTemplate {
|
|
|
8
8
|
};
|
|
9
9
|
exports.NewBoardTemplate = NewBoardTemplate;
|
|
10
10
|
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(),
|
|
11
|
+
(0, type_graphql_1.Field)({ description: 'The name of the new board template.' }),
|
|
12
12
|
tslib_1.__metadata("design:type", String)
|
|
13
13
|
], NewBoardTemplate.prototype, "name", void 0);
|
|
14
14
|
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)(),
|
|
15
|
+
(0, type_graphql_1.Field)({ description: 'A detailed description for the new board template.' }),
|
|
16
16
|
tslib_1.__metadata("design:type", String)
|
|
17
17
|
], NewBoardTemplate.prototype, "description", void 0);
|
|
18
18
|
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)(),
|
|
19
|
+
(0, type_graphql_1.Field)({ description: 'The JSON model for the new board template.' }),
|
|
20
20
|
tslib_1.__metadata("design:type", String)
|
|
21
21
|
], NewBoardTemplate.prototype, "model", void 0);
|
|
22
22
|
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)(),
|
|
23
|
+
(0, type_graphql_1.Field)({ description: "The visibility for the new board template: 'private' or 'public'." }),
|
|
24
24
|
tslib_1.__metadata("design:type", String)
|
|
25
25
|
], NewBoardTemplate.prototype, "visibility", void 0);
|
|
26
26
|
tslib_1.__decorate([
|
|
27
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A base64 encoded thumbnail image for the new board template.' }),
|
|
28
28
|
tslib_1.__metadata("design:type", String)
|
|
29
29
|
], NewBoardTemplate.prototype, "thumbnail", void 0);
|
|
30
30
|
exports.NewBoardTemplate = NewBoardTemplate = tslib_1.__decorate([
|
|
31
|
-
(0, type_graphql_1.InputType)()
|
|
31
|
+
(0, type_graphql_1.InputType)({ description: 'Input for creating a new board template.' })
|
|
32
32
|
], NewBoardTemplate);
|
|
33
33
|
let BoardTemplatePatch = class BoardTemplatePatch {
|
|
34
34
|
};
|
|
35
35
|
exports.BoardTemplatePatch = BoardTemplatePatch;
|
|
36
36
|
tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
37
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true, description: 'The unique identifier of the board template to update.' }),
|
|
38
38
|
tslib_1.__metadata("design:type", String)
|
|
39
39
|
], BoardTemplatePatch.prototype, "id", void 0);
|
|
40
40
|
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new name for the board template.' }),
|
|
42
42
|
tslib_1.__metadata("design:type", String)
|
|
43
43
|
], BoardTemplatePatch.prototype, "name", void 0);
|
|
44
44
|
tslib_1.__decorate([
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new description for the board template.' }),
|
|
46
46
|
tslib_1.__metadata("design:type", String)
|
|
47
47
|
], BoardTemplatePatch.prototype, "description", void 0);
|
|
48
48
|
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new JSON model for the board template.' }),
|
|
50
50
|
tslib_1.__metadata("design:type", String)
|
|
51
51
|
], BoardTemplatePatch.prototype, "model", void 0);
|
|
52
52
|
tslib_1.__decorate([
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The new visibility for the board template: 'private' or 'public'." }),
|
|
54
54
|
tslib_1.__metadata("design:type", String)
|
|
55
55
|
], BoardTemplatePatch.prototype, "visibility", void 0);
|
|
56
56
|
tslib_1.__decorate([
|
|
57
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The new base64 encoded thumbnail image for the board template.' }),
|
|
58
58
|
tslib_1.__metadata("design:type", String)
|
|
59
59
|
], BoardTemplatePatch.prototype, "thumbnail", void 0);
|
|
60
60
|
tslib_1.__decorate([
|
|
61
|
-
(0, type_graphql_1.Field)({
|
|
61
|
+
(0, type_graphql_1.Field)({
|
|
62
|
+
nullable: true,
|
|
63
|
+
description: 'A flag indicating whether the template is being created, updated, or deleted.'
|
|
64
|
+
}),
|
|
62
65
|
tslib_1.__metadata("design:type", String)
|
|
63
66
|
], BoardTemplatePatch.prototype, "cuFlag", void 0);
|
|
64
67
|
exports.BoardTemplatePatch = BoardTemplatePatch = tslib_1.__decorate([
|
|
65
|
-
(0, type_graphql_1.InputType)()
|
|
68
|
+
(0, type_graphql_1.InputType)({ description: 'Input for updating (patching) an existing board template.' })
|
|
66
69
|
], BoardTemplatePatch);
|
|
67
70
|
let BoardTemplateList = class BoardTemplateList {
|
|
68
71
|
};
|
|
69
72
|
exports.BoardTemplateList = BoardTemplateList;
|
|
70
73
|
tslib_1.__decorate([
|
|
71
|
-
(0, type_graphql_1.Field)(type => [board_template_js_1.BoardTemplate]),
|
|
74
|
+
(0, type_graphql_1.Field)(type => [board_template_js_1.BoardTemplate], { description: 'The list of board template items.' }),
|
|
72
75
|
tslib_1.__metadata("design:type", Array)
|
|
73
76
|
], BoardTemplateList.prototype, "items", void 0);
|
|
74
77
|
tslib_1.__decorate([
|
|
75
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
78
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The total number of board templates.' }),
|
|
76
79
|
tslib_1.__metadata("design:type", Number)
|
|
77
80
|
], BoardTemplateList.prototype, "total", void 0);
|
|
78
81
|
exports.BoardTemplateList = BoardTemplateList = tslib_1.__decorate([
|
|
79
|
-
(0, type_graphql_1.ObjectType)()
|
|
82
|
+
(0, type_graphql_1.ObjectType)({ description: 'A paginated list of board templates.' })
|
|
80
83
|
], BoardTemplateList);
|
|
81
84
|
//# sourceMappingURL=board-template-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-template-type.js","sourceRoot":"","sources":["../../../server/service/board-template/board-template-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,2DAAmD;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAe5B,CAAA;AAfY,4CAAgB;AAE3B;IADC,IAAA,oBAAK,
|
|
1
|
+
{"version":3,"file":"board-template-type.js","sourceRoot":"","sources":["../../../server/service/board-template/board-template-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,2DAAmD;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAe5B,CAAA;AAfY,4CAAgB;AAE3B;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;;8CAClD;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,oDAAoD,EAAE,CAAC;;qDAC1D;AAGnB;IADC,IAAA,oBAA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,2DAA2D,EAAE,CAAC;GAC3E,kBAAkB,CAwB9B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iCAAa,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;;gDAC/D;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;gDAC/D;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,iBAAiB,CAM7B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BoardTemplate } from './board-template.js'\n\n@InputType({ description: 'Input for creating a new board template.' })\nexport class NewBoardTemplate {\n @Field({ description: 'The name of the new board template.' })\n name: string\n\n @Field({ description: 'A detailed description for the new board template.' })\n description: string\n\n @Field({ description: 'The JSON model for the new board template.' })\n model: string\n\n @Field({ description: \"The visibility for the new board template: 'private' or 'public'.\" })\n visibility: 'private' | 'public'\n\n @Field({ nullable: true, description: 'A base64 encoded thumbnail image for the new board template.' })\n thumbnail: string\n}\n\n@InputType({ description: 'Input for updating (patching) an existing board template.' })\nexport class BoardTemplatePatch {\n @Field(type => ID, { nullable: true, description: 'The unique identifier of the board template to update.' })\n id?: string\n\n @Field({ nullable: true, description: 'The new name for the board template.' })\n name?: string\n\n @Field({ nullable: true, description: 'The new description for the board template.' })\n description?: string\n\n @Field({ nullable: true, description: 'The new JSON model for the board template.' })\n model: string\n\n @Field({ nullable: true, description: \"The new visibility for the board template: 'private' or 'public'.\" })\n visibility?: 'private' | 'public'\n\n @Field({ nullable: true, description: 'The new base64 encoded thumbnail image for the board template.' })\n thumbnail?: string\n\n @Field({\n nullable: true,\n description: 'A flag indicating whether the template is being created, updated, or deleted.'\n })\n cuFlag?: string\n}\n\n@ObjectType({ description: 'A paginated list of board templates.' })\nexport class BoardTemplateList {\n @Field(type => [BoardTemplate], { description: 'The list of board template items.' })\n items: BoardTemplate[]\n\n @Field(type => Int, { description: 'The total number of board templates.' })\n total: number\n}\n"]}
|
|
@@ -16,19 +16,19 @@ var BoardTemplateStatus;
|
|
|
16
16
|
})(BoardTemplateStatus || (exports.BoardTemplateStatus = BoardTemplateStatus = {}));
|
|
17
17
|
(0, type_graphql_1.registerEnumType)(BoardTemplateStatus, {
|
|
18
18
|
name: 'BoardTemplateStatus',
|
|
19
|
-
description: '
|
|
19
|
+
description: 'The publication status of a board template, indicating whether it is a draft or released.'
|
|
20
20
|
});
|
|
21
21
|
let BoardTemplate = class BoardTemplate {
|
|
22
22
|
};
|
|
23
23
|
exports.BoardTemplate = BoardTemplate;
|
|
24
24
|
tslib_1.__decorate([
|
|
25
25
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
26
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Unique identifier for the board template.' }),
|
|
27
27
|
tslib_1.__metadata("design:type", String)
|
|
28
28
|
], BoardTemplate.prototype, "id", void 0);
|
|
29
29
|
tslib_1.__decorate([
|
|
30
30
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
31
|
-
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
31
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { description: 'The domain to which this template belongs.' }),
|
|
32
32
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
33
33
|
], BoardTemplate.prototype, "domain", void 0);
|
|
34
34
|
tslib_1.__decorate([
|
|
@@ -37,22 +37,22 @@ tslib_1.__decorate([
|
|
|
37
37
|
], BoardTemplate.prototype, "domainId", void 0);
|
|
38
38
|
tslib_1.__decorate([
|
|
39
39
|
(0, typeorm_1.Column)(),
|
|
40
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The name of the board template.' }),
|
|
41
41
|
tslib_1.__metadata("design:type", String)
|
|
42
42
|
], BoardTemplate.prototype, "name", void 0);
|
|
43
43
|
tslib_1.__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A detailed description of the board template.' }),
|
|
46
46
|
tslib_1.__metadata("design:type", String)
|
|
47
47
|
], BoardTemplate.prototype, "description", void 0);
|
|
48
48
|
tslib_1.__decorate([
|
|
49
49
|
(0, typeorm_1.Column)('simple-json', { nullable: true, default: null }),
|
|
50
|
-
(0, type_graphql_1.Field)(type =>
|
|
50
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true, description: 'A list of tags for categorizing the template.' }),
|
|
51
51
|
tslib_1.__metadata("design:type", Array)
|
|
52
52
|
], BoardTemplate.prototype, "tags", void 0);
|
|
53
53
|
tslib_1.__decorate([
|
|
54
54
|
(0, typeorm_1.Column)({ nullable: true, default: 'private' }),
|
|
55
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The visibility of the template: 'private', 'public', or 'domain'." }),
|
|
56
56
|
tslib_1.__metadata("design:type", String)
|
|
57
57
|
], BoardTemplate.prototype, "visibility", void 0);
|
|
58
58
|
tslib_1.__decorate([
|
|
@@ -67,7 +67,7 @@ tslib_1.__decorate([
|
|
|
67
67
|
: 'varchar',
|
|
68
68
|
length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined
|
|
69
69
|
}),
|
|
70
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The JSON model that defines the layout and components of the template.' }),
|
|
71
71
|
tslib_1.__metadata("design:type", String)
|
|
72
72
|
], BoardTemplate.prototype, "model", void 0);
|
|
73
73
|
tslib_1.__decorate([
|
|
@@ -82,22 +82,22 @@ tslib_1.__decorate([
|
|
|
82
82
|
: 'varchar',
|
|
83
83
|
length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined
|
|
84
84
|
}),
|
|
85
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
85
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A base64 encoded thumbnail image of the template.' }),
|
|
86
86
|
tslib_1.__metadata("design:type", String)
|
|
87
87
|
], BoardTemplate.prototype, "thumbnail", void 0);
|
|
88
88
|
tslib_1.__decorate([
|
|
89
89
|
(0, typeorm_1.CreateDateColumn)(),
|
|
90
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
90
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The timestamp when the template was created.' }),
|
|
91
91
|
tslib_1.__metadata("design:type", Date)
|
|
92
92
|
], BoardTemplate.prototype, "createdAt", void 0);
|
|
93
93
|
tslib_1.__decorate([
|
|
94
94
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
95
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The timestamp when the template was last updated.' }),
|
|
96
96
|
tslib_1.__metadata("design:type", Date)
|
|
97
97
|
], BoardTemplate.prototype, "updatedAt", void 0);
|
|
98
98
|
tslib_1.__decorate([
|
|
99
99
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
100
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
100
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who created the template.' }),
|
|
101
101
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
102
102
|
], BoardTemplate.prototype, "creator", void 0);
|
|
103
103
|
tslib_1.__decorate([
|
|
@@ -106,7 +106,7 @@ tslib_1.__decorate([
|
|
|
106
106
|
], BoardTemplate.prototype, "creatorId", void 0);
|
|
107
107
|
tslib_1.__decorate([
|
|
108
108
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
109
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
109
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The user who last updated the template.' }),
|
|
110
110
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
111
111
|
], BoardTemplate.prototype, "updater", void 0);
|
|
112
112
|
tslib_1.__decorate([
|
|
@@ -118,6 +118,6 @@ exports.BoardTemplate = BoardTemplate = tslib_1.__decorate([
|
|
|
118
118
|
(0, typeorm_1.Index)('ix_board_template_0', (boardTemplate) => [boardTemplate.domain, boardTemplate.name], {
|
|
119
119
|
unique: true
|
|
120
120
|
}),
|
|
121
|
-
(0, type_graphql_1.ObjectType)({ description: '
|
|
121
|
+
(0, type_graphql_1.ObjectType)({ description: 'A reusable template for creating new boards.' })
|
|
122
122
|
], BoardTemplate);
|
|
123
123
|
//# sourceMappingURL=board-template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-template.js","sourceRoot":"","sources":["../../../server/service/board-template/board-template.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAA2E;AAE3E,iDAA4D;AAC5D,yDAAgD;AAChD,6CAA4C;AAE5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,4CAAqB,CAAA;AACvB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAA,+BAAgB,EAAC,mBAAmB,EAAE;IACpC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"board-template.js","sourceRoot":"","sources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zB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE;QAC1G,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;GAC/D,aAAa,CA+EzB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\nexport enum BoardTemplateStatus {\n DRAFT = 'DRAFT',\n RELEASED = 'RELEASED'\n}\n\nregisterEnumType(BoardTemplateStatus, {\n name: 'BoardTemplateStatus',\n description: 'The publication status of a board template, indicating whether it is a draft or released.'\n})\n\n@Entity()\n@Index('ix_board_template_0', (boardTemplate: BoardTemplate) => [boardTemplate.domain, boardTemplate.name], {\n unique: true\n})\n@ObjectType({ description: 'A reusable template for creating new boards.' })\nexport class BoardTemplate {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Unique identifier for the board template.' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { description: 'The domain to which this template belongs.' })\n domain?: Domain\n\n @RelationId((boardTemplate: BoardTemplate) => boardTemplate.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true, description: 'The name of the board template.' })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'A detailed description of the board template.' })\n description?: string\n\n @Column('simple-json', { nullable: true, default: null })\n @Field(type => [String], { nullable: true, description: 'A list of tags for categorizing the template.' })\n tags?: string[]\n\n @Column({ nullable: true, default: 'private' })\n @Field({ nullable: true, description: \"The visibility of the template: 'private', 'public', or 'domain'.\" })\n visibility?: string // 'private' | 'public' | 'domain'\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined\n })\n @Field({ nullable: true, description: 'The JSON model that defines the layout and components of the template.' })\n model?: string\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n length: DATABASE_TYPE == 'mssql' ? 'MAX' : undefined\n })\n @Field({ nullable: true, description: 'A base64 encoded thumbnail image of the template.' })\n thumbnail?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'The timestamp when the template was created.' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'The timestamp when the template was last updated.' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who created the template.' })\n creator?: User\n\n @RelationId((boardTemplate: BoardTemplate) => boardTemplate.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The user who last updated the template.' })\n updater?: User\n\n @RelationId((boardTemplate: BoardTemplate) => boardTemplate.updater)\n updaterId?: string\n}\n"]}
|