@common_ch/common 1.0.472 → 1.0.474

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.
@@ -8,6 +8,11 @@ export declare enum AiOptionNamesEnum {
8
8
  GEMINI_IMAGEN_4_FAST = "imagen-4.0-fast-generate-001",
9
9
  GEMINI_3_PRO = "gemini-3-pro-preview",
10
10
  GEMINI_3_PRO_IMAGE = "gemini-3-pro-image-preview",
11
+ GEMINI_3_PRO_ = "gemini-3-pro",
12
+ GEMINI_3_FLASH = "gemini-3-flash",
13
+ GEMINI_3_1_PRO = "gemini-3.1-pro",
14
+ GEMINI_3_5_PRO = "gemini-3.5-pro",
15
+ GEMINI_3_5_FLASH = "gemini-3.5-flash",
11
16
  GEMINI_2_5_PRO = "gemini-2.5-pro",
12
17
  GEMINI_2_5_FLASH = "gemini-2.5-flash",
13
18
  GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite",
@@ -18,7 +23,14 @@ export declare enum AiOptionNamesEnum {
18
23
  GEMINI_1_5_FLASH = "gemini-1.5-flash",
19
24
  TEXT_EMBEDDING_004 = "text-embedding-004",
20
25
  TEXT_EMBEDDING_ADA_002 = "text-embedding-ada-002",
26
+ gpt5dot5 = "gpt-5.5",
27
+ gpt5dot5Pro = "gpt-5.5-pro",
28
+ gpt5dot4 = "gpt-5.4",
29
+ gpt5dot4Pro = "gpt-5.4-pro",
30
+ gpt5dot4Mini = "gpt-5.4-mini",
31
+ gpt5dot4Nano = "gpt-5.4-nano",
21
32
  gpt5dot1 = "gpt-5.1",
33
+ gpt5dot3Codex = "gpt-5.3-codex",
22
34
  gpt5dot1Codex = "gpt-5.1-codex",
23
35
  gpt5dot1CodexMax = "gpt-5.1-codex-max",
24
36
  gpt5dot1CodexMini = "gpt-5.1-codex-mini",
@@ -43,11 +55,18 @@ export declare enum AiOptionNamesEnum {
43
55
  o1Pro = "o1-pro",
44
56
  dallE3 = "dall-e-3",
45
57
  gptImage1 = "gpt-image-1",
58
+ gptImage1Mini = "gpt-image-1-mini",
59
+ gptImage1dot5 = "gpt-image-1.5",
60
+ gptImage2 = "gpt-image-2",
46
61
  gpt3dot5Turbo = "gpt-3.5-turbo",
47
62
  whisperLarge = "whisper-large",
48
63
  whisper1 = "whisper-1",
49
64
  tts1 = "tts-1",
50
65
  gpt_4o_mini_transcribe = "gpt-4o-mini-transcribe",
66
+ grok_4_3 = "grok-4.3",
67
+ grok_4_20_multi_agent = "grok-4.20-multi-agent",
68
+ grok_4_20_reasoning = "grok-4.20-reasoning",
69
+ grok_4_20_non_reasoning = "grok-4.20-non-reasoning",
51
70
  grok_4_1_fast_reasoning = "grok-4-1-fast-reasoning",
52
71
  grok_4_1_fast_non_reasoning = "grok-4-1-fast-non-reasoning",
53
72
  grok_code_fast_1 = "grok-code-fast-1",
package/build/enums/ai.js CHANGED
@@ -13,6 +13,11 @@ var AiOptionNamesEnum;
13
13
  AiOptionNamesEnum["GEMINI_IMAGEN_4_FAST"] = "imagen-4.0-fast-generate-001";
14
14
  AiOptionNamesEnum["GEMINI_3_PRO"] = "gemini-3-pro-preview";
15
15
  AiOptionNamesEnum["GEMINI_3_PRO_IMAGE"] = "gemini-3-pro-image-preview";
16
+ AiOptionNamesEnum["GEMINI_3_PRO_"] = "gemini-3-pro";
17
+ AiOptionNamesEnum["GEMINI_3_FLASH"] = "gemini-3-flash";
18
+ AiOptionNamesEnum["GEMINI_3_1_PRO"] = "gemini-3.1-pro";
19
+ AiOptionNamesEnum["GEMINI_3_5_PRO"] = "gemini-3.5-pro";
20
+ AiOptionNamesEnum["GEMINI_3_5_FLASH"] = "gemini-3.5-flash";
16
21
  // ===== Gemini 2.5 =====
17
22
  AiOptionNamesEnum["GEMINI_2_5_PRO"] = "gemini-2.5-pro";
18
23
  AiOptionNamesEnum["GEMINI_2_5_FLASH"] = "gemini-2.5-flash";
@@ -27,7 +32,14 @@ var AiOptionNamesEnum;
27
32
  // ===== Embeddings =====
28
33
  AiOptionNamesEnum["TEXT_EMBEDDING_004"] = "text-embedding-004";
29
34
  AiOptionNamesEnum["TEXT_EMBEDDING_ADA_002"] = "text-embedding-ada-002";
35
+ AiOptionNamesEnum["gpt5dot5"] = "gpt-5.5";
36
+ AiOptionNamesEnum["gpt5dot5Pro"] = "gpt-5.5-pro";
37
+ AiOptionNamesEnum["gpt5dot4"] = "gpt-5.4";
38
+ AiOptionNamesEnum["gpt5dot4Pro"] = "gpt-5.4-pro";
39
+ AiOptionNamesEnum["gpt5dot4Mini"] = "gpt-5.4-mini";
40
+ AiOptionNamesEnum["gpt5dot4Nano"] = "gpt-5.4-nano";
30
41
  AiOptionNamesEnum["gpt5dot1"] = "gpt-5.1";
42
+ AiOptionNamesEnum["gpt5dot3Codex"] = "gpt-5.3-codex";
31
43
  AiOptionNamesEnum["gpt5dot1Codex"] = "gpt-5.1-codex";
32
44
  AiOptionNamesEnum["gpt5dot1CodexMax"] = "gpt-5.1-codex-max";
33
45
  AiOptionNamesEnum["gpt5dot1CodexMini"] = "gpt-5.1-codex-mini";
@@ -52,11 +64,19 @@ var AiOptionNamesEnum;
52
64
  AiOptionNamesEnum["o1Pro"] = "o1-pro";
53
65
  AiOptionNamesEnum["dallE3"] = "dall-e-3";
54
66
  AiOptionNamesEnum["gptImage1"] = "gpt-image-1";
67
+ AiOptionNamesEnum["gptImage1Mini"] = "gpt-image-1-mini";
68
+ AiOptionNamesEnum["gptImage1dot5"] = "gpt-image-1.5";
69
+ AiOptionNamesEnum["gptImage2"] = "gpt-image-2";
55
70
  AiOptionNamesEnum["gpt3dot5Turbo"] = "gpt-3.5-turbo";
56
71
  AiOptionNamesEnum["whisperLarge"] = "whisper-large";
57
72
  AiOptionNamesEnum["whisper1"] = "whisper-1";
58
73
  AiOptionNamesEnum["tts1"] = "tts-1";
59
74
  AiOptionNamesEnum["gpt_4o_mini_transcribe"] = "gpt-4o-mini-transcribe";
75
+ // GROK
76
+ AiOptionNamesEnum["grok_4_3"] = "grok-4.3";
77
+ AiOptionNamesEnum["grok_4_20_multi_agent"] = "grok-4.20-multi-agent";
78
+ AiOptionNamesEnum["grok_4_20_reasoning"] = "grok-4.20-reasoning";
79
+ AiOptionNamesEnum["grok_4_20_non_reasoning"] = "grok-4.20-non-reasoning";
60
80
  AiOptionNamesEnum["grok_4_1_fast_reasoning"] = "grok-4-1-fast-reasoning";
61
81
  AiOptionNamesEnum["grok_4_1_fast_non_reasoning"] = "grok-4-1-fast-non-reasoning";
62
82
  AiOptionNamesEnum["grok_code_fast_1"] = "grok-code-fast-1";
@@ -0,0 +1,10 @@
1
+ import { Types } from "mongoose";
2
+ import { Subjects } from "../../subjects";
3
+ export interface BlogSetOrUnsetMainPage {
4
+ subject: Subjects.BlogMainPage;
5
+ data: {
6
+ id: Types.ObjectId;
7
+ mainPage: boolean;
8
+ version: number;
9
+ };
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -35,6 +35,7 @@ export declare enum Subjects {
35
35
  BlogCreated = "blog:created",
36
36
  BlogUpdated = "blog:updated",
37
37
  BlogChangeStatus = "blog:change-status",
38
+ BlogMainPage = "blog:main-page",
38
39
  BlogCategoryCreated = "blog-category:created",
39
40
  BlogCategoryUpdated = "blog-category:updated",
40
41
  BlogCategoryChangeStatus = "blog-category:change-status",
@@ -39,6 +39,7 @@ var Subjects;
39
39
  Subjects["BlogCreated"] = "blog:created";
40
40
  Subjects["BlogUpdated"] = "blog:updated";
41
41
  Subjects["BlogChangeStatus"] = "blog:change-status";
42
+ Subjects["BlogMainPage"] = "blog:main-page";
42
43
  Subjects["BlogCategoryCreated"] = "blog-category:created";
43
44
  Subjects["BlogCategoryUpdated"] = "blog-category:updated";
44
45
  Subjects["BlogCategoryChangeStatus"] = "blog-category:change-status";
package/build/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export * from './events/app/user/user-update-wallet-event';
52
52
  export * from './events/portal/blog/blog-create-event';
53
53
  export * from './events/portal/blog/blog-update-event';
54
54
  export * from './events/portal/blog/blog-change-status-event';
55
+ export * from './events/portal/blog/blog-mainPage-event';
55
56
  export * from './events/portal/blog-category/blog-category-create-event';
56
57
  export * from './events/portal/blog-category/blog-category-update-event';
57
58
  export * from './events/portal/blog-category/blog-category-change-status-event';
package/build/index.js CHANGED
@@ -78,6 +78,7 @@ __exportStar(require("./events/app/user/user-update-wallet-event"), exports);
78
78
  __exportStar(require("./events/portal/blog/blog-create-event"), exports);
79
79
  __exportStar(require("./events/portal/blog/blog-update-event"), exports);
80
80
  __exportStar(require("./events/portal/blog/blog-change-status-event"), exports);
81
+ __exportStar(require("./events/portal/blog/blog-mainPage-event"), exports);
81
82
  __exportStar(require("./events/portal/blog-category/blog-category-create-event"), exports);
82
83
  __exportStar(require("./events/portal/blog-category/blog-category-update-event"), exports);
83
84
  __exportStar(require("./events/portal/blog-category/blog-category-change-status-event"), exports);
@@ -11,6 +11,7 @@ export interface BlogAttrs {
11
11
  mainPic: string;
12
12
  alt: string;
13
13
  anotherPics?: string[];
14
+ mainPage?: boolean;
14
15
  createdAt?: number;
15
16
  updatedAt?: number;
16
17
  }
@@ -29,6 +30,7 @@ export interface BlogDoc extends mongoose.Document {
29
30
  mainPic: string;
30
31
  alt: string;
31
32
  anotherPics?: string[];
33
+ mainPage?: boolean;
32
34
  createdAt?: number;
33
35
  updatedAt?: number;
34
36
  }
@@ -47,6 +47,10 @@ const blogSchema = new mongoose_1.default.Schema({
47
47
  enum: blog_1.BlogStatusEnum,
48
48
  default: blog_1.BlogStatusEnum.active,
49
49
  },
50
+ mainPage: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
50
54
  createdAt: {
51
55
  type: mongoose_1.default.Schema.Types.Date,
52
56
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.472",
3
+ "version": "1.0.474",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [