@zauru-sdk/services 2.0.56 → 2.0.57

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.
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "../zauru/httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "../zauru/httpGraphQL.js";
4
4
  /**
5
5
  * getGeneralQuery
6
6
  * @param headers
@@ -33,5 +33,4 @@ axiosInstance.interceptors.response.use(function (response) {
33
33
  console.log(chalk.red(`${msgError}`));
34
34
  throw new Error(msgError);
35
35
  });
36
- const httpGraphQLAPI = axiosInstance;
37
- export default httpGraphQLAPI;
36
+ export const httpGraphQLAPI = axiosInstance;
@@ -33,5 +33,4 @@ axiosInstance.interceptors.response.use(function (response) {
33
33
  console.log(chalk.red(`${msgError}`));
34
34
  throw new Error(msgError);
35
35
  });
36
- const httpOauth = axiosInstance;
37
- export default httpOauth;
36
+ export const httpOauth = axiosInstance;
@@ -1,5 +1,5 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
- import httpGraphQLAPI from "./httpGraphQL.js";
2
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
3
3
  import { getAgenciesStringQuery } from "@zauru-sdk/graphql";
4
4
  import { getGraphQLAPIHeaders } from "../common.js";
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { arrayToObject, handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { httpZauru } from "./httpZauru.js";
3
3
  import { getGraphQLAPIHeaders } from "../common.js";
4
- import httpGraphQLAPI from "./httpGraphQL.js";
4
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
5
5
  import { getShipmentsStringQuery } from "@zauru-sdk/graphql";
6
6
  /**
7
7
  * insertBookings
@@ -1,6 +1,6 @@
1
1
  import { arrayToObject, handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getBundleByNameStringQuery, getBundlesByItemCategoryIdStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getCasesByResponsibleIdStringQuery } from "@zauru-sdk/graphql";
5
5
  /**
6
6
  * getCasesByResponsibleId
@@ -1,7 +1,7 @@
1
1
  import { formatDateToUTC, handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { httpZauru } from "./httpZauru.js";
3
3
  import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
4
- import httpGraphQLAPI from "./httpGraphQL.js";
4
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
5
5
  import { getConsolidatesBetweenDatesStringQuery } from "@zauru-sdk/graphql";
6
6
  /**
7
7
  *
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getCurrenciesStringQuery } from "@zauru-sdk/graphql";
5
5
  /**
6
6
  * getCurrencies
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getEmployeesByAgencyIdStringQuery, getEmployeesStringQuery, } from "@zauru-sdk/graphql";
5
5
  export async function getEmployees(session) {
6
6
  return handlePossibleAxiosErrors(async () => {
@@ -1,6 +1,6 @@
1
1
  import { arrayToObject, convertToFormData, handlePossibleAxiosErrors, } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getAllFormsStringQuery, getFormByNameStringQuery, getFormSubmissionByIdStringQuery, getFormsByDocumentTypeStringQuery, getFormsStringQuery, getInvoiceFormSubmissionsByAgencyIdStringQuery, getInvoiceFormSubmissionsByInvoiceIdStringQuery, getLastInvoiceFormSubmissionStringQuery, getMyCaseFormSubmissionsStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { arrayToObject, handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getInvoicesByAgencyIdStringQuery } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { extractValueBetweenTags, handlePossibleAxiosErrors, } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getItemByNameStringQuery, getItemCategoryByIdStringQuery, getItemsByCategoryStringQuery, getItemsBySuperCategoryStringQuery, getItemsStringQuery, getSuperCategoryByIdStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  //============================ FORMATEADO DE ITEMS
@@ -3,7 +3,7 @@ import moment from "moment";
3
3
  import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
4
4
  import { httpZauru } from "./httpZauru.js";
5
5
  import { createLoteRecord } from "./zauru-lote-record.js";
6
- import httpGraphQLAPI from "./httpGraphQL.js";
6
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
7
7
  import { getLotStocksByAgencyIdStringQuery, getLotsByNameStringQuery, } from "@zauru-sdk/graphql";
8
8
  import { getDeliveriesDataTables } from "./zauru-deliveries.js";
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
- import httpGraphQLAPI from "./httpGraphQL.js";
2
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
3
3
  import { getGraphQLAPIHeaders } from "../common.js";
4
4
  import { getClientCategoriesStringQuery, getPayeeByIdStringQuery, getPayeeCategoriesByNotesMatchStringQuery, getPayeeCategoriesStringQuery, getPayeeCategoryByIdStringQuery, getPayeesStringQuery, getProviderCategoriesStringQuery, getProvidersStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getPaymentMethodsStringQuery } from "@zauru-sdk/graphql";
5
5
  /**
6
6
  * getPaymentTerms
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getPaymentTermByIdStringQuery, getPaymentTermsStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
- import httpGraphQLAPI from "./httpGraphQL.js";
2
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
3
3
  import { getGraphQLAPIHeaders } from "../common.js";
4
4
  import { getPrintTemplatesStringQuery } from "@zauru-sdk/graphql";
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { httpZauru } from "./httpZauru.js";
2
- import httpOauth from "./httpOauth.js";
2
+ import { httpOauth } from "./httpOauth.js";
3
3
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
4
4
  import { config } from "@zauru-sdk/config";
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { arrayToObject, convertToFormData, formatDateToUTC, getBasketsSchema, handlePossibleAxiosErrors, reduceAdd, } from "@zauru-sdk/common";
2
2
  import { httpZauru } from "./httpZauru.js";
3
3
  import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
4
- import httpGraphQLAPI from "./httpGraphQL.js";
4
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
5
5
  import { getLast100ReceptionsStringQuery, getPurchaseOrderByIdNumberStringQuery, getPurchaseOrderStringQuery, getPurchaseOrdersBetweenDatesStringQuery, } from "@zauru-sdk/graphql";
6
6
  /**
7
7
  * markAsReceivePurchaseOrder
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getShipmentsStringQuery } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { httpZauru } from "./httpZauru.js";
3
3
  import { getGraphQLAPIHeaders } from "../common.js";
4
- import httpGraphQLAPI from "./httpGraphQL.js";
4
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
5
5
  import { getSuggestedPricesStringQuery } from "@zauru-sdk/graphql";
6
6
  /**
7
7
  *
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
3
- import httpGraphQLAPI from "./httpGraphQL.js";
3
+ import { httpGraphQLAPI } from "./httpGraphQL.js";
4
4
  import { getWebAppRowStringQuery, getWebAppRowsByWebAppTableIdStringQuery, } from "@zauru-sdk/graphql";
5
5
  import { httpZauru } from "./httpZauru.js";
6
6
  /**
@@ -1,2 +1 @@
1
- declare const httpGraphQLAPI: import("axios").AxiosInstance;
2
- export default httpGraphQLAPI;
1
+ export declare const httpGraphQLAPI: import("axios").AxiosInstance;
@@ -1,2 +1 @@
1
- declare const httpOauth: import("axios").AxiosInstance;
2
- export default httpOauth;
1
+ export declare const httpOauth: import("axios").AxiosInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.56",
3
+ "version": "2.0.57",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -31,5 +31,5 @@
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "f9ddbf6017cf7b1afff51c9e4edfb11ba2ea1bb6"
34
+ "gitHead": "89fb737a69cdfe0edaea2c550c47df76eecd93b1"
35
35
  }