@capgo/capacitor-twilio-voice 7.2.17 → 7.3.2
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/android/src/main/java/ee/forgr/capacitor_twilio_voice/CapacitorTwilioVoicePlugin.java +13 -0
- package/dist/docs.json +19 -0
- package/dist/esm/definitions.d.ts +9 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +3 -0
- package/dist/esm/web.js +3 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +3 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorTwilioVoicePlugin/CapacitorTwilioVoicePlugin.swift +8 -1
- package/package.json +1 -1
package/android/src/main/java/ee/forgr/capacitor_twilio_voice/CapacitorTwilioVoicePlugin.java
CHANGED
|
@@ -67,6 +67,8 @@ import org.json.JSONObject;
|
|
|
67
67
|
)
|
|
68
68
|
public class CapacitorTwilioVoicePlugin extends Plugin {
|
|
69
69
|
|
|
70
|
+
private final String PLUGIN_VERSION = "7.3.2";
|
|
71
|
+
|
|
70
72
|
private static final String TAG = "CapacitorTwilioVoice";
|
|
71
73
|
private static final String PREF_ACCESS_TOKEN = "twilio_access_token";
|
|
72
74
|
private static final String PREF_FCM_TOKEN = "twilio_fcm_token";
|
|
@@ -1280,4 +1282,15 @@ public class CapacitorTwilioVoicePlugin extends Plugin {
|
|
|
1280
1282
|
Log.e(TAG, "Call invite not found for SID: " + callSid);
|
|
1281
1283
|
}
|
|
1282
1284
|
}
|
|
1285
|
+
|
|
1286
|
+
@PluginMethod
|
|
1287
|
+
public void getPluginVersion(final PluginCall call) {
|
|
1288
|
+
try {
|
|
1289
|
+
final JSObject ret = new JSObject();
|
|
1290
|
+
ret.put("version", this.PLUGIN_VERSION);
|
|
1291
|
+
call.resolve(ret);
|
|
1292
|
+
} catch (final Exception e) {
|
|
1293
|
+
call.reject("Could not get plugin version", e);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1283
1296
|
}
|
package/dist/docs.json
CHANGED
|
@@ -383,6 +383,25 @@
|
|
|
383
383
|
"docs": "",
|
|
384
384
|
"complexTypes": [],
|
|
385
385
|
"slug": "removealllisteners"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "getPluginVersion",
|
|
389
|
+
"signature": "() => Promise<{ version: string; }>",
|
|
390
|
+
"parameters": [],
|
|
391
|
+
"returns": "Promise<{ version: string; }>",
|
|
392
|
+
"tags": [
|
|
393
|
+
{
|
|
394
|
+
"name": "returns",
|
|
395
|
+
"text": "a Promise with version for this plugin"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "throws",
|
|
399
|
+
"text": "An error if something went wrong"
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"docs": "Get the native Capacitor plugin version",
|
|
403
|
+
"complexTypes": [],
|
|
404
|
+
"slug": "getpluginversion"
|
|
386
405
|
}
|
|
387
406
|
],
|
|
388
407
|
"properties": []
|
|
@@ -89,6 +89,15 @@ export interface CapacitorTwilioVoicePlugin {
|
|
|
89
89
|
error: string;
|
|
90
90
|
}) => void): Promise<PluginListenerHandle>;
|
|
91
91
|
removeAllListeners(): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Get the native Capacitor plugin version
|
|
94
|
+
*
|
|
95
|
+
* @returns {Promise<{ version: string }>} a Promise with version for this plugin
|
|
96
|
+
* @throws An error if something went wrong
|
|
97
|
+
*/
|
|
98
|
+
getPluginVersion(): Promise<{
|
|
99
|
+
version: string;
|
|
100
|
+
}>;
|
|
92
101
|
}
|
|
93
102
|
export interface PluginListenerHandle {
|
|
94
103
|
remove(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface CapacitorTwilioVoicePlugin {\n // Authentication\n login(options: { accessToken: string }): Promise<{ success: boolean }>;\n logout(): Promise<{ success: boolean }>;\n isLoggedIn(): Promise<{ isLoggedIn: boolean; hasValidToken: boolean; identity?: string }>;\n\n // Call Management\n makeCall(options: { to: string }): Promise<{ success: boolean; callSid?: string }>;\n acceptCall(options: { callSid: string }): Promise<{ success: boolean }>;\n rejectCall(options: { callSid: string }): Promise<{ success: boolean }>;\n endCall(options: { callSid?: string }): Promise<{ success: boolean }>;\n\n // Call Controls\n muteCall(options: { muted: boolean; callSid?: string }): Promise<{ success: boolean }>;\n setSpeaker(options: { enabled: boolean }): Promise<{ success: boolean }>;\n\n // Call Status\n getCallStatus(): Promise<{\n hasActiveCall: boolean;\n isOnHold: boolean;\n isMuted: boolean;\n callSid?: string;\n callState?: string;\n }>;\n\n // Audio Permissions\n checkMicrophonePermission(): Promise<{ granted: boolean }>;\n requestMicrophonePermission(): Promise<{ granted: boolean }>;\n\n // Listeners for events\n addListener(\n eventName: 'callInviteReceived',\n listenerFunc: (data: { callSid: string; from: string; to: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callConnected',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callDisconnected',\n listenerFunc: (data: { callSid: string; error?: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callRinging',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callReconnecting',\n listenerFunc: (data: { callSid: string; error?: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callReconnected',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callQualityWarningsChanged',\n listenerFunc: (data: { callSid: string; currentWarnings: string[]; previousWarnings: string[] }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(eventName: 'registrationSuccess', listenerFunc: () => void): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'registrationFailure',\n listenerFunc: (data: { error: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n removeAllListeners(): Promise<void>;\n}\n\nexport interface PluginListenerHandle {\n remove(): Promise<void>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface CapacitorTwilioVoicePlugin {\n // Authentication\n login(options: { accessToken: string }): Promise<{ success: boolean }>;\n logout(): Promise<{ success: boolean }>;\n isLoggedIn(): Promise<{ isLoggedIn: boolean; hasValidToken: boolean; identity?: string }>;\n\n // Call Management\n makeCall(options: { to: string }): Promise<{ success: boolean; callSid?: string }>;\n acceptCall(options: { callSid: string }): Promise<{ success: boolean }>;\n rejectCall(options: { callSid: string }): Promise<{ success: boolean }>;\n endCall(options: { callSid?: string }): Promise<{ success: boolean }>;\n\n // Call Controls\n muteCall(options: { muted: boolean; callSid?: string }): Promise<{ success: boolean }>;\n setSpeaker(options: { enabled: boolean }): Promise<{ success: boolean }>;\n\n // Call Status\n getCallStatus(): Promise<{\n hasActiveCall: boolean;\n isOnHold: boolean;\n isMuted: boolean;\n callSid?: string;\n callState?: string;\n }>;\n\n // Audio Permissions\n checkMicrophonePermission(): Promise<{ granted: boolean }>;\n requestMicrophonePermission(): Promise<{ granted: boolean }>;\n\n // Listeners for events\n addListener(\n eventName: 'callInviteReceived',\n listenerFunc: (data: { callSid: string; from: string; to: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callConnected',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callDisconnected',\n listenerFunc: (data: { callSid: string; error?: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callRinging',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callReconnecting',\n listenerFunc: (data: { callSid: string; error?: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callReconnected',\n listenerFunc: (data: { callSid: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'callQualityWarningsChanged',\n listenerFunc: (data: { callSid: string; currentWarnings: string[]; previousWarnings: string[] }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(eventName: 'registrationSuccess', listenerFunc: () => void): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'registrationFailure',\n listenerFunc: (data: { error: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n removeAllListeners(): Promise<void>;\n\n /**\n * Get the native Capacitor plugin version\n *\n * @returns {Promise<{ version: string }>} a Promise with version for this plugin\n * @throws An error if something went wrong\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n\nexport interface PluginListenerHandle {\n remove(): Promise<void>;\n}\n"]}
|
package/dist/esm/web.d.ts
CHANGED
package/dist/esm/web.js
CHANGED
|
@@ -41,5 +41,8 @@ export class CapacitorTwilioVoiceWeb extends WebPlugin {
|
|
|
41
41
|
async requestMicrophonePermission() {
|
|
42
42
|
throw this.unimplemented('Not implemented on web.');
|
|
43
43
|
}
|
|
44
|
+
async getPluginVersion() {
|
|
45
|
+
return { version: 'web' };
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
48
|
//# sourceMappingURL=web.js.map
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD,iBAAiB;IACjB,KAAK,CAAC,KAAK,CAAC,QAAiC;QAC3C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,QAAQ,CAAC,QAAwB;QACrC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAA6B;QAC5C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAA6B;QAC5C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,QAA8B;QAC1C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,gBAAgB;IAChB,KAAK,CAAC,QAAQ,CAAC,QAA8C;QAC3D,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAA8B;QAC7C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,cAAc;IACd,KAAK,CAAC,aAAa;QAOjB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,oBAAoB;IACpB,KAAK,CAAC,yBAAyB;QAC7B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,2BAA2B;QAC/B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { CapacitorTwilioVoicePlugin } from './definitions';\n\nexport class CapacitorTwilioVoiceWeb extends WebPlugin implements CapacitorTwilioVoicePlugin {\n // Authentication\n async login(_options: { accessToken: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async logout(): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async isLoggedIn(): Promise<{ isLoggedIn: boolean; hasValidToken: boolean; identity?: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Management\n async makeCall(_options: { to: string }): Promise<{ success: boolean; callSid?: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async acceptCall(_options: { callSid: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async rejectCall(_options: { callSid: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async endCall(_options: { callSid?: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Controls\n async muteCall(_options: { muted: boolean; callSid?: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async setSpeaker(_options: { enabled: boolean }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Status\n async getCallStatus(): Promise<{\n hasActiveCall: boolean;\n isOnHold: boolean;\n isMuted: boolean;\n callSid?: string;\n callState?: string;\n }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Audio Permissions\n async checkMicrophonePermission(): Promise<{ granted: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async requestMicrophonePermission(): Promise<{ granted: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD,iBAAiB;IACjB,KAAK,CAAC,KAAK,CAAC,QAAiC;QAC3C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAA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AK,EAAE,CAAC;IAC5B,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { CapacitorTwilioVoicePlugin } from './definitions';\n\nexport class CapacitorTwilioVoiceWeb extends WebPlugin implements CapacitorTwilioVoicePlugin {\n // Authentication\n async login(_options: { accessToken: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async logout(): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async isLoggedIn(): Promise<{ isLoggedIn: boolean; hasValidToken: boolean; identity?: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Management\n async makeCall(_options: { to: string }): Promise<{ success: boolean; callSid?: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async acceptCall(_options: { callSid: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async rejectCall(_options: { callSid: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async endCall(_options: { callSid?: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Controls\n async muteCall(_options: { muted: boolean; callSid?: string }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async setSpeaker(_options: { enabled: boolean }): Promise<{ success: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Call Status\n async getCallStatus(): Promise<{\n hasActiveCall: boolean;\n isOnHold: boolean;\n isMuted: boolean;\n callSid?: string;\n callState?: string;\n }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n // Audio Permissions\n async checkMicrophonePermission(): Promise<{ granted: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async requestMicrophonePermission(): Promise<{ granted: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getPluginVersion(): Promise<{ version: string }> {\n return { version: 'web' };\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -48,6 +48,9 @@ class CapacitorTwilioVoiceWeb extends core.WebPlugin {
|
|
|
48
48
|
async requestMicrophonePermission() {
|
|
49
49
|
throw this.unimplemented('Not implemented on web.');
|
|
50
50
|
}
|
|
51
|
+
async getPluginVersion() {
|
|
52
|
+
return { version: 'web' };
|
|
53
|
+
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
var web = /*#__PURE__*/Object.freeze({
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAC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AC3D,IAAI;AACJ;AACA,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;AACA,IAAI,MAAM,yBAAyB,GAAG;AACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,2BAA2B,GAAG;AACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getPluginVersion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AU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;AACA,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;AACA,IAAI,MAAM,yBAAyB,GAAG;AACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,2BAA2B,GAAG;AACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -47,6 +47,9 @@ var capacitorCapacitorTwilioVoice = (function (exports, core) {
|
|
|
47
47
|
async requestMicrophonePermission() {
|
|
48
48
|
throw this.unimplemented('Not implemented on web.');
|
|
49
49
|
}
|
|
50
|
+
async getPluginVersion() {
|
|
51
|
+
return { version: 'web' };
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
var web = /*#__PURE__*/Object.freeze({
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,oBAAoB,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;IACpE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;IAC3E,CAAC;;ICFM,MAAM,uBAAuB,SAASC,cAAS,CAAC;IACvD;IACA,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,OAAO,CAAC,QAAQ,EAAE;IAC5B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,yBAAyB,GAAG;IACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,2BAA2B,GAAG;IACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorTwilioVoice = registerPlugin('CapacitorTwilioVoice', {\n web: () => import('./web').then((m) => new m.CapacitorTwilioVoiceWeb()),\n});\nexport * from './definitions';\nexport { CapacitorTwilioVoice };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorTwilioVoiceWeb extends WebPlugin {\n // Authentication\n async login(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async logout() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isLoggedIn() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Management\n async makeCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async acceptCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async rejectCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async endCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Controls\n async muteCall(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setSpeaker(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n // Call Status\n async getCallStatus() {\n throw this.unimplemented('Not implemented on web.');\n }\n // Audio Permissions\n async checkMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async requestMicrophonePermission() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,oBAAoB,GAAGA,mBAAc,CAAC,sBAAsB,EAAE;IACpE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,uBAAuB,EAAE,CAAC;IAC3E,CAAC;;ICFM,MAAM,uBAAuB,SAASC,cAAS,CAAC;IACvD;IACA,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;IACA,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC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in: CAPPlugin, CAPBridgedPlugin, PushKitEventDelegate {
|
|
29
|
+
private let PLUGIN_VERSION: String = "7.3.2"
|
|
29
30
|
|
|
30
31
|
public let identifier = "CapacitorTwilioVoicePlugin"
|
|
31
32
|
public let jsName = "CapacitorTwilioVoice"
|
|
@@ -42,7 +43,8 @@ public class CapacitorTwilioVoicePlugin: CAPPlugin, CAPBridgedPlugin, PushKitEve
|
|
|
42
43
|
|
|
43
44
|
CAPPluginMethod(name: "getCallStatus", returnType: CAPPluginReturnPromise),
|
|
44
45
|
CAPPluginMethod(name: "checkMicrophonePermission", returnType: CAPPluginReturnPromise),
|
|
45
|
-
CAPPluginMethod(name: "requestMicrophonePermission", returnType: CAPPluginReturnPromise)
|
|
46
|
+
CAPPluginMethod(name: "requestMicrophonePermission", returnType: CAPPluginReturnPromise),
|
|
47
|
+
CAPPluginMethod(name: "getPluginVersion", returnType: CAPPluginReturnPromise)
|
|
46
48
|
]
|
|
47
49
|
|
|
48
50
|
// MARK: - Properties
|
|
@@ -1044,4 +1046,9 @@ extension CapacitorTwilioVoicePlugin: AVAudioPlayerDelegate {
|
|
|
1044
1046
|
NSLog("Audio player decode error: \(error.localizedDescription)")
|
|
1045
1047
|
}
|
|
1046
1048
|
}
|
|
1049
|
+
|
|
1050
|
+
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
1051
|
+
call.resolve(["version": self.PLUGIN_VERSION])
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1047
1054
|
}
|