@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.
Files changed (84) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +21 -0
  3. package/android/build.gradle +122 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +3 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/zellosdk/DummyPackage.kt +18 -0
  8. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +437 -0
  9. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +198 -0
  10. package/ios/Extensions/Date+Extension.swift +5 -0
  11. package/ios/Extensions/UIImage+Extension.swift +9 -0
  12. package/ios/Extensions/ZelloContact+Extension.swift +52 -0
  13. package/ios/Extensions/ZelloHistoryAlertMessage+Extension.swift +18 -0
  14. package/ios/Extensions/ZelloHistoryImageMessage+Extension.swift +17 -0
  15. package/ios/Extensions/ZelloHistoryLocationMessage+Extension.swift +23 -0
  16. package/ios/Extensions/ZelloHistoryTextMessage+Extension.swift +18 -0
  17. package/ios/Extensions/ZelloHistoryVoiceMessage+Extension.swift +18 -0
  18. package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +285 -0
  19. package/ios/Extensions/ZelloIncomingEmergency+Extension.swift +16 -0
  20. package/ios/Extensions/ZelloOutgoingEmergency+Extension.swift +14 -0
  21. package/ios/Extensions/ZelloRecentEntry+Extension.swift +16 -0
  22. package/ios/ZelloIOSSdkModule.swift +209 -0
  23. package/ios/ZelloIOSSdkModuleBridge.h +5 -0
  24. package/ios/ZelloIOSSdkModuleBridge.m +44 -0
  25. package/lib/commonjs/events/index.js +43 -0
  26. package/lib/commonjs/events/index.js.map +1 -0
  27. package/lib/commonjs/index.js +47 -0
  28. package/lib/commonjs/index.js.map +1 -0
  29. package/lib/commonjs/package.json +1 -0
  30. package/lib/commonjs/sdk/index.js +833 -0
  31. package/lib/commonjs/sdk/index.js.map +1 -0
  32. package/lib/commonjs/types/index.js +518 -0
  33. package/lib/commonjs/types/index.js.map +1 -0
  34. package/lib/commonjs/utils/algorithms/index.js +79 -0
  35. package/lib/commonjs/utils/algorithms/index.js.map +1 -0
  36. package/lib/commonjs/utils/index.js +60 -0
  37. package/lib/commonjs/utils/index.js.map +1 -0
  38. package/lib/module/events/index.js +39 -0
  39. package/lib/module/events/index.js.map +1 -0
  40. package/lib/module/index.js +10 -0
  41. package/lib/module/index.js.map +1 -0
  42. package/lib/module/package.json +1 -0
  43. package/lib/module/sdk/index.js +829 -0
  44. package/lib/module/sdk/index.js.map +1 -0
  45. package/lib/module/types/index.js +547 -0
  46. package/lib/module/types/index.js.map +1 -0
  47. package/lib/module/utils/algorithms/index.js +72 -0
  48. package/lib/module/utils/algorithms/index.js.map +1 -0
  49. package/lib/module/utils/index.js +52 -0
  50. package/lib/module/utils/index.js.map +1 -0
  51. package/lib/typescript/commonjs/package.json +1 -0
  52. package/lib/typescript/commonjs/src/events/index.d.ts +192 -0
  53. package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -0
  54. package/lib/typescript/commonjs/src/index.d.ts +6 -0
  55. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  56. package/lib/typescript/commonjs/src/sdk/index.d.ts +221 -0
  57. package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -0
  58. package/lib/typescript/commonjs/src/types/index.d.ts +560 -0
  59. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
  60. package/lib/typescript/commonjs/src/utils/algorithms/index.d.ts +21 -0
  61. package/lib/typescript/commonjs/src/utils/algorithms/index.d.ts.map +1 -0
  62. package/lib/typescript/commonjs/src/utils/index.d.ts +8 -0
  63. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
  64. package/lib/typescript/module/package.json +1 -0
  65. package/lib/typescript/module/src/events/index.d.ts +192 -0
  66. package/lib/typescript/module/src/events/index.d.ts.map +1 -0
  67. package/lib/typescript/module/src/index.d.ts +6 -0
  68. package/lib/typescript/module/src/index.d.ts.map +1 -0
  69. package/lib/typescript/module/src/sdk/index.d.ts +221 -0
  70. package/lib/typescript/module/src/sdk/index.d.ts.map +1 -0
  71. package/lib/typescript/module/src/types/index.d.ts +560 -0
  72. package/lib/typescript/module/src/types/index.d.ts.map +1 -0
  73. package/lib/typescript/module/src/utils/algorithms/index.d.ts +21 -0
  74. package/lib/typescript/module/src/utils/algorithms/index.d.ts.map +1 -0
  75. package/lib/typescript/module/src/utils/index.d.ts +8 -0
  76. package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
  77. package/package.json +195 -0
  78. package/react-native-zello-sdk.podspec +43 -0
  79. package/src/events/index.ts +191 -0
  80. package/src/index.ts +8 -0
  81. package/src/sdk/index.ts +1038 -0
  82. package/src/types/index.ts +818 -0
  83. package/src/utils/algorithms/index.ts +88 -0
  84. package/src/utils/index.ts +145 -0
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.binarySearch = binarySearch;
7
+ exports.compareNameAscending = compareNameAscending;
8
+ exports.lowerBound = lowerBound;
9
+ exports.sortedArrayFind = sortedArrayFind;
10
+ var _lodash = require("lodash");
11
+ function sortedArrayFind(array, item, comparator) {
12
+ const i = lowerBound(array, item, comparator);
13
+ if (i >= 0 && i < array.length && comparator(item, array[i]) === 0) {
14
+ return array[i];
15
+ }
16
+ return undefined;
17
+ }
18
+ function lowerBound(array, item, comparator) {
19
+ let index = binarySearch(array, item, comparator);
20
+ // binarySearch returns the non-negative index of the item, or a negative index which is the -index - 1 where the item would be inserted
21
+ if (index < 0) {
22
+ index = -index - 1;
23
+ }
24
+ // Several identical objects may exist in the same collection; we need to find the first one
25
+ if (index > 0 && index < array.length) {
26
+ const foundObject = array[index];
27
+ while (index > 0) {
28
+ if (comparator(array[index - 1], foundObject) !== 0) {
29
+ break;
30
+ }
31
+ --index;
32
+ }
33
+ }
34
+ return index;
35
+ }
36
+
37
+ /**
38
+ * Binary search algorithm adapted from https://stackoverflow.com/a/29018745.
39
+ *
40
+ * The array may contain duplicate items. If there are more than one equal items in the array,
41
+ * the returned value can be the index of any one of the equal items.
42
+ *
43
+ * Time complexity: O(log n)
44
+ * @param array A sorted array.
45
+ * @param item An item to search for.
46
+ * @param comparator A comparator function. The function takes two arguments: (a, b) and returns:
47
+ * a negative number if a is less than b;
48
+ * 0 if a is equal to b;
49
+ * a positive number of a is greater than b.
50
+ * @return The index of the item in a sorted array or (-n-1) where n is the insertion point for the new item.
51
+ */
52
+ function binarySearch(array, item, comparator) {
53
+ let m = 0;
54
+ let n = array.length - 1;
55
+ while (m <= n) {
56
+ const k = n + m >> 1;
57
+ const cmp = comparator(item, array[k]);
58
+ if (cmp > 0) {
59
+ m = k + 1;
60
+ } else if (cmp < 0) {
61
+ n = k - 1;
62
+ } else {
63
+ return k;
64
+ }
65
+ }
66
+ return -m - 1;
67
+ }
68
+ function compareNameAscending(a, b) {
69
+ const alc = (0, _lodash.isString)(a) ? a.toLowerCase() : a.name.toLowerCase();
70
+ const blc = (0, _lodash.isString)(b) ? b.toLowerCase() : b.name.toLowerCase();
71
+ if (alc > blc) {
72
+ return 1;
73
+ }
74
+ if (alc < blc) {
75
+ return -1;
76
+ }
77
+ return 0;
78
+ }
79
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_lodash","require","sortedArrayFind","array","item","comparator","i","lowerBound","length","undefined","index","binarySearch","foundObject","m","n","k","cmp","compareNameAscending","a","b","alc","isString","toLowerCase","name","blc"],"sourceRoot":"../../../../src","sources":["utils/algorithms/index.ts"],"mappings":";;;;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AAEO,SAASC,eAAeA,CAC7BC,KAAmB,EACnBC,IAAS,EACTC,UAAkD,EACnC;EACf,MAAMC,CAAC,GAAGC,UAAU,CAACJ,KAAK,EAAEC,IAAI,EAAEC,U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ACXH,CAAC,GAAGE,CAAC,GAAG,CAAC;IACX,CAAC,MAAM,IAAIC,GAAG,GAAG,CAAC,EAAE;MAClBF,CAAC,GAAGC,CAAC,GAAG,CAAC;IACX,CAAC,MAAM;MACL,OAAOA,CAAC;IACV;EACF;EACA,OAAO,CAACF,CAAC,GAAG,CAAC;AACf;AAEO,SAASI,oBAAoBA,CAClCC,CAAwB,EACxBC,CAAwB,EAChB;EACR,MAAMC,GAAG,GAAG,IAAAC,gBAAQ,EAACH,CAAC,CAAC,GAAGA,CAAC,CAACI,WAAW,CAAC,CAAC,GAAGJ,CAAC,CAACK,IAAI,CAACD,WAAW,CAAC,CAAC;EAChE,MAAME,GAAG,GAAG,IAAAH,gBAAQ,EAACF,CAAC,CAAC,GAAGA,CAAC,CAACG,WAAW,CAAC,CAAC,GAAGH,CAAC,CAACI,IAAI,CAACD,WAAW,CAAC,CAAC;EAChE,IAAIF,GAAG,GAAGI,GAAG,EAAE;IACb,OAAO,CAAC;EACV;EACA,IAAIJ,GAAG,GAAGI,GAAG,EAAE;IACb,OAAO,CAAC,CAAC;EACX;EACA,OAAO,CAAC;AACV","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.bridgeContactToSdkContact = bridgeContactToSdkContact;
7
+ exports.bridgeHistoryMessageToSdkHistoryMessage = bridgeHistoryMessageToSdkHistoryMessage;
8
+ exports.bridgeIncomingEmergencyToSdkIncomingEmergency = bridgeIncomingEmergencyToSdkIncomingEmergency;
9
+ exports.isiOS = exports.isSameContact = exports.isAndroid = void 0;
10
+ var _index = require("../types/index.js");
11
+ var _reactNative = require("react-native");
12
+ const isSameContact = (a, b) => a.name.toLowerCase() === b.name.toLowerCase() && a.type === b.type;
13
+ exports.isSameContact = isSameContact;
14
+ const isAndroid = exports.isAndroid = _reactNative.Platform.OS === 'android';
15
+ const isiOS = exports.isiOS = _reactNative.Platform.OS === 'ios';
16
+ function bridgeContactToSdkContact(eventContact) {
17
+ let contact;
18
+ const contactName = eventContact.name;
19
+ if (contactName) {
20
+ if (eventContact.isChannel) {
21
+ contact = new _index.ZelloChannel(contactName, eventContact.isMuted, eventContact.isConnected ? _index.ZelloChannelConnectionStatus.Connected : eventContact.isConnecting ? _index.ZelloChannelConnectionStatus.Connecting : _index.ZelloChannelConnectionStatus.Disconnected, eventContact.usersOnline, eventContact.options);
22
+ } else {
23
+ const statusValue = eventContact.status.toLowerCase();
24
+ let userStatus = _index.ZelloUserStatus.Offline;
25
+ if (Object.values(_index.ZelloUserStatus).includes(statusValue)) {
26
+ userStatus = statusValue;
27
+ }
28
+ contact = new _index.ZelloUser(contactName, eventContact.displayName, eventContact.isMuted, userStatus, eventContact.profilePictureUrl, eventContact.profilePictureThumbnailUrl);
29
+ }
30
+ }
31
+ return contact;
32
+ }
33
+ function bridgeIncomingEmergencyToSdkIncomingEmergency(emergency) {
34
+ const channel = bridgeContactToSdkContact(emergency.channel);
35
+ if (!channel) {
36
+ return undefined;
37
+ }
38
+ return new _index.ZelloIncomingEmergency(channel, new _index.ZelloChannelUser(emergency.channelUserName), emergency.emergencyId, parseInt(emergency.startTimestamp, 10), parseInt(emergency.endTimestamp, 10));
39
+ }
40
+ function bridgeHistoryMessageToSdkHistoryMessage(message) {
41
+ const contact = bridgeContactToSdkContact(message.contact);
42
+ if (!contact) {
43
+ return undefined;
44
+ }
45
+ switch (message.type) {
46
+ case 'voice':
47
+ return new _index.ZelloHistoryVoiceMessage(contact, message.channelUserName ? new _index.ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.durationMs);
48
+ case 'image':
49
+ return new _index.ZelloHistoryImageMessage(contact, message.channelUserName ? new _index.ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming);
50
+ case 'location':
51
+ return new _index.ZelloHistoryLocationMessage(contact, message.channelUserName ? new _index.ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.latitude, message.longitude, message.accuracy, message.address);
52
+ case 'text':
53
+ return new _index.ZelloHistoryTextMessage(contact, message.channelUserName ? new _index.ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
54
+ case 'alert':
55
+ return new _index.ZelloHistoryAlertMessage(contact, message.channelUserName ? new _index.ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
56
+ default:
57
+ return undefined;
58
+ }
59
+ }
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_reactNative","isSameContact","a","b","name","toLowerCase","type","exports","isAndroid","Platform","OS","isiOS","bridgeContactToSdkContact","eventContact","contact","contactName","isChannel","ZelloChannel","isMuted","isConnected","ZelloChannelConnectionStatus","Connected","isConnecting","Connecting","Disconnected","usersOnline","options","statusValue","status","userStatus","ZelloUserStatus","Offline","Object","values","includes","ZelloUser","displayName","profilePictureUrl","profilePictureThumbnailUrl","bridgeIncomingEmergencyToSdkIncomingEmergency","emergency","channel","undefined","ZelloIncomingEmergency","ZelloChannelUser","channelUserName","emergencyId","parseInt","startTimestamp","endTimestamp","bridgeHistoryMessageToSdkHistoryMessage","message","ZelloHistoryVoiceMessage","timestamp","historyId","incoming","durationMs","ZelloHistoryImageMessage","ZelloHistoryLocationMessage","latitude","longitude","accuracy","address","ZelloHistoryTextMessage","text","ZelloHistoryAlertMessage"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAeA,IAAAC,YAAA,GAAAD,OAAA;AAEO,MAAME,aAAa,GAAGA,CAACC,CAAe,EAAEC,CAAe,KAC5DD,CAAC,CAACE,IAAI,CAACC,WAAW,CAAC,CAAC,KAAKF,CAAC,CAACC,IAAI,CAACC,WAAW,CAAC,CAAC,IAAIH,CAAC,CAACI,IAA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,CAACI,OAAO,CAACE,SAAS,EAAE,EAAE,CAAC,EAC/BF,OAAO,CAACG,SAAS,EACjBH,OAAO,CAACI,QAAQ,EAChBJ,OAAO,CAACQ,QAAQ,EAChBR,OAAO,CAACS,SAAS,EACjBT,OAAO,CAACU,QAAQ,EAChBV,OAAO,CAACW,OACV,CAAC;IACH,KAAK,MAAM;MACT,OAAO,IAAIC,8BAAuB,CAChCjD,OAAO,EACPqC,OAAO,CAACN,eAAe,GACnB,IAAID,uBAAgB,CAACO,OAAO,CAACN,eAAe,CAAC,GAC7CH,SAAS,EACbK,QAAQ,CAACI,OAAO,CAACE,SAAS,EAAE,EAAE,CAAC,EAC/BF,OAAO,CAACG,SAAS,EACjBH,OAAO,CAACI,QAAQ,EAChBJ,OAAO,CAACa,IACV,CAAC;IACH,KAAK,OAAO;MACV,OAAO,IAAIC,+BAAwB,CACjCnD,OAAO,EACPqC,OAAO,CAACN,eAAe,GACnB,IAAID,uBAAgB,CAACO,OAAO,CAACN,eAAe,CAAC,GAC7CH,SAAS,EACbK,QAAQ,CAACI,OAAO,CAACE,SAAS,EAAE,EAAE,CAAC,EAC/BF,OAAO,CAACG,SAAS,EACjBH,OAAO,CAACI,QAAQ,EAChBJ,OAAO,CAACa,IACV,CAAC;IACH;MACE,OAAOtB,SAAS;EACpB;AACF","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ export let ZelloEvent = /*#__PURE__*/function (ZelloEvent) {
4
+ ZelloEvent["CONNECT_FAILED"] = "onConnectFailed";
5
+ ZelloEvent["CONNECT_STARTED"] = "onConnectStarted";
6
+ ZelloEvent["CONNECT_SUCCEEDED"] = "onConnectSucceeded";
7
+ ZelloEvent["DISCONNECTED"] = "onDisconnected";
8
+ ZelloEvent["RECONNECTING"] = "onWillReconnect";
9
+ ZelloEvent["CONTACT_LIST_UPDATED"] = "onContactListUpdated";
10
+ ZelloEvent["SELECTED_CONTACT_CHANGED"] = "onSelectedContactChanged";
11
+ ZelloEvent["ACCOUNT_STATUS_CHANGED"] = "onAccountStatusChanged";
12
+ ZelloEvent["INCOMING_VOICE_MESSAGE_STARTED"] = "onIncomingVoiceMessageStarted";
13
+ ZelloEvent["INCOMING_VOICE_MESSAGE_STOPPED"] = "onIncomingVoiceMessageStopped";
14
+ ZelloEvent["OUTGOING_VOICE_MESSAGE_CONNECTING"] = "onOutgoingVoiceMessageConnecting";
15
+ ZelloEvent["OUTGOING_VOICE_MESSAGE_STARTED"] = "onOutgoingVoiceMessageStarted";
16
+ ZelloEvent["OUTGOING_VOICE_MESSAGE_STOPPED"] = "onOutgoingVoiceMessageStopped";
17
+ ZelloEvent["INCOMING_IMAGE_MESSAGE_RECEIVED"] = "onIncomingImageMessage";
18
+ ZelloEvent["OUTGOING_IMAGE_MESSAGE_SENT"] = "onOutgoingImageMessageSent";
19
+ ZelloEvent["OUTGOING_IMAGE_MESSAGE_SEND_FAILED"] = "onOutgoingImageMessageSendFailed";
20
+ ZelloEvent["INCOMING_ALERT_MESSAGE_RECEIVED"] = "onIncomingAlertMessage";
21
+ ZelloEvent["OUTGOING_ALERT_MESSAGE_SENT"] = "onOutgoingAlertMessageSent";
22
+ ZelloEvent["OUTGOING_ALERT_MESSAGE_SEND_FAILED"] = "onOutgoingAlertMessageSendFailed";
23
+ ZelloEvent["INCOMING_TEXT_MESSAGE_RECEIVED"] = "onIncomingTextMessage";
24
+ ZelloEvent["OUTGOING_TEXT_MESSAGE_SENT"] = "onOutgoingTextMessageSent";
25
+ ZelloEvent["OUTGOING_TEXT_MESSAGE_SEND_FAILED"] = "onOutgoingTextMessageSendFailed";
26
+ ZelloEvent["INCOMING_LOCATION_MESSAGE_RECEIVED"] = "onIncomingLocationMessage";
27
+ ZelloEvent["OUTGOING_LOCATION_MESSAGE_SENT"] = "onOutgoingLocationMessageSent";
28
+ ZelloEvent["OUTGOING_LOCATION_MESSAGE_SEND_FAILED"] = "onOutgoingLocationMessageSendFailed";
29
+ ZelloEvent["INCOMING_EMERGENCY_STARTED"] = "onIncomingEmergencyStarted";
30
+ ZelloEvent["INCOMING_EMERGENCY_STOPPED"] = "onIncomingEmergencyStopped";
31
+ ZelloEvent["OUTGOING_EMERGENCY_STARTED"] = "onOutgoingEmergencyStarted";
32
+ ZelloEvent["OUTGOING_EMERGENCY_STOPPED"] = "onOutgoingEmergencyStopped";
33
+ ZelloEvent["RECENTS_UPDATED"] = "onRecentsUpdated";
34
+ ZelloEvent["HISTORY_UPDATED"] = "onHistoryUpdated";
35
+ ZelloEvent["HISTORY_PLAYBACK_STARTED"] = "onHistoryPlaybackStarted";
36
+ ZelloEvent["HISTORY_PLAYBACK_STOPPED"] = "onHistoryPlaybackStopped";
37
+ return ZelloEvent;
38
+ }({});
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ZelloEvent"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;AAAA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ // noinspection JSUnusedGlobalSymbols
4
+
5
+ import { Zello } from "./sdk/index.js";
6
+ export default Zello;
7
+ export * from "./events/index.js";
8
+ export * from "./types/index.js";
9
+ export * from "./utils/index.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Zello"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;;AAEA,SAASA,KAAK,QAAQ,gBAAO;AAE7B,eAAeA,KAAK;AACpB,cAAc,mBAAU;AACxB,cAAc,kBAAS;AACvB,cAAc,kBAAS","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}