@lenne.tech/nest-server 10.8.5 → 10.8.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "10.8.5",
3
+ "version": "10.8.6",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -17,13 +17,13 @@ export class CoreAuthModel extends CoreModel {
17
17
  // ===================================================================================================================
18
18
 
19
19
  /**
20
- * JavaScript Web Token (JWT)
20
+ * JSON Web Token(JWT)
21
21
  */
22
22
  @ApiProperty({
23
- description: 'JavaScript Web Token (JWT) used for auth',
23
+ description: 'JSON Web Token(JWT) used for auth',
24
24
  example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
25
25
  })
26
- @Field({ description: 'JavaScript Web Token (JWT)', nullable: true })
26
+ @Field({ description: 'JSON Web Token(JWT)', nullable: true })
27
27
  @Restricted(RoleEnum.S_EVERYONE)
28
28
  token?: string = undefined;
29
29
 
@@ -31,7 +31,7 @@ export class CoreAuthModel extends CoreModel {
31
31
  * Refresh token
32
32
  */
33
33
  @ApiProperty({
34
- description: 'Refresh JavaScript Web Token (JWT) used for auth',
34
+ description: 'Refresh JSON Web Token(JWT) used for auth',
35
35
  example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
36
36
  })
37
37
  @Field({ description: 'Refresh token', nullable: true })
@@ -1,5 +1,5 @@
1
1
  import { Field, InputType } from '@nestjs/graphql';
2
- import { ApiProperty } from '@nestjs/swagger';
2
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
3
3
  import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator';
4
4
 
5
5
  import { Restricted } from '../../../common/decorators/restricted.decorator';
@@ -16,14 +16,14 @@ export class CoreAuthSignInInput extends CoreInput {
16
16
  // Properties
17
17
  // ===================================================================================================================
18
18
 
19
- @ApiProperty()
19
+ @ApiPropertyOptional({ description: 'Device ID (is created automatically if it is not set)' })
20
20
  @Field({ description: 'Device ID (is created automatically if it is not set)', nullable: true })
21
21
  @IsOptional()
22
22
  @IsString()
23
23
  @Restricted(RoleEnum.S_EVERYONE)
24
24
  deviceId?: string = undefined;
25
25
 
26
- @ApiProperty()
26
+ @ApiPropertyOptional({ description: 'Device description' })
27
27
  @Field({ description: 'Device description', nullable: true })
28
28
  @IsOptional()
29
29
  @IsString()