@common_ch/common 1.0.65 → 1.0.67
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/build/events/portal/admin/admin-change-status-event.d.ts +13 -0
- package/build/events/portal/admin/admin-change-status-event.js +8 -0
- package/build/events/portal/admin/admin-updated-event.d.ts +12 -0
- package/build/events/portal/admin/admin-updated-event.js +2 -0
- package/build/events/portal/admin/admin-updated-password-event.d.ts +9 -0
- package/build/events/portal/admin/admin-updated-password-event.js +2 -0
- package/build/events/subjects.d.ts +3 -0
- package/build/events/subjects.js +3 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/models/app/user.d.ts +1 -1
- package/build/models/app/user.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Subjects } from "../../subjects";
|
|
2
|
+
export declare enum AdminStatusEnum {
|
|
3
|
+
active = "active",
|
|
4
|
+
deactive = "deactive"
|
|
5
|
+
}
|
|
6
|
+
export interface AdminChangedStatusInPortalEvent {
|
|
7
|
+
subject: Subjects.AdminChangedStatusInPortal;
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
status: AdminStatusEnum;
|
|
11
|
+
version: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminStatusEnum = void 0;
|
|
4
|
+
var AdminStatusEnum;
|
|
5
|
+
(function (AdminStatusEnum) {
|
|
6
|
+
AdminStatusEnum["active"] = "active";
|
|
7
|
+
AdminStatusEnum["deactive"] = "deactive";
|
|
8
|
+
})(AdminStatusEnum || (exports.AdminStatusEnum = AdminStatusEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from "../../subjects";
|
|
2
|
+
export interface AdminUpdatedInPortalEvent {
|
|
3
|
+
subject: Subjects.AdminUpdatedInPortal;
|
|
4
|
+
data: {
|
|
5
|
+
id: string;
|
|
6
|
+
version: number;
|
|
7
|
+
adminName: string;
|
|
8
|
+
family: string;
|
|
9
|
+
email: string;
|
|
10
|
+
mobile: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -7,6 +7,9 @@ export declare enum Subjects {
|
|
|
7
7
|
UserChangeLimit = "user:change-limit-in-portal",
|
|
8
8
|
UserLogIn = "user:login",
|
|
9
9
|
AdminCreated = "admin:created",
|
|
10
|
+
AdminUpdatedInPortal = "admin:updated-in-portal",
|
|
11
|
+
AdminChangedStatusInPortal = "admin:changed-status-in-portal",
|
|
12
|
+
AdminUpdatedPasswordInPortal = "admin:updated-password-in-portal",
|
|
10
13
|
AiCreated = "ai:created",
|
|
11
14
|
AiChangeStatus = "ai:changeStatus",
|
|
12
15
|
BlogCreated = "blog:created",
|
package/build/events/subjects.js
CHANGED
|
@@ -11,6 +11,9 @@ var Subjects;
|
|
|
11
11
|
Subjects["UserChangeLimit"] = "user:change-limit-in-portal";
|
|
12
12
|
Subjects["UserLogIn"] = "user:login";
|
|
13
13
|
Subjects["AdminCreated"] = "admin:created";
|
|
14
|
+
Subjects["AdminUpdatedInPortal"] = "admin:updated-in-portal";
|
|
15
|
+
Subjects["AdminChangedStatusInPortal"] = "admin:changed-status-in-portal";
|
|
16
|
+
Subjects["AdminUpdatedPasswordInPortal"] = "admin:updated-password-in-portal";
|
|
14
17
|
Subjects["AiCreated"] = "ai:created";
|
|
15
18
|
Subjects["AiChangeStatus"] = "ai:changeStatus";
|
|
16
19
|
Subjects["BlogCreated"] = "blog:created";
|
package/build/index.d.ts
CHANGED
|
@@ -36,3 +36,6 @@ export * from './events/app/feedback/feedback-create-event';
|
|
|
36
36
|
export * from './events/portal/plan/plan-create-event';
|
|
37
37
|
export * from './events/portal/plan/plan-update-event';
|
|
38
38
|
export * from './events/app/buy/buy-plan-event';
|
|
39
|
+
export * from './events/portal/admin/admin-change-status-event';
|
|
40
|
+
export * from './events/portal/admin/admin-updated-event';
|
|
41
|
+
export * from './events/portal/admin/admin-updated-password-event';
|
package/build/index.js
CHANGED
|
@@ -62,3 +62,6 @@ __exportStar(require("./events/app/feedback/feedback-create-event"), exports);
|
|
|
62
62
|
__exportStar(require("./events/portal/plan/plan-create-event"), exports);
|
|
63
63
|
__exportStar(require("./events/portal/plan/plan-update-event"), exports);
|
|
64
64
|
__exportStar(require("./events/app/buy/buy-plan-event"), exports);
|
|
65
|
+
__exportStar(require("./events/portal/admin/admin-change-status-event"), exports);
|
|
66
|
+
__exportStar(require("./events/portal/admin/admin-updated-event"), exports);
|
|
67
|
+
__exportStar(require("./events/portal/admin/admin-updated-password-event"), exports);
|
package/build/models/app/user.js
CHANGED
|
@@ -41,6 +41,11 @@ const userSchema = new mongoose_1.default.Schema({
|
|
|
41
41
|
type: String,
|
|
42
42
|
required: false,
|
|
43
43
|
},
|
|
44
|
+
exTimePlan: {
|
|
45
|
+
type: mongoose_1.default.Schema.Types.Date,
|
|
46
|
+
default: () => new Date().toISOString(),
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
44
49
|
walletBalance: {
|
|
45
50
|
type: mongoose_1.default.Schema.Types.Decimal128,
|
|
46
51
|
default: mongoose_1.default.Types.Decimal128.fromString('0.00'),
|