@zelloptt/react-native-zello-sdk 0.4.0 → 1.0.1
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/README.md +9 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +103 -29
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +53 -8
- package/ios/Extensions/ZelloConsoleSettings+Extension.swift +6 -1
- package/ios/Extensions/ZelloContact+Extension.swift +51 -0
- package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +49 -9
- package/ios/ZelloIOSSdkModule.swift +88 -27
- package/ios/ZelloIOSSdkModuleBridge.m +22 -11
- package/lib/commonjs/docs/assets/navigation.js +1 -1
- package/lib/commonjs/docs/assets/navigation.js.map +1 -1
- package/lib/commonjs/docs/assets/search.js +1 -1
- package/lib/commonjs/docs/assets/search.js.map +1 -1
- package/lib/commonjs/docs/classes/sdk.Zello.html +69 -45
- package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloChannel.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +5 -4
- package/lib/commonjs/docs/classes/types.ZelloDispatchCall.html +4 -4
- package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloGroupConversation.html +24 -0
- package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
- package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
- package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +10 -10
- package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
- package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloUser.html +10 -8
- package/lib/commonjs/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
- package/lib/commonjs/docs/enums/events.ZelloEvent.html +107 -82
- package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloContactType.html +4 -2
- package/lib/commonjs/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/commonjs/docs/index.html +7 -4
- package/lib/commonjs/docs/modules/events.html +1 -1
- package/lib/commonjs/docs/modules/index.html +4 -2
- package/lib/commonjs/docs/modules/sdk.html +1 -1
- package/lib/commonjs/docs/modules/types.html +4 -2
- package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/commonjs/docs/types/types.ZelloConfig.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloConsoleSettings.html +8 -0
- package/lib/commonjs/docs/types/types.ZelloContact.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloCredentials.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloMessage.html +1 -1
- package/lib/commonjs/events/index.js +6 -0
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/sdk/index.js +195 -47
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/types/index.js +56 -12
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +41 -10
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/docs/assets/navigation.js +1 -1
- package/lib/module/docs/assets/navigation.js.map +1 -1
- package/lib/module/docs/assets/search.js +1 -1
- package/lib/module/docs/assets/search.js.map +1 -1
- package/lib/module/docs/classes/sdk.Zello.html +69 -45
- package/lib/module/docs/classes/types.ZelloAlertMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloChannel.html +8 -8
- package/lib/module/docs/classes/types.ZelloChannelUser.html +5 -4
- package/lib/module/docs/classes/types.ZelloDispatchCall.html +4 -4
- package/lib/module/docs/classes/types.ZelloDispatchChannel.html +9 -9
- package/lib/module/docs/classes/types.ZelloGroupConversation.html +24 -0
- package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
- package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloImageMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +7 -7
- package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
- package/lib/module/docs/classes/types.ZelloLocationMessage.html +10 -10
- package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
- package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloRecentEntry.html +7 -7
- package/lib/module/docs/classes/types.ZelloTextMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloUser.html +10 -8
- package/lib/module/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
- package/lib/module/docs/enums/events.ZelloEvent.html +107 -82
- package/lib/module/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
- package/lib/module/docs/enums/types.ZelloConnectionError.html +2 -2
- package/lib/module/docs/enums/types.ZelloConnectionState.html +2 -2
- package/lib/module/docs/enums/types.ZelloContactType.html +4 -2
- package/lib/module/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
- package/lib/module/docs/enums/types.ZelloRecentEntryType.html +2 -2
- package/lib/module/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/module/docs/index.html +7 -4
- package/lib/module/docs/modules/events.html +1 -1
- package/lib/module/docs/modules/index.html +4 -2
- package/lib/module/docs/modules/sdk.html +1 -1
- package/lib/module/docs/modules/types.html +4 -2
- package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/module/docs/types/types.ZelloConfig.html +1 -1
- package/lib/module/docs/types/types.ZelloConsoleSettings.html +8 -0
- package/lib/module/docs/types/types.ZelloContact.html +1 -1
- package/lib/module/docs/types/types.ZelloCredentials.html +1 -1
- package/lib/module/docs/types/types.ZelloHistoryMessage.html +1 -1
- package/lib/module/docs/types/types.ZelloMessage.html +1 -1
- package/lib/module/events/index.js +6 -0
- package/lib/module/events/index.js.map +1 -1
- package/lib/module/sdk/index.js +197 -49
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/types/index.js +57 -11
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/utils/index.js +41 -11
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/events/index.d.ts +38 -1
- package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sdk/index.d.ts +38 -4
- package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +66 -10
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/events/index.d.ts +38 -1
- package/lib/typescript/module/src/events/index.d.ts.map +1 -1
- package/lib/typescript/module/src/sdk/index.d.ts +38 -4
- package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +66 -10
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +2 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/react-native-zello-sdk.podspec +1 -1
- package/src/events/index.ts +37 -0
- package/src/sdk/index.ts +237 -50
- package/src/types/index.ts +90 -12
- package/src/utils/index.ts +65 -20
- package/lib/commonjs/docs/classes/types.ZelloConsoleSettings.html +0 -5
- package/lib/module/docs/classes/types.ZelloConsoleSettings.html +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,kBAAkB,EAElB,YAAY,EACZ,sBAAsB,EACtB,WAAW,EAEX,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EAEZ,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,mBAA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OAAO,EAAE,wBAAwB;IAgB3D;;;OAGG;IACI,0BAA0B;IAQjC;;;;OAIG;IACI,kCAAkC,CACvC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAoB9B;;;;;;;OAOG;IACI,eAAe,CAAC,OAAO,EAAE,oBAAoB;IAQpD;;;;;OAKG;IACI,uBAAuB,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM;IAiBvE;;;;;OAKG;IACI,2BAA2B,CAChC,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,SAAS,EAAE;IAkBpB;;;;OAIG;IACI,sBAAsB,CAAC,iBAAiB,EAAE,sBAAsB;IAWvE;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAiB,EAAE,sBAAsB,EACzC,IAAI,EAAE,MAAM;IAed,OAAO,CAAC,kBAAkB;IA0lB1B,OAAO,CAAC,wBAAwB;IA0BhC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,MAAM,CAAC,MAAM;CAMtB"}
|
|
@@ -22,7 +22,9 @@ export type ZelloContact = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare enum ZelloContactType {
|
|
24
24
|
User = "user",
|
|
25
|
-
Channel = "channel"
|
|
25
|
+
Channel = "channel",
|
|
26
|
+
DispatchChannel = "dispatchChannel",
|
|
27
|
+
GroupConversation = "groupConversation"
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* The status of a {@link ZelloUser}.
|
|
@@ -68,7 +70,21 @@ export declare class ZelloUser implements ZelloContact {
|
|
|
68
70
|
* This can be used for displaying a smaller version of the profile picture (such as in a list).
|
|
69
71
|
*/
|
|
70
72
|
profilePictureThumbnailUrl: string | undefined;
|
|
71
|
-
|
|
73
|
+
/**
|
|
74
|
+
* The supported features of the user.
|
|
75
|
+
*/
|
|
76
|
+
supportedFeatures: ZelloUserSupportedFeatures;
|
|
77
|
+
constructor(name: string, displayName: string, isMuted: boolean, status: ZelloUserStatus, profilePictureUrl: string | undefined, profilePictureThumbnailUrl: string | undefined, supportedFeatures: ZelloUserSupportedFeatures);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The supported features of a {@link ZelloUser}.
|
|
81
|
+
*/
|
|
82
|
+
export declare class ZelloUserSupportedFeatures {
|
|
83
|
+
/**
|
|
84
|
+
* Whether the user supports group conversations.
|
|
85
|
+
*/
|
|
86
|
+
readonly groupConversations: boolean;
|
|
87
|
+
constructor(groupConversations: boolean);
|
|
72
88
|
}
|
|
73
89
|
/**
|
|
74
90
|
* A Zello channel. A channel contains multiple users.
|
|
@@ -124,6 +140,26 @@ export declare enum ZelloDispatchCallStatus {
|
|
|
124
140
|
Ended = "ended",
|
|
125
141
|
Disconnected = "disconnected"
|
|
126
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* A ad-hoc group conversation in Zello. A {@link ZelloGroupConversation} is a type of {@link ZelloChannel}, but the provisioning is done by the end user instead of through the Zello Work Administrative Console.
|
|
145
|
+
*
|
|
146
|
+
* {@link ZelloGroupConversation}s are only possible when {@link ZelloConsoleSettings.allowGroupConversations} is true.
|
|
147
|
+
*/
|
|
148
|
+
export declare class ZelloGroupConversation extends ZelloChannel {
|
|
149
|
+
/**
|
|
150
|
+
* The display name of the group conversation. This should be used in the UI instead of {@link ZelloChannel#name}, as the {@link ZelloChannel#name} will be a uniquely hashed value starting with c##.
|
|
151
|
+
*/
|
|
152
|
+
readonly displayName: string;
|
|
153
|
+
/**
|
|
154
|
+
* The users in the group conversation.
|
|
155
|
+
*/
|
|
156
|
+
readonly users: ZelloChannelUser[];
|
|
157
|
+
/**
|
|
158
|
+
* The users in the group conversation that are currently online.
|
|
159
|
+
*/
|
|
160
|
+
readonly onlineUsers: ZelloChannelUser[];
|
|
161
|
+
constructor(name: string, isMuted: boolean, connectionStatus: ZelloChannelConnectionStatus, usersOnline: number, options: ZelloChannelOptions, displayName: string, users: ZelloChannelUser[], onlineUsers: ZelloChannelUser[]);
|
|
162
|
+
}
|
|
127
163
|
/**
|
|
128
164
|
* The connection status of a {@link ZelloChannel}.
|
|
129
165
|
*/
|
|
@@ -155,7 +191,7 @@ export type ZelloChannelOptions = {
|
|
|
155
191
|
* Whether the user is allowed to send alert messages to the channel.
|
|
156
192
|
* When this is true, you should not show any UI to allow the user to send alert messages to the channel.
|
|
157
193
|
*/
|
|
158
|
-
|
|
194
|
+
allowAlertMessages: boolean;
|
|
159
195
|
/**
|
|
160
196
|
* Whether the user is allowed to send text messages to the channel.
|
|
161
197
|
* When this is true, you should not show any UI to allow the user to send text messages to the channel.
|
|
@@ -165,14 +201,15 @@ export type ZelloChannelOptions = {
|
|
|
165
201
|
* Whether the user is allowed to send location messages to the channel.
|
|
166
202
|
* When this is true, you should not show any UI to allow the user to send location messages to the channel.
|
|
167
203
|
*/
|
|
168
|
-
|
|
204
|
+
allowLocationMessages: boolean;
|
|
169
205
|
};
|
|
170
206
|
/**
|
|
171
|
-
* A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not
|
|
207
|
+
* A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not be part of your contact list.
|
|
172
208
|
*/
|
|
173
209
|
export declare class ZelloChannelUser {
|
|
174
210
|
name: string;
|
|
175
|
-
|
|
211
|
+
displayName: string;
|
|
212
|
+
constructor(name: string, displayName: string);
|
|
176
213
|
}
|
|
177
214
|
/**
|
|
178
215
|
* The credentials required to connect to Zello.
|
|
@@ -597,11 +634,30 @@ export type ZelloConfig = {
|
|
|
597
634
|
/**
|
|
598
635
|
* Settings for the network. These are configured via the Zello Work Administrative Console.
|
|
599
636
|
*/
|
|
600
|
-
export
|
|
637
|
+
export type ZelloConsoleSettings = {
|
|
601
638
|
/**
|
|
602
639
|
* Allow non-dispatchers to end calls. When this is false, you should not show any UI to allow non-dispatchers to end calls.
|
|
603
640
|
*/
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
641
|
+
allowNonDispatchersToEndCalls: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* Allow image messages. When this is false, you should not show any UI to allow users to send image messages.
|
|
644
|
+
*/
|
|
645
|
+
allowImageMessages: boolean;
|
|
646
|
+
/**
|
|
647
|
+
* Allow alert messages. When this is false, you should not show any UI to allow users to send alert messages.
|
|
648
|
+
*/
|
|
649
|
+
allowAlertMessages: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* Allow location messages. When this is false, you should not show any UI to allow users to send location messages.
|
|
652
|
+
*/
|
|
653
|
+
allowLocationMessages: boolean;
|
|
654
|
+
/**
|
|
655
|
+
* Allow text messages. When this is false, you should not show any UI to allow users to send text messages.
|
|
656
|
+
*/
|
|
657
|
+
allowTextMessages: boolean;
|
|
658
|
+
/**
|
|
659
|
+
* Allow group conversations. When this is false, you should not show any UI to allow users to create group conversations.
|
|
660
|
+
*/
|
|
661
|
+
allowGroupConversations: boolean;
|
|
662
|
+
};
|
|
607
663
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;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IACI,QAAQ,EAAE,MAAM,CAAC;IACxB;;OAEG;IACI,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGjC,OAAO,EAAE,YAAY,EACrB,WAAW,EAAE,gBAAgB,GAAG,SAAS,EACzC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,SAAS;CAY9B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE;QACP;;;WAGG;QACH,qCAAqC,EAAE,OAAO,CAAC;QAC/C;;;;WAIG;QACH,uBAAuB,EAAE,OAAO,CAAC;KAClC,CAAC;IACF,GAAG,EAAE;QACH;;WAEG;QACH,YAAY,EAAE,OAAO,CAAC;QACtB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,6BAA6B,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZelloConsoleSettings, ZelloContact, ZelloDispatchCall, ZelloHistoryMessage, ZelloIncomingEmergency } from '../types';
|
|
1
|
+
import { ZelloChannelUser, ZelloConsoleSettings, ZelloContact, ZelloDispatchCall, ZelloHistoryMessage, ZelloIncomingEmergency } from '../types';
|
|
2
2
|
export declare const isSameContact: (a: ZelloContact, b: ZelloContact) => boolean;
|
|
3
3
|
export declare const isAndroid: boolean;
|
|
4
4
|
export declare const isiOS: boolean;
|
|
@@ -7,4 +7,5 @@ export declare function bridgeIncomingEmergencyToSdkIncomingEmergency(emergency:
|
|
|
7
7
|
export declare function bridgeHistoryMessageToSdkHistoryMessage(message: any): ZelloHistoryMessage | undefined;
|
|
8
8
|
export declare function bridgeCallToSdkCall(call: any): ZelloDispatchCall | undefined;
|
|
9
9
|
export declare function bridgeConsoleSettingsToSdkConsoleSettings(settings: any): ZelloConsoleSettings | undefined;
|
|
10
|
+
export declare function bridgeChannelUserToSdkChannelUser(channelUser: any): ZelloChannelUser | undefined;
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EAOjB,mBAAmB,EAGnB,sBAAsB,EAIvB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,MAAO,YAAY,KAAK,YAAY,KAAG,OACG,CAAC;AAErE,eAAO,MAAM,SAAS,SAA4B,CAAC;AACnD,eAAO,MAAM,KAAK,SAAwB,CAAC;AAE3C,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,GAAG,GAChB,YAAY,GAAG,SAAS,CA2F1B;AAED,wBAAgB,6CAA6C,CAC3D,SAAS,EAAE,GAAG,GACb,sBAAsB,GAAG,SAAS,CAapC;AAED,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,GAAG,GACX,mBAAmB,GAAG,SAAS,CAwDjC;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,GAAG,SAAS,CAS5E;AAED,wBAAgB,yCAAyC,CACvD,QAAQ,EAAE,GAAG,GACZ,oBAAoB,GAAG,SAAS,CAYlC;AAED,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,GAAG,GACf,gBAAgB,GAAG,SAAS,CAQ9B"}
|
|
@@ -35,6 +35,7 @@ export declare enum ZelloEvent {
|
|
|
35
35
|
* {@link sdk.Zello.users | Zello.users} and {@link sdk.Zello.channels | Zello.channels} will be updated.
|
|
36
36
|
* @param {@link types.ZelloUser | ZelloUser[]} users The list of users.
|
|
37
37
|
* @param {@link types.ZelloChannel | ZelloChannel[]} channels The list of channels.
|
|
38
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation[]} groupConversations The list of group conversations.
|
|
38
39
|
*/
|
|
39
40
|
CONTACT_LIST_UPDATED = "onContactListUpdated",
|
|
40
41
|
/**
|
|
@@ -213,6 +214,42 @@ export declare enum ZelloEvent {
|
|
|
213
214
|
* {@link sdk.Zello.consoleSettings | Zello.consoleSettings} will contain the updated console settings.
|
|
214
215
|
* @param {@link types.ZelloConsoleSettings | ZelloConsoleSettings} settings The updated console settings.
|
|
215
216
|
*/
|
|
216
|
-
CONSOLE_SETTINGS_CHANGED = "onConsoleSettingsChanged"
|
|
217
|
+
CONSOLE_SETTINGS_CHANGED = "onConsoleSettingsChanged",
|
|
218
|
+
/**
|
|
219
|
+
* A group conversation has been created.
|
|
220
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
221
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The created group conversation.
|
|
222
|
+
*/
|
|
223
|
+
GROUP_CONVERSATION_CREATED = "onGroupConversationCreated",
|
|
224
|
+
/**
|
|
225
|
+
* The user has been invited to a group conversation.
|
|
226
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
227
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
228
|
+
*/
|
|
229
|
+
GROUP_CONVERSATION_INVITE = "onGroupConversationInvite",
|
|
230
|
+
/**
|
|
231
|
+
* A group conversation has new users added.
|
|
232
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
233
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
234
|
+
*/
|
|
235
|
+
GROUP_CONVERSATION_USERS_ADDED = "onGroupConversationUsersAdded",
|
|
236
|
+
/**
|
|
237
|
+
* Users left a group conversation.
|
|
238
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
239
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
240
|
+
*/
|
|
241
|
+
GROUP_CONVERSATION_USERS_LEFT = "onGroupConversationUsersLeft",
|
|
242
|
+
/**
|
|
243
|
+
* The user has left a group conversation.
|
|
244
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
245
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
246
|
+
*/
|
|
247
|
+
GROUP_CONVERSATION_LEFT = "onGroupConversationLeft",
|
|
248
|
+
/**
|
|
249
|
+
* A group conversation has been renamed.
|
|
250
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
251
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
252
|
+
*/
|
|
253
|
+
GROUP_CONVERSATION_RENAMED = "onGroupConversationRenamed"
|
|
217
254
|
}
|
|
218
255
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/events/index.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;;;;OAKG;IACH,cAAc,oBAAoB;IAClC;;;;SAIK;IACL,eAAe,qBAAqB;IACpC;;;;SAIK;IACL,iBAAiB,uBAAuB;IACxC;;;;OAIG;IACH,YAAY,mBAAmB;IAC/B;;;;OAIG;IACH,YAAY,oBAAoB;IAChC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/events/index.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;;;;OAKG;IACH,cAAc,oBAAoB;IAClC;;;;SAIK;IACL,eAAe,qBAAqB;IACpC;;;;SAIK;IACL,iBAAiB,uBAAuB;IACxC;;;;OAIG;IACH,YAAY,mBAAmB;IAC/B;;;;OAIG;IACH,YAAY,oBAAoB;IAChC;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,sBAAsB,2BAA2B;IACjD;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,iCAAiC,qCAAqC;IACtE;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;;OAKG;IACH,8BAA8B,kCAAkC;IAChE;;;OAGG;IACH,+BAA+B,2BAA2B;IAC1D;;;OAGG;IACH,2BAA2B,+BAA+B;IAC1D;;;OAGG;IACH,kCAAkC,qCAAqC;IACvE;;;OAGG;IACH,+BAA+B,2BAA2B;IAC1D;;;OAGG;IACH,2BAA2B,+BAA+B;IAC1D;;;OAGG;IACH,kCAAkC,qCAAqC;IACvE;;;OAGG;IACH,8BAA8B,0BAA0B;IACxD;;;OAGG;IACH,0BAA0B,8BAA8B;IACxD;;;OAGG;IACH,iCAAiC,oCAAoC;IACrE;;;OAGG;IACH,kCAAkC,8BAA8B;IAChE;;;OAGG;IACH,8BAA8B,kCAAkC;IAChE;;;OAGG;IACH,qCAAqC,wCAAwC;IAC7E;;;;;OAKG;IACH,0BAA0B,+BAA+B;IACzD;;;;;OAKG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,eAAe,qBAAqB;IACpC;;OAEG;IACH,eAAe,qBAAqB;IACpC;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;OAGG;IACH,qBAAqB,0BAA0B;IAC/C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,yBAAyB,8BAA8B;IACvD;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,yBAAyB,8BAA8B;IACvD;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,6BAA6B,iCAAiC;IAC9D;;;;OAIG;IACH,uBAAuB,4BAA4B;IACnD;;;;OAIG;IACH,0BAA0B,+BAA+B;CAC1D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZelloAccountStatus, ZelloChannel, ZelloChannelAlertLevel, ZelloConfig, ZelloConnectionState, ZelloConsoleSettings, ZelloContact, ZelloCredentials, ZelloDispatchChannel, ZelloHistoryImageMessage, ZelloHistoryMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloIncomingVoiceMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloRecentEntry, ZelloUser } from '../types';
|
|
1
|
+
import { ZelloAccountStatus, ZelloChannel, ZelloChannelAlertLevel, ZelloConfig, ZelloConnectionState, ZelloConsoleSettings, ZelloContact, ZelloCredentials, ZelloDispatchChannel, ZelloGroupConversation, ZelloHistoryImageMessage, ZelloHistoryMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloIncomingVoiceMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloRecentEntry, ZelloUser } from '../types';
|
|
2
2
|
import EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';
|
|
3
3
|
/**
|
|
4
4
|
* Zello SDK.
|
|
@@ -23,6 +23,10 @@ export declare class Zello extends EventEmitter {
|
|
|
23
23
|
* The list of {@link ZelloChannel} in the contact list. Sorted by name, ascending.
|
|
24
24
|
*/
|
|
25
25
|
channels: ZelloChannel[];
|
|
26
|
+
/**
|
|
27
|
+
* The list of {@link ZelloGroupConversation} in the contact list. Sorted by name, ascending.
|
|
28
|
+
*/
|
|
29
|
+
groupConversations: ZelloGroupConversation[];
|
|
26
30
|
/**
|
|
27
31
|
* The current account status. undefined when {@link state} is not {@link ZelloConnectionState.Connected}.
|
|
28
32
|
*/
|
|
@@ -65,9 +69,6 @@ export declare class Zello extends EventEmitter {
|
|
|
65
69
|
private constructor();
|
|
66
70
|
/**
|
|
67
71
|
* Sets configuration variables for the SDK.
|
|
68
|
-
*
|
|
69
|
-
* At the moment, this is only functional on Android.
|
|
70
|
-
*
|
|
71
72
|
* @param config The configuration to set.
|
|
72
73
|
*/
|
|
73
74
|
configure(config: ZelloConfig): void;
|
|
@@ -100,6 +101,12 @@ export declare class Zello extends EventEmitter {
|
|
|
100
101
|
* @return The channel with the given name, or null if no channel with that name exists.
|
|
101
102
|
*/
|
|
102
103
|
getChannel(name: string): ZelloChannel | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the group conversation with the given name. Case-insensitive.
|
|
106
|
+
* @param name The name of the group conversation to search for.
|
|
107
|
+
* @return The group conversation with the given name, or null if no group conversation with that name exists.
|
|
108
|
+
*/
|
|
109
|
+
getGroupConversation(name: string): ZelloGroupConversation | undefined;
|
|
103
110
|
/**
|
|
104
111
|
* Sets the selected contact.
|
|
105
112
|
* While optional, this is typically used for tracking the contact that the user is currently interacting with.
|
|
@@ -228,6 +235,33 @@ export declare class Zello extends EventEmitter {
|
|
|
228
235
|
* @param channel The dispatch channel to end the call for.
|
|
229
236
|
*/
|
|
230
237
|
endDispatchCall(channel: ZelloDispatchChannel): void;
|
|
238
|
+
/**
|
|
239
|
+
* Creates a new group conversation with the given users.
|
|
240
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_CREATED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
241
|
+
* @param users The users to create the group conversation with.
|
|
242
|
+
* @param displayName Optional; The display name of the group conversation. The conversation can be renamed later by using {@link renameGroupConversation}.
|
|
243
|
+
*/
|
|
244
|
+
createGroupConversation(users: ZelloUser[], displayName?: string): void;
|
|
245
|
+
/**
|
|
246
|
+
* Adds users to the given group conversation.
|
|
247
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_USERS_ADDED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
248
|
+
* @param groupConversation The group conversation to add users to.
|
|
249
|
+
* @param users The users to add to the group conversation.
|
|
250
|
+
*/
|
|
251
|
+
addUsersToGroupConversation(groupConversation: ZelloGroupConversation, users: ZelloUser[]): void;
|
|
252
|
+
/**
|
|
253
|
+
* Removes the user from the group conversation.
|
|
254
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_LEFT} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
255
|
+
* @param groupConversation The group conversation to leave.
|
|
256
|
+
*/
|
|
257
|
+
leaveGroupConversation(groupConversation: ZelloGroupConversation): void;
|
|
258
|
+
/**
|
|
259
|
+
* Renames the group conversation.
|
|
260
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_RENAMED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
261
|
+
* @param groupConversation The group conversation to rename.
|
|
262
|
+
* @param name The new name for the group conversation.
|
|
263
|
+
*/
|
|
264
|
+
renameGroupConversation(groupConversation: ZelloGroupConversation, name: string): void;
|
|
231
265
|
private setupEventListener;
|
|
232
266
|
private processDispatchCallEvent;
|
|
233
267
|
private clearContactList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|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IACI,aAAa,CAAC,OAAO,EAAE,YAAY;IAQ1C;;;;OAIG;IACI,cAAc;IAQrB;;;OAGG;IACI,aAAa;IAQpB;;;;;OAKG;IACI,UAAU,CACf,OAAO,EAAE,YAAY,EACrB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,mBAAmB,EAAE,CAAC;IA+BjC;;;;OAIG;IACI,kBAAkB,CAAC,OAAO,EAAE,wBAAwB;IAgB3D;;;OAGG;IACI,0BAA0B;IAQjC;;;;OAIG;IACI,kCAAkC,CACvC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAoB9B;;;;;;;OAOG;IACI,eAAe,CAAC,OAAO,EAAE,oBAAoB;IAQpD;;;;;OAKG;IACI,uBAAuB,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM;IAiBvE;;;;;OAKG;IACI,2BAA2B,CAChC,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,SAAS,EAAE;IAkBpB;;;;OAIG;IACI,sBAAsB,CAAC,iBAAiB,EAAE,sBAAsB;IAWvE;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAiB,EAAE,sBAAsB,EACzC,IAAI,EAAE,MAAM;IAed,OAAO,CAAC,kBAAkB;IA0lB1B,OAAO,CAAC,wBAAwB;IA0BhC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,MAAM,CAAC,MAAM;CAMtB"}
|
|
@@ -22,7 +22,9 @@ export type ZelloContact = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare enum ZelloContactType {
|
|
24
24
|
User = "user",
|
|
25
|
-
Channel = "channel"
|
|
25
|
+
Channel = "channel",
|
|
26
|
+
DispatchChannel = "dispatchChannel",
|
|
27
|
+
GroupConversation = "groupConversation"
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* The status of a {@link ZelloUser}.
|
|
@@ -68,7 +70,21 @@ export declare class ZelloUser implements ZelloContact {
|
|
|
68
70
|
* This can be used for displaying a smaller version of the profile picture (such as in a list).
|
|
69
71
|
*/
|
|
70
72
|
profilePictureThumbnailUrl: string | undefined;
|
|
71
|
-
|
|
73
|
+
/**
|
|
74
|
+
* The supported features of the user.
|
|
75
|
+
*/
|
|
76
|
+
supportedFeatures: ZelloUserSupportedFeatures;
|
|
77
|
+
constructor(name: string, displayName: string, isMuted: boolean, status: ZelloUserStatus, profilePictureUrl: string | undefined, profilePictureThumbnailUrl: string | undefined, supportedFeatures: ZelloUserSupportedFeatures);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The supported features of a {@link ZelloUser}.
|
|
81
|
+
*/
|
|
82
|
+
export declare class ZelloUserSupportedFeatures {
|
|
83
|
+
/**
|
|
84
|
+
* Whether the user supports group conversations.
|
|
85
|
+
*/
|
|
86
|
+
readonly groupConversations: boolean;
|
|
87
|
+
constructor(groupConversations: boolean);
|
|
72
88
|
}
|
|
73
89
|
/**
|
|
74
90
|
* A Zello channel. A channel contains multiple users.
|
|
@@ -124,6 +140,26 @@ export declare enum ZelloDispatchCallStatus {
|
|
|
124
140
|
Ended = "ended",
|
|
125
141
|
Disconnected = "disconnected"
|
|
126
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* A ad-hoc group conversation in Zello. A {@link ZelloGroupConversation} is a type of {@link ZelloChannel}, but the provisioning is done by the end user instead of through the Zello Work Administrative Console.
|
|
145
|
+
*
|
|
146
|
+
* {@link ZelloGroupConversation}s are only possible when {@link ZelloConsoleSettings.allowGroupConversations} is true.
|
|
147
|
+
*/
|
|
148
|
+
export declare class ZelloGroupConversation extends ZelloChannel {
|
|
149
|
+
/**
|
|
150
|
+
* The display name of the group conversation. This should be used in the UI instead of {@link ZelloChannel#name}, as the {@link ZelloChannel#name} will be a uniquely hashed value starting with c##.
|
|
151
|
+
*/
|
|
152
|
+
readonly displayName: string;
|
|
153
|
+
/**
|
|
154
|
+
* The users in the group conversation.
|
|
155
|
+
*/
|
|
156
|
+
readonly users: ZelloChannelUser[];
|
|
157
|
+
/**
|
|
158
|
+
* The users in the group conversation that are currently online.
|
|
159
|
+
*/
|
|
160
|
+
readonly onlineUsers: ZelloChannelUser[];
|
|
161
|
+
constructor(name: string, isMuted: boolean, connectionStatus: ZelloChannelConnectionStatus, usersOnline: number, options: ZelloChannelOptions, displayName: string, users: ZelloChannelUser[], onlineUsers: ZelloChannelUser[]);
|
|
162
|
+
}
|
|
127
163
|
/**
|
|
128
164
|
* The connection status of a {@link ZelloChannel}.
|
|
129
165
|
*/
|
|
@@ -155,7 +191,7 @@ export type ZelloChannelOptions = {
|
|
|
155
191
|
* Whether the user is allowed to send alert messages to the channel.
|
|
156
192
|
* When this is true, you should not show any UI to allow the user to send alert messages to the channel.
|
|
157
193
|
*/
|
|
158
|
-
|
|
194
|
+
allowAlertMessages: boolean;
|
|
159
195
|
/**
|
|
160
196
|
* Whether the user is allowed to send text messages to the channel.
|
|
161
197
|
* When this is true, you should not show any UI to allow the user to send text messages to the channel.
|
|
@@ -165,14 +201,15 @@ export type ZelloChannelOptions = {
|
|
|
165
201
|
* Whether the user is allowed to send location messages to the channel.
|
|
166
202
|
* When this is true, you should not show any UI to allow the user to send location messages to the channel.
|
|
167
203
|
*/
|
|
168
|
-
|
|
204
|
+
allowLocationMessages: boolean;
|
|
169
205
|
};
|
|
170
206
|
/**
|
|
171
|
-
* A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not
|
|
207
|
+
* A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not be part of your contact list.
|
|
172
208
|
*/
|
|
173
209
|
export declare class ZelloChannelUser {
|
|
174
210
|
name: string;
|
|
175
|
-
|
|
211
|
+
displayName: string;
|
|
212
|
+
constructor(name: string, displayName: string);
|
|
176
213
|
}
|
|
177
214
|
/**
|
|
178
215
|
* The credentials required to connect to Zello.
|
|
@@ -597,11 +634,30 @@ export type ZelloConfig = {
|
|
|
597
634
|
/**
|
|
598
635
|
* Settings for the network. These are configured via the Zello Work Administrative Console.
|
|
599
636
|
*/
|
|
600
|
-
export
|
|
637
|
+
export type ZelloConsoleSettings = {
|
|
601
638
|
/**
|
|
602
639
|
* Allow non-dispatchers to end calls. When this is false, you should not show any UI to allow non-dispatchers to end calls.
|
|
603
640
|
*/
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
641
|
+
allowNonDispatchersToEndCalls: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* Allow image messages. When this is false, you should not show any UI to allow users to send image messages.
|
|
644
|
+
*/
|
|
645
|
+
allowImageMessages: boolean;
|
|
646
|
+
/**
|
|
647
|
+
* Allow alert messages. When this is false, you should not show any UI to allow users to send alert messages.
|
|
648
|
+
*/
|
|
649
|
+
allowAlertMessages: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* Allow location messages. When this is false, you should not show any UI to allow users to send location messages.
|
|
652
|
+
*/
|
|
653
|
+
allowLocationMessages: boolean;
|
|
654
|
+
/**
|
|
655
|
+
* Allow text messages. When this is false, you should not show any UI to allow users to send text messages.
|
|
656
|
+
*/
|
|
657
|
+
allowTextMessages: boolean;
|
|
658
|
+
/**
|
|
659
|
+
* Allow group conversations. When this is false, you should not show any UI to allow users to create group conversations.
|
|
660
|
+
*/
|
|
661
|
+
allowGroupConversations: boolean;
|
|
662
|
+
};
|
|
607
663
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file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
|
|
1
|
-
import { ZelloConsoleSettings, ZelloContact, ZelloDispatchCall, ZelloHistoryMessage, ZelloIncomingEmergency } from '../types';
|
|
1
|
+
import { ZelloChannelUser, ZelloConsoleSettings, ZelloContact, ZelloDispatchCall, ZelloHistoryMessage, ZelloIncomingEmergency } from '../types';
|
|
2
2
|
export declare const isSameContact: (a: ZelloContact, b: ZelloContact) => boolean;
|
|
3
3
|
export declare const isAndroid: boolean;
|
|
4
4
|
export declare const isiOS: boolean;
|
|
@@ -7,4 +7,5 @@ export declare function bridgeIncomingEmergencyToSdkIncomingEmergency(emergency:
|
|
|
7
7
|
export declare function bridgeHistoryMessageToSdkHistoryMessage(message: any): ZelloHistoryMessage | undefined;
|
|
8
8
|
export declare function bridgeCallToSdkCall(call: any): ZelloDispatchCall | undefined;
|
|
9
9
|
export declare function bridgeConsoleSettingsToSdkConsoleSettings(settings: any): ZelloConsoleSettings | undefined;
|
|
10
|
+
export declare function bridgeChannelUserToSdkChannelUser(channelUser: any): ZelloChannelUser | undefined;
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EAOjB,mBAAmB,EAGnB,sBAAsB,EAIvB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,MAAO,YAAY,KAAK,YAAY,KAAG,OACG,CAAC;AAErE,eAAO,MAAM,SAAS,SAA4B,CAAC;AACnD,eAAO,MAAM,KAAK,SAAwB,CAAC;AAE3C,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,GAAG,GAChB,YAAY,GAAG,SAAS,CA2F1B;AAED,wBAAgB,6CAA6C,CAC3D,SAAS,EAAE,GAAG,GACb,sBAAsB,GAAG,SAAS,CAapC;AAED,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,GAAG,GACX,mBAAmB,GAAG,SAAS,CAwDjC;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,GAAG,SAAS,CAS5E;AAED,wBAAgB,yCAAyC,CACvD,QAAQ,EAAE,GAAG,GACZ,oBAAoB,GAAG,SAAS,CAYlC;AAED,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,GAAG,GACf,gBAAgB,GAAG,SAAS,CAQ9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zelloptt/react-native-zello-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Zello SDK for React Native",
|
|
5
5
|
"source": "./src/index",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
48
48
|
"prepare": "bob build",
|
|
49
49
|
"release": "release-it",
|
|
50
|
+
"perform-release": "npm run typecheck && npm run prepare && npm run docs && npm run release",
|
|
50
51
|
"docs": "npx typedoc --out src/docs --entryPointStrategy expand src --exclude \"src/docs/**/*\" --exclude \"src/utils/**/*\""
|
|
51
52
|
},
|
|
52
53
|
"keywords": [
|
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency 'ZelloSDK', '~> 0.
|
|
19
|
+
s.dependency 'ZelloSDK', '~> 1.0.0'
|
|
20
20
|
|
|
21
21
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
22
22
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
package/src/events/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export enum ZelloEvent {
|
|
|
35
35
|
* {@link sdk.Zello.users | Zello.users} and {@link sdk.Zello.channels | Zello.channels} will be updated.
|
|
36
36
|
* @param {@link types.ZelloUser | ZelloUser[]} users The list of users.
|
|
37
37
|
* @param {@link types.ZelloChannel | ZelloChannel[]} channels The list of channels.
|
|
38
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation[]} groupConversations The list of group conversations.
|
|
38
39
|
*/
|
|
39
40
|
CONTACT_LIST_UPDATED = 'onContactListUpdated',
|
|
40
41
|
/**
|
|
@@ -214,4 +215,40 @@ export enum ZelloEvent {
|
|
|
214
215
|
* @param {@link types.ZelloConsoleSettings | ZelloConsoleSettings} settings The updated console settings.
|
|
215
216
|
*/
|
|
216
217
|
CONSOLE_SETTINGS_CHANGED = 'onConsoleSettingsChanged',
|
|
218
|
+
/**
|
|
219
|
+
* A group conversation has been created.
|
|
220
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
221
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The created group conversation.
|
|
222
|
+
*/
|
|
223
|
+
GROUP_CONVERSATION_CREATED = 'onGroupConversationCreated',
|
|
224
|
+
/**
|
|
225
|
+
* The user has been invited to a group conversation.
|
|
226
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
227
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
228
|
+
*/
|
|
229
|
+
GROUP_CONVERSATION_INVITE = 'onGroupConversationInvite',
|
|
230
|
+
/**
|
|
231
|
+
* A group conversation has new users added.
|
|
232
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
233
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
234
|
+
*/
|
|
235
|
+
GROUP_CONVERSATION_USERS_ADDED = 'onGroupConversationUsersAdded',
|
|
236
|
+
/**
|
|
237
|
+
* Users left a group conversation.
|
|
238
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
239
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
240
|
+
*/
|
|
241
|
+
GROUP_CONVERSATION_USERS_LEFT = 'onGroupConversationUsersLeft',
|
|
242
|
+
/**
|
|
243
|
+
* The user has left a group conversation.
|
|
244
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
245
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
246
|
+
*/
|
|
247
|
+
GROUP_CONVERSATION_LEFT = 'onGroupConversationLeft',
|
|
248
|
+
/**
|
|
249
|
+
* A group conversation has been renamed.
|
|
250
|
+
* {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
|
|
251
|
+
* @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
|
|
252
|
+
*/
|
|
253
|
+
GROUP_CONVERSATION_RENAMED = 'onGroupConversationRenamed',
|
|
217
254
|
}
|