@zelloptt/react-native-zello-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +21 -0
- package/android/build.gradle +122 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/zellosdk/DummyPackage.kt +18 -0
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +437 -0
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +198 -0
- package/ios/Extensions/Date+Extension.swift +5 -0
- package/ios/Extensions/UIImage+Extension.swift +9 -0
- package/ios/Extensions/ZelloContact+Extension.swift +52 -0
- package/ios/Extensions/ZelloHistoryAlertMessage+Extension.swift +18 -0
- package/ios/Extensions/ZelloHistoryImageMessage+Extension.swift +17 -0
- package/ios/Extensions/ZelloHistoryLocationMessage+Extension.swift +23 -0
- package/ios/Extensions/ZelloHistoryTextMessage+Extension.swift +18 -0
- package/ios/Extensions/ZelloHistoryVoiceMessage+Extension.swift +18 -0
- package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +285 -0
- package/ios/Extensions/ZelloIncomingEmergency+Extension.swift +16 -0
- package/ios/Extensions/ZelloOutgoingEmergency+Extension.swift +14 -0
- package/ios/Extensions/ZelloRecentEntry+Extension.swift +16 -0
- package/ios/ZelloIOSSdkModule.swift +209 -0
- package/ios/ZelloIOSSdkModuleBridge.h +5 -0
- package/ios/ZelloIOSSdkModuleBridge.m +44 -0
- package/lib/commonjs/events/index.js +43 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/index.js +47 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/sdk/index.js +833 -0
- package/lib/commonjs/sdk/index.js.map +1 -0
- package/lib/commonjs/types/index.js +518 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/utils/algorithms/index.js +79 -0
- package/lib/commonjs/utils/algorithms/index.js.map +1 -0
- package/lib/commonjs/utils/index.js +60 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/events/index.js +39 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/sdk/index.js +829 -0
- package/lib/module/sdk/index.js.map +1 -0
- package/lib/module/types/index.js +547 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/utils/algorithms/index.js +72 -0
- package/lib/module/utils/algorithms/index.js.map +1 -0
- package/lib/module/utils/index.js +52 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/events/index.d.ts +192 -0
- package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/sdk/index.d.ts +221 -0
- package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts +560 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/algorithms/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/utils/algorithms/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/events/index.d.ts +192 -0
- package/lib/typescript/module/src/events/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +6 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/sdk/index.d.ts +221 -0
- package/lib/typescript/module/src/sdk/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/index.d.ts +560 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/algorithms/index.d.ts +21 -0
- package/lib/typescript/module/src/utils/algorithms/index.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +8 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
- package/package.json +195 -0
- package/react-native-zello-sdk.podspec +43 -0
- package/src/events/index.ts +191 -0
- package/src/index.ts +8 -0
- package/src/sdk/index.ts +1038 -0
- package/src/types/index.ts +818 -0
- package/src/utils/algorithms/index.ts +88 -0
- package/src/utils/index.ts +145 -0
package/package.json
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zelloptt/react-native-zello-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Zello SDK for React Native",
|
|
5
|
+
"source": "./src/index",
|
|
6
|
+
"main": "./lib/commonjs/index.js",
|
|
7
|
+
"module": "./lib/module/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
12
|
+
"default": "./lib/module/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
16
|
+
"default": "./lib/commonjs/index.js"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"src",
|
|
22
|
+
"lib",
|
|
23
|
+
"android",
|
|
24
|
+
"ios",
|
|
25
|
+
"cpp",
|
|
26
|
+
"*.podspec",
|
|
27
|
+
"!ios/build",
|
|
28
|
+
"!android/build",
|
|
29
|
+
"!android/gradle",
|
|
30
|
+
"!android/gradlew",
|
|
31
|
+
"!android/gradlew.bat",
|
|
32
|
+
"!android/local.properties",
|
|
33
|
+
"!**/__tests__",
|
|
34
|
+
"!**/__fixtures__",
|
|
35
|
+
"!**/__mocks__",
|
|
36
|
+
"!**/.*",
|
|
37
|
+
"!src/docs",
|
|
38
|
+
"!src/docs/**/*"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"example": "yarn workspace react-native-zello-sdk-example",
|
|
42
|
+
"test": "jest",
|
|
43
|
+
"typecheck": "tsc",
|
|
44
|
+
"format": "eslint \"**/*.ts?(x)\" \"**/*.js?(x)\" --fix && prettier --log-level warn --write \"**/*.ts?(x)\" \"**/*.js?(x)\"",
|
|
45
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
46
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
47
|
+
"prepare": "bob build",
|
|
48
|
+
"release": "release-it",
|
|
49
|
+
"docs": "npx typedoc --out src/docs --entryPointStrategy expand src --exclude \"src/docs/**/*\" --exclude \"src/utils/**/*\""
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"react-native",
|
|
53
|
+
"ios",
|
|
54
|
+
"android"
|
|
55
|
+
],
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/zelloptt/react-native-zello-sdk/react-native-zello-sdk.git"
|
|
59
|
+
},
|
|
60
|
+
"author": "Zello, Inc. <sdk@zello.com> (https://github.com/zelloptt/react-native-zello-sdk)",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/zelloptt/react-native-zello-sdk/react-native-zello-sdk/issues"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/zelloptt/react-native-zello-sdk/react-native-zello-sdk#readme",
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"registry": "https://registry.npmjs.org/"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
71
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
72
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
73
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
74
|
+
"@types/jest": "^29.5.5",
|
|
75
|
+
"@types/lodash": "4.17.7",
|
|
76
|
+
"@types/react": "^18.2.44",
|
|
77
|
+
"commitlint": "^17.0.2",
|
|
78
|
+
"del-cli": "^5.1.0",
|
|
79
|
+
"eslint": "^8.51.0",
|
|
80
|
+
"eslint-config-prettier": "^9.0.0",
|
|
81
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
82
|
+
"jest": "^29.7.0",
|
|
83
|
+
"lodash": "4.17.21",
|
|
84
|
+
"prettier": "^3.0.3",
|
|
85
|
+
"react": "18.2.0",
|
|
86
|
+
"react-native": "0.74.5",
|
|
87
|
+
"react-native-builder-bob": "^0.29.0",
|
|
88
|
+
"release-it": "^15.0.0",
|
|
89
|
+
"turbo": "^1.10.7",
|
|
90
|
+
"typescript": "^5.2.2"
|
|
91
|
+
},
|
|
92
|
+
"resolutions": {
|
|
93
|
+
"@types/react": "^18.2.44"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"react": "*",
|
|
97
|
+
"react-native": "*"
|
|
98
|
+
},
|
|
99
|
+
"workspaces": [
|
|
100
|
+
"example"
|
|
101
|
+
],
|
|
102
|
+
"packageManager": "yarn@3.6.1",
|
|
103
|
+
"jest": {
|
|
104
|
+
"preset": "react-native",
|
|
105
|
+
"modulePathIgnorePatterns": [
|
|
106
|
+
"<rootDir>/example/node_modules",
|
|
107
|
+
"<rootDir>/lib/"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"commitlint": {
|
|
111
|
+
"extends": [
|
|
112
|
+
"@commitlint/config-conventional"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"release-it": {
|
|
116
|
+
"git": {
|
|
117
|
+
"commitMessage": "chore: release ${version}",
|
|
118
|
+
"tagName": "v${version}"
|
|
119
|
+
},
|
|
120
|
+
"npm": {
|
|
121
|
+
"publish": true
|
|
122
|
+
},
|
|
123
|
+
"github": {
|
|
124
|
+
"release": true
|
|
125
|
+
},
|
|
126
|
+
"plugins": {
|
|
127
|
+
"@release-it/conventional-changelog": {
|
|
128
|
+
"preset": "angular"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"eslintConfig": {
|
|
133
|
+
"root": true,
|
|
134
|
+
"extends": [
|
|
135
|
+
"@react-native",
|
|
136
|
+
"prettier"
|
|
137
|
+
],
|
|
138
|
+
"ignorePatterns": ["src/docs"],
|
|
139
|
+
"rules": {
|
|
140
|
+
"no-bitwise": "off",
|
|
141
|
+
"react/react-in-jsx-scope": "off",
|
|
142
|
+
"prettier/prettier": [
|
|
143
|
+
"error",
|
|
144
|
+
{
|
|
145
|
+
"quoteProps": "consistent",
|
|
146
|
+
"singleQuote": true,
|
|
147
|
+
"tabWidth": 2,
|
|
148
|
+
"trailingComma": "es5",
|
|
149
|
+
"useTabs": false
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"eslintIgnore": [
|
|
155
|
+
"node_modules/",
|
|
156
|
+
"lib/"
|
|
157
|
+
],
|
|
158
|
+
"prettier": {
|
|
159
|
+
"quoteProps": "consistent",
|
|
160
|
+
"singleQuote": true,
|
|
161
|
+
"tabWidth": 2,
|
|
162
|
+
"trailingComma": "es5",
|
|
163
|
+
"useTabs": false
|
|
164
|
+
},
|
|
165
|
+
"react-native-builder-bob": {
|
|
166
|
+
"source": "src",
|
|
167
|
+
"output": "lib",
|
|
168
|
+
"targets": [
|
|
169
|
+
[
|
|
170
|
+
"commonjs",
|
|
171
|
+
{
|
|
172
|
+
"esm": true
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
[
|
|
176
|
+
"module",
|
|
177
|
+
{
|
|
178
|
+
"esm": true
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
"typescript",
|
|
183
|
+
{
|
|
184
|
+
"project": "tsconfig.build.json",
|
|
185
|
+
"esm": true
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"create-react-native-library": {
|
|
191
|
+
"type": "module-legacy",
|
|
192
|
+
"languages": "kotlin-swift",
|
|
193
|
+
"version": "0.40.0"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
+
|
|
6
|
+
Pod::Spec.new do |s|
|
|
7
|
+
s.name = "react-native-zello-sdk"
|
|
8
|
+
s.version = package["version"]
|
|
9
|
+
s.summary = package["description"]
|
|
10
|
+
s.homepage = package["homepage"]
|
|
11
|
+
s.license = package["license"]
|
|
12
|
+
s.authors = package["author"]
|
|
13
|
+
|
|
14
|
+
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
+
s.source = { :git => "https://github.com/zelloptt/react-native-zello-sdk/react-native-zello-sdk.git", :tag => "#{s.version}" }
|
|
16
|
+
|
|
17
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
+
|
|
19
|
+
s.dependency 'ZelloSDK', '~> 0.3.1'
|
|
20
|
+
|
|
21
|
+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
22
|
+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
23
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
24
|
+
install_modules_dependencies(s)
|
|
25
|
+
else
|
|
26
|
+
s.dependency "React-Core"
|
|
27
|
+
|
|
28
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
29
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
30
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
31
|
+
s.pod_target_xcconfig = {
|
|
32
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
33
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
34
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
35
|
+
}
|
|
36
|
+
s.dependency "React-Codegen"
|
|
37
|
+
s.dependency "RCT-Folly"
|
|
38
|
+
s.dependency "RCTRequired"
|
|
39
|
+
s.dependency "RCTTypeSafety"
|
|
40
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export enum ZelloEvent {
|
|
2
|
+
/**
|
|
3
|
+
* The connection to the Zello Work network has failed.
|
|
4
|
+
* {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Disconnected | ZelloConnectionState.Disconnected}.
|
|
5
|
+
* @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
|
|
6
|
+
* @param {@link types.ZelloConnectionError | ZelloConnectionError} error The error that caused the connection to fail.
|
|
7
|
+
*/
|
|
8
|
+
CONNECT_FAILED = 'onConnectFailed',
|
|
9
|
+
/**
|
|
10
|
+
* The connection to the Zello Work network has started.
|
|
11
|
+
* {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Connecting | ZelloConnectionState.Connecting}.
|
|
12
|
+
* @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
|
|
13
|
+
* */
|
|
14
|
+
CONNECT_STARTED = 'onConnectStarted',
|
|
15
|
+
/**
|
|
16
|
+
* The connection to the Zello Work network has succeeded.
|
|
17
|
+
* {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Connected | ZelloConnectionState.Connected}.
|
|
18
|
+
* @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
|
|
19
|
+
* */
|
|
20
|
+
CONNECT_SUCCEEDED = 'onConnectSucceeded',
|
|
21
|
+
/**
|
|
22
|
+
* The connection to the Zello Work network has been disconnected.
|
|
23
|
+
* {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Disconnected | ZelloConnectionState.Disconnected}.
|
|
24
|
+
* @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
|
|
25
|
+
*/
|
|
26
|
+
DISCONNECTED = 'onDisconnected',
|
|
27
|
+
/**
|
|
28
|
+
* The connection to the Zello Work network is attempting to reconnect.
|
|
29
|
+
* {@link sdk.Zello.state | Zello.state} will be {@link types.ZelloConnectionState.Reconnecting | ZelloConnectionState.Reconnecting}.
|
|
30
|
+
* @param {@link types.ZelloConnectionState | ZelloConnectionState} state The current state of the connection.
|
|
31
|
+
*/
|
|
32
|
+
RECONNECTING = 'onWillReconnect',
|
|
33
|
+
/**
|
|
34
|
+
* The contact list has been updated.
|
|
35
|
+
* {@link sdk.Zello.users | Zello.users} and @{link sdk.Zello.channels | Zello.channels} will be updated.
|
|
36
|
+
* @param {@link types.ZelloUser | ZelloUser[]} users The list of users.
|
|
37
|
+
* @param {@link types.ZelloChannel | ZelloChannel[]} channels The list of channels.
|
|
38
|
+
*/
|
|
39
|
+
CONTACT_LIST_UPDATED = 'onContactListUpdated',
|
|
40
|
+
/**
|
|
41
|
+
* The selected contact has changed.
|
|
42
|
+
* {@link sdk.Zello.selectedContact | Zello.selectedContact} will be updated.
|
|
43
|
+
* @param {@link types.ZelloContact | ZelloContact} contact The selected contact.
|
|
44
|
+
*/
|
|
45
|
+
SELECTED_CONTACT_CHANGED = 'onSelectedContactChanged',
|
|
46
|
+
/**
|
|
47
|
+
* The account status has changed.
|
|
48
|
+
* {@link sdk.Zello.accountStatus | Zello.accountStatus} will be updated.
|
|
49
|
+
* @param {@link types.ZelloAccountStatus | ZelloAccountStatus} status The current account status.
|
|
50
|
+
*/
|
|
51
|
+
ACCOUNT_STATUS_CHANGED = 'onAccountStatusChanged',
|
|
52
|
+
/**
|
|
53
|
+
* An incoming voice message has started.
|
|
54
|
+
* {@link sdk.Zello.incomingVoiceMessage | Zello.incomingVoiceMessage} will be updated.
|
|
55
|
+
* @param {@link types.ZelloIncomingVoiceMessage | ZelloIncomingVoiceMessage} voiceMessage The incoming voice message.
|
|
56
|
+
*/
|
|
57
|
+
INCOMING_VOICE_MESSAGE_STARTED = 'onIncomingVoiceMessageStarted',
|
|
58
|
+
/**
|
|
59
|
+
* An incoming voice message has stopped.
|
|
60
|
+
* {@link sdk.Zello.incomingVoiceMessage | Zello.incomingVoiceMessage} will be set to undefined.
|
|
61
|
+
* @param {@link types.ZelloIncomingVoiceMessage | ZelloIncomingVoiceMessage} voiceMessage The incoming voice message.
|
|
62
|
+
*/
|
|
63
|
+
INCOMING_VOICE_MESSAGE_STOPPED = 'onIncomingVoiceMessageStopped',
|
|
64
|
+
/**
|
|
65
|
+
* An outgoing voice message is connecting.
|
|
66
|
+
* {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be updated.
|
|
67
|
+
* @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
|
|
68
|
+
*/
|
|
69
|
+
OUTGOING_VOICE_MESSAGE_CONNECTING = 'onOutgoingVoiceMessageConnecting',
|
|
70
|
+
/**
|
|
71
|
+
* An outgoing voice message has started.
|
|
72
|
+
* {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be updated.
|
|
73
|
+
* @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
|
|
74
|
+
*/
|
|
75
|
+
OUTGOING_VOICE_MESSAGE_STARTED = 'onOutgoingVoiceMessageStarted',
|
|
76
|
+
/**
|
|
77
|
+
* An outgoing voice message has stopped.
|
|
78
|
+
* {@link sdk.Zello.outgoingVoiceMessage | Zello.outgoingVoiceMessage} will be set to undefined.
|
|
79
|
+
* @param {@link types.ZelloOutgoingVoiceMessage | ZelloOutgoingVoiceMessage} voiceMessage The outgoing voice message.
|
|
80
|
+
* @param {@link types.ZelloOutgoingVoiceMessageState} error Optional; An error that caused the outgoing voice message to stop.
|
|
81
|
+
*/
|
|
82
|
+
OUTGOING_VOICE_MESSAGE_STOPPED = 'onOutgoingVoiceMessageStopped',
|
|
83
|
+
/**
|
|
84
|
+
* An incoming image message has been received.
|
|
85
|
+
* @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The incoming image message.
|
|
86
|
+
*/
|
|
87
|
+
INCOMING_IMAGE_MESSAGE_RECEIVED = 'onIncomingImageMessage',
|
|
88
|
+
/**
|
|
89
|
+
* An outgoing image message has been sent.
|
|
90
|
+
* @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The outgoing image message.
|
|
91
|
+
*/
|
|
92
|
+
OUTGOING_IMAGE_MESSAGE_SENT = 'onOutgoingImageMessageSent',
|
|
93
|
+
/**
|
|
94
|
+
* An outgoing image message has failed to send.
|
|
95
|
+
* @param {@link types.ZelloImageMessage | ZelloImageMessage} imageMessage The outgoing image message.
|
|
96
|
+
*/
|
|
97
|
+
OUTGOING_IMAGE_MESSAGE_SEND_FAILED = 'onOutgoingImageMessageSendFailed',
|
|
98
|
+
/**
|
|
99
|
+
* An incoming alert message has been received.
|
|
100
|
+
* @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The incoming alert message.
|
|
101
|
+
*/
|
|
102
|
+
INCOMING_ALERT_MESSAGE_RECEIVED = 'onIncomingAlertMessage',
|
|
103
|
+
/**
|
|
104
|
+
* An outgoing alert message has been sent.
|
|
105
|
+
* @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The outgoing alert message.
|
|
106
|
+
*/
|
|
107
|
+
OUTGOING_ALERT_MESSAGE_SENT = 'onOutgoingAlertMessageSent',
|
|
108
|
+
/**
|
|
109
|
+
* An outgoing alert message has failed to send.
|
|
110
|
+
* @param {@link types.ZelloAlertMessage | ZelloAlertMessage} alertMessage The outgoing alert message.
|
|
111
|
+
*/
|
|
112
|
+
OUTGOING_ALERT_MESSAGE_SEND_FAILED = 'onOutgoingAlertMessageSendFailed',
|
|
113
|
+
/**
|
|
114
|
+
* An incoming text message has been received.
|
|
115
|
+
* @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The incoming text message.
|
|
116
|
+
*/
|
|
117
|
+
INCOMING_TEXT_MESSAGE_RECEIVED = 'onIncomingTextMessage',
|
|
118
|
+
/**
|
|
119
|
+
* An outgoing text message has been sent.
|
|
120
|
+
* @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The outgoing text message.
|
|
121
|
+
*/
|
|
122
|
+
OUTGOING_TEXT_MESSAGE_SENT = 'onOutgoingTextMessageSent',
|
|
123
|
+
/**
|
|
124
|
+
* An outgoing text message has failed to send.
|
|
125
|
+
* @param {@link types.ZelloTextMessage | ZelloTextMessage} textMessage The outgoing text message.
|
|
126
|
+
*/
|
|
127
|
+
OUTGOING_TEXT_MESSAGE_SEND_FAILED = 'onOutgoingTextMessageSendFailed',
|
|
128
|
+
/**
|
|
129
|
+
* An incoming location message has been received.
|
|
130
|
+
* @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The incoming location message.
|
|
131
|
+
*/
|
|
132
|
+
INCOMING_LOCATION_MESSAGE_RECEIVED = 'onIncomingLocationMessage',
|
|
133
|
+
/**
|
|
134
|
+
* An outgoing location message has been sent.
|
|
135
|
+
* @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The outgoing location message.
|
|
136
|
+
*/
|
|
137
|
+
OUTGOING_LOCATION_MESSAGE_SENT = 'onOutgoingLocationMessageSent',
|
|
138
|
+
/**
|
|
139
|
+
* An outgoing location message has failed to send.
|
|
140
|
+
* @param {@link types.ZelloLocationMessage | ZelloLocationMessage} locationMessage The outgoing location message.
|
|
141
|
+
*/
|
|
142
|
+
OUTGOING_LOCATION_MESSAGE_SEND_FAILED = 'onOutgoingLocationMessageSendFailed',
|
|
143
|
+
/**
|
|
144
|
+
* An incoming emergency has started.
|
|
145
|
+
* {@link sdk.Zello.incomingEmergencies | Zello.incomingEmergencies} will be updated.
|
|
146
|
+
* @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency} emergency The incoming emergency.
|
|
147
|
+
* @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency[]} emergencies The list of incoming emergencies.
|
|
148
|
+
*/
|
|
149
|
+
INCOMING_EMERGENCY_STARTED = 'onIncomingEmergencyStarted',
|
|
150
|
+
/**
|
|
151
|
+
* An incoming emergency has stopped.
|
|
152
|
+
* {@link sdk.Zello.incomingEmergencies | Zello.incomingEmergencies} will be updated.
|
|
153
|
+
* @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency} emergency The stopped incoming emergency.
|
|
154
|
+
* @param {@link types.ZelloIncomingEmergency | ZelloIncomingEmergency[]} emergencies The list of incoming emergencies.
|
|
155
|
+
*/
|
|
156
|
+
INCOMING_EMERGENCY_STOPPED = 'onIncomingEmergencyStopped',
|
|
157
|
+
/**
|
|
158
|
+
* An outgoing emergency has started.
|
|
159
|
+
* {@link sdk.Zello.outgoingEmergency | Zello.outgoingEmergency} will be updated.
|
|
160
|
+
* @param {@link types.ZelloOutgoingEmergency | ZelloOutgoingEmergency} emergency The outgoing emergency.
|
|
161
|
+
*/
|
|
162
|
+
OUTGOING_EMERGENCY_STARTED = 'onOutgoingEmergencyStarted',
|
|
163
|
+
/**
|
|
164
|
+
* An outgoing emergency has stopped.
|
|
165
|
+
* {@link sdk.Zello.outgoingEmergency | Zello.outgoingEmergency} will be set to undefined.
|
|
166
|
+
* @param {@link types.ZelloOutgoingEmergency | ZelloOutgoingEmergency} emergency The stopped outgoing emergency.
|
|
167
|
+
*/
|
|
168
|
+
OUTGOING_EMERGENCY_STOPPED = 'onOutgoingEmergencyStopped',
|
|
169
|
+
/**
|
|
170
|
+
* The list of recent entries has been updated.
|
|
171
|
+
* {@link sdk.Zello.recents | Zello.recents} will be updated.
|
|
172
|
+
* @param {@link types.ZelloRecentEntry | ZelloRecentEntry[]} recents The list of recent entries.
|
|
173
|
+
*/
|
|
174
|
+
RECENTS_UPDATED = 'onRecentsUpdated',
|
|
175
|
+
/**
|
|
176
|
+
* The history has been updated.
|
|
177
|
+
*/
|
|
178
|
+
HISTORY_UPDATED = 'onHistoryUpdated',
|
|
179
|
+
/**
|
|
180
|
+
* The history playback of a voice message has started.
|
|
181
|
+
* {@link sdk.Zello.historyVoiceMessage | Zello.historyVoiceMessage} will be updated.
|
|
182
|
+
* @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The started history voice message.
|
|
183
|
+
*/
|
|
184
|
+
HISTORY_PLAYBACK_STARTED = 'onHistoryPlaybackStarted',
|
|
185
|
+
/**
|
|
186
|
+
* The history playback of a voice message has stopped.
|
|
187
|
+
* {@link sdk.Zello.historyVoiceMessage | Zello.historyVoiceMessage} will be set to undefined.
|
|
188
|
+
* @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The stopped history voice message.
|
|
189
|
+
*/
|
|
190
|
+
HISTORY_PLAYBACK_STOPPED = 'onHistoryPlaybackStopped',
|
|
191
|
+
}
|