@captureid/datatypes 1.0.0 → 1.0.3

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
@@ -78,7 +78,10 @@ export declare enum DataType {
78
78
  CHAT = 76,
79
79
  FARMINGMETHOD = 77,
80
80
  TICKET = 78,
81
- TICKETMESSAGE = 79
81
+ TICKETMESSAGE = 79,
82
+ WEBTEMPLATE = 80,
83
+ EMAILTEMPLATE = 81,
84
+ JOURNAL = 82
82
85
  }
83
86
  export declare enum BookingType {
84
87
  UNKNOWN = 0,
@@ -10,6 +10,12 @@ export interface WebTemplates {
10
10
  }
11
11
  export declare class WebTemplates implements WebTemplates {
12
12
  }
13
+ export interface WebTemplatesObject {
14
+ data: WebTemplates[];
15
+ }
16
+ export declare class WebTemplatesObject extends DataObject implements WebTemplatesObject {
17
+ constructor(data: WebTemplates[]);
18
+ }
13
19
  export interface EmailTemplates {
14
20
  id?: string;
15
21
  type: EMailTemplateType;
@@ -19,6 +25,12 @@ export interface EmailTemplates {
19
25
  }
20
26
  export declare class EmailTemplates implements EmailTemplates {
21
27
  }
28
+ export interface EmailTemplatesObject {
29
+ data: EmailTemplates[];
30
+ }
31
+ export declare class EmailTemplatesObject extends DataObject implements EmailTemplatesObject {
32
+ constructor(data: EmailTemplates[]);
33
+ }
22
34
  export interface Client {
23
35
  id?: string;
24
36
  orderid: number;
@@ -3,15 +3,17 @@ import { DataObject } from "../../data-object";
3
3
  export interface Coupon {
4
4
  id: string;
5
5
  created: Date;
6
- buyer: User[];
7
- beneficiary: User[];
6
+ activationcode: string;
7
+ buyer: User;
8
+ beneficiary: User;
8
9
  activated: Date;
10
+ activatedby: User;
9
11
  startdate: Date;
10
12
  enddate: Date;
11
13
  value: number;
12
14
  }
13
15
  export declare class Coupon implements Coupon {
14
- constructor(id?: string, created?: Date, buyer?: User[], beneficiary?: User[], activated?: Date, startdate?: Date, enddate?: Date, value?: number);
16
+ constructor(id?: string, created?: Date, activationcode?: string, buyer?: User, beneficiary?: User, activated?: Date, activatedby?: User, startdate?: Date, enddate?: Date, value?: number);
15
17
  }
16
18
  export interface CouponObject {
17
19
  data: Coupon[];
@@ -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.0",
3
+ "version": "1.0.3",
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';