@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.
Files changed (185) hide show
  1. package/dist/app.controller.d.ts +3 -0
  2. package/dist/app.controller.js +29 -0
  3. package/dist/app.controller.js.map +1 -0
  4. package/dist/app.express.d.ts +2 -0
  5. package/dist/app.express.js +45 -0
  6. package/dist/app.express.js.map +1 -0
  7. package/dist/app.module.d.ts +2 -0
  8. package/dist/app.module.js +48 -0
  9. package/dist/app.module.js.map +1 -0
  10. package/dist/auth/admin.guard.d.ts +8 -0
  11. package/dist/auth/admin.guard.js +47 -0
  12. package/dist/auth/admin.guard.js.map +1 -0
  13. package/dist/auth/auth.controller.d.ts +7 -0
  14. package/dist/auth/auth.controller.js +80 -0
  15. package/dist/auth/auth.controller.js.map +1 -0
  16. package/dist/auth/auth.guard.d.ts +7 -0
  17. package/dist/auth/auth.guard.js +41 -0
  18. package/dist/auth/auth.guard.js.map +1 -0
  19. package/dist/auth/auth.module.d.ts +2 -0
  20. package/dist/auth/auth.module.js +34 -0
  21. package/dist/auth/auth.module.js.map +1 -0
  22. package/dist/auth/auth.service.d.ts +22 -0
  23. package/dist/auth/auth.service.js +172 -0
  24. package/dist/auth/auth.service.js.map +1 -0
  25. package/dist/auth/index.d.ts +5 -0
  26. package/dist/auth/index.js +22 -0
  27. package/dist/auth/index.js.map +1 -0
  28. package/dist/b6.config.d.ts +0 -0
  29. package/dist/b6.config.js +6 -0
  30. package/dist/b6.config.js.map +1 -0
  31. package/dist/b6.server.d.ts +2 -0
  32. package/dist/b6.server.js +276 -0
  33. package/dist/b6.server.js.map +1 -0
  34. package/dist/files/files.controller.d.ts +8 -0
  35. package/dist/files/files.controller.js +110 -0
  36. package/dist/files/files.controller.js.map +1 -0
  37. package/dist/files/files.module.d.ts +2 -0
  38. package/dist/files/files.module.js +25 -0
  39. package/dist/files/files.module.js.map +1 -0
  40. package/dist/files/files.service.d.ts +30 -0
  41. package/dist/files/files.service.js +206 -0
  42. package/dist/files/files.service.js.map +1 -0
  43. package/dist/files/index.d.ts +3 -0
  44. package/dist/files/index.js +20 -0
  45. package/dist/files/index.js.map +1 -0
  46. package/dist/index.d.ts +5 -0
  47. package/dist/index.js +28 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/main.d.ts +1 -0
  50. package/dist/main.js +10 -0
  51. package/dist/main.js.map +1 -0
  52. package/dist/microsoft365/microsoft365.controller.d.ts +8 -0
  53. package/dist/microsoft365/microsoft365.controller.js +83 -0
  54. package/dist/microsoft365/microsoft365.controller.js.map +1 -0
  55. package/dist/microsoft365/microsoft365.module.d.ts +2 -0
  56. package/dist/microsoft365/microsoft365.module.js +22 -0
  57. package/dist/microsoft365/microsoft365.module.js.map +1 -0
  58. package/dist/microsoft365/microsoft365.service.d.ts +3 -0
  59. package/dist/microsoft365/microsoft365.service.js +32 -0
  60. package/dist/microsoft365/microsoft365.service.js.map +1 -0
  61. package/dist/moleculer/env.config.d.ts +2 -0
  62. package/dist/moleculer/env.config.js +38 -0
  63. package/dist/moleculer/env.config.js.map +1 -0
  64. package/dist/moleculer/moleculer.config.d.ts +2 -0
  65. package/dist/moleculer/moleculer.config.js +78 -0
  66. package/dist/moleculer/moleculer.config.js.map +1 -0
  67. package/dist/moleculer/moleculer.module.d.ts +2 -0
  68. package/dist/moleculer/moleculer.module.js +20 -0
  69. package/dist/moleculer/moleculer.module.js.map +1 -0
  70. package/dist/moleculer/moleculer.service.d.ts +11 -0
  71. package/dist/moleculer/moleculer.service.js +95 -0
  72. package/dist/moleculer/moleculer.service.js.map +1 -0
  73. package/dist/mongodb/index.d.ts +2 -0
  74. package/dist/mongodb/index.js +19 -0
  75. package/dist/mongodb/index.js.map +1 -0
  76. package/dist/mongodb/mongodb.module.d.ts +2 -0
  77. package/dist/mongodb/mongodb.module.js +21 -0
  78. package/dist/mongodb/mongodb.module.js.map +1 -0
  79. package/dist/mongodb/mongodb.service.d.ts +17 -0
  80. package/dist/mongodb/mongodb.service.js +113 -0
  81. package/dist/mongodb/mongodb.service.js.map +1 -0
  82. package/dist/oidc/oidc.controller.d.ts +7 -0
  83. package/dist/oidc/oidc.controller.js +93 -0
  84. package/dist/oidc/oidc.controller.js.map +1 -0
  85. package/dist/oidc/oidc.module.d.ts +2 -0
  86. package/dist/oidc/oidc.module.js +22 -0
  87. package/dist/oidc/oidc.module.js.map +1 -0
  88. package/dist/oidc/oidc.service.d.ts +15 -0
  89. package/dist/oidc/oidc.service.js +38 -0
  90. package/dist/oidc/oidc.service.js.map +1 -0
  91. package/dist/rooms/globals/augmentation.d.ts +25 -0
  92. package/dist/rooms/globals/augmentation.js +3 -0
  93. package/dist/rooms/globals/augmentation.js.map +1 -0
  94. package/dist/rooms/lib/DateToString.d.ts +3 -0
  95. package/dist/rooms/lib/DateToString.js +3 -0
  96. package/dist/rooms/lib/DateToString.js.map +1 -0
  97. package/dist/rooms/lib/Json.d.ts +9 -0
  98. package/dist/rooms/lib/Json.js +18 -0
  99. package/dist/rooms/lib/Json.js.map +1 -0
  100. package/dist/rooms/lib/utils.d.ts +33 -0
  101. package/dist/rooms/lib/utils.js +122 -0
  102. package/dist/rooms/lib/utils.js.map +1 -0
  103. package/dist/rooms/protocol/AuthToken.d.ts +50 -0
  104. package/dist/rooms/protocol/AuthToken.js +49 -0
  105. package/dist/rooms/protocol/AuthToken.js.map +1 -0
  106. package/dist/rooms/protocol/Authentication.d.ts +22 -0
  107. package/dist/rooms/protocol/Authentication.js +3 -0
  108. package/dist/rooms/protocol/Authentication.js.map +1 -0
  109. package/dist/rooms/protocol/BaseActivitiesData.d.ts +4 -0
  110. package/dist/rooms/protocol/BaseActivitiesData.js +3 -0
  111. package/dist/rooms/protocol/BaseActivitiesData.js.map +1 -0
  112. package/dist/rooms/protocol/BaseRoomInfo.d.ts +6 -0
  113. package/dist/rooms/protocol/BaseRoomInfo.js +3 -0
  114. package/dist/rooms/protocol/BaseRoomInfo.js.map +1 -0
  115. package/dist/rooms/protocol/BaseUserMeta.d.ts +10 -0
  116. package/dist/rooms/protocol/BaseUserMeta.js +3 -0
  117. package/dist/rooms/protocol/BaseUserMeta.js.map +1 -0
  118. package/dist/rooms/protocol/ClientMsg.d.ts +41 -0
  119. package/dist/rooms/protocol/ClientMsg.js +13 -0
  120. package/dist/rooms/protocol/ClientMsg.js.map +1 -0
  121. package/dist/rooms/protocol/Comments.d.ts +146 -0
  122. package/dist/rooms/protocol/Comments.js +3 -0
  123. package/dist/rooms/protocol/Comments.js.map +1 -0
  124. package/dist/rooms/protocol/InboxNotifications.d.ts +49 -0
  125. package/dist/rooms/protocol/InboxNotifications.js +3 -0
  126. package/dist/rooms/protocol/InboxNotifications.js.map +1 -0
  127. package/dist/rooms/protocol/Op.d.ts +82 -0
  128. package/dist/rooms/protocol/Op.js +28 -0
  129. package/dist/rooms/protocol/Op.js.map +1 -0
  130. package/dist/rooms/protocol/SerializedCrdt.d.ts +40 -0
  131. package/dist/rooms/protocol/SerializedCrdt.js +19 -0
  132. package/dist/rooms/protocol/SerializedCrdt.js.map +1 -0
  133. package/dist/rooms/protocol/ServerMsg.d.ts +128 -0
  134. package/dist/rooms/protocol/ServerMsg.js +25 -0
  135. package/dist/rooms/protocol/ServerMsg.js.map +1 -0
  136. package/dist/rooms/protocol/VersionHistory.d.ts +9 -0
  137. package/dist/rooms/protocol/VersionHistory.js +3 -0
  138. package/dist/rooms/protocol/VersionHistory.js.map +1 -0
  139. package/dist/rooms/rooms.controller.d.ts +64 -0
  140. package/dist/rooms/rooms.controller.js +401 -0
  141. package/dist/rooms/rooms.controller.js.map +1 -0
  142. package/dist/rooms/rooms.gateway.d.ts +30 -0
  143. package/dist/rooms/rooms.gateway.js +189 -0
  144. package/dist/rooms/rooms.gateway.js.map +1 -0
  145. package/dist/rooms/rooms.guard.d.ts +9 -0
  146. package/dist/rooms/rooms.guard.js +48 -0
  147. package/dist/rooms/rooms.guard.js.map +1 -0
  148. package/dist/rooms/rooms.module.d.ts +2 -0
  149. package/dist/rooms/rooms.module.js +36 -0
  150. package/dist/rooms/rooms.module.js.map +1 -0
  151. package/dist/rooms/rooms.service.d.ts +51 -0
  152. package/dist/rooms/rooms.service.js +223 -0
  153. package/dist/rooms/rooms.service.js.map +1 -0
  154. package/dist/steedos/mongodb.controller.d.ts +13 -0
  155. package/dist/steedos/mongodb.controller.js +355 -0
  156. package/dist/steedos/mongodb.controller.js.map +1 -0
  157. package/dist/steedos/object.service.d.ts +6 -0
  158. package/dist/steedos/object.service.js +34 -0
  159. package/dist/steedos/object.service.js.map +1 -0
  160. package/dist/steedos/steedos.module.d.ts +2 -0
  161. package/dist/steedos/steedos.module.js +27 -0
  162. package/dist/steedos/steedos.module.js.map +1 -0
  163. package/dist/tables/meta.service.d.ts +6 -0
  164. package/dist/tables/meta.service.js +82 -0
  165. package/dist/tables/meta.service.js.map +1 -0
  166. package/dist/tables/records.service.d.ts +13 -0
  167. package/dist/tables/records.service.js +73 -0
  168. package/dist/tables/records.service.js.map +1 -0
  169. package/dist/tables/tables.controller.d.ts +24 -0
  170. package/dist/tables/tables.controller.js +414 -0
  171. package/dist/tables/tables.controller.js.map +1 -0
  172. package/dist/tables/tables.module.d.ts +2 -0
  173. package/dist/tables/tables.module.js +28 -0
  174. package/dist/tables/tables.module.js.map +1 -0
  175. package/package.json +112 -0
  176. package/public/ag-grid/locale_zh.js +595 -0
  177. package/public/grid/index.html +25 -0
  178. package/public/grid/index.js +207 -0
  179. package/public/grid/styles.css +4 -0
  180. package/public/pivot/index.html +30 -0
  181. package/public/pivot/index.js +109 -0
  182. package/public/pivot/styles.css +7 -0
  183. package/views/ag-grid/README.md +15 -0
  184. package/views/ag-grid/ag-grid.hbs +1099 -0
  185. package/views/devextreme/datagrid.hbs +240 -0
@@ -0,0 +1,355 @@
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.MongodbController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const mongodb_service_1 = require("../mongodb/mongodb.service");
18
+ const options_1 = require("devextreme-query-mongodb/options");
19
+ const swagger_1 = require("@nestjs/swagger");
20
+ const admin_guard_1 = require("../auth/admin.guard");
21
+ let MongodbController = class MongodbController {
22
+ constructor(mongodbService) {
23
+ this.mongodbService = mongodbService;
24
+ }
25
+ async create(objectName, record, req, res) {
26
+ const user = req['user'];
27
+ try {
28
+ const result = await this.mongodbService.insertOne(objectName, {
29
+ ...record,
30
+ owner: user._id,
31
+ created_by: user._id,
32
+ created: new Date(),
33
+ modified_by: user._id,
34
+ modified: new Date(),
35
+ space: user.space,
36
+ });
37
+ res.status(200).send(result);
38
+ }
39
+ catch (error) {
40
+ console.error('Query error', error);
41
+ res.status(500).send(error);
42
+ }
43
+ }
44
+ async find(objectName, req, res, fields, filters, sort, skip = 0, top = 20) {
45
+ try {
46
+ const options = (0, options_1.getOptions)(req.query, {
47
+ areaKM2: 'int',
48
+ population: 'int',
49
+ });
50
+ const loadOptions = { take: top, skip: skip, ...options.loadOptions };
51
+ if (filters) {
52
+ loadOptions.filter = JSON.parse(filters);
53
+ }
54
+ if (sort) {
55
+ const sortFields = sort.split(',');
56
+ loadOptions.sort = sortFields.map((sortField) => {
57
+ const [field, dir] = sortField.split(' ');
58
+ return { selector: field, desc: dir === 'desc' };
59
+ });
60
+ }
61
+ if (fields) {
62
+ try {
63
+ loadOptions.select = JSON.parse(fields);
64
+ }
65
+ catch {
66
+ loadOptions.select = fields.split(',');
67
+ }
68
+ }
69
+ const processingOptions = {
70
+ replaceIds: false,
71
+ ...options.processingOptions,
72
+ };
73
+ const results = await this.mongodbService.objectqlFind(objectName, loadOptions, processingOptions);
74
+ res.status(200).send(results);
75
+ }
76
+ catch (error) {
77
+ console.error('Query error', error);
78
+ res.status(500).send(error);
79
+ }
80
+ }
81
+ async findOne(res, objectName, id) {
82
+ try {
83
+ const result = await this.mongodbService.findOne(objectName, {
84
+ _id: id,
85
+ });
86
+ if (!result) {
87
+ return res.status(404).send();
88
+ }
89
+ res.status(200).send(result);
90
+ }
91
+ catch (error) {
92
+ console.error('Query error', error);
93
+ res.status(500).send(error);
94
+ }
95
+ }
96
+ async update(objectName, id, body, req, res) {
97
+ try {
98
+ const result = await this.mongodbService.findOneAndUpdate(objectName, id, {
99
+ ...body,
100
+ modified_by: req['user']._id,
101
+ modified: new Date(),
102
+ });
103
+ if (!result) {
104
+ return res.status(404).send();
105
+ }
106
+ res.status(200).send(result);
107
+ }
108
+ catch (error) {
109
+ console.error('Query error', error);
110
+ res.status(500).send(error);
111
+ }
112
+ }
113
+ async updateMultiple(objectName, records, performUpsert, req, res) {
114
+ try {
115
+ if (performUpsert) {
116
+ const createdRecords = [];
117
+ const updatedRecords = [];
118
+ const resultRecords = [];
119
+ for (const record of records) {
120
+ const { _id, ...rest } = record;
121
+ if (_id) {
122
+ const result = await this.mongodbService.findOneAndUpdate(objectName, _id, {
123
+ ...rest,
124
+ modified_by: req['user']._id,
125
+ modified: new Date(),
126
+ });
127
+ if (!result) {
128
+ throw new Error(`Record not found ${_id}`);
129
+ }
130
+ updatedRecords.push(result._id);
131
+ resultRecords.push(result);
132
+ }
133
+ else {
134
+ const result = await this.mongodbService.insertOne(objectName, {
135
+ ...rest,
136
+ created_by: req['user']._id,
137
+ created: new Date(),
138
+ modified_by: req['user']._id,
139
+ modified: new Date(),
140
+ });
141
+ createdRecords.push(result._id);
142
+ resultRecords.push(result);
143
+ }
144
+ res.status(200).send({
145
+ createdRecords,
146
+ updatedRecords,
147
+ records: resultRecords,
148
+ });
149
+ }
150
+ }
151
+ else {
152
+ const resultRecords = [];
153
+ for (const record of records) {
154
+ const { _id, ...rest } = record;
155
+ if (!_id) {
156
+ throw new Error(`_id is required`);
157
+ }
158
+ if (_id) {
159
+ const result = await this.mongodbService.findOneAndUpdate(objectName, _id, {
160
+ ...rest,
161
+ modified_by: req['user']._id,
162
+ modified: new Date(),
163
+ });
164
+ if (!result) {
165
+ throw new Error(`Record not found ${_id}`);
166
+ }
167
+ resultRecords.push(result);
168
+ }
169
+ res.status(200).send({
170
+ records: resultRecords,
171
+ });
172
+ }
173
+ }
174
+ }
175
+ catch (error) {
176
+ console.error('Update error', error);
177
+ res.status(500).send(error);
178
+ }
179
+ }
180
+ async remove(objectName, id, res) {
181
+ try {
182
+ const result = await this.mongodbService.deleteOne(objectName, { _id: id });
183
+ if (result.deletedCount === 0) {
184
+ return res.status(404).send();
185
+ }
186
+ res.status(200).send({ deleted: true, _id: id });
187
+ }
188
+ catch (error) {
189
+ console.error('Query error', error);
190
+ res.status(500).send(error);
191
+ }
192
+ }
193
+ async deleteMultiple(objectName, records, res) {
194
+ try {
195
+ const result = await this.mongodbService.deleteMany(objectName, { _id: { $in: records } });
196
+ if (result.deletedCount === 0) {
197
+ return res.status(404).send();
198
+ }
199
+ res.status(200).send({ records: records.map(_id => ({ deleted: true, _id })) });
200
+ }
201
+ catch (error) {
202
+ console.error('Query error', error);
203
+ res.status(500).send(error);
204
+ }
205
+ }
206
+ };
207
+ exports.MongodbController = MongodbController;
208
+ __decorate([
209
+ (0, common_1.Post)(':objectName'),
210
+ (0, swagger_1.ApiOperation)({ summary: 'Create a record' }),
211
+ (0, swagger_1.ApiBody)({
212
+ schema: {
213
+ type: 'object',
214
+ },
215
+ }),
216
+ __param(0, (0, common_1.Param)('objectName')),
217
+ __param(1, (0, common_1.Body)()),
218
+ __param(2, (0, common_1.Req)()),
219
+ __param(3, (0, common_1.Res)()),
220
+ __metadata("design:type", Function),
221
+ __metadata("design:paramtypes", [String, Object, Object, Object]),
222
+ __metadata("design:returntype", Promise)
223
+ ], MongodbController.prototype, "create", null);
224
+ __decorate([
225
+ (0, common_1.Get)(':objectName'),
226
+ (0, swagger_1.ApiOperation)({ summary: 'List records' }),
227
+ (0, swagger_1.ApiQuery)({
228
+ name: 'fields',
229
+ required: false,
230
+ description: '查询的字段,示例:name,created',
231
+ }),
232
+ (0, swagger_1.ApiQuery)({
233
+ name: 'filters',
234
+ required: false,
235
+ description: '过滤条件,示例:["age", ">", 10]',
236
+ }),
237
+ (0, swagger_1.ApiQuery)({
238
+ name: 'sort',
239
+ required: false,
240
+ description: '排序,示例:created desc',
241
+ }),
242
+ (0, swagger_1.ApiQuery)({ name: 'skip', required: false, description: '跳过记录数' }),
243
+ (0, swagger_1.ApiQuery)({
244
+ name: 'top',
245
+ required: false,
246
+ description: '每页记录数,默认20',
247
+ }),
248
+ __param(0, (0, common_1.Param)('objectName')),
249
+ __param(1, (0, common_1.Req)()),
250
+ __param(2, (0, common_1.Res)()),
251
+ __param(3, (0, common_1.Query)('fields')),
252
+ __param(4, (0, common_1.Query)('filters')),
253
+ __param(5, (0, common_1.Query)('sort')),
254
+ __param(6, (0, common_1.Query)('skip', new common_1.ParseIntPipe())),
255
+ __param(7, (0, common_1.Query)('top', new common_1.ParseIntPipe())),
256
+ __metadata("design:type", Function),
257
+ __metadata("design:paramtypes", [String, Object, Object, Object, Object, Object, Number, Number]),
258
+ __metadata("design:returntype", Promise)
259
+ ], MongodbController.prototype, "find", null);
260
+ __decorate([
261
+ (0, common_1.Get)(':objectName/:id'),
262
+ (0, swagger_1.ApiOperation)({ summary: 'Get record' }),
263
+ __param(0, (0, common_1.Res)()),
264
+ __param(1, (0, common_1.Param)('objectName')),
265
+ __param(2, (0, common_1.Param)('id')),
266
+ __metadata("design:type", Function),
267
+ __metadata("design:paramtypes", [Object, String, String]),
268
+ __metadata("design:returntype", Promise)
269
+ ], MongodbController.prototype, "findOne", null);
270
+ __decorate([
271
+ (0, common_1.Patch)(':objectName/:id'),
272
+ (0, swagger_1.ApiOperation)({ summary: 'Update record' }),
273
+ (0, swagger_1.ApiBody)({
274
+ schema: {
275
+ type: 'object',
276
+ },
277
+ }),
278
+ __param(0, (0, common_1.Param)('objectName')),
279
+ __param(1, (0, common_1.Param)('id')),
280
+ __param(2, (0, common_1.Body)()),
281
+ __param(3, (0, common_1.Req)()),
282
+ __param(4, (0, common_1.Res)()),
283
+ __metadata("design:type", Function),
284
+ __metadata("design:paramtypes", [String, String, Object, Object, Object]),
285
+ __metadata("design:returntype", Promise)
286
+ ], MongodbController.prototype, "update", null);
287
+ __decorate([
288
+ (0, common_1.Patch)(':objectName'),
289
+ (0, swagger_1.ApiOperation)({ summary: 'Update multiple records' }),
290
+ (0, swagger_1.ApiBody)({
291
+ schema: {
292
+ type: 'object',
293
+ properties: {
294
+ records: {
295
+ type: 'array',
296
+ items: {
297
+ type: 'object',
298
+ properties: {
299
+ _id: { type: 'string', example: 'rec560UJdUtocSouk' },
300
+ },
301
+ required: ['_id'],
302
+ },
303
+ },
304
+ },
305
+ },
306
+ }),
307
+ __param(0, (0, common_1.Param)('objectName')),
308
+ __param(1, (0, common_1.Body)('records')),
309
+ __param(2, (0, common_1.Body)('performUpsert')),
310
+ __param(3, (0, common_1.Req)()),
311
+ __param(4, (0, common_1.Res)()),
312
+ __metadata("design:type", Function),
313
+ __metadata("design:paramtypes", [String, Array, Boolean, Object, Object]),
314
+ __metadata("design:returntype", Promise)
315
+ ], MongodbController.prototype, "updateMultiple", null);
316
+ __decorate([
317
+ (0, common_1.Delete)(':objectName/:id'),
318
+ (0, swagger_1.ApiOperation)({ summary: 'Delete record' }),
319
+ __param(0, (0, common_1.Param)('objectName')),
320
+ __param(1, (0, common_1.Param)('id')),
321
+ __param(2, (0, common_1.Res)()),
322
+ __metadata("design:type", Function),
323
+ __metadata("design:paramtypes", [String, String, Object]),
324
+ __metadata("design:returntype", Promise)
325
+ ], MongodbController.prototype, "remove", null);
326
+ __decorate([
327
+ (0, common_1.Delete)(':objectName'),
328
+ (0, swagger_1.ApiOperation)({ summary: 'Delete multiple records' }),
329
+ (0, swagger_1.ApiBody)({
330
+ schema: {
331
+ type: 'object',
332
+ properties: {
333
+ records: {
334
+ type: 'array',
335
+ items: {
336
+ type: 'string',
337
+ },
338
+ },
339
+ },
340
+ },
341
+ }),
342
+ __param(0, (0, common_1.Param)('objectName')),
343
+ __param(1, (0, common_1.Body)('records')),
344
+ __param(2, (0, common_1.Res)()),
345
+ __metadata("design:type", Function),
346
+ __metadata("design:paramtypes", [String, Array, Object]),
347
+ __metadata("design:returntype", Promise)
348
+ ], MongodbController.prototype, "deleteMultiple", null);
349
+ exports.MongodbController = MongodbController = __decorate([
350
+ (0, common_1.Controller)('api/v6/direct'),
351
+ (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
352
+ (0, swagger_1.ApiBearerAuth)(),
353
+ __metadata("design:paramtypes", [mongodb_service_1.MongodbService])
354
+ ], MongodbController);
355
+ //# sourceMappingURL=mongodb.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongodb.controller.js","sourceRoot":"","sources":["../../src/steedos/mongodb.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAcwB;AACxB,gEAA4D;AAE5D,8DAA8D;AAC9D,6CAAiF;AACjF,qDAAgD;AAMzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IASzD,AAAN,KAAK,CAAC,MAAM,CACW,UAAkB,EAC/B,MAAc,EACf,GAAY,EACZ,GAAa;QAEpB,MAAM,IAAI,GAAG,GAAG,CAAC,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U,EAAC,eAAe,CAAC;IAC3B,IAAA,kBAAS,EAAC,wBAAU,CAAC;IACrB,IAAA,uBAAa,GAAE;qCAE+B,gCAAc;GADhD,iBAAiB,CA2U7B"}
@@ -0,0 +1,6 @@
1
+ import { MongodbService } from '@/mongodb/mongodb.service';
2
+ export declare class ObjectService {
3
+ private readonly mongodbService;
4
+ constructor(mongodbService: MongodbService);
5
+ getObject(objectName: string): Promise<any>;
6
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ObjectService = void 0;
13
+ const mongodb_service_1 = require("../mongodb/mongodb.service");
14
+ const common_1 = require("@nestjs/common");
15
+ let ObjectService = class ObjectService {
16
+ constructor(mongodbService) {
17
+ this.mongodbService = mongodbService;
18
+ }
19
+ async getObject(objectName) {
20
+ const object = await this.mongodbService.findOne('objects', {
21
+ name: objectName,
22
+ });
23
+ if (object) {
24
+ object.fields = await this.mongodbService.find('object_fields', { filter: ['object', '=', objectName] }, {});
25
+ }
26
+ return object;
27
+ }
28
+ };
29
+ exports.ObjectService = ObjectService;
30
+ exports.ObjectService = ObjectService = __decorate([
31
+ (0, common_1.Injectable)(),
32
+ __metadata("design:paramtypes", [mongodb_service_1.MongodbService])
33
+ ], ObjectService);
34
+ //# sourceMappingURL=object.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.service.js","sourceRoot":"","sources":["../../src/steedos/object.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA2D;AAC3D,2CAA4C;AAGrC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,SAAS,CAAC,UAAkB;QAChC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE;YAC1D,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QACH,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAC5C,eAAe,EACf,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,EACvC,EAAE,CACH,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAhBY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEkC,gCAAc;GADhD,aAAa,CAgBzB"}
@@ -0,0 +1,2 @@
1
+ export declare class SteedosModule {
2
+ }
@@ -0,0 +1,27 @@
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.SteedosModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const mongodb_controller_1 = require("./mongodb.controller");
12
+ const mongodb_module_1 = require("../mongodb/mongodb.module");
13
+ const auth_module_1 = require("../auth/auth.module");
14
+ const object_service_1 = require("./object.service");
15
+ let SteedosModule = class SteedosModule {
16
+ };
17
+ exports.SteedosModule = SteedosModule;
18
+ exports.SteedosModule = SteedosModule = __decorate([
19
+ (0, common_1.Module)({
20
+ imports: [auth_module_1.AuthModule, mongodb_module_1.MongodbModule],
21
+ controllers: [mongodb_controller_1.MongodbController],
22
+ providers: [
23
+ object_service_1.ObjectService
24
+ ],
25
+ })
26
+ ], SteedosModule);
27
+ //# sourceMappingURL=steedos.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steedos.module.js","sourceRoot":"","sources":["../../src/steedos/steedos.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6DAAyD;AACzD,8DAAyD;AACzD,qDAAgD;AAChD,qDAAiD;AAQ1C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IANzB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,wBAAU,EAAE,8BAAa,CAAC;QACpC,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE;YACX,8BAAa;SAAC;KACf,CAAC;GACW,aAAa,CAAG"}
@@ -0,0 +1,6 @@
1
+ import { MongodbService } from '@/mongodb/mongodb.service';
2
+ export declare class MetaService {
3
+ private readonly mongodbService;
4
+ constructor(mongodbService: MongodbService);
5
+ getTableMeta(baseId: string, tableId: string): Promise<any>;
6
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetaService = void 0;
13
+ const mongodb_service_1 = require("../mongodb/mongodb.service");
14
+ const common_1 = require("@nestjs/common");
15
+ let MetaService = class MetaService {
16
+ constructor(mongodbService) {
17
+ this.mongodbService = mongodbService;
18
+ }
19
+ async getTableMeta(baseId, tableId) {
20
+ let table = await this.mongodbService.findOne('b6_tables', {
21
+ _id: tableId,
22
+ });
23
+ if (table) {
24
+ table.fields = await this.mongodbService.find('b6_fields', {
25
+ table_id: tableId,
26
+ }, { sort: { sort_no: 1 } });
27
+ table.verifications = await this.mongodbService.find('b6_verification', {
28
+ table: tableId,
29
+ });
30
+ }
31
+ else {
32
+ table = {
33
+ _id: tableId,
34
+ base_id: baseId,
35
+ name: 'Tasks',
36
+ description: 'I was changed!',
37
+ fields: [
38
+ {
39
+ _id: 'fld001',
40
+ name: 'name',
41
+ label: '名称',
42
+ type: 'text',
43
+ default_value: '默认文本',
44
+ },
45
+ { _id: 'fld002', name: 'age', label: '年龄', type: 'number', default_value: 20 },
46
+ { _id: 'fld003', name: 'discount', label: '折扣', type: 'number', precision: 2 },
47
+ { _id: 'fld004', name: 'info', label: '备注', type: 'textarea' },
48
+ {
49
+ _id: 'fld005',
50
+ name: 'company',
51
+ label: '公司',
52
+ type: 'select',
53
+ options: `华炎\n建华\n中国移动`,
54
+ },
55
+ { _id: 'fld007', name: 'birthdate', label: '生日', type: 'date' },
56
+ { _id: 'fld008', name: 'created', label: '创建时间', type: 'datetime', default_value: '2024-12-11T09:22:09.045Z' },
57
+ { _id: 'fld009', name: 'valid', label: '启用', type: 'boolean' },
58
+ {
59
+ _id: 'fld010',
60
+ name: 'formula',
61
+ label: '公式',
62
+ type: 'formula',
63
+ formula: 'name + age',
64
+ },
65
+ ],
66
+ verifications: [
67
+ {
68
+ alert: '年龄必须大于18岁',
69
+ rule: 'age > 18',
70
+ },
71
+ ],
72
+ };
73
+ }
74
+ return table;
75
+ }
76
+ };
77
+ exports.MetaService = MetaService;
78
+ exports.MetaService = MetaService = __decorate([
79
+ (0, common_1.Injectable)(),
80
+ __metadata("design:paramtypes", [mongodb_service_1.MongodbService])
81
+ ], MetaService);
82
+ //# sourceMappingURL=meta.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.service.js","sourceRoot":"","sources":["../../src/tables/meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,gEAA2D;AAC3D,2CAA4C;AAGrC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAI,CAAC;IAEhE,KAAK,CAAC,YAAY,CAAC,MAAc,EAAE,OAAe;QAChD,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE;YACzD,GAAG,EAAE,OAAO;SACb,CAAC,CAAC;QACH,IAAI,KAAK,EAAE,CAAC;YACV,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE;gBACzD,QAAQ,EAAE,OAAO;aAClB,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7B,KAAK,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE;gBACtE,KAAK,EAAE,OAAO;aACf,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,KAAK,GAAG;gBACN,GAAG,EAAE,OAAO;gBACZ,OAAO,EAAE,MAAM;gBAC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BACD,aAAa,EAAE;oBACb;wBACE,KAAK,EAAE,WAAW;wBAClB,IAAI,EAAE,UAAU;qBACjB;iBACF;aACK,CAAC;QACX,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AAlEY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAEkC,gCAAc;GADhD,WAAW,CAkEvB"}
@@ -0,0 +1,13 @@
1
+ import 'regenerator-runtime/runtime';
2
+ export declare class RecordsService {
3
+ private db;
4
+ private readonly logger;
5
+ constructor();
6
+ private getCollection;
7
+ createRecord(baseId: string, tableId: string, data: any): Promise<any>;
8
+ getRecords(baseId: string, tableId: string, loadOptions: any, processingOptions: any): Promise<any>;
9
+ getRecordById(baseId: string, tableId: string, id: string): Promise<any>;
10
+ updateRecord(baseId: string, tableId: string, id: string, data: any): Promise<any>;
11
+ deleteOne(baseId: string, tableId: string, query: object): Promise<any>;
12
+ deleteMany(baseId: string, tableId: string, query: object): Promise<any>;
13
+ }
@@ -0,0 +1,73 @@
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 RecordsService_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.RecordsService = void 0;
14
+ require("regenerator-runtime/runtime");
15
+ const common_1 = require("@nestjs/common");
16
+ const mongodb_1 = require("mongodb");
17
+ const uuid_1 = require("uuid");
18
+ const devextremeQuery = require("devextreme-query-mongodb");
19
+ let RecordsService = RecordsService_1 = class RecordsService {
20
+ constructor() {
21
+ this.logger = new common_1.Logger(RecordsService_1.name);
22
+ const mongoUrl = process.env.STEEDOS_TABLES_MONGO_URL || process.env.B6_TABLES_MONGO_URL || process.env.MONGO_URL;
23
+ const client = new mongodb_1.MongoClient(mongoUrl, {});
24
+ client
25
+ .connect()
26
+ .then(() => {
27
+ this.db = client.db();
28
+ this.logger.log('Connected to Tables MongoDB');
29
+ })
30
+ .catch((err) => {
31
+ this.logger.error('Error connecting to Tables MongoDB', err);
32
+ });
33
+ }
34
+ getCollection(baseId, tableId) {
35
+ const collectionName = `t_${baseId}_${tableId}`;
36
+ return this.db.collection(collectionName);
37
+ }
38
+ async createRecord(baseId, tableId, data) {
39
+ const collection = this.getCollection(baseId, tableId);
40
+ const entry = { _id: (0, uuid_1.v4)(), ...data };
41
+ await collection.insertOne(entry);
42
+ return entry;
43
+ }
44
+ async getRecords(baseId, tableId, loadOptions, processingOptions) {
45
+ const collection = this.getCollection(baseId, tableId);
46
+ return devextremeQuery(collection, loadOptions, processingOptions);
47
+ }
48
+ async getRecordById(baseId, tableId, id) {
49
+ const collection = this.getCollection(baseId, tableId);
50
+ return await collection.findOne({ _id: id });
51
+ }
52
+ async updateRecord(baseId, tableId, id, data) {
53
+ const collection = this.getCollection(baseId, tableId);
54
+ const result = await collection.findOneAndUpdate({ _id: id }, { $set: data }, { returnDocument: 'after' });
55
+ return result.value;
56
+ }
57
+ async deleteOne(baseId, tableId, query) {
58
+ const collection = this.getCollection(baseId, tableId);
59
+ const result = await collection.deleteOne(query);
60
+ return result;
61
+ }
62
+ async deleteMany(baseId, tableId, query) {
63
+ const collection = this.getCollection(baseId, tableId);
64
+ const result = await collection.deleteMany(query);
65
+ return result;
66
+ }
67
+ };
68
+ exports.RecordsService = RecordsService;
69
+ exports.RecordsService = RecordsService = RecordsService_1 = __decorate([
70
+ (0, common_1.Injectable)(),
71
+ __metadata("design:paramtypes", [])
72
+ ], RecordsService);
73
+ //# sourceMappingURL=records.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.service.js","sourceRoot":"","sources":["../../src/tables/records.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uCAAqC;AAErC,2CAAoD;AACpD,qCAAsD;AACtD,+BAAoC;AACpC,4DAA4D;AAGrD,IAAM,cAAc,sBAApB,MAAM,cAAc;IAIzB;QAFiB,WAAM,GAAG,IAAI,eAAM,CAAC,gBAAc,CAAC,IAAI,CAAC,CAAC;QAGxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QAClH,MAAM,MAAM,GAAG,IAAI,qBAAW,CAAC,QAAQ,EAAE,EAGxC,CAAC,CAAC;QAEH,MAAM;aACH,OAAO,EAAE;aACT,IAAI,CAAC,GAAG,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,aAAa,CAAC,MAAc,EAAE,OAAe;QACnD,MAAM,cAAc,GAAG,KAAK,MAAM,IAAI,OAAO,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc,EAAE,OAAe,EAAE,IAAS;QAC3D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO,CA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