automation-lib 6.4.37 → 6.4.39

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
@@ -10,6 +10,8 @@ git commit -m "%commit_message%"
10
10
  timeout /t 2 /nobreak >nul
11
11
 
12
12
  :: Push changes to the 'main' branch of the 'cp' remote
13
+ git pull hs toan
14
+ timeout /t 2 /nobreak >nul
13
15
  git pull hs main
14
16
 
15
17
  :: Read the current version from package.json
package/dist/index.d.mts CHANGED
@@ -3559,6 +3559,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3559
3559
  plan: EAccountAIModelBrowserPlan;
3560
3560
  statusModel: EAccountAIModelApiStatus;
3561
3561
  timeChangeStatusModel: Date;
3562
+ browserStatus: EAccountAIModelStatus;
3563
+ browserTimeChangeStatus: Date;
3562
3564
  note: string;
3563
3565
  } | null;
3564
3566
  gemini: {
@@ -3568,9 +3570,11 @@ interface FindAccountAIDto extends IFindBaseDto {
3568
3570
  plan: EAccountAIModelBrowserPlan;
3569
3571
  statusModel: EAccountAIModelApiStatus;
3570
3572
  timeChangeStatusModel: Date;
3573
+ browserStatus: EAccountAIModelStatus;
3574
+ browserTimeChangeStatus: Date;
3571
3575
  note: string;
3572
3576
  } | null;
3573
- };
3577
+ } | null;
3574
3578
  aiContentCredit: {
3575
3579
  credits: number;
3576
3580
  statusCredit: EAccountAIModelCreditStatus;
@@ -3608,6 +3612,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3608
3612
  apiJsonToken: string;
3609
3613
  apiStatus: EAccountAIModelApiStatus;
3610
3614
  timeChangeStatusModel: Date;
3615
+ browserStatus: EAccountAIModelCreditStatus;
3616
+ browserTimeChangeStatus: Date;
3611
3617
  browserCredits: number;
3612
3618
  browserStatusCredit: EAccountAIModelCreditStatus;
3613
3619
  note: string;
@@ -3626,6 +3632,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3626
3632
  apiModel: string;
3627
3633
  apiStatus: EAccountAIModelApiStatus;
3628
3634
  timeChangeStatusModel: Date;
3635
+ browserStatus: EAccountAIModelCreditStatus;
3636
+ browserTimeChangeStatus: Date;
3629
3637
  browserCredits: number;
3630
3638
  browserStatusCredit: EAccountAIModelCreditStatus;
3631
3639
  note: string;
@@ -3801,6 +3809,7 @@ interface FindOverviewAccountAIGoogleDto {
3801
3809
  [EAccountAISync.Error]: number;
3802
3810
  [EAccountAISync.Queued]: number;
3803
3811
  total: number;
3812
+ database: number;
3804
3813
  };
3805
3814
  }
3806
3815
  interface FilterAccountAIGoogleDto extends IFilterBaseDto {
@@ -14580,6 +14589,53 @@ interface ITaskAIAccountProxy extends IBaseModel, ITrackingModel {
14580
14589
  }
14581
14590
 
14582
14591
  interface ITaskAIAvatarCoverInstagram extends IBaseModel, ITrackingModel {
14592
+ typeSocial: ETypeSocial.Instagram;
14593
+ sheetID: string;
14594
+ sheetUrl: string;
14595
+ sheetName: string;
14596
+ rowID: string;
14597
+ toolAuto: 'Browser Automation';
14598
+ taskToolKeyAiGen: string;
14599
+ pc: string | IPCBrowser;
14600
+ accountSocial: string | IInstagramAccountRaw;
14601
+ proxyMain: string | IProxy;
14602
+ accountDriveMain: string | IAccountDrive;
14603
+ accountAIMain: string | IAccountAI;
14604
+ modelImage: EModelImageVideo.Whisk;
14605
+ urlProjectImage: string;
14606
+ ratioImage: ERatioImage;
14607
+ typeTaskImage: ETaskGenerateAIType;
14608
+ avatarPrompt: string;
14609
+ avatarUrlOutput?: string;
14610
+ coverPrompt: string;
14611
+ coverUrlOutput?: string;
14612
+ currentStepImage: number;
14613
+ totalStepImage: number;
14614
+ statusImage: ETaskStatus;
14615
+ timeStatusImageChange: Date;
14616
+ retryCountImage: number;
14617
+ currentStepCanvaAvatar: number;
14618
+ totalStepCanvaAvatar: number;
14619
+ statusCanvaAvatar: ETaskStatus;
14620
+ timeStatusCanvaAvatarChange: Date;
14621
+ statusDownloadCanvaAvatar: ETaskStatus;
14622
+ timeStatusDownloadCanvaAvatarChange: Date;
14623
+ currentStepCanvaCover: number;
14624
+ totalStepCanvaCover: number;
14625
+ statusCanvaCover: ETaskStatus;
14626
+ timeStatusCanvaCoverChange: Date;
14627
+ statusDownloadCanvaCover: ETaskStatus;
14628
+ timeStatusDownloadCanvaCoverChange: Date;
14629
+ linkCanvaFolder: string;
14630
+ linkCanvaAvatar: string;
14631
+ linkCanvaCover: string;
14632
+ totalImages: number;
14633
+ statusSchedulePost: ETaskStatus;
14634
+ timeStatusSchedulePostChange: Date;
14635
+ driverEmail: string;
14636
+ driverFolderName: string;
14637
+ noteFixTask: string;
14638
+ noteFixOutput: string;
14583
14639
  }
14584
14640
 
14585
14641
  interface ITaskAIAvatarCoverCanvaInstagramStep extends IBaseModel, ITrackingModel {
package/dist/index.d.ts CHANGED
@@ -3559,6 +3559,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3559
3559
  plan: EAccountAIModelBrowserPlan;
3560
3560
  statusModel: EAccountAIModelApiStatus;
3561
3561
  timeChangeStatusModel: Date;
3562
+ browserStatus: EAccountAIModelStatus;
3563
+ browserTimeChangeStatus: Date;
3562
3564
  note: string;
3563
3565
  } | null;
3564
3566
  gemini: {
@@ -3568,9 +3570,11 @@ interface FindAccountAIDto extends IFindBaseDto {
3568
3570
  plan: EAccountAIModelBrowserPlan;
3569
3571
  statusModel: EAccountAIModelApiStatus;
3570
3572
  timeChangeStatusModel: Date;
3573
+ browserStatus: EAccountAIModelStatus;
3574
+ browserTimeChangeStatus: Date;
3571
3575
  note: string;
3572
3576
  } | null;
3573
- };
3577
+ } | null;
3574
3578
  aiContentCredit: {
3575
3579
  credits: number;
3576
3580
  statusCredit: EAccountAIModelCreditStatus;
@@ -3608,6 +3612,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3608
3612
  apiJsonToken: string;
3609
3613
  apiStatus: EAccountAIModelApiStatus;
3610
3614
  timeChangeStatusModel: Date;
3615
+ browserStatus: EAccountAIModelCreditStatus;
3616
+ browserTimeChangeStatus: Date;
3611
3617
  browserCredits: number;
3612
3618
  browserStatusCredit: EAccountAIModelCreditStatus;
3613
3619
  note: string;
@@ -3626,6 +3632,8 @@ interface FindAccountAIDto extends IFindBaseDto {
3626
3632
  apiModel: string;
3627
3633
  apiStatus: EAccountAIModelApiStatus;
3628
3634
  timeChangeStatusModel: Date;
3635
+ browserStatus: EAccountAIModelCreditStatus;
3636
+ browserTimeChangeStatus: Date;
3629
3637
  browserCredits: number;
3630
3638
  browserStatusCredit: EAccountAIModelCreditStatus;
3631
3639
  note: string;
@@ -3801,6 +3809,7 @@ interface FindOverviewAccountAIGoogleDto {
3801
3809
  [EAccountAISync.Error]: number;
3802
3810
  [EAccountAISync.Queued]: number;
3803
3811
  total: number;
3812
+ database: number;
3804
3813
  };
3805
3814
  }
3806
3815
  interface FilterAccountAIGoogleDto extends IFilterBaseDto {
@@ -14580,6 +14589,53 @@ interface ITaskAIAccountProxy extends IBaseModel, ITrackingModel {
14580
14589
  }
14581
14590
 
14582
14591
  interface ITaskAIAvatarCoverInstagram extends IBaseModel, ITrackingModel {
14592
+ typeSocial: ETypeSocial.Instagram;
14593
+ sheetID: string;
14594
+ sheetUrl: string;
14595
+ sheetName: string;
14596
+ rowID: string;
14597
+ toolAuto: 'Browser Automation';
14598
+ taskToolKeyAiGen: string;
14599
+ pc: string | IPCBrowser;
14600
+ accountSocial: string | IInstagramAccountRaw;
14601
+ proxyMain: string | IProxy;
14602
+ accountDriveMain: string | IAccountDrive;
14603
+ accountAIMain: string | IAccountAI;
14604
+ modelImage: EModelImageVideo.Whisk;
14605
+ urlProjectImage: string;
14606
+ ratioImage: ERatioImage;
14607
+ typeTaskImage: ETaskGenerateAIType;
14608
+ avatarPrompt: string;
14609
+ avatarUrlOutput?: string;
14610
+ coverPrompt: string;
14611
+ coverUrlOutput?: string;
14612
+ currentStepImage: number;
14613
+ totalStepImage: number;
14614
+ statusImage: ETaskStatus;
14615
+ timeStatusImageChange: Date;
14616
+ retryCountImage: number;
14617
+ currentStepCanvaAvatar: number;
14618
+ totalStepCanvaAvatar: number;
14619
+ statusCanvaAvatar: ETaskStatus;
14620
+ timeStatusCanvaAvatarChange: Date;
14621
+ statusDownloadCanvaAvatar: ETaskStatus;
14622
+ timeStatusDownloadCanvaAvatarChange: Date;
14623
+ currentStepCanvaCover: number;
14624
+ totalStepCanvaCover: number;
14625
+ statusCanvaCover: ETaskStatus;
14626
+ timeStatusCanvaCoverChange: Date;
14627
+ statusDownloadCanvaCover: ETaskStatus;
14628
+ timeStatusDownloadCanvaCoverChange: Date;
14629
+ linkCanvaFolder: string;
14630
+ linkCanvaAvatar: string;
14631
+ linkCanvaCover: string;
14632
+ totalImages: number;
14633
+ statusSchedulePost: ETaskStatus;
14634
+ timeStatusSchedulePostChange: Date;
14635
+ driverEmail: string;
14636
+ driverFolderName: string;
14637
+ noteFixTask: string;
14638
+ noteFixOutput: string;
14583
14639
  }
14584
14640
 
14585
14641
  interface ITaskAIAvatarCoverCanvaInstagramStep extends IBaseModel, ITrackingModel {
package/docs.txt CHANGED
@@ -1,3 +1,3 @@
1
-
2
- ############ Cấu hình npm ############
1
+
2
+ ############ Cấu hình npm ############
3
3
  npm config set //registry.npmjs.org/:_authToken {token}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "6.4.37",
3
+ "version": "6.4.39",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -1,81 +1,81 @@
1
- n@echo off
2
- setlocal enabledelayedexpansion
3
- chcp 65001 >nul
4
- echo ====================================
5
- echo FILE SEARCH AND LIST UTILITY
6
- echo ====================================
7
- echo.
8
-
9
- set /p folder_path="Enter folder path: "
10
-
11
- if not exist "%folder_path%" (
12
- echo.
13
- echo [ERROR] Folder does not exist!
14
- pause
15
- exit /b
16
- )
17
-
18
- echo.
19
- set /p file_pattern="Enter file name pattern (press Enter to list all files): "
20
-
21
- if "%file_pattern%"=="" (
22
- set search_mode=ALL_FILES
23
- set output_file=all_files_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
24
- ) else (
25
- set search_mode=PATTERN_SEARCH
26
- set output_file=search_%file_pattern:_=_%_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
27
- )
28
-
29
- set output_file=%output_file: =0%
30
-
31
- echo.
32
- echo Searching files...
33
- if "%search_mode%"=="PATTERN_SEARCH" (
34
- echo Pattern: *%file_pattern%*
35
- ) else (
36
- echo Listing all files...
37
- )
38
- echo.
39
-
40
- echo ============ SEARCH RESULTS ============ > "%output_file%"
41
- echo Folder: %folder_path% >> "%output_file%"
42
- echo Time: %date% %time% >> "%output_file%"
43
- if "%search_mode%"=="PATTERN_SEARCH" (
44
- echo Search Pattern: *%file_pattern%* >> "%output_file%"
45
- ) else (
46
- echo Search Mode: All Files >> "%output_file%"
47
- )
48
- echo ====================================== >> "%output_file%"
49
- echo. >> "%output_file%"
50
-
51
- set count=0
52
-
53
- if "%search_mode%"=="ALL_FILES" (
54
- for /r "%folder_path%" %%f in (*) do (
55
- echo %%f
56
- echo %%f >> "%output_file%"
57
- set /a count+=1
58
- )
59
- ) else (
60
- for /r "%folder_path%" %%f in (*) do (
61
- echo %%~nxf | findstr /i "%file_pattern%" >nul
62
- if !errorlevel! equ 0 (
63
- echo %%f
64
- echo %%f >> "%output_file%"
65
- set /a count+=1
66
- )
67
- )
68
- )
69
-
70
- echo.
71
- echo ====================================
72
- if "%search_mode%"=="PATTERN_SEARCH" (
73
- echo Total matching files: %count%
74
- ) else (
75
- echo Total files: %count%
76
- )
77
- echo Result saved to: %output_file%
78
- echo ====================================
79
- echo.
80
-
81
- pause
1
+ n@echo off
2
+ setlocal enabledelayedexpansion
3
+ chcp 65001 >nul
4
+ echo ====================================
5
+ echo FILE SEARCH AND LIST UTILITY
6
+ echo ====================================
7
+ echo.
8
+
9
+ set /p folder_path="Enter folder path: "
10
+
11
+ if not exist "%folder_path%" (
12
+ echo.
13
+ echo [ERROR] Folder does not exist!
14
+ pause
15
+ exit /b
16
+ )
17
+
18
+ echo.
19
+ set /p file_pattern="Enter file name pattern (press Enter to list all files): "
20
+
21
+ if "%file_pattern%"=="" (
22
+ set search_mode=ALL_FILES
23
+ set output_file=all_files_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
24
+ ) else (
25
+ set search_mode=PATTERN_SEARCH
26
+ set output_file=search_%file_pattern:_=_%_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt
27
+ )
28
+
29
+ set output_file=%output_file: =0%
30
+
31
+ echo.
32
+ echo Searching files...
33
+ if "%search_mode%"=="PATTERN_SEARCH" (
34
+ echo Pattern: *%file_pattern%*
35
+ ) else (
36
+ echo Listing all files...
37
+ )
38
+ echo.
39
+
40
+ echo ============ SEARCH RESULTS ============ > "%output_file%"
41
+ echo Folder: %folder_path% >> "%output_file%"
42
+ echo Time: %date% %time% >> "%output_file%"
43
+ if "%search_mode%"=="PATTERN_SEARCH" (
44
+ echo Search Pattern: *%file_pattern%* >> "%output_file%"
45
+ ) else (
46
+ echo Search Mode: All Files >> "%output_file%"
47
+ )
48
+ echo ====================================== >> "%output_file%"
49
+ echo. >> "%output_file%"
50
+
51
+ set count=0
52
+
53
+ if "%search_mode%"=="ALL_FILES" (
54
+ for /r "%folder_path%" %%f in (*) do (
55
+ echo %%f
56
+ echo %%f >> "%output_file%"
57
+ set /a count+=1
58
+ )
59
+ ) else (
60
+ for /r "%folder_path%" %%f in (*) do (
61
+ echo %%~nxf | findstr /i "%file_pattern%" >nul
62
+ if !errorlevel! equ 0 (
63
+ echo %%f
64
+ echo %%f >> "%output_file%"
65
+ set /a count+=1
66
+ )
67
+ )
68
+ )
69
+
70
+ echo.
71
+ echo ====================================
72
+ if "%search_mode%"=="PATTERN_SEARCH" (
73
+ echo Total matching files: %count%
74
+ ) else (
75
+ echo Total files: %count%
76
+ )
77
+ echo Result saved to: %output_file%
78
+ echo ====================================
79
+ echo.
80
+
81
+ pause