@swan-admin/swan-ai-measurements 1.0.55 → 1.0.56

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.
Files changed (2) hide show
  1. package/constants.js +46 -0
  2. package/package.json +2 -2
package/constants.js ADDED
@@ -0,0 +1,46 @@
1
+ const APP_BASE_URL = "https://fitview-server-staging.ft2a64raup4pg.us-east-1.cs.amazonlightsail.com";
2
+ const APP_AUTH_BASE_URL = "https://staging.api.getswan.co";
3
+ const APP_AUTH_WEBSOCKET_URL = "wss://staging.wsnotify.api.getswan.co";
4
+ const APP_TRY_ON_WEBSOCKET_URL = "wss://bucbzczxjk.execute-api.ap-south-1.amazonaws.com";
5
+ const APP_RECOMMENDATION_WEBSOCKET_URL = "wss://staging.wsnotify.api.getswan.co/scanning";
6
+ const APP_POSE_DETECTION_WEbSOCKET_URL = "https://posedetect-service-staging.ft2a64raup4pg.us-east-1.cs.amazonlightsail.com";
7
+
8
+ const UPPY_FILE_UPLOAD_ENDPOINT = {
9
+ UPLOAD_START: "/upload/start",
10
+ UPLOAD_COMPLETE: "/upload/complete",
11
+ UPLOAD_SIGN_PART: "/upload/signpart",
12
+ UPLOAD_ABORT: "/upload/abort",
13
+ };
14
+
15
+ const API_ENDPOINTS = {
16
+ GET_USER_DETAIL: "/api/user",
17
+ REGISTER_USER: "/auth/register",
18
+ VERIFY_USER: "/auth/verify",
19
+ ADD_USER: "/user",
20
+ CUSTOM_CUSTOMER: "/customers/custom",
21
+ MODEL: "/model",
22
+ TRY_ON_SCAN: "/tryon/scan",
23
+ TRY_ON_IMAGE_UPLOAD: "/tryon/user-image-urls/upload",
24
+ TRY_ON_IMAGE_DOWNLOAD: "/tryon/user-image-urls/download",
25
+ TRY_ON_IMAGE_URLS: "/tryon/user-image-urls",
26
+ TRY_ON_RESULT_IMAGE_DOWNLOAD: "/tryon/result-image-urls/download",
27
+ TRY_ON: "/tryon",
28
+ AUTH: "/auth",
29
+ };
30
+ const requiredMetaData = ["gender", "scan_id", "email", "focal_length", "height", "customer_store_url", "scan_type", "callback_url", "clothes_fit"];
31
+ const REQUIRED_MESSAGE = "Please verify required parameters";
32
+ const REQUIRED_MESSAGE_FOR_META_DATA = "Please verify required parameters in meta data";
33
+
34
+ module.exports = {
35
+ APP_BASE_URL,
36
+ APP_AUTH_BASE_URL,
37
+ APP_AUTH_WEBSOCKET_URL,
38
+ APP_TRY_ON_WEBSOCKET_URL,
39
+ APP_RECOMMENDATION_WEBSOCKET_URL,
40
+ APP_POSE_DETECTION_WEbSOCKET_URL,
41
+ REQUIRED_MESSAGE_FOR_META_DATA,
42
+ REQUIRED_MESSAGE,
43
+ requiredMetaData,
44
+ API_ENDPOINTS,
45
+ UPPY_FILE_UPLOAD_ENDPOINT,
46
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
7
7
  "files": [
8
8
  "index.js",
9
9
  "auth.js",
10
- "constant.js",
10
+ "constants.js",
11
11
  "custom.js",
12
12
  "fileUpload.js",
13
13
  "measurement.js",