@orbe-agro/client-core 5.3.219 → 5.3.220
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/@types/base/@types/api/response/originacao/TFindAllPagamentoResponse.d.ts +1 -0
- package/dist/@types/base/@types/api/response/originacao/TFindAllPagamentoResponse.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +2 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/originacao/config/pagamento.d.ts +2 -0
- package/dist/@types/base/configs/endpoints.config/originacao/config/pagamento.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +2 -0
- package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
- package/dist/@types/base/services/modules/originacao/pagamento/pagamentoService.d.ts +2 -0
- package/dist/@types/base/services/modules/originacao/pagamento/pagamentoService.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/originacao/config/pagamento.js +3 -1
- package/dist/base/configs/endpoints.config/originacao/config/pagamento.js.map +1 -1
- package/dist/base/services/modules/originacao/pagamento/pagamentoService.js +22 -7
- package/dist/base/services/modules/originacao/pagamento/pagamentoService.js.map +1 -1
- package/lib/base/@types/api/response/originacao/TFindAllPagamentoResponse.ts +1 -0
- package/lib/base/configs/endpoints.config/originacao/config/pagamento.ts +2 -0
- package/lib/base/services/modules/originacao/pagamento/pagamentoService.ts +15 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export type TFindAllPagamentoResponse = {
|
|
|
16
16
|
dataPagamento: string;
|
|
17
17
|
valorBruto: number;
|
|
18
18
|
valorLiquido: number;
|
|
19
|
+
valorRetencoes: number;
|
|
19
20
|
retencoes: TRetencaoResponse[];
|
|
20
21
|
statusPagamentoLiquidacao: StatusPagamentoLiquidacao;
|
|
21
22
|
docAgrupamentoSap: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TFindAllPagamentoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindAllPagamentoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAEhF,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,uBAAuB,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,gCAAgC,CAAC;CAC7D,CAAA"}
|
|
1
|
+
{"version":3,"file":"TFindAllPagamentoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindAllPagamentoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAEhF,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,uBAAuB,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,gCAAgC,CAAC;CAC7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagamento.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/pagamento.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;uBACQ,MAAM;
|
|
1
|
+
{"version":3,"file":"pagamento.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/pagamento.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;uBACQ,MAAM;wBACL,MAAM;2BACH,MAAM;CAChC,CAAA;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Bf,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { TQueryResponse } from "@base/@types/api";
|
|
2
2
|
import { TFindAllPagamentoResponse } from "@base/@types/api/response/originacao/TFindAllPagamentoResponse";
|
|
3
3
|
export declare function apiFindAllPagamento(params?: string): Promise<TQueryResponse<TFindAllPagamentoResponse>>;
|
|
4
|
+
export declare function apiProrrogarDataPagamento(id: number | string, novaDataPagamento: string): Promise<void>;
|
|
5
|
+
export declare function apiLiberarPagamento(id: number | string): Promise<void>;
|
|
4
6
|
//# sourceMappingURL=pagamentoService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagamentoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/pagamento/pagamentoService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAK3G,wBAAsB,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,sDAKxD"}
|
|
1
|
+
{"version":3,"file":"pagamentoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/pagamento/pagamentoService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAK3G,wBAAsB,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,sDAKxD;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,iBAAiB,EAAE,MAAM,iBAM7F;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,iBAK5D"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const o = {
|
|
2
|
-
findAll: (a) => `/originacao/api/pagamentos${a ? `?${a}` : ""}
|
|
2
|
+
findAll: (a) => `/originacao/api/pagamentos${a ? `?${a}` : ""}`,
|
|
3
|
+
prorrogarData: (a) => `/originacao/api/pagamentos/${a}/prorrogar-data`,
|
|
4
|
+
liberarPagamento: (a) => `/originacao/api/pagamentos/${a}/liberar-pagamento`
|
|
3
5
|
};
|
|
4
6
|
export {
|
|
5
7
|
o as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagamento.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/pagamento.ts"],"sourcesContent":["const pagamento = {\n findAll: (params?: string) => `/originacao/api/pagamentos${params ? `?${params}` : ''}`,\n}\n\nexport default pagamento;\n"],"names":["pagamento","params"],"mappings":"AAAA,MAAMA,IAAY;AAAA,EACd,SAAS,CAACC,MAAoB,6BAA6BA,IAAS,IAAIA,CAAM,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"pagamento.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/pagamento.ts"],"sourcesContent":["const pagamento = {\n findAll: (params?: string) => `/originacao/api/pagamentos${params ? `?${params}` : ''}`,\n prorrogarData: (id: string) => `/originacao/api/pagamentos/${id}/prorrogar-data`,\n liberarPagamento: (id: string) => `/originacao/api/pagamentos/${id}/liberar-pagamento`,\n}\n\nexport default pagamento;\n"],"names":["pagamento","params","id"],"mappings":"AAAA,MAAMA,IAAY;AAAA,EACd,SAAS,CAACC,MAAoB,6BAA6BA,IAAS,IAAIA,CAAM,KAAK,EAAE;AAAA,EACrF,eAAe,CAACC,MAAe,8BAA8BA,CAAE;AAAA,EAC/D,kBAAkB,CAACA,MAAe,8BAA8BA,CAAE;AACtE;"}
|
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
async function
|
|
5
|
-
return
|
|
6
|
-
url:
|
|
1
|
+
import t from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import i from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const o = i.originacao.pagamento;
|
|
4
|
+
async function c(a) {
|
|
5
|
+
return t.fetchDataWithAxios({
|
|
6
|
+
url: o.findAll(a),
|
|
7
7
|
method: "get"
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
+
async function g(a, r) {
|
|
11
|
+
return t.fetchDataWithAxios({
|
|
12
|
+
url: o.prorrogarData(String(a)),
|
|
13
|
+
method: "patch",
|
|
14
|
+
data: { novaDataPagamento: r }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function m(a) {
|
|
18
|
+
return t.fetchDataWithAxios({
|
|
19
|
+
url: o.liberarPagamento(String(a)),
|
|
20
|
+
method: "post"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
10
23
|
export {
|
|
11
|
-
|
|
24
|
+
c as apiFindAllPagamento,
|
|
25
|
+
m as apiLiberarPagamento,
|
|
26
|
+
g as apiProrrogarDataPagamento
|
|
12
27
|
};
|
|
13
28
|
//# sourceMappingURL=pagamentoService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagamentoService.js","sources":["../../../../../../lib/base/services/modules/originacao/pagamento/pagamentoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllPagamentoResponse } from \"@base/@types/api/response/originacao/TFindAllPagamentoResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst PAGAMENTO_ORIGINACAO_ENDPOINT = endpointNavigationConfig.originacao.pagamento;\n\nexport async function apiFindAllPagamento(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllPagamentoResponse>>({\n url: PAGAMENTO_ORIGINACAO_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n"],"names":["PAGAMENTO_ORIGINACAO_ENDPOINT","endpointNavigationConfig","apiFindAllPagamento","params","ApiService"],"mappings":";;AAKA,MAAMA,IAAgCC,EAAyB,WAAW;AAE1E,eAAsBC,EAAoBC,GAAiB;AACzD,SAAOC,EAAW,mBAA8D;AAAA,IAC9E,KAAKJ,EAA8B,QAAQG,CAAM;AAAA,IACjD,QAAQ;AAAA,EAAA,CACT;AACH;"}
|
|
1
|
+
{"version":3,"file":"pagamentoService.js","sources":["../../../../../../lib/base/services/modules/originacao/pagamento/pagamentoService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllPagamentoResponse } from \"@base/@types/api/response/originacao/TFindAllPagamentoResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst PAGAMENTO_ORIGINACAO_ENDPOINT = endpointNavigationConfig.originacao.pagamento;\n\nexport async function apiFindAllPagamento(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllPagamentoResponse>>({\n url: PAGAMENTO_ORIGINACAO_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiProrrogarDataPagamento(id: number | string, novaDataPagamento: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: PAGAMENTO_ORIGINACAO_ENDPOINT.prorrogarData(String(id)),\n method: \"patch\",\n data: { novaDataPagamento },\n });\n}\n\nexport async function apiLiberarPagamento(id: number | string) {\n return ApiService.fetchDataWithAxios<void>({\n url: PAGAMENTO_ORIGINACAO_ENDPOINT.liberarPagamento(String(id)),\n method: \"post\",\n });\n}\n"],"names":["PAGAMENTO_ORIGINACAO_ENDPOINT","endpointNavigationConfig","apiFindAllPagamento","params","ApiService","apiProrrogarDataPagamento","id","novaDataPagamento","apiLiberarPagamento"],"mappings":";;AAKA,MAAMA,IAAgCC,EAAyB,WAAW;AAE1E,eAAsBC,EAAoBC,GAAiB;AACzD,SAAOC,EAAW,mBAA8D;AAAA,IAC9E,KAAKJ,EAA8B,QAAQG,CAAM;AAAA,IACjD,QAAQ;AAAA,EAAA,CACT;AACH;AAEsB,eAAAE,EAA0BC,GAAqBC,GAA2B;AAC9F,SAAOH,EAAW,mBAAyB;AAAA,IACzC,KAAKJ,EAA8B,cAAc,OAAOM,CAAE,CAAC;AAAA,IAC3D,QAAQ;AAAA,IACR,MAAM,EAAE,mBAAAC,EAAkB;AAAA,EAAA,CAC3B;AACH;AAEA,eAAsBC,EAAoBF,GAAqB;AAC7D,SAAOF,EAAW,mBAAyB;AAAA,IACzC,KAAKJ,EAA8B,iBAAiB,OAAOM,CAAE,CAAC;AAAA,IAC9D,QAAQ;AAAA,EAAA,CACT;AACH;"}
|
|
@@ -17,6 +17,7 @@ export type TFindAllPagamentoResponse = {
|
|
|
17
17
|
dataPagamento: string;
|
|
18
18
|
valorBruto: number;
|
|
19
19
|
valorLiquido: number;
|
|
20
|
+
valorRetencoes: number;
|
|
20
21
|
retencoes: TRetencaoResponse[];
|
|
21
22
|
statusPagamentoLiquidacao: StatusPagamentoLiquidacao;
|
|
22
23
|
docAgrupamentoSap: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const pagamento = {
|
|
2
2
|
findAll: (params?: string) => `/originacao/api/pagamentos${params ? `?${params}` : ''}`,
|
|
3
|
+
prorrogarData: (id: string) => `/originacao/api/pagamentos/${id}/prorrogar-data`,
|
|
4
|
+
liberarPagamento: (id: string) => `/originacao/api/pagamentos/${id}/liberar-pagamento`,
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
export default pagamento;
|
|
@@ -11,3 +11,18 @@ export async function apiFindAllPagamento(params?: string) {
|
|
|
11
11
|
method: "get",
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
export async function apiProrrogarDataPagamento(id: number | string, novaDataPagamento: string) {
|
|
16
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
17
|
+
url: PAGAMENTO_ORIGINACAO_ENDPOINT.prorrogarData(String(id)),
|
|
18
|
+
method: "patch",
|
|
19
|
+
data: { novaDataPagamento },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function apiLiberarPagamento(id: number | string) {
|
|
24
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
25
|
+
url: PAGAMENTO_ORIGINACAO_ENDPOINT.liberarPagamento(String(id)),
|
|
26
|
+
method: "post",
|
|
27
|
+
});
|
|
28
|
+
}
|
package/package.json
CHANGED