shopar-plugin 1.0.0-alpha.13 → 1.0.0-alpha.15
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/shopar-plugin.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const strings_: {
|
|
2
2
|
'loading.ar': string;
|
|
3
|
-
'loading.3d': string;
|
|
4
3
|
'prompt.ar.shoes': string | undefined;
|
|
5
4
|
'prompt.ar.glasses': string | undefined;
|
|
6
5
|
'prompt.ar.watches': string | undefined;
|
|
@@ -242,6 +241,19 @@ type VisionOptions = {
|
|
|
242
241
|
declare class PluginError extends Error {
|
|
243
242
|
constructor(message: string);
|
|
244
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Error thrown when setup or option validation fails.
|
|
246
|
+
*/
|
|
247
|
+
declare class ValidationError extends PluginError {
|
|
248
|
+
constructor(message: string);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Error thrown when the ShopAR API call fails.
|
|
252
|
+
*/
|
|
253
|
+
declare class ApiError extends PluginError {
|
|
254
|
+
status: number | undefined;
|
|
255
|
+
constructor(message: string, status?: number);
|
|
256
|
+
}
|
|
245
257
|
/**
|
|
246
258
|
* Error thrown when 3D fails to launch.
|
|
247
259
|
*/
|
|
@@ -260,6 +272,12 @@ declare class LaunchARError extends PluginError {
|
|
|
260
272
|
declare class CameraPermissionDeniedError extends LaunchARError {
|
|
261
273
|
constructor(message?: string);
|
|
262
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Error thrown when QR code launch fails.
|
|
277
|
+
*/
|
|
278
|
+
declare class QRError extends LaunchARError {
|
|
279
|
+
constructor(message?: string);
|
|
280
|
+
}
|
|
263
281
|
|
|
264
282
|
/**
|
|
265
283
|
* Truescale output measurements
|
|
@@ -439,5 +457,5 @@ declare const plugin: {
|
|
|
439
457
|
version: string;
|
|
440
458
|
};
|
|
441
459
|
|
|
442
|
-
export { CameraPermissionDeniedError, Launch3DError, LaunchARError, PREVIEW_STATES, PluginError, plugin, vision };
|
|
460
|
+
export { ApiError, CameraPermissionDeniedError, Launch3DError, LaunchARError, PREVIEW_STATES, PluginError, QRError, ValidationError, plugin, vision };
|
|
443
461
|
export type { FaceMeasurement, FacePose, KeyFrameConfig, Plugin, PreviewState, SetupOptions, VisionOptions, VisionPlugin };
|