@zauru-sdk/graphql 2.0.30 → 2.0.31
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 getLast100ShipmentsStringQuery: ({ agency_to_id, suffix, voided, shipped, delivered, id_number_not_null,
|
|
6
|
+
export declare const getLast100ShipmentsStringQuery: ({ agency_to_id, suffix, voided, shipped, delivered, id_number_not_null, id_number, id_number_not_empty, }: {
|
|
7
7
|
agency_to_id?: number;
|
|
8
8
|
suffix?: string;
|
|
9
9
|
id_number_not_null?: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const getLast100ShipmentsStringQuery: ({ agency_to_id, suffix, vo
|
|
|
11
11
|
shipped?: boolean;
|
|
12
12
|
delivered?: boolean;
|
|
13
13
|
id_number?: string;
|
|
14
|
-
|
|
14
|
+
id_number_not_empty?: boolean;
|
|
15
15
|
}) => string;
|
|
16
16
|
export declare const getLotsByNameStringQuery: (name: string, entity_id: number) => string;
|
|
17
17
|
export declare const getLotStocksByAgencyIdStringQuery: (agency_id: number) => string;
|
|
@@ -152,7 +152,7 @@ query getPurchaseOrder($id: bigint) @cached {
|
|
|
152
152
|
}
|
|
153
153
|
`;
|
|
154
154
|
exports.getPurchaseOrderStringQuery = getPurchaseOrderStringQuery;
|
|
155
|
-
const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, voided = false, shipped = false, delivered = false, id_number_not_null = false,
|
|
155
|
+
const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, voided = false, shipped = false, delivered = false, id_number_not_null = false, id_number, id_number_not_empty = false, }) => {
|
|
156
156
|
let conditions = [];
|
|
157
157
|
conditions.push(`voided: {_eq: ${voided}}`);
|
|
158
158
|
conditions.push(`shipped: {_eq: ${shipped}}`);
|
|
@@ -163,14 +163,14 @@ const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, voided = false,
|
|
|
163
163
|
if (agency_to_id) {
|
|
164
164
|
conditions.push(`agency_to_id: {_eq: ${agency_to_id}}`);
|
|
165
165
|
}
|
|
166
|
-
if (id_number_not_null) {
|
|
167
|
-
conditions.push(`id_number: {_is_null: false}`);
|
|
168
|
-
}
|
|
169
166
|
if (id_number) {
|
|
170
167
|
conditions.push(`id_number: {_eq: "${id_number}"}`);
|
|
171
168
|
}
|
|
172
|
-
if (
|
|
173
|
-
conditions.push(`id_number: {_neq: "
|
|
169
|
+
if (id_number_not_empty) {
|
|
170
|
+
conditions.push(`id_number: {_neq: ""}`);
|
|
171
|
+
}
|
|
172
|
+
if (id_number_not_null) {
|
|
173
|
+
conditions.push(`id_number: {_is_null: false}`);
|
|
174
174
|
}
|
|
175
175
|
return `query getLast100Shipments {
|
|
176
176
|
shipments(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
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": "06b14f4fc6a5a06dba2e0ad910afbc57c9448d7d"
|
|
25
25
|
}
|