@swan-admin/swan-ai-measurements 1.0.13 → 1.0.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/auth.js +1 -1
- package/index.js +7 -3
- package/package.json +1 -1
package/auth.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from "axios";
|
|
|
2
2
|
import { API_ENDPOINTS, APP_AUTH_BASE_URL, APP_AUTH_WEBSOCKET_URL, APP_BASE_URL } from "./constants.js";
|
|
3
3
|
let socketRef;
|
|
4
4
|
|
|
5
|
-
export const registerUser = ({ email, appVerifyUrl, gender, height, username
|
|
5
|
+
export const registerUser = ({ email, appVerifyUrl, gender, height, username, accessKey }) => {
|
|
6
6
|
let body = {
|
|
7
7
|
username,
|
|
8
8
|
email,
|
package/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { addUser, getUserDetail, registerUser, verifyToken } from "./auth.js";
|
|
1
|
+
import { addUser, getUserDetail, handleAuthSocket, registerUser, verifyToken } from "./auth.js";
|
|
2
2
|
import { getCustomCustomerConfig } from "./custom.js";
|
|
3
3
|
import uploadFile from "./fileUpload.js";
|
|
4
|
+
import {
|
|
5
|
+
getMeasurementStatus,
|
|
6
|
+
getTryOnMeasurements,
|
|
7
|
+
handleMeasurementSocket,
|
|
8
|
+
handleTryOnSocket,
|
|
9
|
+
} from "./measurement.js";
|
|
4
10
|
export default class Swan {
|
|
5
11
|
constructor(key) {
|
|
6
12
|
if (key !== 9876543210) {
|
|
@@ -66,5 +72,3 @@ export default class Swan {
|
|
|
66
72
|
return handleAuthSocket({ email, scanId, accessKey: this.accessKey, onError, onSuccess, onClose, onOpen });
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
|
-
|
|
70
|
-
const a = new Swan(9876543210);
|