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,18 @@
/**
* This module was automatically generated by `ts-interface-builder`
*/
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes
export const HttpError = t.iface([], {
"title": "string",
"status": "number",
"details": "string",
"developerMessage": "string",
"timestamp": "string",
});
const HttpErrorTI: t.ITypeSuite = {
HttpError,
};
export default HttpErrorTI;

View File

@@ -0,0 +1,7 @@
export interface HttpError {
title: string;
status: number;
details: string;
developerMessage: string;
timestamp: string;
}

View File

@@ -0,0 +1,5 @@
import { createCheckers } from "ts-interface-checker";
import HttpErrorTI from "./httpError.model-ti";
const HttpErrorChecker = createCheckers(HttpErrorTI)['HttpError'];
export default HttpErrorChecker;

View File

@@ -0,0 +1,15 @@
/**
* This module was automatically generated by `ts-interface-builder`
*/
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes
export const Token = t.iface([], {
"token": "string",
"expirationDate": t.union("string", "number"),
});
const exportedTypeSuite: t.ITypeSuite = {
Token,
};
export default exportedTypeSuite;

View File

@@ -0,0 +1,4 @@
export interface Token {
token: string,
expirationDate: string|number
}

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;
};