automation-lib 6.6.486 → 6.6.487
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 +50 -62
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
package/commit.bat
CHANGED
|
@@ -1,62 +1,50 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
echo
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
::
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
::
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
@@ -7848,7 +7848,7 @@ interface FindInstagramAccountRawDto extends IFindBaseDto {
|
|
|
7848
7848
|
timeChange: Date;
|
|
7849
7849
|
};
|
|
7850
7850
|
accountGroup: string | IAccountSocialGroup;
|
|
7851
|
-
typeSocial: ETypeSocial;
|
|
7851
|
+
typeSocial: ETypeSocial.Instagram;
|
|
7852
7852
|
accountID: string;
|
|
7853
7853
|
historyFullname: {
|
|
7854
7854
|
old: string;
|
|
@@ -12421,10 +12421,13 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
|
|
|
12421
12421
|
};
|
|
12422
12422
|
deviceInfo: {
|
|
12423
12423
|
id: string;
|
|
12424
|
-
key: string;
|
|
12425
12424
|
name: string;
|
|
12426
12425
|
model: string;
|
|
12427
12426
|
os: ETypeDeviceOS;
|
|
12427
|
+
oldKey: string;
|
|
12428
|
+
newKey: string;
|
|
12429
|
+
typeOld: ETypeDevice;
|
|
12430
|
+
typeNew: ETypeDevice;
|
|
12428
12431
|
typeAppClone: string;
|
|
12429
12432
|
nameAppClone: string;
|
|
12430
12433
|
nameAppCloneSocial: string;
|
|
@@ -12464,7 +12467,7 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
|
|
|
12464
12467
|
statusChange: string;
|
|
12465
12468
|
timeChange: Date;
|
|
12466
12469
|
};
|
|
12467
|
-
typeSocial: ETypeSocial;
|
|
12470
|
+
typeSocial: ETypeSocial.Threads;
|
|
12468
12471
|
fullNameAccountSocial: {
|
|
12469
12472
|
old: string;
|
|
12470
12473
|
new: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7848,7 +7848,7 @@ interface FindInstagramAccountRawDto extends IFindBaseDto {
|
|
|
7848
7848
|
timeChange: Date;
|
|
7849
7849
|
};
|
|
7850
7850
|
accountGroup: string | IAccountSocialGroup;
|
|
7851
|
-
typeSocial: ETypeSocial;
|
|
7851
|
+
typeSocial: ETypeSocial.Instagram;
|
|
7852
7852
|
accountID: string;
|
|
7853
7853
|
historyFullname: {
|
|
7854
7854
|
old: string;
|
|
@@ -12421,10 +12421,13 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
|
|
|
12421
12421
|
};
|
|
12422
12422
|
deviceInfo: {
|
|
12423
12423
|
id: string;
|
|
12424
|
-
key: string;
|
|
12425
12424
|
name: string;
|
|
12426
12425
|
model: string;
|
|
12427
12426
|
os: ETypeDeviceOS;
|
|
12427
|
+
oldKey: string;
|
|
12428
|
+
newKey: string;
|
|
12429
|
+
typeOld: ETypeDevice;
|
|
12430
|
+
typeNew: ETypeDevice;
|
|
12428
12431
|
typeAppClone: string;
|
|
12429
12432
|
nameAppClone: string;
|
|
12430
12433
|
nameAppCloneSocial: string;
|
|
@@ -12464,7 +12467,7 @@ interface FindThreadsAccountRawDto extends IFindBaseDto {
|
|
|
12464
12467
|
statusChange: string;
|
|
12465
12468
|
timeChange: Date;
|
|
12466
12469
|
};
|
|
12467
|
-
typeSocial: ETypeSocial;
|
|
12470
|
+
typeSocial: ETypeSocial.Threads;
|
|
12468
12471
|
fullNameAccountSocial: {
|
|
12469
12472
|
old: string;
|
|
12470
12473
|
new: string;
|