@captureid/datatypes 0.0.96 → 0.0.97
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 +55 -1
- package/esm2022/lib/model/common/ticket-object.mjs +46 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/captureid-datatypes.mjs +148 -51
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +28 -2
- package/lib/model/common/ticket-object.d.ts +41 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/enums.d.ts
CHANGED
|
@@ -76,7 +76,9 @@ export declare enum DataType {
|
|
|
76
76
|
SUPPLIER = 74,
|
|
77
77
|
FAQ = 75,
|
|
78
78
|
CHAT = 76,
|
|
79
|
-
FARMINGMETHOD = 77
|
|
79
|
+
FARMINGMETHOD = 77,
|
|
80
|
+
TICKET = 78,
|
|
81
|
+
TICKETMESSAGE = 79
|
|
80
82
|
}
|
|
81
83
|
export declare enum BookingType {
|
|
82
84
|
UNKNOWN = 0,
|
|
@@ -242,9 +244,16 @@ export declare namespace Severity {
|
|
|
242
244
|
function values(): any[];
|
|
243
245
|
}
|
|
244
246
|
export declare enum MessageType {
|
|
247
|
+
UNKNOWN = 0,
|
|
245
248
|
ERROR = 1,
|
|
246
249
|
NOTIFICATION = 2,
|
|
247
|
-
EXCEPTION = 3
|
|
250
|
+
EXCEPTION = 3,
|
|
251
|
+
DATAFILE = 4,
|
|
252
|
+
TEXTFILE = 5,
|
|
253
|
+
IMAGEFILE = 6,
|
|
254
|
+
AUDIOFILE = 7,
|
|
255
|
+
VIDEOFILE = 8,
|
|
256
|
+
PDFFILE = 9
|
|
248
257
|
}
|
|
249
258
|
export declare namespace MessageType {
|
|
250
259
|
function valueOf(str: string): number;
|
|
@@ -264,3 +273,20 @@ export declare namespace Status {
|
|
|
264
273
|
function valueOf(str: string): number;
|
|
265
274
|
function values(): any[];
|
|
266
275
|
}
|
|
276
|
+
export declare enum TicketStatus {
|
|
277
|
+
OPEN = 1,
|
|
278
|
+
CLOSE = 2,
|
|
279
|
+
INWORK = 3
|
|
280
|
+
}
|
|
281
|
+
export declare namespace TicketStatus {
|
|
282
|
+
function valueOf(str: string): number;
|
|
283
|
+
function values(): any[];
|
|
284
|
+
}
|
|
285
|
+
export declare enum TicketSenderType {
|
|
286
|
+
USER = 1,
|
|
287
|
+
ADMIN = 2
|
|
288
|
+
}
|
|
289
|
+
export declare namespace TicketSenderType {
|
|
290
|
+
function valueOf(str: string): number;
|
|
291
|
+
function values(): any[];
|
|
292
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MessageType, TicketSenderType, TicketStatus } from "../../enums";
|
|
2
|
+
import { DataObject } from "../data-object";
|
|
3
|
+
export interface TicketMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
ticketid: string;
|
|
6
|
+
senderid: string;
|
|
7
|
+
sendertype: TicketSenderType;
|
|
8
|
+
messagetype: MessageType;
|
|
9
|
+
content: string | Blob;
|
|
10
|
+
created: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare class TicketMessage implements TicketMessage {
|
|
13
|
+
constructor(id?: string, ticketid?: string, senderid?: string, sendertype?: TicketSenderType, messagetype?: MessageType, content?: string | Blob, created?: Date);
|
|
14
|
+
}
|
|
15
|
+
export interface Ticket {
|
|
16
|
+
id: string;
|
|
17
|
+
userid: string;
|
|
18
|
+
topic: string;
|
|
19
|
+
status: TicketStatus;
|
|
20
|
+
created: Date;
|
|
21
|
+
closed: Date;
|
|
22
|
+
assigned: string;
|
|
23
|
+
messages: TicketMessage[];
|
|
24
|
+
}
|
|
25
|
+
export declare class Ticket implements Ticket {
|
|
26
|
+
constructor(id?: string, userid?: string, topic?: string, status?: TicketStatus, created?: Date, closed?: Date, assigned?: string, messages?: TicketMessage[]);
|
|
27
|
+
}
|
|
28
|
+
export interface TicketMessageObject {
|
|
29
|
+
data: TicketMessage[];
|
|
30
|
+
}
|
|
31
|
+
export declare class TicketMessageObject extends DataObject implements TicketMessageObject {
|
|
32
|
+
constructor(data: TicketMessage[]);
|
|
33
|
+
getEntryCount(): number;
|
|
34
|
+
}
|
|
35
|
+
export interface TicketObject {
|
|
36
|
+
data: Ticket[];
|
|
37
|
+
}
|
|
38
|
+
export declare class TicketObject extends DataObject implements TicketObject {
|
|
39
|
+
constructor(data: Ticket[]);
|
|
40
|
+
getEntryCount(): number;
|
|
41
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './lib/model/common/supplier-object';
|
|
|
34
34
|
export * from './lib/model/common/faq-object';
|
|
35
35
|
export * from './lib/model/common/farmingmethod-object';
|
|
36
36
|
export * from './lib/model/common/chat-object';
|
|
37
|
+
export * from './lib/model/common/ticket-object';
|
|
37
38
|
export * from './lib/model/configuration/menu-object';
|
|
38
39
|
export * from './lib/model/erp/items/dimension-object';
|
|
39
40
|
export * from './lib/model/erp/items/gtin';
|