@zauru-sdk/graphql 2.0.117 → 2.0.150

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.
@@ -40,6 +40,7 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
40
40
  payeeCategoryIds?: number[];
41
41
  excludePayeeCategoryIds?: number[];
42
42
  shipment_reference?: string;
43
+ agencyNameIlike?: string;
43
44
  discountComparisonOperator?: "_eq" | "_neq" | "_gte" | "_lte" | "_gt" | "_lt";
44
45
  discount?: number;
45
46
  excludeVoided?: boolean;
@@ -62,7 +63,7 @@ export declare const getItemsStringQuery = "\nquery getItems {\n items (where:
62
63
  export declare const getItemsBySuperCategoryStringQuery: (id: number, agency_id: number) => string;
63
64
  export declare const getConsolidatesBetweenDatesStringQuery: (startDate: string, endDate: string) => string;
64
65
  export declare const getEmployeeProfileStringQuery: (id: number) => string;
65
- export declare const getEmployeesStringQuery = "\nquery getEmployees {\n employees {\n name\n id\n user_id\n email\n seller\n active\n position\n }\n}\n";
66
+ export declare const getEmployeesStringQuery = "\nquery getEmployees {\n employees {\n name\n id\n user_id\n email\n seller\n accountant\n buyer\n support_agent\n inventory_controller\n active\n position\n }\n}\n";
66
67
  export declare const getEmployeesByAgencyIdStringQuery: (id: number) => string;
67
68
  export declare const getBundlesByItemCategoryIdStringQuery: (id: number) => string;
68
69
  export declare const getBundleByNameStringQuery: (name: string) => string;
@@ -290,6 +290,9 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
290
290
  if (config.shipment_reference) {
291
291
  conditions.push(`shipment_reference: { _eq: "${config.shipment_reference}" }`);
292
292
  }
293
+ if (config.agencyNameIlike) {
294
+ conditions.push(`agency: { name: { _ilike: "%${config.agencyNameIlike}%" } }`);
295
+ }
293
296
  if (config.payeeId || config.payeeCategoryId) {
294
297
  const payeeConditions = [];
295
298
  if (config.payeeId) {
@@ -681,6 +684,10 @@ query getEmployees {
681
684
  user_id
682
685
  email
683
686
  seller
687
+ accountant
688
+ buyer
689
+ support_agent
690
+ inventory_controller
684
691
  active
685
692
  position
686
693
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.117",
3
+ "version": "2.0.150",
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": "21371efc5be5d92965693d1818c000e0592d8aef"
24
+ "gitHead": "1f6adb96c6a67b4cc460301d8c0b67bb0446e2a5"
25
25
  }