robbyson-frontend-library 1.0.52 → 1.0.54
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/dist/models/tree/tree.model.js +12 -2
- 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/components/weekly-chart/weekly-chart.interface.ts +1 -0
- package/src/models/tree/tree-table.model.ts +3 -0
- package/src/models/tree/tree.model.ts +4 -2
- package/src/models/user-session.model.ts +11 -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/services/upload.service.interface.ts +1 -0
- 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) {
|
|
@@ -13,6 +13,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
16
27
|
import { BaseRepositoryModel } from "../base.repository.model";
|
|
17
28
|
function registerHierarchy(hierarchies) {
|
|
18
29
|
return hierarchies === null || hierarchies === void 0 ? void 0 : hierarchies.map(function (hierarchy) {
|
|
@@ -50,7 +61,6 @@ var TreeModel = /** @class */ (function (_super) {
|
|
|
50
61
|
d: props === null || props === void 0 ? void 0 : props.data.d,
|
|
51
62
|
g: props === null || props === void 0 ? void 0 : props.data.g,
|
|
52
63
|
c: props === null || props === void 0 ? void 0 : props.data.c,
|
|
53
|
-
cd: props === null || props === void 0 ? void 0 : props.data.cd,
|
|
54
64
|
f: registerHierarchy(props === null || props === void 0 ? void 0 : props.data.f),
|
|
55
65
|
cpf: props === null || props === void 0 ? void 0 : props.data.cpf,
|
|
56
66
|
resultRegister: props === null || props === void 0 ? void 0 : props.data.resultadoCadastrado,
|
|
@@ -63,7 +73,7 @@ var TreeModel = /** @class */ (function (_super) {
|
|
|
63
73
|
},
|
|
64
74
|
} : {};
|
|
65
75
|
if (((_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.cd) !== undefined)
|
|
66
|
-
props.data
|
|
76
|
+
_this.data = (props === null || props === void 0 ? void 0 : props.data) != null ? __assign(__assign({}, props === null || props === void 0 ? void 0 : props.data), { cd: props === null || props === void 0 ? void 0 : props.data.cd }) : {};
|
|
67
77
|
_this.colors = props === null || props === void 0 ? void 0 : props.colors;
|
|
68
78
|
_this.highlightColors = props === null || props === void 0 ? void 0 : props.highlightColors;
|
|
69
79
|
_this.faixas = props === null || props === void 0 ? void 0 : props.faixas;
|
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) => {
|
|
@@ -91,7 +91,6 @@ export class TreeModel extends BaseRepositoryModel {
|
|
|
91
91
|
d : props?.data.d,
|
|
92
92
|
g : props?.data.g,
|
|
93
93
|
c : props?.data.c,
|
|
94
|
-
cd : props?.data.cd,
|
|
95
94
|
f : registerHierarchy(props?.data.f),
|
|
96
95
|
cpf : props?.data.cpf,
|
|
97
96
|
resultRegister : props?.data.resultadoCadastrado,
|
|
@@ -104,7 +103,10 @@ export class TreeModel extends BaseRepositoryModel {
|
|
|
104
103
|
},
|
|
105
104
|
} : {}
|
|
106
105
|
if(props?.data?.cd !== undefined)
|
|
107
|
-
|
|
106
|
+
this.data = props?.data != null ? {
|
|
107
|
+
...props?.data,
|
|
108
|
+
cd : props?.data.cd,
|
|
109
|
+
} : {}
|
|
108
110
|
this.colors = props?.colors;
|
|
109
111
|
this.highlightColors = props?.highlightColors;
|
|
110
112
|
this.faixas = props?.faixas;
|
|
@@ -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 {
|
|
@@ -46,8 +47,16 @@ export class UserSessionModel extends BaseRepositoryModel {
|
|
|
46
47
|
_id: string;
|
|
47
48
|
active: boolean;
|
|
48
49
|
}[];
|
|
50
|
+
mirrorAttributes?: {
|
|
51
|
+
attribute: {
|
|
52
|
+
_id: string;
|
|
53
|
+
primary: boolean;
|
|
54
|
+
};
|
|
55
|
+
_id: string;
|
|
56
|
+
active: boolean;
|
|
57
|
+
}[];
|
|
49
58
|
name: string;
|
|
50
|
-
userHierarchyLevel: number // Hierarquia do usuario em si, não do espelho
|
|
59
|
+
userHierarchyLevel: number; // Hierarquia do usuario em si, não do espelho
|
|
51
60
|
};
|
|
52
61
|
nickname: string;
|
|
53
62
|
about: string;
|
|
@@ -99,6 +108,7 @@ export class UserSessionModel extends BaseRepositoryModel {
|
|
|
99
108
|
UsuarioAceitouTermoUsoAtual: boolean;
|
|
100
109
|
colorBadge?: string;
|
|
101
110
|
isAcceptedLastUseTerm: boolean;
|
|
111
|
+
lastUseTerm: TermsOfUseModel;
|
|
102
112
|
UsuarioJaLogou: boolean;
|
|
103
113
|
firstAccess: boolean;
|
|
104
114
|
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(
|