@zauru-sdk/graphql 2.0.150 → 2.0.160
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.
|
@@ -3,7 +3,7 @@ export declare const getPurchaseOrderByIdNumberStringQuery: (id_number: string)
|
|
|
3
3
|
export declare const getPurchaseOrderStringQuery: (id: number, config?: {
|
|
4
4
|
withLotStocks: boolean;
|
|
5
5
|
}) => string;
|
|
6
|
-
export declare const getShipmentsStringQuery: ({ agency_to_id, agency_from_id, suffix, voided, delivered, shipped, returned, id_number_not_null, id_number, id_number_not_empty, withMovementLots, limit, id, wheres, memoILike, }: {
|
|
6
|
+
export declare const getShipmentsStringQuery: ({ agency_to_id, agency_from_id, suffix, voided, delivered, shipped, returned, id_number_not_null, id_number, id_number_not_empty, withMovementLots, withPurchaseOrdersByShipmentReference, limit, id, wheres, memoILike, }: {
|
|
7
7
|
agency_to_id?: number;
|
|
8
8
|
agency_from_id?: number;
|
|
9
9
|
suffix?: string;
|
|
@@ -15,6 +15,7 @@ export declare const getShipmentsStringQuery: ({ agency_to_id, agency_from_id, s
|
|
|
15
15
|
id_number?: string;
|
|
16
16
|
id_number_not_empty?: boolean;
|
|
17
17
|
withMovementLots?: boolean;
|
|
18
|
+
withPurchaseOrdersByShipmentReference?: boolean;
|
|
18
19
|
limit?: number;
|
|
19
20
|
id?: number;
|
|
20
21
|
wheres?: string[];
|
|
@@ -152,7 +152,7 @@ query getPurchaseOrder($id: bigint) @cached {
|
|
|
152
152
|
}
|
|
153
153
|
`;
|
|
154
154
|
exports.getPurchaseOrderStringQuery = getPurchaseOrderStringQuery;
|
|
155
|
-
const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided, delivered, shipped, returned, id_number_not_null = false, id_number, id_number_not_empty = false, withMovementLots = false, limit = 1000, id, wheres, memoILike, }) => {
|
|
155
|
+
const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided, delivered, shipped, returned, id_number_not_null = false, id_number, id_number_not_empty = false, withMovementLots = false, withPurchaseOrdersByShipmentReference = false, limit = 1000, id, wheres, memoILike, }) => {
|
|
156
156
|
let conditions = [];
|
|
157
157
|
if (suffix) {
|
|
158
158
|
conditions.push(`id_number: {_ilike: "%${suffix}%"}`);
|
|
@@ -200,7 +200,22 @@ const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided,
|
|
|
200
200
|
description
|
|
201
201
|
}`
|
|
202
202
|
: "";
|
|
203
|
-
|
|
203
|
+
const purchaseOrdersByShipmentReference = withPurchaseOrdersByShipmentReference
|
|
204
|
+
? `purchase_orders_by_shipment_reference {
|
|
205
|
+
id
|
|
206
|
+
id_number
|
|
207
|
+
created_at
|
|
208
|
+
reference
|
|
209
|
+
purchase_order_details {
|
|
210
|
+
item_id
|
|
211
|
+
id
|
|
212
|
+
reference
|
|
213
|
+
booked_quantity
|
|
214
|
+
delivered_quantity
|
|
215
|
+
}
|
|
216
|
+
}`
|
|
217
|
+
: "";
|
|
218
|
+
return `query getShipments {
|
|
204
219
|
shipments(
|
|
205
220
|
limit: ${limit},
|
|
206
221
|
order_by: {id: desc},
|
|
@@ -232,6 +247,7 @@ const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided,
|
|
|
232
247
|
returned
|
|
233
248
|
returned_at
|
|
234
249
|
returner_id
|
|
250
|
+
${purchaseOrdersByShipmentReference}
|
|
235
251
|
movements {
|
|
236
252
|
id
|
|
237
253
|
booked_quantity
|
|
@@ -404,6 +420,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
404
420
|
other_charges
|
|
405
421
|
consolidate_id
|
|
406
422
|
shipment_reference
|
|
423
|
+
reference
|
|
407
424
|
${purchaseOrderDetails}
|
|
408
425
|
${lots}
|
|
409
426
|
${webAppRows}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.160",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^5.1.6"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "c091846ffc5e1c360a9a5550f0acba3697d4f1f6"
|
|
25
25
|
}
|