-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from lenneTech/develop
Release 10.3.2
- Loading branch information
Showing
34 changed files
with
177 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
import { Field, InputType } from '@nestjs/graphql'; | ||
|
||
import { Restricted } from '../decorators/restricted.decorator'; | ||
import { RoleEnum } from '../enums/role.enum'; | ||
import { SortOrderEnum } from '../enums/sort-order.emum'; | ||
import { CoreInput } from './core-input.input'; | ||
|
||
/** | ||
* Sorting the returned elements | ||
*/ | ||
@Restricted(RoleEnum.S_EVERYONE) | ||
@InputType({ description: 'Sorting the returned elements' }) | ||
export class SortInput extends CoreInput { | ||
/** | ||
* Field that is to be used for sorting | ||
*/ | ||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field({ description: 'Field that is to be used for sorting' }) | ||
field: string = undefined; | ||
|
||
/** | ||
* SortInput order of the field | ||
*/ | ||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field(type => SortOrderEnum, { description: 'SortInput order of the field' }) | ||
order: SortOrderEnum = undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
import { Field, InputType } from '@nestjs/graphql'; | ||
|
||
import { Restricted } from '../../../common/decorators/restricted.decorator'; | ||
import { RoleEnum } from '../../../common/enums/role.enum'; | ||
import { CoreInput } from '../../../common/inputs/core-input.input'; | ||
|
||
/** | ||
* SignIn input | ||
*/ | ||
@Restricted(RoleEnum.S_EVERYONE) | ||
@InputType({ description: 'Sign-in input' }) | ||
export class CoreAuthSignInInput extends CoreInput { | ||
// =================================================================================================================== | ||
// Properties | ||
// =================================================================================================================== | ||
|
||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field({ description: 'Device ID (is created automatically if it is not set)', nullable: true }) | ||
deviceId?: string = undefined; | ||
|
||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field({ description: 'Device description', nullable: true }) | ||
deviceDescription?: string = undefined; | ||
|
||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field({ description: 'Email', nullable: false }) | ||
email: string = undefined; | ||
|
||
@Restricted(RoleEnum.S_EVERYONE) | ||
@Field({ description: 'Password', nullable: false }) | ||
password: string = undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { InputType } from '@nestjs/graphql'; | ||
|
||
import { Restricted } from '../../../common/decorators/restricted.decorator'; | ||
import { RoleEnum } from '../../../common/enums/role.enum'; | ||
import { CoreAuthSignInInput } from './core-auth-sign-in.input'; | ||
|
||
/** | ||
* SignUp input | ||
*/ | ||
@Restricted(RoleEnum.S_EVERYONE) | ||
@InputType({ description: 'Sign-up input' }) | ||
export class CoreAuthSignUpInput extends CoreAuthSignInInput {} |
Oops, something went wrong.