ajuste de metodo
This commit is contained in:
parent
f86cd616bc
commit
059780f4c4
8 changed files with 9 additions and 6 deletions
|
|
@ -6,6 +6,6 @@ export declare const usuarios_quipo_vincular: ({ token_produto, ambiente, conta,
|
|||
token_produto: string;
|
||||
conta: string;
|
||||
vinculo: string;
|
||||
codigo_usuario: string;
|
||||
codigo_usuario?: string | undefined;
|
||||
email: string;
|
||||
}) => Promise<tipoResposta<string>>;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export const usuarios_quipo_vincular = ({ token_produto, ambiente, conta, vincul
|
|||
return node_fetch(url, {
|
||||
headers,
|
||||
body: JSON.stringify(parametros),
|
||||
method: "POST",
|
||||
})
|
||||
.then((r) => String(r))
|
||||
.catch((e) => respostaComuns.erro(`Erro ao criar vinculo de usuario ${e.message}`))
|
||||
|
|
|
|||
2
dist-import/autenticacao/index.d.ts
vendored
2
dist-import/autenticacao/index.d.ts
vendored
|
|
@ -25,7 +25,7 @@ export declare const pAutenticacao: {
|
|||
token_produto: string;
|
||||
conta: string;
|
||||
vinculo: string;
|
||||
codigo_usuario: string;
|
||||
codigo_usuario?: string | undefined;
|
||||
email: string;
|
||||
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export declare const usuarios_quipo_vincular: ({ token_produto, ambiente, conta,
|
|||
token_produto: string;
|
||||
conta: string;
|
||||
vinculo: string;
|
||||
codigo_usuario: string;
|
||||
codigo_usuario?: string | undefined;
|
||||
email: string;
|
||||
}) => Promise<tipoResposta<string>>;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ var usuarios_quipo_vincular = function (_a) {
|
|||
return [2 /*return*/, (0, cross_fetch_1.default)(url, {
|
||||
headers: headers,
|
||||
body: JSON.stringify(parametros),
|
||||
method: "POST",
|
||||
})
|
||||
.then(function (r) { return String(r); })
|
||||
.catch(function (e) {
|
||||
|
|
|
|||
2
dist-require/autenticacao/index.d.ts
vendored
2
dist-require/autenticacao/index.d.ts
vendored
|
|
@ -25,7 +25,7 @@ export declare const pAutenticacao: {
|
|||
token_produto: string;
|
||||
conta: string;
|
||||
vinculo: string;
|
||||
codigo_usuario: string;
|
||||
codigo_usuario?: string | undefined;
|
||||
email: string;
|
||||
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-drives",
|
||||
"version": "0.92.0",
|
||||
"version": "0.93.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export const usuarios_quipo_vincular = async ({
|
|||
token_produto: string
|
||||
conta: string
|
||||
vinculo: string
|
||||
codigo_usuario: string
|
||||
codigo_usuario?: string
|
||||
email: string
|
||||
}): Promise<tipoResposta<string>> => {
|
||||
const url = `${urlAutenticacao(ambiente)}/api/vinculos__criar`
|
||||
|
|
@ -35,6 +35,7 @@ export const usuarios_quipo_vincular = async ({
|
|||
return node_fetch(url, {
|
||||
headers,
|
||||
body: JSON.stringify(parametros),
|
||||
method: "POST",
|
||||
})
|
||||
.then((r) => String(r))
|
||||
.catch((e) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue