FrontEnd Angular - v0.0.1-alpha

This commit is contained in:
2022-09-04 04:22:18 -03:00
parent 9640501195
commit 4a0ff02e2a
116 changed files with 27771 additions and 19001 deletions

View File

@@ -0,0 +1,6 @@
import { createCheckers } from "ts-interface-checker";
import TokenTI from "../token/token.model-ti";
import UserTI from "./user.model-ti";
const UserChecker = createCheckers(UserTI, TokenTI)['User'];
export default UserChecker;

View File

@@ -0,0 +1,23 @@
/**
* This module was automatically generated by `ts-interface-builder`
*/
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes
export const User = t.iface([], {
"id": t.opt("number"),
"name": t.opt("string"),
"email": t.opt("string"),
"username": "string",
"password": t.opt("string"),
"accessToken": t.opt("Token"),
"refreshToken": t.opt("Token"),
"authorities": t.opt(t.array(t.iface([], {
"authority": "string",
}))),
});
const UserTI: t.ITypeSuite = {
User,
};
export default UserTI;

View File

@@ -0,0 +1,13 @@
import { Token } from "../token/token.model";
export interface User {
id?: number,
fullname?: string,
email?: string,
username: string,
password?: string,
accessToken?: Token,
refreshToken?: Token,
authorities?: Array<{authority: string}>,
validateAccessToken?: () => Token | undefined;
};