@nomalism-com/api 0.38.2 → 0.39.0
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 +4290 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -0
- package/package.json +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare class Repository$1H implements Nomalism$1.DocumentHeader.IRepository {
|
|
|
128
128
|
findClientUnpaidDebit(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.DocumentHeader.IUnpaidDocumentResponse[]>;
|
|
129
129
|
findUnpaidCommissions(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.DocumentHeader.IUnpaidDocumentResponse[]>;
|
|
130
130
|
create(body: Nomalism$1.DocumentHeader.ICreateRequest): Promise<Nomalism$1.DocumentHeader.ICreateResponse>;
|
|
131
|
-
createFromHeader(body: Nomalism$1.DocumentHeader.ICreateFromHeaderRequest): Promise<
|
|
131
|
+
createFromHeader(body: Nomalism$1.DocumentHeader.ICreateFromHeaderRequest): Promise<Nomalism$1.shared.ITaskCluster[]>;
|
|
132
132
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.DocumentHeader.IUpdateRequest): Promise<void>;
|
|
133
133
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
134
134
|
getActions(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IGetActionsResponse[]>;
|
|
@@ -166,7 +166,7 @@ declare class Repository$1F implements Nomalism$1.BillOfLading.IRepository {
|
|
|
166
166
|
publicRoute: string;
|
|
167
167
|
private api;
|
|
168
168
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
169
|
-
create(body: Nomalism$1.BillOfLading.ICreateRequest): Promise<
|
|
169
|
+
create(body: Nomalism$1.BillOfLading.ICreateRequest): Promise<Nomalism$1.shared.ITaskCluster[]>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
declare class Repository$1E implements Nomalism$1.ProductionOrder.IRepository {
|
|
@@ -182,7 +182,7 @@ declare class Repository$1D implements Nomalism$1.Proforma.IRepository {
|
|
|
182
182
|
publicRoute: string;
|
|
183
183
|
private api;
|
|
184
184
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
185
|
-
create(data: Nomalism$1.Proforma.ICreateRequest): Promise<
|
|
185
|
+
create(data: Nomalism$1.Proforma.ICreateRequest): Promise<Nomalism$1.shared.ITaskCluster[]>;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
declare class Repository$1C implements Nomalism$1.PropostaFornecedor.IRepository {
|
|
@@ -1328,6 +1328,7 @@ declare class Repository$w implements Nomalism$1.Persona.IRepository {
|
|
|
1328
1328
|
find(data: Nomalism$1.Persona.IFindRequest): Promise<Nomalism$1.Persona.IFindResponse[]>;
|
|
1329
1329
|
findByEmail(data: Nomalism$1.Persona.IFindByEmailRequest): Promise<Nomalism$1.Persona.IFindByEmailResponse[]>;
|
|
1330
1330
|
findClientOrProvider(params: Nomalism$1.Persona.IFindClientOrProviderRequest): Promise<Nomalism$1.Persona.IFindClientOrProviderResponse[]>;
|
|
1331
|
+
findForGmail(params: Nomalism$1.Persona.IFindForGmailRequest): Promise<Nomalism$1.Persona.IFindForGmailResponse | null>;
|
|
1331
1332
|
}
|
|
1332
1333
|
|
|
1333
1334
|
declare namespace persona {
|
|
@@ -1465,7 +1466,7 @@ declare namespace emailTemplateAttachment {
|
|
|
1465
1466
|
export { Repository$n as default };
|
|
1466
1467
|
}
|
|
1467
1468
|
|
|
1468
|
-
declare class Repository$m implements Nomalism$1.Prison.
|
|
1469
|
+
declare class Repository$m implements Nomalism$1.Prison.IApi {
|
|
1469
1470
|
route: string;
|
|
1470
1471
|
publicRoute: string;
|
|
1471
1472
|
private api;
|
package/dist/index.js
CHANGED
|
@@ -3144,6 +3144,10 @@ var Repository82 = class {
|
|
|
3144
3144
|
const response = await this.api.get(`${this.route}find_client_or_provider`, { params });
|
|
3145
3145
|
return response.data;
|
|
3146
3146
|
}
|
|
3147
|
+
async findForGmail(params) {
|
|
3148
|
+
const response = await this.api.get(`${this.route}for_gmail`, { params });
|
|
3149
|
+
return response.data;
|
|
3150
|
+
}
|
|
3147
3151
|
};
|
|
3148
3152
|
|
|
3149
3153
|
// src/modules/integration/projectInfo.ts
|
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.0",
|
|
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.2",
|
|
27
30
|
"axios": "^1.9.0"
|
|
28
31
|
},
|
|
29
32
|
"devDependencies": {
|