automation-lib 4.8.26 → 4.8.41
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/.vscode/settings.json +29 -29
- package/commit.bat +42 -42
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +36 -36
package/.vscode/settings.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"cSpell.words": [
|
|
3
|
-
"appium",
|
|
4
|
-
"appiumby",
|
|
5
|
-
"canva",
|
|
6
|
-
"chplay",
|
|
7
|
-
"creds",
|
|
8
|
-
"datenow",
|
|
9
|
-
"dotenv",
|
|
10
|
-
"EURL",
|
|
11
|
-
"Freepik",
|
|
12
|
-
"googleapiclient",
|
|
13
|
-
"gspread",
|
|
14
|
-
"horizotal",
|
|
15
|
-
"imei",
|
|
16
|
-
"iphonesubinfo",
|
|
17
|
-
"Noti",
|
|
18
|
-
"Pinterest",
|
|
19
|
-
"pymongo",
|
|
20
|
-
"pyperclip",
|
|
21
|
-
"pytz",
|
|
22
|
-
"qtwidgets",
|
|
23
|
-
"sism",
|
|
24
|
-
"siuf",
|
|
25
|
-
"tempolary",
|
|
26
|
-
"Tiktok",
|
|
27
|
-
"webelement"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"cSpell.words": [
|
|
3
|
+
"appium",
|
|
4
|
+
"appiumby",
|
|
5
|
+
"canva",
|
|
6
|
+
"chplay",
|
|
7
|
+
"creds",
|
|
8
|
+
"datenow",
|
|
9
|
+
"dotenv",
|
|
10
|
+
"EURL",
|
|
11
|
+
"Freepik",
|
|
12
|
+
"googleapiclient",
|
|
13
|
+
"gspread",
|
|
14
|
+
"horizotal",
|
|
15
|
+
"imei",
|
|
16
|
+
"iphonesubinfo",
|
|
17
|
+
"Noti",
|
|
18
|
+
"Pinterest",
|
|
19
|
+
"pymongo",
|
|
20
|
+
"pyperclip",
|
|
21
|
+
"pytz",
|
|
22
|
+
"qtwidgets",
|
|
23
|
+
"sism",
|
|
24
|
+
"siuf",
|
|
25
|
+
"tempolary",
|
|
26
|
+
"Tiktok",
|
|
27
|
+
"webelement"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/commit.bat
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
:: Add all changes to git
|
|
4
|
-
git add .
|
|
5
|
-
|
|
6
|
-
:: Commit changes with a message
|
|
7
|
-
git commit -m "update: Son update code"
|
|
8
|
-
|
|
9
|
-
:: Push changes to the 'main' branch of the 'cp' remote
|
|
10
|
-
git pull hs main
|
|
11
|
-
|
|
12
|
-
:: Read the current version from package.json
|
|
13
|
-
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
14
|
-
|
|
15
|
-
:: Remove quotes from the version string
|
|
16
|
-
set currentVersion=%currentVersion:"=%
|
|
17
|
-
|
|
18
|
-
:: Split version into its components
|
|
19
|
-
for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
|
|
20
|
-
set major=%%a
|
|
21
|
-
set minor=%%b
|
|
22
|
-
set patch=%%c
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
:: Increment the patch version
|
|
26
|
-
set /a patch+=1
|
|
27
|
-
|
|
28
|
-
:: Create the new version string
|
|
29
|
-
set newVersion=%major%.%minor%.%patch%
|
|
30
|
-
|
|
31
|
-
:: Update the version in package.json
|
|
32
|
-
powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
|
|
33
|
-
|
|
34
|
-
:: Display the new version
|
|
35
|
-
echo New version: %newVersion%
|
|
36
|
-
|
|
37
|
-
:: Run npm publish using call
|
|
38
|
-
call npm run pub
|
|
39
|
-
|
|
40
|
-
git push hs main
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
:: Add all changes to git
|
|
4
|
+
git add .
|
|
5
|
+
|
|
6
|
+
:: Commit changes with a message
|
|
7
|
+
git commit -m "update: Son update code"
|
|
8
|
+
|
|
9
|
+
:: Push changes to the 'main' branch of the 'cp' remote
|
|
10
|
+
git pull hs main
|
|
11
|
+
|
|
12
|
+
:: Read the current version from package.json
|
|
13
|
+
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
14
|
+
|
|
15
|
+
:: Remove quotes from the version string
|
|
16
|
+
set currentVersion=%currentVersion:"=%
|
|
17
|
+
|
|
18
|
+
:: Split version into its components
|
|
19
|
+
for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
|
|
20
|
+
set major=%%a
|
|
21
|
+
set minor=%%b
|
|
22
|
+
set patch=%%c
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
:: Increment the patch version
|
|
26
|
+
set /a patch+=1
|
|
27
|
+
|
|
28
|
+
:: Create the new version string
|
|
29
|
+
set newVersion=%major%.%minor%.%patch%
|
|
30
|
+
|
|
31
|
+
:: Update the version in package.json
|
|
32
|
+
powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
|
|
33
|
+
|
|
34
|
+
:: Display the new version
|
|
35
|
+
echo New version: %newVersion%
|
|
36
|
+
|
|
37
|
+
:: Run npm publish using call
|
|
38
|
+
call npm run pub
|
|
39
|
+
|
|
40
|
+
git push hs main
|
|
41
|
+
|
|
42
|
+
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoInterfaceModelsCommon
|
|
1
|
+
import { BoInterfaceModelsCommon } from 'bodevops-be-common';
|
|
2
2
|
import { BoInterfaceModelsCommon as BoInterfaceModelsCommon$1 } from 'bodevops-be-common/dist';
|
|
3
3
|
|
|
4
4
|
declare const CONST_API_OTP: {
|
|
@@ -143,7 +143,7 @@ declare const ACTIONS_INSTAGRAM: {
|
|
|
143
143
|
INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW: string;
|
|
144
144
|
INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW: string;
|
|
145
145
|
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE: string;
|
|
146
|
-
|
|
146
|
+
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT: string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
declare const SERVICES_INSTAGRAM: {
|
|
@@ -160,7 +160,7 @@ declare const SERVICES_INSTAGRAM: {
|
|
|
160
160
|
INSTAGRAM_SERVICE_INTERACT_SETTING_STORY: string;
|
|
161
161
|
INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW: string;
|
|
162
162
|
INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW: string;
|
|
163
|
-
|
|
163
|
+
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT: string;
|
|
164
164
|
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE: string;
|
|
165
165
|
};
|
|
166
166
|
|
|
@@ -356,8 +356,8 @@ declare enum EStatusTaskTool {
|
|
|
356
356
|
GeneratedFreepik = "GeneratedFreepik",
|
|
357
357
|
GeneratingCanva = "GeneratingCanva",
|
|
358
358
|
GeneratedCanva = "GeneratedCanva",
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
Ready = "Ready",
|
|
360
|
+
Executing = "Executing",
|
|
361
361
|
Error = "Error",
|
|
362
362
|
Done = "Done",
|
|
363
363
|
Repaired = "Repaired"
|
|
@@ -424,7 +424,7 @@ interface IRoleFeature {
|
|
|
424
424
|
actions: Array<string>;
|
|
425
425
|
attributes: object;
|
|
426
426
|
}
|
|
427
|
-
interface IRole extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCommon.ISoftDeleteModel<IUser>, BoInterfaceModelsCommon.ITrackingModel<IUser
|
|
427
|
+
interface IRole extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCommon.ISoftDeleteModel<IUser>, BoInterfaceModelsCommon.ITrackingModel<IUser> {
|
|
428
428
|
role_name: string;
|
|
429
429
|
role_slug: string;
|
|
430
430
|
role_desc: string;
|
|
@@ -450,7 +450,7 @@ interface IUser extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCom
|
|
|
450
450
|
user_email: string;
|
|
451
451
|
user_phone: string;
|
|
452
452
|
user_password: string;
|
|
453
|
-
user_gender:
|
|
453
|
+
user_gender: string;
|
|
454
454
|
user_attachmentAccountIdLark: string;
|
|
455
455
|
user_attachmentAccountNameLark: string;
|
|
456
456
|
user_department: IDepartment | string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoInterfaceModelsCommon
|
|
1
|
+
import { BoInterfaceModelsCommon } from 'bodevops-be-common';
|
|
2
2
|
import { BoInterfaceModelsCommon as BoInterfaceModelsCommon$1 } from 'bodevops-be-common/dist';
|
|
3
3
|
|
|
4
4
|
declare const CONST_API_OTP: {
|
|
@@ -143,7 +143,7 @@ declare const ACTIONS_INSTAGRAM: {
|
|
|
143
143
|
INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW: string;
|
|
144
144
|
INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW: string;
|
|
145
145
|
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE: string;
|
|
146
|
-
|
|
146
|
+
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT: string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
declare const SERVICES_INSTAGRAM: {
|
|
@@ -160,7 +160,7 @@ declare const SERVICES_INSTAGRAM: {
|
|
|
160
160
|
INSTAGRAM_SERVICE_INTERACT_SETTING_STORY: string;
|
|
161
161
|
INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW: string;
|
|
162
162
|
INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW: string;
|
|
163
|
-
|
|
163
|
+
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT: string;
|
|
164
164
|
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE: string;
|
|
165
165
|
};
|
|
166
166
|
|
|
@@ -356,8 +356,8 @@ declare enum EStatusTaskTool {
|
|
|
356
356
|
GeneratedFreepik = "GeneratedFreepik",
|
|
357
357
|
GeneratingCanva = "GeneratingCanva",
|
|
358
358
|
GeneratedCanva = "GeneratedCanva",
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
Ready = "Ready",
|
|
360
|
+
Executing = "Executing",
|
|
361
361
|
Error = "Error",
|
|
362
362
|
Done = "Done",
|
|
363
363
|
Repaired = "Repaired"
|
|
@@ -424,7 +424,7 @@ interface IRoleFeature {
|
|
|
424
424
|
actions: Array<string>;
|
|
425
425
|
attributes: object;
|
|
426
426
|
}
|
|
427
|
-
interface IRole extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCommon.ISoftDeleteModel<IUser>, BoInterfaceModelsCommon.ITrackingModel<IUser
|
|
427
|
+
interface IRole extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCommon.ISoftDeleteModel<IUser>, BoInterfaceModelsCommon.ITrackingModel<IUser> {
|
|
428
428
|
role_name: string;
|
|
429
429
|
role_slug: string;
|
|
430
430
|
role_desc: string;
|
|
@@ -450,7 +450,7 @@ interface IUser extends BoInterfaceModelsCommon.IBaseModel, BoInterfaceModelsCom
|
|
|
450
450
|
user_email: string;
|
|
451
451
|
user_phone: string;
|
|
452
452
|
user_password: string;
|
|
453
|
-
user_gender:
|
|
453
|
+
user_gender: string;
|
|
454
454
|
user_attachmentAccountIdLark: string;
|
|
455
455
|
user_attachmentAccountNameLark: string;
|
|
456
456
|
user_department: IDepartment | string;
|
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ var ACTIONS_INSTAGRAM = {
|
|
|
192
192
|
INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW: "INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW",
|
|
193
193
|
INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW: "INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW",
|
|
194
194
|
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE: "INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE",
|
|
195
|
-
|
|
195
|
+
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT: "INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT"
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
// src/constants/scripts/instagram/services-instagram.constant.ts
|
|
@@ -210,7 +210,7 @@ var SERVICES_INSTAGRAM = {
|
|
|
210
210
|
INSTAGRAM_SERVICE_INTERACT_SETTING_STORY: "INSTAGRAM_SERVICE_INTERACT_SETTING_STORY",
|
|
211
211
|
INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW: "INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW",
|
|
212
212
|
INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW: "INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW",
|
|
213
|
-
|
|
213
|
+
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT: "INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT",
|
|
214
214
|
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE: "INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE"
|
|
215
215
|
};
|
|
216
216
|
|
|
@@ -438,8 +438,8 @@ var EStatusTaskTool = /* @__PURE__ */ ((EStatusTaskTool2) => {
|
|
|
438
438
|
EStatusTaskTool2["GeneratedFreepik"] = "GeneratedFreepik";
|
|
439
439
|
EStatusTaskTool2["GeneratingCanva"] = "GeneratingCanva";
|
|
440
440
|
EStatusTaskTool2["GeneratedCanva"] = "GeneratedCanva";
|
|
441
|
-
EStatusTaskTool2["
|
|
442
|
-
EStatusTaskTool2["
|
|
441
|
+
EStatusTaskTool2["Ready"] = "Ready";
|
|
442
|
+
EStatusTaskTool2["Executing"] = "Executing";
|
|
443
443
|
EStatusTaskTool2["Error"] = "Error";
|
|
444
444
|
EStatusTaskTool2["Done"] = "Done";
|
|
445
445
|
EStatusTaskTool2["Repaired"] = "Repaired";
|
package/dist/index.mjs
CHANGED
|
@@ -169,7 +169,7 @@ var ACTIONS_INSTAGRAM = {
|
|
|
169
169
|
INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW: "INSTAGRAM_ACTION_INTERACT_SETTING_FOLLOW",
|
|
170
170
|
INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW: "INSTAGRAM_ACTION_INTERACT_SETTING_UN_FOLLOW",
|
|
171
171
|
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE: "INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_MESSAGE",
|
|
172
|
-
|
|
172
|
+
INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT: "INSTAGRAM_ACTION_INTERACT_SETTING_REPLY_COMMENT"
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
// src/constants/scripts/instagram/services-instagram.constant.ts
|
|
@@ -187,7 +187,7 @@ var SERVICES_INSTAGRAM = {
|
|
|
187
187
|
INSTAGRAM_SERVICE_INTERACT_SETTING_STORY: "INSTAGRAM_SERVICE_INTERACT_SETTING_STORY",
|
|
188
188
|
INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW: "INSTAGRAM_SERVICE_INTERACT_SETTING_FOLLOW",
|
|
189
189
|
INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW: "INSTAGRAM_SERVICE_INTERACT_SETTING_UN_FOLLOW",
|
|
190
|
-
|
|
190
|
+
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT: "INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_COMMENT",
|
|
191
191
|
INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE: "INSTAGRAM_SERVICE_INTERACT_SETTING_REPLY_MESSAGE"
|
|
192
192
|
};
|
|
193
193
|
|
|
@@ -415,8 +415,8 @@ var EStatusTaskTool = /* @__PURE__ */ ((EStatusTaskTool2) => {
|
|
|
415
415
|
EStatusTaskTool2["GeneratedFreepik"] = "GeneratedFreepik";
|
|
416
416
|
EStatusTaskTool2["GeneratingCanva"] = "GeneratingCanva";
|
|
417
417
|
EStatusTaskTool2["GeneratedCanva"] = "GeneratedCanva";
|
|
418
|
-
EStatusTaskTool2["
|
|
419
|
-
EStatusTaskTool2["
|
|
418
|
+
EStatusTaskTool2["Ready"] = "Ready";
|
|
419
|
+
EStatusTaskTool2["Executing"] = "Executing";
|
|
420
420
|
EStatusTaskTool2["Error"] = "Error";
|
|
421
421
|
EStatusTaskTool2["Done"] = "Done";
|
|
422
422
|
EStatusTaskTool2["Repaired"] = "Repaired";
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "automation-lib",
|
|
3
|
-
"version": "4.8.
|
|
4
|
-
"description": "Common features and type of applications auto",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.js",
|
|
8
|
-
"homepage": "https://sdtc.vn",
|
|
9
|
-
"repository": {
|
|
10
|
-
"url": "https://github.com/HaiSonMin"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsup",
|
|
14
|
-
"pub": "npm run build && npm publish"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"Common features auto"
|
|
18
|
-
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"author": "BoDevOps",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/nodemailer": "^6.4.14",
|
|
26
|
-
"tsup": "^8.3.0",
|
|
27
|
-
"typescript": "^5.4.5"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"automation-lib": "^4.8.9",
|
|
31
|
-
"bodevops-be-common": "^3.
|
|
32
|
-
"http-status-codes": "^2.3.0",
|
|
33
|
-
"nodemailer": "^6.9.13",
|
|
34
|
-
"sharp": "^0.33.3"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "automation-lib",
|
|
3
|
+
"version": "4.8.41",
|
|
4
|
+
"description": "Common features and type of applications auto",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.js",
|
|
8
|
+
"homepage": "https://sdtc.vn",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/HaiSonMin"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsup",
|
|
14
|
+
"pub": "npm run build && npm publish"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"Common features auto"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"author": "BoDevOps",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/nodemailer": "^6.4.14",
|
|
26
|
+
"tsup": "^8.3.0",
|
|
27
|
+
"typescript": "^5.4.5"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"automation-lib": "^4.8.9",
|
|
31
|
+
"bodevops-be-common": "^3.5.3",
|
|
32
|
+
"http-status-codes": "^2.3.0",
|
|
33
|
+
"nodemailer": "^6.9.13",
|
|
34
|
+
"sharp": "^0.33.3"
|
|
35
|
+
}
|
|
36
|
+
}
|