automation-lib 6.6.485 → 6.6.486
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 +62 -50
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/commit.bat
CHANGED
|
@@ -1,50 +1,62 @@
|
|
|
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
|
-
set
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal enabledelayedexpansion
|
|
3
|
+
chcp 65001 >nul
|
|
4
|
+
|
|
5
|
+
echo ===========================================
|
|
6
|
+
echo GIT AUTO PUSH - LIBRARY
|
|
7
|
+
echo ===========================================
|
|
8
|
+
|
|
9
|
+
set /p commit_message="Enter commit message: "
|
|
10
|
+
if "%commit_message%"=="" (
|
|
11
|
+
echo [LOI] Commit message khong duoc de trong!
|
|
12
|
+
pause
|
|
13
|
+
exit /b
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
:: GIT ADD & COMMIT
|
|
17
|
+
git add .
|
|
18
|
+
git commit -m "%commit_message%"
|
|
19
|
+
timeout /t 2 /nobreak >nul
|
|
20
|
+
|
|
21
|
+
:: ===========================================
|
|
22
|
+
:: PULL & PUSH HS (nhann6304 only)
|
|
23
|
+
:: ===========================================
|
|
24
|
+
echo.
|
|
25
|
+
echo --- Switch to nhann6304 for [hs] remote ---
|
|
26
|
+
gh auth switch --user nhann6304
|
|
27
|
+
|
|
28
|
+
echo --- Pull from hs main ---
|
|
29
|
+
git pull hs main
|
|
30
|
+
|
|
31
|
+
:: Version bump
|
|
32
|
+
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
33
|
+
set currentVersion=%currentVersion:"=%
|
|
34
|
+
for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
|
|
35
|
+
set major=%%a
|
|
36
|
+
set minor=%%b
|
|
37
|
+
set patch=%%c
|
|
38
|
+
)
|
|
39
|
+
set /a patch+=1
|
|
40
|
+
set newVersion=%major%.%minor%.%patch%
|
|
41
|
+
|
|
42
|
+
powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
|
|
43
|
+
echo New version: %newVersion%
|
|
44
|
+
|
|
45
|
+
:: Publish
|
|
46
|
+
call npm run pub
|
|
47
|
+
|
|
48
|
+
:: Commit version bump & push
|
|
49
|
+
git add .
|
|
50
|
+
timeout /t 1 /nobreak >nul
|
|
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
|
package/dist/index.d.mts
CHANGED
|
@@ -4707,7 +4707,9 @@ declare enum EFilterOptionAccountAIChannel {
|
|
|
4707
4707
|
TeamCreator = "TeamCreator",
|
|
4708
4708
|
LeaderCreator = "LeaderCreator",
|
|
4709
4709
|
CreatedBy = "CreatedBy",
|
|
4710
|
-
UpdatedBy = "UpdatedBy"
|
|
4710
|
+
UpdatedBy = "UpdatedBy",
|
|
4711
|
+
Idea = "Idea",
|
|
4712
|
+
Niche = "Niche"
|
|
4711
4713
|
}
|
|
4712
4714
|
|
|
4713
4715
|
interface IAccountAIContentChannelNiche extends IBaseModel {
|
|
@@ -4751,9 +4753,8 @@ interface FindMultiAccountAIContentDto extends IFindBaseDto, IAccountAIContent {
|
|
|
4751
4753
|
interface FilterAccountAIContentDto extends IFilterBaseDto {
|
|
4752
4754
|
type: EAccountAIModelTypeContent[];
|
|
4753
4755
|
status: EAccountAIModelStatus[];
|
|
4754
|
-
accountAI: string[];
|
|
4755
|
-
channel: string[];
|
|
4756
4756
|
statusBrowser: EAccountAIModelStatus[];
|
|
4757
|
+
accountAI: string[];
|
|
4757
4758
|
}
|
|
4758
4759
|
|
|
4759
4760
|
interface FindOverviewAccountAIChannelDto {
|
package/dist/index.d.ts
CHANGED
|
@@ -4707,7 +4707,9 @@ declare enum EFilterOptionAccountAIChannel {
|
|
|
4707
4707
|
TeamCreator = "TeamCreator",
|
|
4708
4708
|
LeaderCreator = "LeaderCreator",
|
|
4709
4709
|
CreatedBy = "CreatedBy",
|
|
4710
|
-
UpdatedBy = "UpdatedBy"
|
|
4710
|
+
UpdatedBy = "UpdatedBy",
|
|
4711
|
+
Idea = "Idea",
|
|
4712
|
+
Niche = "Niche"
|
|
4711
4713
|
}
|
|
4712
4714
|
|
|
4713
4715
|
interface IAccountAIContentChannelNiche extends IBaseModel {
|
|
@@ -4751,9 +4753,8 @@ interface FindMultiAccountAIContentDto extends IFindBaseDto, IAccountAIContent {
|
|
|
4751
4753
|
interface FilterAccountAIContentDto extends IFilterBaseDto {
|
|
4752
4754
|
type: EAccountAIModelTypeContent[];
|
|
4753
4755
|
status: EAccountAIModelStatus[];
|
|
4754
|
-
accountAI: string[];
|
|
4755
|
-
channel: string[];
|
|
4756
4756
|
statusBrowser: EAccountAIModelStatus[];
|
|
4757
|
+
accountAI: string[];
|
|
4757
4758
|
}
|
|
4758
4759
|
|
|
4759
4760
|
interface FindOverviewAccountAIChannelDto {
|
package/dist/index.js
CHANGED
|
@@ -3312,6 +3312,8 @@ var EFilterOptionAccountAIChannel = /* @__PURE__ */ ((EFilterOptionAccountAIChan
|
|
|
3312
3312
|
EFilterOptionAccountAIChannel2["LeaderCreator"] = "LeaderCreator";
|
|
3313
3313
|
EFilterOptionAccountAIChannel2["CreatedBy"] = "CreatedBy";
|
|
3314
3314
|
EFilterOptionAccountAIChannel2["UpdatedBy"] = "UpdatedBy";
|
|
3315
|
+
EFilterOptionAccountAIChannel2["Idea"] = "Idea";
|
|
3316
|
+
EFilterOptionAccountAIChannel2["Niche"] = "Niche";
|
|
3315
3317
|
return EFilterOptionAccountAIChannel2;
|
|
3316
3318
|
})(EFilterOptionAccountAIChannel || {});
|
|
3317
3319
|
|
package/dist/index.mjs
CHANGED
|
@@ -3004,6 +3004,8 @@ var EFilterOptionAccountAIChannel = /* @__PURE__ */ ((EFilterOptionAccountAIChan
|
|
|
3004
3004
|
EFilterOptionAccountAIChannel2["LeaderCreator"] = "LeaderCreator";
|
|
3005
3005
|
EFilterOptionAccountAIChannel2["CreatedBy"] = "CreatedBy";
|
|
3006
3006
|
EFilterOptionAccountAIChannel2["UpdatedBy"] = "UpdatedBy";
|
|
3007
|
+
EFilterOptionAccountAIChannel2["Idea"] = "Idea";
|
|
3008
|
+
EFilterOptionAccountAIChannel2["Niche"] = "Niche";
|
|
3007
3009
|
return EFilterOptionAccountAIChannel2;
|
|
3008
3010
|
})(EFilterOptionAccountAIChannel || {});
|
|
3009
3011
|
|