@captureid/datatypes 0.0.79 → 0.0.81

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
@@ -64,7 +64,8 @@ export declare enum DataType {
64
64
  ROLE = 62,
65
65
  USERACCESS = 63,
66
66
  RESOURCE = 64,
67
- MENU = 65
67
+ MENU = 65,
68
+ COUPON = 66
68
69
  }
69
70
  export declare enum BookingType {
70
71
  UNKNOWN = 0,
@@ -0,0 +1,21 @@
1
+ import { User } from "../../common/user-object";
2
+ import { DataObject } from "../../data-object";
3
+ export interface Coupon {
4
+ id: string;
5
+ created: Date;
6
+ buyer: User[];
7
+ beneficiary: User[];
8
+ activated: Date;
9
+ startdate: Date;
10
+ enddate: Date;
11
+ value: number;
12
+ }
13
+ export declare class Coupon implements Coupon {
14
+ constructor(id?: string, created?: Date, buyer?: User[], beneficiary?: User[], activated?: Date, startdate?: Date, enddate?: Date, value?: number);
15
+ }
16
+ export interface CouponObject {
17
+ data: Coupon[];
18
+ }
19
+ export declare class CouponObject extends DataObject implements CouponObject {
20
+ constructor(data: Coupon[]);
21
+ }
@@ -7,6 +7,7 @@ export interface ItemProperty {
7
7
  expression: string;
8
8
  }
9
9
  export declare class ItemProperty implements ItemProperty {
10
+ constructor(id?: string, name?: string, value?: string, base?: string, expression?: string);
10
11
  }
11
12
  export interface ItemPropertyObject {
12
13
  data: ItemProperty[];
@@ -21,7 +22,7 @@ export interface ItemProperties {
21
22
  properties: ItemProperty[];
22
23
  }
23
24
  export declare class ItemProperties implements ItemProperties {
24
- constructor();
25
+ constructor(id?: string, name?: string, description?: string, properties?: ItemProperty[]);
25
26
  }
26
27
  export interface ItemPropertiesObject {
27
28
  data: ItemProperties[];
@@ -1,10 +1,12 @@
1
1
  import { Operators } from "../enums";
2
2
  export interface Paging {
3
3
  page: number;
4
- pageSize: number;
4
+ pagesize: number;
5
+ totalitems: number;
6
+ totalpages: number;
5
7
  }
6
8
  export declare class Paging implements Paging {
7
- constructor(page: number, pageSize: number);
9
+ constructor(page: number, pagesize: number);
8
10
  }
9
11
  export interface Sorting {
10
12
  fieldname: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -44,6 +44,7 @@ export * from './lib/model/erp/items/stock-object';
44
44
  export * from './lib/model/erp/items/booking-object';
45
45
  export * from './lib/model/erp/items/price-object';
46
46
  export * from './lib/model/erp/items/item-short-list-object';
47
+ export * from './lib/model/erp/items/coupon-object';
47
48
  export * from './lib/model/esl/esl-object';
48
49
  export * from './lib/model/esl/esl-pool-object';
49
50
  export * from './lib/model/esl/esl-association-object';