@nomalism-com/api 1.3.44 → 1.3.45
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/dist/index.js +319 -264
- package/dist/main.d.ts +3 -0
- package/dist/modules/stock/emailAccount.d.ts +15 -0
- package/package.json +8 -8
package/dist/main.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import AccountCodeClass from "./modules/stock/accountCode";
|
|
|
41
41
|
import ChatClass from "./modules/stock/chat";
|
|
42
42
|
import ChatRapidMessageClass from "./modules/stock/chatRapidMessage";
|
|
43
43
|
import DashboardClass from "./modules/stock/dashboard";
|
|
44
|
+
import EmailAccountClass from "./modules/stock/emailAccount";
|
|
44
45
|
import FileClass from "./modules/stock/file";
|
|
45
46
|
import GmailsClass from "./modules/stock/gmails";
|
|
46
47
|
import GoogleCalendarClass from "./modules/stock/googleCalendar";
|
|
@@ -165,6 +166,7 @@ export * as SmsTemplate from "./modules/sms/smsTemplate";
|
|
|
165
166
|
export * as AccountCode from "./modules/stock/accountCode";
|
|
166
167
|
export * as ChatRapidMessage from "./modules/stock/chatRapidMessage";
|
|
167
168
|
export * as Dashboard from "./modules/stock/dashboard";
|
|
169
|
+
export * as EmailAccount from "./modules/stock/emailAccount";
|
|
168
170
|
export * as File from "./modules/stock/file";
|
|
169
171
|
export * as Gmail from "./modules/stock/gmails";
|
|
170
172
|
export * as GoogleCalendar from "./modules/stock/googleCalendar";
|
|
@@ -384,6 +386,7 @@ export declare class API {
|
|
|
384
386
|
ChatSubscriber: ChatSubscriberClass;
|
|
385
387
|
Tag: TagClass;
|
|
386
388
|
Gmails: GmailsClass;
|
|
389
|
+
EmailAccount: EmailAccountClass;
|
|
387
390
|
NPF: NPFClass;
|
|
388
391
|
NRCL: NRCLClass;
|
|
389
392
|
PaymentBatch: PaymentBatchClass;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Nomalism from "@nomalism-com/types";
|
|
2
|
+
import { IModuleConstructor } from "../../main";
|
|
3
|
+
export default class Repository implements Nomalism.EmailAccount.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
find(): Promise<Nomalism.EmailAccount.IEmailAccountResponse[]>;
|
|
8
|
+
findById(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.EmailAccount.IEmailAccountResponse>;
|
|
9
|
+
create(data: Nomalism.EmailAccount.ICreateRequest): Promise<Nomalism.EmailAccount.ICreateResponse>;
|
|
10
|
+
update(selector: Nomalism.shared.IFindByIdRequest, data: Nomalism.EmailAccount.IUpdateRequest): Promise<void>;
|
|
11
|
+
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
12
|
+
auth(selector: Nomalism.shared.IFindByIdRequest): Promise<string>;
|
|
13
|
+
sync(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.EmailAccount.ISyncResultResponse>;
|
|
14
|
+
syncAll(): Promise<Nomalism.EmailAccount.ISyncResultResponse[]>;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.45",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"lint": "eslint . --fix && prettier --write .",
|
|
20
|
+
"lint": "eslint . --fix && prettier --write . --log-level warn",
|
|
21
21
|
"prebuild": "rm -rf dist",
|
|
22
22
|
"build": "tsc --emitDeclarationOnly && tsup",
|
|
23
23
|
"prepack": "npm run lint && npm run build",
|
|
24
24
|
"prepare": "husky"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nomalism-com/types": "^1.3.
|
|
27
|
+
"@nomalism-com/types": "^1.3.47",
|
|
28
28
|
"axios": "^1.18.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^10.0.1",
|
|
32
|
-
"@swc/core": "^1.15.
|
|
32
|
+
"@swc/core": "^1.15.46",
|
|
33
33
|
"@types/node": "^26.1.1",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.62.0",
|
|
36
36
|
"eslint": "^10.7.0",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
|
-
"eslint-plugin-simple-import-sort": "^
|
|
38
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
39
39
|
"globals": "^17.7.0",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
|
-
"lint-staged": "^17.0
|
|
42
|
-
"prettier": "^3.9.
|
|
41
|
+
"lint-staged": "^17.1.0",
|
|
42
|
+
"prettier": "^3.9.6",
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
|
-
"typescript-eslint": "^8.
|
|
44
|
+
"typescript-eslint": "^8.65.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|