@zauru-sdk/services 2.0.90 → 2.0.91
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.
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { arrayToObject, getDatePickerCurrentDate, handlePossibleAxiosErrors, } from "@zauru-sdk/common";
|
|
2
2
|
import { httpZauru } from "./httpZauru.js";
|
|
3
|
-
/**
|
|
4
|
-
* createNewReception
|
|
5
|
-
* @param headers
|
|
6
|
-
* @param body
|
|
7
|
-
* @param purchase_order_id
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
3
|
export async function createNewReception(headers, body, purchase_order_id) {
|
|
11
4
|
return handlePossibleAxiosErrors(async () => {
|
|
12
5
|
const sendBody = {
|
|
@@ -7,9 +7,10 @@ import { AxiosUtilsResponse, PurchaseOrderGraphQL, ReceptionDetailsGraphQL, Rece
|
|
|
7
7
|
* @param purchase_order_id
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type CreateNewPurchaseOrderReceptionType = Omit<Partial<ReceptionGraphQL>, "reception_details"> & {
|
|
11
11
|
reception_details?: Partial<ReceptionDetailsGraphQL>[];
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
|
+
export declare function createNewReception(headers: any, body: CreateNewPurchaseOrderReceptionType, purchase_order_id: number | string): Promise<AxiosUtilsResponse<any>>;
|
|
13
14
|
/**
|
|
14
15
|
* deleteReception
|
|
15
16
|
* @param headers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.91",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "6993b8a585fd7649681cd9ba5b0b391c92e428e7"
|
|
35
35
|
}
|