@trii/types 2.10.713 → 2.10.715
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 +8 -8
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxCounters.js +2 -0
- package/dist/Conversations/InboxMongo.d.ts +12 -12
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Tickets/Automation.d.ts +2 -2
- package/dist/Tickets/Sla.d.ts +65 -0
- package/dist/src/AI/Credential.d.ts +13 -0
- package/dist/src/AI/Credential.js +2 -0
- package/dist/src/AI/Documents/Document.d.ts +36 -0
- package/dist/src/AI/Documents/Document.js +15 -0
- package/dist/src/AI/Documents/Store.d.ts +25 -0
- package/dist/src/AI/Documents/Store.js +10 -0
- package/dist/src/AI/Map.d.ts +13 -0
- package/dist/src/AI/Map.js +2 -0
- package/dist/src/AI/Provider.d.ts +6 -0
- package/dist/src/AI/Provider.js +2 -0
- package/dist/src/AI/Threads/API.d.ts +55 -0
- package/dist/src/AI/Threads/API.js +2 -0
- package/dist/src/AI/Threads/Message.d.ts +61 -0
- package/dist/src/AI/Threads/Message.js +2 -0
- package/dist/src/AI/Threads/Thread.d.ts +22 -0
- package/dist/src/AI/Threads/Thread.js +2 -0
- package/dist/src/AI/Threads/index.d.ts +3 -0
- package/dist/src/AI/Threads/index.js +19 -0
- package/dist/src/AI/aiModuleStatus.d.ts +3 -0
- package/dist/src/AI/aiModuleStatus.js +2 -0
- package/dist/src/AI/index.d.ts +4 -0
- package/dist/src/AI/index.js +20 -0
- package/dist/src/Accounts/accounts.d.ts +88 -0
- package/dist/src/Accounts/accounts.js +24 -0
- package/dist/src/Accounts/device.d.ts +31 -0
- package/dist/src/Accounts/device.js +19 -0
- package/dist/src/Accounts/index.d.ts +2 -0
- package/dist/src/Accounts/index.js +18 -0
- package/dist/src/ApiResponses/index.d.ts +9 -0
- package/dist/src/ApiResponses/index.js +2 -0
- package/dist/src/AuditLogs/auditLog.d.ts +9 -0
- package/dist/src/AuditLogs/auditLog.js +2 -0
- package/dist/src/AuditLogs/auditLogType.d.ts +5 -0
- package/dist/src/AuditLogs/auditLogType.js +9 -0
- package/dist/src/AuditLogs/index.d.ts +2 -0
- package/dist/src/AuditLogs/index.js +18 -0
- package/dist/src/Calendar/Calendar.d.ts +18 -0
- package/dist/src/Calendar/Calendar.js +2 -0
- package/dist/src/Calendar/Common.d.ts +77 -0
- package/dist/src/Calendar/Common.js +16 -0
- package/dist/src/Calendar/Event.d.ts +64 -0
- package/dist/src/Calendar/Event.js +16 -0
- package/dist/src/Calendar/Events.d.ts +61 -0
- package/dist/src/Calendar/Events.js +5 -0
- package/dist/src/Calendar/Task.d.ts +12 -0
- package/dist/src/Calendar/Task.js +2 -0
- package/dist/src/Calendar/Tasks.d.ts +18 -0
- package/dist/src/Calendar/Tasks.js +5 -0
- package/dist/src/Calendar/index.d.ts +3 -0
- package/dist/src/Calendar/index.js +19 -0
- package/dist/src/Calls/Audio.d.ts +17 -0
- package/dist/src/Calls/Audio.js +8 -0
- package/dist/src/Calls/Call.d.ts +59 -0
- package/dist/src/Calls/Call.js +25 -0
- package/dist/src/Calls/Codecs.d.ts +5 -0
- package/dist/src/Calls/Codecs.js +21 -0
- package/dist/src/Calls/Extension.d.ts +24 -0
- package/dist/src/Calls/Extension.js +2 -0
- package/dist/src/Calls/Options.d.ts +5 -0
- package/dist/src/Calls/Options.js +2 -0
- package/dist/src/Calls/Queue.d.ts +52 -0
- package/dist/src/Calls/Queue.js +12 -0
- package/dist/src/Calls/RingGroup.d.ts +46 -0
- package/dist/src/Calls/RingGroup.js +27 -0
- package/dist/src/Calls/Transport.d.ts +6 -0
- package/dist/src/Calls/Transport.js +11 -0
- package/dist/src/Calls/Trunk.d.ts +31 -0
- package/dist/src/Calls/Trunk.js +2 -0
- package/dist/src/Calls/index.d.ts +6 -0
- package/dist/src/Calls/index.js +22 -0
- package/dist/src/Collections/Api.d.ts +41 -0
- package/dist/src/Collections/Api.js +2 -0
- package/dist/src/Collections/Commission.d.ts +52 -0
- package/dist/src/Collections/Commission.js +10 -0
- package/dist/src/Collections/Common.d.ts +78 -0
- package/dist/src/Collections/Common.js +39 -0
- package/dist/src/Collections/Dashboard.d.ts +27 -0
- package/dist/src/Collections/Dashboard.js +2 -0
- package/dist/src/Collections/Debt.d.ts +97 -0
- package/dist/src/Collections/Debt.js +12 -0
- package/dist/src/Collections/Interest.d.ts +38 -0
- package/dist/src/Collections/Interest.js +25 -0
- package/dist/src/Collections/Payment.d.ts +87 -0
- package/dist/src/Collections/Payment.js +21 -0
- package/dist/src/Collections/PaymentPlan.d.ts +87 -0
- package/dist/src/Collections/PaymentPlan.js +21 -0
- package/dist/src/Collections/PaymentPlanConfiguration.d.ts +100 -0
- package/dist/src/Collections/PaymentPlanConfiguration.js +34 -0
- package/dist/src/Collections/Portfolio.d.ts +52 -0
- package/dist/src/Collections/Portfolio.js +12 -0
- package/dist/src/Collections/Promise.d.ts +49 -0
- package/dist/src/Collections/Promise.js +25 -0
- package/dist/src/Collections/index.d.ts +11 -0
- package/dist/src/Collections/index.js +27 -0
- package/dist/src/Common/API/AuthApiKey.d.ts +5 -0
- package/dist/src/Common/API/AuthApiKey.js +2 -0
- package/dist/src/Common/API/AuthBasic.d.ts +4 -0
- package/dist/src/Common/API/AuthBasic.js +2 -0
- package/dist/src/Common/API/AuthBearer.d.ts +5 -0
- package/dist/src/Common/API/AuthBearer.js +2 -0
- package/dist/src/Common/API/AuthType.d.ts +6 -0
- package/dist/src/Common/API/AuthType.js +10 -0
- package/dist/src/Common/API/Method.d.ts +4 -0
- package/dist/src/Common/API/Method.js +8 -0
- package/dist/src/Common/API/index.d.ts +5 -0
- package/dist/src/Common/API/index.js +21 -0
- package/dist/src/Common/Channels/Channel.d.ts +99 -0
- package/dist/src/Common/Channels/Channel.js +20 -0
- package/dist/src/Common/Channels/ChannelAccount.d.ts +35 -0
- package/dist/src/Common/Channels/ChannelAccount.js +17 -0
- package/dist/src/Common/Channels/ChannelType.d.ts +24 -0
- package/dist/src/Common/Channels/ChannelType.js +28 -0
- package/dist/src/Common/Channels/Email.d.ts +62 -0
- package/dist/src/Common/Channels/Email.js +36 -0
- package/dist/src/Common/Channels/Facebook.d.ts +25 -0
- package/dist/src/Common/Channels/Facebook.js +6 -0
- package/dist/src/Common/Channels/Form.d.ts +118 -0
- package/dist/src/Common/Channels/Form.js +32 -0
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +20 -0
- package/dist/src/Common/Channels/GoogleBusiness.js +9 -0
- package/dist/src/Common/Channels/Instagram.d.ts +29 -0
- package/dist/src/Common/Channels/Instagram.js +14 -0
- package/dist/src/Common/Channels/MercadoLibre.d.ts +27 -0
- package/dist/src/Common/Channels/MercadoLibre.js +9 -0
- package/dist/src/Common/Channels/Pbx.d.ts +2 -0
- package/dist/src/Common/Channels/Pbx.js +6 -0
- package/dist/src/Common/Channels/Permission.d.ts +6 -0
- package/dist/src/Common/Channels/Permission.js +6 -0
- package/dist/src/Common/Channels/RCS.d.ts +37 -0
- package/dist/src/Common/Channels/RCS.js +9 -0
- package/dist/src/Common/Channels/Sip.d.ts +2 -0
- package/dist/src/Common/Channels/Sip.js +6 -0
- package/dist/src/Common/Channels/Sms.d.ts +46 -0
- package/dist/src/Common/Channels/Sms.js +16 -0
- package/dist/src/Common/Channels/WebChat.d.ts +62 -0
- package/dist/src/Common/Channels/WebChat.js +19 -0
- package/dist/src/Common/Channels/WhatsApp.d.ts +89 -0
- package/dist/src/Common/Channels/WhatsApp.js +18 -0
- package/dist/src/Common/Channels/index.d.ts +16 -0
- package/dist/src/Common/Channels/index.js +32 -0
- package/dist/src/Common/EventsQueue/Data/postComment.d.ts +26 -0
- package/dist/src/Common/EventsQueue/Data/postComment.js +2 -0
- package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +10 -0
- package/dist/src/Common/EventsQueue/EmailTemplate.js +2 -0
- package/dist/src/Common/EventsQueue/EventQueue.d.ts +13 -0
- package/dist/src/Common/EventsQueue/EventQueue.js +2 -0
- package/dist/src/Common/EventsQueue/UserUpdate.d.ts +8 -0
- package/dist/src/Common/EventsQueue/UserUpdate.js +2 -0
- package/dist/src/Common/EventsQueue/index.d.ts +3 -0
- package/dist/src/Common/EventsQueue/index.js +19 -0
- package/dist/src/Common/Logs/Log.d.ts +18 -0
- package/dist/src/Common/Logs/Log.js +13 -0
- package/dist/src/Common/Logs/index.d.ts +1 -0
- package/dist/src/Common/Logs/index.js +17 -0
- package/dist/src/Common/Messages/MediaFile.d.ts +5 -0
- package/dist/src/Common/Messages/MediaFile.js +2 -0
- package/dist/src/Common/Messages/Message.d.ts +423 -0
- package/dist/src/Common/Messages/Message.js +62 -0
- package/dist/src/Common/Messages/Template.d.ts +86 -0
- package/dist/src/Common/Messages/Template.js +26 -0
- package/dist/src/Common/Messages/index.d.ts +3 -0
- package/dist/src/Common/Messages/index.js +19 -0
- package/dist/src/Common/Notifications/Notification.d.ts +19 -0
- package/dist/src/Common/Notifications/Notification.js +10 -0
- package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
- package/dist/src/Common/Notifications/UserNotificationsConfig.js +18 -0
- package/dist/src/Common/Notifications/index.d.ts +2 -0
- package/dist/src/Common/Notifications/index.js +18 -0
- package/dist/src/Common/Schedules/Schedules.d.ts +32 -0
- package/dist/src/Common/Schedules/Schedules.js +2 -0
- package/dist/src/Common/Schedules/index.d.ts +1 -0
- package/dist/src/Common/Schedules/index.js +17 -0
- package/dist/src/Common/index.d.ts +6 -0
- package/dist/src/Common/index.js +42 -0
- package/dist/src/Contacts/DuplicateContact.d.ts +11 -0
- package/dist/src/Contacts/DuplicateContact.js +2 -0
- package/dist/src/Contacts/File.d.ts +17 -0
- package/dist/src/Contacts/File.js +2 -0
- package/dist/src/Contacts/Import.d.ts +18 -0
- package/dist/src/Contacts/Import.js +2 -0
- package/dist/src/Contacts/Label.d.ts +9 -0
- package/dist/src/Contacts/Label.js +2 -0
- package/dist/src/Contacts/Note.d.ts +15 -0
- package/dist/src/Contacts/Note.js +2 -0
- package/dist/src/Contacts/Relationship.d.ts +28 -0
- package/dist/src/Contacts/Relationship.js +16 -0
- package/dist/src/Contacts/contacts.d.ts +269 -0
- package/dist/src/Contacts/contacts.js +54 -0
- package/dist/src/Contacts/index.d.ts +9 -0
- package/dist/src/Contacts/index.js +25 -0
- package/dist/src/Contacts/options.d.ts +5 -0
- package/dist/src/Contacts/options.js +2 -0
- package/dist/src/Contacts/segments.d.ts +52 -0
- package/dist/src/Contacts/segments.js +53 -0
- package/dist/src/Conversations/Conversation.d.ts +167 -0
- package/dist/src/Conversations/Conversation.js +56 -0
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +115 -0
- package/dist/src/Conversations/DashBoard/dashboard.js +65 -0
- package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
- package/dist/src/Conversations/DashBoard/dashboardChannels.js +6 -0
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
- package/dist/src/Conversations/DashBoard/dashboardMessages.js +9 -0
- package/dist/src/Conversations/Ending.d.ts +17 -0
- package/dist/src/Conversations/Ending.js +2 -0
- package/dist/src/Conversations/Flows/Definitions.d.ts +10 -0
- package/dist/src/Conversations/Flows/Definitions.js +2 -0
- package/dist/src/Conversations/Flows/Flow.d.ts +222 -0
- package/dist/src/Conversations/Flows/Flow.js +50 -0
- package/dist/src/Conversations/Flows/FlowInfo.d.ts +9 -0
- package/dist/src/Conversations/Flows/FlowInfo.js +2 -0
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +179 -0
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +48 -0
- package/dist/src/Conversations/Flows/Workflows/index.d.ts +1 -0
- package/dist/src/Conversations/Flows/Workflows/index.js +17 -0
- package/dist/src/Conversations/Flows/index.d.ts +4 -0
- package/dist/src/Conversations/Flows/index.js +20 -0
- package/dist/src/Conversations/Groups/Group.d.ts +23 -0
- package/dist/src/Conversations/Groups/Group.js +8 -0
- package/dist/src/Conversations/Label.d.ts +10 -0
- package/dist/src/Conversations/Label.js +2 -0
- package/dist/src/Conversations/QuickResponse.d.ts +34 -0
- package/dist/src/Conversations/QuickResponse.js +2 -0
- package/dist/src/Conversations/SocialWalls.d.ts +72 -0
- package/dist/src/Conversations/SocialWalls.js +2 -0
- package/dist/src/Conversations/Survey.d.ts +19 -0
- package/dist/src/Conversations/Survey.js +9 -0
- package/dist/src/Conversations/WebHook.d.ts +22 -0
- package/dist/src/Conversations/WebHook.js +2 -0
- package/dist/src/Conversations/index.d.ts +13 -0
- package/dist/src/Conversations/index.js +52 -0
- package/dist/src/Docs/Document.d.ts +58 -0
- package/dist/src/Docs/Document.js +29 -0
- package/dist/src/Docs/Store.d.ts +37 -0
- package/dist/src/Docs/Store.js +17 -0
- package/dist/src/Docs/index.d.ts +2 -0
- package/dist/src/Docs/index.js +18 -0
- package/dist/src/Marketing/Campaign.d.ts +69 -0
- package/dist/src/Marketing/Campaign.js +30 -0
- package/dist/src/Marketing/Dashboard.d.ts +48 -0
- package/dist/src/Marketing/Dashboard.js +2 -0
- package/dist/src/Marketing/Options.d.ts +12 -0
- package/dist/src/Marketing/Options.js +9 -0
- package/dist/src/Marketing/Template.d.ts +19 -0
- package/dist/src/Marketing/Template.js +8 -0
- package/dist/src/Marketing/index.d.ts +4 -0
- package/dist/src/Marketing/index.js +20 -0
- package/dist/src/PublicAPI/apiKey.d.ts +12 -0
- package/dist/src/PublicAPI/apiKey.js +2 -0
- package/dist/src/Reports/ScheduledReport.d.ts +205 -0
- package/dist/src/Reports/ScheduledReport.js +57 -0
- package/dist/src/Reports/aiReport.d.ts +20 -0
- package/dist/src/Reports/aiReport.js +2 -0
- package/dist/src/Reports/apiResult.d.ts +5 -0
- package/dist/src/Reports/apiResult.js +2 -0
- package/dist/src/Reports/index.d.ts +3 -0
- package/dist/src/Reports/index.js +19 -0
- package/dist/src/Sales/Api.d.ts +40 -0
- package/dist/src/Sales/Api.js +2 -0
- package/dist/src/Sales/Common.d.ts +72 -0
- package/dist/src/Sales/Common.js +31 -0
- package/dist/src/Sales/Dashboard.d.ts +25 -0
- package/dist/src/Sales/Dashboard.js +2 -0
- package/dist/src/Sales/Lead.d.ts +99 -0
- package/dist/src/Sales/Lead.js +8 -0
- package/dist/src/Sales/index.d.ts +4 -0
- package/dist/src/Sales/index.js +20 -0
- package/dist/src/Security/Security.d.ts +5 -0
- package/dist/src/Security/Security.js +2 -0
- package/dist/src/Security/index.d.ts +1 -0
- package/dist/src/Security/index.js +17 -0
- package/dist/src/Shop/Cart/cart.d.ts +19 -0
- package/dist/src/Shop/Cart/cart.js +2 -0
- package/dist/src/Shop/index.d.ts +1 -0
- package/dist/src/Shop/index.js +17 -0
- package/dist/src/Spaces/Dashboard.d.ts +4 -0
- package/dist/src/Spaces/Dashboard.js +2 -0
- package/dist/src/Spaces/index.d.ts +2 -0
- package/dist/src/Spaces/index.js +18 -0
- package/dist/src/Spaces/spaces.d.ts +104 -0
- package/dist/src/Spaces/spaces.js +85 -0
- package/dist/src/Tickets/AI.d.ts +400 -0
- package/dist/src/Tickets/AI.js +113 -0
- package/dist/src/Tickets/AdvancedApi.d.ts +486 -0
- package/dist/src/Tickets/AdvancedApi.js +108 -0
- package/dist/src/Tickets/Api.d.ts +62 -0
- package/dist/src/Tickets/Api.js +8 -0
- package/dist/src/Tickets/Approval.d.ts +139 -0
- package/dist/src/Tickets/Approval.js +30 -0
- package/dist/src/Tickets/Automation.d.ts +237 -0
- package/dist/src/Tickets/Automation.js +74 -0
- package/dist/src/Tickets/Category.d.ts +53 -0
- package/dist/src/Tickets/Category.js +2 -0
- package/dist/src/Tickets/Common.d.ts +90 -0
- package/dist/src/Tickets/Common.js +38 -0
- package/dist/src/Tickets/Conversation.d.ts +68 -0
- package/dist/src/Tickets/Conversation.js +30 -0
- package/dist/src/Tickets/Dashboard.d.ts +408 -0
- package/dist/src/Tickets/Dashboard.js +206 -0
- package/dist/src/Tickets/Fields.d.ts +133 -0
- package/dist/src/Tickets/Fields.js +44 -0
- package/dist/src/Tickets/Layouts.d.ts +63 -0
- package/dist/src/Tickets/Layouts.js +22 -0
- package/dist/src/Tickets/Routing.d.ts +290 -0
- package/dist/src/Tickets/Routing.js +87 -0
- package/dist/src/Tickets/Satisfaction.d.ts +31 -0
- package/dist/src/Tickets/Satisfaction.js +9 -0
- package/dist/src/Tickets/Security.d.ts +302 -0
- package/dist/src/Tickets/Security.js +107 -0
- package/dist/src/Tickets/SelfService.d.ts +255 -0
- package/dist/src/Tickets/SelfService.js +56 -0
- package/dist/src/Tickets/Sla.d.ts +253 -0
- package/dist/src/Tickets/Sla.js +73 -0
- package/dist/src/Tickets/Task.d.ts +122 -0
- package/dist/src/Tickets/Task.js +17 -0
- package/dist/src/Tickets/Ticket.d.ts +133 -0
- package/dist/src/Tickets/Ticket.js +2 -0
- package/dist/src/Tickets/Views.d.ts +77 -0
- package/dist/src/Tickets/Views.js +23 -0
- package/dist/src/Tickets/Workflow.d.ts +109 -0
- package/dist/src/Tickets/Workflow.js +44 -0
- package/dist/src/Tickets/index.d.ts +20 -0
- package/dist/src/Tickets/index.js +36 -0
- package/dist/src/Users/Signature.d.ts +74 -0
- package/dist/src/Users/Signature.js +2 -0
- package/dist/src/Users/UserActivitySummary.d.ts +5 -0
- package/dist/src/Users/UserActivitySummary.js +2 -0
- package/dist/src/Users/UserProfile.d.ts +97 -0
- package/dist/src/Users/UserProfile.js +5 -0
- package/dist/src/Users/UserTrii.d.ts +102 -0
- package/dist/src/Users/UserTrii.js +10 -0
- package/dist/src/Users/UserType.d.ts +10 -0
- package/dist/src/Users/UserType.js +13 -0
- package/dist/src/Users/index.d.ts +5 -0
- package/dist/src/Users/index.js +21 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/index.js +56 -0
- package/package.json +12 -12
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export interface Template {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
channelId?: string;
|
|
5
|
+
enabled: boolean | true;
|
|
6
|
+
name?: string;
|
|
7
|
+
namespace?: string;
|
|
8
|
+
language?: string;
|
|
9
|
+
category?: string;
|
|
10
|
+
contentSid?: string;
|
|
11
|
+
body: string;
|
|
12
|
+
buttons?: TemplateButton[];
|
|
13
|
+
header: TemplateHeader;
|
|
14
|
+
footer: string;
|
|
15
|
+
add_security_recommendation?: boolean;
|
|
16
|
+
code_expiration_minutes?: number;
|
|
17
|
+
message_send_ttl_seconds?: number;
|
|
18
|
+
varsBody?: TemplateVar[];
|
|
19
|
+
varsHeader?: TemplateVar[];
|
|
20
|
+
varsFooter?: TemplateVar[];
|
|
21
|
+
varsButtons?: TemplateVarButton[];
|
|
22
|
+
status: TemplateStatus;
|
|
23
|
+
rejectedReason: string;
|
|
24
|
+
timestamp?: Date;
|
|
25
|
+
/**lista de id de grupos */
|
|
26
|
+
allowGroups?: string[];
|
|
27
|
+
/**lista de id de usuarios */
|
|
28
|
+
allowUsers?: string[];
|
|
29
|
+
/**Usar en modulo Conversations */
|
|
30
|
+
allowInConversations?: boolean | true;
|
|
31
|
+
/**Usar en modulo Marketing */
|
|
32
|
+
allowInMarketing?: boolean | true;
|
|
33
|
+
}
|
|
34
|
+
export declare enum TemplateStatus {
|
|
35
|
+
PENDING = 0,
|
|
36
|
+
APPROVED = 1,
|
|
37
|
+
REJECTED = 2,
|
|
38
|
+
PROCESSING = 3
|
|
39
|
+
}
|
|
40
|
+
export interface TemplateHeader {
|
|
41
|
+
type: TemplateHeaderType;
|
|
42
|
+
text: string;
|
|
43
|
+
url: string;
|
|
44
|
+
mimeType: string;
|
|
45
|
+
filename: string;
|
|
46
|
+
locationName: string;
|
|
47
|
+
locationAddress: string;
|
|
48
|
+
}
|
|
49
|
+
export declare enum TemplateHeaderType {
|
|
50
|
+
TEXT = 0,
|
|
51
|
+
IMAGE = 1,
|
|
52
|
+
VIDEO = 2,
|
|
53
|
+
FILE = 3,
|
|
54
|
+
LOCATION = 4
|
|
55
|
+
}
|
|
56
|
+
export interface TemplateButton {
|
|
57
|
+
btnNumber: number;
|
|
58
|
+
text: string;
|
|
59
|
+
url: string;
|
|
60
|
+
payload: string;
|
|
61
|
+
type: TemplateButtonType;
|
|
62
|
+
package_name?: string;
|
|
63
|
+
signature_hash?: string;
|
|
64
|
+
autofill_text?: string;
|
|
65
|
+
zero_tap_terms_accepted?: boolean;
|
|
66
|
+
supported_apps?: TemplateButtonApp[];
|
|
67
|
+
}
|
|
68
|
+
export declare enum TemplateButtonType {
|
|
69
|
+
TEXT = 0,
|
|
70
|
+
URL = 1,
|
|
71
|
+
COPY_CODE = 2,
|
|
72
|
+
ONE_TAP = 3,
|
|
73
|
+
ZERO_TAP = 4
|
|
74
|
+
}
|
|
75
|
+
export interface TemplateButtonApp {
|
|
76
|
+
package_name: string;
|
|
77
|
+
signature_hash: string;
|
|
78
|
+
}
|
|
79
|
+
export interface TemplateVar {
|
|
80
|
+
name: string;
|
|
81
|
+
value: string;
|
|
82
|
+
}
|
|
83
|
+
export interface TemplateVarButton {
|
|
84
|
+
btnNumber: number;
|
|
85
|
+
vars: TemplateVar[];
|
|
86
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplateButtonType = exports.TemplateHeaderType = exports.TemplateStatus = void 0;
|
|
4
|
+
var TemplateStatus;
|
|
5
|
+
(function (TemplateStatus) {
|
|
6
|
+
TemplateStatus[TemplateStatus["PENDING"] = 0] = "PENDING";
|
|
7
|
+
TemplateStatus[TemplateStatus["APPROVED"] = 1] = "APPROVED";
|
|
8
|
+
TemplateStatus[TemplateStatus["REJECTED"] = 2] = "REJECTED";
|
|
9
|
+
TemplateStatus[TemplateStatus["PROCESSING"] = 3] = "PROCESSING";
|
|
10
|
+
})(TemplateStatus || (exports.TemplateStatus = TemplateStatus = {}));
|
|
11
|
+
var TemplateHeaderType;
|
|
12
|
+
(function (TemplateHeaderType) {
|
|
13
|
+
TemplateHeaderType[TemplateHeaderType["TEXT"] = 0] = "TEXT";
|
|
14
|
+
TemplateHeaderType[TemplateHeaderType["IMAGE"] = 1] = "IMAGE";
|
|
15
|
+
TemplateHeaderType[TemplateHeaderType["VIDEO"] = 2] = "VIDEO";
|
|
16
|
+
TemplateHeaderType[TemplateHeaderType["FILE"] = 3] = "FILE";
|
|
17
|
+
TemplateHeaderType[TemplateHeaderType["LOCATION"] = 4] = "LOCATION";
|
|
18
|
+
})(TemplateHeaderType || (exports.TemplateHeaderType = TemplateHeaderType = {}));
|
|
19
|
+
var TemplateButtonType;
|
|
20
|
+
(function (TemplateButtonType) {
|
|
21
|
+
TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
|
|
22
|
+
TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
|
|
23
|
+
TemplateButtonType[TemplateButtonType["COPY_CODE"] = 2] = "COPY_CODE";
|
|
24
|
+
TemplateButtonType[TemplateButtonType["ONE_TAP"] = 3] = "ONE_TAP";
|
|
25
|
+
TemplateButtonType[TemplateButtonType["ZERO_TAP"] = 4] = "ZERO_TAP";
|
|
26
|
+
})(TemplateButtonType || (exports.TemplateButtonType = TemplateButtonType = {}));
|
|
@@ -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("./Message"), exports);
|
|
18
|
+
__exportStar(require("./MediaFile"), exports);
|
|
19
|
+
__exportStar(require("./Template"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface INotification {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
isRead: Boolean;
|
|
7
|
+
task?: NotificationTask;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface NotificationTask {
|
|
11
|
+
taskId: string;
|
|
12
|
+
taskStatus: NotificationTaskStatus;
|
|
13
|
+
}
|
|
14
|
+
export declare enum NotificationTaskStatus {
|
|
15
|
+
QUEUED = 0,
|
|
16
|
+
RUNNING = 1,
|
|
17
|
+
FINISHED = 2,
|
|
18
|
+
ERROR = 3
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTaskStatus = void 0;
|
|
4
|
+
var NotificationTaskStatus;
|
|
5
|
+
(function (NotificationTaskStatus) {
|
|
6
|
+
NotificationTaskStatus[NotificationTaskStatus["QUEUED"] = 0] = "QUEUED";
|
|
7
|
+
NotificationTaskStatus[NotificationTaskStatus["RUNNING"] = 1] = "RUNNING";
|
|
8
|
+
NotificationTaskStatus[NotificationTaskStatus["FINISHED"] = 2] = "FINISHED";
|
|
9
|
+
NotificationTaskStatus[NotificationTaskStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
+
})(NotificationTaskStatus || (exports.NotificationTaskStatus = NotificationTaskStatus = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface IUserNotificationsConfig {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
conversations: UserConfig_Conversations;
|
|
6
|
+
chat: UserConfig_Chat;
|
|
7
|
+
calendar: UserConfig_Calendar;
|
|
8
|
+
tickets: UserConfig_Tickets;
|
|
9
|
+
}
|
|
10
|
+
export declare class UserConfig_Conversations {
|
|
11
|
+
newConversation: UserConfig_SendTo;
|
|
12
|
+
transferIn: UserConfig_SendTo;
|
|
13
|
+
newMessage: UserConfig_SendTo;
|
|
14
|
+
responseTimeOut: UserConfig_SendTo;
|
|
15
|
+
reminders: UserConfig_SendTo;
|
|
16
|
+
}
|
|
17
|
+
export declare class UserConfig_Chat {
|
|
18
|
+
reminders: UserConfig_SendTo;
|
|
19
|
+
}
|
|
20
|
+
export declare class UserConfig_Calendar {
|
|
21
|
+
eventReminder: UserConfig_SendTo;
|
|
22
|
+
}
|
|
23
|
+
export declare class UserConfig_Tickets {
|
|
24
|
+
newTicketAssigned: UserConfig_SendTo;
|
|
25
|
+
transferIn: UserConfig_SendTo;
|
|
26
|
+
newContactMessage: UserConfig_SendTo;
|
|
27
|
+
firstResponseTimeOut: UserConfig_SendTo;
|
|
28
|
+
resolutionTimeOut: UserConfig_SendTo;
|
|
29
|
+
}
|
|
30
|
+
export declare class UserConfig_SendTo {
|
|
31
|
+
email: boolean;
|
|
32
|
+
push: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserConfig_SendTo = exports.UserConfig_Tickets = exports.UserConfig_Calendar = exports.UserConfig_Chat = exports.UserConfig_Conversations = void 0;
|
|
4
|
+
class UserConfig_Conversations {
|
|
5
|
+
}
|
|
6
|
+
exports.UserConfig_Conversations = UserConfig_Conversations;
|
|
7
|
+
class UserConfig_Chat {
|
|
8
|
+
}
|
|
9
|
+
exports.UserConfig_Chat = UserConfig_Chat;
|
|
10
|
+
class UserConfig_Calendar {
|
|
11
|
+
}
|
|
12
|
+
exports.UserConfig_Calendar = UserConfig_Calendar;
|
|
13
|
+
class UserConfig_Tickets {
|
|
14
|
+
}
|
|
15
|
+
exports.UserConfig_Tickets = UserConfig_Tickets;
|
|
16
|
+
class UserConfig_SendTo {
|
|
17
|
+
}
|
|
18
|
+
exports.UserConfig_SendTo = UserConfig_SendTo;
|
|
@@ -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("./Notification"), exports);
|
|
18
|
+
__exportStar(require("./UserNotificationsConfig"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IHoliday {
|
|
2
|
+
id: string | null;
|
|
3
|
+
description: string | null;
|
|
4
|
+
datetimeStart: Date | null;
|
|
5
|
+
datetimeEnd: Date | null;
|
|
6
|
+
}
|
|
7
|
+
export interface ITimeRange {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
monday: boolean;
|
|
11
|
+
tuesday: boolean;
|
|
12
|
+
wednesday: boolean;
|
|
13
|
+
thursday: boolean;
|
|
14
|
+
friday: boolean;
|
|
15
|
+
saturday: boolean;
|
|
16
|
+
sunday: boolean;
|
|
17
|
+
start: string | null;
|
|
18
|
+
end: string | null;
|
|
19
|
+
startSeconds: number;
|
|
20
|
+
endSeconds: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ISchedule {
|
|
23
|
+
id: string | null;
|
|
24
|
+
spaceId: string | null;
|
|
25
|
+
name: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
timeRanges: ITimeRange[];
|
|
28
|
+
holidays: IHoliday[] | null;
|
|
29
|
+
createdAt?: Date | null;
|
|
30
|
+
updatedAt?: Date | null;
|
|
31
|
+
deletedAt?: Date | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Schedules';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./Schedules"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as API from './API/index';
|
|
2
|
+
export * as Channels from './Channels/index';
|
|
3
|
+
export * as Messages from './Messages/index';
|
|
4
|
+
export * as Notifications from './Notifications/index';
|
|
5
|
+
export * as Schedules from './Schedules/index';
|
|
6
|
+
export * as QueueEvent from './EventsQueue/index';
|
|
@@ -0,0 +1,42 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.QueueEvent = exports.Schedules = exports.Notifications = exports.Messages = exports.Channels = exports.API = void 0;
|
|
37
|
+
exports.API = __importStar(require("./API/index"));
|
|
38
|
+
exports.Channels = __importStar(require("./Channels/index"));
|
|
39
|
+
exports.Messages = __importStar(require("./Messages/index"));
|
|
40
|
+
exports.Notifications = __importStar(require("./Notifications/index"));
|
|
41
|
+
exports.Schedules = __importStar(require("./Schedules/index"));
|
|
42
|
+
exports.QueueEvent = __importStar(require("./EventsQueue/index"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UserInfo } from "../Users/UserTrii";
|
|
2
|
+
export interface IFile {
|
|
3
|
+
id: string;
|
|
4
|
+
spaceId: string;
|
|
5
|
+
contactId: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
/** in bytes */
|
|
9
|
+
size: number;
|
|
10
|
+
url: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
createdBy: UserInfo;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
deletedAt?: Date;
|
|
16
|
+
deletedBy?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IImportResult {
|
|
2
|
+
message: string;
|
|
3
|
+
websocketKey: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IImportStatus {
|
|
6
|
+
spaceId: string;
|
|
7
|
+
websocketKey: string;
|
|
8
|
+
totalContacts: number;
|
|
9
|
+
imported: number;
|
|
10
|
+
updated: number;
|
|
11
|
+
errors: number;
|
|
12
|
+
totalBusinesses: number;
|
|
13
|
+
importedBusinesses: number;
|
|
14
|
+
updatedBusinesses: number;
|
|
15
|
+
errorsBusinesses: number;
|
|
16
|
+
finished: boolean;
|
|
17
|
+
errorExcelUrl?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UserInfo } from "../Users/UserTrii";
|
|
2
|
+
export interface INote {
|
|
3
|
+
id: string;
|
|
4
|
+
spaceId: string;
|
|
5
|
+
contactId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
text: string;
|
|
8
|
+
isEdited: boolean;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
createdBy: UserInfo;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
updatedBy?: string;
|
|
13
|
+
deletedAt?: Date;
|
|
14
|
+
deletedBy?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface Relationship {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
order: number;
|
|
6
|
+
sourceContactFieldKey: string;
|
|
7
|
+
sourceDataTransformation: string;
|
|
8
|
+
searchContactFieldKey: string;
|
|
9
|
+
searchCondition: SearchCondition;
|
|
10
|
+
sourceListFieldKey: string;
|
|
11
|
+
searchListFieldKey: string;
|
|
12
|
+
createdAt?: Date | null;
|
|
13
|
+
createdBy?: string | null;
|
|
14
|
+
updatedAt?: Date | null;
|
|
15
|
+
updatedBy?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export declare enum SearchCondition {
|
|
18
|
+
Equals = 0,
|
|
19
|
+
NotEquals = 1,
|
|
20
|
+
Contains = 2,
|
|
21
|
+
NotContains = 3,
|
|
22
|
+
StartsWith = 4,
|
|
23
|
+
EndsWith = 5,
|
|
24
|
+
GreaterThan = 6,
|
|
25
|
+
LessThan = 7,
|
|
26
|
+
GreaterThanOrEqual = 8,
|
|
27
|
+
LessThanOrEqual = 9
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchCondition = void 0;
|
|
4
|
+
var SearchCondition;
|
|
5
|
+
(function (SearchCondition) {
|
|
6
|
+
SearchCondition[SearchCondition["Equals"] = 0] = "Equals";
|
|
7
|
+
SearchCondition[SearchCondition["NotEquals"] = 1] = "NotEquals";
|
|
8
|
+
SearchCondition[SearchCondition["Contains"] = 2] = "Contains";
|
|
9
|
+
SearchCondition[SearchCondition["NotContains"] = 3] = "NotContains";
|
|
10
|
+
SearchCondition[SearchCondition["StartsWith"] = 4] = "StartsWith";
|
|
11
|
+
SearchCondition[SearchCondition["EndsWith"] = 5] = "EndsWith";
|
|
12
|
+
SearchCondition[SearchCondition["GreaterThan"] = 6] = "GreaterThan";
|
|
13
|
+
SearchCondition[SearchCondition["LessThan"] = 7] = "LessThan";
|
|
14
|
+
SearchCondition[SearchCondition["GreaterThanOrEqual"] = 8] = "GreaterThanOrEqual";
|
|
15
|
+
SearchCondition[SearchCondition["LessThanOrEqual"] = 9] = "LessThanOrEqual";
|
|
16
|
+
})(SearchCondition || (exports.SearchCondition = SearchCondition = {}));
|