@allinsocial/automation-core 6.6.642 → 6.6.647

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/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Library-manager-Auto
2
+ Shared libraries & utilities
package/check-watch.bat CHANGED
@@ -1,4 +1,48 @@
1
1
  @echo off
2
2
 
3
- @REM Kiểm tra liên tục khi file thay đổi
4
- npm run check:watch
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
package/commit.bat CHANGED
@@ -1,50 +1,48 @@
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
+
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
package/dist/index.d.mts CHANGED
@@ -1,5 +1,3 @@
1
- import { EStartStop as EStartStop$1, IManualContentSocialThreads as IManualContentSocialThreads$1 } from 'automation-lib';
2
-
3
1
  declare const CONST_API_OTP: {
4
2
  SEND: string;
5
3
  CONFIRM: string;
@@ -10447,14 +10445,17 @@ declare enum ETaskInstagramPostStyle {
10447
10445
  ProductVideoImage = "ProductVideoImage"
10448
10446
  }
10449
10447
  declare enum ETaskInstagramPostProcessStep {
10450
- InitializeTask = "InitializeTask",
10451
- LoginAccountSocial = "LoginAccountSocial",
10452
- LoadContentPost = "LoadContentPost",
10453
- UploadMediaFiles = "UploadMediaFiles",
10454
- AddCaptionAndTags = "AddCaptionAndTags",
10455
- SchedulePostTime = "SchedulePostTime",
10456
- SubmitPost = "SubmitPost",
10457
- VerifyPostStatus = "VerifyPostStatus"
10448
+ InitializeTask = "InitializeTask",// BE Consumer INSERT task
10449
+ LoadContentPost = "LoadContentPost",// Tool confirm_received
10450
+ ConnectDevice = "ConnectDevice",// u2.connect — fail sớm nếu offline
10451
+ LoginAccountSocial = "LoginAccountSocial",// ⏳ kiểm tra login app clone
10452
+ DownloadMediaFiles = "DownloadMediaFiles",// download URL → PC tmp
10453
+ UploadMediaFiles = "UploadMediaFiles",// ⏳ ADB push PC → device
10454
+ AddCaptionAndTags = "AddCaptionAndTags",// ⏳ ADB caption/tags
10455
+ SchedulePostTime = "SchedulePostTime",// ⏳ ADB schedule
10456
+ SubmitPost = "SubmitPost",// _post_to_instagram
10457
+ VerifyPostStatus = "VerifyPostStatus",// callback Done/Failed
10458
+ GhostReset = "GhostReset"
10458
10459
  }
10459
10460
  declare enum ETaskInstagramPostLogStatus {
10460
10461
  Completed = "Completed",
@@ -14973,9 +14974,9 @@ interface ViewDetailDeviceDto {
14973
14974
  }
14974
14975
  interface FindOverviewDeviceDetailDto {
14975
14976
  statusPC: {
14976
- [EStartStop$1.Start]: number;
14977
- [EStartStop$1.Stop]: number;
14978
- "N/A": number;
14977
+ [EStartStop.Start]: number;
14978
+ [EStartStop.Stop]: number;
14979
+ 'N/A': number;
14979
14980
  total: number;
14980
14981
  };
14981
14982
  statusConnectPC: {
@@ -15181,7 +15182,7 @@ interface FilterDeviceDto extends IFilterBaseDto, IFilterAssignDto {
15181
15182
  hasVpnAccounts: EHaveData[];
15182
15183
  hasProxy: EHaveData[];
15183
15184
  pcName: string[];
15184
- statusPC: EStartStop$1[];
15185
+ statusPC: EStartStop[];
15185
15186
  statusConnectPC: EStatusDeviceConnectPC[];
15186
15187
  hubStatus: EStatusDeviceHubStatus[];
15187
15188
  hubConnection: string[];
@@ -15289,7 +15290,7 @@ interface FindDeviceDto extends IFindBaseDto {
15289
15290
  pcInfo: {
15290
15291
  id: string;
15291
15292
  name: string;
15292
- startStop: EStartStop$1;
15293
+ startStop: EStartStop;
15293
15294
  status: EStatusPC;
15294
15295
  department: string;
15295
15296
  team: string;
@@ -20634,7 +20635,7 @@ interface ITaskManualContentSocialThreads extends IBaseModel, ITrackingModel {
20634
20635
  }
20635
20636
 
20636
20637
  interface IManualContentSocialPermissionThreads extends IBaseModel {
20637
- manualContentSocial: string | IManualContentSocialThreads$1;
20638
+ manualContentSocial: string | IManualContentSocialThreads;
20638
20639
  user: string | IUser;
20639
20640
  }
20640
20641
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { EStartStop as EStartStop$1, IManualContentSocialThreads as IManualContentSocialThreads$1 } from 'automation-lib';
2
-
3
1
  declare const CONST_API_OTP: {
4
2
  SEND: string;
5
3
  CONFIRM: string;
@@ -10447,14 +10445,17 @@ declare enum ETaskInstagramPostStyle {
10447
10445
  ProductVideoImage = "ProductVideoImage"
10448
10446
  }
10449
10447
  declare enum ETaskInstagramPostProcessStep {
10450
- InitializeTask = "InitializeTask",
10451
- LoginAccountSocial = "LoginAccountSocial",
10452
- LoadContentPost = "LoadContentPost",
10453
- UploadMediaFiles = "UploadMediaFiles",
10454
- AddCaptionAndTags = "AddCaptionAndTags",
10455
- SchedulePostTime = "SchedulePostTime",
10456
- SubmitPost = "SubmitPost",
10457
- VerifyPostStatus = "VerifyPostStatus"
10448
+ InitializeTask = "InitializeTask",// BE Consumer INSERT task
10449
+ LoadContentPost = "LoadContentPost",// Tool confirm_received
10450
+ ConnectDevice = "ConnectDevice",// u2.connect — fail sớm nếu offline
10451
+ LoginAccountSocial = "LoginAccountSocial",// ⏳ kiểm tra login app clone
10452
+ DownloadMediaFiles = "DownloadMediaFiles",// download URL → PC tmp
10453
+ UploadMediaFiles = "UploadMediaFiles",// ⏳ ADB push PC → device
10454
+ AddCaptionAndTags = "AddCaptionAndTags",// ⏳ ADB caption/tags
10455
+ SchedulePostTime = "SchedulePostTime",// ⏳ ADB schedule
10456
+ SubmitPost = "SubmitPost",// _post_to_instagram
10457
+ VerifyPostStatus = "VerifyPostStatus",// callback Done/Failed
10458
+ GhostReset = "GhostReset"
10458
10459
  }
10459
10460
  declare enum ETaskInstagramPostLogStatus {
10460
10461
  Completed = "Completed",
@@ -14973,9 +14974,9 @@ interface ViewDetailDeviceDto {
14973
14974
  }
14974
14975
  interface FindOverviewDeviceDetailDto {
14975
14976
  statusPC: {
14976
- [EStartStop$1.Start]: number;
14977
- [EStartStop$1.Stop]: number;
14978
- "N/A": number;
14977
+ [EStartStop.Start]: number;
14978
+ [EStartStop.Stop]: number;
14979
+ 'N/A': number;
14979
14980
  total: number;
14980
14981
  };
14981
14982
  statusConnectPC: {
@@ -15181,7 +15182,7 @@ interface FilterDeviceDto extends IFilterBaseDto, IFilterAssignDto {
15181
15182
  hasVpnAccounts: EHaveData[];
15182
15183
  hasProxy: EHaveData[];
15183
15184
  pcName: string[];
15184
- statusPC: EStartStop$1[];
15185
+ statusPC: EStartStop[];
15185
15186
  statusConnectPC: EStatusDeviceConnectPC[];
15186
15187
  hubStatus: EStatusDeviceHubStatus[];
15187
15188
  hubConnection: string[];
@@ -15289,7 +15290,7 @@ interface FindDeviceDto extends IFindBaseDto {
15289
15290
  pcInfo: {
15290
15291
  id: string;
15291
15292
  name: string;
15292
- startStop: EStartStop$1;
15293
+ startStop: EStartStop;
15293
15294
  status: EStatusPC;
15294
15295
  department: string;
15295
15296
  team: string;
@@ -20634,7 +20635,7 @@ interface ITaskManualContentSocialThreads extends IBaseModel, ITrackingModel {
20634
20635
  }
20635
20636
 
20636
20637
  interface IManualContentSocialPermissionThreads extends IBaseModel {
20637
- manualContentSocial: string | IManualContentSocialThreads$1;
20638
+ manualContentSocial: string | IManualContentSocialThreads;
20638
20639
  user: string | IUser;
20639
20640
  }
20640
20641
 
package/dist/index.js CHANGED
@@ -2734,13 +2734,16 @@ var ETaskInstagramPostStyle = /* @__PURE__ */ ((ETaskInstagramPostStyle2) => {
2734
2734
  })(ETaskInstagramPostStyle || {});
2735
2735
  var ETaskInstagramPostProcessStep = /* @__PURE__ */ ((ETaskInstagramPostProcessStep2) => {
2736
2736
  ETaskInstagramPostProcessStep2["InitializeTask"] = "InitializeTask";
2737
- ETaskInstagramPostProcessStep2["LoginAccountSocial"] = "LoginAccountSocial";
2738
2737
  ETaskInstagramPostProcessStep2["LoadContentPost"] = "LoadContentPost";
2738
+ ETaskInstagramPostProcessStep2["ConnectDevice"] = "ConnectDevice";
2739
+ ETaskInstagramPostProcessStep2["LoginAccountSocial"] = "LoginAccountSocial";
2740
+ ETaskInstagramPostProcessStep2["DownloadMediaFiles"] = "DownloadMediaFiles";
2739
2741
  ETaskInstagramPostProcessStep2["UploadMediaFiles"] = "UploadMediaFiles";
2740
2742
  ETaskInstagramPostProcessStep2["AddCaptionAndTags"] = "AddCaptionAndTags";
2741
2743
  ETaskInstagramPostProcessStep2["SchedulePostTime"] = "SchedulePostTime";
2742
2744
  ETaskInstagramPostProcessStep2["SubmitPost"] = "SubmitPost";
2743
2745
  ETaskInstagramPostProcessStep2["VerifyPostStatus"] = "VerifyPostStatus";
2746
+ ETaskInstagramPostProcessStep2["GhostReset"] = "GhostReset";
2744
2747
  return ETaskInstagramPostProcessStep2;
2745
2748
  })(ETaskInstagramPostProcessStep || {});
2746
2749
  var ETaskInstagramPostLogStatus = /* @__PURE__ */ ((ETaskInstagramPostLogStatus2) => {
package/dist/index.mjs CHANGED
@@ -2402,13 +2402,16 @@ var ETaskInstagramPostStyle = /* @__PURE__ */ ((ETaskInstagramPostStyle2) => {
2402
2402
  })(ETaskInstagramPostStyle || {});
2403
2403
  var ETaskInstagramPostProcessStep = /* @__PURE__ */ ((ETaskInstagramPostProcessStep2) => {
2404
2404
  ETaskInstagramPostProcessStep2["InitializeTask"] = "InitializeTask";
2405
- ETaskInstagramPostProcessStep2["LoginAccountSocial"] = "LoginAccountSocial";
2406
2405
  ETaskInstagramPostProcessStep2["LoadContentPost"] = "LoadContentPost";
2406
+ ETaskInstagramPostProcessStep2["ConnectDevice"] = "ConnectDevice";
2407
+ ETaskInstagramPostProcessStep2["LoginAccountSocial"] = "LoginAccountSocial";
2408
+ ETaskInstagramPostProcessStep2["DownloadMediaFiles"] = "DownloadMediaFiles";
2407
2409
  ETaskInstagramPostProcessStep2["UploadMediaFiles"] = "UploadMediaFiles";
2408
2410
  ETaskInstagramPostProcessStep2["AddCaptionAndTags"] = "AddCaptionAndTags";
2409
2411
  ETaskInstagramPostProcessStep2["SchedulePostTime"] = "SchedulePostTime";
2410
2412
  ETaskInstagramPostProcessStep2["SubmitPost"] = "SubmitPost";
2411
2413
  ETaskInstagramPostProcessStep2["VerifyPostStatus"] = "VerifyPostStatus";
2414
+ ETaskInstagramPostProcessStep2["GhostReset"] = "GhostReset";
2412
2415
  return ETaskInstagramPostProcessStep2;
2413
2416
  })(ETaskInstagramPostProcessStep || {});
2414
2417
  var ETaskInstagramPostLogStatus = /* @__PURE__ */ ((ETaskInstagramPostLogStatus2) => {
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@allinsocial/automation-core",
3
- "version": "6.6.642",
3
+ "version": "6.6.647",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
- "homepage": "https://blog.allinsocialauto.com/",
9
8
  "repository": {
10
9
  "type": "git",
11
- "url": "https://github.com/all-in-social-auto-2026"
10
+ "url": "https://github.com/all-in-social-auto-2026/Library-manager-Auto"
12
11
  },
13
12
  "scripts": {
14
13
  "build": "tsup",
@@ -21,17 +20,16 @@
21
20
  "Common features auto"
22
21
  ],
23
22
  "publishConfig": {
24
- "access": "restricted"
23
+ "access": "public"
25
24
  },
26
- "author": "ericnguyendev",
25
+ "author": "BoDevOps",
27
26
  "license": "MIT",
28
27
  "devDependencies": {
29
28
  "@types/nodemailer": "^6.4.14",
30
- "tsup": "^8.3.0",
29
+ "tsup": "^8.5.1",
31
30
  "typescript": "^5.4.5"
32
31
  },
33
32
  "dependencies": {
34
- "@allinsocial/automation-core": "^6.6.642",
35
33
  "http-status-codes": "^2.3.0",
36
34
  "nodemailer": "^6.9.13",
37
35
  "sharp": "^0.33.3"