@trii/types 2.10.759 → 2.10.761
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/AI/MapPolygon.d.ts +22 -0
- package/dist/Automations/Events/Event.d.ts +3 -3
- package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
- package/dist/Conversations/Flows/Nodes/index.js +40 -0
- package/dist/Conversations/Queue.d.ts +0 -5
- package/dist/Conversations/Routing.d.ts +10 -18
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/dist/Tickets/Routing.d.ts +0 -11
- package/dist/src/Automations/Capabilities/Capability.d.ts +48 -0
- package/dist/src/Automations/Capabilities/Capability.js +9 -0
- package/dist/src/Automations/Capabilities/index.d.ts +1 -0
- package/dist/src/Automations/Capabilities/index.js +17 -0
- package/dist/src/Automations/Common.d.ts +47 -0
- package/dist/src/Automations/Common.js +18 -0
- package/dist/src/Automations/Events/Event.d.ts +41 -0
- package/dist/src/Automations/Events/Event.js +2 -0
- package/dist/src/Automations/Events/index.d.ts +1 -0
- package/dist/src/Automations/Events/index.js +17 -0
- package/dist/src/Automations/Executions/Execution.d.ts +114 -0
- package/dist/src/Automations/Executions/Execution.js +23 -0
- package/dist/src/Automations/Executions/index.d.ts +1 -0
- package/dist/src/Automations/Executions/index.js +17 -0
- package/dist/src/Automations/Flows/Canvas.d.ts +86 -0
- package/dist/src/Automations/Flows/Canvas.js +34 -0
- package/dist/src/Automations/Flows/Flow.d.ts +102 -0
- package/dist/src/Automations/Flows/Flow.js +34 -0
- package/dist/src/Automations/Flows/Requests.d.ts +71 -0
- package/dist/src/Automations/Flows/Requests.js +2 -0
- package/dist/src/Automations/Flows/Validation.d.ts +28 -0
- package/dist/src/Automations/Flows/Validation.js +9 -0
- package/dist/src/Automations/Flows/index.d.ts +4 -0
- package/dist/src/Automations/Flows/index.js +20 -0
- package/dist/src/Automations/Nodes/Node.d.ts +75 -0
- package/dist/src/Automations/Nodes/Node.js +18 -0
- package/dist/src/Automations/Nodes/index.d.ts +1 -0
- package/dist/src/Automations/Nodes/index.js +17 -0
- package/dist/src/Automations/index.d.ts +6 -0
- package/dist/src/Automations/index.js +22 -0
- package/dist/src/Chats/Chat.d.ts +61 -0
- package/dist/src/Chats/Chat.js +28 -0
- package/dist/src/Common/Channels/Channel.d.ts +26 -1
- package/dist/src/Contacts/contacts.d.ts +2 -2
- package/dist/src/Conversations/Assignment.d.ts +81 -0
- package/dist/src/Conversations/Assignment.js +4 -0
- package/dist/src/Conversations/Conversation.d.ts +241 -48
- package/dist/src/Conversations/Conversation.js +14 -34
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +280 -123
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +85 -35
- package/dist/src/Conversations/Groups/Group.d.ts +2 -8
- package/dist/src/Conversations/Groups/Group.js +0 -6
- package/dist/src/Conversations/InboxProjection.js +2 -0
- package/dist/src/Conversations/Label.d.ts +1 -1
- package/dist/src/Conversations/Outbox.d.ts +24 -0
- package/dist/src/Conversations/Outbox.js +4 -0
- package/dist/src/Conversations/Queue.d.ts +107 -0
- package/dist/src/Conversations/Queue.js +4 -0
- package/dist/src/Conversations/Routing.d.ts +164 -0
- package/dist/src/Conversations/Routing.js +2 -0
- package/dist/src/Conversations/Sla.d.ts +227 -0
- package/dist/src/Conversations/Sla.js +6 -0
- package/dist/src/Conversations/Transfer.d.ts +73 -0
- package/dist/src/Conversations/Transfer.js +2 -0
- package/dist/src/Conversations/WebHook.d.ts +1 -1
- package/dist/src/Conversations/index.d.ts +9 -1
- package/dist/src/Conversations/index.js +9 -1
- package/dist/src/Forms/API.d.ts +53 -0
- package/dist/src/Forms/API.js +2 -0
- package/dist/src/Forms/SubmittedForm.d.ts +56 -0
- package/dist/src/Forms/SubmittedForm.js +9 -0
- package/dist/src/Forms/index.d.ts +2 -0
- package/dist/src/Forms/index.js +18 -0
- package/dist/src/Presence/AgentPause.d.ts +24 -0
- package/dist/src/Presence/AgentPause.js +19 -0
- package/dist/src/Presence/QueueParticipation.d.ts +17 -0
- package/dist/src/Presence/QueueParticipation.js +2 -0
- package/dist/src/Presence/QueueRoutingState.d.ts +27 -0
- package/dist/src/Presence/QueueRoutingState.js +9 -0
- package/dist/src/Presence/index.d.ts +3 -0
- package/dist/src/Presence/index.js +19 -0
- package/dist/src/Tickets/Category.d.ts +18 -0
- package/dist/src/Tickets/Dashboard.d.ts +77 -0
- package/dist/src/Tickets/Dashboard.js +13 -1
- package/dist/src/Tickets/Fields.d.ts +1 -0
- package/dist/src/Tickets/Layouts.d.ts +3 -1
- package/dist/src/Tickets/Workflow.d.ts +20 -0
- package/dist/src/Users/UserTrii.d.ts +10 -0
- package/dist/src/Users/UserTrii.js +8 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +4 -1
- package/package.json +1 -1
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/src/Conversations/DashBoard/dashboardForms.js +0 -24
- /package/dist/{Conversations/InboxProjection.js → AI/MapPolygon.js} +0 -0
- /package/dist/{Conversations → src/Conversations}/InboxMongo.d.ts +0 -0
- /package/dist/{Conversations → src/Conversations}/InboxMongo.js +0 -0
- /package/dist/{Conversations → src/Conversations}/InboxProjection.d.ts +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
import { FormAnswerV2, FormTag } from "./SubmittedForm";
|
|
3
|
+
export interface RequestInfo {
|
|
4
|
+
formId: string;
|
|
5
|
+
timeStart: Date | null;
|
|
6
|
+
timeEnd: Date | null;
|
|
7
|
+
skip: number | null;
|
|
8
|
+
limit: number | null;
|
|
9
|
+
}
|
|
10
|
+
export interface SummaryInfo {
|
|
11
|
+
formId: string;
|
|
12
|
+
timeStart: Date | null;
|
|
13
|
+
timeEnd: Date | null;
|
|
14
|
+
completedForms: number;
|
|
15
|
+
records: QuestionSummary[];
|
|
16
|
+
}
|
|
17
|
+
export interface QuestionSummary {
|
|
18
|
+
questionId: string;
|
|
19
|
+
question: string;
|
|
20
|
+
type: FormItemType;
|
|
21
|
+
fieldType: string;
|
|
22
|
+
count: number;
|
|
23
|
+
responses: ResponseSummary[];
|
|
24
|
+
}
|
|
25
|
+
export interface ResponseSummary {
|
|
26
|
+
count: number;
|
|
27
|
+
responseTitle: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SubmittedFormsInfo {
|
|
30
|
+
formId: string;
|
|
31
|
+
timeStart: Date | null;
|
|
32
|
+
timeEnd: Date | null;
|
|
33
|
+
completedForms: number;
|
|
34
|
+
records: SubmittedFormRecord[];
|
|
35
|
+
}
|
|
36
|
+
export interface SubmittedFormRecord {
|
|
37
|
+
id: string;
|
|
38
|
+
tags: FormTag[];
|
|
39
|
+
responses: SubmittedFormResponse[];
|
|
40
|
+
expireAt: Date | null;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
completedAt: Date | null;
|
|
43
|
+
contractVersion: number;
|
|
44
|
+
formRevision: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SubmittedFormResponse {
|
|
47
|
+
type: FormItemType;
|
|
48
|
+
fieldType: string;
|
|
49
|
+
questionId: string;
|
|
50
|
+
question: string;
|
|
51
|
+
response: unknown | null;
|
|
52
|
+
answer?: FormAnswerV2 | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
export interface SubmittedForm {
|
|
3
|
+
id: string;
|
|
4
|
+
shardKey: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
formId: string;
|
|
7
|
+
contractVersion: number;
|
|
8
|
+
formRevision: number;
|
|
9
|
+
schemaHash: string | null;
|
|
10
|
+
tags: FormTag[];
|
|
11
|
+
/** Compatibilidad con formularios V1. */
|
|
12
|
+
responses?: FormResponse[] | null;
|
|
13
|
+
answers: FormAnswerV2[];
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
expireAt: Date | null;
|
|
16
|
+
completedAt: Date | null;
|
|
17
|
+
}
|
|
18
|
+
export interface FormTag {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum FormStatus {
|
|
23
|
+
pending = 0,
|
|
24
|
+
completed = 1,
|
|
25
|
+
expired = 2
|
|
26
|
+
}
|
|
27
|
+
export interface FormResponse {
|
|
28
|
+
questionId: string;
|
|
29
|
+
type: FormItemType;
|
|
30
|
+
response: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface FormAnswerV2 {
|
|
33
|
+
fieldId: string;
|
|
34
|
+
fieldType: string;
|
|
35
|
+
/** Snapshot útil para exportaciones históricas. */
|
|
36
|
+
fieldLabel: string | null;
|
|
37
|
+
textValue: string | null;
|
|
38
|
+
numericValue: number | null;
|
|
39
|
+
/** Formatos canónicos: yyyy-MM-dd y HH:mm:ss. */
|
|
40
|
+
dateValue: string | null;
|
|
41
|
+
timeValue: string | null;
|
|
42
|
+
selectedOptions: FormSelectedOption[] | null;
|
|
43
|
+
files: FormSubmittedFile[] | null;
|
|
44
|
+
}
|
|
45
|
+
export interface FormSelectedOption {
|
|
46
|
+
id: string;
|
|
47
|
+
/** Snapshot histórico de la etiqueta. */
|
|
48
|
+
label: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface FormSubmittedFile {
|
|
51
|
+
storageId: string;
|
|
52
|
+
fileName: string;
|
|
53
|
+
contentType: string | null;
|
|
54
|
+
sizeBytes: number;
|
|
55
|
+
url: string | null;
|
|
56
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormStatus = void 0;
|
|
4
|
+
var FormStatus;
|
|
5
|
+
(function (FormStatus) {
|
|
6
|
+
FormStatus[FormStatus["pending"] = 0] = "pending";
|
|
7
|
+
FormStatus[FormStatus["completed"] = 1] = "completed";
|
|
8
|
+
FormStatus[FormStatus["expired"] = 2] = "expired";
|
|
9
|
+
})(FormStatus || (exports.FormStatus = FormStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./API"), exports);
|
|
18
|
+
__exportStar(require("./SubmittedForm"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AgentPause {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
reason: PauseReason;
|
|
6
|
+
startedAt: Date;
|
|
7
|
+
startedByUserId?: string;
|
|
8
|
+
startedBy: PauseActorType;
|
|
9
|
+
endedAt?: Date;
|
|
10
|
+
}
|
|
11
|
+
export declare enum PauseReason {
|
|
12
|
+
LUNCH = 0,
|
|
13
|
+
RESTROOM = 1,
|
|
14
|
+
BREAK = 2,
|
|
15
|
+
MEETING = 3,
|
|
16
|
+
TRAINING = 4,
|
|
17
|
+
ADMINISTRATIVE_WORK = 5,
|
|
18
|
+
OTHER = 6
|
|
19
|
+
}
|
|
20
|
+
export declare enum PauseActorType {
|
|
21
|
+
AGENT = 0,
|
|
22
|
+
SUPERVISOR = 1,
|
|
23
|
+
SYSTEM = 2
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PauseActorType = exports.PauseReason = void 0;
|
|
4
|
+
var PauseReason;
|
|
5
|
+
(function (PauseReason) {
|
|
6
|
+
PauseReason[PauseReason["LUNCH"] = 0] = "LUNCH";
|
|
7
|
+
PauseReason[PauseReason["RESTROOM"] = 1] = "RESTROOM";
|
|
8
|
+
PauseReason[PauseReason["BREAK"] = 2] = "BREAK";
|
|
9
|
+
PauseReason[PauseReason["MEETING"] = 3] = "MEETING";
|
|
10
|
+
PauseReason[PauseReason["TRAINING"] = 4] = "TRAINING";
|
|
11
|
+
PauseReason[PauseReason["ADMINISTRATIVE_WORK"] = 5] = "ADMINISTRATIVE_WORK";
|
|
12
|
+
PauseReason[PauseReason["OTHER"] = 6] = "OTHER";
|
|
13
|
+
})(PauseReason || (exports.PauseReason = PauseReason = {}));
|
|
14
|
+
var PauseActorType;
|
|
15
|
+
(function (PauseActorType) {
|
|
16
|
+
PauseActorType[PauseActorType["AGENT"] = 0] = "AGENT";
|
|
17
|
+
PauseActorType[PauseActorType["SUPERVISOR"] = 1] = "SUPERVISOR";
|
|
18
|
+
PauseActorType[PauseActorType["SYSTEM"] = 2] = "SYSTEM";
|
|
19
|
+
})(PauseActorType || (exports.PauseActorType = PauseActorType = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConversationQueueInfo } from "../Conversations/Queue";
|
|
2
|
+
export interface QueueParticipation {
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
queueId: string;
|
|
6
|
+
authorized: boolean;
|
|
7
|
+
active: boolean;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
updatedByUserId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface QueueParticipationDto {
|
|
12
|
+
queueId: string;
|
|
13
|
+
authorized: boolean;
|
|
14
|
+
active: boolean;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
queue?: ConversationQueueInfo | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ConversationQueueInfo } from "../Conversations/Queue";
|
|
2
|
+
export interface QueueRoutingState {
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
queueId: string;
|
|
6
|
+
isEligible: boolean;
|
|
7
|
+
presenceStatus: RoutingPresenceStatus;
|
|
8
|
+
activeJobCount: number;
|
|
9
|
+
maxCapacity?: number;
|
|
10
|
+
notRespondingDetectedAt?: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export declare enum RoutingPresenceStatus {
|
|
14
|
+
IDLE = 0,
|
|
15
|
+
INTERACTING = 1,
|
|
16
|
+
BUSY = 2
|
|
17
|
+
}
|
|
18
|
+
export interface RoutingStateDto {
|
|
19
|
+
queueId: string;
|
|
20
|
+
queue?: ConversationQueueInfo | null;
|
|
21
|
+
isEligible: boolean;
|
|
22
|
+
presenceStatus?: RoutingPresenceStatus;
|
|
23
|
+
activeJobCount: number;
|
|
24
|
+
maxCapacity?: number | null;
|
|
25
|
+
notRespondingDetectedAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoutingPresenceStatus = void 0;
|
|
4
|
+
var RoutingPresenceStatus;
|
|
5
|
+
(function (RoutingPresenceStatus) {
|
|
6
|
+
RoutingPresenceStatus[RoutingPresenceStatus["IDLE"] = 0] = "IDLE";
|
|
7
|
+
RoutingPresenceStatus[RoutingPresenceStatus["INTERACTING"] = 1] = "INTERACTING";
|
|
8
|
+
RoutingPresenceStatus[RoutingPresenceStatus["BUSY"] = 2] = "BUSY";
|
|
9
|
+
})(RoutingPresenceStatus || (exports.RoutingPresenceStatus = RoutingPresenceStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgentPause"), exports);
|
|
18
|
+
__exportStar(require("./QueueParticipation"), exports);
|
|
19
|
+
__exportStar(require("./QueueRoutingState"), exports);
|
|
@@ -51,3 +51,21 @@ export interface IUpdateTicketCategoryDto {
|
|
|
51
51
|
fieldDefinitionIds?: string[] | null;
|
|
52
52
|
layoutIds?: string[] | null;
|
|
53
53
|
}
|
|
54
|
+
export interface ICreateTicketResolutionTypeDto {
|
|
55
|
+
name: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
order?: number;
|
|
59
|
+
formRequirements?: ITicketFormRequirement[];
|
|
60
|
+
fieldDefinitionIds?: string[];
|
|
61
|
+
layoutIds?: string[];
|
|
62
|
+
}
|
|
63
|
+
export interface IUpdateTicketResolutionTypeDto {
|
|
64
|
+
name?: string;
|
|
65
|
+
description?: string | null;
|
|
66
|
+
enabled?: boolean;
|
|
67
|
+
order?: number;
|
|
68
|
+
formRequirements?: ITicketFormRequirement[] | null;
|
|
69
|
+
fieldDefinitionIds?: string[] | null;
|
|
70
|
+
layoutIds?: string[] | null;
|
|
71
|
+
}
|
|
@@ -193,6 +193,17 @@ export declare enum TicketMetricCode {
|
|
|
193
193
|
SECURITY_DENIAL_COUNT = "SECURITY_DENIAL_COUNT",
|
|
194
194
|
PII_ACCESS_COUNT = "PII_ACCESS_COUNT"
|
|
195
195
|
}
|
|
196
|
+
export declare enum DashboardIcon {
|
|
197
|
+
DASHBOARD = "DASHBOARD",
|
|
198
|
+
HOME = "HOME",
|
|
199
|
+
SUPPORT = "SUPPORT",
|
|
200
|
+
ANALYTICS = "ANALYTICS",
|
|
201
|
+
REPORTS = "REPORTS",
|
|
202
|
+
USERS = "USERS",
|
|
203
|
+
SETTINGS = "SETTINGS",
|
|
204
|
+
FAVORITES = "FAVORITES",
|
|
205
|
+
QUICK_ACTIONS = "QUICK_ACTIONS"
|
|
206
|
+
}
|
|
196
207
|
export interface ITicketAnalyticsFilter extends ITicketFilter {
|
|
197
208
|
range: ITicketDateRange;
|
|
198
209
|
channelTypes?: ChannelType[];
|
|
@@ -318,11 +329,43 @@ export interface ITicketDashboard {
|
|
|
318
329
|
refreshMode: TicketWidgetRefreshMode;
|
|
319
330
|
refreshIntervalSeconds?: number;
|
|
320
331
|
isDefault?: boolean;
|
|
332
|
+
order: number;
|
|
333
|
+
icon?: DashboardIcon;
|
|
321
334
|
createdAt: Date;
|
|
322
335
|
createdBy: string;
|
|
323
336
|
updatedAt?: Date;
|
|
324
337
|
updatedBy?: string;
|
|
325
338
|
}
|
|
339
|
+
export interface ICreateTicketDashboardDto {
|
|
340
|
+
name: string;
|
|
341
|
+
description?: string;
|
|
342
|
+
audience: TicketAnalyticsAudience;
|
|
343
|
+
visibility: TicketDashboardVisibility;
|
|
344
|
+
sharedRoleIds?: string[];
|
|
345
|
+
sharedGroupIds?: string[];
|
|
346
|
+
defaultFilter?: ITicketAnalyticsFilter;
|
|
347
|
+
widgets?: ITicketWidgetConfiguration[];
|
|
348
|
+
refreshMode?: TicketWidgetRefreshMode;
|
|
349
|
+
refreshIntervalSeconds?: number;
|
|
350
|
+
order?: number;
|
|
351
|
+
isDefault?: boolean;
|
|
352
|
+
icon?: DashboardIcon;
|
|
353
|
+
}
|
|
354
|
+
export interface IUpdateTicketDashboardDto {
|
|
355
|
+
name?: string;
|
|
356
|
+
description?: string;
|
|
357
|
+
audience?: TicketAnalyticsAudience;
|
|
358
|
+
visibility?: TicketDashboardVisibility;
|
|
359
|
+
sharedRoleIds?: string[];
|
|
360
|
+
sharedGroupIds?: string[];
|
|
361
|
+
defaultFilter?: ITicketAnalyticsFilter;
|
|
362
|
+
widgets?: ITicketWidgetConfiguration[];
|
|
363
|
+
refreshMode?: TicketWidgetRefreshMode;
|
|
364
|
+
refreshIntervalSeconds?: number;
|
|
365
|
+
order?: number;
|
|
366
|
+
isDefault?: boolean;
|
|
367
|
+
icon?: DashboardIcon;
|
|
368
|
+
}
|
|
326
369
|
export interface ITicketDashboardTemplate {
|
|
327
370
|
id: string;
|
|
328
371
|
spaceId: string;
|
|
@@ -332,6 +375,20 @@ export interface ITicketDashboardTemplate {
|
|
|
332
375
|
widgets: ITicketWidgetConfiguration[];
|
|
333
376
|
enabled: boolean;
|
|
334
377
|
}
|
|
378
|
+
export interface ICreateTicketDashboardTemplateDto {
|
|
379
|
+
name: string;
|
|
380
|
+
description?: string;
|
|
381
|
+
audience: TicketAnalyticsAudience;
|
|
382
|
+
widgets?: ITicketWidgetConfiguration[];
|
|
383
|
+
enabled?: boolean;
|
|
384
|
+
}
|
|
385
|
+
export interface IUpdateTicketDashboardTemplateDto {
|
|
386
|
+
name?: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
audience?: TicketAnalyticsAudience;
|
|
389
|
+
widgets?: ITicketWidgetConfiguration[];
|
|
390
|
+
enabled?: boolean;
|
|
391
|
+
}
|
|
335
392
|
export interface ITicketDashboardSnapshot {
|
|
336
393
|
id: string;
|
|
337
394
|
dashboardId: string;
|
|
@@ -371,6 +428,26 @@ export interface ITicketAnalyticsGoal {
|
|
|
371
428
|
ownerUserId?: string;
|
|
372
429
|
createdAt: Date;
|
|
373
430
|
}
|
|
431
|
+
export interface ICreateTicketAnalyticsGoalDto {
|
|
432
|
+
name: string;
|
|
433
|
+
metric: TicketMetricCode;
|
|
434
|
+
target: number;
|
|
435
|
+
filter: ITicketAnalyticsFilter;
|
|
436
|
+
validFrom: Date;
|
|
437
|
+
validUntil?: Date;
|
|
438
|
+
ownerGroupId?: string;
|
|
439
|
+
ownerUserId?: string;
|
|
440
|
+
}
|
|
441
|
+
export interface IUpdateTicketAnalyticsGoalDto {
|
|
442
|
+
name?: string;
|
|
443
|
+
metric?: TicketMetricCode;
|
|
444
|
+
target?: number;
|
|
445
|
+
filter?: ITicketAnalyticsFilter;
|
|
446
|
+
validFrom?: Date;
|
|
447
|
+
validUntil?: Date;
|
|
448
|
+
ownerGroupId?: string;
|
|
449
|
+
ownerUserId?: string;
|
|
450
|
+
}
|
|
374
451
|
/** Reports freshness so users know whether a card is real-time, delayed or partial. */
|
|
375
452
|
export interface ITicketAnalyticsFreshness {
|
|
376
453
|
metric: TicketMetricCode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
|
|
3
|
+
exports.DashboardIcon = exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
|
|
4
4
|
var TicketAnalyticsAudience;
|
|
5
5
|
(function (TicketAnalyticsAudience) {
|
|
6
6
|
TicketAnalyticsAudience["AGENT"] = "AGENT";
|
|
@@ -204,3 +204,15 @@ var TicketMetricCode;
|
|
|
204
204
|
TicketMetricCode["SECURITY_DENIAL_COUNT"] = "SECURITY_DENIAL_COUNT";
|
|
205
205
|
TicketMetricCode["PII_ACCESS_COUNT"] = "PII_ACCESS_COUNT";
|
|
206
206
|
})(TicketMetricCode || (exports.TicketMetricCode = TicketMetricCode = {}));
|
|
207
|
+
var DashboardIcon;
|
|
208
|
+
(function (DashboardIcon) {
|
|
209
|
+
DashboardIcon["DASHBOARD"] = "DASHBOARD";
|
|
210
|
+
DashboardIcon["HOME"] = "HOME";
|
|
211
|
+
DashboardIcon["SUPPORT"] = "SUPPORT";
|
|
212
|
+
DashboardIcon["ANALYTICS"] = "ANALYTICS";
|
|
213
|
+
DashboardIcon["REPORTS"] = "REPORTS";
|
|
214
|
+
DashboardIcon["USERS"] = "USERS";
|
|
215
|
+
DashboardIcon["SETTINGS"] = "SETTINGS";
|
|
216
|
+
DashboardIcon["FAVORITES"] = "FAVORITES";
|
|
217
|
+
DashboardIcon["QUICK_ACTIONS"] = "QUICK_ACTIONS";
|
|
218
|
+
})(DashboardIcon || (exports.DashboardIcon = DashboardIcon = {}));
|
|
@@ -90,6 +90,7 @@ export interface ITicketFieldDefinition extends ITicketAuditedEntity {
|
|
|
90
90
|
objectFields?: ITicketObjectField[];
|
|
91
91
|
validation?: ITicketFieldValidation;
|
|
92
92
|
scopeType: TicketFieldScopeType;
|
|
93
|
+
version: number;
|
|
93
94
|
categoryIds?: string[];
|
|
94
95
|
requestTypeIds?: string[];
|
|
95
96
|
conditions?: ITicketFieldCondition[];
|
|
@@ -36,6 +36,8 @@ export interface ITicketLayoutSection {
|
|
|
36
36
|
collapsedByDefault?: boolean;
|
|
37
37
|
fields: ITicketLayoutField[];
|
|
38
38
|
}
|
|
39
|
+
export interface ITicketLayoutSectionDTO extends Omit<ITicketLayoutSection, 'id'> {
|
|
40
|
+
}
|
|
39
41
|
/** Controls presentation only; validation remains authoritative in ITicketFieldDefinition. */
|
|
40
42
|
export interface ITicketLayout extends ITicketAuditedEntity {
|
|
41
43
|
name: string;
|
|
@@ -56,7 +58,7 @@ export interface ICreateTicketLayoutDto {
|
|
|
56
58
|
categoryIds?: string[];
|
|
57
59
|
requestTypeIds?: string[];
|
|
58
60
|
roleIds?: string[];
|
|
59
|
-
sections:
|
|
61
|
+
sections: ITicketLayoutSectionDTO[];
|
|
60
62
|
}
|
|
61
63
|
export interface IUpdateTicketLayoutDto extends Partial<ICreateTicketLayoutDto> {
|
|
62
64
|
enabled?: boolean;
|
|
@@ -11,6 +11,13 @@ export interface ITicketStatus extends ITicketAuditedEntity {
|
|
|
11
11
|
isInitial: boolean;
|
|
12
12
|
isFinal: boolean;
|
|
13
13
|
enabled: boolean;
|
|
14
|
+
version: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ITicketStatusCreateDTO extends Omit<ITicketStatus, keyof ITicketAuditedEntity | 'enabled' | 'version'> {
|
|
17
|
+
}
|
|
18
|
+
export interface ITicketStatusUpdateDTO extends Partial<Omit<ITicketStatus, keyof ITicketAuditedEntity | 'version'>> {
|
|
19
|
+
id: string;
|
|
20
|
+
expectedVersion: number;
|
|
14
21
|
}
|
|
15
22
|
export declare enum TicketConditionOperator {
|
|
16
23
|
EQUALS = "EQUALS",
|
|
@@ -50,14 +57,27 @@ export interface ITicketTransitionCondition {
|
|
|
50
57
|
checklistItemId?: string;
|
|
51
58
|
expectedValue?: TicketPropertyValue;
|
|
52
59
|
}
|
|
60
|
+
export interface ICreateTicketTransitionConditionDTO extends Omit<ITicketTransitionCondition, 'id'> {
|
|
61
|
+
}
|
|
62
|
+
export interface IUpdateTicketTransitionConditionDTO extends Partial<Omit<ITicketTransitionCondition, 'id'>> {
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
53
65
|
export interface ITicketTransition extends ITicketAuditedEntity {
|
|
54
66
|
name?: string;
|
|
55
67
|
fromStatusId: string;
|
|
56
68
|
toStatusId: string;
|
|
57
69
|
enabled: boolean;
|
|
70
|
+
version: number;
|
|
58
71
|
allowedRoleIds?: string[];
|
|
59
72
|
conditions: ITicketTransitionCondition[];
|
|
60
73
|
}
|
|
74
|
+
export interface ICreateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version' | 'conditions'> {
|
|
75
|
+
conditions: ICreateTicketTransitionConditionDTO[];
|
|
76
|
+
}
|
|
77
|
+
export interface IUpdateTicketTransitionDTO extends Partial<Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version'>> {
|
|
78
|
+
id: string;
|
|
79
|
+
expectedVersion: number;
|
|
80
|
+
}
|
|
61
81
|
export declare enum TicketActivityType {
|
|
62
82
|
CREATED = "CREATED",
|
|
63
83
|
UPDATED = "UPDATED",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import UserType from './UserType';
|
|
2
2
|
import { UserProfile, UserRole } from './UserProfile';
|
|
3
|
+
import { PauseReason } from '../Presence/AgentPause';
|
|
3
4
|
export interface UserInfo {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
@@ -62,6 +63,9 @@ export interface UserTrii {
|
|
|
62
63
|
userType: UserType;
|
|
63
64
|
verifiedAccount: boolean;
|
|
64
65
|
status: UserStatus;
|
|
66
|
+
availability: AvailabilityStatus;
|
|
67
|
+
currentPauseReason?: PauseReason;
|
|
68
|
+
currentPauseSince?: Date;
|
|
65
69
|
firstname: string;
|
|
66
70
|
lastname: string;
|
|
67
71
|
display_name: string;
|
|
@@ -90,6 +94,12 @@ export interface UserTrii {
|
|
|
90
94
|
socialLinkedinID: string;
|
|
91
95
|
socialTwitterID: string;
|
|
92
96
|
}
|
|
97
|
+
export declare enum AvailabilityStatus {
|
|
98
|
+
AVAILABLE = 0,
|
|
99
|
+
AWAY = 1,
|
|
100
|
+
DO_NOT_DISTURB = 2,
|
|
101
|
+
OFFLINE = 3
|
|
102
|
+
}
|
|
93
103
|
export interface NotificationConfig {
|
|
94
104
|
volume: NotificationVolumeLevel;
|
|
95
105
|
sound: NotificationSound;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserStatus = void 0;
|
|
3
|
+
exports.AvailabilityStatus = exports.UserStatus = void 0;
|
|
4
4
|
var UserStatus;
|
|
5
5
|
(function (UserStatus) {
|
|
6
6
|
UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
|
|
@@ -8,3 +8,10 @@ var UserStatus;
|
|
|
8
8
|
UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
|
|
9
9
|
UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
|
|
10
10
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
11
|
+
var AvailabilityStatus;
|
|
12
|
+
(function (AvailabilityStatus) {
|
|
13
|
+
AvailabilityStatus[AvailabilityStatus["AVAILABLE"] = 0] = "AVAILABLE";
|
|
14
|
+
AvailabilityStatus[AvailabilityStatus["AWAY"] = 1] = "AWAY";
|
|
15
|
+
AvailabilityStatus[AvailabilityStatus["DO_NOT_DISTURB"] = 2] = "DO_NOT_DISTURB";
|
|
16
|
+
AvailabilityStatus[AvailabilityStatus["OFFLINE"] = 3] = "OFFLINE";
|
|
17
|
+
})(AvailabilityStatus || (exports.AvailabilityStatus = AvailabilityStatus = {}));
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,9 +12,12 @@ export * as Tickets from './Tickets/index';
|
|
|
12
12
|
export * as Sales from './Sales/index';
|
|
13
13
|
export * as Collections from './Collections/index';
|
|
14
14
|
export * as Users from './Users/index';
|
|
15
|
+
export * as Presence from './Presence/index';
|
|
15
16
|
export * as ApiResponses from './ApiResponses/index';
|
|
16
17
|
export * as EventsQueue from './Common/EventsQueue/index';
|
|
17
18
|
export * as APIKeys from './PublicAPI/apiKey';
|
|
18
19
|
export * as AI from './AI/index';
|
|
19
20
|
export * as Shop from './Shop/index';
|
|
20
21
|
export * as APIResponses from './ApiResponses/index';
|
|
22
|
+
export * as Forms from './Forms/index';
|
|
23
|
+
export * as Automations from './Automations/index';
|
package/dist/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
36
|
+
exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
|
|
37
37
|
exports.Accounts = __importStar(require("./Accounts/index"));
|
|
38
38
|
exports.AuditLogs = __importStar(require("./AuditLogs/index"));
|
|
39
39
|
exports.Common = __importStar(require("./Common/index"));
|
|
@@ -48,9 +48,12 @@ exports.Tickets = __importStar(require("./Tickets/index"));
|
|
|
48
48
|
exports.Sales = __importStar(require("./Sales/index"));
|
|
49
49
|
exports.Collections = __importStar(require("./Collections/index"));
|
|
50
50
|
exports.Users = __importStar(require("./Users/index"));
|
|
51
|
+
exports.Presence = __importStar(require("./Presence/index"));
|
|
51
52
|
exports.ApiResponses = __importStar(require("./ApiResponses/index"));
|
|
52
53
|
exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
|
|
53
54
|
exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
|
|
54
55
|
exports.AI = __importStar(require("./AI/index"));
|
|
55
56
|
exports.Shop = __importStar(require("./Shop/index"));
|
|
56
57
|
exports.APIResponses = __importStar(require("./ApiResponses/index"));
|
|
58
|
+
exports.Forms = __importStar(require("./Forms/index"));
|
|
59
|
+
exports.Automations = __importStar(require("./Automations/index"));
|
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FormItemType } from "../../Common/Channels/Form";
|
|
2
|
-
export declare class DashBoardFormsSummaryInfo {
|
|
3
|
-
formId: string;
|
|
4
|
-
timeStart: Date;
|
|
5
|
-
timeEnd: Date;
|
|
6
|
-
completedForms: number;
|
|
7
|
-
records: DashBoardFormsQuestionSummary[];
|
|
8
|
-
}
|
|
9
|
-
export declare class DashBoardFormsQuestionSummary {
|
|
10
|
-
questionId: string;
|
|
11
|
-
question: string;
|
|
12
|
-
type: FormItemType;
|
|
13
|
-
count: number;
|
|
14
|
-
responses: DashBoardFormsResponseSummary[];
|
|
15
|
-
}
|
|
16
|
-
export declare class DashBoardFormsResponseSummary {
|
|
17
|
-
count: number;
|
|
18
|
-
responseTitle: string;
|
|
19
|
-
}
|
|
20
|
-
export declare class DashBoardFormsSubmittedFormsInfo {
|
|
21
|
-
formId: string;
|
|
22
|
-
timeStart: Date;
|
|
23
|
-
timeEnd: Date;
|
|
24
|
-
completedForms: number;
|
|
25
|
-
records: DashBoardFormsSubmittedFormRecord[];
|
|
26
|
-
}
|
|
27
|
-
export declare class DashBoardFormsSubmittedFormRecord {
|
|
28
|
-
id: string;
|
|
29
|
-
tags: FormTag[];
|
|
30
|
-
responses: DashBoardFormsSubmittedFormResponse[];
|
|
31
|
-
expireAt: Date;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
completedAt: Date;
|
|
34
|
-
}
|
|
35
|
-
export declare class DashBoardFormsSubmittedFormResponse {
|
|
36
|
-
questionId: string;
|
|
37
|
-
question: string;
|
|
38
|
-
type: FormItemType;
|
|
39
|
-
response: any;
|
|
40
|
-
}
|
|
41
|
-
export declare class FormTag {
|
|
42
|
-
name: string;
|
|
43
|
-
value: string;
|
|
44
|
-
}
|