tnzapi-ts 3.0.0
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/LICENSE +21 -0
- package/README.md +2203 -0
- package/dist/Api/Actions/AbortApi.d.ts +17 -0
- package/dist/Api/Actions/AbortApi.js +78 -0
- package/dist/Api/Actions/PacingApi.d.ts +17 -0
- package/dist/Api/Actions/PacingApi.js +84 -0
- package/dist/Api/Actions/RescheduleApi.d.ts +17 -0
- package/dist/Api/Actions/RescheduleApi.js +84 -0
- package/dist/Api/Actions/ResubmitApi.d.ts +17 -0
- package/dist/Api/Actions/ResubmitApi.js +86 -0
- package/dist/Api/Actions/dtos/AbortApiRequestDTO.d.ts +4 -0
- package/dist/Api/Actions/dtos/AbortApiRequestDTO.js +14 -0
- package/dist/Api/Actions/dtos/ActionApiResponseDTO.d.ts +8 -0
- package/dist/Api/Actions/dtos/ActionApiResponseDTO.js +14 -0
- package/dist/Api/Actions/dtos/ActionBaseRequestDTO.d.ts +5 -0
- package/dist/Api/Actions/dtos/ActionBaseRequestDTO.js +7 -0
- package/dist/Api/Actions/dtos/PacingApiRequestDTO.d.ts +5 -0
- package/dist/Api/Actions/dtos/PacingApiRequestDTO.js +15 -0
- package/dist/Api/Actions/dtos/RescheduleApiRequestDTO.d.ts +5 -0
- package/dist/Api/Actions/dtos/RescheduleApiRequestDTO.js +14 -0
- package/dist/Api/Actions/dtos/ResubmitApiRequestDTO.d.ts +5 -0
- package/dist/Api/Actions/dtos/ResubmitApiRequestDTO.js +14 -0
- package/dist/Api/Actions/dtos/index.d.ts +6 -0
- package/dist/Api/Actions/dtos/index.js +22 -0
- package/dist/Api/Actions/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Actions/helpers/MapApiResponse.js +16 -0
- package/dist/Api/Actions/helpers/index.d.ts +1 -0
- package/dist/Api/Actions/helpers/index.js +17 -0
- package/dist/Api/Actions/index.d.ts +12 -0
- package/dist/Api/Actions/index.js +17 -0
- package/dist/Api/Actions/interfaces/IActionArgs.d.ts +19 -0
- package/dist/Api/Actions/interfaces/IActionArgs.js +2 -0
- package/dist/Api/Actions/interfaces/index.d.ts +1 -0
- package/dist/Api/Actions/interfaces/index.js +17 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupCreateApi.d.ts +14 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupCreateApi.js +84 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupDeleteApi.d.ts +14 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupDeleteApi.js +84 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupDetailApi.d.ts +14 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupDetailApi.js +84 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupListApi.d.ts +14 -0
- package/dist/Api/Addressbook/ContactGroups/ContactGroupListApi.js +79 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/BaseListApiRequestDTO.d.ts +4 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/BaseListApiRequestDTO.js +7 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupApiRequestDTO.d.ts +9 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupApiRequestDTO.js +19 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupApiResponseDTO.d.ts +8 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupBaseRequestDTO.d.ts +6 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupBaseRequestDTO.js +7 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupListApiRequestDTO.d.ts +4 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupListApiRequestDTO.js +14 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupListApiResponseDTO.d.ts +12 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/ContactGroupListApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/index.d.ts +6 -0
- package/dist/Api/Addressbook/ContactGroups/dtos/index.js +22 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/MapApiResponse.js +24 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/MapListApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/MapListApiResponse.js +28 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/index.d.ts +2 -0
- package/dist/Api/Addressbook/ContactGroups/helpers/index.js +18 -0
- package/dist/Api/Addressbook/ContactGroups/index.d.ts +11 -0
- package/dist/Api/Addressbook/ContactGroups/index.js +21 -0
- package/dist/Api/Addressbook/Contacts/ContactCreateApi.d.ts +17 -0
- package/dist/Api/Addressbook/Contacts/ContactCreateApi.js +76 -0
- package/dist/Api/Addressbook/Contacts/ContactDeleteApi.d.ts +17 -0
- package/dist/Api/Addressbook/Contacts/ContactDeleteApi.js +82 -0
- package/dist/Api/Addressbook/Contacts/ContactDetailApi.d.ts +17 -0
- package/dist/Api/Addressbook/Contacts/ContactDetailApi.js +78 -0
- package/dist/Api/Addressbook/Contacts/ContactListApi.d.ts +17 -0
- package/dist/Api/Addressbook/Contacts/ContactListApi.js +78 -0
- package/dist/Api/Addressbook/Contacts/ContactUpdateApi.d.ts +17 -0
- package/dist/Api/Addressbook/Contacts/ContactUpdateApi.js +81 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactApiRequestDTO.d.ts +7 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactApiRequestDTO.js +22 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactApiResponseDTO.d.ts +6 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactListApiRequestDTO.d.ts +4 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactListApiRequestDTO.js +17 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactListApiResponseDTO.d.ts +10 -0
- package/dist/Api/Addressbook/Contacts/dtos/ContactListApiResponseDTO.js +19 -0
- package/dist/Api/Addressbook/Contacts/dtos/index.d.ts +4 -0
- package/dist/Api/Addressbook/Contacts/dtos/index.js +20 -0
- package/dist/Api/Addressbook/Contacts/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/Contacts/helpers/MapApiResponse.js +20 -0
- package/dist/Api/Addressbook/Contacts/helpers/MapListApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/Contacts/helpers/MapListApiResponse.js +16 -0
- package/dist/Api/Addressbook/Contacts/helpers/index.d.ts +2 -0
- package/dist/Api/Addressbook/Contacts/helpers/index.js +18 -0
- package/dist/Api/Addressbook/Contacts/index.d.ts +12 -0
- package/dist/Api/Addressbook/Contacts/index.js +24 -0
- package/dist/Api/Addressbook/Contacts/models/ContactModel.d.ts +37 -0
- package/dist/Api/Addressbook/Contacts/models/ContactModel.js +11 -0
- package/dist/Api/Addressbook/Contacts/models/index.d.ts +1 -0
- package/dist/Api/Addressbook/Contacts/models/index.js +17 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactCreateApi.d.ts +14 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactCreateApi.js +84 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactDeleteApi.d.ts +14 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactDeleteApi.js +84 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactDetailApi.d.ts +14 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactDetailApi.js +84 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactListApi.d.ts +14 -0
- package/dist/Api/Addressbook/GroupContacts/GroupContactListApi.js +83 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/BaseListApiRequestDTO.d.ts +7 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/BaseListApiRequestDTO.js +7 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactApiRequestDTO.d.ts +7 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactApiRequestDTO.js +14 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactApiResponseDTO.d.ts +8 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactBaseRequestDTO.d.ts +7 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactBaseRequestDTO.js +7 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactListApiRequestDTO.d.ts +4 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactListApiRequestDTO.js +14 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactListApiResponseDTO.d.ts +12 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/GroupContactListApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/index.d.ts +6 -0
- package/dist/Api/Addressbook/GroupContacts/dtos/index.js +22 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/MapApiResponse.js +24 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/MapListApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/MapListApiResponse.js +28 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/index.d.ts +2 -0
- package/dist/Api/Addressbook/GroupContacts/helpers/index.js +18 -0
- package/dist/Api/Addressbook/GroupContacts/index.d.ts +11 -0
- package/dist/Api/Addressbook/GroupContacts/index.js +21 -0
- package/dist/Api/Addressbook/Groups/GroupCreateApi.d.ts +17 -0
- package/dist/Api/Addressbook/Groups/GroupCreateApi.js +87 -0
- package/dist/Api/Addressbook/Groups/GroupDeleteApi.d.ts +17 -0
- package/dist/Api/Addressbook/Groups/GroupDeleteApi.js +78 -0
- package/dist/Api/Addressbook/Groups/GroupDetailApi.d.ts +17 -0
- package/dist/Api/Addressbook/Groups/GroupDetailApi.js +78 -0
- package/dist/Api/Addressbook/Groups/GroupListApi.d.ts +17 -0
- package/dist/Api/Addressbook/Groups/GroupListApi.js +78 -0
- package/dist/Api/Addressbook/Groups/GroupUpdateApi.d.ts +17 -0
- package/dist/Api/Addressbook/Groups/GroupUpdateApi.js +89 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupApiRequestDTO.d.ts +5 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupApiRequestDTO.js +22 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupApiResponseDTO.d.ts +6 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupListApiRequestDTO.d.ts +4 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupListApiRequestDTO.js +14 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupListApiResponseDTO.d.ts +10 -0
- package/dist/Api/Addressbook/Groups/dtos/GroupListApiResponseDTO.js +14 -0
- package/dist/Api/Addressbook/Groups/dtos/index.d.ts +4 -0
- package/dist/Api/Addressbook/Groups/dtos/index.js +20 -0
- package/dist/Api/Addressbook/Groups/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/Groups/helpers/MapApiResponse.js +20 -0
- package/dist/Api/Addressbook/Groups/helpers/MapListApiResponse.d.ts +3 -0
- package/dist/Api/Addressbook/Groups/helpers/MapListApiResponse.js +24 -0
- package/dist/Api/Addressbook/Groups/helpers/index.d.ts +2 -0
- package/dist/Api/Addressbook/Groups/helpers/index.js +18 -0
- package/dist/Api/Addressbook/Groups/index.d.ts +12 -0
- package/dist/Api/Addressbook/Groups/index.js +24 -0
- package/dist/Api/Addressbook/Groups/models/GroupModel.d.ts +14 -0
- package/dist/Api/Addressbook/Groups/models/GroupModel.js +17 -0
- package/dist/Api/Addressbook/Groups/models/index.d.ts +1 -0
- package/dist/Api/Addressbook/Groups/models/index.js +17 -0
- package/dist/Api/Addressbook/index.d.ts +12 -0
- package/dist/Api/Addressbook/index.js +17 -0
- package/dist/Api/Addressbook/interfaces/IContactArgs.d.ts +45 -0
- package/dist/Api/Addressbook/interfaces/IContactArgs.js +2 -0
- package/dist/Api/Addressbook/interfaces/IContactGroupArgs.d.ts +15 -0
- package/dist/Api/Addressbook/interfaces/IContactGroupArgs.js +2 -0
- package/dist/Api/Addressbook/interfaces/IGroupArgs.d.ts +24 -0
- package/dist/Api/Addressbook/interfaces/IGroupArgs.js +2 -0
- package/dist/Api/Addressbook/interfaces/IGroupContactArgs.d.ts +16 -0
- package/dist/Api/Addressbook/interfaces/IGroupContactArgs.js +2 -0
- package/dist/Api/Addressbook/interfaces/index.d.ts +4 -0
- package/dist/Api/Addressbook/interfaces/index.js +20 -0
- package/dist/Api/Messaging/BaseMessagingApi.d.ts +28 -0
- package/dist/Api/Messaging/BaseMessagingApi.js +152 -0
- package/dist/Api/Messaging/EmailApi.d.ts +21 -0
- package/dist/Api/Messaging/EmailApi.js +47 -0
- package/dist/Api/Messaging/FaxApi.d.ts +18 -0
- package/dist/Api/Messaging/FaxApi.js +47 -0
- package/dist/Api/Messaging/RCSApi.d.ts +21 -0
- package/dist/Api/Messaging/RCSApi.js +44 -0
- package/dist/Api/Messaging/SMSApi.d.ts +21 -0
- package/dist/Api/Messaging/SMSApi.js +44 -0
- package/dist/Api/Messaging/TTSApi.d.ts +22 -0
- package/dist/Api/Messaging/TTSApi.js +67 -0
- package/dist/Api/Messaging/VoiceApi.d.ts +24 -0
- package/dist/Api/Messaging/VoiceApi.js +95 -0
- package/dist/Api/Messaging/WhatsAppApi.d.ts +21 -0
- package/dist/Api/Messaging/WhatsAppApi.js +44 -0
- package/dist/Api/Messaging/WorkflowApi.d.ts +21 -0
- package/dist/Api/Messaging/WorkflowApi.js +41 -0
- package/dist/Api/Messaging/dtos/EmailApiRequestDTO.d.ts +13 -0
- package/dist/Api/Messaging/dtos/EmailApiRequestDTO.js +15 -0
- package/dist/Api/Messaging/dtos/FaxApiRequestDTO.d.ts +13 -0
- package/dist/Api/Messaging/dtos/FaxApiRequestDTO.js +15 -0
- package/dist/Api/Messaging/dtos/MessagingApiSuccessResponseDTO.d.ts +7 -0
- package/dist/Api/Messaging/dtos/MessagingApiSuccessResponseDTO.js +14 -0
- package/dist/Api/Messaging/dtos/MessagingBaseRequestDTO.d.ts +33 -0
- package/dist/Api/Messaging/dtos/MessagingBaseRequestDTO.js +9 -0
- package/dist/Api/Messaging/dtos/RCSApiRequestDTO.d.ts +9 -0
- package/dist/Api/Messaging/dtos/RCSApiRequestDTO.js +15 -0
- package/dist/Api/Messaging/dtos/SMSApiRequestDTO.d.ts +11 -0
- package/dist/Api/Messaging/dtos/SMSApiRequestDTO.js +16 -0
- package/dist/Api/Messaging/dtos/TTSApiRequestDTO.d.ts +20 -0
- package/dist/Api/Messaging/dtos/TTSApiRequestDTO.js +18 -0
- package/dist/Api/Messaging/dtos/VoiceApiRequestDTO.d.ts +20 -0
- package/dist/Api/Messaging/dtos/VoiceApiRequestDTO.js +36 -0
- package/dist/Api/Messaging/dtos/WhatsAppApiRequestDTO.d.ts +8 -0
- package/dist/Api/Messaging/dtos/WhatsAppApiRequestDTO.js +15 -0
- package/dist/Api/Messaging/dtos/WorkflowApiRequestDTO.d.ts +5 -0
- package/dist/Api/Messaging/dtos/WorkflowApiRequestDTO.js +14 -0
- package/dist/Api/Messaging/dtos/index.d.ts +10 -0
- package/dist/Api/Messaging/dtos/index.js +26 -0
- package/dist/Api/Messaging/helpers/AddRecipient.d.ts +3 -0
- package/dist/Api/Messaging/helpers/AddRecipient.js +19 -0
- package/dist/Api/Messaging/helpers/MapApiResponse.d.ts +3 -0
- package/dist/Api/Messaging/helpers/MapApiResponse.js +17 -0
- package/dist/Api/Messaging/helpers/index.d.ts +2 -0
- package/dist/Api/Messaging/helpers/index.js +18 -0
- package/dist/Api/Messaging/index.d.ts +20 -0
- package/dist/Api/Messaging/index.js +25 -0
- package/dist/Api/Messaging/interfaces/IEmailArgs.d.ts +50 -0
- package/dist/Api/Messaging/interfaces/IEmailArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/IFaxArgs.d.ts +49 -0
- package/dist/Api/Messaging/interfaces/IFaxArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/IMessagingDestination.d.ts +9 -0
- package/dist/Api/Messaging/interfaces/IMessagingDestination.js +2 -0
- package/dist/Api/Messaging/interfaces/IRCSArgs.d.ts +43 -0
- package/dist/Api/Messaging/interfaces/IRCSArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/ISMSArgs.d.ts +48 -0
- package/dist/Api/Messaging/interfaces/ISMSArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/ITTSArgs.d.ts +61 -0
- package/dist/Api/Messaging/interfaces/ITTSArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/IVoiceArgs.d.ts +67 -0
- package/dist/Api/Messaging/interfaces/IVoiceArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/IWhatsAppArgs.d.ts +44 -0
- package/dist/Api/Messaging/interfaces/IWhatsAppArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/IWorkflowArgs.d.ts +41 -0
- package/dist/Api/Messaging/interfaces/IWorkflowArgs.js +2 -0
- package/dist/Api/Messaging/interfaces/index.d.ts +9 -0
- package/dist/Api/Messaging/interfaces/index.js +25 -0
- package/dist/Api/Messaging/models/CommonModel.d.ts +17 -0
- package/dist/Api/Messaging/models/CommonModel.js +6 -0
- package/dist/Api/Messaging/models/EmailModel.d.ts +20 -0
- package/dist/Api/Messaging/models/EmailModel.js +17 -0
- package/dist/Api/Messaging/models/FaxModel.d.ts +20 -0
- package/dist/Api/Messaging/models/FaxModel.js +17 -0
- package/dist/Api/Messaging/models/IMessagingModel.d.ts +6 -0
- package/dist/Api/Messaging/models/IMessagingModel.js +2 -0
- package/dist/Api/Messaging/models/RCSModel.d.ts +16 -0
- package/dist/Api/Messaging/models/RCSModel.js +17 -0
- package/dist/Api/Messaging/models/SMSModel.d.ts +18 -0
- package/dist/Api/Messaging/models/SMSModel.js +17 -0
- package/dist/Api/Messaging/models/TTSModel.d.ts +28 -0
- package/dist/Api/Messaging/models/TTSModel.js +22 -0
- package/dist/Api/Messaging/models/VoiceModel.d.ts +31 -0
- package/dist/Api/Messaging/models/VoiceModel.js +23 -0
- package/dist/Api/Messaging/models/WhatsAppModel.d.ts +15 -0
- package/dist/Api/Messaging/models/WhatsAppModel.js +17 -0
- package/dist/Api/Messaging/models/WorkflowModel.d.ts +14 -0
- package/dist/Api/Messaging/models/WorkflowModel.js +17 -0
- package/dist/Api/Messaging/models/index.d.ts +10 -0
- package/dist/Api/Messaging/models/index.js +26 -0
- package/dist/Api/OptOut/OptOutCreateApi.d.ts +17 -0
- package/dist/Api/OptOut/OptOutCreateApi.js +49 -0
- package/dist/Api/OptOut/OptOutDeleteApi.d.ts +17 -0
- package/dist/Api/OptOut/OptOutDeleteApi.js +47 -0
- package/dist/Api/OptOut/OptOutDetailApi.d.ts +17 -0
- package/dist/Api/OptOut/OptOutDetailApi.js +47 -0
- package/dist/Api/OptOut/OptOutListApi.d.ts +17 -0
- package/dist/Api/OptOut/OptOutListApi.js +62 -0
- package/dist/Api/OptOut/dtos/OptOutApiRequestDTO.d.ts +4 -0
- package/dist/Api/OptOut/dtos/OptOutApiRequestDTO.js +14 -0
- package/dist/Api/OptOut/dtos/OptOutApiResponseDTO.d.ts +20 -0
- package/dist/Api/OptOut/dtos/OptOutApiResponseDTO.js +14 -0
- package/dist/Api/OptOut/dtos/OptOutListApiRequestDTO.d.ts +8 -0
- package/dist/Api/OptOut/dtos/OptOutListApiRequestDTO.js +14 -0
- package/dist/Api/OptOut/dtos/OptOutListApiResponseDTO.d.ts +10 -0
- package/dist/Api/OptOut/dtos/OptOutListApiResponseDTO.js +17 -0
- package/dist/Api/OptOut/dtos/index.d.ts +4 -0
- package/dist/Api/OptOut/dtos/index.js +20 -0
- package/dist/Api/OptOut/index.d.ts +11 -0
- package/dist/Api/OptOut/index.js +21 -0
- package/dist/Api/OptOut/interfaces/IOptOutArgs.d.ts +22 -0
- package/dist/Api/OptOut/interfaces/IOptOutArgs.js +2 -0
- package/dist/Api/OptOut/interfaces/index.d.ts +1 -0
- package/dist/Api/OptOut/interfaces/index.js +17 -0
- package/dist/Api/OptOut/models/OptOutModel.d.ts +11 -0
- package/dist/Api/OptOut/models/OptOutModel.js +12 -0
- package/dist/Api/OptOut/models/index.d.ts +1 -0
- package/dist/Api/OptOut/models/index.js +17 -0
- package/dist/Api/Reports/SMSReceivedApi.d.ts +18 -0
- package/dist/Api/Reports/SMSReceivedApi.js +92 -0
- package/dist/Api/Reports/SMSReplyApi.d.ts +18 -0
- package/dist/Api/Reports/SMSReplyApi.js +62 -0
- package/dist/Api/Reports/StatusApi.d.ts +18 -0
- package/dist/Api/Reports/StatusApi.js +76 -0
- package/dist/Api/Reports/dtos/RecipientDTO.d.ts +24 -0
- package/dist/Api/Reports/dtos/RecipientDTO.js +12 -0
- package/dist/Api/Reports/dtos/SMSReceivedApiRequestDTO.d.ts +7 -0
- package/dist/Api/Reports/dtos/SMSReceivedApiRequestDTO.js +17 -0
- package/dist/Api/Reports/dtos/SMSReceivedApiResponseDTO.d.ts +6 -0
- package/dist/Api/Reports/dtos/SMSReceivedApiResponseDTO.js +15 -0
- package/dist/Api/Reports/dtos/SMSReceivedDTO.d.ts +14 -0
- package/dist/Api/Reports/dtos/SMSReceivedDTO.js +12 -0
- package/dist/Api/Reports/dtos/SMSReplyApiRequestDTO.d.ts +5 -0
- package/dist/Api/Reports/dtos/SMSReplyApiRequestDTO.js +14 -0
- package/dist/Api/Reports/dtos/SMSReplyApiResponseDTO.d.ts +23 -0
- package/dist/Api/Reports/dtos/SMSReplyApiResponseDTO.js +24 -0
- package/dist/Api/Reports/dtos/SMSReplyRecipientDTO.d.ts +6 -0
- package/dist/Api/Reports/dtos/SMSReplyRecipientDTO.js +19 -0
- package/dist/Api/Reports/dtos/SMSReplyRecipientSMSReplyDTO.d.ts +9 -0
- package/dist/Api/Reports/dtos/SMSReplyRecipientSMSReplyDTO.js +12 -0
- package/dist/Api/Reports/dtos/StatusApiRequestDTO.d.ts +6 -0
- package/dist/Api/Reports/dtos/StatusApiRequestDTO.js +14 -0
- package/dist/Api/Reports/dtos/StatusApiResponseDTO.d.ts +27 -0
- package/dist/Api/Reports/dtos/StatusApiResponseDTO.js +15 -0
- package/dist/Api/Reports/dtos/index.d.ts +10 -0
- package/dist/Api/Reports/dtos/index.js +26 -0
- package/dist/Api/Reports/index.d.ts +10 -0
- package/dist/Api/Reports/index.js +15 -0
- package/dist/Api/Reports/interfaces/IReportsArgs.d.ts +18 -0
- package/dist/Api/Reports/interfaces/IReportsArgs.js +2 -0
- package/dist/Api/Reports/interfaces/index.d.ts +1 -0
- package/dist/Api/Reports/interfaces/index.js +17 -0
- package/dist/Common/IHttpClient.d.ts +6 -0
- package/dist/Common/IHttpClient.js +2 -0
- package/dist/Common/NodeHttpClient.d.ts +10 -0
- package/dist/Common/NodeHttpClient.js +24 -0
- package/dist/Common/Result.d.ts +6 -0
- package/dist/Common/Result.js +13 -0
- package/dist/Common/ValidationResult.d.ts +4 -0
- package/dist/Common/ValidationResult.js +2 -0
- package/dist/Common/dtos/CommonApiRequestDTO.d.ts +3 -0
- package/dist/Common/dtos/CommonApiRequestDTO.js +7 -0
- package/dist/Common/dtos/CommonApiResponseDTO.d.ts +4 -0
- package/dist/Common/dtos/CommonApiResponseDTO.js +10 -0
- package/dist/Common/dtos/CommonListApiRequestDTO.d.ts +6 -0
- package/dist/Common/dtos/CommonListApiRequestDTO.js +12 -0
- package/dist/Common/dtos/CommonListApiResponseDTO.d.ts +8 -0
- package/dist/Common/dtos/CommonListApiResponseDTO.js +14 -0
- package/dist/Common/dtos/ErrorResponseDTO.d.ts +6 -0
- package/dist/Common/dtos/ErrorResponseDTO.js +15 -0
- package/dist/Common/dtos/index.d.ts +5 -0
- package/dist/Common/dtos/index.js +21 -0
- package/dist/Common/enums/MessagingEnums.d.ts +45 -0
- package/dist/Common/enums/MessagingEnums.js +56 -0
- package/dist/Common/index.d.ts +7 -0
- package/dist/Common/index.js +23 -0
- package/dist/Common/isSuccessResult.d.ts +1 -0
- package/dist/Common/isSuccessResult.js +9 -0
- package/dist/Functions/FileHandler.d.ts +6 -0
- package/dist/Functions/FileHandler.js +57 -0
- package/dist/Functions/HttpRequest.d.ts +10 -0
- package/dist/Functions/HttpRequest.js +156 -0
- package/dist/Functions/Mapper.d.ts +1 -0
- package/dist/Functions/Mapper.js +23 -0
- package/dist/Functions/UsefulStuff.d.ts +20 -0
- package/dist/Functions/UsefulStuff.js +136 -0
- package/dist/Functions/index.d.ts +5 -0
- package/dist/Functions/index.js +48 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +43 -0
- package/dist/interfaces.d.ts +4 -0
- package/dist/interfaces.js +2 -0
- package/package.json +47 -0
|
@@ -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("./AddRecipient"), exports);
|
|
18
|
+
__exportStar(require("./MapApiResponse"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EmailApi } from "./EmailApi";
|
|
2
|
+
import { SMSApi } from "./SMSApi";
|
|
3
|
+
import { FaxApi } from "./FaxApi";
|
|
4
|
+
import { TTSApi } from "./TTSApi";
|
|
5
|
+
import { VoiceApi } from "./VoiceApi";
|
|
6
|
+
import { WorkflowApi } from "./WorkflowApi";
|
|
7
|
+
import { WhatsAppApi } from "./WhatsAppApi";
|
|
8
|
+
import { RCSApi } from "./RCSApi";
|
|
9
|
+
import { ITNZAuthArgs } from "../../interfaces";
|
|
10
|
+
export declare class Messaging {
|
|
11
|
+
Email: EmailApi;
|
|
12
|
+
SMS: SMSApi;
|
|
13
|
+
Voice: VoiceApi;
|
|
14
|
+
Fax: FaxApi;
|
|
15
|
+
TTS: TTSApi;
|
|
16
|
+
Workflow: WorkflowApi;
|
|
17
|
+
WhatsApp: WhatsAppApi;
|
|
18
|
+
RCS: RCSApi;
|
|
19
|
+
constructor(auth: ITNZAuthArgs);
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Messaging = void 0;
|
|
4
|
+
const EmailApi_1 = require("./EmailApi");
|
|
5
|
+
const SMSApi_1 = require("./SMSApi");
|
|
6
|
+
const FaxApi_1 = require("./FaxApi");
|
|
7
|
+
const TTSApi_1 = require("./TTSApi");
|
|
8
|
+
const VoiceApi_1 = require("./VoiceApi");
|
|
9
|
+
const WorkflowApi_1 = require("./WorkflowApi");
|
|
10
|
+
const WhatsAppApi_1 = require("./WhatsAppApi");
|
|
11
|
+
const RCSApi_1 = require("./RCSApi");
|
|
12
|
+
class Messaging {
|
|
13
|
+
constructor(auth) {
|
|
14
|
+
const args = { ...auth, URL: auth.URL || '' };
|
|
15
|
+
this.Email = new EmailApi_1.EmailApi(args);
|
|
16
|
+
this.SMS = new SMSApi_1.SMSApi(args);
|
|
17
|
+
this.Fax = new FaxApi_1.FaxApi(args);
|
|
18
|
+
this.Voice = new VoiceApi_1.VoiceApi(args);
|
|
19
|
+
this.TTS = new TTSApi_1.TTSApi(args);
|
|
20
|
+
this.Workflow = new WorkflowApi_1.WorkflowApi(args);
|
|
21
|
+
this.WhatsApp = new WhatsAppApi_1.WhatsAppApi(args);
|
|
22
|
+
this.RCS = new RCSApi_1.RCSApi(args);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Messaging = Messaging;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IEmailDestination {
|
|
3
|
+
EmailAddress?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IEmailArgs {
|
|
23
|
+
Reference?: string;
|
|
24
|
+
EmailSubject: string;
|
|
25
|
+
MessagePlain?: string;
|
|
26
|
+
MessageHTML?: string;
|
|
27
|
+
TemplateID?: string;
|
|
28
|
+
SMTPFrom?: string;
|
|
29
|
+
From?: string;
|
|
30
|
+
FromEmail?: string;
|
|
31
|
+
CCEmail?: string;
|
|
32
|
+
BCCEmail?: string;
|
|
33
|
+
ReplyTo?: string;
|
|
34
|
+
Destinations?: IEmailDestination[];
|
|
35
|
+
EmailAddress?: string;
|
|
36
|
+
GroupID?: string;
|
|
37
|
+
ContactID?: string;
|
|
38
|
+
SendTime?: string;
|
|
39
|
+
Timezone?: string;
|
|
40
|
+
SubAccount?: string;
|
|
41
|
+
Department?: string;
|
|
42
|
+
ChargeCode?: string;
|
|
43
|
+
MessageID?: string;
|
|
44
|
+
ReportTo?: string;
|
|
45
|
+
WebhookCallbackURL?: string;
|
|
46
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
47
|
+
NotificationType?: NotificationType;
|
|
48
|
+
Mode?: 'Test';
|
|
49
|
+
Attachments?: string[];
|
|
50
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, FaxResolution } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IFaxDestination {
|
|
3
|
+
ToNumber?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IFaxArgs {
|
|
23
|
+
Reference?: string;
|
|
24
|
+
TemplateID?: string;
|
|
25
|
+
Resolution?: FaxResolution;
|
|
26
|
+
CallerID?: string;
|
|
27
|
+
CSID?: string;
|
|
28
|
+
WatermarkFolder?: string;
|
|
29
|
+
WatermarkFirstPage?: string;
|
|
30
|
+
WatermarkAllPages?: string;
|
|
31
|
+
RetryAttempts?: number;
|
|
32
|
+
RetryPeriod?: number;
|
|
33
|
+
Destinations?: IFaxDestination[];
|
|
34
|
+
ToNumber?: string;
|
|
35
|
+
GroupID?: string;
|
|
36
|
+
ContactID?: string;
|
|
37
|
+
SendTime?: string;
|
|
38
|
+
Timezone?: string;
|
|
39
|
+
SubAccount?: string;
|
|
40
|
+
Department?: string;
|
|
41
|
+
ChargeCode?: string;
|
|
42
|
+
MessageID?: string;
|
|
43
|
+
ReportTo?: string;
|
|
44
|
+
WebhookCallbackURL?: string;
|
|
45
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
46
|
+
NotificationType?: NotificationType;
|
|
47
|
+
Mode?: 'Test';
|
|
48
|
+
Attachments?: string[];
|
|
49
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ISMSDestination } from './ISMSArgs';
|
|
2
|
+
import { IEmailDestination } from './IEmailArgs';
|
|
3
|
+
import { IFaxDestination } from './IFaxArgs';
|
|
4
|
+
import { ITTSDestination } from './ITTSArgs';
|
|
5
|
+
import { IVoiceDestination } from './IVoiceArgs';
|
|
6
|
+
import { IWhatsAppDestination } from './IWhatsAppArgs';
|
|
7
|
+
import { IRCSDestination } from './IRCSArgs';
|
|
8
|
+
import { IWorkflowDestination } from './IWorkflowArgs';
|
|
9
|
+
export type IMessagingDestination = ISMSDestination | IEmailDestination | IFaxDestination | ITTSDestination | IVoiceDestination | IWhatsAppDestination | IRCSDestination | IWorkflowDestination;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, RCSFallbackMode } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IRCSDestination {
|
|
3
|
+
ToNumber?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IRCSArgs {
|
|
23
|
+
Reference?: string;
|
|
24
|
+
Message?: string;
|
|
25
|
+
TemplateID?: string;
|
|
26
|
+
FallbackMode?: RCSFallbackMode;
|
|
27
|
+
FromNumber?: string;
|
|
28
|
+
Destinations?: IRCSDestination[];
|
|
29
|
+
ToNumber?: string;
|
|
30
|
+
GroupID?: string;
|
|
31
|
+
ContactID?: string;
|
|
32
|
+
ReportTo?: string;
|
|
33
|
+
SendTime?: string;
|
|
34
|
+
Timezone?: string;
|
|
35
|
+
SubAccount?: string;
|
|
36
|
+
Department?: string;
|
|
37
|
+
ChargeCode?: string;
|
|
38
|
+
MessageID?: string;
|
|
39
|
+
WebhookCallbackURL?: string;
|
|
40
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
41
|
+
NotificationType?: NotificationType;
|
|
42
|
+
Mode?: 'Test';
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, SMSFallbackMode } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface ISMSDestination {
|
|
3
|
+
ToNumber?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ISMSArgs {
|
|
23
|
+
Reference?: string;
|
|
24
|
+
Message?: string;
|
|
25
|
+
TemplateID?: string;
|
|
26
|
+
Destinations?: ISMSDestination[];
|
|
27
|
+
/** Single-recipient shorthand for Destinations: [{ ToNumber }]. Comma-separated values create multiple destinations. */
|
|
28
|
+
ToNumber?: string;
|
|
29
|
+
/** Single-recipient shorthand for Destinations: [{ GroupID }]. Comma-separated values create multiple destinations. */
|
|
30
|
+
GroupID?: string;
|
|
31
|
+
/** Single-recipient shorthand for Destinations: [{ ContactID }]. Comma-separated values create multiple destinations. */
|
|
32
|
+
ContactID?: string;
|
|
33
|
+
SendTime?: string;
|
|
34
|
+
Timezone?: string;
|
|
35
|
+
SubAccount?: string;
|
|
36
|
+
Department?: string;
|
|
37
|
+
ChargeCode?: string;
|
|
38
|
+
MessageID?: string;
|
|
39
|
+
ReportTo?: string;
|
|
40
|
+
WebhookCallbackURL?: string;
|
|
41
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
42
|
+
NotificationType?: NotificationType;
|
|
43
|
+
Mode?: 'Test';
|
|
44
|
+
Attachments?: string[];
|
|
45
|
+
FallbackMode?: SMSFallbackMode;
|
|
46
|
+
SMSEmailReply?: string;
|
|
47
|
+
CharacterConversion?: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, AnswerPhoneMode, TTSVoice } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface ITTSDestination {
|
|
3
|
+
MainPhone?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ITTSKeypad {
|
|
23
|
+
Tone: number;
|
|
24
|
+
RouteNumber?: string;
|
|
25
|
+
Play?: string;
|
|
26
|
+
PlaySection?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ITTSArgs {
|
|
29
|
+
Reference?: string;
|
|
30
|
+
MessageToPeople?: string;
|
|
31
|
+
MessageToAnswerPhones?: string;
|
|
32
|
+
TemplateID?: string;
|
|
33
|
+
AnswerPhoneMode?: AnswerPhoneMode;
|
|
34
|
+
Destinations?: ITTSDestination[];
|
|
35
|
+
ToNumber?: string;
|
|
36
|
+
GroupID?: string;
|
|
37
|
+
ContactID?: string;
|
|
38
|
+
SendTime?: string;
|
|
39
|
+
Timezone?: string;
|
|
40
|
+
SubAccount?: string;
|
|
41
|
+
Department?: string;
|
|
42
|
+
ChargeCode?: string;
|
|
43
|
+
MessageID?: string;
|
|
44
|
+
ReportTo?: string;
|
|
45
|
+
WebhookCallbackURL?: string;
|
|
46
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
47
|
+
NotificationType?: NotificationType;
|
|
48
|
+
Mode?: 'Test';
|
|
49
|
+
CallerID?: string;
|
|
50
|
+
RetryAttempts?: number;
|
|
51
|
+
RetryPeriod?: number;
|
|
52
|
+
NumberOfOperators?: number;
|
|
53
|
+
Voice?: TTSVoice;
|
|
54
|
+
KeypadOptionRequired?: boolean;
|
|
55
|
+
CallRouteMessageOnWrongKey?: string;
|
|
56
|
+
CallRouteMessageToPeople?: string;
|
|
57
|
+
CallRouteMessageToOperators?: string;
|
|
58
|
+
EndCallMessage?: string;
|
|
59
|
+
Options?: string;
|
|
60
|
+
Keypads?: ITTSKeypad[];
|
|
61
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, AnswerPhoneMode } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IVoiceDestination {
|
|
3
|
+
MainPhone?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IVoiceKeypad {
|
|
23
|
+
Tone: number;
|
|
24
|
+
RouteNumber?: string;
|
|
25
|
+
Play?: string;
|
|
26
|
+
PlayFile?: string;
|
|
27
|
+
PlaySection?: string;
|
|
28
|
+
File?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IVoiceFile {
|
|
31
|
+
Name: string;
|
|
32
|
+
File: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IVoiceArgs {
|
|
35
|
+
Reference?: string;
|
|
36
|
+
MessageToPeople?: string;
|
|
37
|
+
MessageToAnswerPhones?: string;
|
|
38
|
+
TemplateID?: string;
|
|
39
|
+
AnswerPhoneMode?: AnswerPhoneMode;
|
|
40
|
+
Destinations?: IVoiceDestination[];
|
|
41
|
+
ToNumber?: string;
|
|
42
|
+
GroupID?: string;
|
|
43
|
+
ContactID?: string;
|
|
44
|
+
SendTime?: string;
|
|
45
|
+
Timezone?: string;
|
|
46
|
+
SubAccount?: string;
|
|
47
|
+
Department?: string;
|
|
48
|
+
ChargeCode?: string;
|
|
49
|
+
MessageID?: string;
|
|
50
|
+
ReportTo?: string;
|
|
51
|
+
WebhookCallbackURL?: string;
|
|
52
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
53
|
+
NotificationType?: NotificationType;
|
|
54
|
+
Mode?: 'Test';
|
|
55
|
+
CallerID?: string;
|
|
56
|
+
RetryAttempts?: number;
|
|
57
|
+
RetryPeriod?: number;
|
|
58
|
+
NumberOfOperators?: number;
|
|
59
|
+
KeypadOptionRequired?: boolean;
|
|
60
|
+
CallRouteMessageOnWrongKey?: string;
|
|
61
|
+
CallRouteMessageToPeople?: string;
|
|
62
|
+
CallRouteMessageToOperators?: string;
|
|
63
|
+
EndCallMessage?: string;
|
|
64
|
+
Options?: string;
|
|
65
|
+
VoiceFiles?: IVoiceFile[];
|
|
66
|
+
Keypads?: IVoiceKeypad[];
|
|
67
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { WebhookCallbackFormat, NotificationType, WhatsAppFallbackMode } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IWhatsAppDestination {
|
|
3
|
+
ToNumber?: string;
|
|
4
|
+
Recipient?: string;
|
|
5
|
+
Attention?: string;
|
|
6
|
+
FirstName?: string;
|
|
7
|
+
LastName?: string;
|
|
8
|
+
Company?: string;
|
|
9
|
+
Custom1?: string;
|
|
10
|
+
Custom2?: string;
|
|
11
|
+
Custom3?: string;
|
|
12
|
+
Custom4?: string;
|
|
13
|
+
Custom5?: string;
|
|
14
|
+
Custom6?: string;
|
|
15
|
+
Custom7?: string;
|
|
16
|
+
Custom8?: string;
|
|
17
|
+
Custom9?: string;
|
|
18
|
+
ContactID?: string;
|
|
19
|
+
GroupID?: string;
|
|
20
|
+
GroupCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IWhatsAppArgs {
|
|
23
|
+
Reference?: string;
|
|
24
|
+
Message?: string;
|
|
25
|
+
TemplateID?: string;
|
|
26
|
+
FallbackMode?: WhatsAppFallbackMode;
|
|
27
|
+
FromNumber?: string;
|
|
28
|
+
Destinations?: IWhatsAppDestination[];
|
|
29
|
+
ToNumber?: string;
|
|
30
|
+
GroupID?: string;
|
|
31
|
+
ContactID?: string;
|
|
32
|
+
ReportTo?: string;
|
|
33
|
+
SendTime?: string;
|
|
34
|
+
Timezone?: string;
|
|
35
|
+
SubAccount?: string;
|
|
36
|
+
Department?: string;
|
|
37
|
+
ChargeCode?: string;
|
|
38
|
+
MessageID?: string;
|
|
39
|
+
WebhookCallbackURL?: string;
|
|
40
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
41
|
+
NotificationType?: NotificationType;
|
|
42
|
+
Mode?: 'Test';
|
|
43
|
+
Attachments?: string[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { WebhookCallbackFormat } from '../../../Common/enums/MessagingEnums';
|
|
2
|
+
export interface IWorkflowDestination {
|
|
3
|
+
ContactID?: string;
|
|
4
|
+
GroupID?: string;
|
|
5
|
+
GroupCode?: string;
|
|
6
|
+
ToNumber?: string;
|
|
7
|
+
EmailAddress?: string;
|
|
8
|
+
MainPhone?: string;
|
|
9
|
+
Recipient?: string;
|
|
10
|
+
Attention?: string;
|
|
11
|
+
FirstName?: string;
|
|
12
|
+
LastName?: string;
|
|
13
|
+
Company?: string;
|
|
14
|
+
Custom1?: string;
|
|
15
|
+
Custom2?: string;
|
|
16
|
+
Custom3?: string;
|
|
17
|
+
Custom4?: string;
|
|
18
|
+
Custom5?: string;
|
|
19
|
+
Custom6?: string;
|
|
20
|
+
Custom7?: string;
|
|
21
|
+
Custom8?: string;
|
|
22
|
+
Custom9?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IWorkflowArgs {
|
|
25
|
+
Reference?: string;
|
|
26
|
+
WorkflowTemplateID: string;
|
|
27
|
+
Destinations?: IWorkflowDestination[];
|
|
28
|
+
ToNumber?: string;
|
|
29
|
+
MainPhone?: string;
|
|
30
|
+
GroupID?: string;
|
|
31
|
+
ContactID?: string;
|
|
32
|
+
SendTime?: string;
|
|
33
|
+
Timezone?: string;
|
|
34
|
+
SubAccount?: string;
|
|
35
|
+
Department?: string;
|
|
36
|
+
ChargeCode?: string;
|
|
37
|
+
MessageID?: string;
|
|
38
|
+
WebhookCallbackURL?: string;
|
|
39
|
+
WebhookCallbackFormat?: WebhookCallbackFormat;
|
|
40
|
+
Mode?: 'Test';
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ISMSArgs';
|
|
2
|
+
export * from './IEmailArgs';
|
|
3
|
+
export * from './IFaxArgs';
|
|
4
|
+
export * from './ITTSArgs';
|
|
5
|
+
export * from './IVoiceArgs';
|
|
6
|
+
export * from './IWhatsAppArgs';
|
|
7
|
+
export * from './IRCSArgs';
|
|
8
|
+
export * from './IWorkflowArgs';
|
|
9
|
+
export * from './IMessagingDestination';
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./ISMSArgs"), exports);
|
|
18
|
+
__exportStar(require("./IEmailArgs"), exports);
|
|
19
|
+
__exportStar(require("./IFaxArgs"), exports);
|
|
20
|
+
__exportStar(require("./ITTSArgs"), exports);
|
|
21
|
+
__exportStar(require("./IVoiceArgs"), exports);
|
|
22
|
+
__exportStar(require("./IWhatsAppArgs"), exports);
|
|
23
|
+
__exportStar(require("./IRCSArgs"), exports);
|
|
24
|
+
__exportStar(require("./IWorkflowArgs"), exports);
|
|
25
|
+
__exportStar(require("./IMessagingDestination"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IMessagingDestination } from "../interfaces";
|
|
2
|
+
export declare class CommonModel {
|
|
3
|
+
MessageID?: string;
|
|
4
|
+
Reference?: string;
|
|
5
|
+
ReportTo?: string;
|
|
6
|
+
WebhookCallbackURL?: string;
|
|
7
|
+
WebhookCallbackFormat?: string;
|
|
8
|
+
SendTime?: string;
|
|
9
|
+
Timezone?: string;
|
|
10
|
+
SubAccount?: string;
|
|
11
|
+
Department?: string;
|
|
12
|
+
ChargeCode?: string;
|
|
13
|
+
TemplateID?: string;
|
|
14
|
+
NotificationType?: string;
|
|
15
|
+
Mode?: string;
|
|
16
|
+
Destinations: IMessagingDestination[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModel } from "./CommonModel";
|
|
2
|
+
import { FileDTO } from "../dtos";
|
|
3
|
+
import { IEmailDestination } from "../interfaces";
|
|
4
|
+
export declare class EmailModel extends CommonModel {
|
|
5
|
+
EmailSubject?: string;
|
|
6
|
+
SMTPFrom?: string;
|
|
7
|
+
From?: string;
|
|
8
|
+
FromEmail?: string;
|
|
9
|
+
CCEmail?: string;
|
|
10
|
+
ReplyTo?: string;
|
|
11
|
+
MessagePlain?: string;
|
|
12
|
+
MessageHTML?: string;
|
|
13
|
+
EmailAddress?: string;
|
|
14
|
+
GroupID?: string;
|
|
15
|
+
ContactID?: string;
|
|
16
|
+
Destinations: IEmailDestination[];
|
|
17
|
+
Files: FileDTO[];
|
|
18
|
+
Attachments: string[];
|
|
19
|
+
constructor(data?: any);
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmailModel = void 0;
|
|
4
|
+
const Mapper_1 = require("../../../Functions/Mapper");
|
|
5
|
+
const CommonModel_1 = require("./CommonModel");
|
|
6
|
+
class EmailModel extends CommonModel_1.CommonModel {
|
|
7
|
+
constructor(data) {
|
|
8
|
+
super();
|
|
9
|
+
this.Destinations = [];
|
|
10
|
+
this.Files = [];
|
|
11
|
+
this.Attachments = [];
|
|
12
|
+
if (data) {
|
|
13
|
+
(0, Mapper_1.Map)(this, data);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.EmailModel = EmailModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModel } from "./CommonModel";
|
|
2
|
+
import { FileDTO } from "../dtos";
|
|
3
|
+
import { IFaxDestination } from "../interfaces";
|
|
4
|
+
export declare class FaxModel extends CommonModel {
|
|
5
|
+
Resolution?: string;
|
|
6
|
+
CSID?: string;
|
|
7
|
+
StampFormat?: string;
|
|
8
|
+
WatermarkFolder?: string;
|
|
9
|
+
WatermarkFirstPage?: string;
|
|
10
|
+
WatermarkAllPages?: string;
|
|
11
|
+
RetryAttempts?: number;
|
|
12
|
+
RetryPeriod?: number;
|
|
13
|
+
ToNumber?: string;
|
|
14
|
+
GroupID?: string;
|
|
15
|
+
ContactID?: string;
|
|
16
|
+
Destinations: IFaxDestination[];
|
|
17
|
+
Files: FileDTO[];
|
|
18
|
+
Attachments: string[];
|
|
19
|
+
constructor(data?: any);
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FaxModel = void 0;
|
|
4
|
+
const Mapper_1 = require("../../../Functions/Mapper");
|
|
5
|
+
const CommonModel_1 = require("./CommonModel");
|
|
6
|
+
class FaxModel extends CommonModel_1.CommonModel {
|
|
7
|
+
constructor(data) {
|
|
8
|
+
super();
|
|
9
|
+
this.Destinations = [];
|
|
10
|
+
this.Files = [];
|
|
11
|
+
this.Attachments = [];
|
|
12
|
+
if (data) {
|
|
13
|
+
(0, Mapper_1.Map)(this, data);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.FaxModel = FaxModel;
|