plac-micro-common 1.2.74 → 1.2.76
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,2 +1,2 @@
|
|
|
1
1
|
export declare const DISPLAY_DATE_FORMAT = "DD MMM YYYY";
|
|
2
|
-
export declare const DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY
|
|
2
|
+
export declare const DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
|
package/dist/constants/index.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DISPLAY_DATE_TIME_FORMAT = exports.DISPLAY_DATE_FORMAT = void 0;
|
|
4
4
|
exports.DISPLAY_DATE_FORMAT = "DD MMM YYYY";
|
|
5
|
-
exports.DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY
|
|
5
|
+
exports.DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
|
|
@@ -28,7 +28,6 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], ApplicationEntity.prototype, "id", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Index)(),
|
|
32
31
|
(0, typeorm_1.Column)({ type: "varchar", length: 50, unique: true }),
|
|
33
32
|
__metadata("design:type", String)
|
|
34
33
|
], ApplicationEntity.prototype, "application_no", void 0);
|
|
@@ -211,6 +210,5 @@ __decorate([
|
|
|
211
210
|
__metadata("design:type", Array)
|
|
212
211
|
], ApplicationEntity.prototype, "app_uw_answers", void 0);
|
|
213
212
|
exports.ApplicationEntity = ApplicationEntity = __decorate([
|
|
214
|
-
(0, typeorm_1.Entity)({ schema: "application", name: "applications" })
|
|
215
|
-
(0, typeorm_1.Unique)("uq_application_org_app_no", ["org_id", "application_no"])
|
|
213
|
+
(0, typeorm_1.Entity)({ schema: "application", name: "applications" })
|
|
216
214
|
], ApplicationEntity);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function buildFullName(first?: string | null, last?: string | null): string | null;
|
|
2
|
+
export declare function buildUserFullName(first?: string | null, last?: string | null): string | null;
|
|
2
3
|
export declare function buildFullNameKh(firstKh?: string | null, lastKh?: string | null): string | null;
|
|
3
4
|
export declare function displayDate(value?: Date | string | number | null, format?: string): string;
|
|
4
5
|
export declare function displayDateTime(value?: Date | string | number | null, format?: string): string;
|
|
@@ -4,12 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.buildFullName = buildFullName;
|
|
7
|
+
exports.buildUserFullName = buildUserFullName;
|
|
7
8
|
exports.buildFullNameKh = buildFullNameKh;
|
|
8
9
|
exports.displayDate = displayDate;
|
|
9
10
|
exports.displayDateTime = displayDateTime;
|
|
10
11
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
11
12
|
const constants_1 = require("../../constants");
|
|
12
13
|
function buildFullName(first, last) {
|
|
14
|
+
const v = `${last ?? ""} ${first ?? ""}`.trim();
|
|
15
|
+
return v.length ? v : null;
|
|
16
|
+
}
|
|
17
|
+
function buildUserFullName(first, last) {
|
|
13
18
|
const v = `${first ?? ""} ${last ?? ""}`.trim();
|
|
14
19
|
return v.length ? v : null;
|
|
15
20
|
}
|