plac-micro-common 1.3.119 → 1.3.121

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.
@@ -65,6 +65,10 @@ export declare class ApplicationEntity extends _BaseEntity {
65
65
  reviewed_remark?: string | null;
66
66
  is_active: boolean;
67
67
  is_migrated: boolean;
68
+ is_urgent: boolean;
69
+ urgent_reason?: string | null;
70
+ urgent_at?: Date | null;
71
+ urgent_by_user_id?: string | null;
68
72
  metadata?: Record<string, any> | null;
69
73
  org: OrganizationEntity;
70
74
  source_type_ref?: SourceTypeEntity | null;
@@ -315,6 +315,23 @@ __decorate([
315
315
  (0, typeorm_1.Column)({ type: "boolean", default: false }),
316
316
  __metadata("design:type", Boolean)
317
317
  ], ApplicationEntity.prototype, "is_migrated", void 0);
318
+ __decorate([
319
+ (0, typeorm_1.Column)({ type: "boolean", default: false }),
320
+ __metadata("design:type", Boolean)
321
+ ], ApplicationEntity.prototype, "is_urgent", void 0);
322
+ __decorate([
323
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
324
+ __metadata("design:type", Object)
325
+ ], ApplicationEntity.prototype, "urgent_reason", void 0);
326
+ __decorate([
327
+ (0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
328
+ __metadata("design:type", Object)
329
+ ], ApplicationEntity.prototype, "urgent_at", void 0);
330
+ __decorate([
331
+ (0, typeorm_1.Index)(),
332
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
333
+ __metadata("design:type", Object)
334
+ ], ApplicationEntity.prototype, "urgent_by_user_id", void 0);
318
335
  __decorate([
319
336
  (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
320
337
  __metadata("design:type", Object)
@@ -44,7 +44,9 @@ export declare enum ApplicationActionType {
44
44
  NoteAdded = "note_added",
45
45
  DocumentUploaded = "document_uploaded",
46
46
  DocumentRemoved = "document_removed",
47
- DataUpdated = "data_updated"
47
+ DataUpdated = "data_updated",
48
+ MarkedUrgent = "marked_urgent",
49
+ UnmarkedUrgent = "unmarked_urgent"
48
50
  }
49
51
  export declare enum AppPersonRole {
50
52
  PolicyHolder = "policy_holder",
@@ -53,6 +53,8 @@ var ApplicationActionType;
53
53
  ApplicationActionType["DocumentUploaded"] = "document_uploaded";
54
54
  ApplicationActionType["DocumentRemoved"] = "document_removed";
55
55
  ApplicationActionType["DataUpdated"] = "data_updated";
56
+ ApplicationActionType["MarkedUrgent"] = "marked_urgent";
57
+ ApplicationActionType["UnmarkedUrgent"] = "unmarked_urgent";
56
58
  })(ApplicationActionType || (exports.ApplicationActionType = ApplicationActionType = {}));
57
59
  var AppPersonRole;
58
60
  (function (AppPersonRole) {
@@ -22,7 +22,8 @@ export declare enum PermissionAction {
22
22
  Transfer = "transfer",
23
23
  Update = "update",
24
24
  Void = "void",
25
- ReadOrg = "readOrg"
25
+ ReadOrg = "readOrg",
26
+ ReadAll = "readAll"
26
27
  }
27
28
  export declare const PermissionResource: {
28
29
  readonly AuditLog: "audit_log";
@@ -27,8 +27,9 @@ var PermissionAction;
27
27
  PermissionAction["Transfer"] = "transfer";
28
28
  PermissionAction["Update"] = "update";
29
29
  PermissionAction["Void"] = "void";
30
- // special - org level
30
+ // special - org & app level
31
31
  PermissionAction["ReadOrg"] = "readOrg";
32
+ PermissionAction["ReadAll"] = "readAll";
32
33
  })(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
33
34
  exports.PermissionResource = {
34
35
  AuditLog: "audit_log",
@@ -6,7 +6,7 @@ export declare function getIdentifierTypeDesc(val: IdentifierType): "Other" | "N
6
6
  export declare function getContactTypeDesc(val: ContactType): "Other" | "Phone Number" | "Email" | "Website" | "Social Media";
7
7
  export declare function getAddressTypeDesc(val: AddressType): "Other" | AddressType.PlaceOfBirth | "Home" | "Work" | "Billing";
8
8
  export declare function getAppDocumentTypeDesc(val: AppDocumentType): "Other" | "National ID" | "Passport" | "Application Form" | "Quotation Form" | "Claim Form";
9
- export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | ApplicationActionType.EditCompleted | ApplicationActionType.TakenForReview | ApplicationActionType.Assigned | ApplicationActionType.Unassigned | ApplicationActionType.DocumentRemoved | ApplicationActionType.DataUpdated | "Submit" | "Re-Submit" | "Approve" | "Reject" | "Request Edit" | "Request More Documents" | "Cancel" | "Transfer" | "Add Note" | "Upload Document";
9
+ export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | ApplicationActionType.EditCompleted | ApplicationActionType.TakenForReview | ApplicationActionType.Assigned | ApplicationActionType.Unassigned | ApplicationActionType.DocumentRemoved | ApplicationActionType.DataUpdated | ApplicationActionType.MarkedUrgent | ApplicationActionType.UnmarkedUrgent | "Submit" | "Re-Submit" | "Approve" | "Reject" | "Request Edit" | "Request More Documents" | "Cancel" | "Transfer" | "Add Note" | "Upload Document";
10
10
  export declare function getOrgTypeDesc(val: OrgType): "Agency" | "Internal" | "Bank" | "Micro Finance" | "Broker";
11
11
  export declare function getChannelTypeDesc(val: ChannelType): "Other" | "Agency" | "Bank" | "Broker" | "Direct" | "Online" | "Partner" | "Telesales";
12
12
  export declare function getStaffTypeDesc(val: StaffType): "Other" | "Employee" | "Contractor" | "Intern";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.119",
3
+ "version": "1.3.121",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {