@orbe-agro/client-core 5.6.65 → 5.6.67
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/models/performance/categoria.d.ts +3 -2
- package/dist/@types/base/@types/models/performance/categoria.d.ts.map +1 -1
- package/dist/@types/base/services/modules/mdfe/MdfeService.d.ts +1 -0
- package/dist/@types/base/services/modules/mdfe/MdfeService.d.ts.map +1 -1
- package/dist/base/services/modules/mdfe/MdfeService.js +7 -0
- package/dist/base/services/modules/mdfe/MdfeService.js.map +1 -1
- package/lib/base/@types/models/performance/categoria.ts +3 -2
- package/lib/base/services/modules/mdfe/MdfeService.ts +7 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export type TCategoria = {
|
|
|
2
2
|
id?: number;
|
|
3
3
|
descricao: string;
|
|
4
4
|
peso: number;
|
|
5
|
-
|
|
5
|
+
modeloNotaIds: number[];
|
|
6
6
|
};
|
|
7
7
|
export type TFindMonitorCategoria = {
|
|
8
8
|
id: number;
|
|
@@ -11,6 +11,7 @@ export type TFindMonitorCategoria = {
|
|
|
11
11
|
descricao: string;
|
|
12
12
|
peso: number;
|
|
13
13
|
modeloNotaDescricao: string;
|
|
14
|
-
|
|
14
|
+
modeloNotaIds: number[];
|
|
15
|
+
emUso?: boolean;
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=categoria.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoria.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/performance/categoria.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,
|
|
1
|
+
{"version":3,"file":"categoria.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/performance/categoria.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,EAAE,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,mBAAmB,EAAE,MAAM,CAAA;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -16,4 +16,5 @@ export declare function apiDownloadDamdfe(id: number): Promise<string>;
|
|
|
16
16
|
export declare function apiConsultarMdfeSefaz(chaveAcesso: string): Promise<TConsultarSefazResponse>;
|
|
17
17
|
export declare function apiIncluirCondutorMdfe(data: TIncluirCondutorMdfeRequest): Promise<TEventoMdfeResponse>;
|
|
18
18
|
export declare function apiIncluirDfeMdfe(data: TIncluirDfeMdfeRequest): Promise<TEventoMdfeResponse>;
|
|
19
|
+
export declare function apiDeleteEmissaoMdfe(id: number): Promise<void>;
|
|
19
20
|
//# sourceMappingURL=MdfeService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MdfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/mdfe/MdfeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EACH,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,sCAAsC,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,GAAG,WAAW,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAsB,iBAAiB,CAAC,IAAI,CAAC,EAAE,aAAa,yCAM3D;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,IAAI,yCAYrD;AAED,wBAAsB,oBAAoB,CAAC,IAAI,CAAC,EAAE,YAAY,yCAM7D;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,oBAAoB,yCAM/D;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,oBAAoB,yCAM/D;AAED,wBAAsB,oBAAoB,CAAC,IAAI,CAAC,EAAE,YAAY,yCAM7D;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,yBAKrD;AAED,wBAAsB,iBAAiB,CAAC,EAAE,EAAE,MAAM,mBAKjD;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,oCAK9D;AAED,wBAAsB,sBAAsB,CACxC,IAAI,EAAE,2BAA2B,gCAOpC;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,sBAAsB,gCAMnE"}
|
|
1
|
+
{"version":3,"file":"MdfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/mdfe/MdfeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EACH,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,sCAAsC,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,GAAG,WAAW,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAsB,iBAAiB,CAAC,IAAI,CAAC,EAAE,aAAa,yCAM3D;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,IAAI,yCAYrD;AAED,wBAAsB,oBAAoB,CAAC,IAAI,CAAC,EAAE,YAAY,yCAM7D;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,oBAAoB,yCAM/D;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,oBAAoB,yCAM/D;AAED,wBAAsB,oBAAoB,CAAC,IAAI,CAAC,EAAE,YAAY,yCAM7D;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,yBAKrD;AAED,wBAAsB,iBAAiB,CAAC,EAAE,EAAE,MAAM,mBAKjD;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,oCAK9D;AAED,wBAAsB,sBAAsB,CACxC,IAAI,EAAE,2BAA2B,gCAOpC;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,sBAAsB,gCAMnE;AAED,wBAAsB,oBAAoB,CAAC,EAAE,EAAE,MAAM,iBAKpD"}
|
|
@@ -80,10 +80,17 @@ async function apiIncluirDfeMdfe(data) {
|
|
|
80
80
|
data
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
+
async function apiDeleteEmissaoMdfe(id) {
|
|
84
|
+
return ApiService.fetchDataWithAxios({
|
|
85
|
+
url: `${endpointNavigationConfig.mdfe.emissaoMdfe.delete}/${id}`,
|
|
86
|
+
method: "delete"
|
|
87
|
+
});
|
|
88
|
+
}
|
|
83
89
|
export {
|
|
84
90
|
apiCancelarMdfe,
|
|
85
91
|
apiConsultarMdfeSefaz,
|
|
86
92
|
apiCreateEmissaoMdfe,
|
|
93
|
+
apiDeleteEmissaoMdfe,
|
|
87
94
|
apiDownloadDamdfe,
|
|
88
95
|
apiEncerrarMdfe,
|
|
89
96
|
apiExtrairDadosXml,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MdfeService.js","sources":["../../../../../lib/base/services/modules/mdfe/MdfeService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\nimport {\n TEmissaoMdfe,\n TCancelarMdfeRequest,\n TEncerrarMdfeRequest,\n TIncluirCondutorMdfeRequest,\n TIncluirDfeMdfeRequest,\n TEventoMdfeResponse,\n} from '@base/@types/models/mdfe/emissaoMdfe'\n\nexport type TConsultarSefazResponse = {\n id: number\n status: 'SALVO' | 'EXISTENTE'\n message: string\n}\n\nexport async function apiGetEmissaoMdfe(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiExtrairDadosXml(arquivo: File) {\n const formData = new FormData()\n formData.append('arquivo', arquivo)\n\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.extrairDadosXml,\n method: 'post',\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n })\n}\n\nexport async function apiCreateEmissaoMdfe(data?: TEmissaoMdfe) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.add,\n method: 'post',\n data,\n })\n}\n\nexport async function apiCancelarMdfe(data: TCancelarMdfeRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.cancelar,\n method: 'post',\n data,\n })\n}\n\nexport async function apiEncerrarMdfe(data: TEncerrarMdfeRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.encerrar,\n method: 'post',\n data,\n })\n}\n\nexport async function apiUpdateEmissaoMdfe(data?: TEmissaoMdfe) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.update,\n method: 'patch',\n data,\n })\n}\n\nexport async function apiFindOneEmissaoMdfe(id: string) {\n return ApiService.fetchDataWithAxios<TEmissaoMdfe>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiDownloadDamdfe(id: number) {\n return ApiService.fetchDataWithAxios<string>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.damdfe}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiConsultarMdfeSefaz(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<TConsultarSefazResponse>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.consultarSefaz}/${chaveAcesso}`,\n method: 'get',\n })\n}\n\nexport async function apiIncluirCondutorMdfe(\n data: TIncluirCondutorMdfeRequest,\n) {\n return ApiService.fetchDataWithAxios<TEventoMdfeResponse>({\n url: endpointsConfig.mdfe.emissaoMdfe.incluirCondutor,\n method: 'post',\n data,\n })\n}\n\nexport async function apiIncluirDfeMdfe(data: TIncluirDfeMdfeRequest) {\n return ApiService.fetchDataWithAxios<TEventoMdfeResponse>({\n url: endpointsConfig.mdfe.emissaoMdfe.incluirDfe,\n method: 'post',\n data,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAkBA,eAAsB,kBAAkB,MAAsB;AAC1D,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAKA,yBAAgB,KAAK,YAAY;AAAA,IACtC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,mBAAmB,SAAe;AACpD,QAAM,WAAW,IAAI,SAAA;AACrB,WAAS,OAAO,WAAW,OAAO;AAElC,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAKA,yBAAgB,KAAK,YAAY;AAAA,IACtC,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;AAEA,eAAsB,qBAAqB,MAAqB;AAC5D,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAKA,yB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AY;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
|
|
1
|
+
{"version":3,"file":"MdfeService.js","sources":["../../../../../lib/base/services/modules/mdfe/MdfeService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { endpointsConfig } from '@base/configs'\nimport ApiService from '@/services/ApiService'\nimport {\n TEmissaoMdfe,\n TCancelarMdfeRequest,\n TEncerrarMdfeRequest,\n TIncluirCondutorMdfeRequest,\n TIncluirDfeMdfeRequest,\n TEventoMdfeResponse,\n} from '@base/@types/models/mdfe/emissaoMdfe'\n\nexport type TConsultarSefazResponse = {\n id: number\n status: 'SALVO' | 'EXISTENTE'\n message: string\n}\n\nexport async function apiGetEmissaoMdfe(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiExtrairDadosXml(arquivo: File) {\n const formData = new FormData()\n formData.append('arquivo', arquivo)\n\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.extrairDadosXml,\n method: 'post',\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n })\n}\n\nexport async function apiCreateEmissaoMdfe(data?: TEmissaoMdfe) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.add,\n method: 'post',\n data,\n })\n}\n\nexport async function apiCancelarMdfe(data: TCancelarMdfeRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.cancelar,\n method: 'post',\n data,\n })\n}\n\nexport async function apiEncerrarMdfe(data: TEncerrarMdfeRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.encerrar,\n method: 'post',\n data,\n })\n}\n\nexport async function apiUpdateEmissaoMdfe(data?: TEmissaoMdfe) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TEmissaoMdfe>>({\n url: endpointsConfig.mdfe.emissaoMdfe.update,\n method: 'patch',\n data,\n })\n}\n\nexport async function apiFindOneEmissaoMdfe(id: string) {\n return ApiService.fetchDataWithAxios<TEmissaoMdfe>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.findOne}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiDownloadDamdfe(id: number) {\n return ApiService.fetchDataWithAxios<string>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.damdfe}/${id}`,\n method: 'get',\n })\n}\n\nexport async function apiConsultarMdfeSefaz(chaveAcesso: string) {\n return ApiService.fetchDataWithAxios<TConsultarSefazResponse>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.consultarSefaz}/${chaveAcesso}`,\n method: 'get',\n })\n}\n\nexport async function apiIncluirCondutorMdfe(\n data: TIncluirCondutorMdfeRequest,\n) {\n return ApiService.fetchDataWithAxios<TEventoMdfeResponse>({\n url: endpointsConfig.mdfe.emissaoMdfe.incluirCondutor,\n method: 'post',\n data,\n })\n}\n\nexport async function apiIncluirDfeMdfe(data: TIncluirDfeMdfeRequest) {\n return ApiService.fetchDataWithAxios<TEventoMdfeResponse>({\n url: endpointsConfig.mdfe.emissaoMdfe.incluirDfe,\n method: 'post',\n data,\n })\n}\n\nexport async function apiDeleteEmissaoMdfe(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: `${endpointsConfig.mdfe.emissaoMdfe.delete}/${id}`,\n method: 'delete',\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAkBA,eAAsB,kBAAkB,MAAsB;AAC1D,SAAO,WAAW,mBAAiD;AAAA,IAC/D,KAAKA,yBAAgB,KAAK,YAAY;AAAA,IACtC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,mBAAmB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GAAGA,yBAAgB,KAAK,YAAY,cAAc,IAAI,WAAW;AAAA,IACtE,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,uBAClB,MACF;AACE,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAKA,yBAAgB,KAAK,YAAY;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,kBAAkB,MAA8B;AAClE,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAKA,yBAAgB,KAAK,YAAY;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,qBAAqB,IAAY;AACnD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,GAAGA,yBAAgB,KAAK,YAAY,MAAM,IAAI,EAAE;AAAA,IACrD,QAAQ;AAAA,EAAA,CACX;AACL;"}
|
|
@@ -2,7 +2,7 @@ export type TCategoria = {
|
|
|
2
2
|
id?: number
|
|
3
3
|
descricao: string
|
|
4
4
|
peso: number
|
|
5
|
-
|
|
5
|
+
modeloNotaIds: number[]
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export type TFindMonitorCategoria = {
|
|
@@ -12,5 +12,6 @@ export type TFindMonitorCategoria = {
|
|
|
12
12
|
descricao: string
|
|
13
13
|
peso: number
|
|
14
14
|
modeloNotaDescricao: string
|
|
15
|
-
|
|
15
|
+
modeloNotaIds: number[]
|
|
16
|
+
emUso?: boolean
|
|
16
17
|
}
|
|
@@ -108,3 +108,10 @@ export async function apiIncluirDfeMdfe(data: TIncluirDfeMdfeRequest) {
|
|
|
108
108
|
data,
|
|
109
109
|
})
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
export async function apiDeleteEmissaoMdfe(id: number) {
|
|
113
|
+
return ApiService.fetchDataWithAxios<void>({
|
|
114
|
+
url: `${endpointsConfig.mdfe.emissaoMdfe.delete}/${id}`,
|
|
115
|
+
method: 'delete',
|
|
116
|
+
})
|
|
117
|
+
}
|