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