@common_ch/common 1.0.224 → 1.0.226

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.
@@ -6,5 +6,7 @@ export interface AiCreatedEvent {
6
6
  version: number;
7
7
  name: string;
8
8
  image?: string;
9
+ description?: string;
10
+ description2?: string;
9
11
  };
10
12
  }
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "../../subjects";
2
+ export interface AiSetDefaultShowEvent {
3
+ subject: Subjects.AiSetDefaultShow;
4
+ data: {
5
+ id: string;
6
+ version: number;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "../../subjects";
2
+ export interface AiUnSetDefaultShowEvent {
3
+ subject: Subjects.AiUnSetDefaultShow;
4
+ data: {
5
+ id: string;
6
+ version: number;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ export interface AiUpdateEvent {
5
5
  id: string;
6
6
  version: number;
7
7
  description: string;
8
+ description2: string;
8
9
  image: string;
9
10
  };
10
11
  }
@@ -24,6 +24,8 @@ export declare enum Subjects {
24
24
  AiOptionCreated = "ai-option:created",
25
25
  AiOptionUpdated = "ai-option:updated",
26
26
  AiChangeStatus = "ai:changeStatus",
27
+ AiSetDefaultShow = "ai:set-default-show",
28
+ AiUnSetDefaultShow = "ai:unset-default-show",
27
29
  BlogCreated = "blog:created",
28
30
  BlogUpdated = "blog:updated",
29
31
  BlogChangeStatus = "blog:change-status",
@@ -28,6 +28,8 @@ var Subjects;
28
28
  Subjects["AiOptionCreated"] = "ai-option:created";
29
29
  Subjects["AiOptionUpdated"] = "ai-option:updated";
30
30
  Subjects["AiChangeStatus"] = "ai:changeStatus";
31
+ Subjects["AiSetDefaultShow"] = "ai:set-default-show";
32
+ Subjects["AiUnSetDefaultShow"] = "ai:unset-default-show";
31
33
  Subjects["BlogCreated"] = "blog:created";
32
34
  Subjects["BlogUpdated"] = "blog:updated";
33
35
  Subjects["BlogChangeStatus"] = "blog:change-status";
package/build/index.d.ts CHANGED
@@ -26,6 +26,8 @@ export * from './events/portal/org/org-updated-event';
26
26
  export * from './events/portal/ai/ai-created-event';
27
27
  export * from './events/portal/ai/ai-changeStatus-event';
28
28
  export * from './events/portal/ai/ai-update-event';
29
+ export * from './events/portal/ai/ai-set-default-show-event';
30
+ export * from './events/portal/ai/ai-unset-defaultShow-event';
29
31
  export * from './events/portal/ai-option/ai-created-event';
30
32
  export * from './events/portal/ai-option/ai-option-changeStatus-event';
31
33
  export * from './events/portal/ai-option/ai-updated-event';
package/build/index.js CHANGED
@@ -52,6 +52,8 @@ __exportStar(require("./events/portal/org/org-updated-event"), exports);
52
52
  __exportStar(require("./events/portal/ai/ai-created-event"), exports);
53
53
  __exportStar(require("./events/portal/ai/ai-changeStatus-event"), exports);
54
54
  __exportStar(require("./events/portal/ai/ai-update-event"), exports);
55
+ __exportStar(require("./events/portal/ai/ai-set-default-show-event"), exports);
56
+ __exportStar(require("./events/portal/ai/ai-unset-defaultShow-event"), exports);
55
57
  __exportStar(require("./events/portal/ai-option/ai-created-event"), exports);
56
58
  __exportStar(require("./events/portal/ai-option/ai-option-changeStatus-event"), exports);
57
59
  __exportStar(require("./events/portal/ai-option/ai-updated-event"), exports);
@@ -4,7 +4,9 @@ export interface AiAttrs {
4
4
  _id: string;
5
5
  name: string;
6
6
  status?: AiStatusEnum;
7
+ defaultShow?: boolean;
7
8
  description?: string;
9
+ description2?: string;
8
10
  image?: string;
9
11
  createdAt?: number;
10
12
  updatedAt?: number;
@@ -15,7 +17,9 @@ export interface AiDoc extends mongoose.Document {
15
17
  status: AiStatusEnum;
16
18
  version: number;
17
19
  image?: string;
20
+ defaultShow?: boolean;
18
21
  description?: string;
22
+ description2?: string;
19
23
  createdAt?: number;
20
24
  updatedAt?: number;
21
25
  }
@@ -15,10 +15,19 @@ const aiSchema = new mongoose_1.default.Schema({
15
15
  type: String,
16
16
  required: false,
17
17
  },
18
+ defaultShow: {
19
+ type: Boolean,
20
+ required: false,
21
+ default: false,
22
+ },
18
23
  description: {
19
24
  type: String,
20
25
  required: false,
21
26
  },
27
+ description2: {
28
+ type: String,
29
+ required: false,
30
+ },
22
31
  status: {
23
32
  type: String,
24
33
  enum: ai_1.AiStatusEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.224",
3
+ "version": "1.0.226",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [