-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
refactor(autenticacao): declarations
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { IUsuarioFindOneResultDto } from './usuario'; | ||
|
||
export type IAutenticacaoDefinirSenhaInputDto = { | ||
senha: string; | ||
confirmarSenha: string; | ||
matriculaSiape: string; | ||
}; | ||
|
||
export type IAutenticacaoDefinirSenhaResultDto = { | ||
result: string; | ||
}; | ||
|
||
export type IAutenticacaoLoginInputDto = { | ||
matriculaSiape: string; | ||
senha: string; | ||
}; | ||
|
||
export type IAutenticacaoLoginResultDto = { | ||
access_token: string | null; | ||
token_type: string | null; | ||
id_token: string | null; | ||
refresh_token: string | null; | ||
expires_in: number | null; | ||
expires_at: number | null; | ||
session_state: string | null; | ||
scope: string | null; | ||
}; | ||
|
||
export type IAutenticacaoQuemSouEuResultDto = { | ||
usuario: IUsuarioFindOneResultDto | null; | ||
}; | ||
|
||
export type IAutenticacaoRefreshInputDto = { | ||
refreshToken: string; | ||
}; | ||
|
||
export enum ISisgeaAuthValidationErrorCode { | ||
AUTH_PASSWORD_INVALID = 'auth.password.invalid', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './(dtos)'; | ||
export * from './autenticacao.declarations'; | ||
export * from './usuario'; | ||
export * from './usuario-vinculo-campus'; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './(dtos)'; | ||
export * from './IUsuarioVinculoCampusModel'; | ||
export * from './usuario-vinculo-campus.declarations'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { IDatedObject, IEntityDate, IObjectUuid, IPaginatedResultDto } from '../../../core'; | ||
import { ICampusFindOneResultDto, ICampusModel } from '../../ambientes'; | ||
import { IUsuarioFindOneResultDto, IUsuarioModel } from '../usuario/usuario.declarations'; | ||
|
||
export interface IUsuarioVinculoCampusModel extends IObjectUuid, IDatedObject { | ||
// | ||
id: string; | ||
// | ||
ativo: boolean; | ||
cargo: string; | ||
// | ||
campus: ICampusModel; | ||
usuario: IUsuarioModel; | ||
// | ||
dateCreated: IEntityDate; | ||
dateUpdated: IEntityDate; | ||
dateDeleted: null | IEntityDate; | ||
// | ||
} | ||
|
||
export interface IUsuarioVinculoCampusFindAllResultDto extends IPaginatedResultDto<IUsuarioVinculoCampusFindOneResultDto> {} | ||
|
||
export interface IUsuarioVinculoCampusFindOneByIdInputDto { | ||
id: IUsuarioVinculoCampusModel['id']; | ||
} | ||
|
||
export interface IUsuarioVinculoCampusFindOneResultDto { | ||
id: IUsuarioVinculoCampusModel['id']; | ||
ativo: IUsuarioVinculoCampusModel['ativo']; | ||
cargo: IUsuarioVinculoCampusModel['cargo']; | ||
usuario: IUsuarioFindOneResultDto; | ||
campus: ICampusFindOneResultDto; | ||
} | ||
|
||
export interface IUsuarioVinculoCampusListByUsuarioAndCampusInputDto { | ||
campus: IObjectUuid; | ||
usuario: IObjectUuid; | ||
} | ||
|
||
export interface IUsuarioVinculoCampusSetVinculosInputDto { | ||
campus: IObjectUuid; | ||
usuario: IObjectUuid; | ||
|
||
cargos: string[]; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './(dtos)'; | ||
export * from './IUsuarioModel'; | ||
export * from './usuario.declarations'; |