@zauru-sdk/services 2.3.1 → 2.4.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.
|
@@ -293,12 +293,16 @@ export const getLast100Receptions = (session, agency_id) => {
|
|
|
293
293
|
*/
|
|
294
294
|
export const getPurchaseOrder = (session, poId, config = {
|
|
295
295
|
withLotStocksToMyAgency: false,
|
|
296
|
+
withPayee: false,
|
|
297
|
+
withReceptions: true,
|
|
296
298
|
}) => {
|
|
297
299
|
return handlePossibleAxiosErrors(async () => {
|
|
298
300
|
const headers = await getGraphQLAPIHeaders(session);
|
|
299
301
|
const response = await httpGraphQLAPI.post("", {
|
|
300
302
|
query: getPurchaseOrderStringQuery(Number(poId), {
|
|
301
303
|
withLotStocks: config.withLotStocksToMyAgency,
|
|
304
|
+
withPayee: config.withPayee,
|
|
305
|
+
withReceptions: config.withReceptions,
|
|
302
306
|
}),
|
|
303
307
|
}, { headers });
|
|
304
308
|
if (response.data.errors) {
|
|
@@ -133,6 +133,8 @@ export declare const getLast100Receptions: (session: Session, agency_id?: number
|
|
|
133
133
|
*/
|
|
134
134
|
export declare const getPurchaseOrder: (session: Session, poId: string | number, config?: {
|
|
135
135
|
withLotStocksToMyAgency: boolean;
|
|
136
|
+
withPayee: boolean;
|
|
137
|
+
withReceptions: boolean;
|
|
136
138
|
}) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL>>;
|
|
137
139
|
/**
|
|
138
140
|
* getGraphQLPurchaseOrderBetweenDates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@upstash/redis": "^1.34.5",
|
|
28
28
|
"@zauru-sdk/common": "^2.3.1",
|
|
29
29
|
"@zauru-sdk/config": "^2.0.220",
|
|
30
|
-
"@zauru-sdk/graphql": "^2.
|
|
30
|
+
"@zauru-sdk/graphql": "^2.4.0",
|
|
31
31
|
"@zauru-sdk/types": "^2.3.1",
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "322aeeae8a6462b8d9877918a5c2f320d6fd9b87"
|
|
36
36
|
}
|