@captureid/datatypes 1.0.3 → 1.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.
package/lib/enums.d.ts CHANGED
@@ -301,3 +301,16 @@ export declare namespace TicketSenderType {
301
301
  function valueOf(str: string): number;
302
302
  function values(): any[];
303
303
  }
304
+ export declare enum CouponType {
305
+ UNKNOWN = 0,
306
+ COUPON = 1,
307
+ VOUCHER = 2,
308
+ GIFT = 3,
309
+ GIFT_CARD = 4,
310
+ GIFT_VOUCHER = 5,
311
+ DISCOUNT = 6
312
+ }
313
+ export declare namespace CouponType {
314
+ function valueOf(str: string): number;
315
+ function values(): any[];
316
+ }
@@ -1,7 +1,9 @@
1
+ import { CouponType } from "../../../enums";
1
2
  import { User } from "../../common/user-object";
2
3
  import { DataObject } from "../../data-object";
3
4
  export interface Coupon {
4
5
  id: string;
6
+ type: CouponType;
5
7
  created: Date;
6
8
  activationcode: string;
7
9
  buyer: User;
@@ -13,7 +15,7 @@ export interface Coupon {
13
15
  value: number;
14
16
  }
15
17
  export declare class Coupon implements Coupon {
16
- constructor(id?: string, created?: Date, activationcode?: string, buyer?: User, beneficiary?: User, activated?: Date, activatedby?: User, startdate?: Date, enddate?: Date, value?: number);
18
+ constructor(id?: string, type?: CouponType, created?: Date, activationcode?: string, buyer?: User, beneficiary?: User, activated?: Date, activatedby?: User, startdate?: Date, enddate?: Date, value?: number);
17
19
  }
18
20
  export interface CouponObject {
19
21
  data: Coupon[];
@@ -19,13 +19,13 @@ export declare class ItemJournalEntry implements ItemJournalEntry {
19
19
  export interface JournalEntry {
20
20
  timestamp?: Date;
21
21
  user?: User;
22
- itementry?: ItemJournalEntry;
22
+ itementry?: ItemJournalEntry[];
23
23
  company?: Company;
24
24
  building?: Building;
25
25
  bon?: Bon;
26
26
  }
27
27
  export declare class JournalEntry implements JournalEntry {
28
- constructor(timestamp?: Date, user?: User, itementry?: ItemJournalEntry, company?: Company, building?: Building, bon?: Bon);
28
+ constructor(timestamp?: Date, user?: User, itementry?: ItemJournalEntry[], company?: Company, building?: Building, bon?: Bon);
29
29
  }
30
30
  export interface JournalObject {
31
31
  data: JournalEntry[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"