@zauru-sdk/graphql 2.0.41 → 2.0.45

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,12 +3,15 @@ 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, 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, limit, id, wheres, memoILike, }: {
7
7
  agency_to_id?: number;
8
8
  agency_from_id?: number;
9
9
  suffix?: string;
10
10
  id_number_not_null?: boolean;
11
11
  voided?: boolean;
12
+ delivered?: boolean;
13
+ shipped?: boolean;
14
+ returned?: boolean;
12
15
  id_number?: string;
13
16
  id_number_not_empty?: boolean;
14
17
  withMovementLots?: boolean;
@@ -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, 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, limit = 1000, id, wheres, memoILike, }) => {
156
156
  let conditions = [];
157
157
  conditions.push(`voided: {_eq: ${voided}}`);
158
158
  if (suffix) {
@@ -182,6 +182,18 @@ const getShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided
182
182
  if (memoILike) {
183
183
  conditions.push(`memo: {_ilike: "%${memoILike}%"}`);
184
184
  }
185
+ if (voided !== undefined) {
186
+ conditions.push(`voided: {_eq: ${voided}}`);
187
+ }
188
+ if (delivered !== undefined) {
189
+ conditions.push(`delivered: {_eq: ${delivered}}`);
190
+ }
191
+ if (shipped !== undefined) {
192
+ conditions.push(`shipped: {_eq: ${shipped}}`);
193
+ }
194
+ if (returned !== undefined) {
195
+ conditions.push(`returned: {_eq: ${returned}}`);
196
+ }
185
197
  const movementLots = withMovementLots
186
198
  ? `lot {
187
199
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.41",
3
+ "version": "2.0.45",
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": "f509e381e349e72425d9ba0217e1ed5a2eb16461"
24
+ "gitHead": "c40eaca1e20f74dde80e58dbb492b0444ca3085a"
25
25
  }