@zauru-sdk/graphql 2.0.33 → 2.0.37
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, id_number_not_null, id_number, id_number_not_empty, withMovementLots, limit, id, wheres, }: {
|
|
6
|
+
export declare const getShipmentsStringQuery: ({ agency_to_id, agency_from_id, suffix, voided, id_number_not_null, id_number, id_number_not_empty, withMovementLots, 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
|
limit?: number;
|
|
16
16
|
id?: number;
|
|
17
17
|
wheres?: string[];
|
|
18
|
+
memoILike?: string;
|
|
18
19
|
}) => string;
|
|
19
20
|
export declare const getLotsByNameStringQuery: (name: string, entity_id: number) => string;
|
|
20
21
|
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 getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided = false, id_number_not_null = false, id_number, id_number_not_empty = false, withMovementLots = false, limit = 1000, id, wheres, }) => {
|
|
155
|
+
const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided = false, id_number_not_null = false, id_number, id_number_not_empty = false, withMovementLots = false, limit = 1000, id, wheres, memoILike, }) => {
|
|
156
156
|
let conditions = [];
|
|
157
157
|
conditions.push(`voided: {_eq: ${voided}}`);
|
|
158
158
|
if (suffix) {
|
|
@@ -179,6 +179,9 @@ const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided
|
|
|
179
179
|
if (wheres) {
|
|
180
180
|
conditions.push(...wheres);
|
|
181
181
|
}
|
|
182
|
+
if (memoILike) {
|
|
183
|
+
conditions.push(`memo: {_ilike: "%${memoILike}%"}`);
|
|
184
|
+
}
|
|
182
185
|
const movementLots = withMovementLots
|
|
183
186
|
? `lot {
|
|
184
187
|
id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.37",
|
|
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": "1cffa483337722e7e3b875db9dad31132a99c5bb"
|
|
25
25
|
}
|