bruce-models 0.6.6 → 0.6.8
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/README.md +0 -0
- package/dist/bruce-models.es5.js +280 -55
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +264 -48
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +4 -0
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +0 -0
- package/dist/lib/ann-document/ann-document.js.map +0 -0
- package/dist/lib/api/abstract-api.js +0 -0
- package/dist/lib/api/abstract-api.js.map +0 -0
- package/dist/lib/api/api.js +0 -0
- package/dist/lib/api/api.js.map +0 -0
- package/dist/lib/api/bruce-api.js +88 -26
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/api/cam-api.js +0 -0
- package/dist/lib/api/cam-api.js.map +0 -0
- package/dist/lib/api/global-api.js +0 -0
- package/dist/lib/api/global-api.js.map +0 -0
- package/dist/lib/api/idm-api.js +0 -0
- package/dist/lib/api/idm-api.js.map +0 -0
- package/dist/lib/bruce-models.js +5 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/calculator/calculator.js +0 -0
- package/dist/lib/calculator/calculator.js.map +0 -0
- package/dist/lib/client-file/client-file.js +0 -0
- package/dist/lib/client-file/client-file.js.map +0 -0
- package/dist/lib/common/bounds.js +0 -0
- package/dist/lib/common/bounds.js.map +0 -0
- package/dist/lib/common/bruce-event.js +0 -0
- package/dist/lib/common/bruce-event.js.map +0 -0
- package/dist/lib/common/bruce-variable.js +0 -0
- package/dist/lib/common/bruce-variable.js.map +0 -0
- package/dist/lib/common/cache.js +0 -0
- package/dist/lib/common/cache.js.map +0 -0
- package/dist/lib/common/camera.js +0 -0
- package/dist/lib/common/camera.js.map +0 -0
- package/dist/lib/common/cartes.js +0 -0
- package/dist/lib/common/cartes.js.map +0 -0
- package/dist/lib/common/carto.js +0 -0
- package/dist/lib/common/carto.js.map +0 -0
- package/dist/lib/common/color.js +0 -0
- package/dist/lib/common/color.js.map +0 -0
- package/dist/lib/common/delay-queue.js +0 -0
- package/dist/lib/common/delay-queue.js.map +0 -0
- package/dist/lib/common/dictionary.js +0 -0
- package/dist/lib/common/dictionary.js.map +0 -0
- package/dist/lib/common/geometry.js +0 -0
- package/dist/lib/common/geometry.js.map +0 -0
- package/dist/lib/common/transform.js +0 -0
- package/dist/lib/common/transform.js.map +0 -0
- package/dist/lib/common/utc.js +0 -0
- package/dist/lib/common/utc.js.map +0 -0
- package/dist/lib/custom-form/custom-form.js +0 -0
- package/dist/lib/custom-form/custom-form.js.map +0 -0
- package/dist/lib/data-lab/data-lab.js +0 -0
- package/dist/lib/data-lab/data-lab.js.map +0 -0
- package/dist/lib/entity/entity-attachment-type.js +0 -0
- package/dist/lib/entity/entity-attachment-type.js.map +0 -0
- package/dist/lib/entity/entity-attachment.js +0 -0
- package/dist/lib/entity/entity-attachment.js.map +0 -0
- package/dist/lib/entity/entity-comment.js +0 -0
- package/dist/lib/entity/entity-comment.js.map +0 -0
- package/dist/lib/entity/entity-link.js +0 -0
- package/dist/lib/entity/entity-link.js.map +0 -0
- package/dist/lib/entity/entity-lod.js +0 -0
- package/dist/lib/entity/entity-lod.js.map +0 -0
- package/dist/lib/entity/entity-relation-type.js +0 -0
- package/dist/lib/entity/entity-relation-type.js.map +0 -0
- package/dist/lib/entity/entity-relation.js +0 -0
- package/dist/lib/entity/entity-relation.js.map +0 -0
- package/dist/lib/entity/entity-source.js +0 -0
- package/dist/lib/entity/entity-source.js.map +0 -0
- package/dist/lib/entity/entity-tag.js +0 -0
- package/dist/lib/entity/entity-tag.js.map +0 -0
- package/dist/lib/entity/entity-type.js +0 -0
- package/dist/lib/entity/entity-type.js.map +0 -0
- package/dist/lib/entity/entity.js +0 -0
- package/dist/lib/entity/entity.js.map +0 -0
- package/dist/lib/entity/getters/batched-data-getter.js +0 -0
- package/dist/lib/entity/getters/batched-data-getter.js.map +0 -0
- package/dist/lib/entity/getters/entity-filter-getter.js +0 -0
- package/dist/lib/entity/getters/entity-filter-getter.js.map +0 -0
- package/dist/lib/entity/getters/entity-globe.js +0 -0
- package/dist/lib/entity/getters/entity-globe.js.map +0 -0
- package/dist/lib/entity/getters/view-monitor.js +0 -0
- package/dist/lib/entity/getters/view-monitor.js.map +0 -0
- package/dist/lib/import/import-cad.js +83 -0
- package/dist/lib/import/import-cad.js.map +1 -0
- package/dist/lib/import/import-csv.js +52 -0
- package/dist/lib/import/import-csv.js.map +1 -0
- package/dist/lib/import/import-json.js +52 -0
- package/dist/lib/import/import-json.js.map +1 -0
- package/dist/lib/import/import-kml.js +52 -0
- package/dist/lib/import/import-kml.js.map +1 -0
- package/dist/lib/import/imported-file.js +5 -5
- package/dist/lib/import/imported-file.js.map +1 -1
- package/dist/lib/markup/markup.js +0 -0
- package/dist/lib/markup/markup.js.map +0 -0
- package/dist/lib/program-key/program-key.js +0 -0
- package/dist/lib/program-key/program-key.js.map +0 -0
- package/dist/lib/project/menu-item.js +0 -0
- package/dist/lib/project/menu-item.js.map +0 -0
- package/dist/lib/project/project-view-bookmark.js +0 -0
- package/dist/lib/project/project-view-bookmark.js.map +0 -0
- package/dist/lib/project/project-view-tile-source.js +0 -0
- package/dist/lib/project/project-view-tile-source.js.map +0 -0
- package/dist/lib/project/project-view.js +0 -0
- package/dist/lib/project/project-view.js.map +0 -0
- package/dist/lib/project/zoom-control.js +0 -0
- package/dist/lib/project/zoom-control.js.map +0 -0
- package/dist/lib/server/pending-action.js +0 -0
- package/dist/lib/server/pending-action.js.map +0 -0
- package/dist/lib/server/task.js +0 -0
- package/dist/lib/server/task.js.map +0 -0
- package/dist/lib/style/style.js +0 -0
- package/dist/lib/style/style.js.map +0 -0
- package/dist/lib/tileset/tileset-cad.js +0 -0
- package/dist/lib/tileset/tileset-cad.js.map +0 -0
- package/dist/lib/tileset/tileset-entities-map-tiles.js +0 -0
- package/dist/lib/tileset/tileset-entities-map-tiles.js.map +0 -0
- package/dist/lib/tileset/tileset-entities.js +0 -0
- package/dist/lib/tileset/tileset-entities.js.map +0 -0
- package/dist/lib/tileset/tileset-ext-map-tiles.js +0 -0
- package/dist/lib/tileset/tileset-ext-map-tiles.js.map +0 -0
- package/dist/lib/tileset/tileset-ext-terrain-tiles.js +0 -0
- package/dist/lib/tileset/tileset-ext-terrain-tiles.js.map +0 -0
- package/dist/lib/tileset/tileset-map-tiles.js +0 -0
- package/dist/lib/tileset/tileset-map-tiles.js.map +0 -0
- package/dist/lib/tileset/tileset-pointcloud.js +0 -0
- package/dist/lib/tileset/tileset-pointcloud.js.map +0 -0
- package/dist/lib/tileset/tileset-terrain-tiles.js +0 -0
- package/dist/lib/tileset/tileset-terrain-tiles.js.map +0 -0
- package/dist/lib/tileset/tileset.js +0 -0
- package/dist/lib/tileset/tileset.js.map +0 -0
- package/dist/lib/ucs/ucs.js +0 -0
- package/dist/lib/ucs/ucs.js.map +0 -0
- package/dist/lib/user/permission.js +0 -0
- package/dist/lib/user/permission.js.map +0 -0
- package/dist/lib/user/session.js +0 -0
- package/dist/lib/user/session.js.map +0 -0
- package/dist/lib/user/user-group.js +0 -0
- package/dist/lib/user/user-group.js.map +0 -0
- package/dist/lib/user/user.js +0 -0
- package/dist/lib/user/user.js.map +0 -0
- package/dist/lib/util/encrypt-utils.js +0 -0
- package/dist/lib/util/encrypt-utils.js.map +0 -0
- package/dist/lib/util/math-utils.js +0 -0
- package/dist/lib/util/math-utils.js.map +0 -0
- package/dist/lib/util/object-utils.js +0 -0
- package/dist/lib/util/object-utils.js.map +0 -0
- package/dist/lib/util/path-utils.js +0 -0
- package/dist/lib/util/path-utils.js.map +0 -0
- package/dist/lib/util/url-utils.js +0 -0
- package/dist/lib/util/url-utils.js.map +0 -0
- package/dist/types/account/account.d.ts +5 -1
- package/dist/types/ann-document/ann-document.d.ts +0 -0
- package/dist/types/api/abstract-api.d.ts +0 -0
- package/dist/types/api/api.d.ts +0 -0
- package/dist/types/api/bruce-api.d.ts +2 -0
- package/dist/types/api/cam-api.d.ts +0 -0
- package/dist/types/api/global-api.d.ts +0 -0
- package/dist/types/api/idm-api.d.ts +0 -0
- package/dist/types/bruce-models.d.ts +5 -0
- package/dist/types/calculator/calculator.d.ts +0 -0
- package/dist/types/client-file/client-file.d.ts +0 -0
- package/dist/types/common/bounds.d.ts +0 -0
- package/dist/types/common/bruce-event.d.ts +0 -0
- package/dist/types/common/bruce-variable.d.ts +0 -0
- package/dist/types/common/cache.d.ts +0 -0
- package/dist/types/common/camera.d.ts +0 -0
- package/dist/types/common/cartes.d.ts +0 -0
- package/dist/types/common/carto.d.ts +0 -0
- package/dist/types/common/color.d.ts +0 -0
- package/dist/types/common/delay-queue.d.ts +0 -0
- package/dist/types/common/dictionary.d.ts +0 -0
- package/dist/types/common/geometry.d.ts +0 -0
- package/dist/types/common/transform.d.ts +0 -0
- package/dist/types/common/utc.d.ts +0 -0
- package/dist/types/custom-form/custom-form.d.ts +0 -0
- package/dist/types/data-lab/data-lab.d.ts +0 -0
- package/dist/types/entity/entity-attachment-type.d.ts +0 -0
- package/dist/types/entity/entity-attachment.d.ts +0 -0
- package/dist/types/entity/entity-comment.d.ts +0 -0
- package/dist/types/entity/entity-link.d.ts +0 -0
- package/dist/types/entity/entity-lod.d.ts +0 -0
- package/dist/types/entity/entity-relation-type.d.ts +0 -0
- package/dist/types/entity/entity-relation.d.ts +0 -0
- package/dist/types/entity/entity-source.d.ts +0 -0
- package/dist/types/entity/entity-tag.d.ts +0 -0
- package/dist/types/entity/entity-type.d.ts +0 -0
- package/dist/types/entity/entity.d.ts +0 -0
- package/dist/types/entity/getters/batched-data-getter.d.ts +0 -0
- package/dist/types/entity/getters/entity-filter-getter.d.ts +0 -0
- package/dist/types/entity/getters/entity-globe.d.ts +0 -0
- package/dist/types/entity/getters/view-monitor.d.ts +0 -0
- package/dist/types/import/import-cad.d.ts +39 -0
- package/dist/types/import/import-csv.d.ts +26 -0
- package/dist/types/import/import-json.d.ts +21 -0
- package/dist/types/import/import-kml.d.ts +14 -0
- package/dist/types/import/imported-file.d.ts +2 -1
- package/dist/types/markup/markup.d.ts +0 -0
- package/dist/types/program-key/program-key.d.ts +0 -0
- package/dist/types/project/menu-item.d.ts +0 -0
- package/dist/types/project/project-view-bookmark.d.ts +0 -0
- package/dist/types/project/project-view-tile-source.d.ts +0 -0
- package/dist/types/project/project-view.d.ts +0 -0
- package/dist/types/project/zoom-control.d.ts +0 -0
- package/dist/types/server/pending-action.d.ts +0 -0
- package/dist/types/server/task.d.ts +0 -0
- package/dist/types/style/style.d.ts +0 -0
- package/dist/types/tileset/tileset-cad.d.ts +0 -0
- package/dist/types/tileset/tileset-entities-map-tiles.d.ts +0 -0
- package/dist/types/tileset/tileset-entities.d.ts +0 -0
- package/dist/types/tileset/tileset-ext-map-tiles.d.ts +0 -0
- package/dist/types/tileset/tileset-ext-terrain-tiles.d.ts +0 -0
- package/dist/types/tileset/tileset-map-tiles.d.ts +0 -0
- package/dist/types/tileset/tileset-pointcloud.d.ts +0 -0
- package/dist/types/tileset/tileset-terrain-tiles.d.ts +0 -0
- package/dist/types/tileset/tileset.d.ts +0 -0
- package/dist/types/ucs/ucs.d.ts +0 -0
- package/dist/types/user/permission.d.ts +0 -0
- package/dist/types/user/session.d.ts +0 -0
- package/dist/types/user/user-group.d.ts +0 -0
- package/dist/types/user/user.d.ts +0 -0
- package/dist/types/util/encrypt-utils.d.ts +0 -0
- package/dist/types/util/math-utils.d.ts +0 -0
- package/dist/types/util/object-utils.d.ts +0 -0
- package/dist/types/util/path-utils.d.ts +0 -0
- package/dist/types/util/url-utils.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ImportJson = void 0;
|
|
40
|
+
var api_1 = require("../api/api");
|
|
41
|
+
var ImportJson;
|
|
42
|
+
(function (ImportJson) {
|
|
43
|
+
function ImportEntities(api, params) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
+
return __generator(this, function (_a) {
|
|
46
|
+
return [2 /*return*/, api.POST("entities/importJsonWithProgress", params, api_1.Api.PrepReqParams())];
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
ImportJson.ImportEntities = ImportEntities;
|
|
51
|
+
})(ImportJson = exports.ImportJson || (exports.ImportJson = {}));
|
|
52
|
+
//# sourceMappingURL=import-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-json.js","sourceRoot":"","sources":["../../../src/import/import-json.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAiC;AAIjC,IAAiB,UAAU,CAuB1B;AAvBD,WAAiB,UAAU;IAoBvB,SAAsB,cAAc,CAAC,GAAiB,EAAE,MAAqB;;;gBACzE,sBAAO,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,MAAM,EAAE,SAAG,CAAC,aAAa,EAAE,CAAC,EAAC;;;KACnF;IAFqB,yBAAc,iBAEnC,CAAA;AACL,CAAC,EAvBgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAuB1B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ImportKml = void 0;
|
|
40
|
+
var api_1 = require("../api/api");
|
|
41
|
+
var ImportKml;
|
|
42
|
+
(function (ImportKml) {
|
|
43
|
+
function ImportEntities(api, params) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
+
return __generator(this, function (_a) {
|
|
46
|
+
return [2 /*return*/, api.POST("entities/importKMLWithProgress2", params, api_1.Api.PrepReqParams())];
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
ImportKml.ImportEntities = ImportEntities;
|
|
51
|
+
})(ImportKml = exports.ImportKml || (exports.ImportKml = {}));
|
|
52
|
+
//# sourceMappingURL=import-kml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-kml.js","sourceRoot":"","sources":["../../../src/import/import-kml.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAiC;AAGjC,IAAiB,SAAS,CAgBzB;AAhBD,WAAiB,SAAS;IAatB,SAAsB,cAAc,CAAC,GAAiB,EAAE,MAAqB;;;gBACzE,sBAAO,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,MAAM,EAAE,SAAG,CAAC,aAAa,EAAE,CAAC,EAAC;;;KACnF;IAFqB,wBAAc,iBAEnC,CAAA;AACL,CAAC,EAhBgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAgBzB"}
|
|
@@ -37,15 +37,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ImportedFile = void 0;
|
|
40
|
-
var
|
|
40
|
+
var api_1 = require("../api/api");
|
|
41
41
|
var ImportedFile;
|
|
42
42
|
(function (ImportedFile) {
|
|
43
43
|
function GetCacheKey(fileId) {
|
|
44
|
-
return
|
|
44
|
+
return api_1.Api.ECacheKey.ImportedFile + api_1.Api.ECacheKey.Id + fileId;
|
|
45
45
|
}
|
|
46
46
|
ImportedFile.GetCacheKey = GetCacheKey;
|
|
47
47
|
function GetListCacheKey(type, pageIndex) {
|
|
48
|
-
return
|
|
48
|
+
return api_1.Api.ECacheKey.ImportedFile + type + pageIndex;
|
|
49
49
|
}
|
|
50
50
|
ImportedFile.GetListCacheKey = GetListCacheKey;
|
|
51
51
|
var EFileType;
|
|
@@ -97,7 +97,7 @@ var ImportedFile;
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}); });
|
|
100
|
-
api.Cache.Set(GetListCacheKey(type, pageIndex), prom,
|
|
100
|
+
api.Cache.Set(GetListCacheKey(type, pageIndex), prom, api_1.Api.DEFAULT_CACHE_DURATION);
|
|
101
101
|
return [2 /*return*/, prom];
|
|
102
102
|
});
|
|
103
103
|
});
|
|
@@ -112,7 +112,7 @@ var ImportedFile;
|
|
|
112
112
|
return [2 /*return*/, cacheData];
|
|
113
113
|
}
|
|
114
114
|
req = api.GET("entityImportFile/" + fileId);
|
|
115
|
-
api.Cache.Set(GetCacheKey(fileId), req,
|
|
115
|
+
api.Cache.Set(GetCacheKey(fileId), req, api_1.Api.DEFAULT_CACHE_DURATION);
|
|
116
116
|
return [2 /*return*/, req];
|
|
117
117
|
});
|
|
118
118
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imported-file.js","sourceRoot":"","sources":["../../../src/import/imported-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"imported-file.js","sourceRoot":"","sources":["../../../src/import/imported-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAiC;AAIjC,IAAiB,YAAY,CAwE5B;AAxED,WAAiB,YAAY;IACzB,SAAgB,WAAW,CAAC,MAAc;QACtC,OAAO,SAAG,CAAC,SAAS,CAAC,YAAY,GAAG,SAAG,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,CAAC;IAClE,CAAC;IAFe,wBAAW,cAE1B,CAAA;IAED,SAAgB,eAAe,CAAC,IAAe,EAAE,SAAiB;QAC9D,OAAO,SAAG,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD,CAAC;IAFe,4BAAe,kBAE9B,CAAA;IAgBD,IAAY,SAGX;IAHD,WAAY,SAAS;QACjB,wBAAW,CAAA;QACX,wBAAW,CAAA;IACf,CAAC,EAHW,SAAS,GAAT,sBAAS,KAAT,sBAAS,QAGpB;IAED,SAAsB,OAAO,CAAC,GAAiB,EAAE,IAAgB,EAAE,SAAkB;;;;;gBACjF,IAAI,CAAC,IAAI,EAAE;oBACP,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC;iBACxB;gBACD,IAAI,CAAC,SAAS,EAAE;oBACZ,SAAS,GAAG,CAAC,CAAC;iBACjB;gBACK,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;gBAClE,IAAI,SAAS,EAAE;oBACX,sBAAO,SAAS,EAAC;iBACpB;gBAEG,KAAK,GAAG,IAAI,CAAC;gBACb,GAAG,GAAG,mBAAmB,CAAC;gBAC9B,IAAI,IAAI,IAAI,SAAS,CAAC,GAAG,EAAE;oBACvB,GAAG,IAAI,YAAY,GAAG,IAAI,CAAC;oBAC3B,KAAK,GAAG,KAAK,CAAC;iBACjB;gBACD,IAAI,SAAS,GAAG,CAAC,EAAE;oBACf,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,YAAY,GAAG,SAAS,CAAC;iBACzD;gBACK,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACnB,IAAI,GAAqB,IAAI,OAAO,CAAC,UAAO,GAAG,EAAE,GAAG;;;;;;gCAErC,qBAAM,GAAG,EAAA;;gCAAhB,IAAI,GAAG,SAAS;gCACtB,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;;;gCAGhB,GAAG,CAAC,GAAC,CAAC,CAAC;;;;;qBAEd,CAAC,CAAC;gBACH,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,SAAG,CAAC,sBAAsB,CAAC,CAAC;gBAClF,sBAAO,IAAI,EAAC;;;KACf;IAjCqB,oBAAO,UAiC5B,CAAA;IAED,SAAsB,GAAG,CAAC,GAAiB,EAAE,MAAc;;;;gBACjD,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;gBACrD,IAAI,SAAS,EAAE;oBACX,sBAAO,SAAS,EAAC;iBACpB;gBACK,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,sBAAoB,MAAQ,CAAC,CAAC;gBAClD,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,SAAG,CAAC,sBAAsB,CAAC,CAAC;gBACpE,sBAAO,GAAG,EAAC;;;KACd;IARqB,gBAAG,MAQxB,CAAA;AACL,CAAC,EAxEgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAwE5B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/server/task.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/lib/style/style.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/ucs/ucs.js
CHANGED
|
File without changes
|
package/dist/lib/ucs/ucs.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/user/session.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/lib/user/user.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,6 +14,10 @@ export declare namespace Account {
|
|
|
14
14
|
Singapore = "SE",
|
|
15
15
|
Australia = "AU"
|
|
16
16
|
}
|
|
17
|
+
enum EAppId {
|
|
18
|
+
BruceApi = "BruceAPI"
|
|
19
|
+
}
|
|
20
|
+
type AppId = EAppId | string;
|
|
17
21
|
enum EStarterContent {
|
|
18
22
|
Default = "default",
|
|
19
23
|
None = "none"
|
|
@@ -33,7 +37,7 @@ export declare namespace Account {
|
|
|
33
37
|
}
|
|
34
38
|
function Get(api: CamApi.Api, id: string): Promise<IAccount>;
|
|
35
39
|
function GetRelatedList(api: IdmApi.Api): Promise<IAccount[]>;
|
|
36
|
-
function GetAppSettings(api: CamApi.Api, id: string, appId:
|
|
40
|
+
function GetAppSettings(api: CamApi.Api, id: string, appId: AppId): Promise<any>;
|
|
37
41
|
/**
|
|
38
42
|
* WARNING: Do not update API settings without knowing what you're doing.
|
|
39
43
|
* @param api
|
|
File without changes
|
|
File without changes
|
package/dist/types/api/api.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -64,3 +64,8 @@ export * from "./util/object-utils";
|
|
|
64
64
|
export * from "./util/path-utils";
|
|
65
65
|
export * from "./util/url-utils";
|
|
66
66
|
export * from "./data-lab/data-lab";
|
|
67
|
+
export * from "./import/import-cad";
|
|
68
|
+
export * from "./import/import-csv";
|
|
69
|
+
export * from "./import/import-json";
|
|
70
|
+
export * from "./import/import-kml";
|
|
71
|
+
export * from "./import/imported-file";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
/**
|
|
3
|
+
* TODO: The analysis result is currently a mix of multiple layers of legacy.
|
|
4
|
+
* We will first decide what we want it to do and then describe just the needed portions of the existing implementation.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace ImportCad {
|
|
7
|
+
interface IAnalyzeParams {
|
|
8
|
+
"TempFile.ID": string;
|
|
9
|
+
"OriginalIFCFile.Name": string;
|
|
10
|
+
}
|
|
11
|
+
interface IAnalyzeRes {
|
|
12
|
+
PendingActionID: number;
|
|
13
|
+
}
|
|
14
|
+
interface IImportParams {
|
|
15
|
+
"TempFile.ID": string;
|
|
16
|
+
"OriginalIFCFile.Name": string;
|
|
17
|
+
"IFCSettings": {
|
|
18
|
+
"ClassificationRules": {
|
|
19
|
+
"NewIFCStandard.Name": string;
|
|
20
|
+
"IFCStandard": string;
|
|
21
|
+
"IsExtendingAllowed": boolean;
|
|
22
|
+
"AllowAddingNewEntityTypes": boolean;
|
|
23
|
+
"AllowAddingNewAttributes": boolean;
|
|
24
|
+
"EntityTypesDerivedFromAttribute": string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface IImportRes {
|
|
29
|
+
PendingActionID: number;
|
|
30
|
+
}
|
|
31
|
+
function Analyze(api: BruceApi.Api, params: IAnalyzeParams): Promise<IAnalyzeRes>;
|
|
32
|
+
function ImportEntities(api: BruceApi.Api, params: IImportParams): Promise<IImportRes>;
|
|
33
|
+
/**
|
|
34
|
+
* Parses the completed pending action result from running "ImportEntities".
|
|
35
|
+
* This will return the root entity's id if any is present.
|
|
36
|
+
* @param paResult
|
|
37
|
+
*/
|
|
38
|
+
function ParseRootId(paResult: string | Object): string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
export declare namespace ImportCsv {
|
|
3
|
+
interface IImportParams {
|
|
4
|
+
"TempFile.ID": string;
|
|
5
|
+
"CSVSettings": {
|
|
6
|
+
"IsTitleRow": boolean;
|
|
7
|
+
"Delimiter": string;
|
|
8
|
+
"IsRecordQuoted": boolean;
|
|
9
|
+
"Columns": string[];
|
|
10
|
+
};
|
|
11
|
+
"OriginalCSVFile.Name": string;
|
|
12
|
+
"ImportMode": string;
|
|
13
|
+
"EntityType.ID": string;
|
|
14
|
+
"TargetDataSchema": any;
|
|
15
|
+
"DataMapping": any;
|
|
16
|
+
"Layers": number[];
|
|
17
|
+
"SkipUnresolvedRows": boolean;
|
|
18
|
+
"DeleteNonupdatedEntities": boolean;
|
|
19
|
+
"Async": boolean;
|
|
20
|
+
"SkipFailedEntities": boolean;
|
|
21
|
+
}
|
|
22
|
+
interface IImportRes {
|
|
23
|
+
PendingActionID: number;
|
|
24
|
+
}
|
|
25
|
+
function ImportEntities(api: BruceApi.Api, params: IImportParams): Promise<IImportRes>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
import { EntityTag } from "../entity/entity-tag";
|
|
3
|
+
export declare namespace ImportJson {
|
|
4
|
+
interface ITagExt extends EntityTag.ITag {
|
|
5
|
+
IsSelected: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IImportParams {
|
|
8
|
+
"TempFile.ID": string;
|
|
9
|
+
"TempFile.Ext": string;
|
|
10
|
+
"OriginalJsonFile.Name": string;
|
|
11
|
+
ImportMode: string;
|
|
12
|
+
"EntityType.ID": string;
|
|
13
|
+
DataMappingSchema: any;
|
|
14
|
+
TargetDataSchema: any;
|
|
15
|
+
Layers: ITagExt[];
|
|
16
|
+
}
|
|
17
|
+
interface IImportRes {
|
|
18
|
+
PendingActionID: number;
|
|
19
|
+
}
|
|
20
|
+
function ImportEntities(api: BruceApi.Api, params: IImportParams): Promise<IImportRes>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
export declare namespace ImportKml {
|
|
3
|
+
interface IImportParams {
|
|
4
|
+
"TempFile.ID": string;
|
|
5
|
+
"OriginalKMLFile.Name": string;
|
|
6
|
+
KMLFolders: any[];
|
|
7
|
+
ImportMode: string;
|
|
8
|
+
TotalCount: number;
|
|
9
|
+
}
|
|
10
|
+
interface IImportRes {
|
|
11
|
+
PendingActionID: number;
|
|
12
|
+
}
|
|
13
|
+
function ImportEntities(api: BruceApi.Api, params: IImportParams): Promise<IImportRes>;
|
|
14
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BruceApi
|
|
1
|
+
import { BruceApi } from "../api/bruce-api";
|
|
2
|
+
import { ClientFile } from "../client-file/client-file";
|
|
2
3
|
export declare namespace ImportedFile {
|
|
3
4
|
function GetCacheKey(fileId: number): string;
|
|
4
5
|
function GetListCacheKey(type: EFileType, pageIndex: number): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/ucs/ucs.d.ts
CHANGED
|
File without changes
|