automation-lib 5.10.9 → 5.10.22
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 +2 -0
- package/dist/index.d.mts +12 -13
- package/dist/index.d.ts +12 -13
- 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
|
@@ -11560,17 +11560,11 @@ interface FilterManagerSheetDto extends IFilterBaseDto {
|
|
|
11560
11560
|
interface CreateSheetToolDto {
|
|
11561
11561
|
type: ESheetToolInstagram;
|
|
11562
11562
|
typeSocial: ETypeSocial;
|
|
11563
|
-
url: string;
|
|
11564
|
-
name: string;
|
|
11565
|
-
deviceId: string;
|
|
11566
|
-
description: string;
|
|
11567
|
-
timeCrawl: ESheetToolTimeCrawl;
|
|
11568
|
-
totalRows: number;
|
|
11569
|
-
totalCols: number;
|
|
11570
|
-
}
|
|
11571
|
-
interface PayloadUrlSheetToolDto extends Partial<ISheetsTool> {
|
|
11572
11563
|
sheetUrl: string;
|
|
11573
11564
|
sheetName: string;
|
|
11565
|
+
deviceId: string;
|
|
11566
|
+
timeCrawl: ESheetToolTimeCrawl;
|
|
11567
|
+
description: string;
|
|
11574
11568
|
}
|
|
11575
11569
|
interface LoadInfoUrlSheetToolDto {
|
|
11576
11570
|
idea: string;
|
|
@@ -11579,8 +11573,10 @@ interface LoadInfoUrlSheetToolDto {
|
|
|
11579
11573
|
accountGroup: string[];
|
|
11580
11574
|
listAccountIds: string[];
|
|
11581
11575
|
listAccountUsername: string[];
|
|
11582
|
-
|
|
11583
|
-
|
|
11576
|
+
}
|
|
11577
|
+
interface PayloadUrlSheetToolDto extends Partial<ISheetsTool> {
|
|
11578
|
+
sheetUrl: string;
|
|
11579
|
+
sheetName: string;
|
|
11584
11580
|
}
|
|
11585
11581
|
interface ActionLoadInfoUrlSheetToolDto {
|
|
11586
11582
|
typeSocial: ETypeSocial;
|
|
@@ -11660,7 +11656,6 @@ interface FindSheetsToolDto extends IFindBaseDto {
|
|
|
11660
11656
|
name: string;
|
|
11661
11657
|
};
|
|
11662
11658
|
type: ETypeManagerWorkClassify;
|
|
11663
|
-
deviceName: string;
|
|
11664
11659
|
url: string;
|
|
11665
11660
|
name: string;
|
|
11666
11661
|
noteFixImport: string;
|
|
@@ -11780,11 +11775,15 @@ interface FindPCBrowserDto extends IFindBaseDto {
|
|
|
11780
11775
|
alias: string;
|
|
11781
11776
|
machineGUID: string;
|
|
11782
11777
|
ip: string;
|
|
11783
|
-
maxDevice: number;
|
|
11784
11778
|
os: string;
|
|
11785
11779
|
status: EStatusPC;
|
|
11786
11780
|
statusControl: EStatusPCControl;
|
|
11787
11781
|
timeStatusChange: Date;
|
|
11782
|
+
sheetInfo: {
|
|
11783
|
+
totalSheetStart: number;
|
|
11784
|
+
totalSheetStop: number;
|
|
11785
|
+
totalSheet: number;
|
|
11786
|
+
};
|
|
11788
11787
|
departmentAssign: string;
|
|
11789
11788
|
teamAssign: string;
|
|
11790
11789
|
userAssign: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -11560,17 +11560,11 @@ interface FilterManagerSheetDto extends IFilterBaseDto {
|
|
|
11560
11560
|
interface CreateSheetToolDto {
|
|
11561
11561
|
type: ESheetToolInstagram;
|
|
11562
11562
|
typeSocial: ETypeSocial;
|
|
11563
|
-
url: string;
|
|
11564
|
-
name: string;
|
|
11565
|
-
deviceId: string;
|
|
11566
|
-
description: string;
|
|
11567
|
-
timeCrawl: ESheetToolTimeCrawl;
|
|
11568
|
-
totalRows: number;
|
|
11569
|
-
totalCols: number;
|
|
11570
|
-
}
|
|
11571
|
-
interface PayloadUrlSheetToolDto extends Partial<ISheetsTool> {
|
|
11572
11563
|
sheetUrl: string;
|
|
11573
11564
|
sheetName: string;
|
|
11565
|
+
deviceId: string;
|
|
11566
|
+
timeCrawl: ESheetToolTimeCrawl;
|
|
11567
|
+
description: string;
|
|
11574
11568
|
}
|
|
11575
11569
|
interface LoadInfoUrlSheetToolDto {
|
|
11576
11570
|
idea: string;
|
|
@@ -11579,8 +11573,10 @@ interface LoadInfoUrlSheetToolDto {
|
|
|
11579
11573
|
accountGroup: string[];
|
|
11580
11574
|
listAccountIds: string[];
|
|
11581
11575
|
listAccountUsername: string[];
|
|
11582
|
-
|
|
11583
|
-
|
|
11576
|
+
}
|
|
11577
|
+
interface PayloadUrlSheetToolDto extends Partial<ISheetsTool> {
|
|
11578
|
+
sheetUrl: string;
|
|
11579
|
+
sheetName: string;
|
|
11584
11580
|
}
|
|
11585
11581
|
interface ActionLoadInfoUrlSheetToolDto {
|
|
11586
11582
|
typeSocial: ETypeSocial;
|
|
@@ -11660,7 +11656,6 @@ interface FindSheetsToolDto extends IFindBaseDto {
|
|
|
11660
11656
|
name: string;
|
|
11661
11657
|
};
|
|
11662
11658
|
type: ETypeManagerWorkClassify;
|
|
11663
|
-
deviceName: string;
|
|
11664
11659
|
url: string;
|
|
11665
11660
|
name: string;
|
|
11666
11661
|
noteFixImport: string;
|
|
@@ -11780,11 +11775,15 @@ interface FindPCBrowserDto extends IFindBaseDto {
|
|
|
11780
11775
|
alias: string;
|
|
11781
11776
|
machineGUID: string;
|
|
11782
11777
|
ip: string;
|
|
11783
|
-
maxDevice: number;
|
|
11784
11778
|
os: string;
|
|
11785
11779
|
status: EStatusPC;
|
|
11786
11780
|
statusControl: EStatusPCControl;
|
|
11787
11781
|
timeStatusChange: Date;
|
|
11782
|
+
sheetInfo: {
|
|
11783
|
+
totalSheetStart: number;
|
|
11784
|
+
totalSheetStop: number;
|
|
11785
|
+
totalSheet: number;
|
|
11786
|
+
};
|
|
11788
11787
|
departmentAssign: string;
|
|
11789
11788
|
teamAssign: string;
|
|
11790
11789
|
userAssign: string;
|
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
|
-
@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
|
+
@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
|