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;
|
token_produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
vinculo: string;
|
vinculo: string;
|
||||||
codigo_usuario: string;
|
codigo_usuario?: string | undefined;
|
||||||
email: string;
|
email: string;
|
||||||
}) => Promise<tipoResposta<string>>;
|
}) => Promise<tipoResposta<string>>;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ export const usuarios_quipo_vincular = ({ token_produto, ambiente, conta, vincul
|
||||||
return node_fetch(url, {
|
return node_fetch(url, {
|
||||||
headers,
|
headers,
|
||||||
body: JSON.stringify(parametros),
|
body: JSON.stringify(parametros),
|
||||||
|
method: "POST",
|
||||||
})
|
})
|
||||||
.then((r) => String(r))
|
.then((r) => String(r))
|
||||||
.catch((e) => respostaComuns.erro(`Erro ao criar vinculo de usuario ${e.message}`))
|
.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;
|
token_produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
vinculo: string;
|
vinculo: string;
|
||||||
codigo_usuario: string;
|
codigo_usuario?: string | undefined;
|
||||||
email: string;
|
email: string;
|
||||||
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ export declare const usuarios_quipo_vincular: ({ token_produto, ambiente, conta,
|
||||||
token_produto: string;
|
token_produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
vinculo: string;
|
vinculo: string;
|
||||||
codigo_usuario: string;
|
codigo_usuario?: string | undefined;
|
||||||
email: string;
|
email: string;
|
||||||
}) => Promise<tipoResposta<string>>;
|
}) => Promise<tipoResposta<string>>;
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ var usuarios_quipo_vincular = function (_a) {
|
||||||
return [2 /*return*/, (0, cross_fetch_1.default)(url, {
|
return [2 /*return*/, (0, cross_fetch_1.default)(url, {
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: JSON.stringify(parametros),
|
body: JSON.stringify(parametros),
|
||||||
|
method: "POST",
|
||||||
})
|
})
|
||||||
.then(function (r) { return String(r); })
|
.then(function (r) { return String(r); })
|
||||||
.catch(function (e) {
|
.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;
|
token_produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
vinculo: string;
|
vinculo: string;
|
||||||
codigo_usuario: string;
|
codigo_usuario?: string | undefined;
|
||||||
email: string;
|
email: string;
|
||||||
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
}) => Promise<import("p-respostas").tipoResposta<string>>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.92.0",
|
"version": "0.93.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export const usuarios_quipo_vincular = async ({
|
||||||
token_produto: string
|
token_produto: string
|
||||||
conta: string
|
conta: string
|
||||||
vinculo: string
|
vinculo: string
|
||||||
codigo_usuario: string
|
codigo_usuario?: string
|
||||||
email: string
|
email: string
|
||||||
}): Promise<tipoResposta<string>> => {
|
}): Promise<tipoResposta<string>> => {
|
||||||
const url = `${urlAutenticacao(ambiente)}/api/vinculos__criar`
|
const url = `${urlAutenticacao(ambiente)}/api/vinculos__criar`
|
||||||
|
|
@ -35,6 +35,7 @@ export const usuarios_quipo_vincular = async ({
|
||||||
return node_fetch(url, {
|
return node_fetch(url, {
|
||||||
headers,
|
headers,
|
||||||
body: JSON.stringify(parametros),
|
body: JSON.stringify(parametros),
|
||||||
|
method: "POST",
|
||||||
})
|
})
|
||||||
.then((r) => String(r))
|
.then((r) => String(r))
|
||||||
.catch((e) =>
|
.catch((e) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue