@orbe-agro/client-core 5.6.134 → 5.6.135

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.
@@ -1,6 +1,7 @@
1
1
  declare const nfeEndpointConfig: {
2
2
  findAll: string;
3
3
  getPdf: string;
4
+ addObservacao: string;
4
5
  };
5
6
  export default nfeEndpointConfig;
6
7
  //# sourceMappingURL=nfe.endpoint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nfe.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,iBAAiB;;;CAGtB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"nfe.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,iBAAiB;;;;CAItB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export declare function apiGetNfes(body: any): Promise<unknown>;
2
2
  export declare function apiGetPdf(id: any): Promise<unknown>;
3
+ export declare function apiAddObservacao(body: any): Promise<unknown>;
3
4
  //# sourceMappingURL=NfeService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"names":[],"mappings":"AAGA,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC;AAED,wBAAsB,SAAS,CAAC,EAAE,KAAA,oBAKjC"}
1
+ {"version":3,"file":"NfeService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"names":[],"mappings":"AAGA,wBAAsB,UAAU,CAAC,IAAI,KAAA,oBAMpC;AAED,wBAAsB,SAAS,CAAC,EAAE,KAAA,oBAKjC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,KAAA,oBAM1C"}
@@ -1,7 +1,8 @@
1
1
  const NFE_API_PATH = "/hub-fiscal/api/nfe";
2
2
  const nfeEndpointConfig = {
3
3
  findAll: `${NFE_API_PATH}/find`,
4
- getPdf: `${NFE_API_PATH}/pdf/`
4
+ getPdf: `${NFE_API_PATH}/pdf/`,
5
+ addObservacao: `${NFE_API_PATH}/observacao`
5
6
  };
6
7
  export {
7
8
  nfeEndpointConfig as default
@@ -1 +1 @@
1
- {"version":3,"file":"nfe.endpoint.config.js","sources":["../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"sourcesContent":["const NFE_API_PATH = '/hub-fiscal/api/nfe'\n\nconst nfeEndpointConfig = {\n findAll: `${NFE_API_PATH}/find`,\n getPdf: `${NFE_API_PATH}/pdf/`, \n}\n\nexport default nfeEndpointConfig\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,oBAAoB;AAAA,EACtB,SAAS,GAAG,YAAY;AAAA,EACxB,QAAQ,GAAG,YAAY;AAC3B;"}
1
+ {"version":3,"file":"nfe.endpoint.config.js","sources":["../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"sourcesContent":["const NFE_API_PATH = '/hub-fiscal/api/nfe'\n\nconst nfeEndpointConfig = {\n findAll: `${NFE_API_PATH}/find`,\n getPdf: `${NFE_API_PATH}/pdf/`,\n addObservacao: `${NFE_API_PATH}/observacao`, \n}\n\nexport default nfeEndpointConfig\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAErB,MAAM,oBAAoB;AAAA,EACtB,SAAS,GAAG,YAAY;AAAA,EACxB,QAAQ,GAAG,YAAY;AAAA,EACvB,eAAe,GAAG,YAAY;AAClC;"}
@@ -13,7 +13,15 @@ async function apiGetPdf(id) {
13
13
  method: "get"
14
14
  });
15
15
  }
16
+ async function apiAddObservacao(body) {
17
+ return ApiService.fetchDataWithAxios({
18
+ url: nfeEndpointConfig.addObservacao,
19
+ method: "post",
20
+ data: body
21
+ });
22
+ }
16
23
  export {
24
+ apiAddObservacao,
17
25
  apiGetNfes,
18
26
  apiGetPdf
19
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NfeService.js","sources":["../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"sourcesContent":["import nfeEndpointConfig from '@base/configs/endpoints.config/HubFiscal/nfe.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetNfes(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetPdf(id) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.getPdf + id,\n method: 'get',\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,WAAW,MAAM;AACnC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,UAAU,IAAI;AAChC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,SAAS;AAAA,IAChC,QAAQ;AAAA,EAAA,CACX;AACL;"}
1
+ {"version":3,"file":"NfeService.js","sources":["../../../../../lib/base/services/modules/HubFiscal/NfeService.ts"],"sourcesContent":["import nfeEndpointConfig from '@base/configs/endpoints.config/HubFiscal/nfe.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetNfes(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetPdf(id) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.getPdf + id,\n method: 'get',\n })\n}\n\nexport async function apiAddObservacao(body) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.addObservacao,\n method: 'post',\n data: body,\n })\n}"],"names":[],"mappings":";;AAGA,eAAsB,WAAW,MAAM;AACnC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,UAAU,IAAI;AAChC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,SAAS;AAAA,IAChC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,iBAAiB,MAAM;AACzC,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;"}
@@ -2,7 +2,8 @@ const NFE_API_PATH = '/hub-fiscal/api/nfe'
2
2
 
3
3
  const nfeEndpointConfig = {
4
4
  findAll: `${NFE_API_PATH}/find`,
5
- getPdf: `${NFE_API_PATH}/pdf/`,
5
+ getPdf: `${NFE_API_PATH}/pdf/`,
6
+ addObservacao: `${NFE_API_PATH}/observacao`,
6
7
  }
7
8
 
8
9
  export default nfeEndpointConfig
@@ -14,4 +14,12 @@ export async function apiGetPdf(id) {
14
14
  url: nfeEndpointConfig.getPdf + id,
15
15
  method: 'get',
16
16
  })
17
+ }
18
+
19
+ export async function apiAddObservacao(body) {
20
+ return ApiService.fetchDataWithAxios({
21
+ url: nfeEndpointConfig.addObservacao,
22
+ method: 'post',
23
+ data: body,
24
+ })
17
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.134",
3
+ "version": "5.6.135",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",