@zauru-sdk/graphql 1.0.90 → 1.0.92

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.
@@ -29,7 +29,7 @@ export declare const getProvidersStringQuery = "\nquery getProviders {\n paye
29
29
  export declare const getAgenciesStringQuery = "\nquery getAgencies {\n agencies {\n id\n name\n }\n}\n";
30
30
  export declare const getWebAppRowStringQuery = "\nquery getWebAppRow($id: Int){\n webapp_rows(where: {id: {_eq: $id}}) {\n data\n }\n}\n";
31
31
  export declare const getWebAppRowsByWebAppTableIdStringQuery = "\nquery getWebAppRowsByWebAppTableId ($webapp_table_id: Int) {\n webapp_rows (\n where: {\n webapp_table_id: {\n _eq: $webapp_table_id \n }\n },\n order_by: { \n id: desc \n }\n ) {\n id\n data\n created_at\n }\n}\n";
32
- export declare const getPayeeCategoryByIdStringQuery = "\nquery getPayeeCategoryById ($id: Int) {\n payee_categories (where: {id: {_eq: $id }}) {\n payees (order_by: { id: desc }) { \n id\n name\n id_number\n email\n phone\n tin\n active\n address_line_1\n }\n }\n}\n";
32
+ export declare const getPayeeCategoryByIdStringQuery = "\nquery getPayeeCategoryById ($id: Int) {\n payee_categories (where: {id: {_eq: $id }}) {\n payees (order_by: { id: desc }) { \n id\n name\n id_number\n email\n phone\n tin\n active\n address_line_1\n vendor\n }\n }\n}\n";
33
33
  export declare const getPayeeCategoriesByNotesMatchStringQuery: (match: string) => string;
34
34
  export declare const getPayeeCategoriesStringQuery = "\nquery getPayeeCategories {\n payee_categories {\n id\n name\n notes\n payees_count\n price_list_id\n }\n}\n";
35
35
  export declare const getProviderCategoriesStringQuery = "\nquery getProviderCategories {\n payee_categories (where: {vendor: {_eq: true}}) {\n id\n name\n notes\n payees_count\n price_list_id\n }\n}\n";
@@ -240,11 +240,11 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
240
240
  : "created_at: { _gte: $startDate, _lte: $endDate }");
241
241
  }
242
242
  if (config.payeeCategoryIds && config.payeeCategoryIds.length > 0) {
243
- conditions.push(`payee: { payee_category: { id: { _in: ${config.payeeCategoryIds} } } }`);
243
+ conditions.push(`payee: { payee_category: { id: { _in: [${config.payeeCategoryIds.join(",")}] } } }`);
244
244
  }
245
245
  if (config.excludePayeeCategoryIds &&
246
246
  config.excludePayeeCategoryIds.length > 0) {
247
- conditions.push(`payee: { payee_category: { id: { _nin: ${config.excludePayeeCategoryIds} } } }`);
247
+ conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
248
248
  }
249
249
  const whereClause = conditions.length
250
250
  ? `where: { ${conditions.join(", ")} }`
@@ -400,6 +400,7 @@ query getPayeeCategoryById ($id: Int) {
400
400
  tin
401
401
  active
402
402
  address_line_1
403
+ vendor
403
404
  }
404
405
  }
405
406
  }
@@ -240,11 +240,11 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
240
240
  : "created_at: { _gte: $startDate, _lte: $endDate }");
241
241
  }
242
242
  if (config.payeeCategoryIds && config.payeeCategoryIds.length > 0) {
243
- conditions.push(`payee: { payee_category: { id: { _in: ${config.payeeCategoryIds} } } }`);
243
+ conditions.push(`payee: { payee_category: { id: { _in: [${config.payeeCategoryIds.join(",")}] } } }`);
244
244
  }
245
245
  if (config.excludePayeeCategoryIds &&
246
246
  config.excludePayeeCategoryIds.length > 0) {
247
- conditions.push(`payee: { payee_category: { id: { _nin: ${config.excludePayeeCategoryIds} } } }`);
247
+ conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
248
248
  }
249
249
  const whereClause = conditions.length
250
250
  ? `where: { ${conditions.join(", ")} }`
@@ -400,6 +400,7 @@ query getPayeeCategoryById ($id: Int) {
400
400
  tin
401
401
  active
402
402
  address_line_1
403
+ vendor
403
404
  }
404
405
  }
405
406
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
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": "478ab8b28cd8758f4048969c94f6b8962a1751c7"
25
+ "gitHead": "6b061d22b3981be4f09b16fdf1696b69e8c9c1be"
26
26
  }