@orbe-agro/client-core 5.3.265 → 5.3.267
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/configs/endpoints.config/centralNfe/centralNfe.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/nfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +1 -0
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts +1 -0
- package/dist/@types/base/services/modules/centralNfe/nfe/NfeService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts.map +1 -1
- package/dist/@types/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.d.ts +4 -0
- package/dist/@types/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.d.ts.map +1 -0
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js +2 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/nfe.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js +2 -1
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js +35 -0
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js.map +1 -0
- package/dist/base/hooks/index.js +2 -0
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/index.js +4 -1
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/index.js +2 -1
- package/dist/base/services/modules/centralNfe/index.js +2 -1
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js +8 -0
- package/dist/base/services/modules/centralNfe/nfe/NfeService.js.map +1 -1
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js +11 -0
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js.map +1 -1
- package/dist/base/services/modules/dm/index.js +2 -1
- package/dist/base/services/modules/index.js +2 -1
- package/dist/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.js +19 -0
- package/dist/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.js.map +1 -0
- package/lib/base/configs/endpoints.config/centralNfe/config/nfe.ts +1 -0
- package/lib/base/configs/endpoints.config/dm/config/businessPartner.ts +3 -1
- package/lib/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.tsx +46 -0
- package/lib/base/hooks/index.ts +1 -0
- package/lib/base/services/modules/centralNfe/nfe/NfeService.ts +8 -0
- package/lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts +12 -1
- package/lib/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.ts +22 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"centralNfe.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/centralNfe.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"nfe.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQR,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessPartner.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/businessPartner.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"businessPartner.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/businessPartner.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBpB,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BP,CAAA;AAED,eAAe,EAAE,CAAC"}
|
|
@@ -400,6 +400,10 @@ declare const endpointNavigationConfig: {
|
|
|
400
400
|
endpoint: string;
|
|
401
401
|
method: string;
|
|
402
402
|
};
|
|
403
|
+
findByIds: {
|
|
404
|
+
endpoint: string;
|
|
405
|
+
method: string;
|
|
406
|
+
};
|
|
403
407
|
};
|
|
404
408
|
canalDistribuicao: {
|
|
405
409
|
find: {
|
|
@@ -1738,6 +1742,10 @@ declare const endpointNavigationConfig: {
|
|
|
1738
1742
|
endpoint: string;
|
|
1739
1743
|
httpMethod: string;
|
|
1740
1744
|
};
|
|
1745
|
+
desvincularOrdemCompra: {
|
|
1746
|
+
endpoint: string;
|
|
1747
|
+
httpMethod: string;
|
|
1748
|
+
};
|
|
1741
1749
|
};
|
|
1742
1750
|
vinculoIva: {
|
|
1743
1751
|
findMonitor: {
|
|
@@ -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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PartnerList: any[];
|
|
4
|
+
businessPartnerListTotal: number;
|
|
5
|
+
error: any;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
tableParams: import("../../..").ITableParams;
|
|
8
|
+
filterParams: import("../../..").IFilterParams;
|
|
9
|
+
mutate: import("swr").KeyedMutator<import("../../..").TQueryResponse<any>>;
|
|
10
|
+
setTableParams: (payload: import("../../..").ITableParams) => void;
|
|
11
|
+
setFilterParams: (payload: import("../../..").IFilterParams) => void;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useBusinessPartnerFindMonitorTransportadoraList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBusinessPartnerFindMonitorTransportadoraList.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,+CAA+C;;;;;;;;;;;EAsCtE"}
|
|
@@ -61,4 +61,5 @@ export { default as useList } from './useList';
|
|
|
61
61
|
export { default as useSafraList } from './dm/safra/useSafraList';
|
|
62
62
|
export { default as useFindProdutosByDepositoList } from './dm/produto/useFindProdutosByDepositoList';
|
|
63
63
|
export { default as useFindPrecoMedioProdutosList } from './insumos/itemCompra/useFindPrecoMedioProdutosList';
|
|
64
|
+
export { default as useBusinessPartnerFindMonitorTransportadoraList } from './dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList';
|
|
64
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/base/hooks/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6CAA6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,6CAA6C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,wCAAwC,EAAE,MAAM,8DAA8D,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,gDAAgD,EAAE,MAAM,sEAAsE,CAAC;AACnJ,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,4CAA4C,EAAE,MAAM,6DAA6D,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,oDAAoD,EAAE,MAAM,qEAAqE,CAAC;AACtJ,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,+CAA+C,EAAE,MAAM,sEAAsE,CAAC"}
|
|
@@ -4,4 +4,5 @@ export declare function apiUpdateNfe(body: any): Promise<any>;
|
|
|
4
4
|
export declare function downloadPdfByChaveAcesso(chaveAcesso: string): Promise<any>;
|
|
5
5
|
export declare function buscaValidacaoImposto(id: number, numeroPedido: string): Promise<any>;
|
|
6
6
|
export declare function addLancamentoManual(body: any): Promise<any>;
|
|
7
|
+
export declare function apiDesvincularOrdemCompra(body: any): Promise<any>;
|
|
7
8
|
//# sourceMappingURL=NfeService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,CAAC,IAAI,KAAA,gBAM3C;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAK7C;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,gBAMtC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,gBAKjE;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAO3E;AAED,wBAAsB,mBAAmB,CAAC,IAAI,KAAA,gBAM7C"}
|
|
1
|
+
{"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,CAAC,IAAI,KAAA,gBAM3C;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAK7C;AAED,wBAAsB,YAAY,CAAC,IAAI,KAAA,gBAMtC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,gBAKjE;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAO3E;AAED,wBAAsB,mBAAmB,CAAC,IAAI,KAAA,gBAM7C;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD"}
|
|
@@ -15,4 +15,5 @@ export declare function apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVe
|
|
|
15
15
|
export declare function apiFindDmBusinessPartnerFuncoesParceirosFornecedores(body?: IFilterParams): Promise<TBusinessPartner[] | undefined>;
|
|
16
16
|
export declare function apiFindDmVendedoresAKARepresentantesVendas(data?: {}): Promise<TBusinessPartner[]>;
|
|
17
17
|
export declare function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner: string, modulo: string): Promise<TAreaVendaCliente[]>;
|
|
18
|
+
export declare function apiFindDmBusinessPartnerByIds(body?: IFilterParams): Promise<TBusinessPartner[] | undefined>;
|
|
18
19
|
//# sourceMappingURL=BusinessPartnerService.d.ts.map
|
package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessPartnerService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAK7F,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,6BAKvD;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,+CAMlE;AAED,wBAAsB,+BAA+B,CAAC,IAAI,CAAC,EAAE,aAAa,2CASzE;AAED,wBAAsB,kCAAkC,CAAC,IAAI,CAAC,EAAE,aAAa,2DAS5E;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMlE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,gBAK1D;AAED,wBAAsB,4BAA4B,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMtE;AAED,wBAAsB,+BAA+B,CAAC,IAAI,CAAC,EAAE,aAAa,2CASzE;AAED,wBAAsB,gCAAgC,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS1E;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,MAAM,gBAK5D;AAED,wBAAsB,gDAAgD,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS1F;AAED,wBAAsB,2DAA2D,CAAC,IAAI,CAAC,EAAE,aAAa,2CASrG;AAED,wBAAsB,oDAAoD,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS9F;AAED,wBAAsB,0CAA0C,CAAC,IAAI,KAAK,+BAMzE;AAED,wBAAsB,iDAAiD,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gCAK9G"}
|
|
1
|
+
{"version":3,"file":"BusinessPartnerService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAK7F,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,6BAKvD;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,+CAMlE;AAED,wBAAsB,+BAA+B,CAAC,IAAI,CAAC,EAAE,aAAa,2CASzE;AAED,wBAAsB,kCAAkC,CAAC,IAAI,CAAC,EAAE,aAAa,2DAS5E;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMlE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,gBAK1D;AAED,wBAAsB,4BAA4B,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMtE;AAED,wBAAsB,+BAA+B,CAAC,IAAI,CAAC,EAAE,aAAa,2CASzE;AAED,wBAAsB,gCAAgC,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS1E;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,MAAM,gBAK5D;AAED,wBAAsB,gDAAgD,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS1F;AAED,wBAAsB,2DAA2D,CAAC,IAAI,CAAC,EAAE,aAAa,2CASrG;AAED,wBAAsB,oDAAoD,CAAC,IAAI,CAAC,EAAE,aAAa,2CAS9F;AAED,wBAAsB,0CAA0C,CAAC,IAAI,KAAK,+BAMzE;AAED,wBAAsB,iDAAiD,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gCAK9G;AAED,wBAAsB,6BAA6B,CAAC,IAAI,CAAC,EAAE,aAAa,2CASvE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TBusinessPartner } from '@base/@types/models/dm/businessPartner';
|
|
2
|
+
import { IListStoreAction, IListStoreState } from '@base/@types/store';
|
|
3
|
+
export declare const useBusinessPartnerTransportadoraListStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IListStoreState<TBusinessPartner> & IListStoreAction<TBusinessPartner>>>;
|
|
4
|
+
//# sourceMappingURL=businessPartnerTransportadoraListStore.d.ts.map
|
package/dist/@types/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessPartnerTransportadoraListStore.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AActE,eAAO,MAAM,yCAAyC,qIAMnD,CAAA"}
|
|
@@ -5,7 +5,8 @@ const nfe = {
|
|
|
5
5
|
update: { endpoint: NFE_BASE_URL, httpMethod: "patch" },
|
|
6
6
|
downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: "get" },
|
|
7
7
|
validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: "post" },
|
|
8
|
-
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: "patch" }
|
|
8
|
+
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: "patch" },
|
|
9
|
+
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: "post" }
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
12
|
nfe as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfe.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"sourcesContent":["const NFE_BASE_URL = '/central-nfe/api/nfe'\n\nconst nfe = {\n findMonitor: { endpoint: `${NFE_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },\n update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },\n downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },\n validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: 'post' },\n addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },\n}\n\nexport default nfe"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAU,cAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAO;AAAA,EAC1G,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAQ;
|
|
1
|
+
{"version":3,"file":"nfe.js","sources":["../../../../../../lib/base/configs/endpoints.config/centralNfe/config/nfe.ts"],"sourcesContent":["const NFE_BASE_URL = '/central-nfe/api/nfe'\n\nconst nfe = {\n findMonitor: { endpoint: `${NFE_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: NFE_BASE_URL, httpMethod: 'get' },\n update: { endpoint: NFE_BASE_URL, httpMethod: 'patch' },\n downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },\n validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: 'post' },\n addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },\n desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },\n}\n\nexport default nfe"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,MAAM;AAAA,EACR,aAAa,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,OAAO;AAAA,EAC5E,SAAS,EAAE,UAAU,cAAc,YAAY,MAAM;AAAA,EACrD,QAAQ,EAAE,UAAU,cAAc,YAAY,QAAQ;AAAA,EACtD,0BAA0B,EAAE,UAAU,GAAG,YAAY,iBAAiB,YAAY,MAAM;AAAA,EACxF,kBAAkB,EAAE,UAAU,GAAG,YAAY,0CAA0C,YAAY,OAAO;AAAA,EAC1G,qBAAqB,EAAE,UAAU,GAAG,YAAY,0BAA0B,YAAY,QAAQ;AAAA,EAC9F,wBAAwB,EAAE,UAAU,GAAG,YAAY,6BAA6B,YAAY,OAAO;AACvG;"}
|
|
@@ -14,7 +14,8 @@ const businessPartner = {
|
|
|
14
14
|
findBusinessPartnerFuncoesParceirosClientesPedidoVenda: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes-pedido-venda`, method: "post" },
|
|
15
15
|
findBusinessPartnerFuncoesParceirosFornecedores: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-fornecedores`, method: "post" },
|
|
16
16
|
findBusinessPartnerByClientOrSupplierFunction: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-vendedores-aka-representantes-vendas`, method: "get" },
|
|
17
|
-
findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: "get" }
|
|
17
|
+
findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: "get" },
|
|
18
|
+
findByIds: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-by-ids`, method: "post" }
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
21
|
businessPartner as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessPartner.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/businessPartner.ts"],"sourcesContent":["const BUSINESS_PARTNER_BASE_URL = '/dados-mestres/api/dm/business-partner'\n\nconst businessPartner = {\n findOne: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/`, method: 'get' },\n find: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find`, method: 'post' },\n findBusinessPartnerCliente: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-is-cliente`, method: 'post' },\n findBusinessPartnerFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-is-fornecedor`, method: 'post' },\n findMonitorFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-fornecedor`, httpMethod: 'post' },\n findMonitorTransportadora: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-transportadora`, httpMethod: 'post' },\n findEmpresasIdsByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-empresas-ids`, httpMethod: 'get' },\n findBusinessPartnerFiliais: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-filiais`, method: 'post' },\n findBusinessPartnerMatrizes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-matrizes`, method: 'post' },\n findFornecedorNfeByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-fornecedor-nfe`, httpMethod: 'get' },\n findBusinessPartnerFuncoesParceirosClientes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes`, method: 'post' },\n findBusinessPartnerFuncoesParceirosClientesPedidoVenda: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes-pedido-venda`, method: 'post' },\n findBusinessPartnerFuncoesParceirosFornecedores: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-fornecedores`, method: 'post' },\n findBusinessPartnerByClientOrSupplierFunction: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-vendedores-aka-representantes-vendas`, method: 'get' },\n findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: 'get' }\n}\n\nexport default businessPartner"],"names":[],"mappings":"AAAA,MAAM,4BAA4B;AAElC,MAAM,kBAAkB;AAAA,EACpB,SAAS,EAAE,UAAU,GAAG,yBAAyB,KAAK,QAAQ,MAAM;AAAA,EACpE,MAAM,EAAE,UAAU,GAAG,yBAAyB,SAAS,QAAQ,OAAO;AAAA,EACtE,4BAA4B,EAAE,UAAU,GAAG,yBAAyB,qCAAqC,QAAQ,OAAO;AAAA,EACxH,+BAA+B,EAAE,UAAU,GAAG,yBAAyB,wCAAwC,QAAQ,OAAO;AAAA,EAC9H,uBAAuB,EAAE,UAAU,GAAG,yBAAyB,4BAA4B,YAAY,OAAO;AAAA,EAC9G,2BAA2B,EAAE,UAAU,GAAG,yBAAyB,gCAAgC,YAAY,OAAO;AAAA,EACtH,uBAAuB,EAAE,UAAU,GAAG,yBAAyB,6BAA6B,YAAY,MAAM;AAAA,EAC9G,4BAA4B,EAAE,UAAU,GAAG,yBAAyB,kCAAkC,QAAQ,OAAO;AAAA,EACrH,6BAA6B,EAAE,UAAU,GAAG,yBAAyB,mCAAmC,QAAQ,OAAO;AAAA,EACvH,yBAAyB,EAAE,UAAU,GAAG,yBAAyB,+BAA+B,YAAY,MAAM;AAAA,EAClH,6CAA6C,EAAE,UAAU,GAAG,yBAAyB,8CAA8C,QAAQ,OAAO;AAAA,EAClJ,wDAAwD,EAAE,UAAU,GAAG,yBAAyB,2DAA2D,QAAQ,OAAO;AAAA,EAC1K,iDAAiD,EAAE,UAAU,GAAG,yBAAyB,kDAAkD,QAAQ,OAAO;AAAA,EAC1J,+CAA+C,EAAE,UAAU,GAAG,yBAAyB,8CAA8C,QAAQ,MAAM;AAAA,EACnJ,0CAA0C,EAAE,UAAU,GAAG,yBAAyB,4DAA4D,QAAQ,MAAM;
|
|
1
|
+
{"version":3,"file":"businessPartner.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/businessPartner.ts"],"sourcesContent":["const BUSINESS_PARTNER_BASE_URL = '/dados-mestres/api/dm/business-partner'\n\nconst businessPartner = {\n findOne: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/`, method: 'get' },\n find: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find`, method: 'post' },\n findBusinessPartnerCliente: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-is-cliente`, method: 'post' },\n findBusinessPartnerFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-is-fornecedor`, method: 'post' },\n findMonitorFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-fornecedor`, httpMethod: 'post' },\n findMonitorTransportadora: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-transportadora`, httpMethod: 'post' },\n findEmpresasIdsByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-empresas-ids`, httpMethod: 'get' },\n findBusinessPartnerFiliais: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-filiais`, method: 'post' },\n findBusinessPartnerMatrizes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-matrizes`, method: 'post' },\n findFornecedorNfeByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-fornecedor-nfe`, httpMethod: 'get' },\n findBusinessPartnerFuncoesParceirosClientes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes`, method: 'post' },\n findBusinessPartnerFuncoesParceirosClientesPedidoVenda: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes-pedido-venda`, method: 'post' },\n findBusinessPartnerFuncoesParceirosFornecedores: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-fornecedores`, method: 'post' },\n findBusinessPartnerByClientOrSupplierFunction: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-vendedores-aka-representantes-vendas`, method: 'get' },\n findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: 'get' },\n findByIds: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-by-ids`, method: 'post' }\n\n}\n\nexport default businessPartner"],"names":[],"mappings":"AAAA,MAAM,4BAA4B;AAElC,MAAM,kBAAkB;AAAA,EACpB,SAAS,EAAE,UAAU,GAAG,yBAAyB,KAAK,QAAQ,MAAM;AAAA,EACpE,MAAM,EAAE,UAAU,GAAG,yBAAyB,SAAS,QAAQ,OAAO;AAAA,EACtE,4BAA4B,EAAE,UAAU,GAAG,yBAAyB,qCAAqC,QAAQ,OAAO;AAAA,EACxH,+BAA+B,EAAE,UAAU,GAAG,yBAAyB,wCAAwC,QAAQ,OAAO;AAAA,EAC9H,uBAAuB,EAAE,UAAU,GAAG,yBAAyB,4BAA4B,YAAY,OAAO;AAAA,EAC9G,2BAA2B,EAAE,UAAU,GAAG,yBAAyB,gCAAgC,YAAY,OAAO;AAAA,EACtH,uBAAuB,EAAE,UAAU,GAAG,yBAAyB,6BAA6B,YAAY,MAAM;AAAA,EAC9G,4BAA4B,EAAE,UAAU,GAAG,yBAAyB,kCAAkC,QAAQ,OAAO;AAAA,EACrH,6BAA6B,EAAE,UAAU,GAAG,yBAAyB,mCAAmC,QAAQ,OAAO;AAAA,EACvH,yBAAyB,EAAE,UAAU,GAAG,yBAAyB,+BAA+B,YAAY,MAAM;AAAA,EAClH,6CAA6C,EAAE,UAAU,GAAG,yBAAyB,8CAA8C,QAAQ,OAAO;AAAA,EAClJ,wDAAwD,EAAE,UAAU,GAAG,yBAAyB,2DAA2D,QAAQ,OAAO;AAAA,EAC1K,iDAAiD,EAAE,UAAU,GAAG,yBAAyB,kDAAkD,QAAQ,OAAO;AAAA,EAC1J,+CAA+C,EAAE,UAAU,GAAG,yBAAyB,8CAA8C,QAAQ,MAAM;AAAA,EACnJ,0CAA0C,EAAE,UAAU,GAAG,yBAAyB,4DAA4D,QAAQ,MAAM;AAAA,EAC5J,WAAW,EAAE,UAAU,GAAG,yBAAyB,gBAAgB,QAAQ,OAAO;AAEtF;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "../../../services/index.js";
|
|
2
|
+
import { useBusinessPartnerTransportadoraListStore } from "../../../store/dm/businesPartner/businessPartnerTransportadoraListStore.js";
|
|
3
|
+
import useSWR from "swr";
|
|
4
|
+
import { generateQueryParams } from "../../../services/query.js";
|
|
5
|
+
import { apiFindMonitorTransportadora } from "../../../services/modules/dm/businessPartner/BusinessPartnerService.js";
|
|
6
|
+
function useBusinessPartnerFindMonitorTransportadoraList() {
|
|
7
|
+
const { tableParams, filterParams, setTableParams, setFilterParams } = useBusinessPartnerTransportadoraListStore((state) => state);
|
|
8
|
+
const hasFilter = typeof filterParams.businessPartner === "string" && filterParams.businessPartner.trim() !== "" || typeof filterParams.nomeCompletoBusinessPartner === "string" && filterParams.nomeCompletoBusinessPartner.trim() !== "" || !!filterParams.id;
|
|
9
|
+
const { data, error, isLoading, mutate } = useSWR(
|
|
10
|
+
hasFilter ? [
|
|
11
|
+
"/api/dm/business-partner/find-monitor-transportadora",
|
|
12
|
+
generateQueryParams(filterParams, tableParams)
|
|
13
|
+
] : null,
|
|
14
|
+
([, params]) => apiFindMonitorTransportadora({ ...params }),
|
|
15
|
+
{ revalidateOnFocus: false }
|
|
16
|
+
);
|
|
17
|
+
const businessPartnerList = data?.content || [];
|
|
18
|
+
const businessPartnerListTotal = data?.size ?? 0;
|
|
19
|
+
return {
|
|
20
|
+
data,
|
|
21
|
+
businessPartnerList,
|
|
22
|
+
businessPartnerListTotal,
|
|
23
|
+
error,
|
|
24
|
+
isLoading,
|
|
25
|
+
tableParams,
|
|
26
|
+
filterParams,
|
|
27
|
+
mutate,
|
|
28
|
+
setTableParams,
|
|
29
|
+
setFilterParams
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
useBusinessPartnerFindMonitorTransportadoraList as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=useBusinessPartnerFindMonitorTransportadoraList.js.map
|
package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBusinessPartnerFindMonitorTransportadoraList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.tsx"],"sourcesContent":["import {\n apiFindMonitorTransportadora,\n generateQueryParams,\n} from '@base/services'\nimport { useBusinessPartnerTransportadoraListStore } from '@base/store/dm/businesPartner/businessPartnerTransportadoraListStore'\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerFindMonitorTransportadoraList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useBusinessPartnerTransportadoraListStore((state) => state)\n\n const hasFilter =\n (typeof filterParams.businessPartner === 'string' &&\n filterParams.businessPartner.trim() !== '') ||\n (typeof filterParams.nomeCompletoBusinessPartner === 'string' &&\n filterParams.nomeCompletoBusinessPartner.trim() !== '') ||\n !!filterParams.id\n\n const { data, error, isLoading, mutate } = useSWR(\n hasFilter\n ? [\n '/api/dm/business-partner/find-monitor-transportadora',\n generateQueryParams(filterParams, tableParams),\n ]\n : null,\n ([, params]) => apiFindMonitorTransportadora({ ...params }),\n { revalidateOnFocus: false },\n )\n\n const businessPartnerList = data?.content || []\n\n const businessPartnerListTotal = data?.size ?? 0\n\n return {\n data,\n businessPartnerList,\n businessPartnerListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}\n"],"names":[],"mappings":";;;;;AAOA,SAAwB,kDAAkD;AAChE,QAAA,EAAE,aAAa,cAAc,gBAAgB,oBAC/C,0CAA0C,CAAC,UAAU,KAAK;AAExD,QAAA,YACD,OAAO,aAAa,oBAAoB,YACrC,aAAa,gBAAgB,WAAW,MAC3C,OAAO,aAAa,gCAAgC,YACjD,aAAa,4BAA4B,WAAW,MACxD,CAAC,CAAC,aAAa;AAEnB,QAAM,EAAE,MAAM,OAAO,WAAW,OAAW,IAAA;AAAA,IACvC,YACM;AAAA,MACI;AAAA,MACA,oBAAoB,cAAc,WAAW;AAAA,IAAA,IAEjD;AAAA,IACN,CAAC,CAAG,EAAA,MAAM,MAAM,6BAA6B,EAAE,GAAG,OAAA,CAAQ;AAAA,IAC1D,EAAE,mBAAmB,MAAM;AAAA,EAC/B;AAEM,QAAA,sBAAsB,MAAM,WAAW,CAAC;AAExC,QAAA,2BAA2B,MAAM,QAAQ;AAExC,SAAA;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACJ;"}
|
package/dist/base/hooks/index.js
CHANGED
|
@@ -61,11 +61,13 @@ import { default as default61 } from "./useList.js";
|
|
|
61
61
|
import { default as default62 } from "./dm/safra/useSafraList.js";
|
|
62
62
|
import { default as default63 } from "./dm/produto/useFindProdutosByDepositoList.js";
|
|
63
63
|
import { default as default64 } from "./insumos/itemCompra/useFindPrecoMedioProdutosList.js";
|
|
64
|
+
import { default as default65 } from "./dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js";
|
|
64
65
|
export {
|
|
65
66
|
default4 as useBusinessPartnerById,
|
|
66
67
|
default5 as useBusinessPartnerClienteList,
|
|
67
68
|
default6 as useBusinessPartnerFiliaisList,
|
|
68
69
|
default7 as useBusinessPartnerFindMonitorFornecedorList,
|
|
70
|
+
default65 as useBusinessPartnerFindMonitorTransportadoraList,
|
|
69
71
|
default8 as useBusinessPartnerFornecedorList,
|
|
70
72
|
default9 as useBusinessPartnerFuncoesParceirosClientesList,
|
|
71
73
|
default10 as useBusinessPartnerFuncoesParceirosClientesPedidoVendaList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/base/index.js
CHANGED
|
@@ -97,12 +97,13 @@ import { default as default87 } from "./hooks/useList.js";
|
|
|
97
97
|
import { default as default88 } from "./hooks/dm/safra/useSafraList.js";
|
|
98
98
|
import { default as default89 } from "./hooks/dm/produto/useFindProdutosByDepositoList.js";
|
|
99
99
|
import { default as default90 } from "./hooks/insumos/itemCompra/useFindPrecoMedioProdutosList.js";
|
|
100
|
+
import { default as default91 } from "./hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js";
|
|
100
101
|
import { buildQueryString, generateQueryParams, getBaseTableParams, getDefaultQueryParams } from "./services/query.js";
|
|
101
102
|
import { generateQueryParams as generateQueryParams2, getBaseTableParams as getBaseTableParams2 } from "./services/modules/modules.query.js";
|
|
102
103
|
import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetRoles, apiGetTarefasAgendadas, apiGetUsers } from "./services/modules/AdmService.js";
|
|
103
104
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
104
105
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./services/modules/commodities/pedidoVenda/PedidoVendaService.js";
|
|
105
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./services/modules/dm/businessPartner/BusinessPartnerService.js";
|
|
106
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./services/modules/dm/businessPartner/BusinessPartnerService.js";
|
|
106
107
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./services/modules/dm/canalDistribuicao/CanalDistribuicaoService.js";
|
|
107
108
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindMonitorCentro } from "./services/modules/dm/centro/CentroService.js";
|
|
108
109
|
import { apiFindMonitorCentroCusto } from "./services/modules/dm/centroCusto/CentroCustoService.js";
|
|
@@ -342,6 +343,7 @@ export {
|
|
|
342
343
|
apiFindCounterFisicoServicoAssistencia,
|
|
343
344
|
apiFindDescricaoById,
|
|
344
345
|
apiFindDmBusinessPartner,
|
|
346
|
+
apiFindDmBusinessPartnerByIds,
|
|
345
347
|
apiFindDmBusinessPartnerCliente,
|
|
346
348
|
apiFindDmBusinessPartnerFiliais,
|
|
347
349
|
apiFindDmBusinessPartnerFornecedor,
|
|
@@ -613,6 +615,7 @@ export {
|
|
|
613
615
|
default31 as useBusinessPartnerClienteList,
|
|
614
616
|
default32 as useBusinessPartnerFiliaisList,
|
|
615
617
|
default33 as useBusinessPartnerFindMonitorFornecedorList,
|
|
618
|
+
default91 as useBusinessPartnerFindMonitorTransportadoraList,
|
|
616
619
|
default34 as useBusinessPartnerFornecedorList,
|
|
617
620
|
default35 as useBusinessPartnerFuncoesParceirosClientesList,
|
|
618
621
|
default36 as useBusinessPartnerFuncoesParceirosClientesPedidoVendaList,
|
package/dist/base/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,7 +12,7 @@ import "./modules/transportadora/index.js";
|
|
|
12
12
|
import "./modules/insumos/index.js";
|
|
13
13
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
14
14
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./modules/commodities/pedidoVenda/PedidoVendaService.js";
|
|
15
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./modules/dm/businessPartner/BusinessPartnerService.js";
|
|
15
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./modules/dm/businessPartner/BusinessPartnerService.js";
|
|
16
16
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./modules/dm/canalDistribuicao/CanalDistribuicaoService.js";
|
|
17
17
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindMonitorCentro } from "./modules/dm/centro/CentroService.js";
|
|
18
18
|
import { apiFindMonitorCentroCusto } from "./modules/dm/centroCusto/CentroCustoService.js";
|
|
@@ -243,6 +243,7 @@ export {
|
|
|
243
243
|
apiFindCounterFisicoServicoAssistencia,
|
|
244
244
|
apiFindDescricaoById,
|
|
245
245
|
apiFindDmBusinessPartner,
|
|
246
|
+
apiFindDmBusinessPartnerByIds,
|
|
246
247
|
apiFindDmBusinessPartnerCliente,
|
|
247
248
|
apiFindDmBusinessPartnerFiliais,
|
|
248
249
|
apiFindDmBusinessPartnerFornecedor,
|
|
@@ -2,13 +2,14 @@ import { apiCreateNotificacaoCentralNfe, apiFindMonitorNotificacaoCentralNfe, ap
|
|
|
2
2
|
import { apiCreateIntervaloPrecoXml, apiFindMonitorIntervaloPrecoXml, apiFindOneIntervaloPrecoXml, apiUpdateIntervaloPrecoXml } from "./intervaloPrecoXml/IntervaloPrecoXmlService.js";
|
|
3
3
|
import { apiCreateVinculoUnidadeMedida, apiFindMonitorVinculoUnidadeMedida, apiFindOneVinculoUnidadeMedida, apiUpdateVinculoUnidadeMedida } from "./vinculoUnidadeMedida/VinculoUnidadeMedidaService.js";
|
|
4
4
|
import { apiCreateCnpjLiberadoNota, apiFindMonitorCnpjLiberadoNota, apiFindOneCnpjLiberadoNota, apiUpdateCnpjLiberadoNota } from "./cnpjLiberadoNota/CnpjLiberadoNotaService.js";
|
|
5
|
-
import { addLancamentoManual, apiFindMonitorNfe, apiFindOneNfe, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
5
|
+
import { addLancamentoManual, apiDesvincularOrdemCompra, apiFindMonitorNfe, apiFindOneNfe, apiUpdateNfe, buscaValidacaoImposto, downloadPdfByChaveAcesso } from "./nfe/NfeService.js";
|
|
6
6
|
export {
|
|
7
7
|
addLancamentoManual,
|
|
8
8
|
apiCreateCnpjLiberadoNota,
|
|
9
9
|
apiCreateIntervaloPrecoXml,
|
|
10
10
|
apiCreateNotificacaoCentralNfe,
|
|
11
11
|
apiCreateVinculoUnidadeMedida,
|
|
12
|
+
apiDesvincularOrdemCompra,
|
|
12
13
|
apiFindMonitorCnpjLiberadoNota,
|
|
13
14
|
apiFindMonitorIntervaloPrecoXml,
|
|
14
15
|
apiFindMonitorNfe,
|
|
@@ -40,8 +40,16 @@ async function addLancamentoManual(body) {
|
|
|
40
40
|
data: body
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
+
async function apiDesvincularOrdemCompra(body) {
|
|
44
|
+
return ApiService.fetchDataWithAxios({
|
|
45
|
+
url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,
|
|
46
|
+
method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,
|
|
47
|
+
data: body
|
|
48
|
+
});
|
|
49
|
+
}
|
|
43
50
|
export {
|
|
44
51
|
addLancamentoManual,
|
|
52
|
+
apiDesvincularOrdemCompra,
|
|
45
53
|
apiFindMonitorNfe,
|
|
46
54
|
apiFindOneNfe,
|
|
47
55
|
apiUpdateNfe,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NfeService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst NFE_ENDPOINT = endpointConfig.centralNfe.nfe;\n\nexport async function apiFindMonitorNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.findMonitor.endpoint,\n method: NFE_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneNfe(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.findOne.endpoint}/${id}`,\n method: NFE_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.update.endpoint,\n method: NFE_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function downloadPdfByChaveAcesso(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadPdfByChaveAcesso.endpoint}/${chaveAcesso}`,\n method: NFE_ENDPOINT.downloadPdfByChaveAcesso.httpMethod\n })\n}\n\nexport async function buscaValidacaoImposto(id: number, numeroPedido: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.validacaoImposto.endpoint\n .replace('{id}', id.toString())\n .replace('{numeroPedido}', numeroPedido),\n method: NFE_ENDPOINT.validacaoImposto.httpMethod\n })\n}\n\nexport async function addLancamentoManual(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.addLancamentoManual.endpoint,\n method: NFE_ENDPOINT.addLancamentoManual.httpMethod,\n data: body\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,eAAeA,yBAAe,WAAW;AAE/C,eAAsB,kBAAkB,MAAM;AAC1C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,YAAY;AAAA,IAC9B,QAAQ,aAAa,YAAY;AAAA,IACjC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,QAAQ,QAAQ,IAAI,EAAE;AAAA,IAC3C,QAAQ,aAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsB,aAAa,MAAM;AACrC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,OAAO;AAAA,IACzB,QAAQ,aAAa,OAAO;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,yBAAyB,aAAqB;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,yBAAyB,QAAQ,IAAI,WAAW;AAAA,IACrE,QAAQ,aAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEsB,eAAA,sBAAsB,IAAY,cAAsB;AAC1E,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,SAAA,CAAU,EAC7B,QAAQ,kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,iBAAiB;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,oBAAoB,MAAM;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,oBAAoB;AAAA,IACtC,QAAQ,aAAa,oBAAoB;AAAA,IACzC,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
1
|
+
{"version":3,"file":"NfeService.js","sources":["../../../../../../lib/base/services/modules/centralNfe/nfe/NfeService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst NFE_ENDPOINT = endpointConfig.centralNfe.nfe;\n\nexport async function apiFindMonitorNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.findMonitor.endpoint,\n method: NFE_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneNfe(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.findOne.endpoint}/${id}`,\n method: NFE_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateNfe(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.update.endpoint,\n method: NFE_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function downloadPdfByChaveAcesso(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${NFE_ENDPOINT.downloadPdfByChaveAcesso.endpoint}/${chaveAcesso}`,\n method: NFE_ENDPOINT.downloadPdfByChaveAcesso.httpMethod\n })\n}\n\nexport async function buscaValidacaoImposto(id: number, numeroPedido: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.validacaoImposto.endpoint\n .replace('{id}', id.toString())\n .replace('{numeroPedido}', numeroPedido),\n method: NFE_ENDPOINT.validacaoImposto.httpMethod\n })\n}\n\nexport async function addLancamentoManual(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.addLancamentoManual.endpoint,\n method: NFE_ENDPOINT.addLancamentoManual.httpMethod,\n data: body\n })\n}\n\nexport async function apiDesvincularOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,\n method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,\n data: body\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,eAAeA,yBAAe,WAAW;AAE/C,eAAsB,kBAAkB,MAAM;AAC1C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,YAAY;AAAA,IAC9B,QAAQ,aAAa,YAAY;AAAA,IACjC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,cAAc,IAAY;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,QAAQ,QAAQ,IAAI,EAAE;AAAA,IAC3C,QAAQ,aAAa,QAAQ;AAAA,EAAA,CAChC;AACL;AAEA,eAAsB,aAAa,MAAM;AACrC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,OAAO;AAAA,IACzB,QAAQ,aAAa,OAAO;AAAA,IAC5B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,yBAAyB,aAAqB;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,aAAa,yBAAyB,QAAQ,IAAI,WAAW;AAAA,IACrE,QAAQ,aAAa,yBAAyB;AAAA,EAAA,CACjD;AACL;AAEsB,eAAA,sBAAsB,IAAY,cAAsB;AAC1E,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,iBAAiB,SAC9B,QAAQ,QAAQ,GAAG,SAAA,CAAU,EAC7B,QAAQ,kBAAkB,YAAY;AAAA,IAC3C,QAAQ,aAAa,iBAAiB;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,oBAAoB,MAAM;AAC5C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,oBAAoB;AAAA,IACtC,QAAQ,aAAa,oBAAoB;AAAA,IACzC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,MAAM;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,aAAa,uBAAuB;AAAA,IACzC,QAAQ,aAAa,uBAAuB;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -124,8 +124,19 @@ async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner
|
|
|
124
124
|
method: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.method
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
+
async function apiFindDmBusinessPartnerByIds(body) {
|
|
128
|
+
if (!body || Object.keys(body).length === 0) {
|
|
129
|
+
return void 0;
|
|
130
|
+
}
|
|
131
|
+
return ApiService.fetchDataWithAxios({
|
|
132
|
+
url: BUSINESS_PARTNER_ENDPOINT.findByIds.endpoint,
|
|
133
|
+
method: BUSINESS_PARTNER_ENDPOINT.findByIds.method,
|
|
134
|
+
data: body
|
|
135
|
+
});
|
|
136
|
+
}
|
|
127
137
|
export {
|
|
128
138
|
apiFindDmBusinessPartner,
|
|
139
|
+
apiFindDmBusinessPartnerByIds,
|
|
129
140
|
apiFindDmBusinessPartnerCliente,
|
|
130
141
|
apiFindDmBusinessPartnerFiliais,
|
|
131
142
|
apiFindDmBusinessPartnerFornecedor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessPartnerService.js","sources":["../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAreaVendaCliente, TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst BUSINESS_PARTNER_ENDPOINT = endpointsConfig.dm.businessPartner;\n\nexport async function apiGetDmBusinessPartner(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: BUSINESS_PARTNER_ENDPOINT.findOne.endpoint + `${id}`,\n method: BUSINESS_PARTNER_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiFindDmBusinessPartner(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.find.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.find.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerCliente(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFornecedor(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorFornecedor(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindEmpresasIdsByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindMonitorTransportadora(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFiliais(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerMatrizes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.method,\n data: body,\n })\n}\n\nexport async function apiFindFornecedorNfeByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosFornecedores(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.method,\n data: body,\n })\n}\n\nexport async function apiFindDmVendedoresAKARepresentantesVendas(data = {}) {\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.method,\n data,\n });\n}\n\nexport async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner: string, modulo: string) {\n return ApiService.fetchDataWithAxios<TAreaVendaCliente[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.endpoint + `${businessPartner}/` + `${modulo}`,\n method: BUSINESS_PARTNER_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E,WAAW,GAAG;AAClC,WAAA;AAAA,EAAA;AAEX,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,uDAAuD;AAAA,IACtF,QAAQ,0BAA0B,uDAAuD;AAAA,IACzF,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,qDAAqD,MAAsB;AAC7F,MAAI,CAAC,QAAQ,OAAO,KAAK,IAAI,EAAE,WAAW,GAAG;AAClC,WAAA;AAAA,EAAA;AAEX,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,gDAAgD;AAAA,IAC/E,QAAQ,0BAA0B,gDAAgD;AAAA,IAClF,MAAM;AAAA,EAAA,CACT;AACL;AAEsB,eAAA,2CAA2C,OAAO,IAAI;AACxE,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,8CAA8C;AAAA,IAC7E,QAAQ,0BAA0B,8CAA8C;AAAA,IAChF;AAAA,EAAA,CACH;AACL;AAEsB,eAAA,kDAAkD,iBAAyB,QAAgB;AAC7G,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,0BAA0B,yCAAyC,WAAW,GAAG,eAAe,IAAS,MAAM;AAAA,IACpH,QAAQ,0BAA0B,yCAAyC;AAAA,EAAA,CAC9E;AACL;"}
|
|
1
|
+
{"version":3,"file":"BusinessPartnerService.js","sources":["../../../../../../lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ApiService from \"@/services/ApiService\";\nimport { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TAreaVendaCliente, TBusinessPartner } from \"@base/@types/models/dm/businessPartner\";\nimport { endpointsConfig } from \"@base/configs\";\n\nconst BUSINESS_PARTNER_ENDPOINT = endpointsConfig.dm.businessPartner;\n\nexport async function apiGetDmBusinessPartner(id: number) {\n return ApiService.fetchDataWithAxios<TBusinessPartner>({\n url: BUSINESS_PARTNER_ENDPOINT.findOne.endpoint + `${id}`,\n method: BUSINESS_PARTNER_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiFindDmBusinessPartner(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.find.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.find.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerCliente(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerCliente.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFornecedor(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TQueryResponse<TBusinessPartner[]>>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFornecedor.method,\n data: body,\n })\n}\n\nexport async function apiFindMonitorFornecedor(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorFornecedor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindEmpresasIdsByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindMonitorTransportadora(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFiliais(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFiliais.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerMatrizes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerMatrizes.method,\n data: body,\n })\n}\n\nexport async function apiFindFornecedorNfeByCnpj(cnpj: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.endpoint.replace('{cnpj}', cnpj),\n method: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.httpMethod,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientes(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientes.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosClientesPedidoVenda.method,\n data: body,\n })\n}\n\nexport async function apiFindDmBusinessPartnerFuncoesParceirosFornecedores(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerFuncoesParceirosFornecedores.method,\n data: body,\n })\n}\n\nexport async function apiFindDmVendedoresAKARepresentantesVendas(data = {}) {\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findBusinessPartnerByClientOrSupplierFunction.method,\n data,\n });\n}\n\nexport async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(businessPartner: string, modulo: string) {\n return ApiService.fetchDataWithAxios<TAreaVendaCliente[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.endpoint + `${businessPartner}/` + `${modulo}`,\n method: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.method,\n })\n}\n\nexport async function apiFindDmBusinessPartnerByIds(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TBusinessPartner[]>({\n url: BUSINESS_PARTNER_ENDPOINT.findByIds.endpoint,\n method: BUSINESS_PARTNER_ENDPOINT.findByIds.method,\n data: body,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAMA,MAAM,4BAA4BA,yBAAgB,GAAG;AAErD,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,0BAA0B,QAAQ,WAAW,GAAG,EAAE;AAAA,IACvD,QAAQ,0BAA0B,QAAQ;AAAA,EAAA,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AAG;AAClC,WAAA;AAAA,EAAA;AAEX,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,gDAAgD;AAAA,IAC/E,QAAQ,0BAA0B,gDAAgD;AAAA,IAClF,MAAM;AAAA,EAAA,CACT;AACL;AAEsB,eAAA,2CAA2C,OAAO,IAAI;AACxE,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,8CAA8C;AAAA,IAC7E,QAAQ,0BAA0B,8CAA8C;AAAA,IAChF;AAAA,EAAA,CACH;AACL;AAEsB,eAAA,kDAAkD,iBAAyB,QAAgB;AAC7G,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,0BAA0B,yCAAyC,WAAW,GAAG,eAAe,IAAS,MAAM;AAAA,IACpH,QAAQ,0BAA0B,yCAAyC;AAAA,EAAA,CAC9E;AACL;AAEA,eAAsB,8BAA8B,MAAsB;AACtE,MAAI,CAAC,QAAQ,OAAO,KAAK,IAAI,EAAE,WAAW,GAAG;AAClC,WAAA;AAAA,EAAA;AAEX,SAAO,WAAW,mBAAuC;AAAA,IACrD,KAAK,0BAA0B,UAAU;AAAA,IACzC,QAAQ,0BAA0B,UAAU;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./businessPartner/BusinessPartnerService.js";
|
|
1
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./businessPartner/BusinessPartnerService.js";
|
|
2
2
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./canalDistribuicao/CanalDistribuicaoService.js";
|
|
3
3
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindMonitorCentro } from "./centro/CentroService.js";
|
|
4
4
|
import { apiFindMonitorCentroCusto } from "./centroCusto/CentroCustoService.js";
|
|
@@ -29,6 +29,7 @@ export {
|
|
|
29
29
|
apiFindCentrosByUserId,
|
|
30
30
|
apiFindDescricaoById,
|
|
31
31
|
apiFindDmBusinessPartner,
|
|
32
|
+
apiFindDmBusinessPartnerByIds,
|
|
32
33
|
apiFindDmBusinessPartnerCliente,
|
|
33
34
|
apiFindDmBusinessPartnerFiliais,
|
|
34
35
|
apiFindDmBusinessPartnerFornecedor,
|
|
@@ -11,7 +11,7 @@ import "./insumos/index.js";
|
|
|
11
11
|
import { generateQueryParams, getBaseTableParams } from "./modules.query.js";
|
|
12
12
|
import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
13
13
|
import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./commodities/pedidoVenda/PedidoVendaService.js";
|
|
14
|
-
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./dm/businessPartner/BusinessPartnerService.js";
|
|
14
|
+
import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./dm/businessPartner/BusinessPartnerService.js";
|
|
15
15
|
import { apiFindDmCanalDistribuicao, apiFindDmCanalDistribuicaoByCodigo } from "./dm/canalDistribuicao/CanalDistribuicaoService.js";
|
|
16
16
|
import { apiFindDmCentro, apiFindDmCentroByCodigo, apiFindMonitorCentro } from "./dm/centro/CentroService.js";
|
|
17
17
|
import { apiFindMonitorCentroCusto } from "./dm/centroCusto/CentroCustoService.js";
|
|
@@ -242,6 +242,7 @@ export {
|
|
|
242
242
|
apiFindCounterFisicoServicoAssistencia,
|
|
243
243
|
apiFindDescricaoById,
|
|
244
244
|
apiFindDmBusinessPartner,
|
|
245
|
+
apiFindDmBusinessPartnerByIds,
|
|
245
246
|
apiFindDmBusinessPartnerCliente,
|
|
246
247
|
apiFindDmBusinessPartnerFiliais,
|
|
247
248
|
apiFindDmBusinessPartnerFornecedor,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getBaseTableParams } from "../../../services/query.js";
|
|
2
|
+
import { create } from "zustand";
|
|
3
|
+
const baseTableParams = getBaseTableParams();
|
|
4
|
+
const initialState = {
|
|
5
|
+
filterParams: {},
|
|
6
|
+
tableParams: {
|
|
7
|
+
...baseTableParams,
|
|
8
|
+
pageSize: 500
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const useBusinessPartnerTransportadoraListStore = create((set) => ({
|
|
12
|
+
...initialState,
|
|
13
|
+
setFilterParams: (payload) => set(() => ({ filterParams: payload })),
|
|
14
|
+
setTableParams: (payload) => set(() => ({ tableParams: payload }))
|
|
15
|
+
}));
|
|
16
|
+
export {
|
|
17
|
+
useBusinessPartnerTransportadoraListStore
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=businessPartnerTransportadoraListStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessPartnerTransportadoraListStore.js","sources":["../../../../../lib/base/store/dm/businesPartner/businessPartnerTransportadoraListStore.ts"],"sourcesContent":["import { TBusinessPartner } from '@base/@types/models/dm/businessPartner'\nimport { IListStoreAction, IListStoreState } from '@base/@types/store'\nimport { getBaseTableParams } from '@base/services/query'\nimport { create } from 'zustand'\n\nconst baseTableParams = getBaseTableParams()\n\nconst initialState: IListStoreState<TBusinessPartner> = {\n filterParams: {},\n tableParams: {\n ...baseTableParams,\n pageSize: 500,\n },\n}\n\nexport const useBusinessPartnerTransportadoraListStore = create<\n IListStoreState<TBusinessPartner> & IListStoreAction<TBusinessPartner>\n>((set) => ({\n ...initialState,\n setFilterParams: (payload) => set(() => ({ filterParams: payload })),\n setTableParams: (payload) => set(() => ({ tableParams: payload })),\n}))\n"],"names":[],"mappings":";;AAKA,MAAM,kBAAkB,mBAAmB;AAE3C,MAAM,eAAkD;AAAA,EACpD,cAAc,CAAC;AAAA,EACf,aAAa;AAAA,IACT,GAAG;AAAA,IACH,UAAU;AAAA,EAAA;AAElB;AAEa,MAAA,4CAA4C,OAEvD,CAAC,SAAS;AAAA,EACR,GAAG;AAAA,EACH,iBAAiB,CAAC,YAAY,IAAI,OAAO,EAAE,cAAc,UAAU;AAAA,EACnE,gBAAgB,CAAC,YAAY,IAAI,OAAO,EAAE,aAAa,UAAU;AACrE,EAAE;"}
|
|
@@ -7,6 +7,7 @@ const nfe = {
|
|
|
7
7
|
downloadPdfByChaveAcesso: { endpoint: `${NFE_BASE_URL}/download-pdf`, httpMethod: 'get' },
|
|
8
8
|
validacaoImposto: { endpoint: `${NFE_BASE_URL}/{id}/{numeroPedido}/validacao-imposto`, httpMethod: 'post' },
|
|
9
9
|
addLancamentoManual: { endpoint: `${NFE_BASE_URL}/add/lancamento-manual`, httpMethod: 'patch' },
|
|
10
|
+
desvincularOrdemCompra: { endpoint: `${NFE_BASE_URL}/desvincular-ordem-compra`, httpMethod: 'post' },
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export default nfe
|
|
@@ -15,7 +15,9 @@ const businessPartner = {
|
|
|
15
15
|
findBusinessPartnerFuncoesParceirosClientesPedidoVenda: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes-pedido-venda`, method: 'post' },
|
|
16
16
|
findBusinessPartnerFuncoesParceirosFornecedores: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-fornecedores`, method: 'post' },
|
|
17
17
|
findBusinessPartnerByClientOrSupplierFunction: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-vendedores-aka-representantes-vendas`, method: 'get' },
|
|
18
|
-
findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: 'get' }
|
|
18
|
+
findSalesAreasByBusinessPartnerAndModulo: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-modulo/`, method: 'get' },
|
|
19
|
+
findByIds: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-by-ids`, method: 'post' }
|
|
20
|
+
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export default businessPartner
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
apiFindMonitorTransportadora,
|
|
3
|
+
generateQueryParams,
|
|
4
|
+
} from '@base/services'
|
|
5
|
+
import { useBusinessPartnerTransportadoraListStore } from '@base/store/dm/businesPartner/businessPartnerTransportadoraListStore'
|
|
6
|
+
import useSWR from 'swr'
|
|
7
|
+
|
|
8
|
+
export default function useBusinessPartnerFindMonitorTransportadoraList() {
|
|
9
|
+
const { tableParams, filterParams, setTableParams, setFilterParams } =
|
|
10
|
+
useBusinessPartnerTransportadoraListStore((state) => state)
|
|
11
|
+
|
|
12
|
+
const hasFilter =
|
|
13
|
+
(typeof filterParams.businessPartner === 'string' &&
|
|
14
|
+
filterParams.businessPartner.trim() !== '') ||
|
|
15
|
+
(typeof filterParams.nomeCompletoBusinessPartner === 'string' &&
|
|
16
|
+
filterParams.nomeCompletoBusinessPartner.trim() !== '') ||
|
|
17
|
+
!!filterParams.id
|
|
18
|
+
|
|
19
|
+
const { data, error, isLoading, mutate } = useSWR(
|
|
20
|
+
hasFilter
|
|
21
|
+
? [
|
|
22
|
+
'/api/dm/business-partner/find-monitor-transportadora',
|
|
23
|
+
generateQueryParams(filterParams, tableParams),
|
|
24
|
+
]
|
|
25
|
+
: null,
|
|
26
|
+
([, params]) => apiFindMonitorTransportadora({ ...params }),
|
|
27
|
+
{ revalidateOnFocus: false },
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
const businessPartnerList = data?.content || []
|
|
31
|
+
|
|
32
|
+
const businessPartnerListTotal = data?.size ?? 0
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
data,
|
|
36
|
+
businessPartnerList,
|
|
37
|
+
businessPartnerListTotal,
|
|
38
|
+
error,
|
|
39
|
+
isLoading,
|
|
40
|
+
tableParams,
|
|
41
|
+
filterParams,
|
|
42
|
+
mutate,
|
|
43
|
+
setTableParams,
|
|
44
|
+
setFilterParams,
|
|
45
|
+
}
|
|
46
|
+
}
|
package/lib/base/hooks/index.ts
CHANGED
|
@@ -62,3 +62,4 @@ export { default as useList } from './useList';
|
|
|
62
62
|
export { default as useSafraList } from './dm/safra/useSafraList';
|
|
63
63
|
export { default as useFindProdutosByDepositoList } from './dm/produto/useFindProdutosByDepositoList';
|
|
64
64
|
export { default as useFindPrecoMedioProdutosList } from './insumos/itemCompra/useFindPrecoMedioProdutosList';
|
|
65
|
+
export { default as useBusinessPartnerFindMonitorTransportadoraList } from './dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList';
|
|
@@ -48,4 +48,12 @@ export async function addLancamentoManual(body) {
|
|
|
48
48
|
method: NFE_ENDPOINT.addLancamentoManual.httpMethod,
|
|
49
49
|
data: body
|
|
50
50
|
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function apiDesvincularOrdemCompra(body) {
|
|
54
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
55
|
+
url: NFE_ENDPOINT.desvincularOrdemCompra.endpoint,
|
|
56
|
+
method: NFE_ENDPOINT.desvincularOrdemCompra.httpMethod,
|
|
57
|
+
data: body
|
|
58
|
+
})
|
|
51
59
|
}
|
|
@@ -141,4 +141,15 @@ export async function apiFindDmFindSalesAreasByBusinessPartnerAndModulo(business
|
|
|
141
141
|
url: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.endpoint + `${businessPartner}/` + `${modulo}`,
|
|
142
142
|
method: BUSINESS_PARTNER_ENDPOINT.findSalesAreasByBusinessPartnerAndModulo.method,
|
|
143
143
|
})
|
|
144
|
-
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export async function apiFindDmBusinessPartnerByIds(body?: IFilterParams) {
|
|
147
|
+
if (!body || Object.keys(body).length === 0) {
|
|
148
|
+
return undefined
|
|
149
|
+
}
|
|
150
|
+
return ApiService.fetchDataWithAxios<TBusinessPartner[]>({
|
|
151
|
+
url: BUSINESS_PARTNER_ENDPOINT.findByIds.endpoint,
|
|
152
|
+
method: BUSINESS_PARTNER_ENDPOINT.findByIds.method,
|
|
153
|
+
data: body,
|
|
154
|
+
})
|
|
155
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TBusinessPartner } from '@base/@types/models/dm/businessPartner'
|
|
2
|
+
import { IListStoreAction, IListStoreState } from '@base/@types/store'
|
|
3
|
+
import { getBaseTableParams } from '@base/services/query'
|
|
4
|
+
import { create } from 'zustand'
|
|
5
|
+
|
|
6
|
+
const baseTableParams = getBaseTableParams()
|
|
7
|
+
|
|
8
|
+
const initialState: IListStoreState<TBusinessPartner> = {
|
|
9
|
+
filterParams: {},
|
|
10
|
+
tableParams: {
|
|
11
|
+
...baseTableParams,
|
|
12
|
+
pageSize: 500,
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const useBusinessPartnerTransportadoraListStore = create<
|
|
17
|
+
IListStoreState<TBusinessPartner> & IListStoreAction<TBusinessPartner>
|
|
18
|
+
>((set) => ({
|
|
19
|
+
...initialState,
|
|
20
|
+
setFilterParams: (payload) => set(() => ({ filterParams: payload })),
|
|
21
|
+
setTableParams: (payload) => set(() => ({ tableParams: payload })),
|
|
22
|
+
}))
|
package/package.json
CHANGED