Skip to content

Commit

Permalink
refactor(autenticacao): declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed May 2, 2024
1 parent 1ccfe12 commit de19053
Show file tree
Hide file tree
Showing 44 changed files with 161 additions and 214 deletions.

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',
}
2 changes: 1 addition & 1 deletion javascript/sisgea-spec/src/sisgea/autenticacao/index.ts
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';
Loading

0 comments on commit de19053

Please sign in to comment.