@capgo/capacitor-persona 8.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/dist/docs.json ADDED
@@ -0,0 +1,380 @@
1
+ {
2
+ "api": {
3
+ "name": "PersonaPlugin",
4
+ "slug": "personaplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "startInquiry",
10
+ "signature": "(options: StartInquiryOptions) => Promise<void>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "StartInquiryOptions"
16
+ }
17
+ ],
18
+ "returns": "Promise<void>",
19
+ "tags": [],
20
+ "docs": "Launch a Persona Inquiry flow.",
21
+ "complexTypes": [
22
+ "StartInquiryOptions"
23
+ ],
24
+ "slug": "startinquiry"
25
+ },
26
+ {
27
+ "name": "addListener",
28
+ "signature": "(eventName: 'inquiryComplete', listenerFunc: (info: InquiryCompleteInfo) => void) => Promise<PluginListenerHandle>",
29
+ "parameters": [
30
+ {
31
+ "name": "eventName",
32
+ "docs": "",
33
+ "type": "'inquiryComplete'"
34
+ },
35
+ {
36
+ "name": "listenerFunc",
37
+ "docs": "",
38
+ "type": "(info: InquiryCompleteInfo) => void"
39
+ }
40
+ ],
41
+ "returns": "Promise<PluginListenerHandle>",
42
+ "tags": [],
43
+ "docs": "Listen for successful completion.",
44
+ "complexTypes": [
45
+ "PluginListenerHandle",
46
+ "InquiryCompleteInfo"
47
+ ],
48
+ "slug": "addlistenerinquirycomplete-"
49
+ },
50
+ {
51
+ "name": "addListener",
52
+ "signature": "(eventName: 'inquiryCanceled', listenerFunc: (info: InquiryCanceledInfo) => void) => Promise<PluginListenerHandle>",
53
+ "parameters": [
54
+ {
55
+ "name": "eventName",
56
+ "docs": "",
57
+ "type": "'inquiryCanceled'"
58
+ },
59
+ {
60
+ "name": "listenerFunc",
61
+ "docs": "",
62
+ "type": "(info: InquiryCanceledInfo) => void"
63
+ }
64
+ ],
65
+ "returns": "Promise<PluginListenerHandle>",
66
+ "tags": [],
67
+ "docs": "Listen for cancellation.",
68
+ "complexTypes": [
69
+ "PluginListenerHandle",
70
+ "InquiryCanceledInfo"
71
+ ],
72
+ "slug": "addlistenerinquirycanceled-"
73
+ },
74
+ {
75
+ "name": "addListener",
76
+ "signature": "(eventName: 'inquiryError', listenerFunc: (info: InquiryErrorInfo) => void) => Promise<PluginListenerHandle>",
77
+ "parameters": [
78
+ {
79
+ "name": "eventName",
80
+ "docs": "",
81
+ "type": "'inquiryError'"
82
+ },
83
+ {
84
+ "name": "listenerFunc",
85
+ "docs": "",
86
+ "type": "(info: InquiryErrorInfo) => void"
87
+ }
88
+ ],
89
+ "returns": "Promise<PluginListenerHandle>",
90
+ "tags": [],
91
+ "docs": "Listen for unrecoverable errors.",
92
+ "complexTypes": [
93
+ "PluginListenerHandle",
94
+ "InquiryErrorInfo"
95
+ ],
96
+ "slug": "addlistenerinquiryerror-"
97
+ },
98
+ {
99
+ "name": "removeAllListeners",
100
+ "signature": "() => Promise<void>",
101
+ "parameters": [],
102
+ "returns": "Promise<void>",
103
+ "tags": [],
104
+ "docs": "Remove all registered listeners for this plugin instance.",
105
+ "complexTypes": [],
106
+ "slug": "removealllisteners"
107
+ }
108
+ ],
109
+ "properties": []
110
+ },
111
+ "interfaces": [
112
+ {
113
+ "name": "StartInquiryOptions",
114
+ "slug": "startinquiryoptions",
115
+ "docs": "Input payload used to launch an Inquiry.\n\nProvide at least one of:\n- `templateId`\n- `templateVersion`\n- `inquiryId`",
116
+ "tags": [],
117
+ "methods": [],
118
+ "properties": [
119
+ {
120
+ "name": "inquiryId",
121
+ "tags": [],
122
+ "docs": "Existing Inquiry ID created on your backend.",
123
+ "complexTypes": [],
124
+ "type": "string | undefined"
125
+ },
126
+ {
127
+ "name": "sessionToken",
128
+ "tags": [],
129
+ "docs": "Session token required when resuming an existing Inquiry.",
130
+ "complexTypes": [],
131
+ "type": "string | undefined"
132
+ },
133
+ {
134
+ "name": "templateId",
135
+ "tags": [],
136
+ "docs": "Inquiry template ID from Persona Dashboard (recommended).",
137
+ "complexTypes": [],
138
+ "type": "string | undefined"
139
+ },
140
+ {
141
+ "name": "templateVersion",
142
+ "tags": [],
143
+ "docs": "Inquiry template version ID from Persona Dashboard.",
144
+ "complexTypes": [],
145
+ "type": "string | undefined"
146
+ },
147
+ {
148
+ "name": "referenceId",
149
+ "tags": [],
150
+ "docs": "Your internal user reference.",
151
+ "complexTypes": [],
152
+ "type": "string | undefined"
153
+ },
154
+ {
155
+ "name": "accountId",
156
+ "tags": [],
157
+ "docs": "Persona account ID.",
158
+ "complexTypes": [],
159
+ "type": "string | undefined"
160
+ },
161
+ {
162
+ "name": "environment",
163
+ "tags": [
164
+ {
165
+ "text": "'production'",
166
+ "name": "default"
167
+ }
168
+ ],
169
+ "docs": "Persona environment.",
170
+ "complexTypes": [
171
+ "PersonaEnvironment"
172
+ ],
173
+ "type": "PersonaEnvironment"
174
+ },
175
+ {
176
+ "name": "locale",
177
+ "tags": [],
178
+ "docs": "Locale override, for example `en`, `fr`, `es`.",
179
+ "complexTypes": [],
180
+ "type": "string | undefined"
181
+ },
182
+ {
183
+ "name": "fields",
184
+ "tags": [],
185
+ "docs": "Optional fields pre-written into the Inquiry.",
186
+ "complexTypes": [
187
+ "Record",
188
+ "PersonaFieldValue"
189
+ ],
190
+ "type": "Record<string, PersonaFieldValue>"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "name": "PluginListenerHandle",
196
+ "slug": "pluginlistenerhandle",
197
+ "docs": "",
198
+ "tags": [],
199
+ "methods": [],
200
+ "properties": [
201
+ {
202
+ "name": "remove",
203
+ "tags": [],
204
+ "docs": "",
205
+ "complexTypes": [],
206
+ "type": "() => Promise<void>"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "InquiryCompleteInfo",
212
+ "slug": "inquirycompleteinfo",
213
+ "docs": "Payload emitted when an Inquiry is completed.",
214
+ "tags": [],
215
+ "methods": [],
216
+ "properties": [
217
+ {
218
+ "name": "inquiryId",
219
+ "tags": [],
220
+ "docs": "",
221
+ "complexTypes": [],
222
+ "type": "string"
223
+ },
224
+ {
225
+ "name": "status",
226
+ "tags": [],
227
+ "docs": "",
228
+ "complexTypes": [],
229
+ "type": "string"
230
+ },
231
+ {
232
+ "name": "fields",
233
+ "tags": [],
234
+ "docs": "",
235
+ "complexTypes": [
236
+ "Record",
237
+ "PersonaResultFieldValue"
238
+ ],
239
+ "type": "Record<string, PersonaResultFieldValue>"
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "name": "InquiryCanceledInfo",
245
+ "slug": "inquirycanceledinfo",
246
+ "docs": "Payload emitted when an Inquiry is canceled.",
247
+ "tags": [],
248
+ "methods": [],
249
+ "properties": [
250
+ {
251
+ "name": "inquiryId",
252
+ "tags": [],
253
+ "docs": "",
254
+ "complexTypes": [],
255
+ "type": "string | undefined"
256
+ },
257
+ {
258
+ "name": "sessionToken",
259
+ "tags": [],
260
+ "docs": "",
261
+ "complexTypes": [],
262
+ "type": "string | undefined"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "name": "InquiryErrorInfo",
268
+ "slug": "inquiryerrorinfo",
269
+ "docs": "Payload emitted when an Inquiry errors.",
270
+ "tags": [],
271
+ "methods": [],
272
+ "properties": [
273
+ {
274
+ "name": "error",
275
+ "tags": [],
276
+ "docs": "",
277
+ "complexTypes": [],
278
+ "type": "string"
279
+ },
280
+ {
281
+ "name": "errorCode",
282
+ "tags": [],
283
+ "docs": "",
284
+ "complexTypes": [],
285
+ "type": "string | undefined"
286
+ },
287
+ {
288
+ "name": "cause",
289
+ "tags": [],
290
+ "docs": "",
291
+ "complexTypes": [],
292
+ "type": "string | undefined"
293
+ }
294
+ ]
295
+ }
296
+ ],
297
+ "enums": [],
298
+ "typeAliases": [
299
+ {
300
+ "name": "PersonaEnvironment",
301
+ "slug": "personaenvironment",
302
+ "docs": "Environment where Persona should run.",
303
+ "types": [
304
+ {
305
+ "text": "'production'",
306
+ "complexTypes": []
307
+ },
308
+ {
309
+ "text": "'sandbox'",
310
+ "complexTypes": []
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "name": "Record",
316
+ "slug": "record",
317
+ "docs": "Construct a type with a set of properties K of type T",
318
+ "types": [
319
+ {
320
+ "text": "{\r\n [P in K]: T;\r\n}",
321
+ "complexTypes": [
322
+ "K",
323
+ "T"
324
+ ]
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "PersonaFieldValue",
330
+ "slug": "personafieldvalue",
331
+ "docs": "Supported field value types for pre-writing Inquiry fields.",
332
+ "types": [
333
+ {
334
+ "text": "string",
335
+ "complexTypes": []
336
+ },
337
+ {
338
+ "text": "number",
339
+ "complexTypes": []
340
+ },
341
+ {
342
+ "text": "boolean",
343
+ "complexTypes": []
344
+ },
345
+ {
346
+ "text": "string[]",
347
+ "complexTypes": []
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "name": "PersonaResultFieldValue",
353
+ "slug": "personaresultfieldvalue",
354
+ "docs": "Serialized field value returned in Inquiry result callbacks.",
355
+ "types": [
356
+ {
357
+ "text": "string",
358
+ "complexTypes": []
359
+ },
360
+ {
361
+ "text": "number",
362
+ "complexTypes": []
363
+ },
364
+ {
365
+ "text": "boolean",
366
+ "complexTypes": []
367
+ },
368
+ {
369
+ "text": "string[]",
370
+ "complexTypes": []
371
+ },
372
+ {
373
+ "text": "null",
374
+ "complexTypes": []
375
+ }
376
+ ]
377
+ }
378
+ ],
379
+ "pluginConfigs": []
380
+ }
@@ -0,0 +1,106 @@
1
+ import type { PluginListenerHandle } from '@capacitor/core';
2
+ /**
3
+ * Environment where Persona should run.
4
+ */
5
+ export type PersonaEnvironment = 'production' | 'sandbox';
6
+ /**
7
+ * Supported field value types for pre-writing Inquiry fields.
8
+ */
9
+ export type PersonaFieldValue = string | number | boolean | string[];
10
+ /**
11
+ * Serialized field value returned in Inquiry result callbacks.
12
+ */
13
+ export type PersonaResultFieldValue = string | number | boolean | string[] | null;
14
+ /**
15
+ * Input payload used to launch an Inquiry.
16
+ *
17
+ * Provide at least one of:
18
+ * - `templateId`
19
+ * - `templateVersion`
20
+ * - `inquiryId`
21
+ */
22
+ export interface StartInquiryOptions {
23
+ /**
24
+ * Existing Inquiry ID created on your backend.
25
+ */
26
+ inquiryId?: string;
27
+ /**
28
+ * Session token required when resuming an existing Inquiry.
29
+ */
30
+ sessionToken?: string;
31
+ /**
32
+ * Inquiry template ID from Persona Dashboard (recommended).
33
+ */
34
+ templateId?: string;
35
+ /**
36
+ * Inquiry template version ID from Persona Dashboard.
37
+ */
38
+ templateVersion?: string;
39
+ /**
40
+ * Your internal user reference.
41
+ */
42
+ referenceId?: string;
43
+ /**
44
+ * Persona account ID.
45
+ */
46
+ accountId?: string;
47
+ /**
48
+ * Persona environment.
49
+ *
50
+ * @default 'production'
51
+ */
52
+ environment?: PersonaEnvironment;
53
+ /**
54
+ * Locale override, for example `en`, `fr`, `es`.
55
+ */
56
+ locale?: string;
57
+ /**
58
+ * Optional fields pre-written into the Inquiry.
59
+ */
60
+ fields?: Record<string, PersonaFieldValue>;
61
+ }
62
+ /**
63
+ * Payload emitted when an Inquiry is completed.
64
+ */
65
+ export interface InquiryCompleteInfo {
66
+ inquiryId: string;
67
+ status: string;
68
+ fields: Record<string, PersonaResultFieldValue>;
69
+ }
70
+ /**
71
+ * Payload emitted when an Inquiry is canceled.
72
+ */
73
+ export interface InquiryCanceledInfo {
74
+ inquiryId?: string;
75
+ sessionToken?: string;
76
+ }
77
+ /**
78
+ * Payload emitted when an Inquiry errors.
79
+ */
80
+ export interface InquiryErrorInfo {
81
+ error: string;
82
+ errorCode?: string;
83
+ cause?: string;
84
+ }
85
+ export interface PersonaPlugin {
86
+ /**
87
+ * Launch a Persona Inquiry flow.
88
+ */
89
+ startInquiry(options: StartInquiryOptions): Promise<void>;
90
+ /**
91
+ * Listen for successful completion.
92
+ */
93
+ addListener(eventName: 'inquiryComplete', listenerFunc: (info: InquiryCompleteInfo) => void): Promise<PluginListenerHandle>;
94
+ /**
95
+ * Listen for cancellation.
96
+ */
97
+ addListener(eventName: 'inquiryCanceled', listenerFunc: (info: InquiryCanceledInfo) => void): Promise<PluginListenerHandle>;
98
+ /**
99
+ * Listen for unrecoverable errors.
100
+ */
101
+ addListener(eventName: 'inquiryError', listenerFunc: (info: InquiryErrorInfo) => void): Promise<PluginListenerHandle>;
102
+ /**
103
+ * Remove all registered listeners for this plugin instance.
104
+ */
105
+ removeAllListeners(): Promise<void>;
106
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\n/**\n * Environment where Persona should run.\n */\nexport type PersonaEnvironment = 'production' | 'sandbox';\n\n/**\n * Supported field value types for pre-writing Inquiry fields.\n */\nexport type PersonaFieldValue = string | number | boolean | string[];\n\n/**\n * Serialized field value returned in Inquiry result callbacks.\n */\nexport type PersonaResultFieldValue = string | number | boolean | string[] | null;\n\n/**\n * Input payload used to launch an Inquiry.\n *\n * Provide at least one of:\n * - `templateId`\n * - `templateVersion`\n * - `inquiryId`\n */\nexport interface StartInquiryOptions {\n /**\n * Existing Inquiry ID created on your backend.\n */\n inquiryId?: string;\n\n /**\n * Session token required when resuming an existing Inquiry.\n */\n sessionToken?: string;\n\n /**\n * Inquiry template ID from Persona Dashboard (recommended).\n */\n templateId?: string;\n\n /**\n * Inquiry template version ID from Persona Dashboard.\n */\n templateVersion?: string;\n\n /**\n * Your internal user reference.\n */\n referenceId?: string;\n\n /**\n * Persona account ID.\n */\n accountId?: string;\n\n /**\n * Persona environment.\n *\n * @default 'production'\n */\n environment?: PersonaEnvironment;\n\n /**\n * Locale override, for example `en`, `fr`, `es`.\n */\n locale?: string;\n\n /**\n * Optional fields pre-written into the Inquiry.\n */\n fields?: Record<string, PersonaFieldValue>;\n}\n\n/**\n * Payload emitted when an Inquiry is completed.\n */\nexport interface InquiryCompleteInfo {\n inquiryId: string;\n status: string;\n fields: Record<string, PersonaResultFieldValue>;\n}\n\n/**\n * Payload emitted when an Inquiry is canceled.\n */\nexport interface InquiryCanceledInfo {\n inquiryId?: string;\n sessionToken?: string;\n}\n\n/**\n * Payload emitted when an Inquiry errors.\n */\nexport interface InquiryErrorInfo {\n error: string;\n errorCode?: string;\n cause?: string;\n}\n\nexport interface PersonaPlugin {\n /**\n * Launch a Persona Inquiry flow.\n */\n startInquiry(options: StartInquiryOptions): Promise<void>;\n\n /**\n * Listen for successful completion.\n */\n addListener(\n eventName: 'inquiryComplete',\n listenerFunc: (info: InquiryCompleteInfo) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Listen for cancellation.\n */\n addListener(\n eventName: 'inquiryCanceled',\n listenerFunc: (info: InquiryCanceledInfo) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Listen for unrecoverable errors.\n */\n addListener(eventName: 'inquiryError', listenerFunc: (info: InquiryErrorInfo) => void): Promise<PluginListenerHandle>;\n\n /**\n * Remove all registered listeners for this plugin instance.\n */\n removeAllListeners(): Promise<void>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { PersonaPlugin } from './definitions';
2
+ declare const Persona: PersonaPlugin;
3
+ export * from './definitions';
4
+ export { Persona };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const Persona = registerPlugin('Persona', {
3
+ web: () => import('./web').then((m) => new m.PersonaWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { Persona };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,OAAO,GAAG,cAAc,CAAgB,SAAS,EAAE;IACvD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;CAC3D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { PersonaPlugin } from './definitions';\n\nconst Persona = registerPlugin<PersonaPlugin>('Persona', {\n web: () => import('./web').then((m) => new m.PersonaWeb()),\n});\n\nexport * from './definitions';\nexport { Persona };\n"]}
@@ -0,0 +1,5 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { PersonaPlugin, StartInquiryOptions } from './definitions';
3
+ export declare class PersonaWeb extends WebPlugin implements PersonaPlugin {
4
+ startInquiry(_options: StartInquiryOptions): Promise<void>;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class PersonaWeb extends WebPlugin {
3
+ async startInquiry(_options) {
4
+ throw this.unavailable('Persona Inquiry is only available on iOS and Android.');
5
+ }
6
+ }
7
+ //# sourceMappingURL=web.js.map
@@ -0,0 +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,UAAW,SAAQ,SAAS;IACvC,KAAK,CAAC,YAAY,CAAC,QAA6B;QAC9C,MAAM,IAAI,CAAC,WAAW,CAAC,uDAAuD,CAAC,CAAC;IAClF,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { PersonaPlugin, StartInquiryOptions } from './definitions';\n\nexport class PersonaWeb extends WebPlugin implements PersonaPlugin {\n async startInquiry(_options: StartInquiryOptions): Promise<void> {\n throw this.unavailable('Persona Inquiry is only available on iOS and Android.');\n }\n}\n"]}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var core = require('@capacitor/core');
4
+
5
+ const Persona = core.registerPlugin('Persona', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.PersonaWeb()),
7
+ });
8
+
9
+ class PersonaWeb extends core.WebPlugin {
10
+ async startInquiry(_options) {
11
+ throw this.unavailable('Persona Inquiry is only available on iOS and Android.');
12
+ }
13
+ }
14
+
15
+ var web = /*#__PURE__*/Object.freeze({
16
+ __proto__: null,
17
+ PersonaWeb: PersonaWeb
18
+ });
19
+
20
+ exports.Persona = Persona;
21
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Persona = registerPlugin('Persona', {\n web: () => import('./web').then((m) => new m.PersonaWeb()),\n});\nexport * from './definitions';\nexport { Persona };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PersonaWeb extends WebPlugin {\n async startInquiry(_options) {\n throw this.unavailable('Persona Inquiry is only available on iOS and Android.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC9D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;AACjC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,uDAAuD,CAAC;AACvF,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,24 @@
1
+ var capacitorPersona = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ const Persona = core.registerPlugin('Persona', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.PersonaWeb()),
6
+ });
7
+
8
+ class PersonaWeb extends core.WebPlugin {
9
+ async startInquiry(_options) {
10
+ throw this.unavailable('Persona Inquiry is only available on iOS and Android.');
11
+ }
12
+ }
13
+
14
+ var web = /*#__PURE__*/Object.freeze({
15
+ __proto__: null,
16
+ PersonaWeb: PersonaWeb
17
+ });
18
+
19
+ exports.Persona = Persona;
20
+
21
+ return exports;
22
+
23
+ })({}, capacitorExports);
24
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Persona = registerPlugin('Persona', {\n web: () => import('./web').then((m) => new m.PersonaWeb()),\n});\nexport * from './definitions';\nexport { Persona };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PersonaWeb extends WebPlugin {\n async startInquiry(_options) {\n throw this.unavailable('Persona Inquiry is only available on iOS and Android.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;IACjC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,uDAAuD,CAAC;IACvF,IAAI;IACJ;;;;;;;;;;;;;;;"}