@common_ch/common 1.0.174 → 1.0.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.
- package/build/events/portal/org/org-change-status-event.d.ts +13 -0
- package/build/events/portal/org/org-change-status-event.js +8 -0
- package/build/events/portal/org/org-created-event.d.ts +12 -0
- package/build/events/portal/org/org-created-event.js +2 -0
- package/build/events/portal/org/org-updated-event.d.ts +13 -0
- package/build/events/portal/org/org-updated-event.js +2 -0
- package/build/events/portal/plan-org/plan-org-change-status-event.d.ts +10 -0
- package/build/events/portal/plan-org/plan-org-change-status-event.js +2 -0
- package/build/events/portal/plan-org/plan-org-create-event.d.ts +20 -0
- package/build/events/portal/plan-org/plan-org-create-event.js +2 -0
- package/build/events/portal/plan-org/plan-org-update-event.d.ts +21 -0
- package/build/events/portal/plan-org/plan-org-update-event.js +2 -0
- package/build/events/subjects.d.ts +6 -0
- package/build/events/subjects.js +6 -0
- package/build/events/types_/plan.d.ts +8 -0
- package/build/events/types_/plan.js +11 -1
- package/build/index.d.ts +6 -0
- package/build/index.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Subjects } from "../../subjects";
|
|
2
|
+
export declare enum OrgStatusEnum {
|
|
3
|
+
active = "active",
|
|
4
|
+
deactive = "deactive"
|
|
5
|
+
}
|
|
6
|
+
export interface OrgChangedStatusInPortalEvent {
|
|
7
|
+
subject: Subjects.OrgChangedStatusInPortal;
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
status: OrgStatusEnum;
|
|
11
|
+
version: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgStatusEnum = void 0;
|
|
4
|
+
var OrgStatusEnum;
|
|
5
|
+
(function (OrgStatusEnum) {
|
|
6
|
+
OrgStatusEnum["active"] = "active";
|
|
7
|
+
OrgStatusEnum["deactive"] = "deactive";
|
|
8
|
+
})(OrgStatusEnum || (exports.OrgStatusEnum = OrgStatusEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Subjects } from "../../subjects";
|
|
2
|
+
export interface OrgUpdatedInPortalEvent {
|
|
3
|
+
subject: Subjects.OrgUpdatedInPortal;
|
|
4
|
+
data: {
|
|
5
|
+
id: string;
|
|
6
|
+
version: number;
|
|
7
|
+
name: string;
|
|
8
|
+
family: string;
|
|
9
|
+
email: string;
|
|
10
|
+
username: string;
|
|
11
|
+
mobile: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Subjects } from "../../subjects";
|
|
2
|
+
import { PlanOrgStatusEnum } from "../../types_/plan";
|
|
3
|
+
export interface PlanOrgChangeStatusEvent {
|
|
4
|
+
subject: Subjects.PlanOrgChangeStatus;
|
|
5
|
+
data: {
|
|
6
|
+
id: string;
|
|
7
|
+
status: PlanOrgStatusEnum;
|
|
8
|
+
version: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AiDoc } from "../../../models/app/ai";
|
|
2
|
+
import { TypePayEnum } from "../../../models/app/plan";
|
|
3
|
+
import { Subjects } from "../../subjects";
|
|
4
|
+
import { PlanOrgTypeEnum } from "../../types_/plan";
|
|
5
|
+
export interface PlanOrgCreateEvent {
|
|
6
|
+
subject: Subjects.PlanOrgCreated;
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
price: string;
|
|
11
|
+
limitOfRequest: number;
|
|
12
|
+
description: string;
|
|
13
|
+
limitUploadFiles: number;
|
|
14
|
+
ais: AiDoc[];
|
|
15
|
+
deleteFile: boolean;
|
|
16
|
+
type: PlanOrgTypeEnum;
|
|
17
|
+
numberOfUsers: number;
|
|
18
|
+
typePay: TypePayEnum;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AiDoc } from "../../../models/app/ai";
|
|
2
|
+
import { TypePayEnum } from "../../../models/app/plan";
|
|
3
|
+
import { Subjects } from "../../subjects";
|
|
4
|
+
import { PlanOrgTypeEnum } from "../../types_/plan";
|
|
5
|
+
export interface PlanOrgUpdateEvent {
|
|
6
|
+
subject: Subjects.PlanOrgUpdated;
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
version: number;
|
|
10
|
+
name: string;
|
|
11
|
+
price: string;
|
|
12
|
+
limitOfRequest: number;
|
|
13
|
+
description: string;
|
|
14
|
+
limitUploadFiles: number;
|
|
15
|
+
ais: AiDoc[];
|
|
16
|
+
type: PlanOrgTypeEnum;
|
|
17
|
+
deleteFile: boolean;
|
|
18
|
+
numberOfUsers: number;
|
|
19
|
+
typePay: TypePayEnum;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -15,6 +15,9 @@ export declare enum Subjects {
|
|
|
15
15
|
AdminUpdatedInPortal = "admin:updated-in-portal",
|
|
16
16
|
AdminChangedStatusInPortal = "admin:changed-status-in-portal",
|
|
17
17
|
AdminUpdatedPasswordInPortal = "admin:updated-password-in-portal",
|
|
18
|
+
OrgCreated = "org:created",
|
|
19
|
+
OrgChangedStatusInPortal = "org:changed-status-in-portal",
|
|
20
|
+
OrgUpdatedInPortal = "org:updated-in-portal",
|
|
18
21
|
AiCreated = "ai:created",
|
|
19
22
|
AiOptionChangeStatus = "ai-option:changeStatus",
|
|
20
23
|
AiOptionCreated = "ai-option:created",
|
|
@@ -38,6 +41,9 @@ export declare enum Subjects {
|
|
|
38
41
|
PlanUpdated = "plan:updated",
|
|
39
42
|
PlanChangeStatus = "plan:change-status",
|
|
40
43
|
SetPlanOrgForUserInPortal = "plan:set-plan-for-user-in-portal",
|
|
44
|
+
PlanOrgCreated = "plan:created",
|
|
45
|
+
PlanOrgUpdated = "plan-org:updated",
|
|
46
|
+
PlanOrgChangeStatus = "plan-org:change-status",
|
|
41
47
|
RateCreated = "rate:created",
|
|
42
48
|
UseMessageByUser = "message:use-by-user",
|
|
43
49
|
MessageSummaryMessageId = "message:summery-message-id",
|
package/build/events/subjects.js
CHANGED
|
@@ -19,6 +19,9 @@ var Subjects;
|
|
|
19
19
|
Subjects["AdminUpdatedInPortal"] = "admin:updated-in-portal";
|
|
20
20
|
Subjects["AdminChangedStatusInPortal"] = "admin:changed-status-in-portal";
|
|
21
21
|
Subjects["AdminUpdatedPasswordInPortal"] = "admin:updated-password-in-portal";
|
|
22
|
+
Subjects["OrgCreated"] = "org:created";
|
|
23
|
+
Subjects["OrgChangedStatusInPortal"] = "org:changed-status-in-portal";
|
|
24
|
+
Subjects["OrgUpdatedInPortal"] = "org:updated-in-portal";
|
|
22
25
|
Subjects["AiCreated"] = "ai:created";
|
|
23
26
|
Subjects["AiOptionChangeStatus"] = "ai-option:changeStatus";
|
|
24
27
|
Subjects["AiOptionCreated"] = "ai-option:created";
|
|
@@ -42,6 +45,9 @@ var Subjects;
|
|
|
42
45
|
Subjects["PlanUpdated"] = "plan:updated";
|
|
43
46
|
Subjects["PlanChangeStatus"] = "plan:change-status";
|
|
44
47
|
Subjects["SetPlanOrgForUserInPortal"] = "plan:set-plan-for-user-in-portal";
|
|
48
|
+
Subjects["PlanOrgCreated"] = "plan:created";
|
|
49
|
+
Subjects["PlanOrgUpdated"] = "plan-org:updated";
|
|
50
|
+
Subjects["PlanOrgChangeStatus"] = "plan-org:change-status";
|
|
45
51
|
Subjects["RateCreated"] = "rate:created";
|
|
46
52
|
Subjects["UseMessageByUser"] = "message:use-by-user";
|
|
47
53
|
Subjects["MessageSummaryMessageId"] = "message:summery-message-id";
|
|
@@ -3,3 +3,11 @@ export declare enum PlanTypeEnum {
|
|
|
3
3
|
organization = "organization",
|
|
4
4
|
single = "single"
|
|
5
5
|
}
|
|
6
|
+
export declare enum PlanOrgTypeEnum {
|
|
7
|
+
public = "public",
|
|
8
|
+
private = "private"
|
|
9
|
+
}
|
|
10
|
+
export declare enum PlanOrgStatusEnum {
|
|
11
|
+
active = "active",
|
|
12
|
+
deactive = "deactive"
|
|
13
|
+
}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlanTypeEnum = void 0;
|
|
3
|
+
exports.PlanOrgStatusEnum = exports.PlanOrgTypeEnum = exports.PlanTypeEnum = void 0;
|
|
4
4
|
var PlanTypeEnum;
|
|
5
5
|
(function (PlanTypeEnum) {
|
|
6
6
|
PlanTypeEnum["public"] = "public";
|
|
7
7
|
PlanTypeEnum["organization"] = "organization";
|
|
8
8
|
PlanTypeEnum["single"] = "single";
|
|
9
9
|
})(PlanTypeEnum || (exports.PlanTypeEnum = PlanTypeEnum = {}));
|
|
10
|
+
var PlanOrgTypeEnum;
|
|
11
|
+
(function (PlanOrgTypeEnum) {
|
|
12
|
+
PlanOrgTypeEnum["public"] = "public";
|
|
13
|
+
PlanOrgTypeEnum["private"] = "private";
|
|
14
|
+
})(PlanOrgTypeEnum || (exports.PlanOrgTypeEnum = PlanOrgTypeEnum = {}));
|
|
15
|
+
var PlanOrgStatusEnum;
|
|
16
|
+
(function (PlanOrgStatusEnum) {
|
|
17
|
+
PlanOrgStatusEnum["active"] = "active";
|
|
18
|
+
PlanOrgStatusEnum["deactive"] = "deactive";
|
|
19
|
+
})(PlanOrgStatusEnum || (exports.PlanOrgStatusEnum = PlanOrgStatusEnum = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export * from './events/auth/user/user-created-event';
|
|
|
18
18
|
export * from './events/auth/user/user-update-in-auth';
|
|
19
19
|
export * from './events/auth/user/log-user-login-event';
|
|
20
20
|
export * from './events/auth/admin/admin-created-event';
|
|
21
|
+
export * from './events/portal/org/org-change-status-event';
|
|
22
|
+
export * from './events/portal/org/org-created-event';
|
|
23
|
+
export * from './events/portal/org/org-updated-event';
|
|
21
24
|
export * from './events/portal/ai/ai-created-event';
|
|
22
25
|
export * from './events/portal/ai/ai-changeStatus-event';
|
|
23
26
|
export * from './events/portal/ai-option/ai-created-event';
|
|
@@ -50,6 +53,9 @@ export * from './events/portal/plan/plan-create-event';
|
|
|
50
53
|
export * from './events/portal/plan/plan-update-event';
|
|
51
54
|
export * from './events/portal/plan/plan-change-status-event';
|
|
52
55
|
export * from './events/portal/plan/set-plan-by-user-in-portal';
|
|
56
|
+
export * from './events/portal/plan-org/plan-org-change-status-event';
|
|
57
|
+
export * from './events/portal/plan-org/plan-org-create-event';
|
|
58
|
+
export * from './events/portal/plan-org/plan-org-update-event';
|
|
53
59
|
export * from './events/portal/admin/admin-change-status-event';
|
|
54
60
|
export * from './events/portal/admin/admin-updated-event';
|
|
55
61
|
export * from './events/portal/admin/admin-updated-password-event';
|
package/build/index.js
CHANGED
|
@@ -44,6 +44,9 @@ __exportStar(require("./events/auth/user/user-created-event"), exports);
|
|
|
44
44
|
__exportStar(require("./events/auth/user/user-update-in-auth"), exports);
|
|
45
45
|
__exportStar(require("./events/auth/user/log-user-login-event"), exports);
|
|
46
46
|
__exportStar(require("./events/auth/admin/admin-created-event"), exports);
|
|
47
|
+
__exportStar(require("./events/portal/org/org-change-status-event"), exports);
|
|
48
|
+
__exportStar(require("./events/portal/org/org-created-event"), exports);
|
|
49
|
+
__exportStar(require("./events/portal/org/org-updated-event"), exports);
|
|
47
50
|
__exportStar(require("./events/portal/ai/ai-created-event"), exports);
|
|
48
51
|
__exportStar(require("./events/portal/ai/ai-changeStatus-event"), exports);
|
|
49
52
|
__exportStar(require("./events/portal/ai-option/ai-created-event"), exports);
|
|
@@ -76,6 +79,9 @@ __exportStar(require("./events/portal/plan/plan-create-event"), exports);
|
|
|
76
79
|
__exportStar(require("./events/portal/plan/plan-update-event"), exports);
|
|
77
80
|
__exportStar(require("./events/portal/plan/plan-change-status-event"), exports);
|
|
78
81
|
__exportStar(require("./events/portal/plan/set-plan-by-user-in-portal"), exports);
|
|
82
|
+
__exportStar(require("./events/portal/plan-org/plan-org-change-status-event"), exports);
|
|
83
|
+
__exportStar(require("./events/portal/plan-org/plan-org-create-event"), exports);
|
|
84
|
+
__exportStar(require("./events/portal/plan-org/plan-org-update-event"), exports);
|
|
79
85
|
__exportStar(require("./events/portal/admin/admin-change-status-event"), exports);
|
|
80
86
|
__exportStar(require("./events/portal/admin/admin-updated-event"), exports);
|
|
81
87
|
__exportStar(require("./events/portal/admin/admin-updated-password-event"), exports);
|