robbyson-frontend-library 1.0.94-rc1 → 1.0.95-rc1
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/constants/index.js +1 -1
- package/dist/constants/result-level.constants.js +11 -1
- package/dist/index.js +1 -0
- package/dist/models/retrospective.model.js +24 -0
- package/dist/models/theme-base.js +1 -0
- package/dist/repositories/retrospective.repository.interface.js +1 -0
- package/dist/services/retrospective.service.interface.js +1 -0
- package/dist/states/index.js +1 -0
- package/dist/states/retrospective-container/retrospective.state.interface.js +1 -0
- package/package.json +1 -1
- package/src/constants/index.ts +1 -1
- package/src/constants/result-level.constants.ts +14 -2
- package/src/index.ts +1 -0
- package/src/models/index.d.ts +2 -1
- package/src/models/retrospective.model.ts +120 -0
- package/src/models/theme-base.ts +1 -0
- package/src/repositories/index.d.ts +1 -0
- package/src/repositories/retrospective.repository.interface.ts +12 -0
- package/src/services/index.d.ts +1 -0
- package/src/services/retrospective.service.interface.ts +17 -0
- package/src/states/index.ts +1 -0
- package/src/states/main-container/app.state.interface.ts +2 -1
- package/src/states/retrospective-container/retrospective.state.interface.ts +5 -0
package/dist/constants/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./user-metadata.constants";
|
|
|
6
6
|
export * from "./tree.constants";
|
|
7
7
|
export * as UploadConstants from "./upload.constants";
|
|
8
8
|
export * as CampaignConstants from "./campaign.constants";
|
|
9
|
-
export * as ResultsConstants from "./result-level.constants";
|
|
10
9
|
export * as AuthenticationConstants from "./authentication.constants";
|
|
11
10
|
export * as AngelFriendConstants from "./angel-friend.constants";
|
|
12
11
|
export * from "./sounds.constants";
|
|
12
|
+
export * from "./result-level.constants";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
export var RESULT_LEVEL;
|
|
2
3
|
(function (RESULT_LEVEL) {
|
|
3
4
|
RESULT_LEVEL[RESULT_LEVEL["ESTRELA"] = 0] = "ESTRELA";
|
|
@@ -5,4 +6,13 @@ export var RESULT_LEVEL;
|
|
|
5
6
|
RESULT_LEVEL[RESULT_LEVEL["AGUIA"] = 2] = "AGUIA";
|
|
6
7
|
RESULT_LEVEL[RESULT_LEVEL["MONTANHA"] = 3] = "MONTANHA";
|
|
7
8
|
})(RESULT_LEVEL || (RESULT_LEVEL = {}));
|
|
8
|
-
|
|
9
|
+
export var RESULT_LEVEL_LABEL = (_a = {},
|
|
10
|
+
_a[RESULT_LEVEL.ESTRELA] = "Estrela",
|
|
11
|
+
_a[RESULT_LEVEL.NUVEM] = "Nuvem",
|
|
12
|
+
_a[RESULT_LEVEL.AGUIA] = "Águia",
|
|
13
|
+
_a[RESULT_LEVEL.MONTANHA] = "Montanha",
|
|
14
|
+
_a);
|
|
15
|
+
export var ResultsConstants = {
|
|
16
|
+
RESULT_LEVEL: RESULT_LEVEL,
|
|
17
|
+
RESULT_LEVEL_LABEL: RESULT_LEVEL_LABEL,
|
|
18
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export * from "./models/market-trade-product.model";
|
|
|
32
32
|
export * from "./models/user.model";
|
|
33
33
|
export * from "./models/user-list-filter.model";
|
|
34
34
|
export * from "./models/locale.model";
|
|
35
|
+
export * from "./models/retrospective.model";
|
|
35
36
|
// Repositories
|
|
36
37
|
export * from "./repositories/base.repository";
|
|
37
38
|
// Components
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
var RetrospectiveModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(RetrospectiveModel, _super);
|
|
19
|
+
function RetrospectiveModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return RetrospectiveModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { RetrospectiveModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/states/index.js
CHANGED
|
@@ -11,3 +11,4 @@ export * from "./meetings-container/meetings-app.state.interface";
|
|
|
11
11
|
export * from "./quiz-container/quiz-app.state.interface";
|
|
12
12
|
export * from "./angel-friend-container/angel-friend.state.interface";
|
|
13
13
|
export * from "./profile-container/profile-app.state.interface";
|
|
14
|
+
export * from "./retrospective-container/retrospective.state.interface";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/constants/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./user-metadata.constants";
|
|
|
6
6
|
export * from "./tree.constants";
|
|
7
7
|
export * as UploadConstants from "./upload.constants";
|
|
8
8
|
export * as CampaignConstants from "./campaign.constants";
|
|
9
|
-
export * as ResultsConstants from "./result-level.constants";
|
|
10
9
|
export * as AuthenticationConstants from "./authentication.constants";
|
|
11
10
|
export * as AngelFriendConstants from "./angel-friend.constants";
|
|
12
11
|
export * from "./sounds.constants";
|
|
12
|
+
export * from "./result-level.constants";
|
|
@@ -2,5 +2,17 @@ export enum RESULT_LEVEL {
|
|
|
2
2
|
ESTRELA = 0,
|
|
3
3
|
NUVEM = 1,
|
|
4
4
|
AGUIA = 2,
|
|
5
|
-
MONTANHA = 3
|
|
6
|
-
}
|
|
5
|
+
MONTANHA = 3,
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const RESULT_LEVEL_LABEL: { [key: number]: string } = {
|
|
9
|
+
[RESULT_LEVEL.ESTRELA]: "Estrela",
|
|
10
|
+
[RESULT_LEVEL.NUVEM]: "Nuvem",
|
|
11
|
+
[RESULT_LEVEL.AGUIA]: "Águia",
|
|
12
|
+
[RESULT_LEVEL.MONTANHA]: "Montanha",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const ResultsConstants = {
|
|
16
|
+
RESULT_LEVEL,
|
|
17
|
+
RESULT_LEVEL_LABEL,
|
|
18
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from "./models/market-trade-product.model";
|
|
|
34
34
|
export * from "./models/user.model";
|
|
35
35
|
export * from "./models/user-list-filter.model";
|
|
36
36
|
export * from "./models/locale.model";
|
|
37
|
+
export * from "./models/retrospective.model";
|
|
37
38
|
|
|
38
39
|
// Repositories
|
|
39
40
|
export * from "./repositories/base.repository";
|
package/src/models/index.d.ts
CHANGED
|
@@ -76,4 +76,5 @@ export * from "./portal-dashboard.model";
|
|
|
76
76
|
export * from "./portal-dashboard-embedded.model";
|
|
77
77
|
export * from "./locale.model";
|
|
78
78
|
export * from "./contractor-password-length.model";
|
|
79
|
-
export * from "./contractor-info.model";
|
|
79
|
+
export * from "./contractor-info.model";
|
|
80
|
+
export * from "./retrospective.model";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
2
|
+
|
|
3
|
+
export class RetrospectiveModel extends BaseRepositoryModel {
|
|
4
|
+
id: string;
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
level_1: boolean;
|
|
8
|
+
review_features: ReviewFeatures;
|
|
9
|
+
year: number;
|
|
10
|
+
show: boolean;
|
|
11
|
+
feedback: {
|
|
12
|
+
suggestion?: string;
|
|
13
|
+
rating_stars?: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ReviewFeatures {
|
|
18
|
+
// Early years
|
|
19
|
+
name: string;
|
|
20
|
+
read: boolean;
|
|
21
|
+
topMoodPerc: number;
|
|
22
|
+
numTopMood: number;
|
|
23
|
+
okMoodPerc: number;
|
|
24
|
+
numOkMood: number;
|
|
25
|
+
loginCount: number;
|
|
26
|
+
topDaysInARow: number;
|
|
27
|
+
earnedCoins: number;
|
|
28
|
+
transactionsCount: number;
|
|
29
|
+
raffleTransactions: number;
|
|
30
|
+
physicalTransactions: number;
|
|
31
|
+
benefitsTransactions: number;
|
|
32
|
+
avatarTransactions: number;
|
|
33
|
+
starredItemsCount: number;
|
|
34
|
+
joinedChallenges: number;
|
|
35
|
+
achievedChallenges: number;
|
|
36
|
+
mostProfitableOnChallengesIndicator: string;
|
|
37
|
+
chatbotQuestions: number;
|
|
38
|
+
chatConversations: number;
|
|
39
|
+
accessRate: number;
|
|
40
|
+
collabTopMoodPerc: number;
|
|
41
|
+
collabOkMoodPerc: number;
|
|
42
|
+
teamJoinedChallenges: number;
|
|
43
|
+
teamAchievedChallenges: number;
|
|
44
|
+
bestCollaborator: string;
|
|
45
|
+
loginPercentage: number;
|
|
46
|
+
star_days: number;
|
|
47
|
+
spendCoins: number;
|
|
48
|
+
answeredQuestionnaires: number;
|
|
49
|
+
chatbotMostAskedContext: string;
|
|
50
|
+
robbysonMessages: number;
|
|
51
|
+
|
|
52
|
+
mostReceivedNotification: string;
|
|
53
|
+
exchangedGroupChat: number;
|
|
54
|
+
exchangedMessages: number;
|
|
55
|
+
godfatherCount: number;
|
|
56
|
+
godsonCount: number;
|
|
57
|
+
godfatherName: string;
|
|
58
|
+
eadStarted: number;
|
|
59
|
+
transactionsTeamCount: number;
|
|
60
|
+
qtyBestCollaborator: number;
|
|
61
|
+
bestIndicator: number;
|
|
62
|
+
bestIndicatorValue: number;
|
|
63
|
+
bestPrimaryAttribute: string;
|
|
64
|
+
angelFriendTeamCount: number;
|
|
65
|
+
maxEarnedCoinsIndicator: Array<string>;
|
|
66
|
+
|
|
67
|
+
// 2022
|
|
68
|
+
daysSinceInitDate: number;
|
|
69
|
+
team_earned_coins: number;
|
|
70
|
+
team_spent_coins: number;
|
|
71
|
+
team_happiest_day_of_week: string;
|
|
72
|
+
team_happiest_collaborator: string;
|
|
73
|
+
collaborator_with_most_access: string;
|
|
74
|
+
team_best_collaborators: string[];
|
|
75
|
+
team_exchanged_products_count: number;
|
|
76
|
+
team_benefits_count: number;
|
|
77
|
+
team_avatar_count: number;
|
|
78
|
+
team_physical_count: number;
|
|
79
|
+
team_raffle_count: number;
|
|
80
|
+
team_godfather_count: number;
|
|
81
|
+
team_godson_count: number;
|
|
82
|
+
team_recurrent_star_count: number;
|
|
83
|
+
team_best_month: number;
|
|
84
|
+
earned_coins: number;
|
|
85
|
+
tips_count: number;
|
|
86
|
+
spent_coins: number;
|
|
87
|
+
total_received_notifications: number;
|
|
88
|
+
happiest_day_of_week: string;
|
|
89
|
+
most_valuable_indicator: string;
|
|
90
|
+
most_important_indicator: string;
|
|
91
|
+
top_exchanged_products: string[];
|
|
92
|
+
exchanged_messages: number;
|
|
93
|
+
top_mood_perc: number;
|
|
94
|
+
top_mood_count: number;
|
|
95
|
+
|
|
96
|
+
// 2023
|
|
97
|
+
total_coin_in_star_level: number;
|
|
98
|
+
indicator_with_most_coin_in_star_level: number;
|
|
99
|
+
godfather_count: (string | number)[];
|
|
100
|
+
count_indicators_in_challenge: number;
|
|
101
|
+
coins_in_indicators_challenge: number;
|
|
102
|
+
team_exchanged_messages: number;
|
|
103
|
+
top_5_exchanged_products: string[];
|
|
104
|
+
top_n_collaborator_with_most_access: string[];
|
|
105
|
+
godfather_coins: number;
|
|
106
|
+
godson_coins: number;
|
|
107
|
+
godson_count: (string | number)[];
|
|
108
|
+
|
|
109
|
+
//2024
|
|
110
|
+
exchanged_products_count: number;
|
|
111
|
+
star_days_count: number;
|
|
112
|
+
star_days_coins_perc: number;
|
|
113
|
+
star_days_coins: number;
|
|
114
|
+
coins_of_most_valuable_indicator: number;
|
|
115
|
+
team_best_month_goal_achieved: number;
|
|
116
|
+
team_group_distribution: Record<number, number>;
|
|
117
|
+
top_type_exchanged_products: string;
|
|
118
|
+
exchanged_coins_of_top_type_products: number;
|
|
119
|
+
group_distribution: Record<number, number>;
|
|
120
|
+
}
|
package/src/models/theme-base.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RetrospectiveModel } from "../models";
|
|
2
|
+
|
|
3
|
+
export interface IRetrospectiveRepository {
|
|
4
|
+
getRetrospective(): Promise<RetrospectiveModel>;
|
|
5
|
+
sendRating(retroId: string, rating: number, token: string): Promise<void>;
|
|
6
|
+
sendSuggestion(
|
|
7
|
+
retroId: string,
|
|
8
|
+
suggestion: string,
|
|
9
|
+
token: string
|
|
10
|
+
): Promise<void>;
|
|
11
|
+
getToken(): Promise<string>;
|
|
12
|
+
}
|
package/src/services/index.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RetrospectiveModel } from "../models";
|
|
2
|
+
|
|
3
|
+
export interface IRetrospectiveService {
|
|
4
|
+
handleGetRetrospective(): Promise<void>;
|
|
5
|
+
setRetrospective(): Promise<void>;
|
|
6
|
+
getRetrospectiveData(): RetrospectiveModel;
|
|
7
|
+
shouldShowRetrospective(retrospective?: RetrospectiveModel): boolean;
|
|
8
|
+
sendRating(retroId: string, rating: number, token: string): Promise<void>;
|
|
9
|
+
sendSuggestion(
|
|
10
|
+
retroId: string,
|
|
11
|
+
suggestion: string,
|
|
12
|
+
token: string
|
|
13
|
+
): Promise<void>;
|
|
14
|
+
getToken(): Promise<string>;
|
|
15
|
+
setRetrospectiveSuggestion(suggestion: string): void;
|
|
16
|
+
setRetrospectiveRating(rating: number): void;
|
|
17
|
+
}
|
package/src/states/index.ts
CHANGED
|
@@ -11,3 +11,4 @@ export * from "./meetings-container/meetings-app.state.interface";
|
|
|
11
11
|
export * from "./quiz-container/quiz-app.state.interface";
|
|
12
12
|
export * from "./angel-friend-container/angel-friend.state.interface";
|
|
13
13
|
export * from "./profile-container/profile-app.state.interface";
|
|
14
|
+
export * from "./retrospective-container/retrospective.state.interface";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="redux-persist" />
|
|
2
2
|
import { IRootApp } from "./root-app.state.interface";
|
|
3
3
|
import { ITreeApp } from "./tree-app.state.interface";
|
|
4
|
-
import { persistReducer } from "redux-persist";
|
|
5
4
|
import { PersistPartial } from "redux-persist/es/persistReducer";
|
|
6
5
|
import { INotificationApp } from "./notification-app.state.interface";
|
|
7
6
|
import { IChatApp } from "../chat-container/chat-app.state.interface";
|
|
@@ -12,6 +11,7 @@ import { IMeetingsAppState } from "../meetings-container/meetings-app.state.inte
|
|
|
12
11
|
import { IQuizApp } from "../quiz-container/quiz-app.state.interface";
|
|
13
12
|
import { IAngelFriendApp } from "../angel-friend-container/angel-friend.state.interface";
|
|
14
13
|
import { IProfileApp } from "../profile-container/profile-app.state.interface";
|
|
14
|
+
import { IRetrospectiveApp } from "../retrospective-container/retrospective.state.interface";
|
|
15
15
|
|
|
16
16
|
export interface IAppState {
|
|
17
17
|
RootApp: IRootApp & PersistPartial;
|
|
@@ -25,4 +25,5 @@ export interface IAppState {
|
|
|
25
25
|
QuizApp: IQuizApp & PersistPartial;
|
|
26
26
|
AngelFriendApp: IAngelFriendApp & PersistPartial;
|
|
27
27
|
ProfileApp: IProfileApp & PersistPartial;
|
|
28
|
+
RetrospectiveApp: IRetrospectiveApp & PersistPartial;
|
|
28
29
|
}
|