@common_ch/common 1.0.463 → 1.0.470

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.
@@ -9,5 +9,6 @@ export interface AiCreatedEvent {
9
9
  image?: string;
10
10
  description?: string;
11
11
  description2?: string;
12
+ description3?: string[];
12
13
  };
13
14
  }
@@ -7,6 +7,7 @@ export interface AiUpdateEvent {
7
7
  version: number;
8
8
  description: string;
9
9
  description2: string;
10
+ description3: string[];
10
11
  image: string;
11
12
  };
12
13
  }
@@ -0,0 +1,9 @@
1
+ import { Types } from "mongoose";
2
+ import { Subjects } from "../../subjects";
3
+ export interface PlanDeleteEvent {
4
+ subject: Subjects.PlanDelete;
5
+ data: {
6
+ id: Types.ObjectId;
7
+ version: number;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -54,6 +54,7 @@ export declare enum Subjects {
54
54
  PlanCreated = "plan:created",
55
55
  PlanUpdated = "plan:updated",
56
56
  PlanChangeStatus = "plan:change-status",
57
+ PlanDelete = "plan:delete",
57
58
  SetPlanOrgForUserInPortal = "plan:set-plan-org-for-user-in-portal",
58
59
  SetPlanForUserInPortal = "plan:set-plan-for-user-portal",
59
60
  PlanOrgCreated = "plan:created",
@@ -58,6 +58,7 @@ var Subjects;
58
58
  Subjects["PlanCreated"] = "plan:created";
59
59
  Subjects["PlanUpdated"] = "plan:updated";
60
60
  Subjects["PlanChangeStatus"] = "plan:change-status";
61
+ Subjects["PlanDelete"] = "plan:delete";
61
62
  Subjects["SetPlanOrgForUserInPortal"] = "plan:set-plan-org-for-user-in-portal";
62
63
  Subjects["SetPlanForUserInPortal"] = "plan:set-plan-for-user-portal";
63
64
  Subjects["PlanOrgCreated"] = "plan:created";
package/build/index.d.ts CHANGED
@@ -68,6 +68,7 @@ export * from './events/portal/plan/plan-create-event';
68
68
  export * from './events/portal/plan/plan-update-event';
69
69
  export * from './events/portal/plan/plan-change-status-event';
70
70
  export * from './events/portal/plan/set-plan-by-user-in-portal';
71
+ export * from './events/portal/plan/plan-delete-event';
71
72
  export * from './events/portal/plan-org/plan-org-change-status-event';
72
73
  export * from './events/portal/plan-org/plan-org-create-event';
73
74
  export * from './events/portal/plan-org/plan-org-update-event';
package/build/index.js CHANGED
@@ -94,6 +94,7 @@ __exportStar(require("./events/portal/plan/plan-create-event"), exports);
94
94
  __exportStar(require("./events/portal/plan/plan-update-event"), exports);
95
95
  __exportStar(require("./events/portal/plan/plan-change-status-event"), exports);
96
96
  __exportStar(require("./events/portal/plan/set-plan-by-user-in-portal"), exports);
97
+ __exportStar(require("./events/portal/plan/plan-delete-event"), exports);
97
98
  __exportStar(require("./events/portal/plan-org/plan-org-change-status-event"), exports);
98
99
  __exportStar(require("./events/portal/plan-org/plan-org-create-event"), exports);
99
100
  __exportStar(require("./events/portal/plan-org/plan-org-update-event"), exports);
@@ -7,6 +7,7 @@ export interface AiAttrs {
7
7
  defaultShow?: boolean;
8
8
  description?: string;
9
9
  description2?: string;
10
+ description3?: string[];
10
11
  image?: string;
11
12
  createdAt?: number;
12
13
  updatedAt?: number;
@@ -20,6 +21,7 @@ export interface AiDoc extends mongoose.Document {
20
21
  defaultShow?: boolean;
21
22
  description?: string;
22
23
  description2?: string;
24
+ description3?: string[];
23
25
  createdAt?: number;
24
26
  updatedAt?: number;
25
27
  }
@@ -28,6 +28,12 @@ const aiSchema = new mongoose_1.default.Schema({
28
28
  type: String,
29
29
  required: false,
30
30
  },
31
+ description3: [
32
+ {
33
+ type: String,
34
+ required: false,
35
+ }
36
+ ],
31
37
  status: {
32
38
  type: String,
33
39
  enum: ai_1.AiStatusEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.463",
3
+ "version": "1.0.470",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [