@fayz-ai/plugin-fiscal-br 0.10.2 → 0.11.0
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/connectors/plugnotas.d.ts +6 -30
- package/dist/connectors/plugnotas.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +555 -285
- package/dist/index.js.map +1 -1
- package/dist/lib/emitters.d.ts +135 -0
- package/dist/lib/emitters.d.ts.map +1 -0
- package/dist/views/EmittersPanel.d.ts +10 -0
- package/dist/views/EmittersPanel.d.ts.map +1 -0
- package/dist/views/UnitFiscalWidgets.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
1
|
import { type ConnectorDefinition } from '@fayz-ai/core';
|
|
3
|
-
import type { PlugNotasConnectorClient, PlugNotasSetupState } from '../types';
|
|
4
2
|
export declare const PLUGNOTAS_CONNECTOR_ID = "plugnotas";
|
|
5
|
-
export declare const PLUGNOTAS_FIELDS: readonly [{
|
|
6
|
-
readonly key: "emitterCnpj";
|
|
7
|
-
readonly label: "CNPJ do emitente";
|
|
8
|
-
readonly type: "text";
|
|
9
|
-
readonly placeholder: "00.000.000/0000-00";
|
|
10
|
-
}];
|
|
11
|
-
export declare const PLUGNOTAS_SETTINGS: readonly [{
|
|
12
|
-
readonly key: "environment";
|
|
13
|
-
readonly label: "Ambiente fiscal";
|
|
14
|
-
readonly description: "Sandbox simula o emissor. Homologação envia para a SEFAZ sem valor fiscal.";
|
|
15
|
-
readonly type: "select";
|
|
16
|
-
readonly options: [{
|
|
17
|
-
readonly value: "sandbox";
|
|
18
|
-
readonly label: "Sandbox simulado";
|
|
19
|
-
}, {
|
|
20
|
-
readonly value: "homologation";
|
|
21
|
-
readonly label: "Homologação SEFAZ";
|
|
22
|
-
}];
|
|
23
|
-
readonly requiredToOperate: true;
|
|
24
|
-
readonly defaultValue: "sandbox";
|
|
25
|
-
}];
|
|
26
3
|
export declare function isValidCnpj(value: string): boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export declare function markPlugNotasEmitterReady(input: PlugNotasSetupState): Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* PlugNotas through the integration service (control-sdk-backend ADR 0008).
|
|
6
|
+
* No form: the key is the platform's, and the certificate, CSC and company
|
|
7
|
+
* registration go through the service, never into this account's tables.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPlugNotasConnector(): ConnectorDefinition;
|
|
34
10
|
//# sourceMappingURL=plugnotas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugnotas.d.ts","sourceRoot":"","sources":["../../src/connectors/plugnotas.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"plugnotas.d.ts","sourceRoot":"","sources":["../../src/connectors/plugnotas.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,eAAe,CAAA;AAGtB,eAAO,MAAM,sBAAsB,cAAc,CAAA;AAQjD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAWlD;AAOD;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,mBAAmB,CA2C9D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PluginManifest } from '@fayz-ai/core';
|
|
2
|
-
import { type CreatePlugNotasConnectorOptions } from './connectors/plugnotas';
|
|
3
2
|
export * from './connectors/plugnotas';
|
|
3
|
+
export * from './lib/emitters';
|
|
4
|
+
export { EmittersPanel } from './views/EmittersPanel';
|
|
4
5
|
export * from './lib/financial-provider';
|
|
5
6
|
export * from './types';
|
|
6
7
|
export * from './lib/nfe-xml';
|
|
@@ -19,7 +20,7 @@ export { IssuedNotesView, ReturnedNotesView, TaxGroupsView } from './views/GapSc
|
|
|
19
20
|
* `createInventoryPlugin({ extraViews })` e o Estoque desenha.
|
|
20
21
|
*/
|
|
21
22
|
export { inboundNotesInventoryView, inboundNoteDocumentModal, InboundNoteDocumentModal } from './views/inventoryView';
|
|
22
|
-
export interface CreatePlugNotasPluginOptions
|
|
23
|
+
export interface CreatePlugNotasPluginOptions {
|
|
23
24
|
/** Onde a linha de Entrada de Notas entra no rail. Default: `main`, posição 5 (depois do estoque). */
|
|
24
25
|
navSection?: 'main' | 'secondary' | 'settings';
|
|
25
26
|
navPosition?: number;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AAWjE,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,iBAAi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