automation-lib 6.4.40 → 6.4.42
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 +0 -2
- package/dist/index.d.mts +15 -11
- package/dist/index.d.ts +15 -11
- package/docs.txt +2 -2
- package/package.json +1 -1
- package/read-file-path.bat +81 -81
package/commit.bat
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3612,6 +3612,7 @@ interface FindAccountAIDto extends IFindBaseDto {
|
|
|
3612
3612
|
apiJsonToken: string;
|
|
3613
3613
|
apiStatus: EAccountAIModelApiStatus;
|
|
3614
3614
|
timeChangeStatusModel: Date;
|
|
3615
|
+
browserPlan: EAccountAIModelBrowserPlan;
|
|
3615
3616
|
browserStatus: EAccountAIModelCreditStatus;
|
|
3616
3617
|
browserTimeChangeStatus: Date;
|
|
3617
3618
|
browserCredits: number;
|
|
@@ -3632,6 +3633,7 @@ interface FindAccountAIDto extends IFindBaseDto {
|
|
|
3632
3633
|
apiModel: string;
|
|
3633
3634
|
apiStatus: EAccountAIModelApiStatus;
|
|
3634
3635
|
timeChangeStatusModel: Date;
|
|
3636
|
+
browserPlan: EAccountAIModelBrowserPlan;
|
|
3635
3637
|
browserStatus: EAccountAIModelCreditStatus;
|
|
3636
3638
|
browserTimeChangeStatus: Date;
|
|
3637
3639
|
browserCredits: number;
|
|
@@ -14006,7 +14008,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14006
14008
|
typeIdea: ETypeManagerWorkClassify;
|
|
14007
14009
|
createdAt: Date;
|
|
14008
14010
|
updatedAt: Date;
|
|
14009
|
-
toolAuto:
|
|
14011
|
+
toolAuto: "Browser Automation";
|
|
14010
14012
|
taskToolKeyAiGen: string;
|
|
14011
14013
|
statusImageVideoVoice: ETaskStatus;
|
|
14012
14014
|
currentStepImageVideoVoice: number;
|
|
@@ -14042,7 +14044,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14042
14044
|
}>;
|
|
14043
14045
|
infoBrowserInfo: {
|
|
14044
14046
|
browserName: string;
|
|
14045
|
-
browserType:
|
|
14047
|
+
browserType: "GPM";
|
|
14046
14048
|
listProxy: Array<{
|
|
14047
14049
|
proxyFormat: string;
|
|
14048
14050
|
proxyType: ETypeProxy;
|
|
@@ -14064,7 +14066,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14064
14066
|
}>;
|
|
14065
14067
|
infoGenVoice: {
|
|
14066
14068
|
model: string;
|
|
14067
|
-
modeVoice:
|
|
14069
|
+
modeVoice: "Multi Speaker Audio";
|
|
14068
14070
|
modelSetting: string;
|
|
14069
14071
|
language: string;
|
|
14070
14072
|
totalVoice: number;
|
|
@@ -14103,11 +14105,11 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14103
14105
|
urlFolderDrive: string;
|
|
14104
14106
|
result: Array<{
|
|
14105
14107
|
timestamp: Date;
|
|
14106
|
-
typeTask:
|
|
14108
|
+
typeTask: "Image" | "Video";
|
|
14107
14109
|
taskName: string;
|
|
14108
14110
|
status: string;
|
|
14109
14111
|
timeGenerate: number;
|
|
14110
|
-
typeAction:
|
|
14112
|
+
typeAction: "Tool" | "Api";
|
|
14111
14113
|
message: string;
|
|
14112
14114
|
}>;
|
|
14113
14115
|
};
|
|
@@ -14123,16 +14125,18 @@ interface CanvaDetailInstagramDto {
|
|
|
14123
14125
|
typeIdea: ETypeManagerWorkClassify;
|
|
14124
14126
|
createdAt: Date;
|
|
14125
14127
|
updatedAt: Date;
|
|
14126
|
-
toolAuto:
|
|
14128
|
+
toolAuto: "Canva";
|
|
14127
14129
|
taskToolKeyCanva: string;
|
|
14128
14130
|
currentStepCanva: number;
|
|
14129
14131
|
totalStepCanva: number;
|
|
14130
14132
|
statusCanva: ETaskStatus;
|
|
14131
14133
|
timeStatusCanvaChange: Date;
|
|
14134
|
+
statusEditCanva: ETaskStatus;
|
|
14132
14135
|
totalSecondsGenerateCanva: number;
|
|
14133
14136
|
countRunCanva: number;
|
|
14134
14137
|
retryCountCanva: number;
|
|
14135
14138
|
urlAI: string;
|
|
14139
|
+
styleName: string;
|
|
14136
14140
|
model: EModelImageVideo;
|
|
14137
14141
|
ratio: ERatioImage;
|
|
14138
14142
|
typeTaskCanva: ETaskGenerateAIType;
|
|
@@ -14152,7 +14156,7 @@ interface CanvaDetailInstagramDto {
|
|
|
14152
14156
|
}>;
|
|
14153
14157
|
infoBrowserInfo: {
|
|
14154
14158
|
browserName: string;
|
|
14155
|
-
browserType:
|
|
14159
|
+
browserType: "GPM";
|
|
14156
14160
|
listProxy: Array<{
|
|
14157
14161
|
proxyFormat: string;
|
|
14158
14162
|
proxyType: ETypeProxy;
|
|
@@ -14183,7 +14187,7 @@ interface CanvaDetailInstagramDto {
|
|
|
14183
14187
|
effectPage27: string;
|
|
14184
14188
|
};
|
|
14185
14189
|
infoCanvaEditPage: Array<{
|
|
14186
|
-
page:
|
|
14190
|
+
page: "Page1" | "Page2" | "Page3" | "Page4" | "Page5" | "Page6" | "Page7";
|
|
14187
14191
|
status: ETaskStatus;
|
|
14188
14192
|
time: number;
|
|
14189
14193
|
retry: number;
|
|
@@ -14217,8 +14221,8 @@ interface CanvaDetailInstagramDto {
|
|
|
14217
14221
|
result: Array<{
|
|
14218
14222
|
timestamp: Date;
|
|
14219
14223
|
status: ETaskStatus;
|
|
14220
|
-
typeAction:
|
|
14221
|
-
page:
|
|
14224
|
+
typeAction: "Edit";
|
|
14225
|
+
page: "Page1" | "Page2" | "Page3" | "Page4" | "Page5" | "Page6" | "Page7";
|
|
14222
14226
|
background: string;
|
|
14223
14227
|
frontText: string;
|
|
14224
14228
|
effect: string;
|
|
@@ -14600,7 +14604,7 @@ interface ITaskAIAvatarCoverInstagram extends IBaseModel, ITrackingModel {
|
|
|
14600
14604
|
sheetUrl: string;
|
|
14601
14605
|
sheetName: string;
|
|
14602
14606
|
rowID: string;
|
|
14603
|
-
toolAuto:
|
|
14607
|
+
toolAuto: "Browser Automation";
|
|
14604
14608
|
taskToolKeyAiGen: string;
|
|
14605
14609
|
pc: string | IPCBrowser;
|
|
14606
14610
|
accountSocial: string | IInstagramAccountRaw;
|
package/dist/index.d.ts
CHANGED
|
@@ -3612,6 +3612,7 @@ interface FindAccountAIDto extends IFindBaseDto {
|
|
|
3612
3612
|
apiJsonToken: string;
|
|
3613
3613
|
apiStatus: EAccountAIModelApiStatus;
|
|
3614
3614
|
timeChangeStatusModel: Date;
|
|
3615
|
+
browserPlan: EAccountAIModelBrowserPlan;
|
|
3615
3616
|
browserStatus: EAccountAIModelCreditStatus;
|
|
3616
3617
|
browserTimeChangeStatus: Date;
|
|
3617
3618
|
browserCredits: number;
|
|
@@ -3632,6 +3633,7 @@ interface FindAccountAIDto extends IFindBaseDto {
|
|
|
3632
3633
|
apiModel: string;
|
|
3633
3634
|
apiStatus: EAccountAIModelApiStatus;
|
|
3634
3635
|
timeChangeStatusModel: Date;
|
|
3636
|
+
browserPlan: EAccountAIModelBrowserPlan;
|
|
3635
3637
|
browserStatus: EAccountAIModelCreditStatus;
|
|
3636
3638
|
browserTimeChangeStatus: Date;
|
|
3637
3639
|
browserCredits: number;
|
|
@@ -14006,7 +14008,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14006
14008
|
typeIdea: ETypeManagerWorkClassify;
|
|
14007
14009
|
createdAt: Date;
|
|
14008
14010
|
updatedAt: Date;
|
|
14009
|
-
toolAuto:
|
|
14011
|
+
toolAuto: "Browser Automation";
|
|
14010
14012
|
taskToolKeyAiGen: string;
|
|
14011
14013
|
statusImageVideoVoice: ETaskStatus;
|
|
14012
14014
|
currentStepImageVideoVoice: number;
|
|
@@ -14042,7 +14044,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14042
14044
|
}>;
|
|
14043
14045
|
infoBrowserInfo: {
|
|
14044
14046
|
browserName: string;
|
|
14045
|
-
browserType:
|
|
14047
|
+
browserType: "GPM";
|
|
14046
14048
|
listProxy: Array<{
|
|
14047
14049
|
proxyFormat: string;
|
|
14048
14050
|
proxyType: ETypeProxy;
|
|
@@ -14064,7 +14066,7 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14064
14066
|
}>;
|
|
14065
14067
|
infoGenVoice: {
|
|
14066
14068
|
model: string;
|
|
14067
|
-
modeVoice:
|
|
14069
|
+
modeVoice: "Multi Speaker Audio";
|
|
14068
14070
|
modelSetting: string;
|
|
14069
14071
|
language: string;
|
|
14070
14072
|
totalVoice: number;
|
|
@@ -14103,11 +14105,11 @@ interface ImageVideoVoiceDetailInstagramDto {
|
|
|
14103
14105
|
urlFolderDrive: string;
|
|
14104
14106
|
result: Array<{
|
|
14105
14107
|
timestamp: Date;
|
|
14106
|
-
typeTask:
|
|
14108
|
+
typeTask: "Image" | "Video";
|
|
14107
14109
|
taskName: string;
|
|
14108
14110
|
status: string;
|
|
14109
14111
|
timeGenerate: number;
|
|
14110
|
-
typeAction:
|
|
14112
|
+
typeAction: "Tool" | "Api";
|
|
14111
14113
|
message: string;
|
|
14112
14114
|
}>;
|
|
14113
14115
|
};
|
|
@@ -14123,16 +14125,18 @@ interface CanvaDetailInstagramDto {
|
|
|
14123
14125
|
typeIdea: ETypeManagerWorkClassify;
|
|
14124
14126
|
createdAt: Date;
|
|
14125
14127
|
updatedAt: Date;
|
|
14126
|
-
toolAuto:
|
|
14128
|
+
toolAuto: "Canva";
|
|
14127
14129
|
taskToolKeyCanva: string;
|
|
14128
14130
|
currentStepCanva: number;
|
|
14129
14131
|
totalStepCanva: number;
|
|
14130
14132
|
statusCanva: ETaskStatus;
|
|
14131
14133
|
timeStatusCanvaChange: Date;
|
|
14134
|
+
statusEditCanva: ETaskStatus;
|
|
14132
14135
|
totalSecondsGenerateCanva: number;
|
|
14133
14136
|
countRunCanva: number;
|
|
14134
14137
|
retryCountCanva: number;
|
|
14135
14138
|
urlAI: string;
|
|
14139
|
+
styleName: string;
|
|
14136
14140
|
model: EModelImageVideo;
|
|
14137
14141
|
ratio: ERatioImage;
|
|
14138
14142
|
typeTaskCanva: ETaskGenerateAIType;
|
|
@@ -14152,7 +14156,7 @@ interface CanvaDetailInstagramDto {
|
|
|
14152
14156
|
}>;
|
|
14153
14157
|
infoBrowserInfo: {
|
|
14154
14158
|
browserName: string;
|
|
14155
|
-
browserType:
|
|
14159
|
+
browserType: "GPM";
|
|
14156
14160
|
listProxy: Array<{
|
|
14157
14161
|
proxyFormat: string;
|
|
14158
14162
|
proxyType: ETypeProxy;
|
|
@@ -14183,7 +14187,7 @@ interface CanvaDetailInstagramDto {
|
|
|
14183
14187
|
effectPage27: string;
|
|
14184
14188
|
};
|
|
14185
14189
|
infoCanvaEditPage: Array<{
|
|
14186
|
-
page:
|
|
14190
|
+
page: "Page1" | "Page2" | "Page3" | "Page4" | "Page5" | "Page6" | "Page7";
|
|
14187
14191
|
status: ETaskStatus;
|
|
14188
14192
|
time: number;
|
|
14189
14193
|
retry: number;
|
|
@@ -14217,8 +14221,8 @@ interface CanvaDetailInstagramDto {
|
|
|
14217
14221
|
result: Array<{
|
|
14218
14222
|
timestamp: Date;
|
|
14219
14223
|
status: ETaskStatus;
|
|
14220
|
-
typeAction:
|
|
14221
|
-
page:
|
|
14224
|
+
typeAction: "Edit";
|
|
14225
|
+
page: "Page1" | "Page2" | "Page3" | "Page4" | "Page5" | "Page6" | "Page7";
|
|
14222
14226
|
background: string;
|
|
14223
14227
|
frontText: string;
|
|
14224
14228
|
effect: string;
|
|
@@ -14600,7 +14604,7 @@ interface ITaskAIAvatarCoverInstagram extends IBaseModel, ITrackingModel {
|
|
|
14600
14604
|
sheetUrl: string;
|
|
14601
14605
|
sheetName: string;
|
|
14602
14606
|
rowID: string;
|
|
14603
|
-
toolAuto:
|
|
14607
|
+
toolAuto: "Browser Automation";
|
|
14604
14608
|
taskToolKeyAiGen: string;
|
|
14605
14609
|
pc: string | IPCBrowser;
|
|
14606
14610
|
accountSocial: string | IInstagramAccountRaw;
|
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
package/read-file-path.bat
CHANGED
|
@@ -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
|