@zelloptt/react-native-zello-sdk 2.0.0 → 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.
Files changed (196) hide show
  1. package/README.md +58 -15
  2. package/android/build.gradle +29 -10
  3. package/android/gradle.properties +4 -4
  4. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +93 -68
  5. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +25 -0
  6. package/ios/Extensions/ZelloContact+Extension.swift +26 -3
  7. package/ios/Extensions/ZelloHistoryVoiceMessage+Extension.swift +3 -0
  8. package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +8 -2
  9. package/ios/Extensions/ZelloIncomingEmergency+Extension.swift +1 -0
  10. package/ios/Extensions/ZelloTranscription+Extension.swift +18 -0
  11. package/ios/ZelloIOSSdkModule.swift +24 -7
  12. package/ios/ZelloIOSSdkModuleBridge.m +1 -0
  13. package/ios/ZelloSdkModule.h +8 -0
  14. package/ios/ZelloSdkModule.mm +189 -0
  15. package/ios/ZelloSdkModuleImpl.swift +280 -0
  16. package/lib/commonjs/docs/assets/highlight.css +1 -1
  17. package/lib/commonjs/docs/assets/icons.js +1 -1
  18. package/lib/commonjs/docs/assets/icons.js.map +1 -1
  19. package/lib/commonjs/docs/assets/icons.svg +1 -1
  20. package/lib/commonjs/docs/assets/main.js +220 -288
  21. package/lib/commonjs/docs/assets/main.js.map +1 -1
  22. package/lib/commonjs/docs/assets/navigation.js +1 -1
  23. package/lib/commonjs/docs/assets/navigation.js.map +1 -1
  24. package/lib/commonjs/docs/assets/search.js +1 -1
  25. package/lib/commonjs/docs/assets/search.js.map +1 -1
  26. package/lib/commonjs/docs/assets/style.css +12 -4
  27. package/lib/commonjs/docs/classes/sdk.Zello.html +793 -97
  28. package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +122 -9
  29. package/lib/commonjs/docs/classes/types.ZelloChannel.html +155 -10
  30. package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +86 -4
  31. package/lib/commonjs/docs/classes/types.ZelloDispatchCall.html +90 -6
  32. package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +163 -11
  33. package/lib/commonjs/docs/classes/types.ZelloGroupConversation.html +178 -13
  34. package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +131 -10
  35. package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +123 -9
  36. package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +155 -13
  37. package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +131 -10
  38. package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +145 -10
  39. package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +130 -10
  40. package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +114 -9
  41. package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +124 -8
  42. package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +146 -12
  43. package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +98 -7
  44. package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +120 -9
  45. package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +114 -9
  46. package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +122 -9
  47. package/lib/commonjs/docs/classes/types.ZelloTranscription.html +122 -0
  48. package/lib/commonjs/docs/classes/types.ZelloTranslation.html +91 -0
  49. package/lib/commonjs/docs/classes/types.ZelloUser.html +142 -11
  50. package/lib/commonjs/docs/classes/types.ZelloUserSupportedFeatures.html +82 -5
  51. package/lib/commonjs/docs/enums/events.ZelloEvent.html +563 -95
  52. package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +67 -5
  53. package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +67 -5
  54. package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +68 -3
  55. package/lib/commonjs/docs/enums/types.ZelloChannelType.html +84 -0
  56. package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +68 -3
  57. package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +73 -3
  58. package/lib/commonjs/docs/enums/types.ZelloContactType.html +73 -3
  59. package/lib/commonjs/docs/enums/types.ZelloDispatchCallStatus.html +73 -3
  60. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +63 -3
  61. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +78 -3
  62. package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +78 -3
  63. package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +81 -7
  64. package/lib/commonjs/docs/hierarchy.html +29 -1
  65. package/lib/commonjs/docs/index.html +127 -29
  66. package/lib/commonjs/docs/interfaces/specs_NativeZelloSdk.Spec.html +504 -0
  67. package/lib/commonjs/docs/modules/events.html +37 -1
  68. package/lib/commonjs/docs/modules/index.html +37 -1
  69. package/lib/commonjs/docs/modules/sdk.html +37 -1
  70. package/lib/commonjs/docs/modules/specs_NativeZelloSdk.html +41 -0
  71. package/lib/commonjs/docs/modules/types.html +45 -1
  72. package/lib/commonjs/docs/modules.html +36 -1
  73. package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +114 -9
  74. package/lib/commonjs/docs/types/types.ZelloConfig.html +86 -7
  75. package/lib/commonjs/docs/types/types.ZelloConsoleSettings.html +96 -9
  76. package/lib/commonjs/docs/types/types.ZelloContact.html +80 -6
  77. package/lib/commonjs/docs/types/types.ZelloCredentials.html +75 -6
  78. package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +97 -8
  79. package/lib/commonjs/docs/types/types.ZelloMessage.html +91 -7
  80. package/lib/commonjs/docs/variables/specs_NativeZelloSdk.default.html +34 -0
  81. package/lib/commonjs/events/index.js +217 -0
  82. package/lib/commonjs/events/index.js.map +1 -1
  83. package/lib/commonjs/sdk/index.js +731 -911
  84. package/lib/commonjs/sdk/index.js.map +1 -1
  85. package/lib/commonjs/specs/NativeZelloSdk.js +27 -0
  86. package/lib/commonjs/specs/NativeZelloSdk.js.map +1 -0
  87. package/lib/commonjs/types/index.js +423 -302
  88. package/lib/commonjs/types/index.js.map +1 -1
  89. package/lib/commonjs/utils/index.js +27 -4
  90. package/lib/commonjs/utils/index.js.map +1 -1
  91. package/lib/module/docs/assets/highlight.css +1 -1
  92. package/lib/module/docs/assets/icons.js +1 -1
  93. package/lib/module/docs/assets/icons.js.map +1 -1
  94. package/lib/module/docs/assets/icons.svg +1 -1
  95. package/lib/module/docs/assets/main.js +220 -288
  96. package/lib/module/docs/assets/main.js.map +1 -1
  97. package/lib/module/docs/assets/navigation.js +1 -1
  98. package/lib/module/docs/assets/navigation.js.map +1 -1
  99. package/lib/module/docs/assets/search.js +1 -1
  100. package/lib/module/docs/assets/search.js.map +1 -1
  101. package/lib/module/docs/assets/style.css +12 -4
  102. package/lib/module/docs/classes/sdk.Zello.html +793 -97
  103. package/lib/module/docs/classes/types.ZelloAlertMessage.html +122 -9
  104. package/lib/module/docs/classes/types.ZelloChannel.html +155 -10
  105. package/lib/module/docs/classes/types.ZelloChannelUser.html +86 -4
  106. package/lib/module/docs/classes/types.ZelloDispatchCall.html +90 -6
  107. package/lib/module/docs/classes/types.ZelloDispatchChannel.html +163 -11
  108. package/lib/module/docs/classes/types.ZelloGroupConversation.html +178 -13
  109. package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +131 -10
  110. package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +123 -9
  111. package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +155 -13
  112. package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +131 -10
  113. package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +145 -10
  114. package/lib/module/docs/classes/types.ZelloImageMessage.html +130 -10
  115. package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +114 -9
  116. package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +124 -8
  117. package/lib/module/docs/classes/types.ZelloLocationMessage.html +146 -12
  118. package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +98 -7
  119. package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +120 -9
  120. package/lib/module/docs/classes/types.ZelloRecentEntry.html +114 -9
  121. package/lib/module/docs/classes/types.ZelloTextMessage.html +122 -9
  122. package/lib/module/docs/classes/types.ZelloTranscription.html +122 -0
  123. package/lib/module/docs/classes/types.ZelloTranslation.html +91 -0
  124. package/lib/module/docs/classes/types.ZelloUser.html +142 -11
  125. package/lib/module/docs/classes/types.ZelloUserSupportedFeatures.html +82 -5
  126. package/lib/module/docs/enums/events.ZelloEvent.html +563 -95
  127. package/lib/module/docs/enums/types.ZelloAccountStatus.html +67 -5
  128. package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +67 -5
  129. package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +68 -3
  130. package/lib/module/docs/enums/types.ZelloChannelType.html +84 -0
  131. package/lib/module/docs/enums/types.ZelloConnectionError.html +68 -3
  132. package/lib/module/docs/enums/types.ZelloConnectionState.html +73 -3
  133. package/lib/module/docs/enums/types.ZelloContactType.html +73 -3
  134. package/lib/module/docs/enums/types.ZelloDispatchCallStatus.html +73 -3
  135. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +63 -3
  136. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +78 -3
  137. package/lib/module/docs/enums/types.ZelloRecentEntryType.html +78 -3
  138. package/lib/module/docs/enums/types.ZelloUserStatus.html +81 -7
  139. package/lib/module/docs/hierarchy.html +29 -1
  140. package/lib/module/docs/index.html +127 -29
  141. package/lib/module/docs/interfaces/specs_NativeZelloSdk.Spec.html +504 -0
  142. package/lib/module/docs/modules/events.html +37 -1
  143. package/lib/module/docs/modules/index.html +37 -1
  144. package/lib/module/docs/modules/sdk.html +37 -1
  145. package/lib/module/docs/modules/specs_NativeZelloSdk.html +41 -0
  146. package/lib/module/docs/modules/types.html +45 -1
  147. package/lib/module/docs/modules.html +36 -1
  148. package/lib/module/docs/types/types.ZelloChannelOptions.html +114 -9
  149. package/lib/module/docs/types/types.ZelloConfig.html +86 -7
  150. package/lib/module/docs/types/types.ZelloConsoleSettings.html +96 -9
  151. package/lib/module/docs/types/types.ZelloContact.html +80 -6
  152. package/lib/module/docs/types/types.ZelloCredentials.html +75 -6
  153. package/lib/module/docs/types/types.ZelloHistoryMessage.html +97 -8
  154. package/lib/module/docs/types/types.ZelloMessage.html +91 -7
  155. package/lib/module/docs/variables/specs_NativeZelloSdk.default.html +34 -0
  156. package/lib/module/events/index.js +217 -0
  157. package/lib/module/events/index.js.map +1 -1
  158. package/lib/module/sdk/index.js +730 -912
  159. package/lib/module/sdk/index.js.map +1 -1
  160. package/lib/module/specs/NativeZelloSdk.js +25 -0
  161. package/lib/module/specs/NativeZelloSdk.js.map +1 -0
  162. package/lib/module/types/index.js +378 -301
  163. package/lib/module/types/index.js.map +1 -1
  164. package/lib/module/utils/index.js +27 -5
  165. package/lib/module/utils/index.js.map +1 -1
  166. package/lib/typescript/commonjs/src/events/index.d.ts +9 -0
  167. package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/src/sdk/index.d.ts +10 -0
  169. package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
  170. package/lib/typescript/commonjs/src/specs/NativeZelloSdk.d.ts +55 -0
  171. package/lib/typescript/commonjs/src/specs/NativeZelloSdk.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/types/index.d.ts +106 -4
  173. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  174. package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
  175. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  176. package/lib/typescript/module/src/events/index.d.ts +9 -0
  177. package/lib/typescript/module/src/events/index.d.ts.map +1 -1
  178. package/lib/typescript/module/src/index.d.ts +4 -4
  179. package/lib/typescript/module/src/index.d.ts.map +1 -1
  180. package/lib/typescript/module/src/sdk/index.d.ts +11 -1
  181. package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
  182. package/lib/typescript/module/src/specs/NativeZelloSdk.d.ts +55 -0
  183. package/lib/typescript/module/src/specs/NativeZelloSdk.d.ts.map +1 -0
  184. package/lib/typescript/module/src/types/index.d.ts +106 -4
  185. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  186. package/lib/typescript/module/src/utils/algorithms/index.d.ts +1 -1
  187. package/lib/typescript/module/src/utils/algorithms/index.d.ts.map +1 -1
  188. package/lib/typescript/module/src/utils/index.d.ts +2 -1
  189. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  190. package/package.json +31 -15
  191. package/react-native-zello-sdk.podspec +26 -1
  192. package/src/events/index.ts +9 -0
  193. package/src/sdk/index.ts +106 -226
  194. package/src/specs/NativeZelloSdk.ts +89 -0
  195. package/src/types/index.ts +153 -6
  196. package/src/utils/index.ts +50 -3
@@ -5,49 +5,266 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ZelloEvent = void 0;
7
7
  let ZelloEvent = exports.ZelloEvent = /*#__PURE__*/function (ZelloEvent) {
8
+ /**
9
+ * The connection to the Zello Work network has failed.
10
+ * {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Disconnected | ZelloConnectionState.Disconnected}.
11
+ * @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
12
+ * @param {@link types.ZelloConnectionError | ZelloConnectionError} error The error that caused the connection to fail.
13
+ */
8
14
  ZelloEvent["CONNECT_FAILED"] = "onConnectFailed";
15
+ /**
16
+ * The connection to the Zello Work network has started.
17
+ * {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Connecting | ZelloConnectionState.Connecting}.
18
+ * @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
19
+ * */
9
20
  ZelloEvent["CONNECT_STARTED"] = "onConnectStarted";
21
+ /**
22
+ * The connection to the Zello Work network has succeeded.
23
+ * {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Connected | ZelloConnectionState.Connected}.
24
+ * @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
25
+ * */
10
26
  ZelloEvent["CONNECT_SUCCEEDED"] = "onConnectSucceeded";
27
+ /**
28
+ * The connection to the Zello Work network has been disconnected.
29
+ * {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Disconnected | ZelloConnectionState.Disconnected}.
30
+ * @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
31
+ */
11
32
  ZelloEvent["DISCONNECTED"] = "onDisconnected";
33
+ /**
34
+ * The connection to the Zello Work network is attempting to reconnect.
35
+ * {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Reconnecting | ZelloConnectionState.Reconnecting}.
36
+ * @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
37
+ */
12
38
  ZelloEvent["RECONNECTING"] = "onWillReconnect";
39
+ /**
40
+ * The contact list has been updated.
41
+ * {@link sdk.Zello.users | Zello.users} and {@link sdk.Zello.channels | Zello.channels} will be updated.
42
+ * @param {@link types.ZelloUser | ZelloUser[]} users The list of users.
43
+ * @param {@link types.ZelloChannel | ZelloChannel[]} channels The list of channels.
44
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation[]} groupConversations The list of group conversations.
45
+ */
13
46
  ZelloEvent["CONTACT_LIST_UPDATED"] = "onContactListUpdated";
47
+ /**
48
+ * The selected contact has changed.
49
+ * {@link sdk.Zello.selectedContact | Zello.selectedContact} will be updated.
50
+ * @param {@link types.ZelloContact | ZelloContact} contact The selected contact.
51
+ */
14
52
  ZelloEvent["SELECTED_CONTACT_CHANGED"] = "onSelectedContactChanged";
53
+ /**
54
+ * The account status has changed.
55
+ * {@link sdk.Zello.accountStatus | Zello.accountStatus} will be updated.
56
+ * @param {@link types.ZelloAccountStatus | ZelloAccountStatus} status The current account status.
57
+ */
15
58
  ZelloEvent["ACCOUNT_STATUS_CHANGED"] = "onAccountStatusChanged";
59
+ /**
60
+ * An incoming voice message has started.
61
+ * {@link sdk.Zello.incomingVoiceMessage | Zello.incomingVoiceMessage} will be updated.
62
+ * @param {@link types.ZelloIncomingVoiceMessage | ZelloIncomingVoiceMessage} voiceMessage The incoming voice message.
63
+ */
16
64
  ZelloEvent["INCOMING_VOICE_MESSAGE_STARTED"] = "onIncomingVoiceMessageStarted";
65
+ /**
66
+ * An incoming voice message has stopped.
67
+ * {@link sdk.Zello.incomingVoiceMessage | Zello.incomingVoiceMessage} will be set to undefined.
68
+ * @param {@link types.ZelloIncomingVoiceMessage | ZelloIncomingVoiceMessage} voiceMessage The incoming voice message.
69
+ */
17
70
  ZelloEvent["INCOMING_VOICE_MESSAGE_STOPPED"] = "onIncomingVoiceMessageStopped";
71
+ /**
72
+ * An outgoing voice message is connecting.
73
+ * {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be updated.
74
+ * @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
75
+ */
18
76
  ZelloEvent["OUTGOING_VOICE_MESSAGE_CONNECTING"] = "onOutgoingVoiceMessageConnecting";
77
+ /**
78
+ * An outgoing voice message has started.
79
+ * {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be updated.
80
+ * @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
81
+ */
19
82
  ZelloEvent["OUTGOING_VOICE_MESSAGE_STARTED"] = "onOutgoingVoiceMessageStarted";
83
+ /**
84
+ * An outgoing voice message has stopped.
85
+ * {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be set to undefined.
86
+ * @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
87
+ * @param {@link types.ZelloOutgoingVoiceMessageState} error Optional; An error that caused the outgoing voice message to stop.
88
+ */
20
89
  ZelloEvent["OUTGOING_VOICE_MESSAGE_STOPPED"] = "onOutgoingVoiceMessageStopped";
90
+ /**
91
+ * An incoming image message has been received.
92
+ * @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The incoming image message.
93
+ */
21
94
  ZelloEvent["INCOMING_IMAGE_MESSAGE_RECEIVED"] = "onIncomingImageMessage";
95
+ /**
96
+ * An outgoing image message has been sent.
97
+ * @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The outgoing image message.
98
+ */
22
99
  ZelloEvent["OUTGOING_IMAGE_MESSAGE_SENT"] = "onOutgoingImageMessageSent";
100
+ /**
101
+ * An outgoing image message has failed to send.
102
+ * @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The outgoing image message.
103
+ */
23
104
  ZelloEvent["OUTGOING_IMAGE_MESSAGE_SEND_FAILED"] = "onOutgoingImageMessageSendFailed";
105
+ /**
106
+ * An incoming alert message has been received.
107
+ * @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The incoming alert message.
108
+ */
24
109
  ZelloEvent["INCOMING_ALERT_MESSAGE_RECEIVED"] = "onIncomingAlertMessage";
110
+ /**
111
+ * An outgoing alert message has been sent.
112
+ * @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The outgoing alert message.
113
+ */
25
114
  ZelloEvent["OUTGOING_ALERT_MESSAGE_SENT"] = "onOutgoingAlertMessageSent";
115
+ /**
116
+ * An outgoing alert message has failed to send.
117
+ * @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The outgoing alert message.
118
+ */
26
119
  ZelloEvent["OUTGOING_ALERT_MESSAGE_SEND_FAILED"] = "onOutgoingAlertMessageSendFailed";
120
+ /**
121
+ * An incoming text message has been received.
122
+ * @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The incoming text message.
123
+ */
27
124
  ZelloEvent["INCOMING_TEXT_MESSAGE_RECEIVED"] = "onIncomingTextMessage";
125
+ /**
126
+ * An outgoing text message has been sent.
127
+ * @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The outgoing text message.
128
+ */
28
129
  ZelloEvent["OUTGOING_TEXT_MESSAGE_SENT"] = "onOutgoingTextMessageSent";
130
+ /**
131
+ * An outgoing text message has failed to send.
132
+ * @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The outgoing text message.
133
+ */
29
134
  ZelloEvent["OUTGOING_TEXT_MESSAGE_SEND_FAILED"] = "onOutgoingTextMessageSendFailed";
135
+ /**
136
+ * An incoming location message has been received.
137
+ * @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The incoming location message.
138
+ */
30
139
  ZelloEvent["INCOMING_LOCATION_MESSAGE_RECEIVED"] = "onIncomingLocationMessage";
140
+ /**
141
+ * An outgoing location message has been sent.
142
+ * @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The outgoing location message.
143
+ */
31
144
  ZelloEvent["OUTGOING_LOCATION_MESSAGE_SENT"] = "onOutgoingLocationMessageSent";
145
+ /**
146
+ * An outgoing location message has failed to send.
147
+ * @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The outgoing location message.
148
+ */
32
149
  ZelloEvent["OUTGOING_LOCATION_MESSAGE_SEND_FAILED"] = "onOutgoingLocationMessageSendFailed";
150
+ /**
151
+ * An incoming emergency has started.
152
+ * {@link sdk.Zello.incomingEmergencies | Zello.incomingEmergencies} will be updated.
153
+ * @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency} emergency The incoming emergency.
154
+ * @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency[]} emergencies The list of incoming emergencies.
155
+ */
33
156
  ZelloEvent["INCOMING_EMERGENCY_STARTED"] = "onIncomingEmergencyStarted";
157
+ /**
158
+ * An incoming emergency has stopped.
159
+ * {@link sdk.Zello.incomingEmergencies | Zello.incomingEmergencies} will be updated.
160
+ * @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency} emergency The stopped incoming emergency.
161
+ * @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency[]} emergencies The list of incoming emergencies.
162
+ */
34
163
  ZelloEvent["INCOMING_EMERGENCY_STOPPED"] = "onIncomingEmergencyStopped";
164
+ /**
165
+ * An outgoing emergency has started.
166
+ * {@link sdk.Zello.outgoingEmergency | Zello.outgoingEmergency} will be updated.
167
+ * @param {@link types.ZelloOutgoingEmergency | ZelloOutgoingEmergency} emergency The outgoing emergency.
168
+ */
35
169
  ZelloEvent["OUTGOING_EMERGENCY_STARTED"] = "onOutgoingEmergencyStarted";
170
+ /**
171
+ * An outgoing emergency has stopped.
172
+ * {@link sdk.Zello.outgoingEmergency | Zello.outgoingEmergency} will be set to undefined.
173
+ * @param {@link types.ZelloOutgoingEmergency | ZelloOutgoingEmergency} emergency The stopped outgoing emergency.
174
+ */
36
175
  ZelloEvent["OUTGOING_EMERGENCY_STOPPED"] = "onOutgoingEmergencyStopped";
176
+ /**
177
+ * The list of recent entries has been updated.
178
+ * {@link sdk.Zello.recents | Zello.recents} will be updated.
179
+ * @param {@link types.ZelloRecentEntry | ZelloRecentEntry[]} recents The list of recent entries.
180
+ */
37
181
  ZelloEvent["RECENTS_UPDATED"] = "onRecentsUpdated";
182
+ /**
183
+ * The history has been updated.
184
+ */
38
185
  ZelloEvent["HISTORY_UPDATED"] = "onHistoryUpdated";
186
+ /**
187
+ * The history playback of a voice message has started.
188
+ * {@link sdk.Zello.historyVoiceMessage | Zello.historyVoiceMessage} will be updated.
189
+ * @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The started history voice message.
190
+ */
39
191
  ZelloEvent["HISTORY_PLAYBACK_STARTED"] = "onHistoryPlaybackStarted";
192
+ /**
193
+ * The history playback of a voice message has stopped.
194
+ * {@link sdk.Zello.historyVoiceMessage | Zello.historyVoiceMessage} will be set to undefined.
195
+ * @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The stopped history voice message.
196
+ */
40
197
  ZelloEvent["HISTORY_PLAYBACK_STOPPED"] = "onHistoryPlaybackStopped";
198
+ /**
199
+ * A successful transcription has been received for a voice history message.
200
+ *
201
+ * Transcriptions are produced asynchronously by the Zello server after a voice message has
202
+ * finished sending or receiving, so this event may arrive seconds or longer after the original
203
+ * voice message appears in the history.
204
+ * @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The voice history message whose transcription was just received.
205
+ */
206
+ ZelloEvent["HISTORY_VOICE_MESSAGE_TRANSCRIPTION_AVAILABLE"] = "onHistoryVoiceMessageTranscriptionAvailable";
207
+ /**
208
+ * A dispatch call has been received by the server and is pending acceptance by a dispatcher.
209
+ * @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The pending dispatch call.
210
+ */
41
211
  ZelloEvent["DISPATCH_CALL_PENDING"] = "onDispatchCallPending";
212
+ /**
213
+ * A dispatch call has been accepted by a dispatcher.
214
+ * @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The accepted dispatch call.
215
+ */
42
216
  ZelloEvent["DISPATCH_CALL_ACTIVE"] = "onDispatchCallActive";
217
+ /**
218
+ * A dispatch call has been transferred to another dispatcher.
219
+ * @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The transferred dispatch call.
220
+ */
43
221
  ZelloEvent["DISPATCH_CALL_TRANSFERRED"] = "onDispatchCallTransferred";
222
+ /**
223
+ * A dispatch call has ended.
224
+ * @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The ended dispatch call.
225
+ */
44
226
  ZelloEvent["DISPATCH_CALL_ENDED"] = "onDispatchCallEnded";
227
+ /**
228
+ * The console settings have changed.
229
+ * {@link sdk.Zello.consoleSettings | Zello.consoleSettings} will contain the updated console settings.
230
+ * @param {@link types.ZelloConsoleSettings | ZelloConsoleSettings} settings The updated console settings.
231
+ */
45
232
  ZelloEvent["CONSOLE_SETTINGS_CHANGED"] = "onConsoleSettingsChanged";
233
+ /**
234
+ * A group conversation has been created.
235
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
236
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The created group conversation.
237
+ */
46
238
  ZelloEvent["GROUP_CONVERSATION_CREATED"] = "onGroupConversationCreated";
239
+ /**
240
+ * The user has been invited to a group conversation.
241
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
242
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
243
+ */
47
244
  ZelloEvent["GROUP_CONVERSATION_INVITE"] = "onGroupConversationInvite";
245
+ /**
246
+ * A group conversation has new users added.
247
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
248
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
249
+ */
48
250
  ZelloEvent["GROUP_CONVERSATION_USERS_ADDED"] = "onGroupConversationUsersAdded";
251
+ /**
252
+ * Users left a group conversation.
253
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
254
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
255
+ */
49
256
  ZelloEvent["GROUP_CONVERSATION_USERS_LEFT"] = "onGroupConversationUsersLeft";
257
+ /**
258
+ * The user has left a group conversation.
259
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
260
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
261
+ */
50
262
  ZelloEvent["GROUP_CONVERSATION_LEFT"] = "onGroupConversationLeft";
263
+ /**
264
+ * A group conversation has been renamed.
265
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
266
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
267
+ */
51
268
  ZelloEvent["GROUP_CONVERSATION_RENAMED"] = "onGroupConversationRenamed";
52
269
  return ZelloEvent;
53
270
  }({});
@@ -1 +1 @@
1
- {"version":3,"names":["ZelloEvent","exports"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;;;;;IAAYA,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ZelloEvent","exports"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;;;;;IAAYA,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EACpB;AACF;AACA;AACA;AACA;AACA;EANYA,UAAU;EAQpB;AACF;AACA;AACA;AACA;EAZYA,UAAU;EAcpB;AACF;AACA;AACA;AACA;EAlBYA,UAAU;EAoBpB;AACF;AACA;AACA;AACA;EAxBYA,UAAU;EA0BpB;AACF;AACA;AACA;AACA;EA9BYA,UAAU;EAgCpB;AACF;AACA;AACA;AACA;AACA;AACA;EAtCYA,UAAU;EAwCpB;AACF;AACA;AACA;AACA;EA5CYA,UAAU;EA8CpB;AACF;AACA;AACA;AACA;EAlDYA,UAAU;EAoDpB;AACF;AACA;AACA;AACA;EAxDYA,UAAU;EA0DpB;AACF;AACA;AACA;AACA;EA9DYA,UAAU;EAgEpB;AACF;AACA;AACA;AACA;EApEYA,UAAU;EAsEpB;AACF;AACA;AACA;AACA;EA1EYA,UAAU;EA4EpB;AACF;AACA;AACA;AACA;AACA;EAjFYA,UAAU;EAmFpB;AACF;AACA;AACA;EAtFYA,UAAU;EAwFpB;AACF;AACA;AACA;EA3FYA,UAAU;EA6FpB;AACF;AACA;AACA;EAhGYA,UAAU;EAkGpB;AACF;AACA;AACA;EArGYA,UAAU;EAuGpB;AACF;AACA;AACA;EA1GYA,UAAU;EA4GpB;AACF;AACA;AACA;EA/GYA,UAAU;EAiHpB;AACF;AACA;AACA;EApHYA,UAAU;EAsHpB;AACF;AACA;AACA;EAzHYA,UAAU;EA2HpB;AACF;AACA;AACA;EA9HYA,UAAU;EAgIpB;AACF;AACA;AACA;EAnIYA,UAAU;EAqIpB;AACF;AACA;AACA;EAxIYA,UAAU;EA0IpB;AACF;AACA;AACA;EA7IYA,UAAU;EA+IpB;AACF;AACA;AACA;AACA;AACA;EApJYA,UAAU;EAsJpB;AACF;AACA;AACA;AACA;AACA;EA3JYA,UAAU;EA6JpB;AACF;AACA;AACA;AACA;EAjKYA,UAAU;EAmKpB;AACF;AACA;AACA;AACA;EAvKYA,UAAU;EAyKpB;AACF;AACA;AACA;AACA;EA7KYA,UAAU;EA+KpB;AACF;AACA;EAjLYA,UAAU;EAmLpB;AACF;AACA;AACA;AACA;EAvLYA,UAAU;EAyLpB;AACF;AACA;AACA;AACA;EA7LYA,UAAU;EA+LpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EAtMYA,UAAU;EAwMpB;AACF;AACA;AACA;EA3MYA,UAAU;EA6MpB;AACF;AACA;AACA;EAhNYA,UAAU;EAkNpB;AACF;AACA;AACA;EArNYA,UAAU;EAuNpB;AACF;AACA;AACA;EA1NYA,UAAU;EA4NpB;AACF;AACA;AACA;AACA;EAhOYA,UAAU;EAkOpB;AACF;AACA;AACA;AACA;EAtOYA,UAAU;EAwOpB;AACF;AACA;AACA;AACA;EA5OYA,UAAU;EA8OpB;AACF;AACA;AACA;AACA;EAlPYA,UAAU;EAoPpB;AACF;AACA;AACA;AACA;EAxPYA,UAAU;EA0PpB;AACF;AACA;AACA;AACA;EA9PYA,UAAU;EAgQpB;AACF;AACA;AACA;AACA;EApQYA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}