capacitor-microblink 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs.json CHANGED
@@ -6,218 +6,59 @@
6
6
  "tags": [],
7
7
  "methods": [
8
8
  {
9
- "name": "startVerification",
10
- "signature": "(options: StartVerificationOptions) => Promise<StartVerificationResult>",
9
+ "name": "scanCard",
10
+ "signature": "(options: ScanCardOptions) => Promise<ScanCardResult>",
11
11
  "parameters": [
12
12
  {
13
13
  "name": "options",
14
14
  "docs": "",
15
- "type": "StartVerificationOptions"
15
+ "type": "ScanCardOptions"
16
16
  }
17
17
  ],
18
- "returns": "Promise<StartVerificationResult>",
18
+ "returns": "Promise<ScanCardResult>",
19
19
  "tags": [],
20
- "docs": "Starts Microblink identity verification flow.",
20
+ "docs": "Starts BlinkCard card scanning flow.",
21
21
  "complexTypes": [
22
- "StartVerificationResult",
23
- "StartVerificationOptions"
22
+ "ScanCardResult",
23
+ "ScanCardOptions"
24
24
  ],
25
- "slug": "startverification"
25
+ "slug": "scancard"
26
26
  },
27
27
  {
28
- "name": "scanCard",
29
- "signature": "(options: ScanCardOptions) => Promise<ScanCardResult>",
28
+ "name": "initializeBlinkCard",
29
+ "signature": "(options: InitializeBlinkCardOptions) => Promise<InitializeBlinkCardResult>",
30
30
  "parameters": [
31
31
  {
32
32
  "name": "options",
33
33
  "docs": "",
34
- "type": "ScanCardOptions"
34
+ "type": "InitializeBlinkCardOptions"
35
35
  }
36
36
  ],
37
- "returns": "Promise<ScanCardResult>",
37
+ "returns": "Promise<InitializeBlinkCardResult>",
38
38
  "tags": [],
39
- "docs": "Starts BlinkCard card scanning flow.",
39
+ "docs": "Initializes BlinkCard SDK/license before scanning.",
40
40
  "complexTypes": [
41
- "ScanCardResult",
42
- "ScanCardOptions"
41
+ "InitializeBlinkCardResult",
42
+ "InitializeBlinkCardOptions"
43
43
  ],
44
- "slug": "scancard"
44
+ "slug": "initializeblinkcard"
45
+ },
46
+ {
47
+ "name": "terminateBlinkCard",
48
+ "signature": "() => Promise<TerminateBlinkCardResult>",
49
+ "parameters": [],
50
+ "returns": "Promise<TerminateBlinkCardResult>",
51
+ "tags": [],
52
+ "docs": "Terminates BlinkCard SDK and clears cached plugin initialization state.",
53
+ "complexTypes": [
54
+ "TerminateBlinkCardResult"
55
+ ],
56
+ "slug": "terminateblinkcard"
45
57
  }
46
58
  ],
47
59
  "properties": []
48
60
  },
49
61
  "interfaces": [
50
- {
51
- "name": "StartVerificationResult",
52
- "slug": "startverificationresult",
53
- "docs": "",
54
- "tags": [],
55
- "methods": [],
56
- "properties": [
57
- {
58
- "name": "canceled",
59
- "tags": [],
60
- "docs": "",
61
- "complexTypes": [],
62
- "type": "boolean"
63
- },
64
- {
65
- "name": "transactionId",
66
- "tags": [],
67
- "docs": "",
68
- "complexTypes": [],
69
- "type": "string | null"
70
- },
71
- {
72
- "name": "status",
73
- "tags": [],
74
- "docs": "",
75
- "complexTypes": [],
76
- "type": "'accept' | 'review' | 'reject' | undefined"
77
- },
78
- {
79
- "name": "cancelReason",
80
- "tags": [],
81
- "docs": "",
82
- "complexTypes": [],
83
- "type": "'userCanceled' | 'consentDenied' | undefined"
84
- },
85
- {
86
- "name": "cardScanResult",
87
- "tags": [],
88
- "docs": "",
89
- "complexTypes": [
90
- "CardScanResult"
91
- ],
92
- "type": "CardScanResult"
93
- }
94
- ]
95
- },
96
- {
97
- "name": "CardScanResult",
98
- "slug": "cardscanresult",
99
- "docs": "",
100
- "tags": [],
101
- "methods": [],
102
- "properties": [
103
- {
104
- "name": "cardNumber",
105
- "tags": [],
106
- "docs": "",
107
- "complexTypes": [],
108
- "type": "string"
109
- },
110
- {
111
- "name": "expiryDate",
112
- "tags": [],
113
- "docs": "",
114
- "complexTypes": [],
115
- "type": "string"
116
- },
117
- {
118
- "name": "owner",
119
- "tags": [],
120
- "docs": "",
121
- "complexTypes": [],
122
- "type": "string"
123
- },
124
- {
125
- "name": "cvv",
126
- "tags": [],
127
- "docs": "",
128
- "complexTypes": [],
129
- "type": "string"
130
- }
131
- ]
132
- },
133
- {
134
- "name": "StartVerificationOptions",
135
- "slug": "startverificationoptions",
136
- "docs": "",
137
- "tags": [],
138
- "methods": [],
139
- "properties": [
140
- {
141
- "name": "workflowId",
142
- "tags": [],
143
- "docs": "",
144
- "complexTypes": [],
145
- "type": "string"
146
- },
147
- {
148
- "name": "url",
149
- "tags": [],
150
- "docs": "",
151
- "complexTypes": [],
152
- "type": "string"
153
- },
154
- {
155
- "name": "userId",
156
- "tags": [],
157
- "docs": "",
158
- "complexTypes": [],
159
- "type": "string"
160
- },
161
- {
162
- "name": "isProcessingStoringAllowed",
163
- "tags": [],
164
- "docs": "",
165
- "complexTypes": [],
166
- "type": "boolean"
167
- },
168
- {
169
- "name": "isTrainingAllowed",
170
- "tags": [],
171
- "docs": "",
172
- "complexTypes": [],
173
- "type": "boolean"
174
- },
175
- {
176
- "name": "note",
177
- "tags": [],
178
- "docs": "",
179
- "complexTypes": [],
180
- "type": "string | undefined"
181
- },
182
- {
183
- "name": "givenOn",
184
- "tags": [],
185
- "docs": "",
186
- "complexTypes": [],
187
- "type": "number | undefined"
188
- },
189
- {
190
- "name": "additionalRequestHeaders",
191
- "tags": [],
192
- "docs": "",
193
- "complexTypes": [
194
- "Record"
195
- ],
196
- "type": "Record<string, string>"
197
- },
198
- {
199
- "name": "startTransactionPath",
200
- "tags": [],
201
- "docs": "",
202
- "complexTypes": [],
203
- "type": "string | undefined"
204
- },
205
- {
206
- "name": "cancelWorkflowPath",
207
- "tags": [],
208
- "docs": "",
209
- "complexTypes": [],
210
- "type": "string | undefined"
211
- },
212
- {
213
- "name": "workflowInfoPath",
214
- "tags": [],
215
- "docs": "",
216
- "complexTypes": [],
217
- "type": "string | undefined"
218
- }
219
- ]
220
- },
221
62
  {
222
63
  "name": "ScanCardResult",
223
64
  "slug": "scancardresult",
@@ -341,7 +182,7 @@
341
182
  "tags": [],
342
183
  "docs": "",
343
184
  "complexTypes": [],
344
- "type": "string"
185
+ "type": "string | undefined"
345
186
  },
346
187
  {
347
188
  "name": "licensee",
@@ -393,24 +234,64 @@
393
234
  "type": "boolean | undefined"
394
235
  }
395
236
  ]
396
- }
397
- ],
398
- "enums": [],
399
- "typeAliases": [
237
+ },
400
238
  {
401
- "name": "Record",
402
- "slug": "record",
403
- "docs": "Construct a type with a set of properties K of type T",
404
- "types": [
239
+ "name": "InitializeBlinkCardResult",
240
+ "slug": "initializeblinkcardresult",
241
+ "docs": "",
242
+ "tags": [],
243
+ "methods": [],
244
+ "properties": [
405
245
  {
406
- "text": "{\r\n [P in K]: T;\r\n}",
407
- "complexTypes": [
408
- "K",
409
- "T"
410
- ]
246
+ "name": "initialized",
247
+ "tags": [],
248
+ "docs": "",
249
+ "complexTypes": [],
250
+ "type": "boolean"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "name": "InitializeBlinkCardOptions",
256
+ "slug": "initializeblinkcardoptions",
257
+ "docs": "",
258
+ "tags": [],
259
+ "methods": [],
260
+ "properties": [
261
+ {
262
+ "name": "licenseKey",
263
+ "tags": [],
264
+ "docs": "",
265
+ "complexTypes": [],
266
+ "type": "string"
267
+ },
268
+ {
269
+ "name": "licensee",
270
+ "tags": [],
271
+ "docs": "",
272
+ "complexTypes": [],
273
+ "type": "string | undefined"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "name": "TerminateBlinkCardResult",
279
+ "slug": "terminateblinkcardresult",
280
+ "docs": "",
281
+ "tags": [],
282
+ "methods": [],
283
+ "properties": [
284
+ {
285
+ "name": "terminated",
286
+ "tags": [],
287
+ "docs": "",
288
+ "complexTypes": [],
289
+ "type": "boolean"
411
290
  }
412
291
  ]
413
292
  }
414
293
  ],
294
+ "enums": [],
295
+ "typeAliases": [],
415
296
  "pluginConfigs": []
416
297
  }
@@ -1,36 +1,10 @@
1
- export interface StartVerificationOptions {
2
- workflowId: string;
3
- url: string;
4
- userId: string;
5
- isProcessingStoringAllowed: boolean;
6
- isTrainingAllowed: boolean;
7
- note?: string;
8
- givenOn?: number;
9
- additionalRequestHeaders?: Record<string, string>;
10
- startTransactionPath?: string;
11
- cancelWorkflowPath?: string;
12
- workflowInfoPath?: string;
13
- }
14
- export interface CardScanResult {
15
- cardNumber: string;
16
- expiryDate: string;
17
- owner: string;
18
- cvv: string;
19
- }
20
- export interface StartVerificationResult {
21
- canceled: boolean;
22
- transactionId: string | null;
23
- status?: 'accept' | 'review' | 'reject';
24
- cancelReason?: 'userCanceled' | 'consentDenied';
25
- cardScanResult?: CardScanResult;
26
- }
27
1
  export interface BlinkCardDate {
28
2
  day: number;
29
3
  month: number;
30
4
  year: number;
31
5
  }
32
6
  export interface ScanCardOptions {
33
- licenseKey: string;
7
+ licenseKey?: string;
34
8
  licensee?: string;
35
9
  extractOwner?: boolean;
36
10
  extractExpiryDate?: boolean;
@@ -39,6 +13,16 @@ export interface ScanCardOptions {
39
13
  allowInvalidCardNumber?: boolean;
40
14
  enableEditScreen?: boolean;
41
15
  }
16
+ export interface InitializeBlinkCardOptions {
17
+ licenseKey: string;
18
+ licensee?: string;
19
+ }
20
+ export interface InitializeBlinkCardResult {
21
+ initialized: boolean;
22
+ }
23
+ export interface TerminateBlinkCardResult {
24
+ terminated: boolean;
25
+ }
42
26
  export interface ScanCardResult {
43
27
  canceled: boolean;
44
28
  resultState?: 'empty' | 'uncertain' | 'valid' | 'stageValid';
@@ -52,12 +36,16 @@ export interface ScanCardResult {
52
36
  expiryDate?: BlinkCardDate | null;
53
37
  }
54
38
  export interface MicroblinkPlugin {
55
- /**
56
- * Starts Microblink identity verification flow.
57
- */
58
- startVerification(options: StartVerificationOptions): Promise<StartVerificationResult>;
59
39
  /**
60
40
  * Starts BlinkCard card scanning flow.
61
41
  */
62
42
  scanCard(options: ScanCardOptions): Promise<ScanCardResult>;
43
+ /**
44
+ * Initializes BlinkCard SDK/license before scanning.
45
+ */
46
+ initializeBlinkCard(options: InitializeBlinkCardOptions): Promise<InitializeBlinkCardResult>;
47
+ /**
48
+ * Terminates BlinkCard SDK and clears cached plugin initialization state.
49
+ */
50
+ terminateBlinkCard(): Promise<TerminateBlinkCardResult>;
63
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface StartVerificationOptions {\n workflowId: string;\n url: string;\n userId: string;\n isProcessingStoringAllowed: boolean;\n isTrainingAllowed: boolean;\n note?: string;\n givenOn?: number;\n additionalRequestHeaders?: Record<string, string>;\n startTransactionPath?: string;\n cancelWorkflowPath?: string;\n workflowInfoPath?: string;\n}\n\nexport interface CardScanResult {\n cardNumber: string;\n expiryDate: string;\n owner: string;\n cvv: string;\n}\n\nexport interface StartVerificationResult {\n canceled: boolean;\n transactionId: string | null;\n status?: 'accept' | 'review' | 'reject';\n cancelReason?: 'userCanceled' | 'consentDenied';\n cardScanResult?: CardScanResult;\n}\n\nexport interface BlinkCardDate {\n day: number;\n month: number;\n year: number;\n}\n\nexport interface ScanCardOptions {\n licenseKey: string;\n licensee?: string;\n extractOwner?: boolean;\n extractExpiryDate?: boolean;\n extractCvv?: boolean;\n extractIban?: boolean;\n allowInvalidCardNumber?: boolean;\n enableEditScreen?: boolean;\n}\n\nexport interface ScanCardResult {\n canceled: boolean;\n resultState?: 'empty' | 'uncertain' | 'valid' | 'stageValid';\n processingStatus?:\n | 'success'\n | 'detectionFailed'\n | 'imagePreprocessingFailed'\n | 'stabilityTestFailed'\n | 'scanningWrongSide'\n | 'fieldIdentificationFailed'\n | 'imageReturnFailed'\n | 'unsupportedCard';\n cardNumber?: string;\n cardNumberValid?: boolean;\n cardNumberPrefix?: string;\n owner?: string;\n cvv?: string;\n iban?: string;\n expiryDate?: BlinkCardDate | null;\n}\n\nexport interface MicroblinkPlugin {\n /**\n * Starts Microblink identity verification flow.\n */\n startVerification(\n options: StartVerificationOptions,\n ): Promise<StartVerificationResult>;\n\n /**\n * Starts BlinkCard card scanning flow.\n */\n scanCard(options: ScanCardOptions): Promise<ScanCardResult>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface BlinkCardDate {\n day: number;\n month: number;\n year: number;\n}\n\nexport interface ScanCardOptions {\n licenseKey?: string;\n licensee?: string;\n extractOwner?: boolean;\n extractExpiryDate?: boolean;\n extractCvv?: boolean;\n extractIban?: boolean;\n allowInvalidCardNumber?: boolean;\n enableEditScreen?: boolean;\n}\n\nexport interface InitializeBlinkCardOptions {\n licenseKey: string;\n licensee?: string;\n}\n\nexport interface InitializeBlinkCardResult {\n initialized: boolean;\n}\n\nexport interface TerminateBlinkCardResult {\n terminated: boolean;\n}\n\nexport interface ScanCardResult {\n canceled: boolean;\n resultState?: 'empty' | 'uncertain' | 'valid' | 'stageValid';\n processingStatus?:\n | 'success'\n | 'detectionFailed'\n | 'imagePreprocessingFailed'\n | 'stabilityTestFailed'\n | 'scanningWrongSide'\n | 'fieldIdentificationFailed'\n | 'imageReturnFailed'\n | 'unsupportedCard';\n cardNumber?: string;\n cardNumberValid?: boolean;\n cardNumberPrefix?: string;\n owner?: string;\n cvv?: string;\n iban?: string;\n expiryDate?: BlinkCardDate | null;\n}\n\nexport interface MicroblinkPlugin {\n /**\n * Starts BlinkCard card scanning flow.\n */\n scanCard(options: ScanCardOptions): Promise<ScanCardResult>;\n\n /**\n * Initializes BlinkCard SDK/license before scanning.\n */\n initializeBlinkCard(\n options: InitializeBlinkCardOptions,\n ): Promise<InitializeBlinkCardResult>;\n\n /**\n * Terminates BlinkCard SDK and clears cached plugin initialization state.\n */\n terminateBlinkCard(): Promise<TerminateBlinkCardResult>;\n}\n"]}
package/dist/esm/web.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
- import type { MicroblinkPlugin, ScanCardOptions, ScanCardResult, StartVerificationOptions, StartVerificationResult } from './definitions';
2
+ import type { InitializeBlinkCardOptions, InitializeBlinkCardResult, MicroblinkPlugin, ScanCardOptions, ScanCardResult, TerminateBlinkCardResult } from './definitions';
3
3
  export declare class MicroblinkWeb extends WebPlugin implements MicroblinkPlugin {
4
- startVerification(_options: StartVerificationOptions): Promise<StartVerificationResult>;
5
4
  scanCard(_options: ScanCardOptions): Promise<ScanCardResult>;
5
+ initializeBlinkCard(_options: InitializeBlinkCardOptions): Promise<InitializeBlinkCardResult>;
6
+ terminateBlinkCard(): Promise<TerminateBlinkCardResult>;
6
7
  }
package/dist/esm/web.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { WebPlugin } from '@capacitor/core';
2
2
  export class MicroblinkWeb extends WebPlugin {
3
- async startVerification(_options) {
4
- throw this.unimplemented('Microblink is only available on Android and iOS.');
5
- }
6
3
  async scanCard(_options) {
7
4
  throw this.unimplemented('BlinkCard is only available on Android and iOS.');
8
5
  }
6
+ async initializeBlinkCard(_options) {
7
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
8
+ }
9
+ async terminateBlinkCard() {
10
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
11
+ }
9
12
  }
10
13
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,iBAAiB,CACrB,QAAkC;QAElC,MAAM,IAAI,CAAC,aAAa,CAAC,kDAAkD,CAAC,CAAC;IAC/E,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAyB;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n MicroblinkPlugin,\n ScanCardOptions,\n ScanCardResult,\n StartVerificationOptions,\n StartVerificationResult,\n} from './definitions';\n\nexport class MicroblinkWeb extends WebPlugin implements MicroblinkPlugin {\n async startVerification(\n _options: StartVerificationOptions,\n ): Promise<StartVerificationResult> {\n throw this.unimplemented('Microblink is only available on Android and iOS.');\n }\n\n async scanCard(_options: ScanCardOptions): Promise<ScanCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,QAAQ,CAAC,QAAyB;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,QAAoC;QAEpC,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC,CAAC;IAC9E,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n InitializeBlinkCardOptions,\n InitializeBlinkCardResult,\n MicroblinkPlugin,\n ScanCardOptions,\n ScanCardResult,\n TerminateBlinkCardResult,\n} from './definitions';\n\nexport class MicroblinkWeb extends WebPlugin implements MicroblinkPlugin {\n async scanCard(_options: ScanCardOptions): Promise<ScanCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n\n async initializeBlinkCard(\n _options: InitializeBlinkCardOptions,\n ): Promise<InitializeBlinkCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n\n async terminateBlinkCard(): Promise<TerminateBlinkCardResult> {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n"]}
@@ -7,12 +7,15 @@ const Microblink = core.registerPlugin('Microblink', {
7
7
  });
8
8
 
9
9
  class MicroblinkWeb extends core.WebPlugin {
10
- async startVerification(_options) {
11
- throw this.unimplemented('Microblink is only available on Android and iOS.');
12
- }
13
10
  async scanCard(_options) {
14
11
  throw this.unimplemented('BlinkCard is only available on Android and iOS.');
15
12
  }
13
+ async initializeBlinkCard(_options) {
14
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
15
+ }
16
+ async terminateBlinkCard() {
17
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
18
+ }
16
19
  }
17
20
 
18
21
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async startVerification(_options) {\n throw this.unimplemented('Microblink is only available on Android and iOS.');\n }\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,aAAa,SAASC,cAAS,CAAC;AAC7C,IAAI,MAAM,iBAAiB,CAAC,QAAQ,EAAE;AACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,kDAAkD,CAAC;AACpF,IAAI;AACJ,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async initializeBlinkCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async terminateBlinkCard() {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,aAAa,SAASC,cAAS,CAAC;AAC7C,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ,IAAI,MAAM,mBAAmB,CAAC,QAAQ,EAAE;AACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -6,12 +6,15 @@ var capacitorMicroblink = (function (exports, core) {
6
6
  });
7
7
 
8
8
  class MicroblinkWeb extends core.WebPlugin {
9
- async startVerification(_options) {
10
- throw this.unimplemented('Microblink is only available on Android and iOS.');
11
- }
12
9
  async scanCard(_options) {
13
10
  throw this.unimplemented('BlinkCard is only available on Android and iOS.');
14
11
  }
12
+ async initializeBlinkCard(_options) {
13
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
14
+ }
15
+ async terminateBlinkCard() {
16
+ throw this.unimplemented('BlinkCard is only available on Android and iOS.');
17
+ }
15
18
  }
16
19
 
17
20
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async startVerification(_options) {\n throw this.unimplemented('Microblink is only available on Android and iOS.');\n }\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;IAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,aAAa,SAASC,cAAS,CAAC;IAC7C,IAAI,MAAM,iBAAiB,CAAC,QAAQ,EAAE;IACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,kDAAkD,CAAC;IACpF,IAAI;IACJ,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Microblink = registerPlugin('Microblink', {\n web: () => import('./web').then((m) => new m.MicroblinkWeb()),\n});\nexport * from './definitions';\nexport { Microblink };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MicroblinkWeb extends WebPlugin {\n async scanCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async initializeBlinkCard(_options) {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n async terminateBlinkCard() {\n throw this.unimplemented('BlinkCard is only available on Android and iOS.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;IAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,aAAa,SAASC,cAAS,CAAC;IAC7C,IAAI,MAAM,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ,IAAI,MAAM,mBAAmB,CAAC,QAAQ,EAAE;IACxC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ;;;;;;;;;;;;;;;"}