automation-lib 6.6.563 → 6.6.564

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 CHANGED
@@ -1,50 +1,62 @@
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
-
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
@@ -296,6 +296,8 @@ declare const CONST_ROLES: {
296
296
  ExternalTools: {
297
297
  Canva: string;
298
298
  Lark: string;
299
+ TokenJsonManager: string;
300
+ SystemActions: string;
299
301
  };
300
302
  NotificationSystem: string;
301
303
  Permissions: {
@@ -375,6 +377,9 @@ declare const CONST_ROLES: {
375
377
  InstagramTaskContent: string;
376
378
  ThreadsTaskContent: string;
377
379
  };
380
+ DraftContentSocial: {
381
+ InstagramDraftContent: string;
382
+ };
378
383
  ToolsManagement: {
379
384
  Instagram: {
380
385
  SheetTool: string;
@@ -390,6 +395,7 @@ declare const CONST_ROLES: {
390
395
  AIContentAutoManager: {
391
396
  SheetManagerAuto: string;
392
397
  AccountTaskSheetAI: {
398
+ AccountAIHistoryRun: string;
393
399
  AccountAIChannel: string;
394
400
  AccountAIContent: string;
395
401
  TaskAIContent: string;
@@ -1948,6 +1954,25 @@ interface IUserRole extends IBaseModel {
1948
1954
  role: string | IRole;
1949
1955
  }
1950
1956
 
1957
+ interface ITeam extends IBaseModel, ITrackingModel {
1958
+ name: string;
1959
+ department: string | IDepartment;
1960
+ listTypeSocials: ETypeSocial[];
1961
+ description: string;
1962
+ leader: string | IUser;
1963
+ status: EStatusTeam;
1964
+ }
1965
+
1966
+ interface ILark extends IBaseModel, ITrackingModel {
1967
+ name: string;
1968
+ botHook: string;
1969
+ typeObject: ELarkObject;
1970
+ departmentAssigned: string | IDepartment;
1971
+ typeError: ELarkNotiBase | ELarkNotiRunAppDevice | ELarkNotiAccountTool | ELarkNotiDuplicateAll | ELarkNotiManagerSheet | ELarkNotiToolDevice | ELarkNotiCreateNew | ELarkNotiSocialImport | ELarkNotiInstagramDetail;
1972
+ status: EStatusLark;
1973
+ typeNotification: ELarkTypeNotification;
1974
+ }
1975
+
1951
1976
  interface CreateUserDto extends Partial<IUser> {
1952
1977
  user_fullName: string;
1953
1978
  user_email: string;
@@ -1983,6 +2008,11 @@ interface FindUserDto extends IUser, IFindBaseDto {
1983
2008
  rolesOfUser: string[];
1984
2009
  rolesTeamOfUser: string[];
1985
2010
  listLarks: string[];
2011
+ rolesDetailOfUser?: IRole[];
2012
+ rolesTeamDetailOfUser?: IRole[];
2013
+ departmentDetailOfUser?: IDepartment[];
2014
+ teamsDetailOfUser?: ITeam[];
2015
+ listLarksDetail?: ILark[];
1986
2016
  }
1987
2017
  interface FindRoleOfMe {
1988
2018
  isRootAdmin: boolean;
@@ -2184,15 +2214,6 @@ declare enum EFilterOptionRole {
2184
2214
  UpdatedBy = "UpdatedBy"
2185
2215
  }
2186
2216
 
2187
- interface ITeam extends IBaseModel, ITrackingModel {
2188
- name: string;
2189
- department: string | IDepartment;
2190
- listTypeSocials: ETypeSocial[];
2191
- description: string;
2192
- leader: string | IUser;
2193
- status: EStatusTeam;
2194
- }
2195
-
2196
2217
  interface ITeamRole extends IBaseModel, ITrackingModel {
2197
2218
  team: string | ITeam;
2198
2219
  role: string | IRole;
@@ -5628,16 +5649,6 @@ interface FilterLarkDto extends IFilterBaseDto {
5628
5649
  listTeamsAssigned: string[];
5629
5650
  }
5630
5651
 
5631
- interface ILark extends IBaseModel, ITrackingModel {
5632
- name: string;
5633
- botHook: string;
5634
- typeObject: ELarkObject;
5635
- departmentAssigned: string | IDepartment;
5636
- typeError: ELarkNotiBase | ELarkNotiRunAppDevice | ELarkNotiAccountTool | ELarkNotiDuplicateAll | ELarkNotiManagerSheet | ELarkNotiToolDevice | ELarkNotiCreateNew | ELarkNotiSocialImport | ELarkNotiInstagramDetail;
5637
- status: EStatusLark;
5638
- typeNotification: ELarkTypeNotification;
5639
- }
5640
-
5641
5652
  interface ILarkTeam extends IBaseModel, ITrackingModel {
5642
5653
  lark: ILark | string;
5643
5654
  team: ITeam | string;
@@ -12139,6 +12150,7 @@ interface FindGrowthInstagramDashboardFollowerDto {
12139
12150
  data: Array<{
12140
12151
  time: string;
12141
12152
  numberFollowers: number;
12153
+ numberFollowings: number;
12142
12154
  }>;
12143
12155
  latestGrowth: number;
12144
12156
  currentDevice: number;
@@ -12152,6 +12164,7 @@ interface FindCheckerAccountInstagramDashboardFollowerDto {
12152
12164
  data: Array<{
12153
12165
  time: string;
12154
12166
  numberFollowers: number;
12167
+ numberFollowings: number;
12155
12168
  }>;
12156
12169
  deviceKey: string;
12157
12170
  phoneName: string;
@@ -12307,6 +12320,7 @@ interface FindGrowthThreadsDashboardFollowerDto {
12307
12320
  data: Array<{
12308
12321
  time: string;
12309
12322
  numberFollowers: number;
12323
+ numberFollowings: number;
12310
12324
  }>;
12311
12325
  latestGrowth: number;
12312
12326
  currentDevice: number;
@@ -12320,6 +12334,7 @@ interface FindCheckerAccountThreadsDashboardFollowerDto {
12320
12334
  data: Array<{
12321
12335
  time: string;
12322
12336
  numberFollowers: number;
12337
+ numberFollowings: number;
12323
12338
  }>;
12324
12339
  deviceKey: string;
12325
12340
  phoneName: string;
package/dist/index.d.ts CHANGED
@@ -296,6 +296,8 @@ declare const CONST_ROLES: {
296
296
  ExternalTools: {
297
297
  Canva: string;
298
298
  Lark: string;
299
+ TokenJsonManager: string;
300
+ SystemActions: string;
299
301
  };
300
302
  NotificationSystem: string;
301
303
  Permissions: {
@@ -375,6 +377,9 @@ declare const CONST_ROLES: {
375
377
  InstagramTaskContent: string;
376
378
  ThreadsTaskContent: string;
377
379
  };
380
+ DraftContentSocial: {
381
+ InstagramDraftContent: string;
382
+ };
378
383
  ToolsManagement: {
379
384
  Instagram: {
380
385
  SheetTool: string;
@@ -390,6 +395,7 @@ declare const CONST_ROLES: {
390
395
  AIContentAutoManager: {
391
396
  SheetManagerAuto: string;
392
397
  AccountTaskSheetAI: {
398
+ AccountAIHistoryRun: string;
393
399
  AccountAIChannel: string;
394
400
  AccountAIContent: string;
395
401
  TaskAIContent: string;
@@ -1948,6 +1954,25 @@ interface IUserRole extends IBaseModel {
1948
1954
  role: string | IRole;
1949
1955
  }
1950
1956
 
1957
+ interface ITeam extends IBaseModel, ITrackingModel {
1958
+ name: string;
1959
+ department: string | IDepartment;
1960
+ listTypeSocials: ETypeSocial[];
1961
+ description: string;
1962
+ leader: string | IUser;
1963
+ status: EStatusTeam;
1964
+ }
1965
+
1966
+ interface ILark extends IBaseModel, ITrackingModel {
1967
+ name: string;
1968
+ botHook: string;
1969
+ typeObject: ELarkObject;
1970
+ departmentAssigned: string | IDepartment;
1971
+ typeError: ELarkNotiBase | ELarkNotiRunAppDevice | ELarkNotiAccountTool | ELarkNotiDuplicateAll | ELarkNotiManagerSheet | ELarkNotiToolDevice | ELarkNotiCreateNew | ELarkNotiSocialImport | ELarkNotiInstagramDetail;
1972
+ status: EStatusLark;
1973
+ typeNotification: ELarkTypeNotification;
1974
+ }
1975
+
1951
1976
  interface CreateUserDto extends Partial<IUser> {
1952
1977
  user_fullName: string;
1953
1978
  user_email: string;
@@ -1983,6 +2008,11 @@ interface FindUserDto extends IUser, IFindBaseDto {
1983
2008
  rolesOfUser: string[];
1984
2009
  rolesTeamOfUser: string[];
1985
2010
  listLarks: string[];
2011
+ rolesDetailOfUser?: IRole[];
2012
+ rolesTeamDetailOfUser?: IRole[];
2013
+ departmentDetailOfUser?: IDepartment[];
2014
+ teamsDetailOfUser?: ITeam[];
2015
+ listLarksDetail?: ILark[];
1986
2016
  }
1987
2017
  interface FindRoleOfMe {
1988
2018
  isRootAdmin: boolean;
@@ -2184,15 +2214,6 @@ declare enum EFilterOptionRole {
2184
2214
  UpdatedBy = "UpdatedBy"
2185
2215
  }
2186
2216
 
2187
- interface ITeam extends IBaseModel, ITrackingModel {
2188
- name: string;
2189
- department: string | IDepartment;
2190
- listTypeSocials: ETypeSocial[];
2191
- description: string;
2192
- leader: string | IUser;
2193
- status: EStatusTeam;
2194
- }
2195
-
2196
2217
  interface ITeamRole extends IBaseModel, ITrackingModel {
2197
2218
  team: string | ITeam;
2198
2219
  role: string | IRole;
@@ -5628,16 +5649,6 @@ interface FilterLarkDto extends IFilterBaseDto {
5628
5649
  listTeamsAssigned: string[];
5629
5650
  }
5630
5651
 
5631
- interface ILark extends IBaseModel, ITrackingModel {
5632
- name: string;
5633
- botHook: string;
5634
- typeObject: ELarkObject;
5635
- departmentAssigned: string | IDepartment;
5636
- typeError: ELarkNotiBase | ELarkNotiRunAppDevice | ELarkNotiAccountTool | ELarkNotiDuplicateAll | ELarkNotiManagerSheet | ELarkNotiToolDevice | ELarkNotiCreateNew | ELarkNotiSocialImport | ELarkNotiInstagramDetail;
5637
- status: EStatusLark;
5638
- typeNotification: ELarkTypeNotification;
5639
- }
5640
-
5641
5652
  interface ILarkTeam extends IBaseModel, ITrackingModel {
5642
5653
  lark: ILark | string;
5643
5654
  team: ITeam | string;
@@ -12139,6 +12150,7 @@ interface FindGrowthInstagramDashboardFollowerDto {
12139
12150
  data: Array<{
12140
12151
  time: string;
12141
12152
  numberFollowers: number;
12153
+ numberFollowings: number;
12142
12154
  }>;
12143
12155
  latestGrowth: number;
12144
12156
  currentDevice: number;
@@ -12152,6 +12164,7 @@ interface FindCheckerAccountInstagramDashboardFollowerDto {
12152
12164
  data: Array<{
12153
12165
  time: string;
12154
12166
  numberFollowers: number;
12167
+ numberFollowings: number;
12155
12168
  }>;
12156
12169
  deviceKey: string;
12157
12170
  phoneName: string;
@@ -12307,6 +12320,7 @@ interface FindGrowthThreadsDashboardFollowerDto {
12307
12320
  data: Array<{
12308
12321
  time: string;
12309
12322
  numberFollowers: number;
12323
+ numberFollowings: number;
12310
12324
  }>;
12311
12325
  latestGrowth: number;
12312
12326
  currentDevice: number;
@@ -12320,6 +12334,7 @@ interface FindCheckerAccountThreadsDashboardFollowerDto {
12320
12334
  data: Array<{
12321
12335
  time: string;
12322
12336
  numberFollowers: number;
12337
+ numberFollowings: number;
12323
12338
  }>;
12324
12339
  deviceKey: string;
12325
12340
  phoneName: string;
package/dist/index.js CHANGED
@@ -640,7 +640,9 @@ var CONST_ROLES = {
640
640
  },
641
641
  ExternalTools: {
642
642
  Canva: "Canva",
643
- Lark: "Lark"
643
+ Lark: "Lark",
644
+ TokenJsonManager: "TokenJsonManager",
645
+ SystemActions: "SystemActions"
644
646
  },
645
647
  NotificationSystem: "NotificationSystem",
646
648
  Permissions: {
@@ -738,6 +740,9 @@ var CONST_ROLES = {
738
740
  InstagramTaskContent: "InstagramTaskContent",
739
741
  ThreadsTaskContent: "ThreadsTaskContent"
740
742
  },
743
+ DraftContentSocial: {
744
+ InstagramDraftContent: "InstagramDraftContent"
745
+ },
741
746
  ToolsManagement: {
742
747
  Instagram: {
743
748
  SheetTool: "SheetTool"
@@ -762,6 +767,7 @@ var CONST_ROLES = {
762
767
  AIContentAutoManager: {
763
768
  SheetManagerAuto: "SheetManagerAuto",
764
769
  AccountTaskSheetAI: {
770
+ AccountAIHistoryRun: "AccountAIHistoryRun",
765
771
  AccountAIChannel: "AccountAIChannel",
766
772
  AccountAIContent: "AccountAIContent",
767
773
  TaskAIContent: "TaskAIContent"
package/dist/index.mjs CHANGED
@@ -326,7 +326,9 @@ var CONST_ROLES = {
326
326
  },
327
327
  ExternalTools: {
328
328
  Canva: "Canva",
329
- Lark: "Lark"
329
+ Lark: "Lark",
330
+ TokenJsonManager: "TokenJsonManager",
331
+ SystemActions: "SystemActions"
330
332
  },
331
333
  NotificationSystem: "NotificationSystem",
332
334
  Permissions: {
@@ -424,6 +426,9 @@ var CONST_ROLES = {
424
426
  InstagramTaskContent: "InstagramTaskContent",
425
427
  ThreadsTaskContent: "ThreadsTaskContent"
426
428
  },
429
+ DraftContentSocial: {
430
+ InstagramDraftContent: "InstagramDraftContent"
431
+ },
427
432
  ToolsManagement: {
428
433
  Instagram: {
429
434
  SheetTool: "SheetTool"
@@ -448,6 +453,7 @@ var CONST_ROLES = {
448
453
  AIContentAutoManager: {
449
454
  SheetManagerAuto: "SheetManagerAuto",
450
455
  AccountTaskSheetAI: {
456
+ AccountAIHistoryRun: "AccountAIHistoryRun",
451
457
  AccountAIChannel: "AccountAIChannel",
452
458
  AccountAIContent: "AccountAIContent",
453
459
  TaskAIContent: "TaskAIContent"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "6.6.563",
3
+ "version": "6.6.564",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",