@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 +1 -1
- package/dist/esm/custom.d.ts +1 -1
- package/dist/fileUpload.js +4 -4
- package/package.json +1 -1
- package/src/custom.ts +1 -1
package/dist/custom.d.ts
CHANGED
package/dist/esm/custom.d.ts
CHANGED
package/dist/fileUpload.js
CHANGED
|
@@ -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
|
-
|
|
10
|
-
|
|
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
|
|
31
|
-
this.#uppyIns.use(AwsS3Multipart
|
|
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
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,
|
|
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 },
|