automation-lib 6.6.473 → 6.6.475
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 +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- 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
|
@@ -5527,14 +5527,18 @@ interface ILarkTeam extends IBaseModel, ITrackingModel {
|
|
|
5527
5527
|
* - FE: truyền vào API `find-filter-options?fields=DepartmentCreator,TeamCreator`
|
|
5528
5528
|
* - BE: switch/case để xử lý từng field (có thể query từ bảng khác)
|
|
5529
5529
|
*
|
|
5530
|
-
* Lưu ý: Lark không có userAssign nên không có nhóm Assign.
|
|
5530
|
+
* Lưu ý: Lark không có userAssign nên không có nhóm Assign user.
|
|
5531
|
+
* DepartmentAssigned/TeamAssigned: scoped — chỉ trả về các department/team
|
|
5532
|
+
* thật sự được gán cho 1 lark nào đó (không trả full danh sách).
|
|
5531
5533
|
*/
|
|
5532
5534
|
declare enum EFilterOptionLark {
|
|
5533
5535
|
DepartmentCreator = "DepartmentCreator",
|
|
5534
5536
|
TeamCreator = "TeamCreator",
|
|
5535
5537
|
LeaderCreator = "LeaderCreator",
|
|
5536
5538
|
CreatedBy = "CreatedBy",
|
|
5537
|
-
UpdatedBy = "UpdatedBy"
|
|
5539
|
+
UpdatedBy = "UpdatedBy",
|
|
5540
|
+
DepartmentAssigned = "DepartmentAssigned",
|
|
5541
|
+
TeamAssigned = "TeamAssigned"
|
|
5538
5542
|
}
|
|
5539
5543
|
|
|
5540
5544
|
interface ImportManagerWorkDto {
|
|
@@ -8082,6 +8086,12 @@ interface FindOverViewInstagramAccountRawDto {
|
|
|
8082
8086
|
[EStatusAccountSocialSync.New]: number;
|
|
8083
8087
|
total: number;
|
|
8084
8088
|
};
|
|
8089
|
+
statusDeviceKey: {
|
|
8090
|
+
[EStatusDeviceKey.Active]: number;
|
|
8091
|
+
[EStatusDeviceKey.Error]: number;
|
|
8092
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
8093
|
+
total: number;
|
|
8094
|
+
};
|
|
8085
8095
|
statusReplaceDeviceNew: {
|
|
8086
8096
|
[EStatusDeviceReplace.Done]: number;
|
|
8087
8097
|
[EStatusDeviceReplace.Error]: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -5527,14 +5527,18 @@ interface ILarkTeam extends IBaseModel, ITrackingModel {
|
|
|
5527
5527
|
* - FE: truyền vào API `find-filter-options?fields=DepartmentCreator,TeamCreator`
|
|
5528
5528
|
* - BE: switch/case để xử lý từng field (có thể query từ bảng khác)
|
|
5529
5529
|
*
|
|
5530
|
-
* Lưu ý: Lark không có userAssign nên không có nhóm Assign.
|
|
5530
|
+
* Lưu ý: Lark không có userAssign nên không có nhóm Assign user.
|
|
5531
|
+
* DepartmentAssigned/TeamAssigned: scoped — chỉ trả về các department/team
|
|
5532
|
+
* thật sự được gán cho 1 lark nào đó (không trả full danh sách).
|
|
5531
5533
|
*/
|
|
5532
5534
|
declare enum EFilterOptionLark {
|
|
5533
5535
|
DepartmentCreator = "DepartmentCreator",
|
|
5534
5536
|
TeamCreator = "TeamCreator",
|
|
5535
5537
|
LeaderCreator = "LeaderCreator",
|
|
5536
5538
|
CreatedBy = "CreatedBy",
|
|
5537
|
-
UpdatedBy = "UpdatedBy"
|
|
5539
|
+
UpdatedBy = "UpdatedBy",
|
|
5540
|
+
DepartmentAssigned = "DepartmentAssigned",
|
|
5541
|
+
TeamAssigned = "TeamAssigned"
|
|
5538
5542
|
}
|
|
5539
5543
|
|
|
5540
5544
|
interface ImportManagerWorkDto {
|
|
@@ -8082,6 +8086,12 @@ interface FindOverViewInstagramAccountRawDto {
|
|
|
8082
8086
|
[EStatusAccountSocialSync.New]: number;
|
|
8083
8087
|
total: number;
|
|
8084
8088
|
};
|
|
8089
|
+
statusDeviceKey: {
|
|
8090
|
+
[EStatusDeviceKey.Active]: number;
|
|
8091
|
+
[EStatusDeviceKey.Error]: number;
|
|
8092
|
+
[EStatusDeviceKey.UnKnown]: number;
|
|
8093
|
+
total: number;
|
|
8094
|
+
};
|
|
8085
8095
|
statusReplaceDeviceNew: {
|
|
8086
8096
|
[EStatusDeviceReplace.Done]: number;
|
|
8087
8097
|
[EStatusDeviceReplace.Error]: number;
|
package/dist/index.js
CHANGED
|
@@ -4097,6 +4097,8 @@ var EFilterOptionLark = /* @__PURE__ */ ((EFilterOptionLark2) => {
|
|
|
4097
4097
|
EFilterOptionLark2["LeaderCreator"] = "LeaderCreator";
|
|
4098
4098
|
EFilterOptionLark2["CreatedBy"] = "CreatedBy";
|
|
4099
4099
|
EFilterOptionLark2["UpdatedBy"] = "UpdatedBy";
|
|
4100
|
+
EFilterOptionLark2["DepartmentAssigned"] = "DepartmentAssigned";
|
|
4101
|
+
EFilterOptionLark2["TeamAssigned"] = "TeamAssigned";
|
|
4100
4102
|
return EFilterOptionLark2;
|
|
4101
4103
|
})(EFilterOptionLark || {});
|
|
4102
4104
|
|
package/dist/index.mjs
CHANGED
|
@@ -3790,6 +3790,8 @@ var EFilterOptionLark = /* @__PURE__ */ ((EFilterOptionLark2) => {
|
|
|
3790
3790
|
EFilterOptionLark2["LeaderCreator"] = "LeaderCreator";
|
|
3791
3791
|
EFilterOptionLark2["CreatedBy"] = "CreatedBy";
|
|
3792
3792
|
EFilterOptionLark2["UpdatedBy"] = "UpdatedBy";
|
|
3793
|
+
EFilterOptionLark2["DepartmentAssigned"] = "DepartmentAssigned";
|
|
3794
|
+
EFilterOptionLark2["TeamAssigned"] = "TeamAssigned";
|
|
3793
3795
|
return EFilterOptionLark2;
|
|
3794
3796
|
})(EFilterOptionLark || {});
|
|
3795
3797
|
|