automation-lib 6.6.568 → 6.6.571
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 +22 -8
- package/dist/index.d.ts +22 -8
- 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
|
@@ -8799,10 +8799,10 @@ interface FindOverViewInstagramAccountRunDto {
|
|
|
8799
8799
|
[EStatusAccountSocialSync.Error]: number;
|
|
8800
8800
|
total: number;
|
|
8801
8801
|
};
|
|
8802
|
-
|
|
8803
|
-
[
|
|
8804
|
-
[
|
|
8805
|
-
[
|
|
8802
|
+
statusDeviceKey: {
|
|
8803
|
+
[EStatusDeviceKey.Active]: number;
|
|
8804
|
+
[EStatusDeviceKey.Error]: number;
|
|
8805
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
8806
8806
|
total: number;
|
|
8807
8807
|
};
|
|
8808
8808
|
statusReplaceDevice: {
|
|
@@ -8811,6 +8811,12 @@ interface FindOverViewInstagramAccountRunDto {
|
|
|
8811
8811
|
[EStatusDeviceReplace.NA]: number;
|
|
8812
8812
|
total: number;
|
|
8813
8813
|
};
|
|
8814
|
+
connectDeviceOnPC: {
|
|
8815
|
+
[EStatusDeviceConnectPC.Connected]: number;
|
|
8816
|
+
[EStatusDeviceConnectPC.Disconnected]: number;
|
|
8817
|
+
[EStatusDeviceConnectPC.Unauthenticated]: number;
|
|
8818
|
+
total: number;
|
|
8819
|
+
};
|
|
8814
8820
|
}
|
|
8815
8821
|
|
|
8816
8822
|
interface IInstagramAccountRaw extends IBaseModel, IAssignUser, ITrackingModel, IAccountSocialBase {
|
|
@@ -13230,10 +13236,10 @@ interface FindOverViewThreadsAccountRunDto {
|
|
|
13230
13236
|
[EStatusAccountSocialSync.Error]: number;
|
|
13231
13237
|
total: number;
|
|
13232
13238
|
};
|
|
13233
|
-
|
|
13234
|
-
[
|
|
13235
|
-
[
|
|
13236
|
-
[
|
|
13239
|
+
statusDeviceKey: {
|
|
13240
|
+
[EStatusDeviceKey.Active]: number;
|
|
13241
|
+
[EStatusDeviceKey.Error]: number;
|
|
13242
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
13237
13243
|
total: number;
|
|
13238
13244
|
};
|
|
13239
13245
|
statusReplaceDevice: {
|
|
@@ -13242,6 +13248,12 @@ interface FindOverViewThreadsAccountRunDto {
|
|
|
13242
13248
|
[EStatusDeviceReplace.NA]: number;
|
|
13243
13249
|
total: number;
|
|
13244
13250
|
};
|
|
13251
|
+
connectDeviceOnPC: {
|
|
13252
|
+
[EStatusDeviceConnectPC.Connected]: number;
|
|
13253
|
+
[EStatusDeviceConnectPC.Disconnected]: number;
|
|
13254
|
+
[EStatusDeviceConnectPC.Unauthenticated]: number;
|
|
13255
|
+
total: number;
|
|
13256
|
+
};
|
|
13245
13257
|
}
|
|
13246
13258
|
|
|
13247
13259
|
interface IThreadsAccountRaw extends IBaseModel, IAssignUser, ITrackingModel, IAccountSocialBase {
|
|
@@ -16249,6 +16261,8 @@ interface FindPCPhoneDetail {
|
|
|
16249
16261
|
timeStatusChange: Date;
|
|
16250
16262
|
departmentAssignName: string;
|
|
16251
16263
|
departmentAssignId: string;
|
|
16264
|
+
leaderAssignName: string;
|
|
16265
|
+
leaderAssignId: string;
|
|
16252
16266
|
teamAssignName: string;
|
|
16253
16267
|
teamAssignId: string;
|
|
16254
16268
|
userAssignName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -8799,10 +8799,10 @@ interface FindOverViewInstagramAccountRunDto {
|
|
|
8799
8799
|
[EStatusAccountSocialSync.Error]: number;
|
|
8800
8800
|
total: number;
|
|
8801
8801
|
};
|
|
8802
|
-
|
|
8803
|
-
[
|
|
8804
|
-
[
|
|
8805
|
-
[
|
|
8802
|
+
statusDeviceKey: {
|
|
8803
|
+
[EStatusDeviceKey.Active]: number;
|
|
8804
|
+
[EStatusDeviceKey.Error]: number;
|
|
8805
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
8806
8806
|
total: number;
|
|
8807
8807
|
};
|
|
8808
8808
|
statusReplaceDevice: {
|
|
@@ -8811,6 +8811,12 @@ interface FindOverViewInstagramAccountRunDto {
|
|
|
8811
8811
|
[EStatusDeviceReplace.NA]: number;
|
|
8812
8812
|
total: number;
|
|
8813
8813
|
};
|
|
8814
|
+
connectDeviceOnPC: {
|
|
8815
|
+
[EStatusDeviceConnectPC.Connected]: number;
|
|
8816
|
+
[EStatusDeviceConnectPC.Disconnected]: number;
|
|
8817
|
+
[EStatusDeviceConnectPC.Unauthenticated]: number;
|
|
8818
|
+
total: number;
|
|
8819
|
+
};
|
|
8814
8820
|
}
|
|
8815
8821
|
|
|
8816
8822
|
interface IInstagramAccountRaw extends IBaseModel, IAssignUser, ITrackingModel, IAccountSocialBase {
|
|
@@ -13230,10 +13236,10 @@ interface FindOverViewThreadsAccountRunDto {
|
|
|
13230
13236
|
[EStatusAccountSocialSync.Error]: number;
|
|
13231
13237
|
total: number;
|
|
13232
13238
|
};
|
|
13233
|
-
|
|
13234
|
-
[
|
|
13235
|
-
[
|
|
13236
|
-
[
|
|
13239
|
+
statusDeviceKey: {
|
|
13240
|
+
[EStatusDeviceKey.Active]: number;
|
|
13241
|
+
[EStatusDeviceKey.Error]: number;
|
|
13242
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
13237
13243
|
total: number;
|
|
13238
13244
|
};
|
|
13239
13245
|
statusReplaceDevice: {
|
|
@@ -13242,6 +13248,12 @@ interface FindOverViewThreadsAccountRunDto {
|
|
|
13242
13248
|
[EStatusDeviceReplace.NA]: number;
|
|
13243
13249
|
total: number;
|
|
13244
13250
|
};
|
|
13251
|
+
connectDeviceOnPC: {
|
|
13252
|
+
[EStatusDeviceConnectPC.Connected]: number;
|
|
13253
|
+
[EStatusDeviceConnectPC.Disconnected]: number;
|
|
13254
|
+
[EStatusDeviceConnectPC.Unauthenticated]: number;
|
|
13255
|
+
total: number;
|
|
13256
|
+
};
|
|
13245
13257
|
}
|
|
13246
13258
|
|
|
13247
13259
|
interface IThreadsAccountRaw extends IBaseModel, IAssignUser, ITrackingModel, IAccountSocialBase {
|
|
@@ -16249,6 +16261,8 @@ interface FindPCPhoneDetail {
|
|
|
16249
16261
|
timeStatusChange: Date;
|
|
16250
16262
|
departmentAssignName: string;
|
|
16251
16263
|
departmentAssignId: string;
|
|
16264
|
+
leaderAssignName: string;
|
|
16265
|
+
leaderAssignId: string;
|
|
16252
16266
|
teamAssignName: string;
|
|
16253
16267
|
teamAssignId: string;
|
|
16254
16268
|
userAssignName: string;
|