@smartsoft001/crud-shell-nestjs 1.2.0 → 2.68.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/.eslintrc +1 -1
- package/package.json +6 -1
- package/src/lib/controllers/crud/crud.controller.spec.ts +1 -2
- package/src/lib/controllers/crud/crud.controller.ts +10 -9
- package/src/lib/gateways/crud/crud.gateway.spec.ts +1 -1
- package/src/lib/gateways/crud/crud.gateway.ts +2 -2
- package/src/lib/guards/auth/auth.guard.spec.ts +1 -0
- package/src/lib/nestjs.module.ts +3 -4
package/.eslintrc
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/crud-shell-nestjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.68.0",
|
|
4
4
|
"description": "Utils to crud",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,10 @@
|
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/emiljuchnikowski/smartsoft/issues"
|
|
18
18
|
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@smartsoft001/crud-shell-app-services": "2.68.0",
|
|
21
|
+
"@smartsoft001/crud-shell-dto": "*",
|
|
22
|
+
"@smartsoft001/domain-core": "2.68.0"
|
|
23
|
+
},
|
|
19
24
|
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme"
|
|
20
25
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { CrudService } from '@smartsoft001/crud-shell-app-services';
|
|
1
2
|
import { Request } from 'express';
|
|
2
3
|
import * as XLSX from 'xlsx';
|
|
3
4
|
|
|
4
|
-
import { CrudService } from '@smartsoft001/crud-shell-app-services';
|
|
5
|
-
|
|
6
5
|
import { CrudController } from './crud.controller';
|
|
7
6
|
import * as q2mModule from './query-to-mongo';
|
|
8
7
|
|
|
@@ -14,25 +14,26 @@ import {
|
|
|
14
14
|
Res,
|
|
15
15
|
UseGuards,
|
|
16
16
|
} from '@nestjs/common';
|
|
17
|
-
import {
|
|
17
|
+
import { CreateManyMode } from '@smartsoft001/crud-domain';
|
|
18
|
+
import { CrudService } from '@smartsoft001/crud-shell-app-services';
|
|
19
|
+
import { IEntity } from '@smartsoft001/domain-core';
|
|
20
|
+
import { User } from '@smartsoft001/nestjs';
|
|
21
|
+
import { IUser } from '@smartsoft001/users';
|
|
22
|
+
import { GuidService } from '@smartsoft001/utils';
|
|
23
|
+
import * as Busboy from 'busboy';
|
|
18
24
|
import { Response, Request } from 'express';
|
|
19
25
|
import { Parser } from 'json2csv';
|
|
20
26
|
import * as _ from 'lodash';
|
|
27
|
+
import * as moment from 'moment-timezone';
|
|
21
28
|
import * as XLSX from 'xlsx';
|
|
22
|
-
|
|
29
|
+
|
|
23
30
|
import { Readable } from 'stream';
|
|
24
|
-
import * as moment from 'moment-timezone';
|
|
25
31
|
|
|
26
|
-
import {
|
|
27
|
-
import { IUser } from '@smartsoft001/users';
|
|
28
|
-
import { User } from '@smartsoft001/nestjs';
|
|
29
|
-
import { IEntity } from '@smartsoft001/domain-core';
|
|
32
|
+
import { q2m } from './query-to-mongo';
|
|
30
33
|
import {
|
|
31
34
|
AuthJwtGuard,
|
|
32
35
|
AuthOrAnonymousJwtGuard,
|
|
33
36
|
} from '../../guards/auth/auth.guard';
|
|
34
|
-
import { CreateManyMode } from '@smartsoft001/crud-domain';
|
|
35
|
-
import { GuidService } from '@smartsoft001/utils';
|
|
36
37
|
|
|
37
38
|
@Controller('')
|
|
38
39
|
export class CrudController<T extends IEntity<string>> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CrudService } from '@smartsoft001/crud-shell-app-services';
|
|
2
|
-
import { of, throwError } from 'rxjs';
|
|
3
2
|
import { ItemChangedData } from '@smartsoft001/crud-shell-dtos';
|
|
3
|
+
import { of, throwError } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
import { CrudGateway } from './crud.gateway';
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
WebSocketGateway,
|
|
9
9
|
WsResponse,
|
|
10
10
|
} from '@nestjs/websockets';
|
|
11
|
-
import { Socket } from 'socket.io';
|
|
12
11
|
import { CrudService } from '@smartsoft001/crud-shell-app-services';
|
|
12
|
+
import { ItemChangedData } from '@smartsoft001/crud-shell-dtos';
|
|
13
13
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
14
14
|
import { Observable, Subscription } from 'rxjs';
|
|
15
|
-
import {
|
|
15
|
+
import { Socket } from 'socket.io';
|
|
16
16
|
|
|
17
17
|
@WebSocketGateway({
|
|
18
18
|
transports: ['websocket'],
|
package/src/lib/nestjs.module.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { DynamicModule, Module } from '@nestjs/common';
|
|
2
|
-
import { PassportModule } from '@nestjs/passport';
|
|
3
2
|
import { JwtModule } from '@nestjs/jwt';
|
|
4
|
-
|
|
3
|
+
import { PassportModule } from '@nestjs/passport';
|
|
5
4
|
import { SERVICES } from '@smartsoft001/crud-shell-app-services';
|
|
6
|
-
import { SharedConfig, SharedModule } from '@smartsoft001/nestjs';
|
|
7
5
|
import { MongoModule } from '@smartsoft001/mongo';
|
|
6
|
+
import { SharedConfig, SharedModule } from '@smartsoft001/nestjs';
|
|
8
7
|
|
|
9
8
|
import { CONTROLLERS } from './controllers';
|
|
10
|
-
import { AuthJwtGuard } from './guards/auth/auth.guard';
|
|
11
9
|
import { GATEWAYS } from './gateways';
|
|
10
|
+
import { AuthJwtGuard } from './guards/auth/auth.guard';
|
|
12
11
|
|
|
13
12
|
@Module({})
|
|
14
13
|
export class CrudShellNestjsModule {
|