heartraite 1.0.50 → 1.0.51
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CASkipReason, Gender, PLSAgeInterval, PLSRelationshipDuration, PLSRelationshipStatus } from "../enum";
|
|
1
|
+
import { CASkipReason, FeedbackAgreement, Gender, PLSAgeInterval, PLSRelationshipDuration, PLSRelationshipStatus } from "../enum";
|
|
2
|
+
export declare const translateFeedbackAgreement: (agreement: FeedbackAgreement) => string;
|
|
2
3
|
export declare const translateCASkipReason: (reason: CASkipReason) => string;
|
|
3
4
|
export declare function translateGender(gender: Gender): string;
|
|
4
5
|
export declare function translateAgeInterval(ageInterval: PLSAgeInterval): string;
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.translateCASkipReason = void 0;
|
|
3
|
+
exports.translateCASkipReason = exports.translateFeedbackAgreement = void 0;
|
|
4
4
|
exports.translateGender = translateGender;
|
|
5
5
|
exports.translateAgeInterval = translateAgeInterval;
|
|
6
6
|
exports.translateRelationshipDuration = translateRelationshipDuration;
|
|
7
7
|
exports.translateRelationshipStatus = translateRelationshipStatus;
|
|
8
8
|
const enum_1 = require("../enum");
|
|
9
|
+
const translateFeedbackAgreement = (agreement) => {
|
|
10
|
+
switch (agreement) {
|
|
11
|
+
case enum_1.FeedbackAgreement.YES:
|
|
12
|
+
return "Ja";
|
|
13
|
+
case enum_1.FeedbackAgreement.NO:
|
|
14
|
+
return "Nej";
|
|
15
|
+
case enum_1.FeedbackAgreement.PARTIAL:
|
|
16
|
+
return "Delvis";
|
|
17
|
+
default:
|
|
18
|
+
return "Ogiltigt avtal";
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.translateFeedbackAgreement = translateFeedbackAgreement;
|
|
9
22
|
const translateCASkipReason = (reason) => {
|
|
10
23
|
switch (reason) {
|
|
11
24
|
case enum_1.CASkipReason.NOT_RELEVANT:
|
package/package.json
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CASkipReason,
|
|
3
|
+
FeedbackAgreement,
|
|
3
4
|
Gender,
|
|
4
5
|
PLSAgeInterval,
|
|
5
6
|
PLSRelationshipDuration,
|
|
6
7
|
PLSRelationshipStatus,
|
|
7
8
|
} from "../enum";
|
|
8
9
|
|
|
10
|
+
export const translateFeedbackAgreement = (
|
|
11
|
+
agreement: FeedbackAgreement
|
|
12
|
+
): string => {
|
|
13
|
+
switch (agreement) {
|
|
14
|
+
case FeedbackAgreement.YES:
|
|
15
|
+
return "Ja";
|
|
16
|
+
case FeedbackAgreement.NO:
|
|
17
|
+
return "Nej";
|
|
18
|
+
case FeedbackAgreement.PARTIAL:
|
|
19
|
+
return "Delvis";
|
|
20
|
+
default:
|
|
21
|
+
return "Ogiltigt avtal";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
9
25
|
export const translateCASkipReason = (reason: CASkipReason): string => {
|
|
10
26
|
switch (reason) {
|
|
11
27
|
case CASkipReason.NOT_RELEVANT:
|