@nomalism-com/api 0.39.6 → 0.39.8
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.d.ts +4 -4
- package/dist/index.js +1 -1
- package/package.json +4 -7
- package/dist/index.cjs +0 -4326
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare class Repository$1I 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<void>;
|
|
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$1G 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<void>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
declare class Repository$1F implements Nomalism$1.ProductionOrder.IRepository {
|
|
@@ -182,7 +182,7 @@ declare class Repository$1E 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<void>;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
declare class Repository$1D implements Nomalism$1.PropostaFornecedor.IRepository {
|
|
@@ -1466,7 +1466,7 @@ declare namespace emailTemplateAttachment {
|
|
|
1466
1466
|
export { Repository$o as default };
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
|
-
declare class Repository$n implements Nomalism$1.Prison.
|
|
1469
|
+
declare class Repository$n implements Nomalism$1.Prison.IRepository {
|
|
1470
1470
|
route: string;
|
|
1471
1471
|
publicRoute: string;
|
|
1472
1472
|
private api;
|
package/dist/index.js
CHANGED
|
@@ -4118,7 +4118,7 @@ var Repository115 = class {
|
|
|
4118
4118
|
async editPreviewChatMessage(selector, data) {
|
|
4119
4119
|
const response = await this.api.post(
|
|
4120
4120
|
`${this.route}edit_preview_chat_message/${selector.id}`,
|
|
4121
|
-
|
|
4121
|
+
data
|
|
4122
4122
|
);
|
|
4123
4123
|
return response.data;
|
|
4124
4124
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
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.39.
|
|
4
|
+
"version": "0.39.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "./dist/index.js",
|
|
8
|
+
"main": "dist/index.js",
|
|
10
9
|
"types": "./dist/index.d.ts",
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
12
|
"import": "./dist/index.js",
|
|
15
|
-
"
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
16
14
|
}
|
|
17
15
|
},
|
|
18
16
|
"files": [
|
|
@@ -21,8 +19,7 @@
|
|
|
21
19
|
"scripts": {
|
|
22
20
|
"lint": "eslint --fix",
|
|
23
21
|
"prebuild": "rm -rf dist",
|
|
24
|
-
"build": "tsc --
|
|
25
|
-
"postbuild": "cp dist/index.js dist/index.cjs",
|
|
22
|
+
"build": "tsc --emitDeclarationOnly && tsup",
|
|
26
23
|
"prepack": "npm run lint && npm run build"
|
|
27
24
|
},
|
|
28
25
|
"dependencies": {
|