@captureid/datatypes 0.0.81 → 0.0.83

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
@@ -65,7 +65,11 @@ export declare enum DataType {
65
65
  USERACCESS = 63,
66
66
  RESOURCE = 64,
67
67
  MENU = 65,
68
- COUPON = 66
68
+ COUPON = 66,
69
+ BON = 67,
70
+ ENDOFDAYBON = 68,
71
+ PROPERTYNAMES = 69,
72
+ CATEGORYNAMES = 70
69
73
  }
70
74
  export declare enum BookingType {
71
75
  UNKNOWN = 0,
@@ -239,3 +243,17 @@ export declare namespace MessageType {
239
243
  function valueOf(str: string): number;
240
244
  function values(): any[];
241
245
  }
246
+ export declare enum Status {
247
+ SUCCESS = 0,
248
+ ERROR = 1,
249
+ INACTIVE = 2,
250
+ DELETED = 3,
251
+ LOCKED = 4,
252
+ UNLOCKED = 5,
253
+ PENDING = 6,
254
+ UNKNOWN = 99
255
+ }
256
+ export declare namespace Status {
257
+ function valueOf(str: string): number;
258
+ function values(): any[];
259
+ }
@@ -0,0 +1,68 @@
1
+ import { Status } from "../../../enums";
2
+ import { Cart } from "../../common/cart-object";
3
+ import { Client } from "../../common/client-object";
4
+ import { Company } from "../../common/company-object";
5
+ import { User } from "../../common/user-object";
6
+ import { DataObject } from "../../data-object";
7
+ export interface BonData {
8
+ id: string;
9
+ terminalid: string;
10
+ additionaltext: string;
11
+ errormessage: string;
12
+ amount: number;
13
+ cardtechnology: string;
14
+ cardname: string;
15
+ cardnumber: string;
16
+ cardsequencenumber: number;
17
+ cardholderauthentication: string;
18
+ printoutneeded: boolean;
19
+ tracenumber: number;
20
+ tracenumberlongformat: number;
21
+ vunumber: string;
22
+ aidauthorisationattribute: string;
23
+ receiptnumber: number;
24
+ currencycode: number;
25
+ dateday: number;
26
+ datemonth: number;
27
+ time: string;
28
+ }
29
+ export declare class BonData implements BonData {
30
+ constructor(id?: string, terminalid?: string, additionaltext?: string, errormessage?: string, amount?: number, cardtechnology?: string, cardname?: string, cardnumber?: string, cardsequencenumber?: number, cardholderauthentication?: string, printoutneeded?: boolean, tracenumber?: number, tracenumberlongformat?: number, vunumber?: string, aidauthorisationattribute?: string, receiptnumber?: number, currencycode?: number, dateday?: number, datemonth?: number, time?: string);
31
+ }
32
+ export interface Bon {
33
+ id: string;
34
+ created: Date;
35
+ user: User;
36
+ cart: Cart;
37
+ pdfdata: Blob;
38
+ bondata: BonData;
39
+ data: string;
40
+ status: Status;
41
+ }
42
+ export declare class Bon implements Bon {
43
+ constructor(id?: string, created?: Date, user?: User, cart?: Cart, pdfdata?: Blob, bondata?: BonData, data?: string, status?: Status);
44
+ }
45
+ export interface EndOfDayBon {
46
+ id: string;
47
+ created: Date;
48
+ company: Company;
49
+ client: Client;
50
+ pdfdata: Blob;
51
+ data: string;
52
+ status: Status;
53
+ }
54
+ export declare class EndOfDayBon implements EndOfDayBon {
55
+ constructor(id?: string, created?: Date, company?: Company, client?: Client, pdfdata?: Blob, data?: string, status?: Status);
56
+ }
57
+ export interface BonObject {
58
+ data: Bon[];
59
+ }
60
+ export declare class BonObject extends DataObject implements BonObject {
61
+ constructor(data: Bon[]);
62
+ }
63
+ export interface EndOfDayBonObject {
64
+ data: EndOfDayBon[];
65
+ }
66
+ export declare class EndOfDayBonObject extends DataObject implements EndOfDayBonObject {
67
+ constructor(data: EndOfDayBon[]);
68
+ }
@@ -1,4 +1,29 @@
1
1
  import { DataObject } from "../../data-object";
2
+ export interface PropertyNames {
3
+ name: string;
4
+ }
5
+ export declare class PropertyNames implements PropertyNames {
6
+ constructor(name?: string);
7
+ }
8
+ export interface PropertyNamesObject {
9
+ data: PropertyNames[];
10
+ }
11
+ export declare class PropertyNamesObject extends DataObject implements PropertyNamesObject {
12
+ constructor(data: PropertyNames[]);
13
+ }
14
+ export interface CategoryNames {
15
+ name: string;
16
+ description: string;
17
+ }
18
+ export declare class CategoryNames implements CategoryNames {
19
+ constructor(name?: string, description?: string);
20
+ }
21
+ export interface CategoryNamesObject {
22
+ data: CategoryNames[];
23
+ }
24
+ export declare class CategoryNamesObject extends DataObject implements CategoryNamesObject {
25
+ constructor(data: CategoryNames[]);
26
+ }
2
27
  export interface ItemProperty {
3
28
  id: string;
4
29
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -45,6 +45,7 @@ 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
47
  export * from './lib/model/erp/items/coupon-object';
48
+ export * from './lib/model/erp/items/bon-object';
48
49
  export * from './lib/model/esl/esl-object';
49
50
  export * from './lib/model/esl/esl-pool-object';
50
51
  export * from './lib/model/esl/esl-association-object';