automation-lib 6.6.559 → 6.6.561

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/commit.bat CHANGED
@@ -1,62 +1,50 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
- chcp 65001 >nul
4
-
5
- echo ===========================================
6
- echo GIT AUTO PUSH - LIBRARY
7
- echo ===========================================
8
-
9
- set /p commit_message="Enter commit message: "
10
- if "%commit_message%"=="" (
11
- echo [LOI] Commit message khong duoc de trong!
12
- pause
13
- exit /b
14
- )
15
-
16
- :: GIT ADD & COMMIT
17
- git add .
18
- git commit -m "%commit_message%"
19
- timeout /t 2 /nobreak >nul
20
-
21
- :: ===========================================
22
- :: PULL & PUSH HS (nhann6304 only)
23
- :: ===========================================
24
- echo.
25
- echo --- Switch to nhann6304 for [hs] remote ---
26
- gh auth switch --user nhann6304
27
-
28
- echo --- Pull from hs main ---
29
- git pull hs main
30
-
31
- :: Version bump
32
- for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
33
- set currentVersion=%currentVersion:"=%
34
- for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
35
- set major=%%a
36
- set minor=%%b
37
- set patch=%%c
38
- )
39
- set /a patch+=1
40
- set newVersion=%major%.%minor%.%patch%
41
-
42
- powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
43
- echo New version: %newVersion%
44
-
45
- :: Publish
46
- call npm run pub
47
-
48
- :: Commit version bump & push
49
- git add .
50
- timeout /t 1 /nobreak >nul
51
- git commit -m "v%newVersion% - %commit_message%"
52
- timeout /t 2 /nobreak >nul
53
-
54
- echo --- Push to hs main ---
55
- git push hs main && echo [OK] Push hs main xong. || echo [LOI] Push hs main that bai.
56
-
57
- echo.
58
- echo ===========================================
59
- echo HOAN TAT! Version: %newVersion%
60
- echo ===========================================
61
- pause
62
- endlocal
1
+ @echo off
2
+
3
+ :: Add all changes to git
4
+ git add .
5
+
6
+ :: Commit changes with a message
7
+ echo Committing changes...
8
+ set /p commit_message="Enter commit message: "
9
+ git commit -m "%commit_message%"
10
+ sleep 2
11
+
12
+ :: Push changes to the 'main' branch of the 'cp' remote
13
+ git pull origin toan
14
+
15
+ :: Read the current version from package.json
16
+ for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
17
+
18
+ :: Remove quotes from the version string
19
+ set currentVersion=%currentVersion:"=%
20
+
21
+ :: Split version into its components
22
+ for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
23
+ set major=%%a
24
+ set minor=%%b
25
+ set patch=%%c
26
+ )
27
+
28
+ :: Increment the patch version
29
+ set /a patch+=1
30
+
31
+ :: Create the new version string
32
+ set newVersion=%major%.%minor%.%patch%
33
+
34
+ :: Update the version in package.json
35
+ powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
36
+
37
+ :: Display the new version
38
+ echo New version: %newVersion%
39
+
40
+ :: Run npm publish using call
41
+ call npm run pub
42
+
43
+ git add .
44
+ sleep 1
45
+ git commit -m "%commit_message%"
46
+ sleep 2
47
+
48
+ git push origin toan
49
+
50
+
package/dist/index.d.mts CHANGED
@@ -13102,6 +13102,7 @@ interface FilterThreadsAccountRunDto extends IFilterBaseDto {
13102
13102
  leaderTeam: string[];
13103
13103
  memberRunDeviceAndRunPC: string[];
13104
13104
  accountIDRange: [number, number];
13105
+ startStopOnDevice: boolean[];
13105
13106
  runStatus: string[];
13106
13107
  loginSocialStatus: string[];
13107
13108
  emailLoginStatus: string[];
@@ -13112,6 +13113,7 @@ interface FilterThreadsAccountRunDto extends IFilterBaseDto {
13112
13113
  passwordChangeStatus: string[];
13113
13114
  twoFactorAuthChangeStatus: string[];
13114
13115
  emailChangeStatus: string[];
13116
+ statusSyncAccount: string[];
13115
13117
  runActiveDateRange: [Date, Date];
13116
13118
  createdDateRange: [Date, Date];
13117
13119
  updatedDateRange: [Date, Date];
@@ -14130,6 +14132,7 @@ interface CreateBlogPostDto {
14130
14132
  url: string;
14131
14133
  type: EMediaTypeLibraryPost;
14132
14134
  }>;
14135
+ countMediaInPost: number;
14133
14136
  }
14134
14137
  interface UpdateBlogPostDto extends Partial<CreateBlogPostDto> {
14135
14138
  }
@@ -14167,6 +14170,7 @@ interface FindBlogPostDto extends IFindBaseDto {
14167
14170
  pathBlogCategory: string;
14168
14171
  viewable: IViewViewableBlogPostDto[];
14169
14172
  tags: string[];
14173
+ countMediaInPost: number;
14170
14174
  tagUsers: Array<{
14171
14175
  id: string;
14172
14176
  name: string;
@@ -14432,6 +14436,7 @@ interface IBlogPost extends IBaseModel, ITrackingModel {
14432
14436
  tags: string[];
14433
14437
  tagUsers: string[] | IUser;
14434
14438
  isPublished: EYesNo;
14439
+ countMediaInPost: number;
14435
14440
  blogCategory: string | IBlogCategorySystem;
14436
14441
  isSendLark: EYesNo;
14437
14442
  sendLarkStatus: ESendNotiStatusBlogPost;
package/dist/index.d.ts CHANGED
@@ -13102,6 +13102,7 @@ interface FilterThreadsAccountRunDto extends IFilterBaseDto {
13102
13102
  leaderTeam: string[];
13103
13103
  memberRunDeviceAndRunPC: string[];
13104
13104
  accountIDRange: [number, number];
13105
+ startStopOnDevice: boolean[];
13105
13106
  runStatus: string[];
13106
13107
  loginSocialStatus: string[];
13107
13108
  emailLoginStatus: string[];
@@ -13112,6 +13113,7 @@ interface FilterThreadsAccountRunDto extends IFilterBaseDto {
13112
13113
  passwordChangeStatus: string[];
13113
13114
  twoFactorAuthChangeStatus: string[];
13114
13115
  emailChangeStatus: string[];
13116
+ statusSyncAccount: string[];
13115
13117
  runActiveDateRange: [Date, Date];
13116
13118
  createdDateRange: [Date, Date];
13117
13119
  updatedDateRange: [Date, Date];
@@ -14130,6 +14132,7 @@ interface CreateBlogPostDto {
14130
14132
  url: string;
14131
14133
  type: EMediaTypeLibraryPost;
14132
14134
  }>;
14135
+ countMediaInPost: number;
14133
14136
  }
14134
14137
  interface UpdateBlogPostDto extends Partial<CreateBlogPostDto> {
14135
14138
  }
@@ -14167,6 +14170,7 @@ interface FindBlogPostDto extends IFindBaseDto {
14167
14170
  pathBlogCategory: string;
14168
14171
  viewable: IViewViewableBlogPostDto[];
14169
14172
  tags: string[];
14173
+ countMediaInPost: number;
14170
14174
  tagUsers: Array<{
14171
14175
  id: string;
14172
14176
  name: string;
@@ -14432,6 +14436,7 @@ interface IBlogPost extends IBaseModel, ITrackingModel {
14432
14436
  tags: string[];
14433
14437
  tagUsers: string[] | IUser;
14434
14438
  isPublished: EYesNo;
14439
+ countMediaInPost: number;
14435
14440
  blogCategory: string | IBlogCategorySystem;
14436
14441
  isSendLark: EYesNo;
14437
14442
  sendLarkStatus: ESendNotiStatusBlogPost;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "6.6.559",
3
+ "version": "6.6.561",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",