@nomalism-com/api 0.43.71 → 0.43.72
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
CHANGED
|
@@ -2932,6 +2932,15 @@ var Repository81 = class {
|
|
|
2932
2932
|
const response = await this.api.get(`${this.route}`, { params });
|
|
2933
2933
|
return response.data;
|
|
2934
2934
|
}
|
|
2935
|
+
async previewRegroupLinesInProviderOrder({
|
|
2936
|
+
id
|
|
2937
|
+
}) {
|
|
2938
|
+
const response = await this.api.get(`${this.route}regroup/${id}`);
|
|
2939
|
+
return response.data;
|
|
2940
|
+
}
|
|
2941
|
+
async regroupLinesInProviderOrder({ id }) {
|
|
2942
|
+
await this.api.post(`${this.route}regroup/${id}`);
|
|
2943
|
+
}
|
|
2935
2944
|
};
|
|
2936
2945
|
|
|
2937
2946
|
// src/modules/document/purchase.ts
|
|
@@ -11,4 +11,6 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
11
11
|
undoProviderOrder(data: Nomalism.Order.IUndoProviderOrderRequest): Promise<void>;
|
|
12
12
|
conferirEncomendaCliente(data: Nomalism.Order.IConferirEncomendaClienteRequest): Promise<Nomalism.Order.IConferirEncomendaClienteResponse[]>;
|
|
13
13
|
find(params: Nomalism.Order.IFindRequest): Promise<Nomalism.Order.IFindResponse[]>;
|
|
14
|
+
previewRegroupLinesInProviderOrder({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.Order.IPreviewResponse>;
|
|
15
|
+
regroupLinesInProviderOrder({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
14
16
|
}
|
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": "0.43.
|
|
4
|
+
"version": "0.43.72",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.43.
|
|
26
|
+
"@nomalism-com/types": "^0.43.95",
|
|
27
27
|
"axios": "^1.14.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
31
|
-
"@types/node": "^24.12.
|
|
30
|
+
"@swc/core": "^1.15.24",
|
|
31
|
+
"@types/node": "^24.12.2",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.58.0",
|
|
34
34
|
"eslint": "^9.39.4",
|