@careflair/common 1.0.22 → 1.0.23
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/utils/index.d.ts +1 -1
- package/dist/utils/index.js +6 -1
- package/dist/utils/labels.js +6 -6
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getAltCommunicationLabel = exports.getPreferencesLabel = exports.getGenderLabel = exports.getSupportWorkerServiceLabel = void 0;
|
|
17
18
|
// Phone validation utilities
|
|
18
19
|
__exportStar(require("./phone"), exports);
|
|
19
20
|
// Date formatting utilities
|
|
@@ -31,4 +32,8 @@ __exportStar(require("./onboarding"), exports);
|
|
|
31
32
|
// HTML sanitization utilities
|
|
32
33
|
__exportStar(require("./html"), exports);
|
|
33
34
|
// Label helper utilities
|
|
34
|
-
|
|
35
|
+
var labels_1 = require("./labels");
|
|
36
|
+
Object.defineProperty(exports, "getSupportWorkerServiceLabel", { enumerable: true, get: function () { return labels_1.getSupportWorkerServiceLabel; } });
|
|
37
|
+
Object.defineProperty(exports, "getGenderLabel", { enumerable: true, get: function () { return labels_1.getGenderLabel; } });
|
|
38
|
+
Object.defineProperty(exports, "getPreferencesLabel", { enumerable: true, get: function () { return labels_1.getPreferencesLabel; } });
|
|
39
|
+
Object.defineProperty(exports, "getAltCommunicationLabel", { enumerable: true, get: function () { return labels_1.getAltCommunicationLabel; } });
|
package/dist/utils/labels.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.getAltCommunicationLabel = exports.getPreferencesLabel = exports.getGend
|
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
5
|
const enums_1 = require("../enums");
|
|
6
6
|
const getSupportWorkerServiceLabel = (service) => {
|
|
7
|
-
return
|
|
7
|
+
return constants_1.SupportWorkerServiceLabels[service] || service;
|
|
8
8
|
};
|
|
9
9
|
exports.getSupportWorkerServiceLabel = getSupportWorkerServiceLabel;
|
|
10
10
|
const getGenderLabel = (gender) => {
|
|
@@ -14,11 +14,11 @@ const getGenderLabel = (gender) => {
|
|
|
14
14
|
exports.getGenderLabel = getGenderLabel;
|
|
15
15
|
const getPreferencesLabel = (preference) => {
|
|
16
16
|
const preferences = {
|
|
17
|
-
SOLE_TRADER:
|
|
18
|
-
ORGANISATION:
|
|
19
|
-
ORGANIZATION:
|
|
20
|
-
NDIS_REGISTERED:
|
|
21
|
-
RATE_NEGOTIABLE:
|
|
17
|
+
SOLE_TRADER: "Sole Trader",
|
|
18
|
+
ORGANISATION: "Organisation",
|
|
19
|
+
ORGANIZATION: "Organization",
|
|
20
|
+
NDIS_REGISTERED: "NDIS Registered",
|
|
21
|
+
RATE_NEGOTIABLE: "Rate Negotiable",
|
|
22
22
|
};
|
|
23
23
|
return preferences[preference] || preference;
|
|
24
24
|
};
|