@captureid/datatypes 0.0.97 → 0.0.99

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,
@@ -283,6 +290,7 @@ export declare namespace TicketStatus {
283
290
  function values(): any[];
284
291
  }
285
292
  export declare enum TicketSenderType {
293
+ UNKNOWN = 0,
286
294
  USER = 1,
287
295
  ADMIN = 2
288
296
  }
@@ -1,12 +1,19 @@
1
1
  import { DataObject } from "../data-object";
2
- export interface FAQ {
2
+ export interface Issue {
3
3
  id: string;
4
- topic: string;
5
4
  question: string;
6
5
  answer: string;
7
6
  }
7
+ export declare class Issue implements Issue {
8
+ constructor(id?: string, question?: string, answer?: string);
9
+ }
10
+ export interface FAQ {
11
+ id: string;
12
+ topic: string;
13
+ issues: Issue[];
14
+ }
8
15
  export declare class FAQ implements FAQ {
9
- constructor(id?: string, topic?: string, question?: string, answer?: string);
16
+ constructor(id?: string, topic?: string, issues?: Issue[]);
10
17
  }
11
18
  export interface FAQObject {
12
19
  data: FAQ[];
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"