@trii/types 2.10.812 → 2.10.814
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/Automations/Events/Event.d.ts +3 -3
- package/dist/Contacts/CommunicationEndpoint.d.ts +9 -9
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/InboxMongo.d.ts +154 -0
- package/dist/Conversations/InboxMongo.js +128 -0
- package/dist/Conversations/InboxProjection.d.ts +162 -0
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Presence/RoutingContracts.d.ts +33 -0
- package/dist/Presence/index.d.ts +1 -0
- package/dist/Presence/index.js +1 -0
- package/dist/Tickets/Api.d.ts +16 -0
- package/dist/Tickets/Approval.d.ts +116 -114
- package/dist/Tickets/Approval.js +50 -17
- package/dist/Tickets/Category.d.ts +8 -0
- package/dist/Tickets/Conversation.d.ts +12 -0
- package/dist/Tickets/Roles.d.ts +91 -0
- package/dist/Tickets/Roles.js +7 -0
- package/dist/Tickets/Routing.d.ts +10 -0
- package/dist/Tickets/Routing.js +7 -1
- package/dist/Tickets/Security.d.ts +34 -0
- package/dist/Tickets/SelfService.d.ts +17 -0
- package/dist/Tickets/Ticket.d.ts +24 -3
- package/dist/Tickets/Workflow.d.ts +47 -0
- package/dist/Tickets/Workflow.js +4 -0
- package/dist/Tickets/index.d.ts +1 -0
- package/dist/Tickets/index.js +1 -0
- package/package.json +1 -1
- package/dist/AI/MapPolygon.d.ts +0 -22
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +0 -24
- 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 +0 -2
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -183
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +0 -6
- 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 +0 -1
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +0 -9
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +0 -20
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +0 -12
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -2
- 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 +0 -1
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +0 -27
- 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 +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +0 -37
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +0 -87
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +0 -52
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +0 -81
- package/dist/Conversations/Flows/Nodes/index.d.ts +0 -24
- package/dist/Conversations/Flows/Nodes/index.js +0 -40
- package/dist/Conversations/InboxCounters.d.ts +0 -18
- package/dist/Conversations/InboxCounters.js +0 -2
- package/dist/Presence/ChannelRoutingState.d.ts +0 -17
- package/dist/Presence/ChannelRoutingState.js +0 -9
- package/dist/Tickets/AccessLevel.d.ts +0 -5
- package/dist/Tickets/AccessLevel.js +0 -9
- /package/dist/{AI/MapPolygon.js → Conversations/InboxProjection.js} +0 -0
- /package/dist/{Conversations/Flows/Nodes/NodeGoogleCalendar.js → Presence/RoutingContracts.js} +0 -0
|
@@ -258,6 +258,14 @@ export interface ITicketRetentionPolicy extends ITicketAuditedEntity {
|
|
|
258
258
|
enabled: boolean;
|
|
259
259
|
version: number;
|
|
260
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Row of GET /security/retention-policies: the policy plus its estimated reach
|
|
263
|
+
* (the same number the preview reports as `alreadyReachedCount`). Optional
|
|
264
|
+
* because the write endpoints return the bare policy without the count.
|
|
265
|
+
*/
|
|
266
|
+
export interface ITicketRetentionPolicyListEntry extends ITicketRetentionPolicy {
|
|
267
|
+
estimatedAffectedCount?: number;
|
|
268
|
+
}
|
|
261
269
|
export interface ICreateTicketRetentionPolicyDto {
|
|
262
270
|
name: string;
|
|
263
271
|
description?: string;
|
|
@@ -323,6 +331,19 @@ export interface ITicketRetentionValidationEntry {
|
|
|
323
331
|
export interface IValidateTicketRetentionResponse {
|
|
324
332
|
policies: ITicketRetentionValidationEntry[];
|
|
325
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* Body of POST /security/retention-policies/preview. At least one field is
|
|
336
|
+
* required: `policyId` previews a stored policy, `policy` an unsaved draft, and
|
|
337
|
+
* both together a draft that replaces that policy.
|
|
338
|
+
*/
|
|
339
|
+
export interface IPreviewTicketRetentionDto {
|
|
340
|
+
policyId?: string;
|
|
341
|
+
policy?: ICreateTicketRetentionPolicyDto;
|
|
342
|
+
}
|
|
343
|
+
/** Body of POST /security/retention-policies/validate. Omit `policyId` to validate every policy in the space. */
|
|
344
|
+
export interface IValidateTicketRetentionDto {
|
|
345
|
+
policyId?: string;
|
|
346
|
+
}
|
|
326
347
|
export interface ITicketFieldSecurityValidationIssue {
|
|
327
348
|
code: string;
|
|
328
349
|
severity: 'ERROR' | 'WARNING';
|
|
@@ -553,9 +574,22 @@ export interface ITicketLegalHoldsResponse {
|
|
|
553
574
|
holds: ITicketLegalHold[];
|
|
554
575
|
suspendedPolicies: ITicketSuspendedRetentionPolicy[];
|
|
555
576
|
}
|
|
577
|
+
/** Row of GET /security/legal-holds. */
|
|
556
578
|
export interface ITicketLegalHoldListEntry extends ITicketLegalHold {
|
|
557
579
|
ticketNumber: number;
|
|
558
580
|
ticketTitle: string;
|
|
581
|
+
/** Retention policies the held ticket would otherwise be subject to; shared by every hold on the same ticket. */
|
|
582
|
+
suspendedPolicies: ITicketSuspendedRetentionPolicy[];
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Response of POST /tickets/{id}/legal-holds/{holdId}/release. Releasing one of
|
|
586
|
+
* several holds keeps the ticket protected: `stillOnHold` is then true and
|
|
587
|
+
* `resumedPolicies` is empty.
|
|
588
|
+
*/
|
|
589
|
+
export interface IReleaseTicketLegalHoldResponse {
|
|
590
|
+
hold: ITicketLegalHold;
|
|
591
|
+
stillOnHold: boolean;
|
|
592
|
+
resumedPolicies: ITicketSuspendedRetentionPolicy[];
|
|
559
593
|
}
|
|
560
594
|
export interface ICreateTicketDelegatedAccessDto {
|
|
561
595
|
delegateId: string;
|
|
@@ -343,6 +343,23 @@ export interface ICreateTicketPublicStatusMappingDto {
|
|
|
343
343
|
}
|
|
344
344
|
export interface IUpdateTicketPublicStatusMappingDto extends Partial<ICreateTicketPublicStatusMappingDto> {
|
|
345
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* How a scheme references a public status: by mapping internal statuses onto it
|
|
348
|
+
* (`MAPPING`) or by using it as its fallback (`SCHEME_DEFAULT`).
|
|
349
|
+
*/
|
|
350
|
+
export type PublicStatusUsageKind = "MAPPING" | "SCHEME_DEFAULT";
|
|
351
|
+
export interface IPublicStatusUsage {
|
|
352
|
+
schemeId: string;
|
|
353
|
+
schemeName: string;
|
|
354
|
+
as: PublicStatusUsageKind;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Body of GET /public-statuses/{id}/usages. A non-empty list blocks DELETE
|
|
358
|
+
* (409, same entries as `details`).
|
|
359
|
+
*/
|
|
360
|
+
export interface IPublicStatusUsages {
|
|
361
|
+
usages: IPublicStatusUsage[];
|
|
362
|
+
}
|
|
346
363
|
/** Customer-facing projection of ITicketPublicStatus: no audit or tenant fields. */
|
|
347
364
|
export interface ICustomerPublicStatusView {
|
|
348
365
|
id: string;
|
package/dist/Tickets/Ticket.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
2
|
import { ITicketAttachment, ITicketContactProjection, ITicketExternalReference, ITicketProperty, ITicketTagInfo, TicketCreationMethod, TicketOriginChannel, TicketPriority, TicketStage } from "./Common";
|
|
3
|
-
import { ITicketFormSubmissionReference } from "./Workflow";
|
|
3
|
+
import { ITicketFormSubmissionReference, TicketActivityType } from "./Workflow";
|
|
4
4
|
import { ITicketSlaState } from "./Sla";
|
|
5
5
|
import { ITicketSecurityState } from "./Security";
|
|
6
6
|
import { ITicketApprovalSummary } from "./Approval";
|
|
7
7
|
import { ITicketTaskSummary } from "./Task";
|
|
8
|
-
import { ITicketConversationReference } from "./Conversation";
|
|
8
|
+
import { ITicketConversationReference, TicketMessageActorType } from "./Conversation";
|
|
9
9
|
import { ITicketRoutingState } from "./Routing";
|
|
10
10
|
import { ITicketAISummary } from "./AI";
|
|
11
11
|
export interface ITicketResolution {
|
|
@@ -15,6 +15,17 @@ export interface ITicketResolution {
|
|
|
15
15
|
resolvedAt: Date;
|
|
16
16
|
resolvedBy: string;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* What happened last on a ticket. `CUSTOMER_MESSAGE` / `AGENT_MESSAGE` are not activity rows:
|
|
20
|
+
* they come from a cited message whose direction says who wrote it.
|
|
21
|
+
*/
|
|
22
|
+
export type TicketLastActivityType = TicketActivityType | "CUSTOMER_MESSAGE" | "AGENT_MESSAGE";
|
|
23
|
+
export interface ITicketLastActivity {
|
|
24
|
+
type: TicketLastActivityType;
|
|
25
|
+
actorType?: TicketMessageActorType;
|
|
26
|
+
/** ISO 8601. */
|
|
27
|
+
at: string;
|
|
28
|
+
}
|
|
18
29
|
export interface ITicket {
|
|
19
30
|
id: string;
|
|
20
31
|
spaceId: string;
|
|
@@ -64,6 +75,15 @@ export interface ITicket {
|
|
|
64
75
|
reopenedAt?: Date;
|
|
65
76
|
reopenedBy?: string;
|
|
66
77
|
reopenCount: number;
|
|
78
|
+
/** When the ticket entered its current status. */
|
|
79
|
+
statusChangedAt?: Date;
|
|
80
|
+
/** What happened last on the ticket; null when nothing was recorded yet. */
|
|
81
|
+
lastActivity?: ITicketLastActivity | null;
|
|
82
|
+
/**
|
|
83
|
+
* Set when the latest decided close approval was rejected; absent once a new
|
|
84
|
+
* approval is approved. Re-requesting an approval keeps it.
|
|
85
|
+
*/
|
|
86
|
+
approvalRejectedAt?: Date;
|
|
67
87
|
createdAt: Date;
|
|
68
88
|
createdBy: string;
|
|
69
89
|
updatedAt?: Date;
|
|
@@ -133,7 +153,8 @@ export interface IUpdateTicketDto {
|
|
|
133
153
|
export interface IResolveTicketDto {
|
|
134
154
|
expectedVersion: number;
|
|
135
155
|
toStatusId: string;
|
|
136
|
-
|
|
156
|
+
/** Optional: a ticket can be resolved without a resolution type. */
|
|
157
|
+
resolutionTypeId?: string;
|
|
137
158
|
description?: string;
|
|
138
159
|
comment?: string;
|
|
139
160
|
attachmentIds?: string[];
|
|
@@ -11,6 +11,12 @@ export interface ITicketStatus extends ITicketAuditedEntity {
|
|
|
11
11
|
order: number;
|
|
12
12
|
isInitial: boolean;
|
|
13
13
|
isFinal: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Only meaningful when `isFinal` is true: how many days a ticket stays visible in list/kanban
|
|
16
|
+
* search after entering this status. `undefined`/`null` means no expiry; on update, `null`
|
|
17
|
+
* clears a previous value.
|
|
18
|
+
*/
|
|
19
|
+
visibleDays?: number | null;
|
|
14
20
|
enabled: boolean;
|
|
15
21
|
version: number;
|
|
16
22
|
}
|
|
@@ -79,6 +85,43 @@ export interface IUpdateTicketTransitionDTO extends Partial<Omit<ITicketTransiti
|
|
|
79
85
|
id: string;
|
|
80
86
|
expectedVersion: number;
|
|
81
87
|
}
|
|
88
|
+
/** A transition condition that is not met, as reported by POST /transitions/{id}/validate. */
|
|
89
|
+
export interface ITicketTransitionBlockedCondition {
|
|
90
|
+
conditionId: string;
|
|
91
|
+
conditionType: string;
|
|
92
|
+
/** Ready to show: the API surfaces it verbatim as the detail message. */
|
|
93
|
+
reason: string;
|
|
94
|
+
}
|
|
95
|
+
/** Body of POST /transitions/{id}/validate. */
|
|
96
|
+
export interface IValidateTicketTransitionResponse {
|
|
97
|
+
allowed: boolean;
|
|
98
|
+
/** Ids only, kept for existing consumers; `blocked` carries the explanation. */
|
|
99
|
+
blockedConditions: string[];
|
|
100
|
+
blocked: ITicketTransitionBlockedCondition[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* What stops working if a transition is disabled (GET /transitions/{id}/disable-impact).
|
|
104
|
+
* Informational: disabling is still allowed. Everything recovers as soon as a path is restored.
|
|
105
|
+
*/
|
|
106
|
+
export interface ITransitionDisableImpact {
|
|
107
|
+
/** The origin status, when this transition is its only enabled way out. */
|
|
108
|
+
strandedStatus: {
|
|
109
|
+
statusId: string;
|
|
110
|
+
statusName: string;
|
|
111
|
+
/** Tickets currently in that status, which would have no way to move. */
|
|
112
|
+
ticketCount: number;
|
|
113
|
+
} | null;
|
|
114
|
+
/** SLA metric definitions whose completion stops being reachable from their start. */
|
|
115
|
+
slaMetricDefinitions: {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
}[];
|
|
119
|
+
/** Macros that move tickets to the transition's target; they fail for tickets in the origin. */
|
|
120
|
+
macros: {
|
|
121
|
+
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
}[];
|
|
124
|
+
}
|
|
82
125
|
export declare enum TicketActivityType {
|
|
83
126
|
CREATED = "CREATED",
|
|
84
127
|
UPDATED = "UPDATED",
|
|
@@ -88,7 +131,11 @@ export declare enum TicketActivityType {
|
|
|
88
131
|
ATTACHMENT_ADDED = "ATTACHMENT_ADDED",
|
|
89
132
|
ATTACHMENT_DELETED = "ATTACHMENT_DELETED",
|
|
90
133
|
FORM_SUBMITTED = "FORM_SUBMITTED",
|
|
134
|
+
APPROVAL_REQUESTED = "APPROVAL_REQUESTED",
|
|
91
135
|
APPROVAL_COMPLETED = "APPROVAL_COMPLETED",
|
|
136
|
+
APPROVAL_REJECTED = "APPROVAL_REJECTED",
|
|
137
|
+
/** @deprecated No longer written (one decision per approval, no steps); older rows still carry it. */
|
|
138
|
+
APPROVAL_STEP_APPROVED = "APPROVAL_STEP_APPROVED",
|
|
92
139
|
TASK_COMPLETED = "TASK_COMPLETED",
|
|
93
140
|
ALL_REQUIRED_TASKS_COMPLETED = "ALL_REQUIRED_TASKS_COMPLETED",
|
|
94
141
|
CHECKLIST_COMPLETED = "CHECKLIST_COMPLETED",
|
package/dist/Tickets/Workflow.js
CHANGED
|
@@ -36,7 +36,11 @@ var TicketActivityType;
|
|
|
36
36
|
TicketActivityType["ATTACHMENT_ADDED"] = "ATTACHMENT_ADDED";
|
|
37
37
|
TicketActivityType["ATTACHMENT_DELETED"] = "ATTACHMENT_DELETED";
|
|
38
38
|
TicketActivityType["FORM_SUBMITTED"] = "FORM_SUBMITTED";
|
|
39
|
+
TicketActivityType["APPROVAL_REQUESTED"] = "APPROVAL_REQUESTED";
|
|
39
40
|
TicketActivityType["APPROVAL_COMPLETED"] = "APPROVAL_COMPLETED";
|
|
41
|
+
TicketActivityType["APPROVAL_REJECTED"] = "APPROVAL_REJECTED";
|
|
42
|
+
/** @deprecated No longer written (one decision per approval, no steps); older rows still carry it. */
|
|
43
|
+
TicketActivityType["APPROVAL_STEP_APPROVED"] = "APPROVAL_STEP_APPROVED";
|
|
40
44
|
TicketActivityType["TASK_COMPLETED"] = "TASK_COMPLETED";
|
|
41
45
|
TicketActivityType["ALL_REQUIRED_TASKS_COMPLETED"] = "ALL_REQUIRED_TASKS_COMPLETED";
|
|
42
46
|
TicketActivityType["CHECKLIST_COMPLETED"] = "CHECKLIST_COMPLETED";
|
package/dist/Tickets/index.d.ts
CHANGED
package/dist/Tickets/index.js
CHANGED
package/package.json
CHANGED
package/dist/AI/MapPolygon.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Map {
|
|
2
|
-
id?: string | null;
|
|
3
|
-
spaceId: string | "";
|
|
4
|
-
name: string | "";
|
|
5
|
-
description: string | "";
|
|
6
|
-
layers: MapLayer[];
|
|
7
|
-
createdAt: Date;
|
|
8
|
-
createdBy: string;
|
|
9
|
-
updatedAt?: Date | null;
|
|
10
|
-
updatedBy?: string | null;
|
|
11
|
-
deletedAt?: Date | null;
|
|
12
|
-
deletedBy?: string | null;
|
|
13
|
-
}
|
|
14
|
-
export interface MapLayer {
|
|
15
|
-
id?: string | null;
|
|
16
|
-
spaceId: string | "";
|
|
17
|
-
name: string | "";
|
|
18
|
-
fileName: string | "";
|
|
19
|
-
fileUrl: string | "";
|
|
20
|
-
data?: object | null;
|
|
21
|
-
polygons?: object | null;
|
|
22
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormTag = exports.DashBoardFormsSubmittedFormResponse = exports.DashBoardFormsSubmittedFormRecord = exports.DashBoardFormsSubmittedFormsInfo = exports.DashBoardFormsResponseSummary = exports.DashBoardFormsQuestionSummary = exports.DashBoardFormsSummaryInfo = void 0;
|
|
4
|
-
class DashBoardFormsSummaryInfo {
|
|
5
|
-
}
|
|
6
|
-
exports.DashBoardFormsSummaryInfo = DashBoardFormsSummaryInfo;
|
|
7
|
-
class DashBoardFormsQuestionSummary {
|
|
8
|
-
}
|
|
9
|
-
exports.DashBoardFormsQuestionSummary = DashBoardFormsQuestionSummary;
|
|
10
|
-
class DashBoardFormsResponseSummary {
|
|
11
|
-
}
|
|
12
|
-
exports.DashBoardFormsResponseSummary = DashBoardFormsResponseSummary;
|
|
13
|
-
class DashBoardFormsSubmittedFormsInfo {
|
|
14
|
-
}
|
|
15
|
-
exports.DashBoardFormsSubmittedFormsInfo = DashBoardFormsSubmittedFormsInfo;
|
|
16
|
-
class DashBoardFormsSubmittedFormRecord {
|
|
17
|
-
}
|
|
18
|
-
exports.DashBoardFormsSubmittedFormRecord = DashBoardFormsSubmittedFormRecord;
|
|
19
|
-
class DashBoardFormsSubmittedFormResponse {
|
|
20
|
-
}
|
|
21
|
-
exports.DashBoardFormsSubmittedFormResponse = DashBoardFormsSubmittedFormResponse;
|
|
22
|
-
class FormTag {
|
|
23
|
-
}
|
|
24
|
-
exports.FormTag = FormTag;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultNodeApi = void 0;
|
|
4
|
-
const Flow_1 = require("../Flow");
|
|
5
|
-
exports.defaultNodeApi = {
|
|
6
|
-
id: "NodeApi-{uid}",
|
|
7
|
-
type: Flow_1.NodeType.API,
|
|
8
|
-
category: 'action',
|
|
9
|
-
description: "Node for making API calls, allowing for dynamic interactions with external services.",
|
|
10
|
-
tags: [],
|
|
11
|
-
version: 1,
|
|
12
|
-
asyncLoadHandlesOut: false,
|
|
13
|
-
handlesIn: [
|
|
14
|
-
{
|
|
15
|
-
id: "in",
|
|
16
|
-
type: 'target',
|
|
17
|
-
position: 'left',
|
|
18
|
-
name: "IN",
|
|
19
|
-
nameKey: 'NODE_API_IN',
|
|
20
|
-
showName: false,
|
|
21
|
-
multiple: false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
handlesOut: [
|
|
25
|
-
{
|
|
26
|
-
id: "onNext",
|
|
27
|
-
type: 'source',
|
|
28
|
-
position: 'right',
|
|
29
|
-
name: "Next",
|
|
30
|
-
nameKey: 'NODE_API_NEXT',
|
|
31
|
-
showName: true,
|
|
32
|
-
multiple: false
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
name: "API Node",
|
|
36
|
-
nameKey: 'NODE_API_NAME',
|
|
37
|
-
enableStatics: false,
|
|
38
|
-
properties: [
|
|
39
|
-
{
|
|
40
|
-
type: 'string',
|
|
41
|
-
id: 'url',
|
|
42
|
-
label: 'URL',
|
|
43
|
-
labelKey: 'NODE_API_URL',
|
|
44
|
-
optional: false,
|
|
45
|
-
default: '',
|
|
46
|
-
placeholder: 'Enter the URL for the API endpoint',
|
|
47
|
-
description: 'The URL of the API endpoint to which the request will be sent.'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: 'options',
|
|
51
|
-
id: 'method',
|
|
52
|
-
label: 'Method',
|
|
53
|
-
labelKey: 'NODE_API_METHOD',
|
|
54
|
-
optional: false,
|
|
55
|
-
default: 'GET',
|
|
56
|
-
options: [
|
|
57
|
-
{ id: 'GET', label: 'GET' },
|
|
58
|
-
{ id: 'POST', label: 'POST' },
|
|
59
|
-
{ id: 'PUT', label: 'PUT' },
|
|
60
|
-
{ id: 'DELETE', label: 'DELETE' },
|
|
61
|
-
{ id: 'PATCH', label: 'PATCH' },
|
|
62
|
-
{ id: 'HEAD', label: 'HEAD' },
|
|
63
|
-
{ id: 'OPTIONS', label: 'OPTIONS' }
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'options',
|
|
68
|
-
id: 'authType',
|
|
69
|
-
label: 'Authentication Type',
|
|
70
|
-
labelKey: 'NODE_API_AUTH_TYPE',
|
|
71
|
-
optional: true,
|
|
72
|
-
default: 'NONE',
|
|
73
|
-
options: [
|
|
74
|
-
{ id: 'NONE', label: 'None' },
|
|
75
|
-
{ id: 'BASIC', label: 'Basic Auth' },
|
|
76
|
-
{ id: 'API_KEY', label: 'API Key' },
|
|
77
|
-
{ id: 'BEARER', label: 'Bearer Token' }
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
type: 'array',
|
|
82
|
-
id: 'authBasic',
|
|
83
|
-
label: 'Basic Authentication',
|
|
84
|
-
labelKey: 'NODE_API_AUTH_BASIC',
|
|
85
|
-
show: {
|
|
86
|
-
authType: 'BASIC'
|
|
87
|
-
},
|
|
88
|
-
optional: true,
|
|
89
|
-
array: [
|
|
90
|
-
{
|
|
91
|
-
type: 'string',
|
|
92
|
-
id: 'username',
|
|
93
|
-
label: 'Username',
|
|
94
|
-
labelKey: 'NODE_API_AUTH_BASIC_USERNAME',
|
|
95
|
-
default: '',
|
|
96
|
-
optional: false
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
type: 'string',
|
|
100
|
-
id: 'password',
|
|
101
|
-
label: 'Password',
|
|
102
|
-
labelKey: 'NODE_API_AUTH_BASIC_PASSWORD',
|
|
103
|
-
default: '',
|
|
104
|
-
optional: false
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
type: 'array',
|
|
110
|
-
id: 'authApiKey',
|
|
111
|
-
label: 'API Key Authentication',
|
|
112
|
-
labelKey: 'NODE_API_AUTH_API_KEY',
|
|
113
|
-
show: {
|
|
114
|
-
authType: 'API_KEY'
|
|
115
|
-
},
|
|
116
|
-
optional: true,
|
|
117
|
-
array: [
|
|
118
|
-
{
|
|
119
|
-
type: 'string',
|
|
120
|
-
id: 'headerKey',
|
|
121
|
-
label: 'API Header Key',
|
|
122
|
-
labelKey: 'NODE_API_AUTH_API_KEY_NAME'
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
type: 'string',
|
|
126
|
-
id: 'key',
|
|
127
|
-
label: 'API Key',
|
|
128
|
-
labelKey: 'NODE_API_AUTH_API_KEY_KEY'
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: 'array',
|
|
134
|
-
id: 'authBearer',
|
|
135
|
-
label: 'Bearer Token Authentication',
|
|
136
|
-
show: {
|
|
137
|
-
authType: 'BEARER'
|
|
138
|
-
},
|
|
139
|
-
labelKey: 'NODE_API_AUTH_BEARER_TOKEN',
|
|
140
|
-
optional: true,
|
|
141
|
-
array: [
|
|
142
|
-
{
|
|
143
|
-
type: 'string',
|
|
144
|
-
id: 'token',
|
|
145
|
-
label: 'Bearer Token',
|
|
146
|
-
labelKey: 'NODE_API_AUTH_BEARER_TOKEN'
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: 'body',
|
|
152
|
-
type: 'string',
|
|
153
|
-
label: 'Request Body',
|
|
154
|
-
labelKey: 'NODE_API_REQUEST_BODY',
|
|
155
|
-
optional: true,
|
|
156
|
-
acceptVariable: true,
|
|
157
|
-
placeholder: 'Enter the request body in JSON format',
|
|
158
|
-
rows: 5
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
type: 'options',
|
|
162
|
-
id: 'responseContentType',
|
|
163
|
-
label: 'Response Content Type',
|
|
164
|
-
labelKey: 'NODE_API_CONTENT_TYPE',
|
|
165
|
-
optional: true,
|
|
166
|
-
default: 'application/json',
|
|
167
|
-
options: [
|
|
168
|
-
{ id: 'application/json', label: 'application/json' },
|
|
169
|
-
{ id: 'application/x-www-form-urlencoded', label: 'application/x-www-form-urlencoded' },
|
|
170
|
-
{ id: 'text/plain', label: 'text/plain' },
|
|
171
|
-
{ id: 'multipart/form-data', label: 'multipart/form-data' }
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
values: undefined,
|
|
176
|
-
color: '#00bcd4', // Cyan color for the start node
|
|
177
|
-
icon: '',
|
|
178
|
-
badge: undefined,
|
|
179
|
-
hideInput: true,
|
|
180
|
-
hideOutput: false,
|
|
181
|
-
author: '',
|
|
182
|
-
documentation: '',
|
|
183
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class NodeBotIA {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
enableStatics: boolean | false;
|
|
5
|
-
llmModel?: NodeBotIAModel;
|
|
6
|
-
llmTemperature?: number | 0.7;
|
|
7
|
-
llmMaxTokens?: number | 1000;
|
|
8
|
-
llmTopP?: number | 1;
|
|
9
|
-
prompt?: string | "";
|
|
10
|
-
retryCount?: number | 3;
|
|
11
|
-
retryDelay?: number | 1000;
|
|
12
|
-
apiKey?: string | "";
|
|
13
|
-
nextNodeId?: string | "";
|
|
14
|
-
}
|
|
15
|
-
export type NodeBotIAModel = "gpt-3.5-turbo" | "gpt-4" | "gpt-4-turbo" | "llama2" | "llama2-chat" | "llama2-7b-chat" | "llama2-13b-chat" | "llama2-70b-chat" | "llama2-7b" | "llama2-13b" | "llama2-70b" | "mistral" | "mistral-chat" | "mistral-7b-chat" | "mistral-7b";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class NodeChatBotIA {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
enableStatics: boolean | false;
|
|
5
|
-
llmModel?: NodeNodeChatBotModel;
|
|
6
|
-
llmTemperature?: number | 0.7;
|
|
7
|
-
llmMaxTokens?: number | 1000;
|
|
8
|
-
llmTopP?: number | 1;
|
|
9
|
-
prompt?: string | "";
|
|
10
|
-
retryCount?: number | 3;
|
|
11
|
-
retryDelay?: number | 1000;
|
|
12
|
-
apiKey?: string | "";
|
|
13
|
-
nextNodeId?: string | "";
|
|
14
|
-
}
|
|
15
|
-
export type NodeNodeChatBotModel = "gpt-3.5-turbo" | "gpt-4" | "gpt-4-turbo" | "llama2" | "llama2-chat" | "llama2-7b-chat" | "llama2-13b-chat" | "llama2-70b-chat" | "llama2-7b" | "llama2-13b" | "llama2-70b" | "mistral" | "mistral-chat" | "mistral-7b-chat" | "mistral-7b";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var NodeFillTicketPriority;
|
|
4
|
-
(function (NodeFillTicketPriority) {
|
|
5
|
-
NodeFillTicketPriority[NodeFillTicketPriority["LOW"] = 100] = "LOW";
|
|
6
|
-
NodeFillTicketPriority[NodeFillTicketPriority["NORMAL"] = 200] = "NORMAL";
|
|
7
|
-
NodeFillTicketPriority[NodeFillTicketPriority["HIGH"] = 300] = "HIGH";
|
|
8
|
-
NodeFillTicketPriority[NodeFillTicketPriority["CRITICAL"] = 400] = "CRITICAL";
|
|
9
|
-
})(NodeFillTicketPriority || (NodeFillTicketPriority = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
-
export interface NodeGoogleCalendar extends NodeBase {
|
|
3
|
-
type: NodeType.GOOGLE_CALENDAR;
|
|
4
|
-
typeName: "googleCalendar";
|
|
5
|
-
handles: ['onNext'];
|
|
6
|
-
categories: ['tool'];
|
|
7
|
-
enableStatics: boolean | false;
|
|
8
|
-
authCredentialId?: string | null;
|
|
9
|
-
eventsAdd?: boolean | false;
|
|
10
|
-
eventsEdit?: boolean | false;
|
|
11
|
-
eventsGet?: boolean | false;
|
|
12
|
-
eventsSearch?: boolean | false;
|
|
13
|
-
eventsDelete?: boolean | false;
|
|
14
|
-
calendarList?: boolean | false;
|
|
15
|
-
polygonsId?: string | null;
|
|
16
|
-
polygonsName?: string | null;
|
|
17
|
-
placeSearch?: boolean | false;
|
|
18
|
-
variables?: string | null;
|
|
19
|
-
saveAs?: string | null;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class NodeGoogleMaps {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
enableStatics: boolean | false;
|
|
5
|
-
polygonsEnable?: boolean | false;
|
|
6
|
-
polygonsId?: string | null;
|
|
7
|
-
polygonsName?: string | null;
|
|
8
|
-
placeSearch?: boolean | false;
|
|
9
|
-
authCredentialId?: string | null;
|
|
10
|
-
variables?: string | null;
|
|
11
|
-
saveAs?: string | null;
|
|
12
|
-
}
|