@nest-omni/core 3.1.2-0 → 3.1.2-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/package.json +1 -1
- package/setup/bootstrap.setup.js +28 -28
package/package.json
CHANGED
package/setup/bootstrap.setup.js
CHANGED
|
@@ -10,6 +10,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.bootstrapSetup = bootstrapSetup;
|
|
13
|
+
const crud_1 = require("@dataui/crud");
|
|
14
|
+
crud_1.CrudConfigService.load({
|
|
15
|
+
auth: {
|
|
16
|
+
property: 'user',
|
|
17
|
+
},
|
|
18
|
+
params: {
|
|
19
|
+
id: {
|
|
20
|
+
field: 'id',
|
|
21
|
+
type: 'string',
|
|
22
|
+
primary: true,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
query: {
|
|
26
|
+
limit: 10,
|
|
27
|
+
alwaysPaginate: true,
|
|
28
|
+
},
|
|
29
|
+
routes: {
|
|
30
|
+
updateOneBase: {
|
|
31
|
+
allowParamsOverride: false,
|
|
32
|
+
},
|
|
33
|
+
deleteOneBase: {
|
|
34
|
+
returnDeleted: false,
|
|
35
|
+
},
|
|
36
|
+
createOneBase: {
|
|
37
|
+
returnShallow: false,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
13
41
|
const Sentry = require("@sentry/nestjs");
|
|
14
42
|
const profiling_node_1 = require("@sentry/profiling-node");
|
|
15
43
|
const dotenv = require("dotenv");
|
|
@@ -78,34 +106,6 @@ Sentry.init({
|
|
|
78
106
|
sendDefaultPii: true,
|
|
79
107
|
integrations: [profiling_node_1.nodeProfilingIntegration],
|
|
80
108
|
});
|
|
81
|
-
const crud_1 = require("@dataui/crud");
|
|
82
|
-
crud_1.CrudConfigService.load({
|
|
83
|
-
auth: {
|
|
84
|
-
property: 'user',
|
|
85
|
-
},
|
|
86
|
-
params: {
|
|
87
|
-
id: {
|
|
88
|
-
field: 'id',
|
|
89
|
-
type: 'string',
|
|
90
|
-
primary: true,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
query: {
|
|
94
|
-
limit: 10,
|
|
95
|
-
alwaysPaginate: true,
|
|
96
|
-
},
|
|
97
|
-
routes: {
|
|
98
|
-
updateOneBase: {
|
|
99
|
-
allowParamsOverride: false,
|
|
100
|
-
},
|
|
101
|
-
deleteOneBase: {
|
|
102
|
-
returnDeleted: false,
|
|
103
|
-
},
|
|
104
|
-
createOneBase: {
|
|
105
|
-
returnShallow: false,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
109
|
const core_1 = require("@nestjs/core");
|
|
110
110
|
const nestjs_pino_1 = require("nestjs-pino");
|
|
111
111
|
const session = require("express-session");
|