automation-lib 5.4.387 → 5.4.391

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/dist/index.d.mts CHANGED
@@ -1003,9 +1003,9 @@ declare enum EStatusImportAccountSocial {
1003
1003
  }
1004
1004
 
1005
1005
  declare enum EStatusAccountSocialFolderName {
1006
- Done = "Done",
1007
- Pending = "Pending",
1008
- Failed = "Failed"
1006
+ New = "New",
1007
+ Available = "Available",
1008
+ Error = "Error"
1009
1009
  }
1010
1010
 
1011
1011
  declare enum EStatusAccountSocialLogin {
@@ -12491,9 +12491,9 @@ interface FindInstagramAccountRunDto extends IFindBaseDto {
12491
12491
  idea: string | IManagerWork;
12492
12492
  niche: string | IManagerWork;
12493
12493
  type: ETypeManagerWorkClassify;
12494
+ sheetName: string;
12494
12495
  sheetInfo: Array<{
12495
12496
  sheetUrl: string;
12496
- sheetName: string;
12497
12497
  type: ETypeImportExport;
12498
12498
  timeAction: Date;
12499
12499
  status: string;
@@ -12508,6 +12508,21 @@ interface FindInstagramAccountRunDto extends IFindBaseDto {
12508
12508
  statusRun: EStatusAccountSocialRun;
12509
12509
  statusConnectDevice: EStatusDeviceConnectPC;
12510
12510
  noteConnectDevice: string;
12511
+ syncInfo: {
12512
+ statusSync: EStatusAccountSocialSync;
12513
+ timeSync: Date;
12514
+ };
12515
+ performanceHub: {
12516
+ score: number;
12517
+ status: string;
12518
+ lastUpdate: Date;
12519
+ };
12520
+ listSettingAuto: Array<{
12521
+ hasSetting: Boolean;
12522
+ typeSetting: string;
12523
+ timeSetting: Date;
12524
+ statusSetting: EStartStop;
12525
+ }>;
12511
12526
  pcInfo: {
12512
12527
  id: string;
12513
12528
  name: string;
@@ -12724,10 +12739,10 @@ interface FindOverViewInstagramAccountRunDto {
12724
12739
  [EStatusAccountVPN.Error]: number;
12725
12740
  total: number;
12726
12741
  };
12727
- createFolderName: {
12728
- createdNoteDone: number;
12729
- createdButPublic: number;
12730
- errorCreateNote: number;
12742
+ folder: {
12743
+ [EStatusAccountSocialFolderName.New]: number;
12744
+ [EStatusAccountSocialFolderName.Available]: number;
12745
+ [EStatusAccountSocialFolderName.Error]: number;
12731
12746
  total: number;
12732
12747
  };
12733
12748
  autoSync: {
package/dist/index.d.ts CHANGED
@@ -1003,9 +1003,9 @@ declare enum EStatusImportAccountSocial {
1003
1003
  }
1004
1004
 
1005
1005
  declare enum EStatusAccountSocialFolderName {
1006
- Done = "Done",
1007
- Pending = "Pending",
1008
- Failed = "Failed"
1006
+ New = "New",
1007
+ Available = "Available",
1008
+ Error = "Error"
1009
1009
  }
1010
1010
 
1011
1011
  declare enum EStatusAccountSocialLogin {
@@ -12491,9 +12491,9 @@ interface FindInstagramAccountRunDto extends IFindBaseDto {
12491
12491
  idea: string | IManagerWork;
12492
12492
  niche: string | IManagerWork;
12493
12493
  type: ETypeManagerWorkClassify;
12494
+ sheetName: string;
12494
12495
  sheetInfo: Array<{
12495
12496
  sheetUrl: string;
12496
- sheetName: string;
12497
12497
  type: ETypeImportExport;
12498
12498
  timeAction: Date;
12499
12499
  status: string;
@@ -12508,6 +12508,21 @@ interface FindInstagramAccountRunDto extends IFindBaseDto {
12508
12508
  statusRun: EStatusAccountSocialRun;
12509
12509
  statusConnectDevice: EStatusDeviceConnectPC;
12510
12510
  noteConnectDevice: string;
12511
+ syncInfo: {
12512
+ statusSync: EStatusAccountSocialSync;
12513
+ timeSync: Date;
12514
+ };
12515
+ performanceHub: {
12516
+ score: number;
12517
+ status: string;
12518
+ lastUpdate: Date;
12519
+ };
12520
+ listSettingAuto: Array<{
12521
+ hasSetting: Boolean;
12522
+ typeSetting: string;
12523
+ timeSetting: Date;
12524
+ statusSetting: EStartStop;
12525
+ }>;
12511
12526
  pcInfo: {
12512
12527
  id: string;
12513
12528
  name: string;
@@ -12724,10 +12739,10 @@ interface FindOverViewInstagramAccountRunDto {
12724
12739
  [EStatusAccountVPN.Error]: number;
12725
12740
  total: number;
12726
12741
  };
12727
- createFolderName: {
12728
- createdNoteDone: number;
12729
- createdButPublic: number;
12730
- errorCreateNote: number;
12742
+ folder: {
12743
+ [EStatusAccountSocialFolderName.New]: number;
12744
+ [EStatusAccountSocialFolderName.Available]: number;
12745
+ [EStatusAccountSocialFolderName.Error]: number;
12731
12746
  total: number;
12732
12747
  };
12733
12748
  autoSync: {
package/dist/index.js CHANGED
@@ -1428,9 +1428,9 @@ var EStatusImportAccountSocial = /* @__PURE__ */ ((EStatusImportAccountSocial2)
1428
1428
 
1429
1429
  // src/enums/status/socials/EStatusAccountSocialFolderName.enum.ts
1430
1430
  var EStatusAccountSocialFolderName = /* @__PURE__ */ ((EStatusAccountSocialFolderName2) => {
1431
- EStatusAccountSocialFolderName2["Done"] = "Done";
1432
- EStatusAccountSocialFolderName2["Pending"] = "Pending";
1433
- EStatusAccountSocialFolderName2["Failed"] = "Failed";
1431
+ EStatusAccountSocialFolderName2["New"] = "New";
1432
+ EStatusAccountSocialFolderName2["Available"] = "Available";
1433
+ EStatusAccountSocialFolderName2["Error"] = "Error";
1434
1434
  return EStatusAccountSocialFolderName2;
1435
1435
  })(EStatusAccountSocialFolderName || {});
1436
1436
 
package/dist/index.mjs CHANGED
@@ -1257,9 +1257,9 @@ var EStatusImportAccountSocial = /* @__PURE__ */ ((EStatusImportAccountSocial2)
1257
1257
 
1258
1258
  // src/enums/status/socials/EStatusAccountSocialFolderName.enum.ts
1259
1259
  var EStatusAccountSocialFolderName = /* @__PURE__ */ ((EStatusAccountSocialFolderName2) => {
1260
- EStatusAccountSocialFolderName2["Done"] = "Done";
1261
- EStatusAccountSocialFolderName2["Pending"] = "Pending";
1262
- EStatusAccountSocialFolderName2["Failed"] = "Failed";
1260
+ EStatusAccountSocialFolderName2["New"] = "New";
1261
+ EStatusAccountSocialFolderName2["Available"] = "Available";
1262
+ EStatusAccountSocialFolderName2["Error"] = "Error";
1263
1263
  return EStatusAccountSocialFolderName2;
1264
1264
  })(EStatusAccountSocialFolderName || {});
1265
1265
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "5.4.387",
3
+ "version": "5.4.391",
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
- @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