@common_ch/common 1.0.300 → 1.0.302

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,8 @@ export interface AiOptionCreatedEvent {
9
9
  image?: string;
10
10
  description?: string;
11
11
  aiId: string;
12
+ inputPrice: number;
13
+ outputPrice: number;
14
+ cachePrice: number;
12
15
  };
13
16
  }
@@ -9,6 +9,9 @@ export interface AiOptionUpdatedEvent {
9
9
  image: string;
10
10
  description: string;
11
11
  aiId: string;
12
+ inputPrice: number;
13
+ outputPrice: number;
14
+ cachePrice: number;
12
15
  version: number;
13
16
  };
14
17
  }
@@ -9,6 +9,9 @@ export interface AiOptionAttrs {
9
9
  status?: AiOptionStatusEnum;
10
10
  field: AiOptionFieldEnum;
11
11
  aiId: string;
12
+ inputPrice: number;
13
+ outputPrice: number;
14
+ cachePrice: number;
12
15
  createdAt?: number;
13
16
  updatedAt?: number;
14
17
  }
@@ -25,6 +28,9 @@ export interface AiOptionDoc extends mongoose.Document {
25
28
  image?: string;
26
29
  defaultShow?: boolean;
27
30
  description?: string;
31
+ inputPrice: number;
32
+ outputPrice: number;
33
+ cachePrice: number;
28
34
  createdAt?: number;
29
35
  updatedAt?: number;
30
36
  }
@@ -21,6 +21,18 @@ const aiOptionSchema = new mongoose_1.default.Schema({
21
21
  type: String,
22
22
  required: false,
23
23
  },
24
+ inputPrice: {
25
+ type: Number,
26
+ required: false,
27
+ },
28
+ outputPrice: {
29
+ type: Number,
30
+ required: false,
31
+ },
32
+ cachePrice: {
33
+ type: Number,
34
+ required: false,
35
+ },
24
36
  defaultShow: {
25
37
  type: Boolean,
26
38
  required: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.300",
3
+ "version": "1.0.302",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [