@zauru-sdk/graphql 1.0.83 → 1.0.89
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/GraphQL.queries.d.ts +5 -1
- package/dist/cjs/GraphQL.queries.js +40 -36
- package/dist/esm/GraphQL.queries.js +40 -36
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export declare const getPurchaseOrderStringQuery: (config?: {
|
|
|
6
6
|
export declare const getShipmentsByToAgencyLast100StringQuery = "\nquery getShipmentsByToAgencyLast100(\n $agency_to_id: Int\n ){\n shipments(limit: 100, order_by: {id: desc}, where: {voided: {_eq: false}, shipped: {_eq: false}, delivered: {_eq: false}, agency_to_id: {_eq: $agency_to_id}}) {\n id\n zid\n id_number\n reference\n needs_transport\n payee_id\n income\n booker_id\n agency_from_id\n agency_to_id\n transporter_id\n created_at\n movements {\n id\n booked_quantity\n delivered_quantity\n reference\n lot {\n id\n name\n description\n }\n }\n }\n }\n";
|
|
7
7
|
export declare const getLotsByNameStringQuery = "\nquery getLots($name: String, $entity_id: Int){\n lots (limit: 100, order_by: {id: desc}, where: {entity_id: {_eq: $entity_id}, name: {_eq: $name}}) {\n id\n name\n description\n }\n}\n";
|
|
8
8
|
export declare const getLotStocksByAgencyIdStringQuery = "\nquery getLotStocksByAgencyId($agency_id: Int){\n lot_stocks (\n order_by: { id: desc },\n where: { agency_id: { _eq: $agency_id }}\n ){\n id\n available\n lot_id\n lot {\n id\n item_id\n expires\n }\n }\n}\n";
|
|
9
|
-
export declare const getPurchaseOrdersBetweenDatesStringQuery: (config
|
|
9
|
+
export declare const getPurchaseOrdersBetweenDatesStringQuery: (config: {
|
|
10
10
|
agencyId?: number | string;
|
|
11
11
|
itemId?: number | string;
|
|
12
12
|
payeeCategoryId?: number | string;
|
|
@@ -17,6 +17,10 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (config?: {
|
|
|
17
17
|
withLotStocks?: boolean;
|
|
18
18
|
betweenIssueDate?: boolean;
|
|
19
19
|
id_number?: string;
|
|
20
|
+
withPODetails?: boolean;
|
|
21
|
+
withLots?: boolean;
|
|
22
|
+
withShipmentPurchaseOrders?: boolean;
|
|
23
|
+
withWebAppRows?: boolean;
|
|
20
24
|
}) => string;
|
|
21
25
|
export declare const getPayeesStringQuery = "\nquery getPayees {\n payees {\n id\n id_number\n name\n tin\n vendor\n address_line_1\n }\n}\n";
|
|
22
26
|
export declare const getProvidersStringQuery = "\nquery getProviders {\n payees (where: {vendor: {_eq: true}}) {\n id\n id_number\n name\n tin\n address_line_1\n }\n}\n";
|
|
@@ -204,11 +204,7 @@ query getLotStocksByAgencyId($agency_id: Int){
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
`;
|
|
207
|
-
const getPurchaseOrdersBetweenDatesStringQuery = (config
|
|
208
|
-
consolidateIdFilter: false,
|
|
209
|
-
withLotStocks: false,
|
|
210
|
-
betweenIssueDate: false,
|
|
211
|
-
}) => {
|
|
207
|
+
const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
|
|
212
208
|
const conditions = [];
|
|
213
209
|
if (config.agencyId) {
|
|
214
210
|
conditions.push(`agency_id: { _eq: ${config.agencyId} }`);
|
|
@@ -280,38 +276,46 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
280
276
|
discount
|
|
281
277
|
other_charges
|
|
282
278
|
consolidate_id
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
279
|
+
${config.withPODetails
|
|
280
|
+
? `purchase_order_details {
|
|
281
|
+
item_id
|
|
282
|
+
id
|
|
283
|
+
reference
|
|
284
|
+
booked_quantity
|
|
285
|
+
delivered_quantity
|
|
286
|
+
}`
|
|
287
|
+
: ""}
|
|
288
|
+
${config.withLots
|
|
289
|
+
? `lots {
|
|
290
|
+
id
|
|
291
|
+
name
|
|
292
|
+
description
|
|
293
|
+
${lotStocksFragment}
|
|
294
|
+
}`
|
|
295
|
+
: ""}
|
|
296
|
+
${config.withWebAppRows
|
|
297
|
+
? `webapp_table_rowables {
|
|
298
|
+
webapp_rows {
|
|
299
|
+
data
|
|
300
|
+
}
|
|
301
|
+
}`
|
|
302
|
+
: ""}
|
|
303
|
+
${config.withShipmentPurchaseOrders
|
|
304
|
+
? `shipment_purchase_orders {
|
|
305
|
+
shipment {
|
|
306
|
+
id
|
|
307
|
+
zid
|
|
308
|
+
id_number
|
|
309
|
+
reference
|
|
310
|
+
needs_transport
|
|
311
|
+
payee_id
|
|
312
|
+
income
|
|
313
|
+
booker_id
|
|
314
|
+
agency_from_id
|
|
315
|
+
agency_to_id
|
|
299
316
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
shipment {
|
|
303
|
-
id
|
|
304
|
-
zid
|
|
305
|
-
id_number
|
|
306
|
-
reference
|
|
307
|
-
needs_transport
|
|
308
|
-
payee_id
|
|
309
|
-
income
|
|
310
|
-
booker_id
|
|
311
|
-
agency_from_id
|
|
312
|
-
agency_to_id
|
|
313
|
-
}
|
|
314
|
-
}
|
|
317
|
+
}`
|
|
318
|
+
: ""}
|
|
315
319
|
}
|
|
316
320
|
}
|
|
317
321
|
`;
|
|
@@ -204,11 +204,7 @@ query getLotStocksByAgencyId($agency_id: Int){
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
`;
|
|
207
|
-
const getPurchaseOrdersBetweenDatesStringQuery = (config
|
|
208
|
-
consolidateIdFilter: false,
|
|
209
|
-
withLotStocks: false,
|
|
210
|
-
betweenIssueDate: false,
|
|
211
|
-
}) => {
|
|
207
|
+
const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
|
|
212
208
|
const conditions = [];
|
|
213
209
|
if (config.agencyId) {
|
|
214
210
|
conditions.push(`agency_id: { _eq: ${config.agencyId} }`);
|
|
@@ -280,38 +276,46 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
280
276
|
discount
|
|
281
277
|
other_charges
|
|
282
278
|
consolidate_id
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
279
|
+
${config.withPODetails
|
|
280
|
+
? `purchase_order_details {
|
|
281
|
+
item_id
|
|
282
|
+
id
|
|
283
|
+
reference
|
|
284
|
+
booked_quantity
|
|
285
|
+
delivered_quantity
|
|
286
|
+
}`
|
|
287
|
+
: ""}
|
|
288
|
+
${config.withLots
|
|
289
|
+
? `lots {
|
|
290
|
+
id
|
|
291
|
+
name
|
|
292
|
+
description
|
|
293
|
+
${lotStocksFragment}
|
|
294
|
+
}`
|
|
295
|
+
: ""}
|
|
296
|
+
${config.withWebAppRows
|
|
297
|
+
? `webapp_table_rowables {
|
|
298
|
+
webapp_rows {
|
|
299
|
+
data
|
|
300
|
+
}
|
|
301
|
+
}`
|
|
302
|
+
: ""}
|
|
303
|
+
${config.withShipmentPurchaseOrders
|
|
304
|
+
? `shipment_purchase_orders {
|
|
305
|
+
shipment {
|
|
306
|
+
id
|
|
307
|
+
zid
|
|
308
|
+
id_number
|
|
309
|
+
reference
|
|
310
|
+
needs_transport
|
|
311
|
+
payee_id
|
|
312
|
+
income
|
|
313
|
+
booker_id
|
|
314
|
+
agency_from_id
|
|
315
|
+
agency_to_id
|
|
299
316
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
shipment {
|
|
303
|
-
id
|
|
304
|
-
zid
|
|
305
|
-
id_number
|
|
306
|
-
reference
|
|
307
|
-
needs_transport
|
|
308
|
-
payee_id
|
|
309
|
-
income
|
|
310
|
-
booker_id
|
|
311
|
-
agency_from_id
|
|
312
|
-
agency_to_id
|
|
313
|
-
}
|
|
314
|
-
}
|
|
317
|
+
}`
|
|
318
|
+
: ""}
|
|
315
319
|
}
|
|
316
320
|
}
|
|
317
321
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "289145b578d297a2247e5017c894d3a2e1fd6629"
|
|
26
26
|
}
|