@intuitionrobotics/file-upload 0.41.67 → 0.41.70
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/app-backend/api/_upload.js +1 -1
- package/app-backend/api/_upload.js.map +1 -1
- package/app-backend/api/v1/upload/get-url.js +10 -54
- package/app-backend/api/v1/upload/get-url.js.map +1 -1
- package/app-backend/core/module-pack.js +8 -14
- package/app-backend/core/module-pack.js.map +1 -1
- package/app-backend/modules/BucketListener.js +17 -68
- package/app-backend/modules/BucketListener.js.map +1 -1
- package/app-backend/modules/ServerUploaderModule.js +16 -59
- package/app-backend/modules/ServerUploaderModule.js.map +1 -1
- package/app-backend/modules/UploaderModule.js +89 -200
- package/app-backend/modules/UploaderModule.js.map +1 -1
- package/app-backend/modules/UploaderTempFileModule.js +20 -35
- package/app-backend/modules/UploaderTempFileModule.js.map +1 -1
- package/app-frontend/core/module-pack.js +5 -11
- package/app-frontend/core/module-pack.js.map +1 -1
- package/app-frontend/modules/UploaderModule.js +25 -76
- package/app-frontend/modules/UploaderModule.js.map +1 -1
- package/package.json +4 -4
- package/shared/modules/BaseUploaderModule.js +75 -155
- package/shared/modules/BaseUploaderModule.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/file-upload",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.70",
|
|
4
4
|
"description": "File Uploader - Express & Typescript based backend framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"isomorphic-apk-reader": "^1.1.24",
|
|
46
46
|
"jszip": "^3.2.2",
|
|
47
47
|
"express": "^4.17.1",
|
|
48
|
-
"firebase": "^9.
|
|
49
|
-
"firebase-admin": "^
|
|
50
|
-
"firebase-functions": "^3.
|
|
48
|
+
"firebase": "^9.9.1",
|
|
49
|
+
"firebase-admin": "^11.0.0",
|
|
50
|
+
"firebase-functions": "^3.22.0",
|
|
51
51
|
"fs": "0.0.1-security",
|
|
52
52
|
"google-auth-library": "7.12.0",
|
|
53
53
|
"ts-node": "^8.6.2",
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -21,33 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
9
|
});
|
|
23
10
|
};
|
|
24
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
26
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
|
-
function step(op) {
|
|
29
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
31
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
|
-
switch (op[0]) {
|
|
34
|
-
case 0: case 1: t = op; break;
|
|
35
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
36
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
37
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
38
|
-
default:
|
|
39
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
40
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
41
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
42
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43
|
-
if (t[2]) _.ops.pop();
|
|
44
|
-
_.trys.pop(); continue;
|
|
45
|
-
}
|
|
46
|
-
op = body.call(thisArg, _);
|
|
47
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
48
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
12
|
exports.BaseUploaderModule_Class = exports.FileStatus = void 0;
|
|
53
13
|
/*
|
|
@@ -68,10 +28,10 @@ exports.BaseUploaderModule_Class = exports.FileStatus = void 0;
|
|
|
68
28
|
* See the License for the specific language governing permissions and
|
|
69
29
|
* limitations under the License.
|
|
70
30
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
31
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
32
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
33
|
+
const RequestKey_UploadUrl = 'get-upload-url';
|
|
34
|
+
const RequestKey_UploadFile = 'upload-file';
|
|
75
35
|
var FileStatus;
|
|
76
36
|
(function (FileStatus) {
|
|
77
37
|
FileStatus["ObtainingUrl"] = "ObtainingUrl";
|
|
@@ -83,103 +43,74 @@ var FileStatus;
|
|
|
83
43
|
FileStatus["Completed"] = "Completed";
|
|
84
44
|
FileStatus["Error"] = "Error";
|
|
85
45
|
})(FileStatus = exports.FileStatus || (exports.FileStatus = {}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
case 0: return [4 /*yield*/, this.uploadFile(r)];
|
|
109
|
-
case 1:
|
|
110
|
-
_a.sent();
|
|
111
|
-
delete this.files[feId].file;
|
|
112
|
-
this.setFileInfo(feId, "progress", undefined);
|
|
113
|
-
return [2 /*return*/];
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}); }, function () {
|
|
117
|
-
_this.setFileInfo(feId, "status", FileStatus.PostProcessing);
|
|
118
|
-
}, function (error) {
|
|
119
|
-
_this.setFileInfo(feId, "status", FileStatus.Error);
|
|
120
|
-
_this.setFileInfo(feId, "messageStatus", ts_common_1.__stringify(error));
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
return [2 /*return*/];
|
|
124
|
-
}
|
|
46
|
+
class BaseUploaderModule_Class extends ts_common_1.Module {
|
|
47
|
+
constructor(httpModule) {
|
|
48
|
+
super();
|
|
49
|
+
this.files = {};
|
|
50
|
+
this.uploadQueue = new ts_common_1.Queue("File Uploader").setParallelCount(2);
|
|
51
|
+
this.dispatch_fileStatusChange = new ts_common_1.Dispatcher('__onFileStatusChanged');
|
|
52
|
+
this.uploadFiles = (response) => __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
// Subscribe
|
|
54
|
+
yield this.subscribeToPush(response);
|
|
55
|
+
response.forEach(r => {
|
|
56
|
+
const feId = r.tempDoc.feId;
|
|
57
|
+
this.uploadQueue.addItem(() => __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
yield this.uploadFile(r);
|
|
59
|
+
delete this.files[feId].file;
|
|
60
|
+
this.setFileInfo(feId, "progress", undefined);
|
|
61
|
+
//TODO: Probably need to set a timer here in case we dont get a push back (contingency)
|
|
62
|
+
}), () => {
|
|
63
|
+
this.setFileInfo(feId, "status", FileStatus.PostProcessing);
|
|
64
|
+
}, error => {
|
|
65
|
+
this.setFileInfo(feId, "status", FileStatus.Error);
|
|
66
|
+
this.setFileInfo(feId, "messageStatus", ts_common_1.__stringify(error));
|
|
67
|
+
});
|
|
125
68
|
});
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
.setHeader('Content-Type', response.tempDoc.mimeType)
|
|
144
|
-
.setTimeout(20 * ts_common_1.Minute)
|
|
145
|
-
.setBody(fileInfo.file)
|
|
146
|
-
.setOnProgressListener(function (ev) {
|
|
147
|
-
_this.setFileInfo(feId, "progress", ev.loaded / ev.total);
|
|
148
|
-
});
|
|
149
|
-
this.setFileInfo(feId, "request", request);
|
|
150
|
-
return [4 /*yield*/, request.executeSync()];
|
|
151
|
-
case 1:
|
|
152
|
-
_a.sent();
|
|
153
|
-
return [2 /*return*/];
|
|
154
|
-
}
|
|
69
|
+
});
|
|
70
|
+
this.uploadFile = (response) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const feId = response.tempDoc.feId;
|
|
72
|
+
this.setFileInfo(feId, "status", FileStatus.UploadingFile);
|
|
73
|
+
this.setFileInfo(feId, "tempDoc", response.tempDoc);
|
|
74
|
+
const fileInfo = this.files[feId];
|
|
75
|
+
if (!fileInfo)
|
|
76
|
+
throw new ts_common_1.BadImplementationException(`Missing file with id ${feId} and name: ${response.tempDoc.name}`);
|
|
77
|
+
const request = this
|
|
78
|
+
.httpModule
|
|
79
|
+
.createRequest(thunderstorm_1.HttpMethod.PUT, RequestKey_UploadFile)
|
|
80
|
+
.setUrl(response.secureUrl)
|
|
81
|
+
.setHeader('Content-Type', response.tempDoc.mimeType)
|
|
82
|
+
.setTimeout(20 * ts_common_1.Minute)
|
|
83
|
+
.setBody(fileInfo.file)
|
|
84
|
+
.setOnProgressListener((ev) => {
|
|
85
|
+
this.setFileInfo(feId, "progress", ev.loaded / ev.total);
|
|
155
86
|
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
87
|
+
this.setFileInfo(feId, "request", request);
|
|
88
|
+
yield request.executeSync();
|
|
89
|
+
});
|
|
90
|
+
this.httpModule = httpModule;
|
|
159
91
|
}
|
|
160
|
-
|
|
92
|
+
init() {
|
|
161
93
|
if (this.config.uploadQueueParallelCount)
|
|
162
94
|
this.uploadQueue.setParallelCount(this.config.uploadQueueParallelCount);
|
|
163
|
-
}
|
|
164
|
-
|
|
95
|
+
}
|
|
96
|
+
getFileInfo(id, key) {
|
|
165
97
|
return this.files[id] && this.files[id][key];
|
|
166
|
-
}
|
|
167
|
-
|
|
98
|
+
}
|
|
99
|
+
getFullFileInfo(id) {
|
|
168
100
|
return this.files[id];
|
|
169
|
-
}
|
|
170
|
-
|
|
101
|
+
}
|
|
102
|
+
setFileInfo(id, key, value) {
|
|
171
103
|
if (!this.files[id])
|
|
172
|
-
throw new ts_common_1.BadImplementationException(
|
|
104
|
+
throw new ts_common_1.BadImplementationException(`Trying to set ${key} for non existent file with id: ${id}`);
|
|
173
105
|
this.files[id][key] = value;
|
|
174
106
|
this.dispatchFileStatusChange(id);
|
|
175
|
-
}
|
|
176
|
-
|
|
107
|
+
}
|
|
108
|
+
dispatchFileStatusChange(id) {
|
|
177
109
|
this.dispatch_fileStatusChange.dispatchModule([id]);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var fileInfo = {
|
|
110
|
+
}
|
|
111
|
+
uploadImpl(files) {
|
|
112
|
+
const body = files.map(fileData => {
|
|
113
|
+
const fileInfo = {
|
|
183
114
|
name: fileData.name,
|
|
184
115
|
mimeType: fileData.mimeType,
|
|
185
116
|
feId: ts_common_1.generateHex(32)
|
|
@@ -188,7 +119,7 @@ var BaseUploaderModule_Class = /** @class */ (function (_super) {
|
|
|
188
119
|
fileInfo.key = fileData.key;
|
|
189
120
|
if (fileData.public)
|
|
190
121
|
fileInfo.public = fileData.public;
|
|
191
|
-
|
|
122
|
+
this.files[fileInfo.feId] = {
|
|
192
123
|
file: fileData.file,
|
|
193
124
|
status: FileStatus.ObtainingUrl,
|
|
194
125
|
name: fileData.name
|
|
@@ -200,32 +131,21 @@ var BaseUploaderModule_Class = /** @class */ (function (_super) {
|
|
|
200
131
|
.createRequest(thunderstorm_1.HttpMethod.POST, RequestKey_UploadUrl)
|
|
201
132
|
.setRelativeUrl('/v1/upload/get-url')
|
|
202
133
|
.setJsonBody(body)
|
|
203
|
-
.setOnError(
|
|
204
|
-
body.forEach(
|
|
205
|
-
|
|
206
|
-
|
|
134
|
+
.setOnError((request, resError) => {
|
|
135
|
+
body.forEach(f => {
|
|
136
|
+
this.setFileInfo(f.feId, "messageStatus", ts_common_1.__stringify(resError === null || resError === void 0 ? void 0 : resError.debugMessage));
|
|
137
|
+
this.setFileInfo(f.feId, "status", FileStatus.Error);
|
|
207
138
|
});
|
|
208
139
|
})
|
|
209
|
-
.execute(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return [2 /*return*/];
|
|
217
|
-
// Not a relevant await but still...
|
|
218
|
-
return [4 /*yield*/, this.uploadFiles(response)];
|
|
219
|
-
case 1:
|
|
220
|
-
// Not a relevant await but still...
|
|
221
|
-
_a.sent();
|
|
222
|
-
return [2 /*return*/];
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
}); });
|
|
140
|
+
.execute((response) => __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
body.forEach(f => this.setFileInfo(f.feId, "status", FileStatus.UrlObtained));
|
|
142
|
+
if (!response)
|
|
143
|
+
return;
|
|
144
|
+
// Not a relevant await but still...
|
|
145
|
+
yield this.uploadFiles(response);
|
|
146
|
+
}));
|
|
226
147
|
return body;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
}(ts_common_1.Module));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
230
150
|
exports.BaseUploaderModule_Class = BaseUploaderModule_Class;
|
|
231
151
|
//# sourceMappingURL=BaseUploaderModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUploaderModule.js","sourceRoot":"","sources":["../../../src/main/shared/modules/BaseUploaderModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseUploaderModule.js","sourceRoot":"","sources":["../../../src/main/shared/modules/BaseUploaderModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,4DAQsC;AACtC,kEAMyC;AAUzC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAC9C,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAE5C,IAAY,UASX;AATD,WAAY,UAAU;IACrB,2CAA+B,CAAA;IAC/B,yCAA8B,CAAA;IAC9B,6CAAgC,CAAA;IAChC,kDAAkD;IAClD,6CAA6C;IAC7C,+CAAiC,CAAA;IACjC,qCAA4B,CAAA;IAC5B,6BAA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