@zelloptt/react-native-zello-sdk 0.3.3 → 1.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.
- package/README.md +22 -4
- package/android/build.gradle +5 -3
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +117 -7
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +76 -8
- package/ios/Extensions/ZelloConsoleSettings+Extension.swift +14 -0
- package/ios/Extensions/ZelloContact+Extension.swift +56 -2
- package/ios/Extensions/ZelloDispatchCall+Extension.swift +13 -0
- package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +81 -8
- package/ios/ZelloIOSSdkModule.swift +61 -5
- package/ios/ZelloIOSSdkModuleBridge.m +14 -1
- package/lib/commonjs/docs/assets/highlight.css +18 -4
- 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 +75 -43
- 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 +7 -0
- package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +19 -0
- 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 +108 -67
- package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
- 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 +6 -0
- 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 +5 -5
- package/lib/commonjs/docs/index.html +16 -8
- package/lib/commonjs/docs/modules/events.html +1 -1
- package/lib/commonjs/docs/modules/index.html +9 -3
- package/lib/commonjs/docs/modules/sdk.html +1 -1
- package/lib/commonjs/docs/modules/types.html +7 -1
- package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/commonjs/docs/types/types.ZelloConfig.html +4 -3
- 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 +2 -2
- 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 +11 -0
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/sdk/index.js +237 -16
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/types/index.js +110 -4
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +73 -9
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/docs/assets/highlight.css +18 -4
- 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 +75 -43
- 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 +7 -0
- package/lib/module/docs/classes/types.ZelloDispatchChannel.html +19 -0
- 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 +108 -67
- package/lib/module/docs/enums/types.ZelloAccountStatus.html +3 -3
- package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
- 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 +6 -0
- 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 +5 -5
- package/lib/module/docs/index.html +16 -8
- package/lib/module/docs/modules/events.html +1 -1
- package/lib/module/docs/modules/index.html +9 -3
- package/lib/module/docs/modules/sdk.html +1 -1
- package/lib/module/docs/modules/types.html +7 -1
- package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/module/docs/types/types.ZelloConfig.html +4 -3
- 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 +2 -2
- 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 +11 -0
- package/lib/module/events/index.js.map +1 -1
- package/lib/module/sdk/index.js +240 -17
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/types/index.js +115 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/utils/index.js +71 -10
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/events/index.d.ts +65 -2
- package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sdk/index.d.ts +53 -4
- package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +109 -6
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +4 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/events/index.d.ts +65 -2
- package/lib/typescript/module/src/events/index.d.ts.map +1 -1
- package/lib/typescript/module/src/sdk/index.d.ts +53 -4
- package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +109 -6
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +4 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/package.json +1 -2
- package/react-native-zello-sdk.podspec +1 -1
- package/src/events/index.ts +64 -1
- package/src/sdk/index.ts +286 -19
- package/src/types/index.ts +152 -5
- package/src/utils/index.ts +124 -29
|
@@ -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.
|
|
@@ -91,6 +107,59 @@ export declare class ZelloChannel implements ZelloContact {
|
|
|
91
107
|
options: ZelloChannelOptions;
|
|
92
108
|
constructor(name: string, isMuted: boolean, connectionStatus: ZelloChannelConnectionStatus, usersOnline: number, options: ZelloChannelOptions);
|
|
93
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* A Zello dispatch channel. A dispatch channel is a special type of channel that has calls between a user and a dispatcher.
|
|
112
|
+
*/
|
|
113
|
+
export declare class ZelloDispatchChannel extends ZelloChannel {
|
|
114
|
+
/**
|
|
115
|
+
* The current call on the dispatch channel, if any.
|
|
116
|
+
*/
|
|
117
|
+
readonly currentCall: ZelloDispatchCall | undefined;
|
|
118
|
+
constructor(name: string, isMuted: boolean, connectionStatus: ZelloChannelConnectionStatus, usersOnline: number, options: ZelloChannelOptions, currentCall: ZelloDispatchCall | undefined);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* A Zello dispatch call. A dispatch call is a call between a user and a dispatcher.
|
|
122
|
+
*/
|
|
123
|
+
export declare class ZelloDispatchCall {
|
|
124
|
+
/**
|
|
125
|
+
* The status of the call.
|
|
126
|
+
*/
|
|
127
|
+
readonly status: ZelloDispatchCallStatus;
|
|
128
|
+
/**
|
|
129
|
+
* The name of the dispatcher who accepted the call. Null if the call is in the {@link ZelloDispatchCallStatus.Pending} state.
|
|
130
|
+
*/
|
|
131
|
+
readonly dispatcher: string | undefined;
|
|
132
|
+
constructor(status: ZelloDispatchCallStatus, dispatcher: string | undefined);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The status of a {@link ZelloDispatchCall}.
|
|
136
|
+
*/
|
|
137
|
+
export declare enum ZelloDispatchCallStatus {
|
|
138
|
+
Pending = "pending",
|
|
139
|
+
Active = "active",
|
|
140
|
+
Ended = "ended",
|
|
141
|
+
Disconnected = "disconnected"
|
|
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
|
+
}
|
|
94
163
|
/**
|
|
95
164
|
* The connection status of a {@link ZelloChannel}.
|
|
96
165
|
*/
|
|
@@ -122,7 +191,7 @@ export type ZelloChannelOptions = {
|
|
|
122
191
|
* Whether the user is allowed to send alert messages to the channel.
|
|
123
192
|
* When this is true, you should not show any UI to allow the user to send alert messages to the channel.
|
|
124
193
|
*/
|
|
125
|
-
|
|
194
|
+
allowAlertMessages: boolean;
|
|
126
195
|
/**
|
|
127
196
|
* Whether the user is allowed to send text messages to the channel.
|
|
128
197
|
* When this is true, you should not show any UI to allow the user to send text messages to the channel.
|
|
@@ -132,14 +201,15 @@ export type ZelloChannelOptions = {
|
|
|
132
201
|
* Whether the user is allowed to send location messages to the channel.
|
|
133
202
|
* When this is true, you should not show any UI to allow the user to send location messages to the channel.
|
|
134
203
|
*/
|
|
135
|
-
|
|
204
|
+
allowLocationMessages: boolean;
|
|
136
205
|
};
|
|
137
206
|
/**
|
|
138
|
-
* 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.
|
|
139
208
|
*/
|
|
140
209
|
export declare class ZelloChannelUser {
|
|
141
210
|
name: string;
|
|
142
|
-
|
|
211
|
+
displayName: string;
|
|
212
|
+
constructor(name: string, displayName: string);
|
|
143
213
|
}
|
|
144
214
|
/**
|
|
145
215
|
* The credentials required to connect to Zello.
|
|
@@ -555,6 +625,39 @@ export type ZelloConfig = {
|
|
|
555
625
|
* Whether your application is being run in a debug or release build.
|
|
556
626
|
*/
|
|
557
627
|
isDebugBuild: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* The app group for shared data. This is required for the Notification Service Extension to work properly.
|
|
630
|
+
*/
|
|
631
|
+
appGroup: string;
|
|
558
632
|
};
|
|
559
633
|
};
|
|
634
|
+
/**
|
|
635
|
+
* Settings for the network. These are configured via the Zello Work Administrative Console.
|
|
636
|
+
*/
|
|
637
|
+
export type ZelloConsoleSettings = {
|
|
638
|
+
/**
|
|
639
|
+
* Allow non-dispatchers to end calls. When this is false, you should not show any UI to allow non-dispatchers to end calls.
|
|
640
|
+
*/
|
|
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
|
+
};
|
|
560
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":"AA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
|
|
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;
|
|
5
5
|
export declare function bridgeContactToSdkContact(eventContact: any): ZelloContact | undefined;
|
|
6
6
|
export declare function bridgeIncomingEmergencyToSdkIncomingEmergency(emergency: any): ZelloIncomingEmergency | undefined;
|
|
7
7
|
export declare function bridgeHistoryMessageToSdkHistoryMessage(message: any): ZelloHistoryMessage | undefined;
|
|
8
|
+
export declare function bridgeCallToSdkCall(call: any): ZelloDispatchCall | undefined;
|
|
9
|
+
export declare function bridgeConsoleSettingsToSdkConsoleSettings(settings: any): ZelloConsoleSettings | undefined;
|
|
10
|
+
export declare function bridgeChannelUserToSdkChannelUser(channelUser: any): ZelloChannelUser | undefined;
|
|
8
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,YAAY,
|
|
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.0",
|
|
4
4
|
"description": "Zello SDK for React Native",
|
|
5
5
|
"source": "./src/index",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"@commitlint/config-conventional": "^17.0.2",
|
|
72
72
|
"@evilmartians/lefthook": "^1.5.0",
|
|
73
73
|
"@react-native/eslint-config": "^0.73.1",
|
|
74
|
-
"@release-it/conventional-changelog": "^5.0.0",
|
|
75
74
|
"@types/jest": "^29.5.5",
|
|
76
75
|
"@types/lodash": "4.17.7",
|
|
77
76
|
"@types/react": "^18.2.44",
|
|
@@ -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
|
@@ -32,9 +32,10 @@ export enum ZelloEvent {
|
|
|
32
32
|
RECONNECTING = 'onWillReconnect',
|
|
33
33
|
/**
|
|
34
34
|
* The contact list has been updated.
|
|
35
|
-
* {@link sdk.Zello.users | Zello.users} and @
|
|
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
|
/**
|
|
@@ -188,4 +189,66 @@ export enum ZelloEvent {
|
|
|
188
189
|
* @param {@link types.ZelloHistoryVoiceMessage | ZelloHistoryVoiceMessage} voiceMessage The stopped history voice message.
|
|
189
190
|
*/
|
|
190
191
|
HISTORY_PLAYBACK_STOPPED = 'onHistoryPlaybackStopped',
|
|
192
|
+
/**
|
|
193
|
+
* A dispatch call has been received by the server and is pending acceptance by a dispatcher.
|
|
194
|
+
* @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The pending dispatch call.
|
|
195
|
+
*/
|
|
196
|
+
DISPATCH_CALL_PENDING = 'onDispatchCallPending',
|
|
197
|
+
/**
|
|
198
|
+
* A dispatch call has been accepted by a dispatcher.
|
|
199
|
+
* @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The accepted dispatch call.
|
|
200
|
+
*/
|
|
201
|
+
DISPATCH_CALL_ACTIVE = 'onDispatchCallActive',
|
|
202
|
+
/**
|
|
203
|
+
* A dispatch call has been transferred to another dispatcher.
|
|
204
|
+
* @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The transferred dispatch call.
|
|
205
|
+
*/
|
|
206
|
+
DISPATCH_CALL_TRANSFERRED = 'onDispatchCallTransferred',
|
|
207
|
+
/**
|
|
208
|
+
* A dispatch call has ended.
|
|
209
|
+
* @param {@link types.ZelloDispatchCall | ZelloDispatchCall} call The ended dispatch call.
|
|
210
|
+
*/
|
|
211
|
+
DISPATCH_CALL_ENDED = 'onDispatchCallEnded',
|
|
212
|
+
/**
|
|
213
|
+
* The console settings have changed.
|
|
214
|
+
* {@link sdk.Zello.consoleSettings | Zello.consoleSettings} will contain the updated console settings.
|
|
215
|
+
* @param {@link types.ZelloConsoleSettings | ZelloConsoleSettings} settings The updated console settings.
|
|
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',
|
|
191
254
|
}
|