plac-micro-common 1.2.74 → 1.2.75

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 HH:mm A";
2
+ export declare const DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
@@ -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 HH:mm A";
5
+ exports.DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
@@ -211,6 +211,5 @@ __decorate([
211
211
  __metadata("design:type", Array)
212
212
  ], ApplicationEntity.prototype, "app_uw_answers", void 0);
213
213
  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"])
214
+ (0, typeorm_1.Entity)({ schema: "application", name: "applications" })
216
215
  ], 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.74",
3
+ "version": "1.2.75",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {