@intuitionrobotics/file-upload 0.41.69 → 0.41.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/file-upload",
3
- "version": "0.41.69",
3
+ "version": "0.41.72",
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.6.1",
49
- "firebase-admin": "^10.0.1",
50
- "firebase-functions": "^3.16.0",
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
- var ts_common_1 = require("@intuitionrobotics/ts-common");
72
- var thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
73
- var RequestKey_UploadUrl = 'get-upload-url';
74
- var RequestKey_UploadFile = 'upload-file';
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
- var BaseUploaderModule_Class = /** @class */ (function (_super) {
87
- __extends(BaseUploaderModule_Class, _super);
88
- function BaseUploaderModule_Class(httpModule) {
89
- var _this = _super.call(this) || this;
90
- _this.files = {};
91
- _this.uploadQueue = new ts_common_1.Queue("File Uploader").setParallelCount(2);
92
- _this.dispatch_fileStatusChange = new ts_common_1.Dispatcher('__onFileStatusChanged');
93
- _this.uploadFiles = function (response) { return __awaiter(_this, void 0, void 0, function () {
94
- var _this = this;
95
- return __generator(this, function (_a) {
96
- switch (_a.label) {
97
- case 0:
98
- // Subscribe
99
- return [4 /*yield*/, this.subscribeToPush(response)];
100
- case 1:
101
- // Subscribe
102
- _a.sent();
103
- response.forEach(function (r) {
104
- var feId = r.tempDoc.feId;
105
- _this.uploadQueue.addItem(function () { return __awaiter(_this, void 0, void 0, function () {
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
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
- _this.uploadFile = function (response) { return __awaiter(_this, void 0, void 0, function () {
128
- var feId, fileInfo, request;
129
- var _this = this;
130
- return __generator(this, function (_a) {
131
- switch (_a.label) {
132
- case 0:
133
- feId = response.tempDoc.feId;
134
- this.setFileInfo(feId, "status", FileStatus.UploadingFile);
135
- this.setFileInfo(feId, "tempDoc", response.tempDoc);
136
- fileInfo = this.files[feId];
137
- if (!fileInfo)
138
- throw new ts_common_1.BadImplementationException("Missing file with id " + feId + " and name: " + response.tempDoc.name);
139
- request = this
140
- .httpModule
141
- .createRequest(thunderstorm_1.HttpMethod.PUT, RequestKey_UploadFile)
142
- .setUrl(response.secureUrl)
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
- _this.httpModule = httpModule;
158
- return _this;
87
+ this.setFileInfo(feId, "request", request);
88
+ yield request.executeSync();
89
+ });
90
+ this.httpModule = httpModule;
159
91
  }
160
- BaseUploaderModule_Class.prototype.init = function () {
92
+ init() {
161
93
  if (this.config.uploadQueueParallelCount)
162
94
  this.uploadQueue.setParallelCount(this.config.uploadQueueParallelCount);
163
- };
164
- BaseUploaderModule_Class.prototype.getFileInfo = function (id, key) {
95
+ }
96
+ getFileInfo(id, key) {
165
97
  return this.files[id] && this.files[id][key];
166
- };
167
- BaseUploaderModule_Class.prototype.getFullFileInfo = function (id) {
98
+ }
99
+ getFullFileInfo(id) {
168
100
  return this.files[id];
169
- };
170
- BaseUploaderModule_Class.prototype.setFileInfo = function (id, key, value) {
101
+ }
102
+ setFileInfo(id, key, value) {
171
103
  if (!this.files[id])
172
- throw new ts_common_1.BadImplementationException("Trying to set " + key + " for non existent file with id: " + id);
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
- BaseUploaderModule_Class.prototype.dispatchFileStatusChange = function (id) {
107
+ }
108
+ dispatchFileStatusChange(id) {
177
109
  this.dispatch_fileStatusChange.dispatchModule([id]);
178
- };
179
- BaseUploaderModule_Class.prototype.uploadImpl = function (files) {
180
- var _this = this;
181
- var body = files.map(function (fileData) {
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
- _this.files[fileInfo.feId] = {
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(function (request, resError) {
204
- body.forEach(function (f) {
205
- _this.setFileInfo(f.feId, "messageStatus", ts_common_1.__stringify(resError === null || resError === void 0 ? void 0 : resError.debugMessage));
206
- _this.setFileInfo(f.feId, "status", FileStatus.Error);
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(function (response) { return __awaiter(_this, void 0, void 0, function () {
210
- var _this = this;
211
- return __generator(this, function (_a) {
212
- switch (_a.label) {
213
- case 0:
214
- body.forEach(function (f) { return _this.setFileInfo(f.feId, "status", FileStatus.UrlObtained); });
215
- if (!response)
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
- return BaseUploaderModule_Class;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,0DAQsC;AACtC,gEAMyC;AAUzC,IAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAC9C,IAAM,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,6BAAwB,CAAA;AACzB,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAyBD;IACS,4CAA6B;IAMrC,kCAAsB,UAAsB;QAA5C,YACC,iBAAO,SAEP;QARS,WAAK,GAA+B,EAAE,CAAC;QAChC,iBAAW,GAAU,IAAI,iBAAK,CAAC,eAAe,CAAC,CAAC,gBAAg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