sinfactura-types 1.6.76 → 1.6.78
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/dist/support.d.ts +56 -1
- package/package.json +1 -1
package/dist/support.d.ts
CHANGED
|
@@ -1,7 +1,55 @@
|
|
|
1
1
|
declare global {
|
|
2
|
-
type SupportTicketStatus = 'pending' | 'resolved' | 'rejected';
|
|
2
|
+
type SupportTicketStatus = 'pending' | 'waiting_on_customer' | 'resolved' | 'rejected';
|
|
3
3
|
type SupportTicketPriority = 'low' | 'normal' | 'high' | 'urgent';
|
|
4
4
|
type SupportMessageDirection = 'IN' | 'OUT';
|
|
5
|
+
type SupportAttachmentKind = 'image' | 'document' | 'link' | 'entity_ref';
|
|
6
|
+
type SupportAttachmentEntityType = 'order' | 'invoice' | 'product' | 'customer';
|
|
7
|
+
interface SupportAttachmentBase {
|
|
8
|
+
attachmentId: string;
|
|
9
|
+
kind: SupportAttachmentKind;
|
|
10
|
+
}
|
|
11
|
+
interface SupportFileAttachment extends SupportAttachmentBase {
|
|
12
|
+
kind: 'image' | 'document';
|
|
13
|
+
key: string;
|
|
14
|
+
filename: string;
|
|
15
|
+
contentType: string;
|
|
16
|
+
size: number;
|
|
17
|
+
downloadUrl?: string;
|
|
18
|
+
}
|
|
19
|
+
interface SupportLinkAttachment extends SupportAttachmentBase {
|
|
20
|
+
kind: 'link';
|
|
21
|
+
url: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
}
|
|
24
|
+
interface SupportEntityRefAttachment extends SupportAttachmentBase {
|
|
25
|
+
kind: 'entity_ref';
|
|
26
|
+
entityType: SupportAttachmentEntityType;
|
|
27
|
+
entityId: string;
|
|
28
|
+
label?: string;
|
|
29
|
+
}
|
|
30
|
+
type SupportAttachment = SupportFileAttachment | SupportLinkAttachment | SupportEntityRefAttachment;
|
|
31
|
+
interface SupportAttachmentUploadTicket {
|
|
32
|
+
attachmentId: string;
|
|
33
|
+
key: string;
|
|
34
|
+
kind: 'image' | 'document';
|
|
35
|
+
upload: {
|
|
36
|
+
url: string;
|
|
37
|
+
fields: Record<string, string>;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
type SupportSlaStatus = 'ok' | 'at_risk' | 'breached';
|
|
41
|
+
interface SupportSlaTargets {
|
|
42
|
+
firstResponseHours: number;
|
|
43
|
+
resolutionHours: number;
|
|
44
|
+
}
|
|
45
|
+
interface SupportSlaConfig {
|
|
46
|
+
targets: Record<SupportTicketPriority, SupportSlaTargets>;
|
|
47
|
+
updatedAt?: number;
|
|
48
|
+
}
|
|
49
|
+
interface SupportClientContext {
|
|
50
|
+
appVersion?: string;
|
|
51
|
+
route?: string;
|
|
52
|
+
}
|
|
5
53
|
interface Support {
|
|
6
54
|
storeId: string;
|
|
7
55
|
supportId: string;
|
|
@@ -15,6 +63,12 @@ declare global {
|
|
|
15
63
|
updatedAt: number;
|
|
16
64
|
firstResponseAt?: number;
|
|
17
65
|
closedAt?: number;
|
|
66
|
+
firstResponseDueAt?: number;
|
|
67
|
+
resolutionDueAt?: number;
|
|
68
|
+
slaStatus?: SupportSlaStatus;
|
|
69
|
+
slaPausedAt?: number;
|
|
70
|
+
slaPausedMs?: number;
|
|
71
|
+
context?: SupportClientContext;
|
|
18
72
|
disabled?: boolean;
|
|
19
73
|
lastMessageAt?: number;
|
|
20
74
|
lastMessagePreview?: string;
|
|
@@ -28,6 +82,7 @@ declare global {
|
|
|
28
82
|
body: string;
|
|
29
83
|
createdAt: number;
|
|
30
84
|
sentryEventId?: string;
|
|
85
|
+
attachments?: SupportAttachment[];
|
|
31
86
|
}
|
|
32
87
|
interface SupportMessageWsEvent {
|
|
33
88
|
action: 'support-message';
|