@captureid/datatypes 0.0.98 → 1.0.0

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
@@ -247,18 +247,25 @@ export declare enum MessageType {
247
247
  UNKNOWN = 0,
248
248
  ERROR = 1,
249
249
  NOTIFICATION = 2,
250
- EXCEPTION = 3,
251
- DATAFILE = 4,
252
- TEXTFILE = 5,
253
- IMAGEFILE = 6,
254
- AUDIOFILE = 7,
255
- VIDEOFILE = 8,
256
- PDFFILE = 9
250
+ EXCEPTION = 3
257
251
  }
258
252
  export declare namespace MessageType {
259
253
  function valueOf(str: string): number;
260
254
  function values(): any[];
261
255
  }
256
+ export declare enum AttachmentType {
257
+ UNKNOWN = 0,
258
+ DATAFILE = 1,
259
+ TEXTFILE = 2,
260
+ IMAGEFILE = 3,
261
+ AUDIOFILE = 4,
262
+ VIDEOFILE = 5,
263
+ PDFFILE = 6
264
+ }
265
+ export declare namespace AttachmentType {
266
+ function valueOf(str: string): number;
267
+ function values(): any[];
268
+ }
262
269
  export declare enum Status {
263
270
  SUCCESS = 0,
264
271
  ERROR = 1,
@@ -1,16 +1,17 @@
1
- import { MessageType, TicketSenderType, TicketStatus } from "../../enums";
1
+ import { AttachmentType, TicketSenderType, TicketStatus } from "../../enums";
2
2
  import { DataObject } from "../data-object";
3
3
  export interface TicketMessage {
4
4
  id: string;
5
5
  ticketid: string;
6
6
  senderid: string;
7
7
  sendertype: TicketSenderType;
8
- messagetype: MessageType;
9
- content: string | Blob;
8
+ message: string;
9
+ attachmenttype: AttachmentType;
10
+ attachment: Blob;
10
11
  created: Date;
11
12
  }
12
13
  export declare class TicketMessage implements TicketMessage {
13
- constructor(id?: string, ticketid?: string, senderid?: string, sendertype?: TicketSenderType, messagetype?: MessageType, content?: string | Blob, created?: Date);
14
+ constructor(id?: string, ticketid?: string, senderid?: string, sendertype?: TicketSenderType, attachmenttype?: AttachmentType, message?: string, attachment?: Blob, created?: Date);
14
15
  }
15
16
  export interface Ticket {
16
17
  id: string;
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.98",
3
+ "version": "1.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"