@quesmed/types 2.6.175 → 2.6.176

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.
@@ -0,0 +1,46 @@
1
+ import { IJob, IJobRecord } from './Job';
2
+ import { Id } from './Type';
3
+ import { IUser } from './User';
4
+ export declare enum EAdminNotificationType {
5
+ ANNOUNCEMENT = 1,
6
+ FEATURE = 2,
7
+ JOB = 3,
8
+ RECORD = 4
9
+ }
10
+ export declare enum EAdminNotificationActionType {
11
+ FEATURE = 0,
12
+ INFORMATION = 1,
13
+ JOB_CREATED = 2,
14
+ JOB_SUBMITTED = 3,
15
+ JOB_REMARK = 4,
16
+ JOB_APPROVED = 5,
17
+ JOB_REJECTED = 6,
18
+ JOB_TESTING = 7,
19
+ JOB_PUBLISHED = 8,
20
+ JOB_REOPENED = 9,
21
+ RECORD_READY = 10,
22
+ RECORD_APPROVED = 11,
23
+ RECORD_REJECTED = 12,
24
+ RECORD_TESTING = 13,
25
+ RECORD_PUBLISHED = 14,
26
+ RECORD_REOPENED = 15
27
+ }
28
+ export interface IAdminNotification {
29
+ id: Id;
30
+ createdAt: number | Date;
31
+ readAt: null | number | Date;
32
+ deletedAt: number | Date;
33
+ userId: Id | null;
34
+ user?: IUser;
35
+ fromUserId: Id | null;
36
+ fromUser?: IUser;
37
+ recordId: IJobRecord['id'] | null;
38
+ record?: IJobRecord;
39
+ jobId: IJob['id'] | null;
40
+ job?: IJob;
41
+ description: string;
42
+ actionType: EAdminNotificationActionType;
43
+ type: EAdminNotificationType;
44
+ global: boolean;
45
+ read: boolean;
46
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAdminNotificationActionType = exports.EAdminNotificationType = void 0;
4
+ var EAdminNotificationType;
5
+ (function (EAdminNotificationType) {
6
+ EAdminNotificationType[EAdminNotificationType["ANNOUNCEMENT"] = 1] = "ANNOUNCEMENT";
7
+ EAdminNotificationType[EAdminNotificationType["FEATURE"] = 2] = "FEATURE";
8
+ EAdminNotificationType[EAdminNotificationType["JOB"] = 3] = "JOB";
9
+ EAdminNotificationType[EAdminNotificationType["RECORD"] = 4] = "RECORD";
10
+ })(EAdminNotificationType = exports.EAdminNotificationType || (exports.EAdminNotificationType = {}));
11
+ var EAdminNotificationActionType;
12
+ (function (EAdminNotificationActionType) {
13
+ EAdminNotificationActionType[EAdminNotificationActionType["FEATURE"] = 0] = "FEATURE";
14
+ EAdminNotificationActionType[EAdminNotificationActionType["INFORMATION"] = 1] = "INFORMATION";
15
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_CREATED"] = 2] = "JOB_CREATED";
16
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_SUBMITTED"] = 3] = "JOB_SUBMITTED";
17
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REMARK"] = 4] = "JOB_REMARK";
18
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_APPROVED"] = 5] = "JOB_APPROVED";
19
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REJECTED"] = 6] = "JOB_REJECTED";
20
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_TESTING"] = 7] = "JOB_TESTING";
21
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_PUBLISHED"] = 8] = "JOB_PUBLISHED";
22
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REOPENED"] = 9] = "JOB_REOPENED";
23
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_READY"] = 10] = "RECORD_READY";
24
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_APPROVED"] = 11] = "RECORD_APPROVED";
25
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_REJECTED"] = 12] = "RECORD_REJECTED";
26
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_TESTING"] = 13] = "RECORD_TESTING";
27
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_PUBLISHED"] = 14] = "RECORD_PUBLISHED";
28
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_REOPENED"] = 15] = "RECORD_REOPENED";
29
+ })(EAdminNotificationActionType = exports.EAdminNotificationActionType || (exports.EAdminNotificationActionType = {}));
@@ -1,3 +1,4 @@
1
+ export * from './AdminNotification';
1
2
  export * from './Author';
2
3
  export * from './Blog';
3
4
  export * from './Book';
@@ -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
+ __exportStar(require("./AdminNotification"), exports);
17
18
  __exportStar(require("./Author"), exports);
18
19
  __exportStar(require("./Blog"), exports);
19
20
  __exportStar(require("./Book"), exports);
@@ -0,0 +1,46 @@
1
+ import { IJob, IJobRecord } from './Job';
2
+ import { Id } from './Type';
3
+ import { IUser } from './User';
4
+ export declare enum EAdminNotificationType {
5
+ ANNOUNCEMENT = 1,
6
+ FEATURE = 2,
7
+ JOB = 3,
8
+ RECORD = 4
9
+ }
10
+ export declare enum EAdminNotificationActionType {
11
+ FEATURE = 0,
12
+ INFORMATION = 1,
13
+ JOB_CREATED = 2,
14
+ JOB_SUBMITTED = 3,
15
+ JOB_REMARK = 4,
16
+ JOB_APPROVED = 5,
17
+ JOB_REJECTED = 6,
18
+ JOB_TESTING = 7,
19
+ JOB_PUBLISHED = 8,
20
+ JOB_REOPENED = 9,
21
+ RECORD_READY = 10,
22
+ RECORD_APPROVED = 11,
23
+ RECORD_REJECTED = 12,
24
+ RECORD_TESTING = 13,
25
+ RECORD_PUBLISHED = 14,
26
+ RECORD_REOPENED = 15
27
+ }
28
+ export interface IAdminNotification {
29
+ id: Id;
30
+ createdAt: number | Date;
31
+ readAt: null | number | Date;
32
+ deletedAt: number | Date;
33
+ userId: Id | null;
34
+ user?: IUser;
35
+ fromUserId: Id | null;
36
+ fromUser?: IUser;
37
+ recordId: IJobRecord['id'] | null;
38
+ record?: IJobRecord;
39
+ jobId: IJob['id'] | null;
40
+ job?: IJob;
41
+ description: string;
42
+ actionType: EAdminNotificationActionType;
43
+ type: EAdminNotificationType;
44
+ global: boolean;
45
+ read: boolean;
46
+ }
@@ -0,0 +1,26 @@
1
+ export var EAdminNotificationType;
2
+ (function (EAdminNotificationType) {
3
+ EAdminNotificationType[EAdminNotificationType["ANNOUNCEMENT"] = 1] = "ANNOUNCEMENT";
4
+ EAdminNotificationType[EAdminNotificationType["FEATURE"] = 2] = "FEATURE";
5
+ EAdminNotificationType[EAdminNotificationType["JOB"] = 3] = "JOB";
6
+ EAdminNotificationType[EAdminNotificationType["RECORD"] = 4] = "RECORD";
7
+ })(EAdminNotificationType || (EAdminNotificationType = {}));
8
+ export var EAdminNotificationActionType;
9
+ (function (EAdminNotificationActionType) {
10
+ EAdminNotificationActionType[EAdminNotificationActionType["FEATURE"] = 0] = "FEATURE";
11
+ EAdminNotificationActionType[EAdminNotificationActionType["INFORMATION"] = 1] = "INFORMATION";
12
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_CREATED"] = 2] = "JOB_CREATED";
13
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_SUBMITTED"] = 3] = "JOB_SUBMITTED";
14
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REMARK"] = 4] = "JOB_REMARK";
15
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_APPROVED"] = 5] = "JOB_APPROVED";
16
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REJECTED"] = 6] = "JOB_REJECTED";
17
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_TESTING"] = 7] = "JOB_TESTING";
18
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_PUBLISHED"] = 8] = "JOB_PUBLISHED";
19
+ EAdminNotificationActionType[EAdminNotificationActionType["JOB_REOPENED"] = 9] = "JOB_REOPENED";
20
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_READY"] = 10] = "RECORD_READY";
21
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_APPROVED"] = 11] = "RECORD_APPROVED";
22
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_REJECTED"] = 12] = "RECORD_REJECTED";
23
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_TESTING"] = 13] = "RECORD_TESTING";
24
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_PUBLISHED"] = 14] = "RECORD_PUBLISHED";
25
+ EAdminNotificationActionType[EAdminNotificationActionType["RECORD_REOPENED"] = 15] = "RECORD_REOPENED";
26
+ })(EAdminNotificationActionType || (EAdminNotificationActionType = {}));
@@ -1,3 +1,4 @@
1
+ export * from './AdminNotification';
1
2
  export * from './Author';
2
3
  export * from './Blog';
3
4
  export * from './Book';
@@ -1,3 +1,4 @@
1
+ export * from './AdminNotification';
1
2
  export * from './Author';
2
3
  export * from './Blog';
3
4
  export * from './Book';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.175",
3
+ "version": "2.6.176",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",