@vendasta/conversation 0.9.0 → 0.13.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/bundles/vendasta-conversation.umd.js +328 -0
- package/bundles/vendasta-conversation.umd.js.map +1 -1
- package/bundles/vendasta-conversation.umd.min.js +1 -1
- package/bundles/vendasta-conversation.umd.min.js.map +1 -1
- package/esm2015/lib/_internal/conversation.api.service.js +18 -3
- package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/index.js +1 -1
- package/esm2015/lib/_internal/interfaces/participant.interface.js +1 -1
- package/esm2015/lib/_internal/objects/api.js +253 -1
- package/esm2015/lib/_internal/objects/index.js +3 -3
- package/esm2015/lib/_internal/objects/participant.js +42 -1
- package/fesm2015/vendasta-conversation.js +309 -1
- package/fesm2015/vendasta-conversation.js.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +5 -2
- package/lib/_internal/interfaces/api.interface.d.ts +40 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/participant.interface.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +67 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/participant.d.ts +12 -0
- package/package.json +1 -1
- package/vendasta-conversation.metadata.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/core"),require("@angular/common/http"),require("@vendasta/core"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@vendasta/conversation",["exports","@angular/core","@angular/common/http","@vendasta/core","rxjs/operators"],i):i(((t="undefined"!=typeof globalThis?globalThis:t||self).vendasta=t.vendasta||{},t.vendasta.conversation={}),t.ng.core,t.ng.common.http,t.i1,t.rxjs.operators)}(this,(function(t,i,n,e,o){"use strict";var s,a,r,p,c,h;function d(t,i){return"number"==typeof i?i:t[i]}(s=t.MessageStatus||(t.MessageStatus={}))[s.MESSAGE_STATUS_NOT_READ=0]="MESSAGE_STATUS_NOT_READ",s[s.MESSAGE_STATUS_READ=1]="MESSAGE_STATUS_READ",s[s.MESSAGE_STATUS_SENT=2]="MESSAGE_STATUS_SENT",s[s.MESSAGE_STATUS_DELIVERED=3]="MESSAGE_STATUS_DELIVERED",s[s.MESSAGE_STATUS_FAILED=4]="MESSAGE_STATUS_FAILED",s[s.MESSAGE_STATUS_UNDELIVERED=5]="MESSAGE_STATUS_UNDELIVERED",(a=t.MessageType||(t.MessageType={}))[a.MESSAGE_TYPE_MESSAGE=0]="MESSAGE_TYPE_MESSAGE",a[a.MESSAGE_TYPE_MEDIA=1]="MESSAGE_TYPE_MEDIA",(r=t.ConversationChannel||(t.ConversationChannel={}))[r.CONVERSATION_CHANNEL_UNDEFINED=0]="CONVERSATION_CHANNEL_UNDEFINED",r[r.CONVERSATION_CHANNEL_INTERNAL=1]="CONVERSATION_CHANNEL_INTERNAL",r[r.CONVERSATION_CHANNEL_SMS=2]="CONVERSATION_CHANNEL_SMS",r[r.CONVERSATION_CHANNEL_FACEBOOK=3]="CONVERSATION_CHANNEL_FACEBOOK",r[r.CONVERSATION_CHANNEL_GOOGLE_MESSAGES=4]="CONVERSATION_CHANNEL_GOOGLE_MESSAGES",(p=t.PlatformLocation||(t.PlatformLocation={}))[p.PLATFORM_LOCATION_UNDEFINED=0]="PLATFORM_LOCATION_UNDEFINED",p[p.PLATFORM_LOCATION_BUSINESS_APP=1]="PLATFORM_LOCATION_BUSINESS_APP",p[p.PLATFORM_LOCATION_PARTNER_CENTER=2]="PLATFORM_LOCATION_PARTNER_CENTER",p[p.PLATFORM_LOCATION_VENDOR_CENTER=3]="PLATFORM_LOCATION_VENDOR_CENTER",p[p.PLATFORM_LOCATION_TASK_MANAGER=4]="PLATFORM_LOCATION_TASK_MANAGER",p[p.PLATFORM_LOCATION_PROPOSAL_BUILDER=5]="PLATFORM_LOCATION_PROPOSAL_BUILDER",p[p.PLATFORM_LOCATION_SALES_CENTER=6]="PLATFORM_LOCATION_SALES_CENTER",(c=t.ParticipantType||(t.ParticipantType={}))[c.PARTICIPANT_TYPE_UNDEFINED=0]="PARTICIPANT_TYPE_UNDEFINED",c[c.PARTICIPANT_TYPE_CUSTOMER=1]="PARTICIPANT_TYPE_CUSTOMER",c[c.PARTICIPANT_TYPE_IAM_USER=2]="PARTICIPANT_TYPE_IAM_USER",c[c.PARTICIPANT_TYPE_ACCOUNT_GROUP=3]="PARTICIPANT_TYPE_ACCOUNT_GROUP",c[c.PARTICIPANT_TYPE_PARTNER=4]="PARTICIPANT_TYPE_PARTNER",c[c.PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT=5]="PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT",c[c.PARTICIPANT_TYPE_DIGITAL_AGENT=6]="PARTICIPANT_TYPE_DIGITAL_AGENT",c[c.PARTICIPANT_TYPE_VENDOR=7]="PARTICIPANT_TYPE_VENDOR",(h=t.MetadataIdentifier||(t.MetadataIdentifier={}))[h.METADATA_IDENTIFIER_UNDEFINED=0]="METADATA_IDENTIFIER_UNDEFINED",h[h.METADATA_IDENTIFIER_RECIPIENT=1]="METADATA_IDENTIFIER_RECIPIENT",h[h.METADATA_IDENTIFIER_SENDER=2]="METADATA_IDENTIFIER_SENDER",h[h.METADATA_IDENTIFIER_CONVERSATION=3]="METADATA_IDENTIFIER_CONVERSATION";var u=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.type&&(e.type=d(t.MessageType,n.type)),n.created&&(e.created=new Date(n.created)),n.updated&&(e.updated=new Date(n.updated)),n.deleted&&(e.deleted=new Date(n.deleted)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.externalMessageId&&(t.externalMessageId=this.externalMessageId),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.type&&(t.type=this.type),void 0!==this.body&&(t.body=this.body),void 0!==this.error&&(t.error=this.error),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.media&&(t.media=this.media),t},i}(),v=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.status&&(e.status=d(t.MessageStatus,n.status)),n.updated&&(e.updated=new Date(n.updated)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.status&&(t.status=this.status),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),t},i}();function A(t,i){return"number"==typeof i?i:t[i]}var g=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.channel&&(e.channel=A(t.ConversationChannel,n.channel)),n.created&&(e.created=new Date(n.created)),n.updated&&(e.updated=new Date(n.updated)),n.deleted&&(e.deleted=new Date(n.deleted)),n.latestMsgSentTime&&(e.latestMsgSentTime=new Date(n.latestMsgSentTime)),n.originLocation&&(e.originLocation=A(t.PlatformLocation,n.originLocation)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.participantIds&&(t.participantIds=this.participantIds),void 0!==this.latestMsgSentTime&&null!==this.latestMsgSentTime&&(t.latestMsgSentTime="toApiJson"in this.latestMsgSentTime?this.latestMsgSentTime.toApiJson():this.latestMsgSentTime),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}();function l(t,i){return"number"==typeof i?i:t[i]}var f=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.location&&(e.location=l(t.PlatformLocation,n.location)),n.channel&&(e.channel=l(t.ConversationChannel,n.channel)),n.created&&(e.created=new Date(n.created)),n.updated&&(e.updated=new Date(n.updated)),n.deleted&&(e.deleted=new Date(n.deleted)),n.participantType&&(e.participantType=l(t.ParticipantType,n.participantType)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.internalParticipantId&&(t.internalParticipantId=this.internalParticipantId),void 0!==this.partnerId&&(t.partnerId=this.partnerId),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.location&&(t.location=this.location),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalParticipantId&&(t.externalParticipantId=this.externalParticipantId),void 0!==this.name&&(t.name=this.name),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.participantType&&(t.participantType=this.participantType),void 0!==this.email&&(t.email=this.email),void 0!==this.phoneNumber&&(t.phoneNumber=this.phoneNumber),t},i}();function I(t,i){return"number"==typeof i?i:t[i]}var m=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=g.fromProto(i.conversation)),i.participants&&(n.participants=i.participants.map(f.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),E=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.participants&&(e.participants=n.participants.map(f.fromProto)),n.channel&&(e.channel=I(t.ConversationChannel,n.channel)),n.created&&(e.created=new Date(n.created)),n.updated&&(e.updated=new Date(n.updated)),n.originLocation&&(e.originLocation=I(t.PlatformLocation,n.originLocation)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}(),O=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=g.fromProto(i.conversation)),i.participants&&(n.participants=i.participants.map(f.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),T=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(u.fromProto)),i.lastSeen&&(n.lastSeen=new Date(i.lastSeen)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),void 0!==this.lastSeen&&null!==this.lastSeen&&(t.lastSeen="toApiJson"in this.lastSeen?this.lastSeen.toApiJson():this.lastSeen),t},t}(),S=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t},t}(),P=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),t},t}(),_=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),t},t}(),M=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=g.fromProto(i.conversation)),i.latestMessage&&(n.latestMessage=u.fromProto(i.latestMessage)),i.participants&&(n.participants=i.participants.map(f.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.latestMessage&&null!==this.latestMessage&&(t.latestMessage="toApiJson"in this.latestMessage?this.latestMessage.toApiJson():this.latestMessage),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),C=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),t},t}(),J=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationIds&&(t.conversationIds=this.conversationIds),t},t}(),N=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversations&&(n.conversations=i.conversations.map(M.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversations&&null!==this.conversations&&(t.conversations="toApiJson"in this.conversations?this.conversations.toApiJson():this.conversations),t},t}(),R=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageIds&&(t.messageIds=this.messageIds),t},t}(),y=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(u.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),t},t}(),b=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.participantIds&&(t.participantIds=this.participantIds),t},t}(),L=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.participants&&(n.participants=i.participants.map(f.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),j=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),t},t}(),D=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.filters&&(n.filters=j.fromProto(i.filters)),i.pagingOptions&&(n.pagingOptions=H.fromProto(i.pagingOptions)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),t},t}(),w=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(u.fromProto)),i.pagingMetadata&&(n.pagingMetadata=Y.fromProto(i.pagingMetadata)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),G=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.location&&(e.location=I(t.PlatformLocation,n.location)),n.channel&&(e.channel=I(t.ConversationChannel,n.channel)),n.originLocation&&(e.originLocation=I(t.PlatformLocation,n.originLocation)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.internalParticipantId&&(t.internalParticipantId=this.internalParticipantId),void 0!==this.location&&(t.location=this.location),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}(),U=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.filters&&(n.filters=G.fromProto(i.filters)),i.pagingOptions&&(n.pagingOptions=H.fromProto(i.pagingOptions)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),t},t}(),F=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversations&&(n.conversations=i.conversations.map(m.fromProto)),i.pagingMetadata&&(n.pagingMetadata=Y.fromProto(i.pagingMetadata)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversations&&null!==this.conversations&&(t.conversations="toApiJson"in this.conversations?this.conversations.toApiJson():this.conversations),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),x=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.identifier&&(e.identifier=I(t.MetadataIdentifier,n.identifier)),n.data&&(e.data=Object.keys(n.data).reduce((function(t,i){return t[i]=n.data[i],t}),{})),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.identifier&&(t.identifier=this.identifier),void 0!==this.data&&null!==this.data&&(t.data="toApiJson"in this.data?this.data.toApiJson():this.data),t},i}(),k=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t},t}(),H=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.cursor&&(t.cursor=this.cursor),void 0!==this.pageSize&&(t.pageSize=this.pageSize),t},t}(),Y=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.nextCursor&&(t.nextCursor=this.nextCursor),void 0!==this.hasMore&&(t.hasMore=this.hasMore),t},t}(),q=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.channel&&(e.channel=I(t.ConversationChannel,n.channel)),n.type&&(e.type=I(t.MessageType,n.type)),n.location&&(e.location=I(t.PlatformLocation,n.location)),n.metadata&&(e.metadata=Object.keys(n.metadata).reduce((function(t,i){return t[i]=n.metadata[i],t}),{})),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.senderId&&(t.senderId=this.senderId),void 0!==this.recipientId&&(t.recipientId=this.recipientId),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.body&&(t.body=this.body),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.type&&(t.type=this.type),void 0!==this.location&&(t.location=this.location),void 0!==this.partnerId&&(t.partnerId=this.partnerId),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),void 0!==this.media&&(t.media=this.media),t},i}(),V=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.sender&&(e.sender=f.fromProto(n.sender)),n.recipient&&(e.recipient=f.fromProto(n.recipient)),n.type&&(e.type=I(t.MessageType,n.type)),n.metadata&&(e.metadata=n.metadata.map(x.fromProto)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.sender&&null!==this.sender&&(t.sender="toApiJson"in this.sender?this.sender.toApiJson():this.sender),void 0!==this.recipient&&null!==this.recipient&&(t.recipient="toApiJson"in this.recipient?this.recipient.toApiJson():this.recipient),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.type&&(t.type=this.type),void 0!==this.body&&(t.body=this.body),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),t},i}(),W=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.workflowId&&(t.workflowId=this.workflowId),t},t}(),B=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var e=new i;return e=Object.assign(e,n),n.status&&(e.status=I(t.MessageStatus,n.status)),e},i.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.status&&(t.status=this.status),t},i}(),K=function(){function t(t){this.environmentService=t}return t.prototype.host=function(){if(this._host)return this._host;switch(this.environmentService.getEnvironment()){case e.Environment.LOCAL:this._host="conversation-api.vendasta-local.com";break;case e.Environment.TEST:this._host="";break;case e.Environment.DEMO:this._host="conversation-demo.apigateway.co";break;case e.Environment.PROD:this._host="conversation-prod.apigateway.co"}return this._host},t.prototype.httpsHost=function(){if(this._httpsHost)return this._httpsHost;switch(this.environmentService.getEnvironment()){case e.Environment.LOCAL:this._httpsHost="conversation.vendasta-local.com";break;case e.Environment.TEST:this._httpsHost="";break;case e.Environment.DEMO:this._httpsHost="conversation-demo.apigateway.co";break;case e.Environment.PROD:this._httpsHost="conversation-prod.apigateway.co"}return this._httpsHost},t.prototype.hostWithScheme=function(){return(this.environmentService.getEnvironment()===e.Environment.LOCAL?"http://":"https://")+this.host()},t.prototype.httpsHostWithScheme=function(){return(this.environmentService.getEnvironment()===e.Environment.LOCAL?"http://":"https://")+this.httpsHost()},t}();K.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new K(i.ɵɵinject(e.EnvironmentService))},token:K,providedIn:"root"}),K.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],K.ctorParameters=function(){return[{type:e.EnvironmentService}]};var z=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.sendMessage=function(t){var i=t.toApiJson?t:new V(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/SendMessage",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return W.fromProto(t)})),o.share())},t.prototype.getMessage=function(t){var i=t.toApiJson?t:new C(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMessage",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return u.fromProto(t)})),o.share())},t.prototype.listMessages=function(t){var i=t.toApiJson?t:new D(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/ListMessages",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return w.fromProto(t)})),o.share())},t.prototype.deleteMessage=function(t){var i=t.toApiJson?t:new _(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/DeleteMessage",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.updateMessageStatus=function(t){var i=t.toApiJson?t:new B(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/UpdateMessageStatus",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.lookupConversations=function(t){var i=t.toApiJson?t:new U(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/LookupConversations",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return F.fromProto(t)})),o.share())},t.prototype.createConversation=function(t){var i=t.toApiJson?t:new E(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/CreateConversation",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return O.fromProto(t)})),o.share())},t.prototype.deleteConversation=function(t){var i=t.toApiJson?t:new P(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/DeleteConversation",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.receiveMessage=function(t){var i=t.toApiJson?t:new q(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/ReceiveMessage",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMultiMessages=function(t){var i=t.toApiJson?t:new R(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiMessages",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return y.fromProto(t)})),o.share())},t.prototype.createMultiMessages=function(t){var i=t.toApiJson?t:new T(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/CreateMultiMessages",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMultiConversationDetails=function(t){var i=t.toApiJson?t:new J(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiConversationDetails",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return N.fromProto(t)})),o.share())},t.prototype.getMultiParticipants=function(t){var i=t.toApiJson?t:new b(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiParticipants",i.toApiJson(),this.apiOptions()).pipe(o.map((function(t){return L.fromProto(t)})),o.share())},t}();z.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new z(i.ɵɵinject(n.HttpClient),i.ɵɵinject(K))},token:z,providedIn:"root"}),z.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],z.ctorParameters=function(){return[{type:n.HttpClient},{type:K}]},t.Conversation=g,t.ConversationApiService=z,t.CreateConversationRequest=E,t.CreateConversationResponse=O,t.CreateMultiMessagesRequest=T,t.DeleteConversationRequest=P,t.DeleteMessageRequest=_,t.GetMessageRequest=C,t.GetMultiConversationDetailsRequest=J,t.GetMultiConversationDetailsResponse=N,t.GetMultiConversationDetailsResponseDetailedConversation=M,t.GetMultiMessagesRequest=R,t.GetMultiMessagesResponse=y,t.GetMultiParticipantsRequest=b,t.GetMultiParticipantsResponse=L,t.ListMessagesRequest=D,t.ListMessagesRequestListMessagesFilters=j,t.ListMessagesResponse=w,t.LookupConversationsRequest=U,t.LookupConversationsRequestLookupConversationsFilters=G,t.LookupConversationsResponse=F,t.LookupConversationsResponseConversations=m,t.Message=u,t.Metadata=x,t.MetadataDataEntry=S,t.PagedRequestOptions=H,t.PagedResponseMetadata=Y,t.Participant=f,t.ParticipantMessageStatus=v,t.ReceiveMessageRequest=q,t.ReceiveMessageRequestMetadataEntry=k,t.SendMessageRequest=V,t.SendMessageResponse=W,t.UpdateMessageStatusRequest=B,t.ɵa=K,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/core"),require("@angular/common/http"),require("@vendasta/core"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@vendasta/conversation",["exports","@angular/core","@angular/common/http","@vendasta/core","rxjs/operators"],i):i(((t="undefined"!=typeof globalThis?globalThis:t||self).vendasta=t.vendasta||{},t.vendasta.conversation={}),t.ng.core,t.ng.common.http,t.i1,t.rxjs.operators)}(this,(function(t,i,n,o,s){"use strict";var e,a,r,p,c,h;function u(t,i){return"number"==typeof i?i:t[i]}(e=t.MessageStatus||(t.MessageStatus={}))[e.MESSAGE_STATUS_NOT_READ=0]="MESSAGE_STATUS_NOT_READ",e[e.MESSAGE_STATUS_READ=1]="MESSAGE_STATUS_READ",e[e.MESSAGE_STATUS_SENT=2]="MESSAGE_STATUS_SENT",e[e.MESSAGE_STATUS_DELIVERED=3]="MESSAGE_STATUS_DELIVERED",e[e.MESSAGE_STATUS_FAILED=4]="MESSAGE_STATUS_FAILED",e[e.MESSAGE_STATUS_UNDELIVERED=5]="MESSAGE_STATUS_UNDELIVERED",(a=t.MessageType||(t.MessageType={}))[a.MESSAGE_TYPE_MESSAGE=0]="MESSAGE_TYPE_MESSAGE",a[a.MESSAGE_TYPE_MEDIA=1]="MESSAGE_TYPE_MEDIA",(r=t.ConversationChannel||(t.ConversationChannel={}))[r.CONVERSATION_CHANNEL_UNDEFINED=0]="CONVERSATION_CHANNEL_UNDEFINED",r[r.CONVERSATION_CHANNEL_INTERNAL=1]="CONVERSATION_CHANNEL_INTERNAL",r[r.CONVERSATION_CHANNEL_SMS=2]="CONVERSATION_CHANNEL_SMS",r[r.CONVERSATION_CHANNEL_FACEBOOK=3]="CONVERSATION_CHANNEL_FACEBOOK",r[r.CONVERSATION_CHANNEL_GOOGLE_MESSAGES=4]="CONVERSATION_CHANNEL_GOOGLE_MESSAGES",(p=t.PlatformLocation||(t.PlatformLocation={}))[p.PLATFORM_LOCATION_UNDEFINED=0]="PLATFORM_LOCATION_UNDEFINED",p[p.PLATFORM_LOCATION_BUSINESS_APP=1]="PLATFORM_LOCATION_BUSINESS_APP",p[p.PLATFORM_LOCATION_PARTNER_CENTER=2]="PLATFORM_LOCATION_PARTNER_CENTER",p[p.PLATFORM_LOCATION_VENDOR_CENTER=3]="PLATFORM_LOCATION_VENDOR_CENTER",p[p.PLATFORM_LOCATION_TASK_MANAGER=4]="PLATFORM_LOCATION_TASK_MANAGER",p[p.PLATFORM_LOCATION_PROPOSAL_BUILDER=5]="PLATFORM_LOCATION_PROPOSAL_BUILDER",p[p.PLATFORM_LOCATION_SALES_CENTER=6]="PLATFORM_LOCATION_SALES_CENTER",(c=t.ParticipantType||(t.ParticipantType={}))[c.PARTICIPANT_TYPE_UNDEFINED=0]="PARTICIPANT_TYPE_UNDEFINED",c[c.PARTICIPANT_TYPE_CUSTOMER=1]="PARTICIPANT_TYPE_CUSTOMER",c[c.PARTICIPANT_TYPE_IAM_USER=2]="PARTICIPANT_TYPE_IAM_USER",c[c.PARTICIPANT_TYPE_ACCOUNT_GROUP=3]="PARTICIPANT_TYPE_ACCOUNT_GROUP",c[c.PARTICIPANT_TYPE_PARTNER=4]="PARTICIPANT_TYPE_PARTNER",c[c.PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT=5]="PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT",c[c.PARTICIPANT_TYPE_DIGITAL_AGENT=6]="PARTICIPANT_TYPE_DIGITAL_AGENT",c[c.PARTICIPANT_TYPE_VENDOR=7]="PARTICIPANT_TYPE_VENDOR",(h=t.MetadataIdentifier||(t.MetadataIdentifier={}))[h.METADATA_IDENTIFIER_UNDEFINED=0]="METADATA_IDENTIFIER_UNDEFINED",h[h.METADATA_IDENTIFIER_RECIPIENT=1]="METADATA_IDENTIFIER_RECIPIENT",h[h.METADATA_IDENTIFIER_SENDER=2]="METADATA_IDENTIFIER_SENDER",h[h.METADATA_IDENTIFIER_CONVERSATION=3]="METADATA_IDENTIFIER_CONVERSATION";var d=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.type&&(o.type=u(t.MessageType,n.type)),n.created&&(o.created=new Date(n.created)),n.updated&&(o.updated=new Date(n.updated)),n.deleted&&(o.deleted=new Date(n.deleted)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.externalMessageId&&(t.externalMessageId=this.externalMessageId),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.type&&(t.type=this.type),void 0!==this.body&&(t.body=this.body),void 0!==this.error&&(t.error=this.error),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.media&&(t.media=this.media),t},i}(),v=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.status&&(o.status=u(t.MessageStatus,n.status)),n.updated&&(o.updated=new Date(n.updated)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.status&&(t.status=this.status),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),t},i}();function g(t,i){return"number"==typeof i?i:t[i]}var f=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.channel&&(o.channel=g(t.ConversationChannel,n.channel)),n.created&&(o.created=new Date(n.created)),n.updated&&(o.updated=new Date(n.updated)),n.deleted&&(o.deleted=new Date(n.deleted)),n.latestMsgSentTime&&(o.latestMsgSentTime=new Date(n.latestMsgSentTime)),n.originLocation&&(o.originLocation=g(t.PlatformLocation,n.originLocation)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.participantIds&&(t.participantIds=this.participantIds),void 0!==this.latestMsgSentTime&&null!==this.latestMsgSentTime&&(t.latestMsgSentTime="toApiJson"in this.latestMsgSentTime?this.latestMsgSentTime.toApiJson():this.latestMsgSentTime),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}();function A(t,i){return"number"==typeof i?i:t[i]}var l=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.firstLineAddress&&(t.firstLineAddress=this.firstLineAddress),void 0!==this.secondLineAddress&&(t.secondLineAddress=this.secondLineAddress),void 0!==this.city&&(t.city=this.city),void 0!==this.state&&(t.state=this.state),void 0!==this.country&&(t.country=this.country),void 0!==this.zipCode&&(t.zipCode=this.zipCode),t},t}(),m=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.location&&(o.location=A(t.PlatformLocation,n.location)),n.channel&&(o.channel=A(t.ConversationChannel,n.channel)),n.created&&(o.created=new Date(n.created)),n.updated&&(o.updated=new Date(n.updated)),n.deleted&&(o.deleted=new Date(n.deleted)),n.participantType&&(o.participantType=A(t.ParticipantType,n.participantType)),n.address&&(o.address=l.fromProto(n.address)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.internalParticipantId&&(t.internalParticipantId=this.internalParticipantId),void 0!==this.partnerId&&(t.partnerId=this.partnerId),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.location&&(t.location=this.location),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalParticipantId&&(t.externalParticipantId=this.externalParticipantId),void 0!==this.name&&(t.name=this.name),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.deleted&&null!==this.deleted&&(t.deleted="toApiJson"in this.deleted?this.deleted.toApiJson():this.deleted),void 0!==this.participantType&&(t.participantType=this.participantType),void 0!==this.email&&(t.email=this.email),void 0!==this.phoneNumber&&(t.phoneNumber=this.phoneNumber),void 0!==this.address&&null!==this.address&&(t.address="toApiJson"in this.address?this.address.toApiJson():this.address),t},i}();function I(t,i){return"number"==typeof i?i:t[i]}var O=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),E=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),P=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.count&&(n.count=parseInt(i.count,10)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.count&&(t.count=this.count),t},t}(),T=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=f.fromProto(i.conversation)),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),S=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.value&&(n.value=parseInt(i.value,10)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t},t}(),M=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.participants&&(o.participants=n.participants.map(m.fromProto)),n.channel&&(o.channel=I(t.ConversationChannel,n.channel)),n.created&&(o.created=new Date(n.created)),n.updated&&(o.updated=new Date(n.updated)),n.originLocation&&(o.originLocation=I(t.PlatformLocation,n.originLocation)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.created&&null!==this.created&&(t.created="toApiJson"in this.created?this.created.toApiJson():this.created),void 0!==this.updated&&null!==this.updated&&(t.updated="toApiJson"in this.updated?this.updated.toApiJson():this.updated),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}(),C=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=f.fromProto(i.conversation)),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),J=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(d.fromProto)),i.lastSeen&&(n.lastSeen=new Date(i.lastSeen)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),void 0!==this.lastSeen&&null!==this.lastSeen&&(t.lastSeen="toApiJson"in this.lastSeen?this.lastSeen.toApiJson():this.lastSeen),t},t}(),_=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t},t}(),y=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),t},t}(),R=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),t},t}(),N=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=f.fromProto(i.conversation)),i.latestMessage&&(n.latestMessage=d.fromProto(i.latestMessage)),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.latestMessage&&null!==this.latestMessage&&(t.latestMessage="toApiJson"in this.latestMessage?this.latestMessage.toApiJson():this.latestMessage),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),b=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversation&&(n.conversation=f.fromProto(i.conversation)),i.latestMessage&&(n.latestMessage=d.fromProto(i.latestMessage)),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversation&&null!==this.conversation&&(t.conversation="toApiJson"in this.conversation?this.conversation.toApiJson():this.conversation),void 0!==this.latestMessage&&null!==this.latestMessage&&(t.latestMessage="toApiJson"in this.latestMessage?this.latestMessage.toApiJson():this.latestMessage),void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),L=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),t},t}(),j=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationIds&&(t.conversationIds=this.conversationIds),t},t}(),w=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversations&&(n.conversations=i.conversations.map(N.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversations&&null!==this.conversations&&(t.conversations="toApiJson"in this.conversations?this.conversations.toApiJson():this.conversations),t},t}(),D=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationIds&&(t.conversationIds=this.conversationIds),t},t}(),G=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messageCounts&&(n.messageCounts=i.messageCounts.map(P.fromProto)),i.counts&&(n.counts=Object.keys(i.counts).reduce((function(t,n){return t[n]=parseInt(i.counts[n],10),t}),{})),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageCounts&&null!==this.messageCounts&&(t.messageCounts="toApiJson"in this.messageCounts?this.messageCounts.toApiJson():this.messageCounts),void 0!==this.counts&&null!==this.counts&&(t.counts="toApiJson"in this.counts?this.counts.toApiJson():this.counts),t},t}(),U=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.messageIds&&(t.messageIds=this.messageIds),t},t}(),F=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(d.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),t},t}(),x=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.participantIds&&(t.participantIds=this.participantIds),t},t}(),k=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.participants&&(n.participants=i.participants.map(m.fromProto)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.participants&&null!==this.participants&&(t.participants="toApiJson"in this.participants?this.participants.toApiJson():this.participants),t},t}(),q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversationId&&(t.conversationId=this.conversationId),t},t}(),H=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.filters&&(n.filters=q.fromProto(i.filters)),i.pagingOptions&&(n.pagingOptions=Q.fromProto(i.pagingOptions)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),t},t}(),Y=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.messages&&(n.messages=i.messages.map(d.fromProto)),i.pagingMetadata&&(n.pagingMetadata=X.fromProto(i.pagingMetadata)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.messages&&null!==this.messages&&(t.messages="toApiJson"in this.messages?this.messages.toApiJson():this.messages),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),V=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.location&&(o.location=I(t.PlatformLocation,n.location)),n.channel&&(o.channel=I(t.ConversationChannel,n.channel)),n.originLocation&&(o.originLocation=I(t.PlatformLocation,n.originLocation)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.internalParticipantId&&(t.internalParticipantId=this.internalParticipantId),void 0!==this.location&&(t.location=this.location),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.externalConversationId&&(t.externalConversationId=this.externalConversationId),void 0!==this.originLocation&&(t.originLocation=this.originLocation),void 0!==this.originLocationExternalId&&(t.originLocationExternalId=this.originLocationExternalId),t},i}(),W=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.filters&&(n.filters=V.fromProto(i.filters)),i.pagingOptions&&(n.pagingOptions=Q.fromProto(i.pagingOptions)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.filters&&null!==this.filters&&(t.filters="toApiJson"in this.filters?this.filters.toApiJson():this.filters),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),t},t}(),B=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversations&&(n.conversations=i.conversations.map(T.fromProto)),i.pagingMetadata&&(n.pagingMetadata=X.fromProto(i.pagingMetadata)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversations&&null!==this.conversations&&(t.conversations="toApiJson"in this.conversations?this.conversations.toApiJson():this.conversations),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),z=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.identifier&&(o.identifier=I(t.MetadataIdentifier,n.identifier)),n.data&&(o.data=Object.keys(n.data).reduce((function(t,i){return t[i]=n.data[i],t}),{})),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.identifier&&(t.identifier=this.identifier),void 0!==this.data&&null!==this.data&&(t.data="toApiJson"in this.data?this.data.toApiJson():this.data),t},i}(),K=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.key&&(t.key=this.key),void 0!==this.value&&(t.value=this.value),t},t}(),Q=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.cursor&&(t.cursor=this.cursor),void 0!==this.pageSize&&(t.pageSize=this.pageSize),t},t}(),X=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.nextCursor&&(t.nextCursor=this.nextCursor),void 0!==this.hasMore&&(t.hasMore=this.hasMore),t},t}(),Z=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.channel&&(o.channel=I(t.ConversationChannel,n.channel)),n.type&&(o.type=I(t.MessageType,n.type)),n.location&&(o.location=I(t.PlatformLocation,n.location)),n.metadata&&(o.metadata=Object.keys(n.metadata).reduce((function(t,i){return t[i]=n.metadata[i],t}),{})),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.senderId&&(t.senderId=this.senderId),void 0!==this.recipientId&&(t.recipientId=this.recipientId),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.body&&(t.body=this.body),void 0!==this.channel&&(t.channel=this.channel),void 0!==this.type&&(t.type=this.type),void 0!==this.location&&(t.location=this.location),void 0!==this.partnerId&&(t.partnerId=this.partnerId),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),void 0!==this.media&&(t.media=this.media),t},i}(),$=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.location&&(o.location=I(t.PlatformLocation,n.location)),n.pagingOptions&&(o.pagingOptions=Q.fromProto(n.pagingOptions)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.partnerId&&(t.partnerId=this.partnerId),void 0!==this.accountGroupId&&(t.accountGroupId=this.accountGroupId),void 0!==this.location&&(t.location=this.location),void 0!==this.searchTerm&&(t.searchTerm=this.searchTerm),void 0!==this.pagingOptions&&null!==this.pagingOptions&&(t.pagingOptions="toApiJson"in this.pagingOptions?this.pagingOptions.toApiJson():this.pagingOptions),t},i}(),tt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i),i.conversations&&(n.conversations=i.conversations.map(b.fromProto)),i.pagingMetadata&&(n.pagingMetadata=X.fromProto(i.pagingMetadata)),n},t.prototype.toApiJson=function(){var t={};return void 0!==this.conversations&&null!==this.conversations&&(t.conversations="toApiJson"in this.conversations?this.conversations.toApiJson():this.conversations),void 0!==this.pagingMetadata&&null!==this.pagingMetadata&&(t.pagingMetadata="toApiJson"in this.pagingMetadata?this.pagingMetadata.toApiJson():this.pagingMetadata),t},t}(),it=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.sender&&(o.sender=m.fromProto(n.sender)),n.recipient&&(o.recipient=m.fromProto(n.recipient)),n.type&&(o.type=I(t.MessageType,n.type)),n.metadata&&(o.metadata=n.metadata.map(z.fromProto)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.sender&&null!==this.sender&&(t.sender="toApiJson"in this.sender?this.sender.toApiJson():this.sender),void 0!==this.recipient&&null!==this.recipient&&(t.recipient="toApiJson"in this.recipient?this.recipient.toApiJson():this.recipient),void 0!==this.conversationId&&(t.conversationId=this.conversationId),void 0!==this.type&&(t.type=this.type),void 0!==this.body&&(t.body=this.body),void 0!==this.metadata&&null!==this.metadata&&(t.metadata="toApiJson"in this.metadata?this.metadata.toApiJson():this.metadata),t},i}(),nt=function(){function t(t){t&&Object.assign(this,t)}return t.fromProto=function(i){var n=new t;return n=Object.assign(n,i)},t.prototype.toApiJson=function(){var t={};return void 0!==this.workflowId&&(t.workflowId=this.workflowId),t},t}(),ot=function(){function i(t){t&&Object.assign(this,t)}return i.fromProto=function(n){var o=new i;return o=Object.assign(o,n),n.status&&(o.status=I(t.MessageStatus,n.status)),o},i.prototype.toApiJson=function(){var t={};return void 0!==this.messageId&&(t.messageId=this.messageId),void 0!==this.participantId&&(t.participantId=this.participantId),void 0!==this.status&&(t.status=this.status),t},i}(),st=function(){function t(t){this.environmentService=t}return t.prototype.host=function(){if(this._host)return this._host;switch(this.environmentService.getEnvironment()){case o.Environment.LOCAL:this._host="conversation-api.vendasta-local.com";break;case o.Environment.TEST:this._host="";break;case o.Environment.DEMO:this._host="conversation-demo.apigateway.co";break;case o.Environment.PROD:this._host="conversation-prod.apigateway.co"}return this._host},t.prototype.httpsHost=function(){if(this._httpsHost)return this._httpsHost;switch(this.environmentService.getEnvironment()){case o.Environment.LOCAL:this._httpsHost="conversation.vendasta-local.com";break;case o.Environment.TEST:this._httpsHost="";break;case o.Environment.DEMO:this._httpsHost="conversation-demo.apigateway.co";break;case o.Environment.PROD:this._httpsHost="conversation-prod.apigateway.co"}return this._httpsHost},t.prototype.hostWithScheme=function(){return(this.environmentService.getEnvironment()===o.Environment.LOCAL?"http://":"https://")+this.host()},t.prototype.httpsHostWithScheme=function(){return(this.environmentService.getEnvironment()===o.Environment.LOCAL?"http://":"https://")+this.httpsHost()},t}();st.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new st(i.ɵɵinject(o.EnvironmentService))},token:st,providedIn:"root"}),st.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],st.ctorParameters=function(){return[{type:o.EnvironmentService}]};var et=function(){function t(t,i){this.http=t,this.hostService=i}return t.prototype.apiOptions=function(){return{headers:new n.HttpHeaders({"Content-Type":"application/json"}),withCredentials:!0}},t.prototype.sendMessage=function(t){var i=t.toApiJson?t:new it(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/SendMessage",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return nt.fromProto(t)})),s.share())},t.prototype.getMessage=function(t){var i=t.toApiJson?t:new L(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMessage",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return d.fromProto(t)})),s.share())},t.prototype.listMessages=function(t){var i=t.toApiJson?t:new H(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/ListMessages",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return Y.fromProto(t)})),s.share())},t.prototype.deleteMessage=function(t){var i=t.toApiJson?t:new R(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/DeleteMessage",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.updateMessageStatus=function(t){var i=t.toApiJson?t:new ot(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/UpdateMessageStatus",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.lookupConversations=function(t){var i=t.toApiJson?t:new W(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/LookupConversations",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return B.fromProto(t)})),s.share())},t.prototype.createConversation=function(t){var i=t.toApiJson?t:new M(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/CreateConversation",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return C.fromProto(t)})),s.share())},t.prototype.deleteConversation=function(t){var i=t.toApiJson?t:new y(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/DeleteConversation",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.receiveMessage=function(t){var i=t.toApiJson?t:new Z(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/ReceiveMessage",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMultiMessages=function(t){var i=t.toApiJson?t:new U(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiMessages",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return F.fromProto(t)})),s.share())},t.prototype.createMultiMessages=function(t){var i=t.toApiJson?t:new J(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/CreateMultiMessages",i.toApiJson(),Object.assign(Object.assign({},this.apiOptions()),{observe:"response"}))},t.prototype.getMultiConversationDetails=function(t){var i=t.toApiJson?t:new j(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiConversationDetails",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return w.fromProto(t)})),s.share())},t.prototype.getMultiParticipants=function(t){var i=t.toApiJson?t:new x(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiParticipants",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return k.fromProto(t)})),s.share())},t.prototype.searchConversations=function(t){var i=t.toApiJson?t:new $(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/SearchConversations",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return tt.fromProto(t)})),s.share())},t.prototype.getMultiConversationMessageCount=function(t){var i=t.toApiJson?t:new D(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/GetMultiConversationMessageCount",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return G.fromProto(t)})),s.share())},t.prototype.addMultiParticipants=function(t){var i=t.toApiJson?t:new O(t);return this.http.post(this.hostService.hostWithScheme()+"/conversation.v1.ConversationService/AddMultiParticipants",i.toApiJson(),this.apiOptions()).pipe(s.map((function(t){return E.fromProto(t)})),s.share())},t}();et.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new et(i.ɵɵinject(n.HttpClient),i.ɵɵinject(st))},token:et,providedIn:"root"}),et.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],et.ctorParameters=function(){return[{type:n.HttpClient},{type:st}]},t.AddMultiParticipantsRequest=O,t.AddMultiParticipantsResponse=E,t.Address=l,t.Conversation=f,t.ConversationApiService=et,t.ConversationMessageCount=P,t.CreateConversationRequest=M,t.CreateConversationResponse=C,t.CreateMultiMessagesRequest=J,t.DeleteConversationRequest=y,t.DeleteMessageRequest=R,t.GetMessageRequest=L,t.GetMultiConversationDetailsRequest=j,t.GetMultiConversationDetailsResponse=w,t.GetMultiConversationDetailsResponseDetailedConversation=N,t.GetMultiConversationMessageCountRequest=D,t.GetMultiConversationMessageCountResponse=G,t.GetMultiConversationMessageCountResponseCountsEntry=S,t.GetMultiMessagesRequest=U,t.GetMultiMessagesResponse=F,t.GetMultiParticipantsRequest=x,t.GetMultiParticipantsResponse=k,t.ListMessagesRequest=H,t.ListMessagesRequestListMessagesFilters=q,t.ListMessagesResponse=Y,t.LookupConversationsRequest=W,t.LookupConversationsRequestLookupConversationsFilters=V,t.LookupConversationsResponse=B,t.LookupConversationsResponseConversations=T,t.Message=d,t.Metadata=z,t.MetadataDataEntry=_,t.PagedRequestOptions=Q,t.PagedResponseMetadata=X,t.Participant=m,t.ParticipantMessageStatus=v,t.ReceiveMessageRequest=Z,t.ReceiveMessageRequestMetadataEntry=K,t.SearchConversationsRequest=$,t.SearchConversationsResponse=tt,t.SearchConversationsResponseDetailedConversation=b,t.SendMessageRequest=it,t.SendMessageResponse=nt,t.UpdateMessageStatusRequest=ot,t.ɵa=st,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=vendasta-conversation.umd.min.js.map
|