@zensoftbr/zenerpclient 1.0.1 → 1.0.2
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/cjs/api/api.module.js +1 -2
- package/dist/cjs/api/api.module.js.map +1 -1
- package/dist/cjs/api/fiscal/fiscal.module.js +2 -1
- package/dist/cjs/api/fiscal/fiscal.module.js.map +1 -1
- package/dist/cjs/api/fiscal/taxation/Tax.js +13 -0
- package/dist/cjs/api/fiscal/taxation/Tax.js.map +1 -0
- package/dist/cjs/api/fiscal/taxation/Taxation.js +24 -0
- package/dist/cjs/api/fiscal/taxation/Taxation.js.map +1 -0
- package/dist/cjs/api/fiscal/taxation/TaxationOperation.js +14 -0
- package/dist/cjs/api/fiscal/taxation/TaxationOperation.js.map +1 -0
- package/dist/cjs/api/fiscal/taxation/TaxationRule.js +16 -0
- package/dist/cjs/api/fiscal/taxation/TaxationRule.js.map +1 -0
- package/dist/cjs/api/fiscal/taxation/TaxationService.js +163 -0
- package/dist/cjs/api/fiscal/taxation/TaxationService.js.map +1 -0
- package/dist/cjs/api/fiscal/taxation/taxation.module.js +14 -0
- package/dist/cjs/api/fiscal/taxation/taxation.module.js.map +1 -0
- package/dist/esm/api/api.module.js +0 -1
- package/dist/esm/api/api.module.js.map +1 -1
- package/dist/esm/api/fiscal/fiscal.module.js +1 -0
- package/dist/esm/api/fiscal/fiscal.module.js.map +1 -1
- package/dist/esm/api/fiscal/taxation/Tax.js +9 -0
- package/dist/esm/api/fiscal/taxation/Tax.js.map +1 -0
- package/dist/esm/api/fiscal/taxation/Taxation.js +20 -0
- package/dist/esm/api/fiscal/taxation/Taxation.js.map +1 -0
- package/dist/esm/api/fiscal/taxation/TaxationOperation.js +10 -0
- package/dist/esm/api/fiscal/taxation/TaxationOperation.js.map +1 -0
- package/dist/esm/api/fiscal/taxation/TaxationRule.js +12 -0
- package/dist/esm/api/fiscal/taxation/TaxationRule.js.map +1 -0
- package/dist/esm/api/fiscal/taxation/TaxationService.js +159 -0
- package/dist/esm/api/fiscal/taxation/TaxationService.js.map +1 -0
- package/dist/esm/api/fiscal/taxation/taxation.module.js +6 -0
- package/dist/esm/api/fiscal/taxation/taxation.module.js.map +1 -0
- package/dist/iife/zenerpclient.js +1 -1
- package/dist/iife/zenerpclient.js.map +1 -1
- package/dist/types/api/api.module.d.ts +0 -1
- package/dist/types/api/financial/accounting/AccountDefault.d.ts +1 -1
- package/dist/types/api/fiscal/IncomingInvoiceItem.d.ts +2 -2
- package/dist/types/api/fiscal/InvoiceItem.d.ts +2 -2
- package/dist/types/api/fiscal/OutgoingInvoiceItem.d.ts +2 -2
- package/dist/types/api/fiscal/fiscal.module.d.ts +1 -0
- package/dist/types/api/fiscal/taxation/Tax.d.ts +9 -0
- package/dist/types/api/fiscal/taxation/Taxation.d.ts +20 -0
- package/dist/types/api/fiscal/taxation/TaxationOperation.d.ts +10 -0
- package/dist/types/api/fiscal/taxation/TaxationRule.d.ts +15 -0
- package/dist/types/api/fiscal/taxation/TaxationService.d.ts +31 -0
- package/dist/types/api/fiscal/taxation/taxation.module.d.ts +5 -0
- package/dist/types/api/purchase/ProposalItem.d.ts +2 -2
- package/dist/types/api/purchase/PurchaseItem.d.ts +2 -2
- package/dist/types/api/sale/SaleItem.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,4 +11,3 @@ export * as service from "./service/service.module.js";
|
|
|
11
11
|
export * as shipping from "./shipping/shipping.module.js";
|
|
12
12
|
export * as supply from "./supply/supply.module.js";
|
|
13
13
|
export * as system from "./system/system.module.js";
|
|
14
|
-
export * as taxation from "./taxation/taxation.module.js";
|
|
@@ -3,7 +3,7 @@ import { AccountCategory } from "./AccountCategory.js";
|
|
|
3
3
|
import { AccountChart } from "./AccountChart.js";
|
|
4
4
|
import { Person } from "../../catalog/person/Person.js";
|
|
5
5
|
import { Product } from "../../catalog/product/Product.js";
|
|
6
|
-
import { Tax } from "../../taxation/Tax.js";
|
|
6
|
+
import { Tax } from "../../fiscal/taxation/Tax.js";
|
|
7
7
|
import { Wallet } from "../billing/Wallet.js";
|
|
8
8
|
export declare class AccountDefault {
|
|
9
9
|
id: number;
|
|
@@ -4,8 +4,8 @@ import { AssetTag } from "../financial/accounting/AssetTag.js";
|
|
|
4
4
|
import { IncomingInvoice } from "./IncomingInvoice.js";
|
|
5
5
|
import { IncomingRequest } from "../material/IncomingRequest.js";
|
|
6
6
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
7
|
-
import { TaxationOperation } from "
|
|
8
|
-
import { TaxationRule } from "
|
|
7
|
+
import { TaxationOperation } from "./taxation/TaxationOperation.js";
|
|
8
|
+
import { TaxationRule } from "./taxation/TaxationRule.js";
|
|
9
9
|
import { Unit } from "../catalog/product/Unit.js";
|
|
10
10
|
export declare class IncomingInvoiceItem {
|
|
11
11
|
incomingInvoice: IncomingInvoice;
|
|
@@ -2,8 +2,8 @@ import { Account } from "../financial/accounting/Account.js";
|
|
|
2
2
|
import { AccountComplement } from "../financial/accounting/AccountComplement.js";
|
|
3
3
|
import { AssetTag } from "../financial/accounting/AssetTag.js";
|
|
4
4
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
5
|
-
import { TaxationOperation } from "
|
|
6
|
-
import { TaxationRule } from "
|
|
5
|
+
import { TaxationOperation } from "./taxation/TaxationOperation.js";
|
|
6
|
+
import { TaxationRule } from "./taxation/TaxationRule.js";
|
|
7
7
|
import { Unit } from "../catalog/product/Unit.js";
|
|
8
8
|
export declare class InvoiceItem {
|
|
9
9
|
OTHER_VALUES_FREIGHT: string;
|
|
@@ -3,8 +3,8 @@ import { AccountComplement } from "../financial/accounting/AccountComplement.js"
|
|
|
3
3
|
import { AssetTag } from "../financial/accounting/AssetTag.js";
|
|
4
4
|
import { OutgoingInvoice } from "./OutgoingInvoice.js";
|
|
5
5
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
6
|
-
import { TaxationOperation } from "
|
|
7
|
-
import { TaxationRule } from "
|
|
6
|
+
import { TaxationOperation } from "./taxation/TaxationOperation.js";
|
|
7
|
+
import { TaxationRule } from "./taxation/TaxationRule.js";
|
|
8
8
|
import { Unit } from "../catalog/product/Unit.js";
|
|
9
9
|
export declare class OutgoingInvoiceItem {
|
|
10
10
|
outgoingInvoice: OutgoingInvoice;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as br from "./br/br.module.js";
|
|
2
|
+
export * as taxation from "./taxation/taxation.module.js";
|
|
2
3
|
export { FiscalService } from "./FiscalService.js";
|
|
3
4
|
export { FiscalProfileOperation } from "./FiscalProfileOperation.js";
|
|
4
5
|
export { FiscalProfilePerson } from "./FiscalProfilePerson.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Tax } from "./Tax.js";
|
|
2
|
+
export declare class Taxation {
|
|
3
|
+
id: number;
|
|
4
|
+
source: string;
|
|
5
|
+
tax: Tax;
|
|
6
|
+
taxType: string;
|
|
7
|
+
grossBaseValueExpression: string;
|
|
8
|
+
grossBaseValue: number;
|
|
9
|
+
grossBaseValueVariationRate: number;
|
|
10
|
+
baseValue: number;
|
|
11
|
+
taxRate: number;
|
|
12
|
+
grossTaxValue: number;
|
|
13
|
+
taxAdjustmentExpression: string;
|
|
14
|
+
taxAdjustmentValue: number;
|
|
15
|
+
taxValue: number;
|
|
16
|
+
compensationRate: number;
|
|
17
|
+
compensationValue: number;
|
|
18
|
+
tags: string;
|
|
19
|
+
properties: Object;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FiscalProfileOperation } from "../FiscalProfileOperation.js";
|
|
2
|
+
import { FiscalProfilePerson } from "../FiscalProfilePerson.js";
|
|
3
|
+
import { FiscalProfileProduct } from "../FiscalProfileProduct.js";
|
|
4
|
+
import { TaxationOperation } from "./TaxationOperation.js";
|
|
5
|
+
export declare class TaxationRule {
|
|
6
|
+
id: number;
|
|
7
|
+
flow: string;
|
|
8
|
+
fiscalProfileCompany: FiscalProfilePerson;
|
|
9
|
+
fiscalProfilePerson: FiscalProfilePerson;
|
|
10
|
+
fiscalProfileProduct: FiscalProfileProduct;
|
|
11
|
+
fiscalProfileOperation: FiscalProfileOperation;
|
|
12
|
+
taxationOperation: TaxationOperation;
|
|
13
|
+
tags: string;
|
|
14
|
+
properties: Object;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Client } from "../../../Client.js";
|
|
2
|
+
import { Tax } from "./Tax.js";
|
|
3
|
+
import { Taxation } from "./Taxation.js";
|
|
4
|
+
import { TaxationOperation } from "./TaxationOperation.js";
|
|
5
|
+
import { TaxationRule } from "./TaxationRule.js";
|
|
6
|
+
export declare class TaxationService {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
taxCreate(bean: Tax): Promise<Tax>;
|
|
10
|
+
taxDelete(id: number): Promise<void>;
|
|
11
|
+
taxOpReadByCode(fiscalRegionCode: string, code: string): Promise<Tax>;
|
|
12
|
+
taxRead(search: any): Promise<Tax[]>;
|
|
13
|
+
taxReadById(id: number): Promise<Tax>;
|
|
14
|
+
taxUpdate(bean: Tax): Promise<Tax>;
|
|
15
|
+
taxationCreate(bean: Taxation): Promise<Taxation>;
|
|
16
|
+
taxationDelete(id: number): Promise<void>;
|
|
17
|
+
taxationOperationCreate(bean: TaxationOperation): Promise<TaxationOperation>;
|
|
18
|
+
taxationOperationDelete(id: number): Promise<void>;
|
|
19
|
+
taxationOperationOpReadByCode(fiscalRegionCode: string, code: string): Promise<TaxationOperation>;
|
|
20
|
+
taxationOperationRead(search: any): Promise<TaxationOperation[]>;
|
|
21
|
+
taxationOperationReadById(id: number): Promise<TaxationOperation>;
|
|
22
|
+
taxationOperationUpdate(bean: TaxationOperation): Promise<TaxationOperation>;
|
|
23
|
+
taxationRead(search: any): Promise<Taxation[]>;
|
|
24
|
+
taxationReadById(id: number): Promise<Taxation>;
|
|
25
|
+
taxationRuleCreate(bean: TaxationRule): Promise<TaxationRule>;
|
|
26
|
+
taxationRuleDelete(id: number): Promise<void>;
|
|
27
|
+
taxationRuleRead(search: any): Promise<TaxationRule[]>;
|
|
28
|
+
taxationRuleReadById(id: number): Promise<TaxationRule>;
|
|
29
|
+
taxationRuleUpdate(bean: TaxationRule): Promise<TaxationRule>;
|
|
30
|
+
taxationUpdate(bean: Taxation): Promise<Taxation>;
|
|
31
|
+
}
|
|
@@ -3,8 +3,8 @@ import { FiscalProfileProduct } from "../fiscal/FiscalProfileProduct.js";
|
|
|
3
3
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
4
4
|
import { Proposal } from "./Proposal.js";
|
|
5
5
|
import { QuoteItem } from "./QuoteItem.js";
|
|
6
|
-
import { TaxationOperation } from "../taxation/TaxationOperation.js";
|
|
7
|
-
import { TaxationRule } from "../taxation/TaxationRule.js";
|
|
6
|
+
import { TaxationOperation } from "../fiscal/taxation/TaxationOperation.js";
|
|
7
|
+
import { TaxationRule } from "../fiscal/taxation/TaxationRule.js";
|
|
8
8
|
import { Unit } from "../catalog/product/Unit.js";
|
|
9
9
|
export declare class ProposalItem {
|
|
10
10
|
id: number;
|
|
@@ -3,8 +3,8 @@ import { AccountComplement } from "../financial/accounting/AccountComplement.js"
|
|
|
3
3
|
import { FiscalProfileProduct } from "../fiscal/FiscalProfileProduct.js";
|
|
4
4
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
5
5
|
import { Purchase } from "./Purchase.js";
|
|
6
|
-
import { TaxationOperation } from "../taxation/TaxationOperation.js";
|
|
7
|
-
import { TaxationRule } from "../taxation/TaxationRule.js";
|
|
6
|
+
import { TaxationOperation } from "../fiscal/taxation/TaxationOperation.js";
|
|
7
|
+
import { TaxationRule } from "../fiscal/taxation/TaxationRule.js";
|
|
8
8
|
import { Unit } from "../catalog/product/Unit.js";
|
|
9
9
|
export declare class PurchaseItem {
|
|
10
10
|
id: number;
|
|
@@ -4,8 +4,8 @@ import { FiscalProfileProduct } from "../fiscal/FiscalProfileProduct.js";
|
|
|
4
4
|
import { ProductPacking } from "../catalog/product/ProductPacking.js";
|
|
5
5
|
import { PurchaseItem } from "../purchase/PurchaseItem.js";
|
|
6
6
|
import { Sale } from "./Sale.js";
|
|
7
|
-
import { TaxationOperation } from "../taxation/TaxationOperation.js";
|
|
8
|
-
import { TaxationRule } from "../taxation/TaxationRule.js";
|
|
7
|
+
import { TaxationOperation } from "../fiscal/taxation/TaxationOperation.js";
|
|
8
|
+
import { TaxationRule } from "../fiscal/taxation/TaxationRule.js";
|
|
9
9
|
export declare class SaleItem {
|
|
10
10
|
id: number;
|
|
11
11
|
sale: Sale;
|