@common_ch/common 1.0.175 → 1.0.177

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,11 @@
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
+ orgId?: string;
9
+ version: number;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 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
+ orgId?: string;
16
+ deleteFile: boolean;
17
+ type: PlanOrgTypeEnum;
18
+ numberOfUsers: number;
19
+ typePay: TypePayEnum;
20
+ };
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
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
+ orgId?: string;
17
+ type: PlanOrgTypeEnum;
18
+ deleteFile: boolean;
19
+ numberOfUsers: number;
20
+ typePay: TypePayEnum;
21
+ };
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,9 @@ export declare enum Subjects {
41
41
  PlanUpdated = "plan:updated",
42
42
  PlanChangeStatus = "plan:change-status",
43
43
  SetPlanOrgForUserInPortal = "plan:set-plan-for-user-in-portal",
44
+ PlanOrgCreated = "plan:created",
45
+ PlanOrgUpdated = "plan-org:updated",
46
+ PlanOrgChangeStatus = "plan-org:change-status",
44
47
  RateCreated = "rate:created",
45
48
  UseMessageByUser = "message:use-by-user",
46
49
  MessageSummaryMessageId = "message:summery-message-id",
@@ -45,6 +45,9 @@ var Subjects;
45
45
  Subjects["PlanUpdated"] = "plan:updated";
46
46
  Subjects["PlanChangeStatus"] = "plan:change-status";
47
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";
48
51
  Subjects["RateCreated"] = "rate:created";
49
52
  Subjects["UseMessageByUser"] = "message:use-by-user";
50
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
@@ -53,6 +53,9 @@ export * from './events/portal/plan/plan-create-event';
53
53
  export * from './events/portal/plan/plan-update-event';
54
54
  export * from './events/portal/plan/plan-change-status-event';
55
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';
56
59
  export * from './events/portal/admin/admin-change-status-event';
57
60
  export * from './events/portal/admin/admin-updated-event';
58
61
  export * from './events/portal/admin/admin-updated-password-event';
package/build/index.js CHANGED
@@ -79,6 +79,9 @@ __exportStar(require("./events/portal/plan/plan-create-event"), exports);
79
79
  __exportStar(require("./events/portal/plan/plan-update-event"), exports);
80
80
  __exportStar(require("./events/portal/plan/plan-change-status-event"), exports);
81
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);
82
85
  __exportStar(require("./events/portal/admin/admin-change-status-event"), exports);
83
86
  __exportStar(require("./events/portal/admin/admin-updated-event"), exports);
84
87
  __exportStar(require("./events/portal/admin/admin-updated-password-event"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.175",
3
+ "version": "1.0.177",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [