@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/esm2022/lib/enums.mjs +28 -7
- package/esm2022/lib/model/common/ticket-object.mjs +5 -4
- package/esm2022/lib/model/common/user-object.mjs +3 -3
- package/fesm2022/captureid-datatypes.mjs +34 -12
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +14 -7
- package/lib/model/common/ticket-object.d.ts +5 -4
- package/lib/model/common/user-object.d.ts +2 -3
- package/package.json +1 -1
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 {
|
|
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
|
-
|
|
9
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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[];
|