@builder6/server 0.2.0
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/app.controller.d.ts +3 -0
- package/dist/app.controller.js +29 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.express.d.ts +2 -0
- package/dist/app.express.js +45 -0
- package/dist/app.express.js.map +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +48 -0
- package/dist/app.module.js.map +1 -0
- package/dist/auth/admin.guard.d.ts +8 -0
- package/dist/auth/admin.guard.js +47 -0
- package/dist/auth/admin.guard.js.map +1 -0
- package/dist/auth/auth.controller.d.ts +7 -0
- package/dist/auth/auth.controller.js +80 -0
- package/dist/auth/auth.controller.js.map +1 -0
- package/dist/auth/auth.guard.d.ts +7 -0
- package/dist/auth/auth.guard.js +41 -0
- package/dist/auth/auth.guard.js.map +1 -0
- package/dist/auth/auth.module.d.ts +2 -0
- package/dist/auth/auth.module.js +34 -0
- package/dist/auth/auth.module.js.map +1 -0
- package/dist/auth/auth.service.d.ts +22 -0
- package/dist/auth/auth.service.js +172 -0
- package/dist/auth/auth.service.js.map +1 -0
- package/dist/auth/index.d.ts +5 -0
- package/dist/auth/index.js +22 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/b6.config.d.ts +0 -0
- package/dist/b6.config.js +6 -0
- package/dist/b6.config.js.map +1 -0
- package/dist/b6.server.d.ts +2 -0
- package/dist/b6.server.js +276 -0
- package/dist/b6.server.js.map +1 -0
- package/dist/files/files.controller.d.ts +8 -0
- package/dist/files/files.controller.js +110 -0
- package/dist/files/files.controller.js.map +1 -0
- package/dist/files/files.module.d.ts +2 -0
- package/dist/files/files.module.js +25 -0
- package/dist/files/files.module.js.map +1 -0
- package/dist/files/files.service.d.ts +30 -0
- package/dist/files/files.service.js +206 -0
- package/dist/files/files.service.js.map +1 -0
- package/dist/files/index.d.ts +3 -0
- package/dist/files/index.js +20 -0
- package/dist/files/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +10 -0
- package/dist/main.js.map +1 -0
- package/dist/microsoft365/microsoft365.controller.d.ts +8 -0
- package/dist/microsoft365/microsoft365.controller.js +83 -0
- package/dist/microsoft365/microsoft365.controller.js.map +1 -0
- package/dist/microsoft365/microsoft365.module.d.ts +2 -0
- package/dist/microsoft365/microsoft365.module.js +22 -0
- package/dist/microsoft365/microsoft365.module.js.map +1 -0
- package/dist/microsoft365/microsoft365.service.d.ts +3 -0
- package/dist/microsoft365/microsoft365.service.js +32 -0
- package/dist/microsoft365/microsoft365.service.js.map +1 -0
- package/dist/moleculer/env.config.d.ts +2 -0
- package/dist/moleculer/env.config.js +38 -0
- package/dist/moleculer/env.config.js.map +1 -0
- package/dist/moleculer/moleculer.config.d.ts +2 -0
- package/dist/moleculer/moleculer.config.js +78 -0
- package/dist/moleculer/moleculer.config.js.map +1 -0
- package/dist/moleculer/moleculer.module.d.ts +2 -0
- package/dist/moleculer/moleculer.module.js +20 -0
- package/dist/moleculer/moleculer.module.js.map +1 -0
- package/dist/moleculer/moleculer.service.d.ts +11 -0
- package/dist/moleculer/moleculer.service.js +95 -0
- package/dist/moleculer/moleculer.service.js.map +1 -0
- package/dist/mongodb/index.d.ts +2 -0
- package/dist/mongodb/index.js +19 -0
- package/dist/mongodb/index.js.map +1 -0
- package/dist/mongodb/mongodb.module.d.ts +2 -0
- package/dist/mongodb/mongodb.module.js +21 -0
- package/dist/mongodb/mongodb.module.js.map +1 -0
- package/dist/mongodb/mongodb.service.d.ts +17 -0
- package/dist/mongodb/mongodb.service.js +113 -0
- package/dist/mongodb/mongodb.service.js.map +1 -0
- package/dist/oidc/oidc.controller.d.ts +7 -0
- package/dist/oidc/oidc.controller.js +93 -0
- package/dist/oidc/oidc.controller.js.map +1 -0
- package/dist/oidc/oidc.module.d.ts +2 -0
- package/dist/oidc/oidc.module.js +22 -0
- package/dist/oidc/oidc.module.js.map +1 -0
- package/dist/oidc/oidc.service.d.ts +15 -0
- package/dist/oidc/oidc.service.js +38 -0
- package/dist/oidc/oidc.service.js.map +1 -0
- package/dist/rooms/globals/augmentation.d.ts +25 -0
- package/dist/rooms/globals/augmentation.js +3 -0
- package/dist/rooms/globals/augmentation.js.map +1 -0
- package/dist/rooms/lib/DateToString.d.ts +3 -0
- package/dist/rooms/lib/DateToString.js +3 -0
- package/dist/rooms/lib/DateToString.js.map +1 -0
- package/dist/rooms/lib/Json.d.ts +9 -0
- package/dist/rooms/lib/Json.js +18 -0
- package/dist/rooms/lib/Json.js.map +1 -0
- package/dist/rooms/lib/utils.d.ts +33 -0
- package/dist/rooms/lib/utils.js +122 -0
- package/dist/rooms/lib/utils.js.map +1 -0
- package/dist/rooms/protocol/AuthToken.d.ts +50 -0
- package/dist/rooms/protocol/AuthToken.js +49 -0
- package/dist/rooms/protocol/AuthToken.js.map +1 -0
- package/dist/rooms/protocol/Authentication.d.ts +22 -0
- package/dist/rooms/protocol/Authentication.js +3 -0
- package/dist/rooms/protocol/Authentication.js.map +1 -0
- package/dist/rooms/protocol/BaseActivitiesData.d.ts +4 -0
- package/dist/rooms/protocol/BaseActivitiesData.js +3 -0
- package/dist/rooms/protocol/BaseActivitiesData.js.map +1 -0
- package/dist/rooms/protocol/BaseRoomInfo.d.ts +6 -0
- package/dist/rooms/protocol/BaseRoomInfo.js +3 -0
- package/dist/rooms/protocol/BaseRoomInfo.js.map +1 -0
- package/dist/rooms/protocol/BaseUserMeta.d.ts +10 -0
- package/dist/rooms/protocol/BaseUserMeta.js +3 -0
- package/dist/rooms/protocol/BaseUserMeta.js.map +1 -0
- package/dist/rooms/protocol/ClientMsg.d.ts +41 -0
- package/dist/rooms/protocol/ClientMsg.js +13 -0
- package/dist/rooms/protocol/ClientMsg.js.map +1 -0
- package/dist/rooms/protocol/Comments.d.ts +146 -0
- package/dist/rooms/protocol/Comments.js +3 -0
- package/dist/rooms/protocol/Comments.js.map +1 -0
- package/dist/rooms/protocol/InboxNotifications.d.ts +49 -0
- package/dist/rooms/protocol/InboxNotifications.js +3 -0
- package/dist/rooms/protocol/InboxNotifications.js.map +1 -0
- package/dist/rooms/protocol/Op.d.ts +82 -0
- package/dist/rooms/protocol/Op.js +28 -0
- package/dist/rooms/protocol/Op.js.map +1 -0
- package/dist/rooms/protocol/SerializedCrdt.d.ts +40 -0
- package/dist/rooms/protocol/SerializedCrdt.js +19 -0
- package/dist/rooms/protocol/SerializedCrdt.js.map +1 -0
- package/dist/rooms/protocol/ServerMsg.d.ts +128 -0
- package/dist/rooms/protocol/ServerMsg.js +25 -0
- package/dist/rooms/protocol/ServerMsg.js.map +1 -0
- package/dist/rooms/protocol/VersionHistory.d.ts +9 -0
- package/dist/rooms/protocol/VersionHistory.js +3 -0
- package/dist/rooms/protocol/VersionHistory.js.map +1 -0
- package/dist/rooms/rooms.controller.d.ts +64 -0
- package/dist/rooms/rooms.controller.js +401 -0
- package/dist/rooms/rooms.controller.js.map +1 -0
- package/dist/rooms/rooms.gateway.d.ts +30 -0
- package/dist/rooms/rooms.gateway.js +189 -0
- package/dist/rooms/rooms.gateway.js.map +1 -0
- package/dist/rooms/rooms.guard.d.ts +9 -0
- package/dist/rooms/rooms.guard.js +48 -0
- package/dist/rooms/rooms.guard.js.map +1 -0
- package/dist/rooms/rooms.module.d.ts +2 -0
- package/dist/rooms/rooms.module.js +36 -0
- package/dist/rooms/rooms.module.js.map +1 -0
- package/dist/rooms/rooms.service.d.ts +51 -0
- package/dist/rooms/rooms.service.js +223 -0
- package/dist/rooms/rooms.service.js.map +1 -0
- package/dist/steedos/mongodb.controller.d.ts +13 -0
- package/dist/steedos/mongodb.controller.js +355 -0
- package/dist/steedos/mongodb.controller.js.map +1 -0
- package/dist/steedos/object.service.d.ts +6 -0
- package/dist/steedos/object.service.js +34 -0
- package/dist/steedos/object.service.js.map +1 -0
- package/dist/steedos/steedos.module.d.ts +2 -0
- package/dist/steedos/steedos.module.js +27 -0
- package/dist/steedos/steedos.module.js.map +1 -0
- package/dist/tables/meta.service.d.ts +6 -0
- package/dist/tables/meta.service.js +82 -0
- package/dist/tables/meta.service.js.map +1 -0
- package/dist/tables/records.service.d.ts +13 -0
- package/dist/tables/records.service.js +73 -0
- package/dist/tables/records.service.js.map +1 -0
- package/dist/tables/tables.controller.d.ts +24 -0
- package/dist/tables/tables.controller.js +414 -0
- package/dist/tables/tables.controller.js.map +1 -0
- package/dist/tables/tables.module.d.ts +2 -0
- package/dist/tables/tables.module.js +28 -0
- package/dist/tables/tables.module.js.map +1 -0
- package/package.json +112 -0
- package/public/ag-grid/locale_zh.js +595 -0
- package/public/grid/index.html +25 -0
- package/public/grid/index.js +207 -0
- package/public/grid/styles.css +4 -0
- package/public/pivot/index.html +30 -0
- package/public/pivot/index.js +109 -0
- package/public/pivot/styles.css +7 -0
- package/views/ag-grid/README.md +15 -0
- package/views/ag-grid/ag-grid.hbs +1099 -0
- package/views/devextreme/datagrid.hbs +240 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RecordsService } from './records.service';
|
|
2
|
+
import { Request, Response } from 'express';
|
|
3
|
+
import { MetaService } from '@/tables/meta.service';
|
|
4
|
+
export declare class TablesController {
|
|
5
|
+
private readonly recordsService;
|
|
6
|
+
private readonly metaService;
|
|
7
|
+
constructor(recordsService: RecordsService, metaService: MetaService);
|
|
8
|
+
create(baseId: string, tableId: string, record: object, req: Request, res: Response): Promise<void>;
|
|
9
|
+
find(req: Request, res: Response, baseId: string, tableId: string, fields?: any, filters?: any, sort?: any, skip?: number, top?: number): Promise<void>;
|
|
10
|
+
amisFind(res: Response, baseId: string, tableId: string, fields?: any, filters?: any, sort?: any, orderBy?: string, orderDir?: string, page?: number, perPage?: number): Promise<void>;
|
|
11
|
+
findOne(baseId: string, tableId: string, recordId: string, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
12
|
+
update(baseId: string, tableId: string, recordId: string, body: object, req: Request, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
13
|
+
remove(baseId: string, tableId: string, recordId: string, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
14
|
+
deleteMultiple(baseId: string, tableId: string, records: [string], res: Response): Promise<Response<any, Record<string, any>>>;
|
|
15
|
+
getTableMeta(baseId: string, tableId: string, res: Response): Promise<void>;
|
|
16
|
+
getDemo(baseId: string, tableId: string): Promise<{
|
|
17
|
+
baseId: string;
|
|
18
|
+
tableId: string;
|
|
19
|
+
}>;
|
|
20
|
+
AgGrid(baseId: string, tableId: string): Promise<{
|
|
21
|
+
baseId: string;
|
|
22
|
+
tableId: string;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TablesController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const records_service_1 = require("./records.service");
|
|
18
|
+
const options_1 = require("devextreme-query-mongodb/options");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const auth_guard_1 = require("../auth/auth.guard");
|
|
21
|
+
const meta_service_1 = require("./meta.service");
|
|
22
|
+
let TablesController = class TablesController {
|
|
23
|
+
constructor(recordsService, metaService) {
|
|
24
|
+
this.recordsService = recordsService;
|
|
25
|
+
this.metaService = metaService;
|
|
26
|
+
}
|
|
27
|
+
async create(baseId, tableId, record, req, res) {
|
|
28
|
+
const user = req['user'];
|
|
29
|
+
try {
|
|
30
|
+
const result = await this.recordsService.createRecord(baseId, tableId, {
|
|
31
|
+
...record,
|
|
32
|
+
owner: user._id,
|
|
33
|
+
created_by: user._id,
|
|
34
|
+
created: new Date(),
|
|
35
|
+
modified_by: user._id,
|
|
36
|
+
modified: new Date(),
|
|
37
|
+
space: user.space,
|
|
38
|
+
});
|
|
39
|
+
res.status(200).send(result);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
console.error('Query error', error);
|
|
43
|
+
res.status(500).send(error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async find(req, res, baseId, tableId, fields, filters, sort, skip = 0, top = 20) {
|
|
47
|
+
try {
|
|
48
|
+
const options = (0, options_1.getOptions)(req.query, {
|
|
49
|
+
areaKM2: 'int',
|
|
50
|
+
population: 'int',
|
|
51
|
+
});
|
|
52
|
+
const loadOptions = { take: top, skip: skip, ...options.loadOptions };
|
|
53
|
+
if (filters) {
|
|
54
|
+
loadOptions.filter = JSON.parse(filters);
|
|
55
|
+
}
|
|
56
|
+
if (sort) {
|
|
57
|
+
const sortFields = sort.split(',');
|
|
58
|
+
loadOptions.sort = sortFields.map((sortField) => {
|
|
59
|
+
const [field, dir] = sortField.split(' ');
|
|
60
|
+
return { selector: field, desc: dir === 'desc' };
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (fields) {
|
|
64
|
+
try {
|
|
65
|
+
loadOptions.select = JSON.parse(fields);
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
loadOptions.select = fields.split(',');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const processingOptions = {
|
|
72
|
+
replaceIds: false,
|
|
73
|
+
...options.processingOptions,
|
|
74
|
+
};
|
|
75
|
+
const results = await this.recordsService.getRecords(baseId, tableId, loadOptions, processingOptions);
|
|
76
|
+
res.status(200).send(results);
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
console.error('Query error', error);
|
|
80
|
+
res.status(500).send(error);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async amisFind(res, baseId, tableId, fields, filters, sort, orderBy, orderDir, page = 1, perPage = 10) {
|
|
84
|
+
try {
|
|
85
|
+
const take = perPage ? perPage : 10;
|
|
86
|
+
const skip = (page - 1) * perPage;
|
|
87
|
+
const loadOptions = {
|
|
88
|
+
take,
|
|
89
|
+
skip,
|
|
90
|
+
requireTotalCount: true,
|
|
91
|
+
};
|
|
92
|
+
if (orderBy) {
|
|
93
|
+
loadOptions.sort = [{ selector: orderBy, desc: orderDir === 'desc' }];
|
|
94
|
+
}
|
|
95
|
+
if (filters) {
|
|
96
|
+
loadOptions.filter = JSON.parse(filters);
|
|
97
|
+
}
|
|
98
|
+
if (sort) {
|
|
99
|
+
const sortFields = sort.split(',');
|
|
100
|
+
loadOptions.sort = sortFields.map((sortField) => {
|
|
101
|
+
const [field, dir] = sortField.split(' ');
|
|
102
|
+
return { selector: field, desc: dir === 'desc' };
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (fields) {
|
|
106
|
+
try {
|
|
107
|
+
loadOptions.select = JSON.parse(fields);
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
loadOptions.select = fields.split(',');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const processingOptions = {
|
|
114
|
+
replaceIds: false,
|
|
115
|
+
};
|
|
116
|
+
const results = await this.recordsService.getRecords(baseId, tableId, loadOptions, processingOptions);
|
|
117
|
+
res.status(200).send({
|
|
118
|
+
status: 0,
|
|
119
|
+
msg: '',
|
|
120
|
+
data: {
|
|
121
|
+
items: results.data,
|
|
122
|
+
count: results.totalCount,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
console.error('Query error', error);
|
|
128
|
+
res.status(500).send(error);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async findOne(baseId, tableId, recordId, res) {
|
|
132
|
+
try {
|
|
133
|
+
const result = await this.recordsService.getRecordById(baseId, tableId, recordId);
|
|
134
|
+
if (!result) {
|
|
135
|
+
return res.status(404).send();
|
|
136
|
+
}
|
|
137
|
+
res.status(200).send(result);
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
console.error('Query error', error);
|
|
141
|
+
res.status(500).send(error);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
async update(baseId, tableId, recordId, body, req, res) {
|
|
145
|
+
try {
|
|
146
|
+
const record = {
|
|
147
|
+
...body,
|
|
148
|
+
modified_by: req['user']._id,
|
|
149
|
+
modified: new Date(),
|
|
150
|
+
};
|
|
151
|
+
const result = await this.recordsService.updateRecord(baseId, tableId, recordId, record);
|
|
152
|
+
if (!result) {
|
|
153
|
+
return res.status(404).send();
|
|
154
|
+
}
|
|
155
|
+
res.status(200).send(result);
|
|
156
|
+
}
|
|
157
|
+
catch (error) {
|
|
158
|
+
console.error('Query error', error);
|
|
159
|
+
res.status(500).send(error);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async remove(baseId, tableId, recordId, res) {
|
|
163
|
+
try {
|
|
164
|
+
const result = await this.recordsService.deleteOne(baseId, tableId, { _id: recordId });
|
|
165
|
+
if (result.deletedCount === 0) {
|
|
166
|
+
return res.status(404).send();
|
|
167
|
+
}
|
|
168
|
+
res.status(200).send({ deleted: true, _id: recordId });
|
|
169
|
+
}
|
|
170
|
+
catch (error) {
|
|
171
|
+
console.error('Query error', error);
|
|
172
|
+
res.status(500).send(error);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
async deleteMultiple(baseId, tableId, records, res) {
|
|
176
|
+
try {
|
|
177
|
+
const result = await this.recordsService.deleteMany(baseId, tableId, { _id: { $in: records } });
|
|
178
|
+
if (result.deletedCount === 0) {
|
|
179
|
+
return res.status(404).send();
|
|
180
|
+
}
|
|
181
|
+
res.status(200).send({ records: records.map(_id => ({ deleted: true, _id })) });
|
|
182
|
+
}
|
|
183
|
+
catch (error) {
|
|
184
|
+
console.error('Query error', error);
|
|
185
|
+
res.status(500).send(error);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
async getTableMeta(baseId, tableId, res) {
|
|
189
|
+
try {
|
|
190
|
+
const table = await this.metaService.getTableMeta(baseId, tableId);
|
|
191
|
+
res.status(200).send(table);
|
|
192
|
+
}
|
|
193
|
+
catch (error) {
|
|
194
|
+
console.error('Query error', error);
|
|
195
|
+
res.status(500).send(error);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
async getDemo(baseId, tableId) {
|
|
199
|
+
return {
|
|
200
|
+
baseId,
|
|
201
|
+
tableId,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
async AgGrid(baseId, tableId) {
|
|
205
|
+
return {
|
|
206
|
+
baseId,
|
|
207
|
+
tableId,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
exports.TablesController = TablesController;
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiOperation)({ summary: 'Create a record' }),
|
|
214
|
+
(0, common_1.Post)(':baseId/:tableId'),
|
|
215
|
+
(0, swagger_1.ApiBody)({
|
|
216
|
+
schema: {
|
|
217
|
+
type: 'object',
|
|
218
|
+
},
|
|
219
|
+
}),
|
|
220
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
221
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
222
|
+
__param(2, (0, common_1.Body)()),
|
|
223
|
+
__param(3, (0, common_1.Req)()),
|
|
224
|
+
__param(4, (0, common_1.Res)()),
|
|
225
|
+
__metadata("design:type", Function),
|
|
226
|
+
__metadata("design:paramtypes", [String, String, Object, Object, Object]),
|
|
227
|
+
__metadata("design:returntype", Promise)
|
|
228
|
+
], TablesController.prototype, "create", null);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, swagger_1.ApiOperation)({ summary: 'List records' }),
|
|
231
|
+
(0, common_1.Get)(':baseId/:tableId'),
|
|
232
|
+
(0, swagger_1.ApiQuery)({
|
|
233
|
+
name: 'fields',
|
|
234
|
+
required: false,
|
|
235
|
+
description: '查询的字段,示例:name,created',
|
|
236
|
+
}),
|
|
237
|
+
(0, swagger_1.ApiQuery)({
|
|
238
|
+
name: 'filters',
|
|
239
|
+
required: false,
|
|
240
|
+
description: '过滤条件,示例:["age", ">", 10]',
|
|
241
|
+
}),
|
|
242
|
+
(0, swagger_1.ApiQuery)({
|
|
243
|
+
name: 'sort',
|
|
244
|
+
required: false,
|
|
245
|
+
description: '排序,示例:created desc',
|
|
246
|
+
}),
|
|
247
|
+
(0, swagger_1.ApiQuery)({ name: 'skip', required: false, description: '跳过记录数' }),
|
|
248
|
+
(0, swagger_1.ApiQuery)({
|
|
249
|
+
name: 'top',
|
|
250
|
+
required: false,
|
|
251
|
+
description: '每页记录数,默认20',
|
|
252
|
+
}),
|
|
253
|
+
__param(0, (0, common_1.Req)()),
|
|
254
|
+
__param(1, (0, common_1.Res)()),
|
|
255
|
+
__param(2, (0, common_1.Param)('baseId')),
|
|
256
|
+
__param(3, (0, common_1.Param)('tableId')),
|
|
257
|
+
__param(4, (0, common_1.Query)('fields')),
|
|
258
|
+
__param(5, (0, common_1.Query)('filters')),
|
|
259
|
+
__param(6, (0, common_1.Query)('sort')),
|
|
260
|
+
__param(7, (0, common_1.Query)('skip', new common_1.ParseIntPipe())),
|
|
261
|
+
__param(8, (0, common_1.Query)('top', new common_1.ParseIntPipe())),
|
|
262
|
+
__metadata("design:type", Function),
|
|
263
|
+
__metadata("design:paramtypes", [Object, Object, String, String, Object, Object, Object, Number, Number]),
|
|
264
|
+
__metadata("design:returntype", Promise)
|
|
265
|
+
], TablesController.prototype, "find", null);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, swagger_1.ApiOperation)({ summary: 'List records (deprecated)' }),
|
|
268
|
+
(0, common_1.Get)(':baseId/:tableId/amis'),
|
|
269
|
+
(0, swagger_1.ApiQuery)({
|
|
270
|
+
name: 'fields',
|
|
271
|
+
required: false,
|
|
272
|
+
description: '查询的字段,示例:name,created',
|
|
273
|
+
}),
|
|
274
|
+
(0, swagger_1.ApiQuery)({
|
|
275
|
+
name: 'filters',
|
|
276
|
+
required: false,
|
|
277
|
+
description: '过滤条件,示例:["age", ">", 10]',
|
|
278
|
+
}),
|
|
279
|
+
(0, swagger_1.ApiQuery)({
|
|
280
|
+
name: 'sort',
|
|
281
|
+
required: false,
|
|
282
|
+
description: '排序,示例:created desc',
|
|
283
|
+
}),
|
|
284
|
+
(0, swagger_1.ApiQuery)({
|
|
285
|
+
name: 'page',
|
|
286
|
+
required: false,
|
|
287
|
+
description: '当前页码,从1开始。',
|
|
288
|
+
}),
|
|
289
|
+
(0, swagger_1.ApiQuery)({
|
|
290
|
+
name: 'perPage',
|
|
291
|
+
required: false,
|
|
292
|
+
description: '每页记录数,默认20',
|
|
293
|
+
}),
|
|
294
|
+
(0, swagger_1.ApiQuery)({ name: 'orderBy', required: false, description: '排序字段' }),
|
|
295
|
+
(0, swagger_1.ApiQuery)({
|
|
296
|
+
name: 'orderDir',
|
|
297
|
+
required: false,
|
|
298
|
+
description: '排序顺序',
|
|
299
|
+
enum: ['asc', 'desc'],
|
|
300
|
+
}),
|
|
301
|
+
__param(0, (0, common_1.Res)()),
|
|
302
|
+
__param(1, (0, common_1.Param)('baseId')),
|
|
303
|
+
__param(2, (0, common_1.Param)('tableId')),
|
|
304
|
+
__param(3, (0, common_1.Query)('fields')),
|
|
305
|
+
__param(4, (0, common_1.Query)('filters')),
|
|
306
|
+
__param(5, (0, common_1.Query)('sort')),
|
|
307
|
+
__param(6, (0, common_1.Query)('orderBy')),
|
|
308
|
+
__param(7, (0, common_1.Query)('orderDir')),
|
|
309
|
+
__param(8, (0, common_1.Query)('page', new common_1.ParseIntPipe())),
|
|
310
|
+
__param(9, (0, common_1.Query)('perPage', new common_1.ParseIntPipe())),
|
|
311
|
+
__metadata("design:type", Function),
|
|
312
|
+
__metadata("design:paramtypes", [Object, String, String, Object, Object, Object, String, String, Number, Number]),
|
|
313
|
+
__metadata("design:returntype", Promise)
|
|
314
|
+
], TablesController.prototype, "amisFind", null);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, common_1.Get)(':baseId/:tableId/:recordId'),
|
|
317
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get record' }),
|
|
318
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
319
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
320
|
+
__param(2, (0, common_1.Param)('recordId')),
|
|
321
|
+
__param(3, (0, common_1.Res)()),
|
|
322
|
+
__metadata("design:type", Function),
|
|
323
|
+
__metadata("design:paramtypes", [String, String, String, Object]),
|
|
324
|
+
__metadata("design:returntype", Promise)
|
|
325
|
+
], TablesController.prototype, "findOne", null);
|
|
326
|
+
__decorate([
|
|
327
|
+
(0, swagger_1.ApiOperation)({ summary: 'Update record' }),
|
|
328
|
+
(0, common_1.Put)(':baseId/:tableId/:recordId'),
|
|
329
|
+
(0, common_1.Patch)(':baseId/:tableId/:recordId'),
|
|
330
|
+
(0, swagger_1.ApiBody)({
|
|
331
|
+
schema: {
|
|
332
|
+
type: 'object',
|
|
333
|
+
},
|
|
334
|
+
}),
|
|
335
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
336
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
337
|
+
__param(2, (0, common_1.Param)('recordId')),
|
|
338
|
+
__param(3, (0, common_1.Body)()),
|
|
339
|
+
__param(4, (0, common_1.Req)()),
|
|
340
|
+
__param(5, (0, common_1.Res)()),
|
|
341
|
+
__metadata("design:type", Function),
|
|
342
|
+
__metadata("design:paramtypes", [String, String, String, Object, Object, Object]),
|
|
343
|
+
__metadata("design:returntype", Promise)
|
|
344
|
+
], TablesController.prototype, "update", null);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, common_1.Delete)(':baseId/:tableId/:recordId'),
|
|
347
|
+
(0, swagger_1.ApiOperation)({ summary: 'Delete record' }),
|
|
348
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
349
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
350
|
+
__param(2, (0, common_1.Param)('recordId')),
|
|
351
|
+
__param(3, (0, common_1.Res)()),
|
|
352
|
+
__metadata("design:type", Function),
|
|
353
|
+
__metadata("design:paramtypes", [String, String, String, Object]),
|
|
354
|
+
__metadata("design:returntype", Promise)
|
|
355
|
+
], TablesController.prototype, "remove", null);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, swagger_1.ApiBody)({
|
|
358
|
+
schema: {
|
|
359
|
+
type: 'object',
|
|
360
|
+
properties: {
|
|
361
|
+
records: {
|
|
362
|
+
type: 'array',
|
|
363
|
+
items: {
|
|
364
|
+
type: 'string',
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
}),
|
|
370
|
+
(0, common_1.Delete)(':baseId/:tableId'),
|
|
371
|
+
(0, swagger_1.ApiOperation)({ summary: 'Delete multiple records' }),
|
|
372
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
373
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
374
|
+
__param(2, (0, common_1.Body)('records')),
|
|
375
|
+
__param(3, (0, common_1.Res)()),
|
|
376
|
+
__metadata("design:type", Function),
|
|
377
|
+
__metadata("design:paramtypes", [String, String, Array, Object]),
|
|
378
|
+
__metadata("design:returntype", Promise)
|
|
379
|
+
], TablesController.prototype, "deleteMultiple", null);
|
|
380
|
+
__decorate([
|
|
381
|
+
(0, common_1.Get)('meta/bases/:baseId/tables/:tableId'),
|
|
382
|
+
(0, swagger_1.ApiBearerAuth)(),
|
|
383
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
384
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
385
|
+
__param(2, (0, common_1.Res)()),
|
|
386
|
+
__metadata("design:type", Function),
|
|
387
|
+
__metadata("design:paramtypes", [String, String, Object]),
|
|
388
|
+
__metadata("design:returntype", Promise)
|
|
389
|
+
], TablesController.prototype, "getTableMeta", null);
|
|
390
|
+
__decorate([
|
|
391
|
+
(0, common_1.Get)('devextreme/datagrid/:baseId/:tableId'),
|
|
392
|
+
(0, common_1.Render)('devextreme/datagrid'),
|
|
393
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
394
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
395
|
+
__metadata("design:type", Function),
|
|
396
|
+
__metadata("design:paramtypes", [String, String]),
|
|
397
|
+
__metadata("design:returntype", Promise)
|
|
398
|
+
], TablesController.prototype, "getDemo", null);
|
|
399
|
+
__decorate([
|
|
400
|
+
(0, common_1.Get)('ag-grid/ag-grid/:baseId/:tableId'),
|
|
401
|
+
(0, common_1.Render)('ag-grid/ag-grid'),
|
|
402
|
+
__param(0, (0, common_1.Param)('baseId')),
|
|
403
|
+
__param(1, (0, common_1.Param)('tableId')),
|
|
404
|
+
__metadata("design:type", Function),
|
|
405
|
+
__metadata("design:paramtypes", [String, String]),
|
|
406
|
+
__metadata("design:returntype", Promise)
|
|
407
|
+
], TablesController.prototype, "AgGrid", null);
|
|
408
|
+
exports.TablesController = TablesController = __decorate([
|
|
409
|
+
(0, common_1.Controller)('api/v6/tables/'),
|
|
410
|
+
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
|
411
|
+
(0, swagger_1.ApiBearerAuth)(),
|
|
412
|
+
__metadata("design:paramtypes", [records_service_1.RecordsService, meta_service_1.MetaService])
|
|
413
|
+
], TablesController);
|
|
414
|
+
//# sourceMappingURL=tables.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tables.controller.js","sourceRoot":"","sources":["../../src/tables/tables.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAewB;AACxB,uDAAmD;AAEnD,8DAA8D;AAC9D,6CAAiF;AACjF,mDAA8C;AAC9C,iDAAoD;AAM7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,cAA8B,EAAmB,WAAwB;QAAzE,mBAAc,GAAd,cAAc,CAAgB;QAAmB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAepG,AAAN,KAAK,CAAC,MAAM,CACO,MAAc,EACb,OAAe,EACzB,MAAc,EACf,GAAY,EACZ,GAAa;QAEpB,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE;gBACrE,GAAG,MAAM;gBACT,KAAK,EAAE,IAAI,CAAC,GAAG;gBACf,UAAU,EAAE,IAAI,CAAC,GAAG;gBACpB,OAAO,EAAE,IAAI,IAAI,EAAE;gBACnB,WAAW,EAAE,IAAI,CAAC,GAAG;gBACrB,QAAQ,EAAE,IAAI,IAAI,EAAE;gBACpB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;YACH,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;YACpC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IA0BK,AAAN,KAAK,CAAC,IAAI,CACD,GAAY,EACZ,GAAa,EAC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AMlB;2BAtYU,gBAAgB;IAH5B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;IAC5B,IAAA,kBAAS,EAAC,sBAAS,CAAC;IACpB,IAAA,uBAAa,GAAE;qCAE+B,gCAAc,EAAgC,0BAAW;GAD3F,gBAAgB,CAuY5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.TablesModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const tables_controller_1 = require("./tables.controller");
|
|
12
|
+
const records_service_1 = require("./records.service");
|
|
13
|
+
const meta_service_1 = require("./meta.service");
|
|
14
|
+
const mongodb_module_1 = require("../mongodb/mongodb.module");
|
|
15
|
+
const auth_module_1 = require("../auth/auth.module");
|
|
16
|
+
let TablesModule = class TablesModule {
|
|
17
|
+
};
|
|
18
|
+
exports.TablesModule = TablesModule;
|
|
19
|
+
exports.TablesModule = TablesModule = __decorate([
|
|
20
|
+
(0, common_1.Module)({
|
|
21
|
+
imports: [auth_module_1.AuthModule, mongodb_module_1.MongodbModule],
|
|
22
|
+
controllers: [
|
|
23
|
+
tables_controller_1.TablesController,
|
|
24
|
+
],
|
|
25
|
+
providers: [meta_service_1.MetaService, records_service_1.RecordsService],
|
|
26
|
+
})
|
|
27
|
+
], TablesModule);
|
|
28
|
+
//# sourceMappingURL=tables.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tables.module.js","sourceRoot":"","sources":["../../src/tables/tables.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2DAAuD;AACvD,uDAAmD;AACnD,iDAA6C;AAC7C,8DAAyD;AACzD,qDAAgD;AASzC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAPxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,wBAAU,EAAE,8BAAa,CAAC;QACpC,WAAW,EAAE;YACX,oCAAgB;SACjB;QACD,SAAS,EAAE,CAAC,0BAAW,EAAE,gCAAc,CAAC;KACzC,CAAC;GACW,YAAY,CAAG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@builder6/server",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "AGPL-3.0-only",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"public",
|
|
10
|
+
"views"
|
|
11
|
+
],
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"bin": {
|
|
14
|
+
"b6server": "dist/b6.server.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "nest build",
|
|
18
|
+
"build:watch": "nest build --watch",
|
|
19
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
20
|
+
"start": "nest start",
|
|
21
|
+
"start:dev": "nest start --watch",
|
|
22
|
+
"start:debug": "nest start --debug --watch",
|
|
23
|
+
"start:prod": "node dist/main",
|
|
24
|
+
"moleculer:repl": "moleculer connect --config ./steedos.config.js",
|
|
25
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
26
|
+
"test": "jest",
|
|
27
|
+
"test:watch": "jest --watch",
|
|
28
|
+
"test:cov": "jest --coverage",
|
|
29
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
30
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@nestjs/common": "^9.0.0",
|
|
34
|
+
"@nestjs/config": "^3.3.0",
|
|
35
|
+
"@nestjs/core": "^9.0.0",
|
|
36
|
+
"@nestjs/jwt": "^9.0.0",
|
|
37
|
+
"@nestjs/passport": "^9.0.0",
|
|
38
|
+
"@nestjs/platform-express": "^9.0.0",
|
|
39
|
+
"@nestjs/platform-ws": "^9.0.0",
|
|
40
|
+
"@nestjs/serve-static": "^4.0.2",
|
|
41
|
+
"@nestjs/swagger": "^8.0.7",
|
|
42
|
+
"@nestjs/websockets": "^9.0.0",
|
|
43
|
+
"@types/multer": "^1.4.12",
|
|
44
|
+
"aws-sdk": "^2.1692.0",
|
|
45
|
+
"axios": "^1.7.9",
|
|
46
|
+
"bcrypt": "^5.1.1",
|
|
47
|
+
"class-validator": "^0.14.1",
|
|
48
|
+
"compression": "^1.7.5",
|
|
49
|
+
"cookie-parser": "^1.4.7",
|
|
50
|
+
"crypto-js": "^4.2.0",
|
|
51
|
+
"devextreme-query-mongodb": "^2.0.16",
|
|
52
|
+
"dotenv": "^16.4.5",
|
|
53
|
+
"dotenv-flow": "^4.1.0",
|
|
54
|
+
"express-session": "^1.18.1",
|
|
55
|
+
"fs-extra": "^11.2.0",
|
|
56
|
+
"hbs": "^4.2.0",
|
|
57
|
+
"ioredis": "^5.4.1",
|
|
58
|
+
"mime-types": "^2.1.35",
|
|
59
|
+
"moleculer": "^0.14.35",
|
|
60
|
+
"mongodb": "^3.7.3",
|
|
61
|
+
"multer": "^1.4.5-lts.1",
|
|
62
|
+
"nopt": "5.0.0",
|
|
63
|
+
"openid-client": "^5.7.1",
|
|
64
|
+
"passport": "^0.7.0",
|
|
65
|
+
"passport-local": "^1.0.0",
|
|
66
|
+
"passport-openidconnect": "^0.1.2",
|
|
67
|
+
"raw-body": "^3.0.0",
|
|
68
|
+
"reflect-metadata": "^0.2.0",
|
|
69
|
+
"regenerator-runtime": "^0.14.1",
|
|
70
|
+
"rxjs": "^7.8.1",
|
|
71
|
+
"sha256": "^0.2.0",
|
|
72
|
+
"uuid": "^9.0.0"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@nestjs/testing": "^9.0.0",
|
|
76
|
+
"@types/express": "^5.0.0",
|
|
77
|
+
"@types/jest": "^29.5.2",
|
|
78
|
+
"@types/node": "^20.3.1",
|
|
79
|
+
"@types/supertest": "^6.0.0",
|
|
80
|
+
"eslint": "^8.0.0",
|
|
81
|
+
"eslint-config-prettier": "^9.0.0",
|
|
82
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
83
|
+
"jest": "^29.5.0",
|
|
84
|
+
"moleculer-cli": "^0.8.1",
|
|
85
|
+
"prettier": "^3.0.0",
|
|
86
|
+
"source-map-support": "^0.5.21",
|
|
87
|
+
"supertest": "^7.0.0",
|
|
88
|
+
"ts-jest": "^29.1.0",
|
|
89
|
+
"ts-loader": "^9.4.3",
|
|
90
|
+
"ts-node": "^10.9.1",
|
|
91
|
+
"tsconfig-paths": "^4.2.0",
|
|
92
|
+
"typescript": "^5.1.3",
|
|
93
|
+
"webpack": "^5.97.1"
|
|
94
|
+
},
|
|
95
|
+
"jest": {
|
|
96
|
+
"moduleFileExtensions": [
|
|
97
|
+
"js",
|
|
98
|
+
"json",
|
|
99
|
+
"ts"
|
|
100
|
+
],
|
|
101
|
+
"rootDir": "src",
|
|
102
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
103
|
+
"transform": {
|
|
104
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
105
|
+
},
|
|
106
|
+
"collectCoverageFrom": [
|
|
107
|
+
"**/*.(t|j)s"
|
|
108
|
+
],
|
|
109
|
+
"coverageDirectory": "../coverage",
|
|
110
|
+
"testEnvironment": "node"
|
|
111
|
+
}
|
|
112
|
+
}
|