@zauru-sdk/services 1.0.88 → 1.0.90
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.
|
@@ -325,6 +325,12 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
|
|
|
325
325
|
withShipmentToMyAgency: false,
|
|
326
326
|
withLotStocksToMyAgency: false,
|
|
327
327
|
betweenIssueDate: false,
|
|
328
|
+
withPODetails: true,
|
|
329
|
+
withLots: true,
|
|
330
|
+
withShipmentPurchaseOrders: true,
|
|
331
|
+
withWebAppRows: true,
|
|
332
|
+
payeeCategoryIds: [],
|
|
333
|
+
excludePayeeCategoryIds: [],
|
|
328
334
|
}) => {
|
|
329
335
|
return (0, common_1.handlePossibleAxiosErrors)(async () => {
|
|
330
336
|
const headers = await (0, common_js_1.getGraphQLAPIHeaders)(session);
|
|
@@ -347,6 +353,12 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
|
|
|
347
353
|
betweenIssueDate: config.betweenIssueDate,
|
|
348
354
|
payeeId: config.payeeId,
|
|
349
355
|
id_number: config.id_number,
|
|
356
|
+
withPODetails: config.withPODetails,
|
|
357
|
+
withLots: config.withLots,
|
|
358
|
+
withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
|
|
359
|
+
withWebAppRows: config.withWebAppRows,
|
|
360
|
+
payeeCategoryIds: config.payeeCategoryIds,
|
|
361
|
+
excludePayeeCategoryIds: config.excludePayeeCategoryIds,
|
|
350
362
|
});
|
|
351
363
|
const variables = {
|
|
352
364
|
startDate: (0, common_1.formatDateToUTC)(dates.startDate),
|
|
@@ -305,6 +305,12 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
|
|
|
305
305
|
withShipmentToMyAgency: false,
|
|
306
306
|
withLotStocksToMyAgency: false,
|
|
307
307
|
betweenIssueDate: false,
|
|
308
|
+
withPODetails: true,
|
|
309
|
+
withLots: true,
|
|
310
|
+
withShipmentPurchaseOrders: true,
|
|
311
|
+
withWebAppRows: true,
|
|
312
|
+
payeeCategoryIds: [],
|
|
313
|
+
excludePayeeCategoryIds: [],
|
|
308
314
|
}) => {
|
|
309
315
|
return handlePossibleAxiosErrors(async () => {
|
|
310
316
|
const headers = await getGraphQLAPIHeaders(session);
|
|
@@ -327,6 +333,12 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
|
|
|
327
333
|
betweenIssueDate: config.betweenIssueDate,
|
|
328
334
|
payeeId: config.payeeId,
|
|
329
335
|
id_number: config.id_number,
|
|
336
|
+
withPODetails: config.withPODetails,
|
|
337
|
+
withLots: config.withLots,
|
|
338
|
+
withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
|
|
339
|
+
withWebAppRows: config.withWebAppRows,
|
|
340
|
+
payeeCategoryIds: config.payeeCategoryIds,
|
|
341
|
+
excludePayeeCategoryIds: config.excludePayeeCategoryIds,
|
|
330
342
|
});
|
|
331
343
|
const variables = {
|
|
332
344
|
startDate: formatDateToUTC(dates.startDate),
|
|
@@ -125,7 +125,7 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
|
|
|
125
125
|
endDate: string;
|
|
126
126
|
}, config?: {
|
|
127
127
|
agencyFilter: boolean;
|
|
128
|
-
agencyId?: number;
|
|
128
|
+
agencyId?: number | string;
|
|
129
129
|
id_number?: string;
|
|
130
130
|
useProductionAgencyId?: boolean;
|
|
131
131
|
consolidateIdFilter?: boolean;
|
|
@@ -137,6 +137,12 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
|
|
|
137
137
|
payeeCategoryId?: number | string;
|
|
138
138
|
payeeId?: number | string;
|
|
139
139
|
betweenIssueDate?: boolean;
|
|
140
|
+
withPODetails?: boolean;
|
|
141
|
+
withLots?: boolean;
|
|
142
|
+
withShipmentPurchaseOrders?: boolean;
|
|
143
|
+
withWebAppRows?: boolean;
|
|
144
|
+
payeeCategoryIds?: number[];
|
|
145
|
+
excludePayeeCategoryIds?: number[];
|
|
140
146
|
}) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL[]>>;
|
|
141
147
|
/**
|
|
142
148
|
* deletePurchaseOrder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@remix-run/node": "^2.8.1",
|
|
28
28
|
"@zauru-sdk/common": "^1.0.88",
|
|
29
29
|
"@zauru-sdk/config": "^1.0.60",
|
|
30
|
-
"@zauru-sdk/graphql": "^1.0.
|
|
30
|
+
"@zauru-sdk/graphql": "^1.0.90",
|
|
31
31
|
"@zauru-sdk/types": "^1.0.88",
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "478ab8b28cd8758f4048969c94f6b8962a1751c7"
|
|
36
36
|
}
|