@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.
- package/build/events/portal/ai/ai-created-event.d.ts +2 -0
- package/build/events/portal/ai/ai-set-default-show-event.d.ts +8 -0
- package/build/events/portal/ai/ai-set-default-show-event.js +2 -0
- package/build/events/portal/ai/ai-unset-defaultShow-event.d.ts +8 -0
- package/build/events/portal/ai/ai-unset-defaultShow-event.js +2 -0
- package/build/events/portal/ai/ai-update-event.d.ts +1 -0
- package/build/events/subjects.d.ts +2 -0
- package/build/events/subjects.js +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/models/app/ai.d.ts +4 -0
- package/build/models/app/ai.js +9 -0
- package/package.json +1 -1
|
@@ -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",
|
package/build/events/subjects.js
CHANGED
|
@@ -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);
|
package/build/models/app/ai.d.ts
CHANGED
|
@@ -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
|
}
|
package/build/models/app/ai.js
CHANGED
|
@@ -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,
|