@captureid/datatypes 1.0.2 → 1.0.4

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/lib/enums.d.ts CHANGED
@@ -80,7 +80,8 @@ export declare enum DataType {
80
80
  TICKET = 78,
81
81
  TICKETMESSAGE = 79,
82
82
  WEBTEMPLATE = 80,
83
- EMAILTEMPLATE = 81
83
+ EMAILTEMPLATE = 81,
84
+ JOURNAL = 82
84
85
  }
85
86
  export declare enum BookingType {
86
87
  UNKNOWN = 0,
@@ -0,0 +1,35 @@
1
+ import { Company } from "../../common/company-object";
2
+ import { Building } from "../../common/location-object";
3
+ import { VAT } from "../../common/taxes";
4
+ import { User } from "../../common/user-object";
5
+ import { DataObject } from "../../data-object";
6
+ import { Bon } from "./bon-object";
7
+ import { Item } from "./item-object";
8
+ import { SellingPrice } from "./price-object";
9
+ export interface ItemJournalEntry {
10
+ item?: Item;
11
+ price?: SellingPrice;
12
+ quantity?: number;
13
+ total?: number;
14
+ tax?: VAT;
15
+ }
16
+ export declare class ItemJournalEntry implements ItemJournalEntry {
17
+ constructor(item?: Item, price?: SellingPrice, quantity?: number, total?: number, tax?: VAT);
18
+ }
19
+ export interface JournalEntry {
20
+ timestamp?: Date;
21
+ user?: User;
22
+ itementry?: ItemJournalEntry[];
23
+ company?: Company;
24
+ building?: Building;
25
+ bon?: Bon;
26
+ }
27
+ export declare class JournalEntry implements JournalEntry {
28
+ constructor(timestamp?: Date, user?: User, itementry?: ItemJournalEntry[], company?: Company, building?: Building, bon?: Bon);
29
+ }
30
+ export interface JournalObject {
31
+ data: JournalEntry[];
32
+ }
33
+ export declare class JournalObject extends DataObject implements JournalObject {
34
+ constructor(data: JournalEntry[]);
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -51,6 +51,7 @@ export * from './lib/model/erp/items/price-object';
51
51
  export * from './lib/model/erp/items/item-short-list-object';
52
52
  export * from './lib/model/erp/items/coupon-object';
53
53
  export * from './lib/model/erp/items/bon-object';
54
+ export * from './lib/model/erp/items/journal-object';
54
55
  export * from './lib/model/esl/esl-object';
55
56
  export * from './lib/model/esl/esl-pool-object';
56
57
  export * from './lib/model/esl/esl-association-object';