@nomalism-com/api 0.38.2 → 0.39.1
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.cjs +4321 -0
- package/dist/index.d.ts +353 -337
- package/dist/index.js +35 -0
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __export(main_exports, {
|
|
|
40
40
|
ExternalDocumentType: () => externalDocumentType_exports,
|
|
41
41
|
Favorites: () => favorites_exports,
|
|
42
42
|
File: () => file_exports,
|
|
43
|
+
GmailsClass: () => gmails_exports,
|
|
43
44
|
GoogleFilePermission: () => googleFilePermission_exports,
|
|
44
45
|
GoogleSheets: () => googleSheets_exports,
|
|
45
46
|
GroupPermissions: () => groupPermission_exports,
|
|
@@ -3144,6 +3145,10 @@ var Repository82 = class {
|
|
|
3144
3145
|
const response = await this.api.get(`${this.route}find_client_or_provider`, { params });
|
|
3145
3146
|
return response.data;
|
|
3146
3147
|
}
|
|
3148
|
+
async findForGmail(params) {
|
|
3149
|
+
const response = await this.api.get(`${this.route}for_gmail`, { params });
|
|
3150
|
+
return response.data;
|
|
3151
|
+
}
|
|
3147
3152
|
};
|
|
3148
3153
|
|
|
3149
3154
|
// src/modules/integration/projectInfo.ts
|
|
@@ -4085,6 +4090,35 @@ var Repository114 = class {
|
|
|
4085
4090
|
}
|
|
4086
4091
|
};
|
|
4087
4092
|
|
|
4093
|
+
// src/modules/stock/gmails.ts
|
|
4094
|
+
var gmails_exports = {};
|
|
4095
|
+
__export(gmails_exports, {
|
|
4096
|
+
default: () => Repository115
|
|
4097
|
+
});
|
|
4098
|
+
var Repository115 = class {
|
|
4099
|
+
constructor({ api, route, publicRoute }) {
|
|
4100
|
+
this.api = api;
|
|
4101
|
+
this.route = route;
|
|
4102
|
+
this.publicRoute = publicRoute;
|
|
4103
|
+
}
|
|
4104
|
+
async emails() {
|
|
4105
|
+
const response = await this.api.get(`${this.route}emails`);
|
|
4106
|
+
return response.data;
|
|
4107
|
+
}
|
|
4108
|
+
async executeGmailCommand(selector) {
|
|
4109
|
+
const response = await this.api.post(
|
|
4110
|
+
`${this.route}execute_gmail_command/${selector.id}`
|
|
4111
|
+
);
|
|
4112
|
+
return response.data;
|
|
4113
|
+
}
|
|
4114
|
+
async editPreviewChatMessage(selector) {
|
|
4115
|
+
const response = await this.api.post(
|
|
4116
|
+
`${this.route}edit_preview_chat_message/${selector.id}`
|
|
4117
|
+
);
|
|
4118
|
+
return response.data;
|
|
4119
|
+
}
|
|
4120
|
+
};
|
|
4121
|
+
|
|
4088
4122
|
// src/main.ts
|
|
4089
4123
|
var API = class {
|
|
4090
4124
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4277,6 +4311,7 @@ var API = class {
|
|
|
4277
4311
|
this.DocumentLineMt = new Repository112(getModuleParams("stock", "document_line_mt"));
|
|
4278
4312
|
this.ChatSubscriber = new Repository113(getModuleParams("users", "chat_subscriber"));
|
|
4279
4313
|
this.Tag = new Repository114(getModuleParams("stock", "tag"));
|
|
4314
|
+
this.Gmails = new Repository115(getModuleParams("stock", "gmails"));
|
|
4280
4315
|
}
|
|
4281
4316
|
};
|
|
4282
4317
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.39.1",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "dist/index.
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
12
14
|
"import": "./dist/index.js",
|
|
13
|
-
"
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
18
|
"files": [
|
|
@@ -19,11 +21,12 @@
|
|
|
19
21
|
"scripts": {
|
|
20
22
|
"lint": "eslint --fix",
|
|
21
23
|
"prebuild": "rm -rf dist",
|
|
22
|
-
"build": "tsc --
|
|
24
|
+
"build": "tsc --noEmit && tsup",
|
|
25
|
+
"postbuild": "cp dist/index.js dist/index.cjs",
|
|
23
26
|
"prepack": "npm run lint && npm run build"
|
|
24
27
|
},
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.
|
|
29
|
+
"@nomalism-com/types": "^0.39.8",
|
|
27
30
|
"axios": "^1.9.0"
|
|
28
31
|
},
|
|
29
32
|
"devDependencies": {
|