-
Notifications
You must be signed in to change notification settings - Fork 195
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 #610 from panoratech/596-feat-add-id_connection-an…
…d-id_project-to-events-object 596 feat add id connection and id project to events object
- Loading branch information
Showing
259 changed files
with
5,137 additions
and
1,540 deletions.
There are no files selected for viewing
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
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,10 +1,30 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class ApiKeyDto { | ||
@ApiProperty() | ||
@ApiProperty({ | ||
name: 'projectId', | ||
example: '801f9ede-c698-4e66-a7fc-48d19eebaa4f', | ||
required: true, | ||
type: String, | ||
description: 'Id of the project', | ||
}) | ||
projectId: string; | ||
@ApiProperty() | ||
|
||
@ApiProperty({ | ||
name: 'userId', | ||
example: '801f9ede-c698-4e66-a7fc-48d19eebaa4f', | ||
required: true, | ||
type: String, | ||
description: 'Id of the user', | ||
}) | ||
userId: string; | ||
@ApiProperty() | ||
|
||
@ApiProperty({ | ||
name: 'keyName', | ||
example: 'My Api Key', | ||
required: true, | ||
type: String, | ||
description: 'Name of the key', | ||
}) | ||
keyName: string; | ||
} |
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,16 +1,46 @@ | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
|
||
export class CreateUserDto { | ||
@ApiProperty() | ||
@ApiProperty({ | ||
example: 'John', | ||
type: String, | ||
description: 'The first name of the user', | ||
}) | ||
first_name: string; | ||
@ApiProperty() | ||
|
||
@ApiProperty({ | ||
example: 'Doe', | ||
type: String, | ||
description: 'The last name of the user', | ||
}) | ||
last_name: string; | ||
@ApiProperty() | ||
|
||
@ApiProperty({ | ||
example: '[email protected]', | ||
type: String, | ||
description: 'The email of the user', | ||
}) | ||
email: string; | ||
@ApiProperty() | ||
|
||
@ApiProperty({ | ||
example: 'oauth2', | ||
type: String, | ||
description: 'The authentication strategy', | ||
}) | ||
strategy: string; | ||
@ApiPropertyOptional() | ||
|
||
@ApiPropertyOptional({ | ||
example: '$hashed_163_password', | ||
type: String, | ||
description: 'The hashed password', | ||
}) | ||
password_hash: string; | ||
@ApiPropertyOptional() | ||
|
||
@ApiPropertyOptional({ | ||
example: '801f9ede-c698-4e66-a7fc-48d19eebaa4f', | ||
type: String, | ||
required: false, | ||
description: 'The organization ID', | ||
}) | ||
id_organisation?: string; | ||
} |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ import { IsEmail } from 'class-validator'; | |
export class RequestPasswordResetDto { | ||
@IsEmail() | ||
email: string; | ||
} | ||
} |
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
Oops, something went wrong.