robbyson-frontend-library 1.0.52 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/tree/tree-table.model.js +1 -0
- package/package.json +1 -1
- package/src/components/filter/filter.interface.ts +1 -0
- package/src/components/modal/modal.interface.ts +1 -0
- package/src/components/result-chart/result-chart.interface.ts +5 -0
- package/src/components/text-field/text-field.interface.ts +1 -1
- package/src/models/tree/tree-table.model.ts +3 -0
- package/src/models/user-session.model.ts +3 -1
- package/src/repositories/quiz.repository.interface.ts +1 -0
- package/src/services/dtos/tree.dto.ts +4 -0
- package/src/services/quiz.service.interface.ts +2 -0
- package/src/services/tree.service.interface.ts +2 -1
- package/src/states/quiz-container/quiz-app.state.interface.ts +1 -0
|
@@ -24,6 +24,7 @@ var TreeTableModel = /** @class */ (function (_super) {
|
|
|
24
24
|
_this.name = props.nome;
|
|
25
25
|
_this.office = props.cargo;
|
|
26
26
|
_this.cpf = props.cpf;
|
|
27
|
+
_this.image = props === null || props === void 0 ? void 0 : props.image;
|
|
27
28
|
_this.user_id = props.user_id;
|
|
28
29
|
_this.hierarchy = props.hierarquia;
|
|
29
30
|
_this.attributes = props.atributos.map(function (attribute) {
|
package/package.json
CHANGED
|
@@ -17,9 +17,14 @@ export interface IResultChartProps extends IBaseComponentProp {
|
|
|
17
17
|
hit:number;
|
|
18
18
|
data: ResultModel[];
|
|
19
19
|
colorDivision: number[];
|
|
20
|
+
isInitialPosition?: boolean;
|
|
20
21
|
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
export interface IResultChartState {
|
|
25
|
+
active: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
type ChartDataResults = {
|
|
24
29
|
percentage?: number;
|
|
25
30
|
date: string;
|
|
@@ -72,6 +72,7 @@ export interface ITreeTableOldModel {
|
|
|
72
72
|
nome: string;
|
|
73
73
|
cargo: string;
|
|
74
74
|
cpf: string;
|
|
75
|
+
image?: string;
|
|
75
76
|
user_id: string;
|
|
76
77
|
atributos: IAtributeDetailOld[];
|
|
77
78
|
indicador: IIndicatorOld;
|
|
@@ -84,6 +85,7 @@ export class TreeTableModel extends BaseRepositoryModel {
|
|
|
84
85
|
name: string;
|
|
85
86
|
office: string;
|
|
86
87
|
cpf: string;
|
|
88
|
+
image?: string;
|
|
87
89
|
user_id: string;
|
|
88
90
|
attributes: IAtributeDetail[];
|
|
89
91
|
indicator: IIndicator;
|
|
@@ -95,6 +97,7 @@ export class TreeTableModel extends BaseRepositoryModel {
|
|
|
95
97
|
this.name = props.nome;
|
|
96
98
|
this.office = props.cargo;
|
|
97
99
|
this.cpf = props.cpf;
|
|
100
|
+
this.image = props?.image;
|
|
98
101
|
this.user_id = props.user_id;
|
|
99
102
|
this.hierarchy = props.hierarquia;
|
|
100
103
|
this.attributes = props.atributos.map((attribute) => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseRepositoryModel } from "./base.repository.model";
|
|
2
|
+
import { TermsOfUseModel } from "./term-of-use.model";
|
|
2
3
|
import { UserMirrorModel } from "./user-mirror.model";
|
|
3
4
|
|
|
4
5
|
export class UserSessionModel extends BaseRepositoryModel {
|
|
@@ -47,7 +48,7 @@ export class UserSessionModel extends BaseRepositoryModel {
|
|
|
47
48
|
active: boolean;
|
|
48
49
|
}[];
|
|
49
50
|
name: string;
|
|
50
|
-
userHierarchyLevel: number // Hierarquia do usuario em si, não do espelho
|
|
51
|
+
userHierarchyLevel: number; // Hierarquia do usuario em si, não do espelho
|
|
51
52
|
};
|
|
52
53
|
nickname: string;
|
|
53
54
|
about: string;
|
|
@@ -99,6 +100,7 @@ export class UserSessionModel extends BaseRepositoryModel {
|
|
|
99
100
|
UsuarioAceitouTermoUsoAtual: boolean;
|
|
100
101
|
colorBadge?: string;
|
|
101
102
|
isAcceptedLastUseTerm: boolean;
|
|
103
|
+
lastUseTerm: TermsOfUseModel;
|
|
102
104
|
UsuarioJaLogou: boolean;
|
|
103
105
|
firstAccess: boolean;
|
|
104
106
|
forceAvatarDisplay?: boolean;
|
|
@@ -10,5 +10,6 @@ export interface IQuizRepository {
|
|
|
10
10
|
): Promise<QuizModel>;
|
|
11
11
|
getQuizzesToBeAnsweredLater(): Promise<QuizAnsweredModel[]>;
|
|
12
12
|
getNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
|
|
13
|
+
getGeneralNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
|
|
13
14
|
getAnsweredQuizzes(): Promise<QuizAnsweredModel[]>;
|
|
14
15
|
}
|
|
@@ -39,6 +39,8 @@ export interface IHandleSearchTreeDTO {
|
|
|
39
39
|
text: string;
|
|
40
40
|
limit?: number;
|
|
41
41
|
groups?: string[]
|
|
42
|
+
skip?: number
|
|
43
|
+
count?: boolean,
|
|
42
44
|
excludeIdentifications?: string[];
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -150,6 +152,8 @@ export interface IHandleSearchUser {
|
|
|
150
152
|
|
|
151
153
|
export interface IMembersBroadcast extends Omit<IHandleSearchUser, 'identification' | 'group'> {
|
|
152
154
|
identification: string;
|
|
155
|
+
image?: string;
|
|
156
|
+
"COUNT(*)"?: number;
|
|
153
157
|
group: string;
|
|
154
158
|
}
|
|
155
159
|
export interface IInsertSimulationTreeDTO {
|
|
@@ -10,8 +10,10 @@ export interface IQuizService {
|
|
|
10
10
|
): Promise<QuizModel>;
|
|
11
11
|
getQuizzesToBeAnsweredLater(): Promise<QuizAnsweredModel[]>;
|
|
12
12
|
getNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
|
|
13
|
+
getGeneralNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
|
|
13
14
|
getAnsweredQuizzes(): Promise<QuizAnsweredModel[]>;
|
|
14
15
|
getNotAnsweredQuizzesCount(): number;
|
|
16
|
+
getGeneralNotAnsweredQuizzesCount(): number;
|
|
15
17
|
getHistory(): Promise<[QuizAnsweredModel[], QuizAnsweredModel[]]>;
|
|
16
18
|
handleNotAnsweredQuiz(quizId?: string): Promise<boolean>;
|
|
17
19
|
setQuiz(quiz: QuizModel): void;
|
|
@@ -63,7 +63,8 @@ export interface ITreeService {
|
|
|
63
63
|
getGraphData(simulationId?: string): Promise<void>;
|
|
64
64
|
insertSimulation(
|
|
65
65
|
simulationValue: number,
|
|
66
|
-
period: string
|
|
66
|
+
period: string,
|
|
67
|
+
detailsTree:TreeDetailModel
|
|
67
68
|
): Promise<TreeSaveSimulatorModel>;
|
|
68
69
|
callSimulationProcess(params: TreeSaveSimulatorModel): Promise<void>;
|
|
69
70
|
completeSimulation(
|