@swan-admin/swan-ai-measurements 1.1.0 → 1.1.2

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/custom.d.ts CHANGED
@@ -4,7 +4,7 @@ declare class Custom {
4
4
  constructor(accessKey: string, stagingUrl?: boolean);
5
5
  createCustomer(payload: {
6
6
  name: string;
7
- store_url: string;
7
+ storeUrl: string;
8
8
  location: string;
9
9
  email: string;
10
10
  emailsTier_1: string;
@@ -4,7 +4,7 @@ declare class Custom {
4
4
  constructor(accessKey: string, stagingUrl?: boolean);
5
5
  createCustomer(payload: {
6
6
  name: string;
7
- store_url: string;
7
+ storeUrl: string;
8
8
  location: string;
9
9
  email: string;
10
10
  emailsTier_1: string;
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const axios_1 = __importDefault(require("axios"));
7
7
  const constants_js_1 = require("./constants.js");
8
8
  const utils_js_1 = require("./utils.js");
9
- const Uppy = require("fix-esm").require("@uppy/core");
10
- const AwsS3Multipart = require("fix-esm").require("@uppy/aws-s3-multipart");
9
+ import Uppy from "@uppy/core";
10
+ import AwsS3Multipart from "@uppy/aws-s3-multipart";
11
11
  class FileUpload {
12
12
  #uppyIns;
13
13
  #accessKey;
@@ -27,8 +27,8 @@ class FileUpload {
27
27
  if (this.#uppyIns) {
28
28
  this.#uppyIns.close();
29
29
  }
30
- this.#uppyIns = new Uppy.default({ autoProceed: true });
31
- this.#uppyIns.use(AwsS3Multipart.default, {
30
+ this.#uppyIns = new Uppy({ autoProceed: true });
31
+ this.#uppyIns.use(AwsS3Multipart, {
32
32
  limit: 10,
33
33
  retryDelays: [0, 1000, 3000, 5000],
34
34
  companionUrl: (0, utils_js_1.getUrl)({ urlName: constants_js_1.APP_AUTH_BASE_URL, stagingUrl: this.#stagingUrl }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/custom.ts CHANGED
@@ -10,7 +10,7 @@ class Custom {
10
10
  this.#stagingUrl = stagingUrl;
11
11
  }
12
12
 
13
- createCustomer(payload: {name: string, store_url: string, location: string, email: string, emailsTier_1: string, emailsTier_2: string}): Promise<AxiosResponse<any>>{
13
+ createCustomer(payload: {name: string, storeUrl: string, location: string, email: string, emailsTier_1: string, emailsTier_2: string}): Promise<AxiosResponse<any>>{
14
14
  return axios.post(`${getUrl({ urlName: APP_AUTH_BASE_URL, stagingUrl: this.#stagingUrl })}${API_ENDPOINTS.CREATE_CUSTOMER}`, {
15
15
  payload,
16
16
  headers: { "X-Api-Key": this.#accessKey },