@seidor-cloud-produtos/tax-core 0.0.3 → 0.0.5

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.
Files changed (39) hide show
  1. package/dist/Block.d.mts +1 -1
  2. package/dist/Block.d.ts +1 -1
  3. package/dist/CounterBlock.d.mts +1 -1
  4. package/dist/CounterBlock.d.ts +1 -1
  5. package/dist/CounterRegister.d.mts +1 -1
  6. package/dist/CounterRegister.d.ts +1 -1
  7. package/dist/Decorators-BUUn8PHd.d.mts +50 -0
  8. package/dist/Decorators-BUUn8PHd.d.ts +50 -0
  9. package/dist/Decorators.d.mts +1 -32
  10. package/dist/Decorators.d.ts +1 -32
  11. package/dist/{Register--BQgbqpc.d.mts → Register-B1gRC0_O.d.mts} +1 -1
  12. package/dist/{Register--BQgbqpc.d.ts → Register-B1gRC0_O.d.ts} +1 -1
  13. package/dist/Register.d.mts +1 -1
  14. package/dist/Register.d.ts +1 -1
  15. package/dist/ReportGenerator.d.mts +1 -1
  16. package/dist/ReportGenerator.d.ts +1 -1
  17. package/dist/TagCounter.d.mts +1 -1
  18. package/dist/TagCounter.d.ts +1 -1
  19. package/dist/TaxReport.d.mts +1 -1
  20. package/dist/TaxReport.d.ts +1 -1
  21. package/dist/implementations/MemoryPersist.d.mts +1 -1
  22. package/dist/implementations/MemoryPersist.d.ts +1 -1
  23. package/dist/implementations/TaxRegisterGenerator.d.mts +1 -1
  24. package/dist/implementations/TaxRegisterGenerator.d.ts +1 -1
  25. package/dist/index.d.mts +12 -0
  26. package/dist/index.d.ts +12 -0
  27. package/dist/index.js +604 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/index.mjs +578 -0
  30. package/dist/index.mjs.map +1 -0
  31. package/dist/interfaces/RegisterEventNotifier.d.mts +1 -1
  32. package/dist/interfaces/RegisterEventNotifier.d.ts +1 -1
  33. package/dist/interfaces/RegisterGenerator.d.mts +1 -1
  34. package/dist/interfaces/RegisterGenerator.d.ts +1 -1
  35. package/dist/interfaces/RegisterPersist.d.mts +1 -1
  36. package/dist/interfaces/RegisterPersist.d.ts +1 -1
  37. package/dist/interfaces/RegisterSubscriber.d.mts +1 -1
  38. package/dist/interfaces/RegisterSubscriber.d.ts +1 -1
  39. package/package.json +6 -3
package/dist/Block.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import RegisterPersist from './interfaces/RegisterPersist.mjs';
2
- import { b as RegisterEventNotifier, c as RegisterSubscriber, R as RegisterEventData, a as Register } from './Register--BQgbqpc.mjs';
2
+ import { a as RegisterEventNotifier, b as RegisterSubscriber, c as RegisterEventData, R as Register } from './Register-B1gRC0_O.mjs';
3
3
 
4
4
  declare abstract class Block implements RegisterEventNotifier, RegisterSubscriber {
5
5
  private readonly _name;
package/dist/Block.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import RegisterPersist from './interfaces/RegisterPersist.js';
2
- import { b as RegisterEventNotifier, c as RegisterSubscriber, R as RegisterEventData, a as Register } from './Register--BQgbqpc.js';
2
+ import { a as RegisterEventNotifier, b as RegisterSubscriber, c as RegisterEventData, R as Register } from './Register-B1gRC0_O.js';
3
3
 
4
4
  declare abstract class Block implements RegisterEventNotifier, RegisterSubscriber {
5
5
  private readonly _name;
@@ -1,6 +1,6 @@
1
1
  import Block from './Block.mjs';
2
2
  import RegisterPersist from './interfaces/RegisterPersist.mjs';
3
- import { R as RegisterEventData } from './Register--BQgbqpc.mjs';
3
+ import { c as RegisterEventData } from './Register-B1gRC0_O.mjs';
4
4
 
5
5
  declare class CounterBlock extends Block {
6
6
  constructor(regPersist: RegisterPersist, name?: string);
@@ -1,6 +1,6 @@
1
1
  import Block from './Block.js';
2
2
  import RegisterPersist from './interfaces/RegisterPersist.js';
3
- import { R as RegisterEventData } from './Register--BQgbqpc.js';
3
+ import { c as RegisterEventData } from './Register-B1gRC0_O.js';
4
4
 
5
5
  declare class CounterBlock extends Block {
6
6
  constructor(regPersist: RegisterPersist, name?: string);
@@ -1,4 +1,4 @@
1
- import { a as Register } from './Register--BQgbqpc.mjs';
1
+ import { R as Register } from './Register-B1gRC0_O.mjs';
2
2
 
3
3
  declare class CounterRegister extends Register {
4
4
  reg_blc: string;
@@ -1,4 +1,4 @@
1
- import { a as Register } from './Register--BQgbqpc.js';
1
+ import { R as Register } from './Register-B1gRC0_O.js';
2
2
 
3
3
  declare class CounterRegister extends Register {
4
4
  reg_blc: string;
@@ -0,0 +1,50 @@
1
+ declare const keyCompositionMetada: unique symbol;
2
+ declare const maximumNumericLength = 19;
3
+ declare const defaultAlphanumericLength = 255;
4
+ declare enum FieldDataType {
5
+ alphanumeric = 0,
6
+ numeric = 1
7
+ }
8
+ declare enum valueProviderType {
9
+ property = 0,
10
+ method = 1
11
+ }
12
+ interface FieldFormat {
13
+ required: boolean;
14
+ dataType: FieldDataType;
15
+ maximumLength: number;
16
+ maximumDecimalsLength: number;
17
+ fillEntireLength: boolean;
18
+ valueProvider: valueProviderType;
19
+ }
20
+ declare function Numeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
21
+ declare function Decimal(required?: boolean, fillEntireLength?: boolean, maximumLength?: number, maximumDecimalsLength?: number): (target: any, propertyKey: string, other: any) => void;
22
+ declare function Alphanumeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
23
+ interface KeyComposition {
24
+ fields: KeyFieldDefinition[];
25
+ }
26
+ interface KeyFieldDefinition {
27
+ fieldName: string;
28
+ valueProvider: valueProviderType;
29
+ }
30
+ declare function Key(): (target: any, propertyKey: string, other: any) => void;
31
+
32
+ declare const Decorators_Alphanumeric: typeof Alphanumeric;
33
+ declare const Decorators_Decimal: typeof Decimal;
34
+ type Decorators_FieldDataType = FieldDataType;
35
+ declare const Decorators_FieldDataType: typeof FieldDataType;
36
+ type Decorators_FieldFormat = FieldFormat;
37
+ declare const Decorators_Key: typeof Key;
38
+ type Decorators_KeyComposition = KeyComposition;
39
+ type Decorators_KeyFieldDefinition = KeyFieldDefinition;
40
+ declare const Decorators_Numeric: typeof Numeric;
41
+ declare const Decorators_defaultAlphanumericLength: typeof defaultAlphanumericLength;
42
+ declare const Decorators_keyCompositionMetada: typeof keyCompositionMetada;
43
+ declare const Decorators_maximumNumericLength: typeof maximumNumericLength;
44
+ type Decorators_valueProviderType = valueProviderType;
45
+ declare const Decorators_valueProviderType: typeof valueProviderType;
46
+ declare namespace Decorators {
47
+ export { Decorators_Alphanumeric as Alphanumeric, Decorators_Decimal as Decimal, Decorators_FieldDataType as FieldDataType, type Decorators_FieldFormat as FieldFormat, Decorators_Key as Key, type Decorators_KeyComposition as KeyComposition, type Decorators_KeyFieldDefinition as KeyFieldDefinition, Decorators_Numeric as Numeric, Decorators_defaultAlphanumericLength as defaultAlphanumericLength, Decorators_keyCompositionMetada as keyCompositionMetada, Decorators_maximumNumericLength as maximumNumericLength, Decorators_valueProviderType as valueProviderType };
48
+ }
49
+
50
+ export { Alphanumeric as A, Decorators as D, FieldDataType as F, type KeyComposition as K, Numeric as N, type FieldFormat as a, Decimal as b, type KeyFieldDefinition as c, defaultAlphanumericLength as d, Key as e, keyCompositionMetada as k, maximumNumericLength as m, valueProviderType as v };
@@ -0,0 +1,50 @@
1
+ declare const keyCompositionMetada: unique symbol;
2
+ declare const maximumNumericLength = 19;
3
+ declare const defaultAlphanumericLength = 255;
4
+ declare enum FieldDataType {
5
+ alphanumeric = 0,
6
+ numeric = 1
7
+ }
8
+ declare enum valueProviderType {
9
+ property = 0,
10
+ method = 1
11
+ }
12
+ interface FieldFormat {
13
+ required: boolean;
14
+ dataType: FieldDataType;
15
+ maximumLength: number;
16
+ maximumDecimalsLength: number;
17
+ fillEntireLength: boolean;
18
+ valueProvider: valueProviderType;
19
+ }
20
+ declare function Numeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
21
+ declare function Decimal(required?: boolean, fillEntireLength?: boolean, maximumLength?: number, maximumDecimalsLength?: number): (target: any, propertyKey: string, other: any) => void;
22
+ declare function Alphanumeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
23
+ interface KeyComposition {
24
+ fields: KeyFieldDefinition[];
25
+ }
26
+ interface KeyFieldDefinition {
27
+ fieldName: string;
28
+ valueProvider: valueProviderType;
29
+ }
30
+ declare function Key(): (target: any, propertyKey: string, other: any) => void;
31
+
32
+ declare const Decorators_Alphanumeric: typeof Alphanumeric;
33
+ declare const Decorators_Decimal: typeof Decimal;
34
+ type Decorators_FieldDataType = FieldDataType;
35
+ declare const Decorators_FieldDataType: typeof FieldDataType;
36
+ type Decorators_FieldFormat = FieldFormat;
37
+ declare const Decorators_Key: typeof Key;
38
+ type Decorators_KeyComposition = KeyComposition;
39
+ type Decorators_KeyFieldDefinition = KeyFieldDefinition;
40
+ declare const Decorators_Numeric: typeof Numeric;
41
+ declare const Decorators_defaultAlphanumericLength: typeof defaultAlphanumericLength;
42
+ declare const Decorators_keyCompositionMetada: typeof keyCompositionMetada;
43
+ declare const Decorators_maximumNumericLength: typeof maximumNumericLength;
44
+ type Decorators_valueProviderType = valueProviderType;
45
+ declare const Decorators_valueProviderType: typeof valueProviderType;
46
+ declare namespace Decorators {
47
+ export { Decorators_Alphanumeric as Alphanumeric, Decorators_Decimal as Decimal, Decorators_FieldDataType as FieldDataType, type Decorators_FieldFormat as FieldFormat, Decorators_Key as Key, type Decorators_KeyComposition as KeyComposition, type Decorators_KeyFieldDefinition as KeyFieldDefinition, Decorators_Numeric as Numeric, Decorators_defaultAlphanumericLength as defaultAlphanumericLength, Decorators_keyCompositionMetada as keyCompositionMetada, Decorators_maximumNumericLength as maximumNumericLength, Decorators_valueProviderType as valueProviderType };
48
+ }
49
+
50
+ export { Alphanumeric as A, Decorators as D, FieldDataType as F, type KeyComposition as K, Numeric as N, type FieldFormat as a, Decimal as b, type KeyFieldDefinition as c, defaultAlphanumericLength as d, Key as e, keyCompositionMetada as k, maximumNumericLength as m, valueProviderType as v };
@@ -1,32 +1 @@
1
- declare const keyCompositionMetada: unique symbol;
2
- declare const maximumNumericLength = 19;
3
- declare const defaultAlphanumericLength = 255;
4
- declare enum FieldDataType {
5
- alphanumeric = 0,
6
- numeric = 1
7
- }
8
- declare enum valueProviderType {
9
- property = 0,
10
- method = 1
11
- }
12
- interface FieldFormat {
13
- required: boolean;
14
- dataType: FieldDataType;
15
- maximumLength: number;
16
- maximumDecimalsLength: number;
17
- fillEntireLength: boolean;
18
- valueProvider: valueProviderType;
19
- }
20
- declare function Numeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
21
- declare function Decimal(required?: boolean, fillEntireLength?: boolean, maximumLength?: number, maximumDecimalsLength?: number): (target: any, propertyKey: string, other: any) => void;
22
- declare function Alphanumeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
23
- interface KeyComposition {
24
- fields: KeyFieldDefinition[];
25
- }
26
- interface KeyFieldDefinition {
27
- fieldName: string;
28
- valueProvider: valueProviderType;
29
- }
30
- declare function Key(): (target: any, propertyKey: string, other: any) => void;
31
-
32
- export { Alphanumeric, Decimal, FieldDataType, type FieldFormat, Key, type KeyComposition, type KeyFieldDefinition, Numeric, defaultAlphanumericLength, keyCompositionMetada, maximumNumericLength, valueProviderType };
1
+ export { A as Alphanumeric, b as Decimal, F as FieldDataType, a as FieldFormat, e as Key, K as KeyComposition, c as KeyFieldDefinition, N as Numeric, d as defaultAlphanumericLength, k as keyCompositionMetada, m as maximumNumericLength, v as valueProviderType } from './Decorators-BUUn8PHd.mjs';
@@ -1,32 +1 @@
1
- declare const keyCompositionMetada: unique symbol;
2
- declare const maximumNumericLength = 19;
3
- declare const defaultAlphanumericLength = 255;
4
- declare enum FieldDataType {
5
- alphanumeric = 0,
6
- numeric = 1
7
- }
8
- declare enum valueProviderType {
9
- property = 0,
10
- method = 1
11
- }
12
- interface FieldFormat {
13
- required: boolean;
14
- dataType: FieldDataType;
15
- maximumLength: number;
16
- maximumDecimalsLength: number;
17
- fillEntireLength: boolean;
18
- valueProvider: valueProviderType;
19
- }
20
- declare function Numeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
21
- declare function Decimal(required?: boolean, fillEntireLength?: boolean, maximumLength?: number, maximumDecimalsLength?: number): (target: any, propertyKey: string, other: any) => void;
22
- declare function Alphanumeric(required?: boolean, fillEntireLength?: boolean, maximumLength?: number): (target: any, propertyKey: string, other: any) => void;
23
- interface KeyComposition {
24
- fields: KeyFieldDefinition[];
25
- }
26
- interface KeyFieldDefinition {
27
- fieldName: string;
28
- valueProvider: valueProviderType;
29
- }
30
- declare function Key(): (target: any, propertyKey: string, other: any) => void;
31
-
32
- export { Alphanumeric, Decimal, FieldDataType, type FieldFormat, Key, type KeyComposition, type KeyFieldDefinition, Numeric, defaultAlphanumericLength, keyCompositionMetada, maximumNumericLength, valueProviderType };
1
+ export { A as Alphanumeric, b as Decimal, F as FieldDataType, a as FieldFormat, e as Key, K as KeyComposition, c as KeyFieldDefinition, N as Numeric, d as defaultAlphanumericLength, k as keyCompositionMetada, m as maximumNumericLength, v as valueProviderType } from './Decorators-BUUn8PHd.js';
@@ -26,4 +26,4 @@ declare abstract class Register {
26
26
  getKeyValue(): string;
27
27
  }
28
28
 
29
- export { Event as E, type RegisterEventData as R, Register as a, type RegisterEventNotifier as b, type RegisterSubscriber as c, newRegisterEventData as n };
29
+ export { Event as E, Register as R, type RegisterEventNotifier as a, type RegisterSubscriber as b, type RegisterEventData as c, newRegisterEventData as n };
@@ -26,4 +26,4 @@ declare abstract class Register {
26
26
  getKeyValue(): string;
27
27
  }
28
28
 
29
- export { Event as E, type RegisterEventData as R, Register as a, type RegisterEventNotifier as b, type RegisterSubscriber as c, newRegisterEventData as n };
29
+ export { Event as E, Register as R, type RegisterEventNotifier as a, type RegisterSubscriber as b, type RegisterEventData as c, newRegisterEventData as n };
@@ -1 +1 @@
1
- export { a as Register } from './Register--BQgbqpc.mjs';
1
+ export { R as Register } from './Register-B1gRC0_O.mjs';
@@ -1 +1 @@
1
- export { a as Register } from './Register--BQgbqpc.js';
1
+ export { R as Register } from './Register-B1gRC0_O.js';
@@ -1,6 +1,6 @@
1
1
  import TaxReport from './TaxReport.mjs';
2
2
  import Block from './Block.mjs';
3
- import { a as Register } from './Register--BQgbqpc.mjs';
3
+ import { R as Register } from './Register-B1gRC0_O.mjs';
4
4
  import TagCounter from './TagCounter.mjs';
5
5
  import RegisterGenerator from './interfaces/RegisterGenerator.mjs';
6
6
  import './interfaces/RegisterPersist.mjs';
@@ -1,6 +1,6 @@
1
1
  import TaxReport from './TaxReport.js';
2
2
  import Block from './Block.js';
3
- import { a as Register } from './Register--BQgbqpc.js';
3
+ import { R as Register } from './Register-B1gRC0_O.js';
4
4
  import TagCounter from './TagCounter.js';
5
5
  import RegisterGenerator from './interfaces/RegisterGenerator.js';
6
6
  import './interfaces/RegisterPersist.js';
@@ -1,4 +1,4 @@
1
- import { a as Register } from './Register--BQgbqpc.mjs';
1
+ import { R as Register } from './Register-B1gRC0_O.mjs';
2
2
 
3
3
  declare class TagCounter {
4
4
  private _blocksCounters;
@@ -1,4 +1,4 @@
1
- import { a as Register } from './Register--BQgbqpc.js';
1
+ import { R as Register } from './Register-B1gRC0_O.js';
2
2
 
3
3
  declare class TagCounter {
4
4
  private _blocksCounters;
@@ -1,6 +1,6 @@
1
1
  import Block from './Block.mjs';
2
2
  import './interfaces/RegisterPersist.mjs';
3
- import './Register--BQgbqpc.mjs';
3
+ import './Register-B1gRC0_O.mjs';
4
4
 
5
5
  declare abstract class TaxReport {
6
6
  private readonly _blocks;
@@ -1,6 +1,6 @@
1
1
  import Block from './Block.js';
2
2
  import './interfaces/RegisterPersist.js';
3
- import './Register--BQgbqpc.js';
3
+ import './Register-B1gRC0_O.js';
4
4
 
5
5
  declare abstract class TaxReport {
6
6
  private readonly _blocks;
@@ -1,4 +1,4 @@
1
- import { a as Register } from '../Register--BQgbqpc.mjs';
1
+ import { R as Register } from '../Register-B1gRC0_O.mjs';
2
2
  import RegisterPersist from '../interfaces/RegisterPersist.mjs';
3
3
 
4
4
  declare class MemoryPersist implements RegisterPersist {
@@ -1,4 +1,4 @@
1
- import { a as Register } from '../Register--BQgbqpc.js';
1
+ import { R as Register } from '../Register-B1gRC0_O.js';
2
2
  import RegisterPersist from '../interfaces/RegisterPersist.js';
3
3
 
4
4
  declare class MemoryPersist implements RegisterPersist {
@@ -1,4 +1,4 @@
1
- import { a as Register } from '../Register--BQgbqpc.mjs';
1
+ import { R as Register } from '../Register-B1gRC0_O.mjs';
2
2
  import RegisterGenerator from '../interfaces/RegisterGenerator.mjs';
3
3
  import { OutputWriter } from '../interfaces/OutputWriter.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Register } from '../Register--BQgbqpc.js';
1
+ import { R as Register } from '../Register-B1gRC0_O.js';
2
2
  import RegisterGenerator from '../interfaces/RegisterGenerator.js';
3
3
  import { OutputWriter } from '../interfaces/OutputWriter.js';
4
4
 
@@ -0,0 +1,12 @@
1
+ export { default as Block } from './Block.mjs';
2
+ export { D as Decorators } from './Decorators-BUUn8PHd.mjs';
3
+ export { R as Register, a as RegisterEventNotifier, b as RegisterSubscriber } from './Register-B1gRC0_O.mjs';
4
+ export { default as ReportGenerator } from './ReportGenerator.mjs';
5
+ export { default as TaxReport } from './TaxReport.mjs';
6
+ export { default as ConsoleOutput } from './implementations/ConsoleOutput.mjs';
7
+ export { default as MemoryPersist } from './implementations/MemoryPersist.mjs';
8
+ export { default as TaxRegisterGenerator } from './implementations/TaxRegisterGenerator.mjs';
9
+ export { OutputWriter } from './interfaces/OutputWriter.mjs';
10
+ export { default as RegisterGenerator } from './interfaces/RegisterGenerator.mjs';
11
+ export { default as RegisterPersist } from './interfaces/RegisterPersist.mjs';
12
+ import './TagCounter.mjs';
@@ -0,0 +1,12 @@
1
+ export { default as Block } from './Block.js';
2
+ export { D as Decorators } from './Decorators-BUUn8PHd.js';
3
+ export { R as Register, a as RegisterEventNotifier, b as RegisterSubscriber } from './Register-B1gRC0_O.js';
4
+ export { default as ReportGenerator } from './ReportGenerator.js';
5
+ export { default as TaxReport } from './TaxReport.js';
6
+ export { default as ConsoleOutput } from './implementations/ConsoleOutput.js';
7
+ export { default as MemoryPersist } from './implementations/MemoryPersist.js';
8
+ export { default as TaxRegisterGenerator } from './implementations/TaxRegisterGenerator.js';
9
+ export { OutputWriter } from './interfaces/OutputWriter.js';
10
+ export { default as RegisterGenerator } from './interfaces/RegisterGenerator.js';
11
+ export { default as RegisterPersist } from './interfaces/RegisterPersist.js';
12
+ import './TagCounter.js';