@swan-admin/swan-ai-measurements 1.0.83 → 1.0.84
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/esm/fileUpload.js +21 -21
- package/dist/fileUpload.js +20 -20
- package/package.json +1 -1
- package/src/fileUpload.ts +21 -21
package/dist/esm/fileUpload.js
CHANGED
|
@@ -86,37 +86,37 @@ class FileUpload {
|
|
|
86
86
|
},
|
|
87
87
|
});
|
|
88
88
|
},
|
|
89
|
-
|
|
90
|
-
// fetchData({
|
|
91
|
-
// path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_COMPLETE,
|
|
92
|
-
// apiKey: this.#accessKey,
|
|
93
|
-
// body: {
|
|
94
|
-
// uploadId,
|
|
95
|
-
// objectKey: key,
|
|
96
|
-
// parts,
|
|
97
|
-
// originalFileName: file.name,
|
|
98
|
-
// },
|
|
99
|
-
// }),
|
|
100
|
-
signPart: (file, partData) =>
|
|
89
|
+
completeMultipartUpload: (file, { uploadId, key, parts }) =>
|
|
101
90
|
fetchData({
|
|
102
|
-
path: UPPY_FILE_UPLOAD_ENDPOINT.
|
|
91
|
+
path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_COMPLETE,
|
|
103
92
|
apiKey: __classPrivateFieldGet(this, _FileUpload_accessKey, "f"),
|
|
104
93
|
body: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
94
|
+
uploadId,
|
|
95
|
+
objectKey: key,
|
|
96
|
+
parts,
|
|
97
|
+
originalFileName: file.name,
|
|
108
98
|
},
|
|
109
99
|
}),
|
|
110
|
-
|
|
100
|
+
signPart: (file, partData) =>
|
|
111
101
|
fetchData({
|
|
112
|
-
path: UPPY_FILE_UPLOAD_ENDPOINT.
|
|
102
|
+
path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_SIGN_PART,
|
|
113
103
|
apiKey: __classPrivateFieldGet(this, _FileUpload_accessKey, "f"),
|
|
114
104
|
body: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
objectKey: partData.key,
|
|
106
|
+
uploadId: partData.uploadId,
|
|
107
|
+
partNumber: partData.partNumber,
|
|
118
108
|
},
|
|
119
109
|
}),
|
|
110
|
+
// abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
|
|
111
|
+
// fetchData({
|
|
112
|
+
// path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
|
|
113
|
+
// apiKey: this.#accessKey,
|
|
114
|
+
// body: {
|
|
115
|
+
// uploadId,
|
|
116
|
+
// objectKey: key,
|
|
117
|
+
// originalFileName: file.name,
|
|
118
|
+
// },
|
|
119
|
+
// }),
|
|
120
120
|
});
|
|
121
121
|
__classPrivateFieldGet(this, _FileUpload_uppyIns, "f").addFile({
|
|
122
122
|
source: "manual",
|
package/dist/fileUpload.js
CHANGED
|
@@ -38,17 +38,16 @@ class FileUpload {
|
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
// }),
|
|
41
|
+
completeMultipartUpload: (file, { uploadId, key, parts }) => (0, utils_js_1.fetchData)({
|
|
42
|
+
path: constants_js_1.UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_COMPLETE,
|
|
43
|
+
apiKey: this.#accessKey,
|
|
44
|
+
body: {
|
|
45
|
+
uploadId,
|
|
46
|
+
objectKey: key,
|
|
47
|
+
parts,
|
|
48
|
+
originalFileName: file.name,
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
52
51
|
signPart: (file, partData) => (0, utils_js_1.fetchData)({
|
|
53
52
|
path: constants_js_1.UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_SIGN_PART,
|
|
54
53
|
apiKey: this.#accessKey,
|
|
@@ -58,15 +57,16 @@ class FileUpload {
|
|
|
58
57
|
partNumber: partData.partNumber,
|
|
59
58
|
},
|
|
60
59
|
}),
|
|
61
|
-
abortMultipartUpload: (file, { uploadId, key }
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
60
|
+
// abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
|
|
61
|
+
// fetchData({
|
|
62
|
+
// path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
|
|
63
|
+
// apiKey: this.#accessKey,
|
|
64
|
+
// body: {
|
|
65
|
+
// uploadId,
|
|
66
|
+
// objectKey: key,
|
|
67
|
+
// originalFileName: file.name,
|
|
68
|
+
// },
|
|
69
|
+
// }),
|
|
70
70
|
});
|
|
71
71
|
this.#uppyIns.addFile({
|
|
72
72
|
source: "manual",
|
package/package.json
CHANGED
package/src/fileUpload.ts
CHANGED
|
@@ -57,17 +57,17 @@ export default class FileUpload {
|
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
completeMultipartUpload: (file: any, { uploadId, key, parts }: { uploadId: string | number; key: string | number; parts: any }) =>
|
|
61
|
+
fetchData({
|
|
62
|
+
path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_COMPLETE,
|
|
63
|
+
apiKey: this.#accessKey,
|
|
64
|
+
body: {
|
|
65
|
+
uploadId,
|
|
66
|
+
objectKey: key,
|
|
67
|
+
parts,
|
|
68
|
+
originalFileName: file.name,
|
|
69
|
+
},
|
|
70
|
+
}),
|
|
71
71
|
|
|
72
72
|
signPart: (file: any, partData: any) =>
|
|
73
73
|
fetchData({
|
|
@@ -80,16 +80,16 @@ export default class FileUpload {
|
|
|
80
80
|
},
|
|
81
81
|
}),
|
|
82
82
|
|
|
83
|
-
abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
// abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
|
|
84
|
+
// fetchData({
|
|
85
|
+
// path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
|
|
86
|
+
// apiKey: this.#accessKey,
|
|
87
|
+
// body: {
|
|
88
|
+
// uploadId,
|
|
89
|
+
// objectKey: key,
|
|
90
|
+
// originalFileName: file.name,
|
|
91
|
+
// },
|
|
92
|
+
// }),
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
this.#uppyIns.addFile({
|