@common_ch/common 1.0.208 → 1.0.210

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.
@@ -3,6 +3,9 @@ export declare enum AiOptionStatusEnum {
3
3
  deactive = "deactive"
4
4
  }
5
5
  export declare enum AiOptionNamesEnum {
6
+ gpt5Mini = "gpt-5-mini",
7
+ gpt5Nano = "gpt-5-nano",
8
+ gpt5 = "gpt-5",
6
9
  gpt4o = "gpt-4o",
7
10
  gpt4dot1 = "gpt-4.1",
8
11
  gpt4dot1Mini = "gpt-4.1-mini",
package/build/enums/ai.js CHANGED
@@ -8,6 +8,9 @@ var AiOptionStatusEnum;
8
8
  })(AiOptionStatusEnum || (exports.AiOptionStatusEnum = AiOptionStatusEnum = {}));
9
9
  var AiOptionNamesEnum;
10
10
  (function (AiOptionNamesEnum) {
11
+ AiOptionNamesEnum["gpt5Mini"] = "gpt-5-mini";
12
+ AiOptionNamesEnum["gpt5Nano"] = "gpt-5-nano";
13
+ AiOptionNamesEnum["gpt5"] = "gpt-5";
11
14
  AiOptionNamesEnum["gpt4o"] = "gpt-4o";
12
15
  AiOptionNamesEnum["gpt4dot1"] = "gpt-4.1";
13
16
  AiOptionNamesEnum["gpt4dot1Mini"] = "gpt-4.1-mini";
@@ -0,0 +1,10 @@
1
+ import { Subjects } from "../../subjects";
2
+ export interface AiUpdateEvent {
3
+ subject: Subjects.AiUpdated;
4
+ data: {
5
+ id: string;
6
+ version: number;
7
+ description: string;
8
+ image: string;
9
+ };
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AiOptionFieldEnum } from "../../../enums/ai";
2
+ import { Subjects } from "../../subjects";
3
+ export interface AiOptionUpdatedEvent {
4
+ subject: Subjects.AiOptionUpdated;
5
+ data: {
6
+ id: string;
7
+ name: string;
8
+ field: AiOptionFieldEnum;
9
+ image: string;
10
+ description: string;
11
+ aiId: string;
12
+ };
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,8 +19,10 @@ export declare enum Subjects {
19
19
  OrgChangedStatusInPortal = "org:changed-status-in-portal",
20
20
  OrgUpdatedInPortal = "org:updated-in-portal",
21
21
  AiCreated = "ai:created",
22
+ AiUpdated = "ai:updated",
22
23
  AiOptionChangeStatus = "ai-option:changeStatus",
23
24
  AiOptionCreated = "ai-option:created",
25
+ AiOptionUpdated = "ai-option:updated",
24
26
  AiChangeStatus = "ai:changeStatus",
25
27
  BlogCreated = "blog:created",
26
28
  BlogUpdated = "blog:updated",
@@ -23,8 +23,10 @@ var Subjects;
23
23
  Subjects["OrgChangedStatusInPortal"] = "org:changed-status-in-portal";
24
24
  Subjects["OrgUpdatedInPortal"] = "org:updated-in-portal";
25
25
  Subjects["AiCreated"] = "ai:created";
26
+ Subjects["AiUpdated"] = "ai:updated";
26
27
  Subjects["AiOptionChangeStatus"] = "ai-option:changeStatus";
27
28
  Subjects["AiOptionCreated"] = "ai-option:created";
29
+ Subjects["AiOptionUpdated"] = "ai-option:updated";
28
30
  Subjects["AiChangeStatus"] = "ai:changeStatus";
29
31
  Subjects["BlogCreated"] = "blog:created";
30
32
  Subjects["BlogUpdated"] = "blog:updated";
package/build/index.d.ts CHANGED
@@ -25,8 +25,10 @@ export * from './events/portal/org/org-created-event';
25
25
  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
+ export * from './events/portal/ai/ai-update-event';
28
29
  export * from './events/portal/ai-option/ai-created-event';
29
30
  export * from './events/portal/ai-option/ai-option-changeStatus-event';
31
+ export * from './events/portal/ai-option/ai-updated-event';
30
32
  export * from './events/portal/user/user-updated-event';
31
33
  export * from './events/portal/user/user-change-status-event';
32
34
  export * from './events/portal/user/user-updated-wallet-event';
package/build/index.js CHANGED
@@ -51,8 +51,10 @@ __exportStar(require("./events/portal/org/org-created-event"), exports);
51
51
  __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
+ __exportStar(require("./events/portal/ai/ai-update-event"), exports);
54
55
  __exportStar(require("./events/portal/ai-option/ai-created-event"), exports);
55
56
  __exportStar(require("./events/portal/ai-option/ai-option-changeStatus-event"), exports);
57
+ __exportStar(require("./events/portal/ai-option/ai-updated-event"), exports);
56
58
  __exportStar(require("./events/portal/user/user-updated-event"), exports);
57
59
  __exportStar(require("./events/portal/user/user-change-status-event"), exports);
58
60
  __exportStar(require("./events/portal/user/user-updated-wallet-event"), exports);
@@ -4,6 +4,7 @@ export interface AiAttrs {
4
4
  _id: string;
5
5
  name: string;
6
6
  status?: AiStatusEnum;
7
+ description?: string;
7
8
  image?: string;
8
9
  createdAt?: number;
9
10
  updatedAt?: number;
@@ -14,6 +15,7 @@ export interface AiDoc extends mongoose.Document {
14
15
  status: AiStatusEnum;
15
16
  version: number;
16
17
  image?: string;
18
+ description?: string;
17
19
  createdAt?: number;
18
20
  updatedAt?: number;
19
21
  }
@@ -15,6 +15,10 @@ const aiSchema = new mongoose_1.default.Schema({
15
15
  type: String,
16
16
  required: false,
17
17
  },
18
+ description: {
19
+ type: String,
20
+ required: false,
21
+ },
18
22
  status: {
19
23
  type: String,
20
24
  enum: ai_1.AiStatusEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.208",
3
+ "version": "1.0.210",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [