Add models for search

This commit is contained in:
Peter Maquiran
2021-01-08 11:02:19 +01:00
parent a3dfd995a8
commit c89551bd13
7 changed files with 62 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import { EventSearch } from './event-search';
describe('EventSearch', () => {
it('should create an instance', () => {
expect(new EventSearch()).toBeTruthy();
});
});
+19
View File
@@ -0,0 +1,19 @@
export class EventSearch {
Categories: {
Id: number;
Name: string;
Qtd: 6;
}[] = [];
Documents: {
ApplicationType: number;
Assunto: string;
Data: string;
DocTypeDesc: string;
EntidadeOrganicaId: number;
EntidadeOrganicaNome: string
Id: string
}[] = [];
}
+7
View File
@@ -0,0 +1,7 @@
import { SearchCategory } from './search-category';
describe('SearchCategory', () => {
it('should create an instance', () => {
expect(new SearchCategory()).toBeTruthy();
});
});
+5
View File
@@ -0,0 +1,5 @@
export class SearchCategory {
Id: number;
Name: string;
Qtd: 6;
}
+7
View File
@@ -0,0 +1,7 @@
import { SearchDocument } from './search-document';
describe('SearchDocument', () => {
it('should create an instance', () => {
expect(new SearchDocument()).toBeTruthy();
});
});
+10
View File
@@ -0,0 +1,10 @@
export class SearchDocument {
ApplicationType: number;
Assunto: string;
Data: string;
DocTypeDesc: string;
EntidadeOrganicaId: number;
EntidadeOrganicaNome: string
Id: string
}
+7
View File
@@ -0,0 +1,7 @@
export class Search {
subject: string;
date: string;
sender: string;
organicEntity: string;
docTypeId: string;
}