@captureid/datatypes 0.0.99 → 1.0.2

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,9 @@ 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
82
84
  }
83
85
  export declare enum BookingType {
84
86
  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;
@@ -1,6 +1,5 @@
1
1
  import { RegistrationState } from "../../enums";
2
2
  import { DataObject } from "../data-object";
3
- import { Client } from "./client-object";
4
3
  import { Context } from "./context";
5
4
  export interface User {
6
5
  id?: string;
@@ -30,10 +29,10 @@ export interface User {
30
29
  accountNonExpired?: boolean;
31
30
  username?: string;
32
31
  enabled?: boolean;
33
- clients?: Client[];
32
+ client?: string;
34
33
  }
35
34
  export declare class User implements User {
36
- constructor(id?: string, use2FA?: boolean, created?: Date, regstate?: RegistrationState, creator?: string, changed?: Date, changedBy?: string, firstname?: string, lastname?: string, email?: string, role?: string, phone?: string, mobile?: string, city?: string, zipcode?: string, street?: string, no?: string, country?: string, state?: string, dateOfBirth?: string, context?: Context, avatarImg?: Blob, credentialsNonExpired?: boolean, accountNonLocked?: boolean, accountNonExpired?: boolean, username?: string, enabled?: boolean, clients?: Client[]);
35
+ constructor(id?: string, use2FA?: boolean, created?: Date, regstate?: RegistrationState, creator?: string, changed?: Date, changedBy?: string, firstname?: string, lastname?: string, email?: string, role?: string, phone?: string, mobile?: string, city?: string, zipcode?: string, street?: string, no?: string, country?: string, state?: string, dateOfBirth?: string, context?: Context, avatarImg?: Blob, credentialsNonExpired?: boolean, accountNonLocked?: boolean, accountNonExpired?: boolean, username?: string, enabled?: boolean, client?: string);
37
36
  }
38
37
  export interface UserObject {
39
38
  data: User[];
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.99",
3
+ "version": "1.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"