automation-lib 6.6.528 → 6.6.530
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 +18 -4
- package/dist/index.d.ts +18 -4
- 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
|
@@ -18072,6 +18072,7 @@ interface ListManualContentSocialInstagramChildrenDto extends IFindBaseDto {
|
|
|
18072
18072
|
interface ListManualContentSocialChildrenDto extends IFindBaseDto {
|
|
18073
18073
|
id: string;
|
|
18074
18074
|
caption: string;
|
|
18075
|
+
sttPost: string;
|
|
18075
18076
|
listFiles: Array<{
|
|
18076
18077
|
id: string;
|
|
18077
18078
|
url: string;
|
|
@@ -18220,7 +18221,10 @@ interface FindManualContentSocialInstagramDto extends IFindBaseDto {
|
|
|
18220
18221
|
timeStopStart: Date;
|
|
18221
18222
|
postInfo: {
|
|
18222
18223
|
childrenId: string;
|
|
18223
|
-
|
|
18224
|
+
listFiles: Array<{
|
|
18225
|
+
idDriver: string;
|
|
18226
|
+
type: "Video" | "Image";
|
|
18227
|
+
}>;
|
|
18224
18228
|
};
|
|
18225
18229
|
totalPosts: number;
|
|
18226
18230
|
totalPostsPosted: number;
|
|
@@ -18446,7 +18450,10 @@ interface FindDraftManualContentInstagramDto extends IFindBaseDto {
|
|
|
18446
18450
|
timeStopStart: Date;
|
|
18447
18451
|
postInfo: {
|
|
18448
18452
|
childrenId: string;
|
|
18449
|
-
|
|
18453
|
+
listFiles: Array<{
|
|
18454
|
+
idDriver: string;
|
|
18455
|
+
type: "Video" | "Image";
|
|
18456
|
+
}>;
|
|
18450
18457
|
};
|
|
18451
18458
|
totalPosts: number;
|
|
18452
18459
|
totalPostsDoneSync: number;
|
|
@@ -18494,6 +18501,7 @@ interface ListDraftManualContentInstagramChildrenDto extends IFindBaseDto {
|
|
|
18494
18501
|
interface ListDraftManualContentChildrenDto extends IFindBaseDto {
|
|
18495
18502
|
id: string;
|
|
18496
18503
|
caption: string;
|
|
18504
|
+
sttPost: string;
|
|
18497
18505
|
listFiles: Array<{
|
|
18498
18506
|
id: string;
|
|
18499
18507
|
url: string;
|
|
@@ -18516,6 +18524,7 @@ interface IDraftManualContentInstagramChildren extends IBaseModel, ITrackingMode
|
|
|
18516
18524
|
}
|
|
18517
18525
|
|
|
18518
18526
|
interface IDraftManualContentInstagramChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18527
|
+
sttPost: number;
|
|
18519
18528
|
caption: string;
|
|
18520
18529
|
listFiles: Array<{
|
|
18521
18530
|
id: string;
|
|
@@ -18524,7 +18533,6 @@ interface IDraftManualContentInstagramChildrenItemPost extends IBaseModel, ITrac
|
|
|
18524
18533
|
size: number;
|
|
18525
18534
|
originalName: string;
|
|
18526
18535
|
}>;
|
|
18527
|
-
sourceDraftManualContentInstagramChildrenItemPostId: string | IDraftManualContentInstagramChildrenItemPost;
|
|
18528
18536
|
draftManualContentChildrenId: string | IDraftManualContentInstagramChildren;
|
|
18529
18537
|
statusSync: EDraftManualContentInstagramStatusSyncPost;
|
|
18530
18538
|
}
|
|
@@ -18535,6 +18543,7 @@ interface IDraftManualContentPermissionInstagram extends IBaseModel {
|
|
|
18535
18543
|
}
|
|
18536
18544
|
|
|
18537
18545
|
interface IManualContentSocialInstagramChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18546
|
+
sttPost: number;
|
|
18538
18547
|
caption: string;
|
|
18539
18548
|
listFiles: Array<{
|
|
18540
18549
|
id: string;
|
|
@@ -18617,6 +18626,7 @@ interface ListManualContentSocialThreadsChildrenDto extends IFindBaseDto {
|
|
|
18617
18626
|
interface ListManualContentSocialThreadsChildrenDto extends IFindBaseDto {
|
|
18618
18627
|
id: string;
|
|
18619
18628
|
caption: string;
|
|
18629
|
+
sttPost: string;
|
|
18620
18630
|
listFiles: Array<{
|
|
18621
18631
|
id: string;
|
|
18622
18632
|
url: string;
|
|
@@ -18765,7 +18775,10 @@ interface FindManualContentSocialThreadsDto extends IFindBaseDto {
|
|
|
18765
18775
|
timeStopStart: Date;
|
|
18766
18776
|
postInfo: {
|
|
18767
18777
|
childrenId: string;
|
|
18768
|
-
|
|
18778
|
+
listFiles: Array<{
|
|
18779
|
+
idDriver: string;
|
|
18780
|
+
type: "Video" | "Image";
|
|
18781
|
+
}>;
|
|
18769
18782
|
};
|
|
18770
18783
|
totalPosts: number;
|
|
18771
18784
|
totalPostsPosted: number;
|
|
@@ -18919,6 +18932,7 @@ interface IManualContentSocialThreadsChildren extends IBaseModel, ITrackingModel
|
|
|
18919
18932
|
interface IManualContentSocialThreadsChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18920
18933
|
caption: string;
|
|
18921
18934
|
listFiles: Array<{
|
|
18935
|
+
sttPost: number;
|
|
18922
18936
|
id: string;
|
|
18923
18937
|
url: string;
|
|
18924
18938
|
type: "Video" | "Image";
|
package/dist/index.d.ts
CHANGED
|
@@ -18072,6 +18072,7 @@ interface ListManualContentSocialInstagramChildrenDto extends IFindBaseDto {
|
|
|
18072
18072
|
interface ListManualContentSocialChildrenDto extends IFindBaseDto {
|
|
18073
18073
|
id: string;
|
|
18074
18074
|
caption: string;
|
|
18075
|
+
sttPost: string;
|
|
18075
18076
|
listFiles: Array<{
|
|
18076
18077
|
id: string;
|
|
18077
18078
|
url: string;
|
|
@@ -18220,7 +18221,10 @@ interface FindManualContentSocialInstagramDto extends IFindBaseDto {
|
|
|
18220
18221
|
timeStopStart: Date;
|
|
18221
18222
|
postInfo: {
|
|
18222
18223
|
childrenId: string;
|
|
18223
|
-
|
|
18224
|
+
listFiles: Array<{
|
|
18225
|
+
idDriver: string;
|
|
18226
|
+
type: "Video" | "Image";
|
|
18227
|
+
}>;
|
|
18224
18228
|
};
|
|
18225
18229
|
totalPosts: number;
|
|
18226
18230
|
totalPostsPosted: number;
|
|
@@ -18446,7 +18450,10 @@ interface FindDraftManualContentInstagramDto extends IFindBaseDto {
|
|
|
18446
18450
|
timeStopStart: Date;
|
|
18447
18451
|
postInfo: {
|
|
18448
18452
|
childrenId: string;
|
|
18449
|
-
|
|
18453
|
+
listFiles: Array<{
|
|
18454
|
+
idDriver: string;
|
|
18455
|
+
type: "Video" | "Image";
|
|
18456
|
+
}>;
|
|
18450
18457
|
};
|
|
18451
18458
|
totalPosts: number;
|
|
18452
18459
|
totalPostsDoneSync: number;
|
|
@@ -18494,6 +18501,7 @@ interface ListDraftManualContentInstagramChildrenDto extends IFindBaseDto {
|
|
|
18494
18501
|
interface ListDraftManualContentChildrenDto extends IFindBaseDto {
|
|
18495
18502
|
id: string;
|
|
18496
18503
|
caption: string;
|
|
18504
|
+
sttPost: string;
|
|
18497
18505
|
listFiles: Array<{
|
|
18498
18506
|
id: string;
|
|
18499
18507
|
url: string;
|
|
@@ -18516,6 +18524,7 @@ interface IDraftManualContentInstagramChildren extends IBaseModel, ITrackingMode
|
|
|
18516
18524
|
}
|
|
18517
18525
|
|
|
18518
18526
|
interface IDraftManualContentInstagramChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18527
|
+
sttPost: number;
|
|
18519
18528
|
caption: string;
|
|
18520
18529
|
listFiles: Array<{
|
|
18521
18530
|
id: string;
|
|
@@ -18524,7 +18533,6 @@ interface IDraftManualContentInstagramChildrenItemPost extends IBaseModel, ITrac
|
|
|
18524
18533
|
size: number;
|
|
18525
18534
|
originalName: string;
|
|
18526
18535
|
}>;
|
|
18527
|
-
sourceDraftManualContentInstagramChildrenItemPostId: string | IDraftManualContentInstagramChildrenItemPost;
|
|
18528
18536
|
draftManualContentChildrenId: string | IDraftManualContentInstagramChildren;
|
|
18529
18537
|
statusSync: EDraftManualContentInstagramStatusSyncPost;
|
|
18530
18538
|
}
|
|
@@ -18535,6 +18543,7 @@ interface IDraftManualContentPermissionInstagram extends IBaseModel {
|
|
|
18535
18543
|
}
|
|
18536
18544
|
|
|
18537
18545
|
interface IManualContentSocialInstagramChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18546
|
+
sttPost: number;
|
|
18538
18547
|
caption: string;
|
|
18539
18548
|
listFiles: Array<{
|
|
18540
18549
|
id: string;
|
|
@@ -18617,6 +18626,7 @@ interface ListManualContentSocialThreadsChildrenDto extends IFindBaseDto {
|
|
|
18617
18626
|
interface ListManualContentSocialThreadsChildrenDto extends IFindBaseDto {
|
|
18618
18627
|
id: string;
|
|
18619
18628
|
caption: string;
|
|
18629
|
+
sttPost: string;
|
|
18620
18630
|
listFiles: Array<{
|
|
18621
18631
|
id: string;
|
|
18622
18632
|
url: string;
|
|
@@ -18765,7 +18775,10 @@ interface FindManualContentSocialThreadsDto extends IFindBaseDto {
|
|
|
18765
18775
|
timeStopStart: Date;
|
|
18766
18776
|
postInfo: {
|
|
18767
18777
|
childrenId: string;
|
|
18768
|
-
|
|
18778
|
+
listFiles: Array<{
|
|
18779
|
+
idDriver: string;
|
|
18780
|
+
type: "Video" | "Image";
|
|
18781
|
+
}>;
|
|
18769
18782
|
};
|
|
18770
18783
|
totalPosts: number;
|
|
18771
18784
|
totalPostsPosted: number;
|
|
@@ -18919,6 +18932,7 @@ interface IManualContentSocialThreadsChildren extends IBaseModel, ITrackingModel
|
|
|
18919
18932
|
interface IManualContentSocialThreadsChildrenItemPost extends IBaseModel, ITrackingModel {
|
|
18920
18933
|
caption: string;
|
|
18921
18934
|
listFiles: Array<{
|
|
18935
|
+
sttPost: number;
|
|
18922
18936
|
id: string;
|
|
18923
18937
|
url: string;
|
|
18924
18938
|
type: "Video" | "Image";
|