automation-lib 6.6.523 → 6.6.525

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
@@ -9530,14 +9530,14 @@ declare enum ESheetToolTimeCrawl {
9530
9530
  }
9531
9531
  declare enum ESheetToolInstagram {
9532
9532
  Post = "Post",
9533
- Follow = "Follow",
9533
+ FollowUnfollowBlocker = "Follow/unFollow/Blocker",
9534
9534
  ReplyComment = "Reply comment",
9535
9535
  ReplyMessage = "Reply message",
9536
9536
  AvatarCover = "AvatarCover"
9537
9537
  }
9538
9538
  declare enum ESheetToolThreads {
9539
9539
  Post = "Post",
9540
- Follow = "Follow",
9540
+ FollowUnfollowBlocker = "Follow/unFollow/Blocker",
9541
9541
  ReplyComment = "Reply comment",
9542
9542
  ReplyMessage = "Reply message",
9543
9543
  AvatarCover = "AvatarCover"
@@ -19301,6 +19301,9 @@ interface IInstagramSettingConfigFollowTarget {
19301
19301
  profileTab: IPreFollowProfileTab;
19302
19302
  isFollowFromSheet: boolean;
19303
19303
  sheetId: string;
19304
+ sheetType: string;
19305
+ sheetName: string;
19306
+ sheetUrl: string;
19304
19307
  sessionsPerDay: number;
19305
19308
  followPerSessionMin: number;
19306
19309
  followPerSessionMax: number;
@@ -19339,6 +19342,9 @@ interface IInstagramSettingConfigBlock {
19339
19342
  profileTab: IPreFollowProfileTab;
19340
19343
  isBlockFromSheet: boolean;
19341
19344
  sheetId: string;
19345
+ sheetType: string;
19346
+ sheetName: string;
19347
+ sheetUrl: string;
19342
19348
  sessionsPerDay: number;
19343
19349
  blockPerSession: number;
19344
19350
  delayBlockMin: number;
@@ -19391,6 +19397,9 @@ interface IInstagramSettingConfigReplyComment {
19391
19397
  skipUsernameNonEnglish: boolean;
19392
19398
  skipUsernameIcons: boolean;
19393
19399
  isOpenNotification: boolean;
19400
+ sheetType: string;
19401
+ sheetName: string;
19402
+ sheetUrl: string;
19394
19403
  replyText1: IReplyCommentRound;
19395
19404
  replyText2: IReplyCommentRound;
19396
19405
  reportSpam: IReplyCommentReportSpam;
@@ -19493,6 +19502,9 @@ interface IInstagramSettingConfigReplyMessage {
19493
19502
  isDeleteUsernameAfterReply: boolean;
19494
19503
  isReplyAllFromStories: boolean;
19495
19504
  isReplyViaSearch: boolean;
19505
+ sheetType: string;
19506
+ sheetName: string;
19507
+ sheetUrl: string;
19496
19508
  replyDm1: IReplyMessageRound;
19497
19509
  replyDm2: IReplyMessageRound;
19498
19510
  }
@@ -20219,6 +20231,9 @@ interface IThreadsSettingConfigFollowTarget {
20219
20231
  profileTab: IPreFollowProfileTabThreads;
20220
20232
  isFollowFromSheet: boolean;
20221
20233
  sheetId: string;
20234
+ sheetType: string;
20235
+ sheetName: string;
20236
+ sheetUrl: string;
20222
20237
  sessionsPerDay: number;
20223
20238
  followPerSessionMin: number;
20224
20239
  followPerSessionMax: number;
@@ -20257,6 +20272,9 @@ interface IThreadsSettingConfigBlock {
20257
20272
  profileTab: IPreFollowProfileTabThreads;
20258
20273
  isBlockFromSheet: boolean;
20259
20274
  sheetId: string;
20275
+ sheetType: string;
20276
+ sheetName: string;
20277
+ sheetUrl: string;
20260
20278
  sessionsPerDay: number;
20261
20279
  blockPerSession: number;
20262
20280
  delayBlockMin: number;
@@ -20416,6 +20434,9 @@ interface IThreadsSettingConfigReplyMessage {
20416
20434
  isDeleteUsernameAfterReply: boolean;
20417
20435
  isReplyAllFromStories: boolean;
20418
20436
  isReplyViaSearch: boolean;
20437
+ sheetType: string;
20438
+ sheetName: string;
20439
+ sheetUrl: string;
20419
20440
  replyDm1: IReplyMessageRoundThreads;
20420
20441
  replyDm2: IReplyMessageRoundThreads;
20421
20442
  }
package/dist/index.d.ts CHANGED
@@ -9530,14 +9530,14 @@ declare enum ESheetToolTimeCrawl {
9530
9530
  }
9531
9531
  declare enum ESheetToolInstagram {
9532
9532
  Post = "Post",
9533
- Follow = "Follow",
9533
+ FollowUnfollowBlocker = "Follow/unFollow/Blocker",
9534
9534
  ReplyComment = "Reply comment",
9535
9535
  ReplyMessage = "Reply message",
9536
9536
  AvatarCover = "AvatarCover"
9537
9537
  }
9538
9538
  declare enum ESheetToolThreads {
9539
9539
  Post = "Post",
9540
- Follow = "Follow",
9540
+ FollowUnfollowBlocker = "Follow/unFollow/Blocker",
9541
9541
  ReplyComment = "Reply comment",
9542
9542
  ReplyMessage = "Reply message",
9543
9543
  AvatarCover = "AvatarCover"
@@ -19301,6 +19301,9 @@ interface IInstagramSettingConfigFollowTarget {
19301
19301
  profileTab: IPreFollowProfileTab;
19302
19302
  isFollowFromSheet: boolean;
19303
19303
  sheetId: string;
19304
+ sheetType: string;
19305
+ sheetName: string;
19306
+ sheetUrl: string;
19304
19307
  sessionsPerDay: number;
19305
19308
  followPerSessionMin: number;
19306
19309
  followPerSessionMax: number;
@@ -19339,6 +19342,9 @@ interface IInstagramSettingConfigBlock {
19339
19342
  profileTab: IPreFollowProfileTab;
19340
19343
  isBlockFromSheet: boolean;
19341
19344
  sheetId: string;
19345
+ sheetType: string;
19346
+ sheetName: string;
19347
+ sheetUrl: string;
19342
19348
  sessionsPerDay: number;
19343
19349
  blockPerSession: number;
19344
19350
  delayBlockMin: number;
@@ -19391,6 +19397,9 @@ interface IInstagramSettingConfigReplyComment {
19391
19397
  skipUsernameNonEnglish: boolean;
19392
19398
  skipUsernameIcons: boolean;
19393
19399
  isOpenNotification: boolean;
19400
+ sheetType: string;
19401
+ sheetName: string;
19402
+ sheetUrl: string;
19394
19403
  replyText1: IReplyCommentRound;
19395
19404
  replyText2: IReplyCommentRound;
19396
19405
  reportSpam: IReplyCommentReportSpam;
@@ -19493,6 +19502,9 @@ interface IInstagramSettingConfigReplyMessage {
19493
19502
  isDeleteUsernameAfterReply: boolean;
19494
19503
  isReplyAllFromStories: boolean;
19495
19504
  isReplyViaSearch: boolean;
19505
+ sheetType: string;
19506
+ sheetName: string;
19507
+ sheetUrl: string;
19496
19508
  replyDm1: IReplyMessageRound;
19497
19509
  replyDm2: IReplyMessageRound;
19498
19510
  }
@@ -20219,6 +20231,9 @@ interface IThreadsSettingConfigFollowTarget {
20219
20231
  profileTab: IPreFollowProfileTabThreads;
20220
20232
  isFollowFromSheet: boolean;
20221
20233
  sheetId: string;
20234
+ sheetType: string;
20235
+ sheetName: string;
20236
+ sheetUrl: string;
20222
20237
  sessionsPerDay: number;
20223
20238
  followPerSessionMin: number;
20224
20239
  followPerSessionMax: number;
@@ -20257,6 +20272,9 @@ interface IThreadsSettingConfigBlock {
20257
20272
  profileTab: IPreFollowProfileTabThreads;
20258
20273
  isBlockFromSheet: boolean;
20259
20274
  sheetId: string;
20275
+ sheetType: string;
20276
+ sheetName: string;
20277
+ sheetUrl: string;
20260
20278
  sessionsPerDay: number;
20261
20279
  blockPerSession: number;
20262
20280
  delayBlockMin: number;
@@ -20416,6 +20434,9 @@ interface IThreadsSettingConfigReplyMessage {
20416
20434
  isDeleteUsernameAfterReply: boolean;
20417
20435
  isReplyAllFromStories: boolean;
20418
20436
  isReplyViaSearch: boolean;
20437
+ sheetType: string;
20438
+ sheetName: string;
20439
+ sheetUrl: string;
20419
20440
  replyDm1: IReplyMessageRoundThreads;
20420
20441
  replyDm2: IReplyMessageRoundThreads;
20421
20442
  }
package/dist/index.js CHANGED
@@ -3686,7 +3686,7 @@ var ESheetToolTimeCrawl = /* @__PURE__ */ ((ESheetToolTimeCrawl2) => {
3686
3686
  })(ESheetToolTimeCrawl || {});
3687
3687
  var ESheetToolInstagram = /* @__PURE__ */ ((ESheetToolInstagram2) => {
3688
3688
  ESheetToolInstagram2["Post"] = "Post";
3689
- ESheetToolInstagram2["Follow"] = "Follow";
3689
+ ESheetToolInstagram2["FollowUnfollowBlocker"] = "Follow/unFollow/Blocker";
3690
3690
  ESheetToolInstagram2["ReplyComment"] = "Reply comment";
3691
3691
  ESheetToolInstagram2["ReplyMessage"] = "Reply message";
3692
3692
  ESheetToolInstagram2["AvatarCover"] = "AvatarCover";
@@ -3694,7 +3694,7 @@ var ESheetToolInstagram = /* @__PURE__ */ ((ESheetToolInstagram2) => {
3694
3694
  })(ESheetToolInstagram || {});
3695
3695
  var ESheetToolThreads = /* @__PURE__ */ ((ESheetToolThreads2) => {
3696
3696
  ESheetToolThreads2["Post"] = "Post";
3697
- ESheetToolThreads2["Follow"] = "Follow";
3697
+ ESheetToolThreads2["FollowUnfollowBlocker"] = "Follow/unFollow/Blocker";
3698
3698
  ESheetToolThreads2["ReplyComment"] = "Reply comment";
3699
3699
  ESheetToolThreads2["ReplyMessage"] = "Reply message";
3700
3700
  ESheetToolThreads2["AvatarCover"] = "AvatarCover";
package/dist/index.mjs CHANGED
@@ -3375,7 +3375,7 @@ var ESheetToolTimeCrawl = /* @__PURE__ */ ((ESheetToolTimeCrawl2) => {
3375
3375
  })(ESheetToolTimeCrawl || {});
3376
3376
  var ESheetToolInstagram = /* @__PURE__ */ ((ESheetToolInstagram2) => {
3377
3377
  ESheetToolInstagram2["Post"] = "Post";
3378
- ESheetToolInstagram2["Follow"] = "Follow";
3378
+ ESheetToolInstagram2["FollowUnfollowBlocker"] = "Follow/unFollow/Blocker";
3379
3379
  ESheetToolInstagram2["ReplyComment"] = "Reply comment";
3380
3380
  ESheetToolInstagram2["ReplyMessage"] = "Reply message";
3381
3381
  ESheetToolInstagram2["AvatarCover"] = "AvatarCover";
@@ -3383,7 +3383,7 @@ var ESheetToolInstagram = /* @__PURE__ */ ((ESheetToolInstagram2) => {
3383
3383
  })(ESheetToolInstagram || {});
3384
3384
  var ESheetToolThreads = /* @__PURE__ */ ((ESheetToolThreads2) => {
3385
3385
  ESheetToolThreads2["Post"] = "Post";
3386
- ESheetToolThreads2["Follow"] = "Follow";
3386
+ ESheetToolThreads2["FollowUnfollowBlocker"] = "Follow/unFollow/Blocker";
3387
3387
  ESheetToolThreads2["ReplyComment"] = "Reply comment";
3388
3388
  ESheetToolThreads2["ReplyMessage"] = "Reply message";
3389
3389
  ESheetToolThreads2["AvatarCover"] = "AvatarCover";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "6.6.523",
3
+ "version": "6.6.525",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",