@zauru-sdk/services 1.0.71 → 1.0.73
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.
package/dist/cjs/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __exportStar(require("./zauru/zauru-motivos-rechazo.js"), exports);
|
|
|
39
39
|
__exportStar(require("./zauru/zauru-payees.js"), exports);
|
|
40
40
|
__exportStar(require("./zauru/zauru-payment-terms.js"), exports);
|
|
41
41
|
__exportStar(require("./zauru/zauru-price-lists.js"), exports);
|
|
42
|
+
__exportStar(require("./zauru/zauru-print-templates.js"), exports);
|
|
42
43
|
__exportStar(require("./zauru/zauru-purchase-orders.js"), exports);
|
|
43
44
|
__exportStar(require("./zauru/zauru-profiles.js"), exports);
|
|
44
45
|
__exportStar(require("./zauru/zauru-receptions.js"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getPrintTemplates = void 0;
|
|
7
|
+
const common_1 = require("@zauru-sdk/common");
|
|
8
|
+
const httpGraphQL_js_1 = __importDefault(require("./httpGraphQL.js"));
|
|
9
|
+
const common_js_1 = require("../common.js");
|
|
10
|
+
const graphql_1 = require("@zauru-sdk/graphql");
|
|
11
|
+
/**
|
|
12
|
+
* getPayees
|
|
13
|
+
* @param headers
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
async function getPrintTemplates(session) {
|
|
17
|
+
return (0, common_1.handlePossibleAxiosErrors)(async () => {
|
|
18
|
+
const headers = await (0, common_js_1.getGraphQLAPIHeaders)(session);
|
|
19
|
+
const response = await httpGraphQL_js_1.default.post(``, {
|
|
20
|
+
query: graphql_1.getPrintTemplatesStringQuery,
|
|
21
|
+
}, {
|
|
22
|
+
headers,
|
|
23
|
+
});
|
|
24
|
+
return response.data?.data.print_templates;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exports.getPrintTemplates = getPrintTemplates;
|
package/dist/esm/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./zauru/zauru-motivos-rechazo.js";
|
|
|
23
23
|
export * from "./zauru/zauru-payees.js";
|
|
24
24
|
export * from "./zauru/zauru-payment-terms.js";
|
|
25
25
|
export * from "./zauru/zauru-price-lists.js";
|
|
26
|
+
export * from "./zauru/zauru-print-templates.js";
|
|
26
27
|
export * from "./zauru/zauru-purchase-orders.js";
|
|
27
28
|
export * from "./zauru/zauru-profiles.js";
|
|
28
29
|
export * from "./zauru/zauru-receptions.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
|
|
2
|
+
import httpGraphQLAPI from "./httpGraphQL.js";
|
|
3
|
+
import { getGraphQLAPIHeaders } from "../common.js";
|
|
4
|
+
import { getPrintTemplatesStringQuery } from "@zauru-sdk/graphql";
|
|
5
|
+
/**
|
|
6
|
+
* getPayees
|
|
7
|
+
* @param headers
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export async function getPrintTemplates(session) {
|
|
11
|
+
return handlePossibleAxiosErrors(async () => {
|
|
12
|
+
const headers = await getGraphQLAPIHeaders(session);
|
|
13
|
+
const response = await httpGraphQLAPI.post(``, {
|
|
14
|
+
query: getPrintTemplatesStringQuery,
|
|
15
|
+
}, {
|
|
16
|
+
headers,
|
|
17
|
+
});
|
|
18
|
+
return response.data?.data.print_templates;
|
|
19
|
+
});
|
|
20
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./zauru/zauru-motivos-rechazo.js";
|
|
|
23
23
|
export * from "./zauru/zauru-payees.js";
|
|
24
24
|
export * from "./zauru/zauru-payment-terms.js";
|
|
25
25
|
export * from "./zauru/zauru-price-lists.js";
|
|
26
|
+
export * from "./zauru/zauru-print-templates.js";
|
|
26
27
|
export * from "./zauru/zauru-purchase-orders.js";
|
|
27
28
|
export * from "./zauru/zauru-profiles.js";
|
|
28
29
|
export * from "./zauru/zauru-receptions.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Session } from "@remix-run/node";
|
|
2
|
+
import { AxiosUtilsResponse, PrintTemplateGraphQL } from "@zauru-sdk/types";
|
|
3
|
+
/**
|
|
4
|
+
* getPayees
|
|
5
|
+
* @param headers
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPrintTemplates(session: Session): Promise<AxiosUtilsResponse<PrintTemplateGraphQL[]>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@remix-run/node": "^2.8.1",
|
|
28
|
-
"@zauru-sdk/common": "^1.0.
|
|
28
|
+
"@zauru-sdk/common": "^1.0.73",
|
|
29
29
|
"@zauru-sdk/config": "^1.0.60",
|
|
30
|
-
"@zauru-sdk/graphql": "^1.0.
|
|
31
|
-
"@zauru-sdk/types": "^1.0.
|
|
30
|
+
"@zauru-sdk/graphql": "^1.0.72",
|
|
31
|
+
"@zauru-sdk/types": "^1.0.72",
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0b0eca8959802772d28b715adc7cf03fede599c8"
|
|
36
36
|
}
|