@swan-admin/swan-ai-measurements 1.1.11 → 1.1.13

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/constants.js CHANGED
@@ -37,14 +37,6 @@ exports.API_ENDPOINTS = {
37
37
  AUTH: "/auth",
38
38
  SCANNING: "/scanning",
39
39
  };
40
- exports.requiredMetaData = [
41
- "gender",
42
- "email",
43
- "focal_length",
44
- "height",
45
- "customer_store_url",
46
- "callback_url",
47
- "clothes_fit",
48
- ];
40
+ exports.requiredMetaData = ["gender", "focal_length", "height", "customer_store_url", "callback_url", "clothes_fit"];
49
41
  exports.REQUIRED_MESSAGE = "Please verify required parameters";
50
42
  exports.REQUIRED_MESSAGE_FOR_META_DATA = "Please verify required parameters in meta data";
@@ -34,14 +34,6 @@ export const API_ENDPOINTS = {
34
34
  AUTH: "/auth",
35
35
  SCANNING: "/scanning",
36
36
  };
37
- export const requiredMetaData = [
38
- "gender",
39
- "email",
40
- "focal_length",
41
- "height",
42
- "customer_store_url",
43
- "callback_url",
44
- "clothes_fit",
45
- ];
37
+ export const requiredMetaData = ["gender", "focal_length", "height", "customer_store_url", "callback_url", "clothes_fit"];
46
38
  export const REQUIRED_MESSAGE = "Please verify required parameters";
47
39
  export const REQUIRED_MESSAGE_FOR_META_DATA = "Please verify required parameters in meta data";
package/dist/esm/utils.js CHANGED
@@ -14,7 +14,6 @@ export function fetchData(options) {
14
14
  const { path, body, queryParams, baseUrl = APP_AUTH_BASE_URL, apiKey = "", throwError = false, headers = { "X-Api-Key": apiKey, "Content-Type": "application/json" }, stagingUrl = false, } = options;
15
15
  const apiUrl = `${getUrl({ urlName: baseUrl, stagingUrl: stagingUrl })}${path}${queryParams ? `?${new URLSearchParams(queryParams)}` : ""}`;
16
16
  try {
17
- console.log(body);
18
17
  const res = yield axios.post(apiUrl, body, { headers });
19
18
  if (res.status >= 200 && res.status < 300) {
20
19
  return res.data;
package/dist/utils.js CHANGED
@@ -10,7 +10,6 @@ async function fetchData(options) {
10
10
  const { path, body, queryParams, baseUrl = constants_js_1.APP_AUTH_BASE_URL, apiKey = "", throwError = false, headers = { "X-Api-Key": apiKey, "Content-Type": "application/json" }, stagingUrl = false, } = options;
11
11
  const apiUrl = `${(0, exports.getUrl)({ urlName: baseUrl, stagingUrl: stagingUrl })}${path}${queryParams ? `?${new URLSearchParams(queryParams)}` : ""}`;
12
12
  try {
13
- console.log(body);
14
13
  const res = await axios_1.default.post(apiUrl, body, { headers });
15
14
  if (res.status >= 200 && res.status < 300) {
16
15
  return res.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -51,7 +51,7 @@
51
51
  "bugs": {
52
52
  "url": "https://github.com/Syze/swan-ai-measurements.git/issues"
53
53
  },
54
- "homepage": "https://github.com/paras-swan/swan-ai-measurements#readme",
54
+ "homepage": "https://github.com/Syze/swan-ai-measurements.git#readme",
55
55
  "devDependencies": {
56
56
  "nodemon": "^3.1.0"
57
57
  }
package/src/constants.ts CHANGED
@@ -57,15 +57,7 @@ export interface ObjMetaData {
57
57
  }
58
58
  type RequiredMetaDataKeys = keyof ObjMetaData;
59
59
 
60
- export const requiredMetaData: RequiredMetaDataKeys[] = [
61
- "gender",
62
- "email",
63
- "focal_length",
64
- "height",
65
- "customer_store_url",
66
- "callback_url",
67
- "clothes_fit",
68
- ];
60
+ export const requiredMetaData: RequiredMetaDataKeys[] = ["gender", "focal_length", "height", "customer_store_url", "callback_url", "clothes_fit"];
69
61
 
70
62
  export const REQUIRED_MESSAGE: string = "Please verify required parameters";
71
63
  export const REQUIRED_MESSAGE_FOR_META_DATA: string = "Please verify required parameters in meta data";
package/src/utils.ts CHANGED
@@ -26,7 +26,6 @@ export async function fetchData(options: FetchDataOptions): Promise<any> {
26
26
 
27
27
  const apiUrl = `${getUrl({ urlName: baseUrl, stagingUrl: stagingUrl })}${path}${queryParams ? `?${new URLSearchParams(queryParams)}` : ""}`;
28
28
  try {
29
- console.log(body);
30
29
  const res: AxiosResponse<any> = await axios.post(apiUrl, body, { headers });
31
30
  if (res.status >= 200 && res.status < 300) {
32
31
  return res.data;