bruce-models 2.4.7 → 2.4.9
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/bruce-models.es5.js +164 -164
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +164 -164
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-invite.js +4 -4
- package/dist/lib/account/account-invite.js.map +1 -1
- package/dist/lib/account/account.js +5 -5
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/ann-document/ann-document.js +2 -2
- package/dist/lib/ann-document/ann-document.js.map +1 -1
- package/dist/lib/client-file/client-file.js +9 -9
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/custom-form/custom-form.js +4 -4
- package/dist/lib/custom-form/custom-form.js.map +1 -1
- package/dist/lib/data-lab/data-lab.js +1 -1
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity-attachment-type.js +3 -3
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +5 -5
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-comment.js +3 -3
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +5 -5
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +3 -3
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod-category.js +4 -4
- package/dist/lib/entity/entity-lod-category.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +7 -7
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +4 -4
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +5 -5
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +4 -4
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +5 -5
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +4 -4
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +6 -6
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/environment.js +2 -2
- package/dist/lib/environment.js.map +1 -1
- package/dist/lib/import/import-cad.js +2 -2
- package/dist/lib/import/import-cad.js.map +1 -1
- package/dist/lib/import/import-csv.js +1 -1
- package/dist/lib/import/import-csv.js.map +1 -1
- package/dist/lib/import/import-json.js +1 -1
- package/dist/lib/import/import-json.js.map +1 -1
- package/dist/lib/import/import-kml.js +1 -1
- package/dist/lib/import/import-kml.js.map +1 -1
- package/dist/lib/import/imported-file.js +3 -3
- package/dist/lib/import/imported-file.js.map +1 -1
- package/dist/lib/internal/uploader.js +1 -1
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/lib/plugin/plugin.js +3 -3
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/lib/program-key/program-key.js +4 -4
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +5 -5
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view-legacy-tile.js +2 -2
- package/dist/lib/project/project-view-legacy-tile.js.map +1 -1
- package/dist/lib/project/project-view.js +4 -4
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/lib/server/hosting-location.js +5 -5
- package/dist/lib/server/hosting-location.js.map +1 -1
- package/dist/lib/server/pending-action.js +3 -3
- package/dist/lib/server/pending-action.js.map +1 -1
- package/dist/lib/server/task.js +2 -2
- package/dist/lib/server/task.js.map +1 -1
- package/dist/lib/style/style.js +4 -4
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +16 -16
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/session.js +3 -3
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user-group.js +6 -6
- package/dist/lib/user/user-group.js.map +1 -1
- package/dist/lib/user/user.js +15 -15
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/environment.d.ts +3 -3
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3606,7 +3606,7 @@
|
|
|
3606
3606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3607
3607
|
let { api, accountId: id, req: reqParams } = params;
|
|
3608
3608
|
if (!api) {
|
|
3609
|
-
api = exports.ENVIRONMENT.
|
|
3609
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3610
3610
|
}
|
|
3611
3611
|
const cache = yield api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
3612
3612
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -3629,7 +3629,7 @@
|
|
|
3629
3629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3630
3630
|
let { api, req: reqParams } = params;
|
|
3631
3631
|
if (!api) {
|
|
3632
|
-
api = exports.ENVIRONMENT.
|
|
3632
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3633
3633
|
}
|
|
3634
3634
|
const cache = yield api.GetCacheItem(GetListCacheKey(api.GetSessionId()), reqParams);
|
|
3635
3635
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -3661,7 +3661,7 @@
|
|
|
3661
3661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3662
3662
|
let { api, accountId: id, appId, req: reqParams } = params;
|
|
3663
3663
|
if (!api) {
|
|
3664
|
-
api = exports.ENVIRONMENT.
|
|
3664
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3665
3665
|
}
|
|
3666
3666
|
const cache = yield api.GetCacheItem(GetCacheKey(id, appId), reqParams);
|
|
3667
3667
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -3699,7 +3699,7 @@
|
|
|
3699
3699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3700
3700
|
let { api, accountId: id, appId, settings: data, req: reqParams } = params;
|
|
3701
3701
|
if (!api) {
|
|
3702
|
-
api = exports.ENVIRONMENT.
|
|
3702
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3703
3703
|
}
|
|
3704
3704
|
const res = yield api.POST(`account/${id}/applicationSettings/${appId}`, data, reqParams);
|
|
3705
3705
|
yield api.Cache.RemoveByStartsWith(exports.Api.ECacheKey.Account + exports.Api.ECacheKey.Id + id);
|
|
@@ -3718,7 +3718,7 @@
|
|
|
3718
3718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3719
3719
|
let { api, accountId: id, name, hostingLocationKey, starterContent, req: reqParams } = params;
|
|
3720
3720
|
if (!api) {
|
|
3721
|
-
api = exports.ENVIRONMENT.
|
|
3721
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
3722
3722
|
}
|
|
3723
3723
|
if (!id || !name || !hostingLocationKey) {
|
|
3724
3724
|
throw new Error("Id, Name and hostingLocationKey are required.");
|
|
@@ -3752,7 +3752,7 @@
|
|
|
3752
3752
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3753
3753
|
let { api, req } = params;
|
|
3754
3754
|
if (!api) {
|
|
3755
|
-
api = exports.ENVIRONMENT.
|
|
3755
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3756
3756
|
}
|
|
3757
3757
|
const res = yield api.GET("hostinglocations", exports.Api.PrepReqParams(req));
|
|
3758
3758
|
return {
|
|
@@ -3765,7 +3765,7 @@
|
|
|
3765
3765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3766
3766
|
let { id, api, req } = params;
|
|
3767
3767
|
if (!api) {
|
|
3768
|
-
api = exports.ENVIRONMENT.
|
|
3768
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3769
3769
|
}
|
|
3770
3770
|
if (!id) {
|
|
3771
3771
|
throw ("Invalid id");
|
|
@@ -3781,7 +3781,7 @@
|
|
|
3781
3781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3782
3782
|
let { key, api, req } = params;
|
|
3783
3783
|
if (!api) {
|
|
3784
|
-
api = exports.ENVIRONMENT.
|
|
3784
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3785
3785
|
}
|
|
3786
3786
|
if (!key) {
|
|
3787
3787
|
throw ("Invalid key");
|
|
@@ -3841,7 +3841,7 @@
|
|
|
3841
3841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3842
3842
|
let { accountId, apiSettings, api, req } = params;
|
|
3843
3843
|
if (!api) {
|
|
3844
|
-
api = exports.ENVIRONMENT.
|
|
3844
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3845
3845
|
}
|
|
3846
3846
|
if (!accountId && !apiSettings) {
|
|
3847
3847
|
throw ("Invalid accountId or apiSettings");
|
|
@@ -3874,7 +3874,7 @@
|
|
|
3874
3874
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3875
3875
|
let { accountId, apiSettings, api, req } = params;
|
|
3876
3876
|
if (!api) {
|
|
3877
|
-
api = exports.ENVIRONMENT.
|
|
3877
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
3878
3878
|
}
|
|
3879
3879
|
const data = yield GetKeyByAccountId({
|
|
3880
3880
|
accountId,
|
|
@@ -4523,7 +4523,7 @@
|
|
|
4523
4523
|
env: exports.Api.EEnv.PROD,
|
|
4524
4524
|
sessionId: ""
|
|
4525
4525
|
};
|
|
4526
|
-
function
|
|
4526
|
+
function Api$$1() {
|
|
4527
4527
|
if (ENVIRONMENT.IS_SELF_MANAGED) {
|
|
4528
4528
|
throw ("Self managed mode ON. You are getting this error because you didn't pass an Api instance to a function.");
|
|
4529
4529
|
}
|
|
@@ -4539,7 +4539,7 @@
|
|
|
4539
4539
|
}
|
|
4540
4540
|
return _getters;
|
|
4541
4541
|
}
|
|
4542
|
-
ENVIRONMENT.
|
|
4542
|
+
ENVIRONMENT.Api = Api$$1;
|
|
4543
4543
|
function Reset(params) {
|
|
4544
4544
|
if (ENVIRONMENT.IS_SELF_MANAGED) {
|
|
4545
4545
|
throw ("Self managed mode ON. You are getting this error because you didn't pass an Api instance to a function.");
|
|
@@ -4578,7 +4578,7 @@
|
|
|
4578
4578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4579
4579
|
let { api, docId, req: reqParams } = params;
|
|
4580
4580
|
if (!api) {
|
|
4581
|
-
api = exports.ENVIRONMENT.
|
|
4581
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4582
4582
|
}
|
|
4583
4583
|
if (!docId) {
|
|
4584
4584
|
throw ("Doc ID is required.");
|
|
@@ -4612,7 +4612,7 @@
|
|
|
4612
4612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4613
4613
|
let { api, docType: type, req: reqParams } = params;
|
|
4614
4614
|
if (!api) {
|
|
4615
|
-
api = exports.ENVIRONMENT.
|
|
4615
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4616
4616
|
}
|
|
4617
4617
|
if (!type) {
|
|
4618
4618
|
type = "";
|
|
@@ -4665,7 +4665,7 @@
|
|
|
4665
4665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4666
4666
|
let { api, formId: id, req: reqParams } = params;
|
|
4667
4667
|
if (!api) {
|
|
4668
|
-
api = exports.ENVIRONMENT.
|
|
4668
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4669
4669
|
}
|
|
4670
4670
|
if (!id) {
|
|
4671
4671
|
throw ("Id is required.");
|
|
@@ -4698,7 +4698,7 @@
|
|
|
4698
4698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4699
4699
|
let { api, formId: id, req: reqParams } = params;
|
|
4700
4700
|
if (!api) {
|
|
4701
|
-
api = exports.ENVIRONMENT.
|
|
4701
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4702
4702
|
}
|
|
4703
4703
|
if (!id) {
|
|
4704
4704
|
throw ("Id is required.");
|
|
@@ -4712,7 +4712,7 @@
|
|
|
4712
4712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4713
4713
|
let { api, entityTypeId: typeId, req: reqParams } = params;
|
|
4714
4714
|
if (!api) {
|
|
4715
|
-
api = exports.ENVIRONMENT.
|
|
4715
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4716
4716
|
}
|
|
4717
4717
|
const url = typeId ? `entityType/${typeId}/customForms` : "customForms";
|
|
4718
4718
|
const cache = yield api.GetCacheItem(GetListCacheKey(typeId), reqParams);
|
|
@@ -4738,7 +4738,7 @@
|
|
|
4738
4738
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4739
4739
|
let { api, form: data, reqParams } = params;
|
|
4740
4740
|
if (!api) {
|
|
4741
|
-
api = exports.ENVIRONMENT.
|
|
4741
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4742
4742
|
}
|
|
4743
4743
|
if (!data.ID) {
|
|
4744
4744
|
data.ID = 0;
|
|
@@ -4943,7 +4943,7 @@
|
|
|
4943
4943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4944
4944
|
let { api, entityId, req: reqParams, expandLocation, entityTypeId } = params;
|
|
4945
4945
|
if (!api) {
|
|
4946
|
-
api = exports.ENVIRONMENT.
|
|
4946
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4947
4947
|
}
|
|
4948
4948
|
if (!entityId) {
|
|
4949
4949
|
throw ("Entity ID is required.");
|
|
@@ -4984,7 +4984,7 @@
|
|
|
4984
4984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4985
4985
|
let { api, entityIds, req: reqParams } = params;
|
|
4986
4986
|
if (!api) {
|
|
4987
|
-
api = exports.ENVIRONMENT.
|
|
4987
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4988
4988
|
}
|
|
4989
4989
|
if (!entityIds.length) {
|
|
4990
4990
|
throw ("Entity IDs are required.");
|
|
@@ -5046,7 +5046,7 @@
|
|
|
5046
5046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5047
5047
|
let { api, entityId, req: reqParams } = params;
|
|
5048
5048
|
if (!api) {
|
|
5049
|
-
api = exports.ENVIRONMENT.
|
|
5049
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
5050
5050
|
}
|
|
5051
5051
|
if (!entityId) {
|
|
5052
5052
|
throw ("Entity ID is required.");
|
|
@@ -5060,7 +5060,7 @@
|
|
|
5060
5060
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5061
5061
|
let { api, entityIds, req: reqParams } = params;
|
|
5062
5062
|
if (!api) {
|
|
5063
|
-
api = exports.ENVIRONMENT.
|
|
5063
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
5064
5064
|
}
|
|
5065
5065
|
if (!(entityIds === null || entityIds === void 0 ? void 0 : entityIds.length)) {
|
|
5066
5066
|
throw ("Entity IDs are required.");
|
|
@@ -5080,7 +5080,7 @@
|
|
|
5080
5080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5081
5081
|
let { api, entity: data, override, req: reqParams } = params;
|
|
5082
5082
|
if (!api) {
|
|
5083
|
-
api = exports.ENVIRONMENT.
|
|
5083
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
5084
5084
|
}
|
|
5085
5085
|
if (!((_a = data === null || data === void 0 ? void 0 : data.Bruce) === null || _a === void 0 ? void 0 : _a["EntityType.ID"])) {
|
|
5086
5086
|
throw ("Entity Type ID is required.");
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5187
5187
|
let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken } = params;
|
|
5188
5188
|
if (!api) {
|
|
5189
|
-
api = exports.ENVIRONMENT.
|
|
5189
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
5190
5190
|
}
|
|
5191
5191
|
let requestFilter = {};
|
|
5192
5192
|
if (filter.entityTypeConditions) {
|
|
@@ -6180,7 +6180,7 @@
|
|
|
6180
6180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6181
6181
|
let { api, attachmentTypeId: id, req: reqParams } = params;
|
|
6182
6182
|
if (!api) {
|
|
6183
|
-
api = exports.ENVIRONMENT.
|
|
6183
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6184
6184
|
}
|
|
6185
6185
|
if (!id) {
|
|
6186
6186
|
throw ("Type ID is required.");
|
|
@@ -6195,7 +6195,7 @@
|
|
|
6195
6195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6196
6196
|
let { api, attachmentType: data, req: reqParams } = params;
|
|
6197
6197
|
if (!api) {
|
|
6198
|
-
api = exports.ENVIRONMENT.
|
|
6198
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6199
6199
|
}
|
|
6200
6200
|
if (!(data === null || data === void 0 ? void 0 : data.ID)) {
|
|
6201
6201
|
throw ("Type ID is required.");
|
|
@@ -6213,7 +6213,7 @@
|
|
|
6213
6213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6214
6214
|
let { api, reqParams } = params;
|
|
6215
6215
|
if (!api) {
|
|
6216
|
-
api = exports.ENVIRONMENT.
|
|
6216
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6217
6217
|
}
|
|
6218
6218
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
6219
6219
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -6254,7 +6254,7 @@
|
|
|
6254
6254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6255
6255
|
let { api, attachments, req, entityId } = params;
|
|
6256
6256
|
if (!api) {
|
|
6257
|
-
api = exports.ENVIRONMENT.
|
|
6257
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6258
6258
|
}
|
|
6259
6259
|
if (!(attachments === null || attachments === void 0 ? void 0 : attachments.length)) {
|
|
6260
6260
|
return {
|
|
@@ -6280,7 +6280,7 @@
|
|
|
6280
6280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6281
6281
|
let { api, entityId, attachmentTypeId: typeId, attachments, req: reqParams } = params;
|
|
6282
6282
|
if (!api) {
|
|
6283
|
-
api = exports.ENVIRONMENT.
|
|
6283
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6284
6284
|
}
|
|
6285
6285
|
if (!entityId || !typeId || !(attachments === null || attachments === void 0 ? void 0 : attachments.length)) {
|
|
6286
6286
|
throw ("Entity ID, Type ID, and Attachments are required.");
|
|
@@ -6301,7 +6301,7 @@
|
|
|
6301
6301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6302
6302
|
let { api, attachmentId, entityId, req } = params;
|
|
6303
6303
|
if (!api) {
|
|
6304
|
-
api = exports.ENVIRONMENT.
|
|
6304
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6305
6305
|
}
|
|
6306
6306
|
if (!attachmentId || !entityId) {
|
|
6307
6307
|
throw ("Entity id and attachment id.");
|
|
@@ -6315,7 +6315,7 @@
|
|
|
6315
6315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6316
6316
|
let { api, entityId, req: reqParams } = params;
|
|
6317
6317
|
if (!api) {
|
|
6318
|
-
api = exports.ENVIRONMENT.
|
|
6318
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6319
6319
|
}
|
|
6320
6320
|
if (!entityId) {
|
|
6321
6321
|
throw ("Entity ID is required.");
|
|
@@ -6348,7 +6348,7 @@
|
|
|
6348
6348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6349
6349
|
let { api, file, entityId, attachmentTypeId: typeId, req: reqParams } = params;
|
|
6350
6350
|
if (!api) {
|
|
6351
|
-
api = exports.ENVIRONMENT.
|
|
6351
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6352
6352
|
}
|
|
6353
6353
|
if (!entityId || !typeId || !file) {
|
|
6354
6354
|
throw ("Entity ID, Type ID, and File are required.");
|
|
@@ -6377,7 +6377,7 @@
|
|
|
6377
6377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6378
6378
|
let { api, comment: data, req: reqParams } = params;
|
|
6379
6379
|
if (!api) {
|
|
6380
|
-
api = exports.ENVIRONMENT.
|
|
6380
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6381
6381
|
}
|
|
6382
6382
|
if (!(data === null || data === void 0 ? void 0 : data["TargetObject.ID"])) {
|
|
6383
6383
|
throw ("TargetObject.ID (entity id) is required.");
|
|
@@ -6396,7 +6396,7 @@
|
|
|
6396
6396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6397
6397
|
let { api, entityId, commentId, req: reqParams } = params;
|
|
6398
6398
|
if (!api) {
|
|
6399
|
-
api = exports.ENVIRONMENT.
|
|
6399
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6400
6400
|
}
|
|
6401
6401
|
if (!commentId) {
|
|
6402
6402
|
throw ("Comment ID is required.");
|
|
@@ -6411,7 +6411,7 @@
|
|
|
6411
6411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6412
6412
|
let { api, entityId, req: reqParams } = params;
|
|
6413
6413
|
if (!api) {
|
|
6414
|
-
api = exports.ENVIRONMENT.
|
|
6414
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6415
6415
|
}
|
|
6416
6416
|
if (!entityId) {
|
|
6417
6417
|
throw ("Entity ID is required.");
|
|
@@ -6455,7 +6455,7 @@
|
|
|
6455
6455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6456
6456
|
let { api, link: data, req: reqParams } = params;
|
|
6457
6457
|
if (!api) {
|
|
6458
|
-
api = exports.ENVIRONMENT.
|
|
6458
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6459
6459
|
}
|
|
6460
6460
|
if (!(data === null || data === void 0 ? void 0 : data["Entity.ID"])) {
|
|
6461
6461
|
throw ("Entity ID is required.");
|
|
@@ -6474,7 +6474,7 @@
|
|
|
6474
6474
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6475
6475
|
let { api, entityId, linkId, req: reqParams } = params;
|
|
6476
6476
|
if (!api) {
|
|
6477
|
-
api = exports.ENVIRONMENT.
|
|
6477
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6478
6478
|
}
|
|
6479
6479
|
if (!linkId) {
|
|
6480
6480
|
throw ("Link ID is required.");
|
|
@@ -6489,7 +6489,7 @@
|
|
|
6489
6489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6490
6490
|
let { api, entityId, req: reqParams } = params;
|
|
6491
6491
|
if (!api) {
|
|
6492
|
-
api = exports.ENVIRONMENT.
|
|
6492
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6493
6493
|
}
|
|
6494
6494
|
if (!entityId) {
|
|
6495
6495
|
throw ("Entity ID is required.");
|
|
@@ -6536,7 +6536,7 @@
|
|
|
6536
6536
|
function GetUrl(params) {
|
|
6537
6537
|
let { api, entityId, categoryId, level, strict } = params;
|
|
6538
6538
|
if (!api) {
|
|
6539
|
-
api = exports.ENVIRONMENT.
|
|
6539
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6540
6540
|
}
|
|
6541
6541
|
if (!entityId) {
|
|
6542
6542
|
throw ("Entity ID is required.");
|
|
@@ -6560,7 +6560,7 @@
|
|
|
6560
6560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6561
6561
|
let { api, url, req: reqParams } = params;
|
|
6562
6562
|
if (!api) {
|
|
6563
|
-
api = exports.ENVIRONMENT.
|
|
6563
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6564
6564
|
}
|
|
6565
6565
|
if (!url) {
|
|
6566
6566
|
throw ("Url is required.");
|
|
@@ -6594,7 +6594,7 @@
|
|
|
6594
6594
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6595
6595
|
let { api, filter, req: reqParams } = params;
|
|
6596
6596
|
if (!api) {
|
|
6597
|
-
api = exports.ENVIRONMENT.
|
|
6597
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6598
6598
|
}
|
|
6599
6599
|
if (!((_a = filter === null || filter === void 0 ? void 0 : filter.Items) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
6600
6600
|
throw ("Items are required.");
|
|
@@ -6610,7 +6610,7 @@
|
|
|
6610
6610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6611
6611
|
let { api, entityId, req: reqParams } = params;
|
|
6612
6612
|
if (!api) {
|
|
6613
|
-
api = exports.ENVIRONMENT.
|
|
6613
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6614
6614
|
}
|
|
6615
6615
|
if (!entityId) {
|
|
6616
6616
|
throw ("Entity id is required.");
|
|
@@ -6648,7 +6648,7 @@
|
|
|
6648
6648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6649
6649
|
let { api, entityTypeId: typeId, group, req: reqParams } = params;
|
|
6650
6650
|
if (!api) {
|
|
6651
|
-
api = exports.ENVIRONMENT.
|
|
6651
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6652
6652
|
}
|
|
6653
6653
|
if (!group) {
|
|
6654
6654
|
group = "DEFAULT";
|
|
@@ -6683,7 +6683,7 @@
|
|
|
6683
6683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6684
6684
|
let { api, entityId, req: reqParams } = params;
|
|
6685
6685
|
if (!api) {
|
|
6686
|
-
api = exports.ENVIRONMENT.
|
|
6686
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6687
6687
|
}
|
|
6688
6688
|
if (!params["ClientFile.ID"] || !params["LODCategory.Key"] || (!params.Level && params.Level !== 0)) {
|
|
6689
6689
|
throw ("ClientFile.ID, LODCategory.Key and Level are required.");
|
|
@@ -6701,7 +6701,7 @@
|
|
|
6701
6701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6702
6702
|
let { api, entityId, lodCategoryId, level, req: reqParams } = params;
|
|
6703
6703
|
if (!api) {
|
|
6704
|
-
api = exports.ENVIRONMENT.
|
|
6704
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6705
6705
|
}
|
|
6706
6706
|
if (!entityId || !lodCategoryId) {
|
|
6707
6707
|
throw ("Entity ID and LOD Category ID are required.");
|
|
@@ -6732,7 +6732,7 @@
|
|
|
6732
6732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6733
6733
|
let { api, req: reqParams } = params;
|
|
6734
6734
|
if (!api) {
|
|
6735
|
-
api = exports.ENVIRONMENT.
|
|
6735
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6736
6736
|
}
|
|
6737
6737
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
6738
6738
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -6762,7 +6762,7 @@
|
|
|
6762
6762
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6763
6763
|
let { api, categoryId: id, req: reqParams } = params;
|
|
6764
6764
|
if (!api) {
|
|
6765
|
-
api = exports.ENVIRONMENT.
|
|
6765
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6766
6766
|
}
|
|
6767
6767
|
if (!id) {
|
|
6768
6768
|
throw ("Lod category id is required.");
|
|
@@ -6795,7 +6795,7 @@
|
|
|
6795
6795
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6796
6796
|
let { api, categoryId: id, req: reqParams } = params;
|
|
6797
6797
|
if (!api) {
|
|
6798
|
-
api = exports.ENVIRONMENT.
|
|
6798
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6799
6799
|
}
|
|
6800
6800
|
if (!id) {
|
|
6801
6801
|
throw ("Lod category id is required.");
|
|
@@ -6810,7 +6810,7 @@
|
|
|
6810
6810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6811
6811
|
let { api, category: data, req: reqParams } = params;
|
|
6812
6812
|
if (!api) {
|
|
6813
|
-
api = exports.ENVIRONMENT.
|
|
6813
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6814
6814
|
}
|
|
6815
6815
|
if (!data.Key || !data.Name) {
|
|
6816
6816
|
throw ("Lod category key and name are required.");
|
|
@@ -6839,7 +6839,7 @@
|
|
|
6839
6839
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6840
6840
|
let { api, relationTypeId: typeId, req: reqParams } = params;
|
|
6841
6841
|
if (!api) {
|
|
6842
|
-
api = exports.ENVIRONMENT.
|
|
6842
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6843
6843
|
}
|
|
6844
6844
|
if (!typeId) {
|
|
6845
6845
|
throw ("Type ID is required.");
|
|
@@ -6873,7 +6873,7 @@
|
|
|
6873
6873
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6874
6874
|
let { api, relationTypeId: typeId, req: reqParams } = params;
|
|
6875
6875
|
if (!api) {
|
|
6876
|
-
api = exports.ENVIRONMENT.
|
|
6876
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6877
6877
|
}
|
|
6878
6878
|
if (!typeId) {
|
|
6879
6879
|
throw ("Type ID is required.");
|
|
@@ -6888,7 +6888,7 @@
|
|
|
6888
6888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6889
6889
|
let { api, req: reqParams } = params;
|
|
6890
6890
|
if (!api) {
|
|
6891
|
-
api = exports.ENVIRONMENT.
|
|
6891
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6892
6892
|
}
|
|
6893
6893
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
6894
6894
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -6918,7 +6918,7 @@
|
|
|
6918
6918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6919
6919
|
let { api, relationType: data, req: reqParams } = params;
|
|
6920
6920
|
if (!api) {
|
|
6921
|
-
api = exports.ENVIRONMENT.
|
|
6921
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6922
6922
|
}
|
|
6923
6923
|
if (!(data === null || data === void 0 ? void 0 : data.ForwardName) || !(data === null || data === void 0 ? void 0 : data.ReverseName)) {
|
|
6924
6924
|
throw ("Forward and reverse names are required.");
|
|
@@ -6958,7 +6958,7 @@
|
|
|
6958
6958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6959
6959
|
let { api, relation: data, req: reqParams } = params;
|
|
6960
6960
|
if (!api) {
|
|
6961
|
-
api = exports.ENVIRONMENT.
|
|
6961
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6962
6962
|
}
|
|
6963
6963
|
if (!data["Principal.Entity.ID"] || !data["Related.Entity.ID"] || !data["Relation.Type.ID"]) {
|
|
6964
6964
|
throw ("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
@@ -6981,7 +6981,7 @@
|
|
|
6981
6981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6982
6982
|
let { api, principalEntityId, relatedEntityId, relationTypeId, req: reqParams } = params;
|
|
6983
6983
|
if (!api) {
|
|
6984
|
-
api = exports.ENVIRONMENT.
|
|
6984
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
6985
6985
|
}
|
|
6986
6986
|
if (!principalEntityId || !relatedEntityId || !relationTypeId) {
|
|
6987
6987
|
throw new Error("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
@@ -7001,7 +7001,7 @@
|
|
|
7001
7001
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7002
7002
|
let { api, relation: data, req: reqParams } = params;
|
|
7003
7003
|
if (!api) {
|
|
7004
|
-
api = exports.ENVIRONMENT.
|
|
7004
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7005
7005
|
}
|
|
7006
7006
|
if (!data["Principal.Entity.ID"] || !data["Related.Entity.ID"] || !data["Relation.Type.ID"]) {
|
|
7007
7007
|
throw ("Principal Entity ID, Related Entity ID, and Relation Type ID are required.");
|
|
@@ -7021,7 +7021,7 @@
|
|
|
7021
7021
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7022
7022
|
let { api, entityId, filter, req: reqParams } = params;
|
|
7023
7023
|
if (!api) {
|
|
7024
|
-
api = exports.ENVIRONMENT.
|
|
7024
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7025
7025
|
}
|
|
7026
7026
|
if (!entityId) {
|
|
7027
7027
|
throw ("Entity ID is required.");
|
|
@@ -7060,7 +7060,7 @@
|
|
|
7060
7060
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7061
7061
|
let { api, entityId, req: reqParams } = params;
|
|
7062
7062
|
if (!api) {
|
|
7063
|
-
api = exports.ENVIRONMENT.
|
|
7063
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7064
7064
|
}
|
|
7065
7065
|
if (!entityId) {
|
|
7066
7066
|
throw ("Entity ID is required.");
|
|
@@ -7101,7 +7101,7 @@
|
|
|
7101
7101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7102
7102
|
let { api, sourceId, sourceKey, req: reqParams } = params;
|
|
7103
7103
|
if (!api) {
|
|
7104
|
-
api = exports.ENVIRONMENT.
|
|
7104
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7105
7105
|
}
|
|
7106
7106
|
if (!sourceId || !sourceKey) {
|
|
7107
7107
|
throw ("Source ID and Source Key are required.");
|
|
@@ -7122,7 +7122,7 @@
|
|
|
7122
7122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7123
7123
|
let { api, sourceId, sourceKeys, req: reqParams } = params;
|
|
7124
7124
|
if (!api) {
|
|
7125
|
-
api = exports.ENVIRONMENT.
|
|
7125
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7126
7126
|
}
|
|
7127
7127
|
if (!sourceId || !sourceKeys.length) {
|
|
7128
7128
|
throw ("Source ID and Source Keys are required.");
|
|
@@ -7172,7 +7172,7 @@
|
|
|
7172
7172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7173
7173
|
let { api, sourceId, sourceKeys, req: reqParams } = params;
|
|
7174
7174
|
if (!api) {
|
|
7175
|
-
api = exports.ENVIRONMENT.
|
|
7175
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7176
7176
|
}
|
|
7177
7177
|
if (!sourceId || !sourceKeys.length) {
|
|
7178
7178
|
throw ("Source ID and Source Keys are required.");
|
|
@@ -7205,7 +7205,7 @@
|
|
|
7205
7205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7206
7206
|
let { source, api } = params;
|
|
7207
7207
|
if (!api) {
|
|
7208
|
-
api = exports.ENVIRONMENT.
|
|
7208
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7209
7209
|
}
|
|
7210
7210
|
if (!source["Entity.ID"] || !source["Source.ID"] || !source["SourceRecord.Key"]) {
|
|
7211
7211
|
throw ("Entity ID, Source ID and Source Key are required.");
|
|
@@ -7237,7 +7237,7 @@
|
|
|
7237
7237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7238
7238
|
let { api, tagId, req: reqParams } = params;
|
|
7239
7239
|
if (!api) {
|
|
7240
|
-
api = exports.ENVIRONMENT.
|
|
7240
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7241
7241
|
}
|
|
7242
7242
|
if (!tagId) {
|
|
7243
7243
|
throw ("Tag ID is required.");
|
|
@@ -7257,7 +7257,7 @@
|
|
|
7257
7257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7258
7258
|
let { api, tagIds, req: reqParams } = params;
|
|
7259
7259
|
if (!api) {
|
|
7260
|
-
api = exports.ENVIRONMENT.
|
|
7260
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7261
7261
|
}
|
|
7262
7262
|
if (!tagIds.length) {
|
|
7263
7263
|
throw ("Tag Ids are empty.");
|
|
@@ -7316,7 +7316,7 @@
|
|
|
7316
7316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7317
7317
|
let { api, entityTypeId, req: reqParams } = params;
|
|
7318
7318
|
if (!api) {
|
|
7319
|
-
api = exports.ENVIRONMENT.
|
|
7319
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7320
7320
|
}
|
|
7321
7321
|
const cache = yield api.GetCacheItem(GetListCacheKey(entityTypeId), reqParams);
|
|
7322
7322
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -7346,7 +7346,7 @@
|
|
|
7346
7346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7347
7347
|
let { api, tagId, req: reqParams } = params;
|
|
7348
7348
|
if (!api) {
|
|
7349
|
-
api = exports.ENVIRONMENT.
|
|
7349
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7350
7350
|
}
|
|
7351
7351
|
if (!tagId) {
|
|
7352
7352
|
throw ("Tag ID is required.");
|
|
@@ -7361,7 +7361,7 @@
|
|
|
7361
7361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7362
7362
|
let { api, tag: data, req: reqParams } = params;
|
|
7363
7363
|
if (!api) {
|
|
7364
|
-
api = exports.ENVIRONMENT.
|
|
7364
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7365
7365
|
}
|
|
7366
7366
|
const url = data.ID ? `layer/${data.ID}` : "layer";
|
|
7367
7367
|
const res = yield api.POST(url, data, exports.Api.PrepReqParams(reqParams));
|
|
@@ -7388,7 +7388,7 @@
|
|
|
7388
7388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7389
7389
|
let { api, entityTypeId: typeId, req: reqParams } = params;
|
|
7390
7390
|
if (!api) {
|
|
7391
|
-
api = exports.ENVIRONMENT.
|
|
7391
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7392
7392
|
}
|
|
7393
7393
|
if (!typeId) {
|
|
7394
7394
|
throw ("Type ID is required.");
|
|
@@ -7422,7 +7422,7 @@
|
|
|
7422
7422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7423
7423
|
let { api, entityTypeId: typeId, req: reqParams } = params;
|
|
7424
7424
|
if (!api) {
|
|
7425
|
-
api = exports.ENVIRONMENT.
|
|
7425
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7426
7426
|
}
|
|
7427
7427
|
if (!typeId) {
|
|
7428
7428
|
throw ("Type ID is required.");
|
|
@@ -7437,7 +7437,7 @@
|
|
|
7437
7437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7438
7438
|
let { api, req: reqParams } = params;
|
|
7439
7439
|
if (!api) {
|
|
7440
|
-
api = exports.ENVIRONMENT.
|
|
7440
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7441
7441
|
}
|
|
7442
7442
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
7443
7443
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -7468,7 +7468,7 @@
|
|
|
7468
7468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7469
7469
|
let { api, entityType: data, req: reqParams } = params;
|
|
7470
7470
|
if (!api) {
|
|
7471
|
-
api = exports.ENVIRONMENT.
|
|
7471
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7472
7472
|
}
|
|
7473
7473
|
if (!data) {
|
|
7474
7474
|
data = {};
|
|
@@ -8050,7 +8050,7 @@
|
|
|
8050
8050
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8051
8051
|
let { api, rootEntityId: entityId, req: reqParams } = params;
|
|
8052
8052
|
if (!api) {
|
|
8053
|
-
api = exports.ENVIRONMENT.
|
|
8053
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8054
8054
|
}
|
|
8055
8055
|
const cache = yield api.GetCacheItem(GetCacheKey(entityId), reqParams);
|
|
8056
8056
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -8080,7 +8080,7 @@
|
|
|
8080
8080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8081
8081
|
let { api, rootEntityId: entityId, req: reqParams } = params;
|
|
8082
8082
|
if (!api) {
|
|
8083
|
-
api = exports.ENVIRONMENT.
|
|
8083
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8084
8084
|
}
|
|
8085
8085
|
if (!params.test) {
|
|
8086
8086
|
yield UnlinkCoords({
|
|
@@ -8120,7 +8120,7 @@
|
|
|
8120
8120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8121
8121
|
let { api, rootEntityId: entityId, req: reqParams } = params;
|
|
8122
8122
|
if (!api) {
|
|
8123
|
-
api = exports.ENVIRONMENT.
|
|
8123
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8124
8124
|
}
|
|
8125
8125
|
if (!params.test) {
|
|
8126
8126
|
yield UnlinkCoords({
|
|
@@ -8157,7 +8157,7 @@
|
|
|
8157
8157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8158
8158
|
let { api, rootEntityId: entityId, req: reqParams } = params;
|
|
8159
8159
|
if (!api) {
|
|
8160
|
-
api = exports.ENVIRONMENT.
|
|
8160
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8161
8161
|
}
|
|
8162
8162
|
if (!params.test) {
|
|
8163
8163
|
yield UnlinkCoords({
|
|
@@ -8186,7 +8186,7 @@
|
|
|
8186
8186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8187
8187
|
let { api, rootEntityId: entityId, req: reqParams } = params;
|
|
8188
8188
|
if (!api) {
|
|
8189
|
-
api = exports.ENVIRONMENT.
|
|
8189
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8190
8190
|
}
|
|
8191
8191
|
return api.DELETE(`entity/${entityId}/ucs`, reqParams);
|
|
8192
8192
|
});
|
|
@@ -8236,7 +8236,7 @@
|
|
|
8236
8236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8237
8237
|
let { file, api, urlSuffix: url, req, onProgress } = params;
|
|
8238
8238
|
if (!api) {
|
|
8239
|
-
api = exports.ENVIRONMENT.
|
|
8239
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8240
8240
|
}
|
|
8241
8241
|
const FILE_PORTION_SIZE = 100000000; // 100MB.
|
|
8242
8242
|
let fileSize = file.size;
|
|
@@ -8303,7 +8303,7 @@
|
|
|
8303
8303
|
function GetUrl(params) {
|
|
8304
8304
|
let { api, fileId } = params;
|
|
8305
8305
|
if (!api) {
|
|
8306
|
-
api = exports.ENVIRONMENT.
|
|
8306
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8307
8307
|
}
|
|
8308
8308
|
return `${api.GetBaseUrl()}file/${fileId}`;
|
|
8309
8309
|
}
|
|
@@ -8311,7 +8311,7 @@
|
|
|
8311
8311
|
function GetUrlWithExt(params) {
|
|
8312
8312
|
let { api, file } = params;
|
|
8313
8313
|
if (!api) {
|
|
8314
|
-
api = exports.ENVIRONMENT.
|
|
8314
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8315
8315
|
}
|
|
8316
8316
|
return `${api.GetBaseUrl()}file/${file.ID}${file.FileExt ? file.FileExt : ""}`;
|
|
8317
8317
|
}
|
|
@@ -8320,7 +8320,7 @@
|
|
|
8320
8320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8321
8321
|
let { api, fileId, req: reqParams } = params;
|
|
8322
8322
|
if (!api) {
|
|
8323
|
-
api = exports.ENVIRONMENT.
|
|
8323
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8324
8324
|
}
|
|
8325
8325
|
if (!fileId) {
|
|
8326
8326
|
throw ("File ID is required.");
|
|
@@ -8354,7 +8354,7 @@
|
|
|
8354
8354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8355
8355
|
let { api, fileIds, req: reqParams } = params;
|
|
8356
8356
|
if (!api) {
|
|
8357
|
-
api = exports.ENVIRONMENT.
|
|
8357
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8358
8358
|
}
|
|
8359
8359
|
if (!fileIds.length) {
|
|
8360
8360
|
throw ("File IDs are required.");
|
|
@@ -8374,7 +8374,7 @@
|
|
|
8374
8374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8375
8375
|
let { api, file, purpose, req, onProgress } = params;
|
|
8376
8376
|
if (!api) {
|
|
8377
|
-
api = exports.ENVIRONMENT.
|
|
8377
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8378
8378
|
}
|
|
8379
8379
|
if (!file) {
|
|
8380
8380
|
throw ("File is required.");
|
|
@@ -8432,7 +8432,7 @@
|
|
|
8432
8432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8433
8433
|
let { api, fileId, purpose, req: reqParams } = params;
|
|
8434
8434
|
if (!api) {
|
|
8435
|
-
api = exports.ENVIRONMENT.
|
|
8435
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8436
8436
|
}
|
|
8437
8437
|
if (!purpose) {
|
|
8438
8438
|
purpose = "";
|
|
@@ -8455,7 +8455,7 @@
|
|
|
8455
8455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8456
8456
|
let { api, file, req, onProgress } = params;
|
|
8457
8457
|
if (!api) {
|
|
8458
|
-
api = exports.ENVIRONMENT.
|
|
8458
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8459
8459
|
}
|
|
8460
8460
|
if (!file) {
|
|
8461
8461
|
throw ("File is required.");
|
|
@@ -8522,7 +8522,7 @@
|
|
|
8522
8522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8523
8523
|
let { api, filter, req: reqParams } = params;
|
|
8524
8524
|
if (!api) {
|
|
8525
|
-
api = exports.ENVIRONMENT.
|
|
8525
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8526
8526
|
}
|
|
8527
8527
|
const data = yield api.POST("files/filtered", filter, exports.Api.PrepReqParams(reqParams));
|
|
8528
8528
|
return {
|
|
@@ -8543,7 +8543,7 @@
|
|
|
8543
8543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8544
8544
|
let { api, fileId: clientFileId, ext, req: reqParams } = params;
|
|
8545
8545
|
if (!api) {
|
|
8546
|
-
api = exports.ENVIRONMENT.
|
|
8546
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8547
8547
|
}
|
|
8548
8548
|
if (!clientFileId || !ext) {
|
|
8549
8549
|
throw ("Client File ID and extension are required.");
|
|
@@ -8579,7 +8579,7 @@
|
|
|
8579
8579
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8580
8580
|
let { api, programId, req: reqParams } = params;
|
|
8581
8581
|
if (!api) {
|
|
8582
|
-
api = exports.ENVIRONMENT.
|
|
8582
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8583
8583
|
}
|
|
8584
8584
|
if (!programId) {
|
|
8585
8585
|
throw ("Program ID is required.");
|
|
@@ -8613,7 +8613,7 @@
|
|
|
8613
8613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8614
8614
|
let { api, req: reqParams } = params;
|
|
8615
8615
|
if (!api) {
|
|
8616
|
-
api = exports.ENVIRONMENT.
|
|
8616
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8617
8617
|
}
|
|
8618
8618
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
8619
8619
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -8643,7 +8643,7 @@
|
|
|
8643
8643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8644
8644
|
let { api, programId, req: reqParams } = params;
|
|
8645
8645
|
if (!api) {
|
|
8646
|
-
api = exports.ENVIRONMENT.
|
|
8646
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8647
8647
|
}
|
|
8648
8648
|
if (!programId) {
|
|
8649
8649
|
throw ("Program ID is required.");
|
|
@@ -8658,7 +8658,7 @@
|
|
|
8658
8658
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8659
8659
|
let { api, programKey: data, req: reqParams } = params;
|
|
8660
8660
|
if (!api) {
|
|
8661
|
-
api = exports.ENVIRONMENT.
|
|
8661
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8662
8662
|
}
|
|
8663
8663
|
if (!(data === null || data === void 0 ? void 0 : data.ProgramId)) {
|
|
8664
8664
|
throw ("Program ID is required.");
|
|
@@ -8722,7 +8722,7 @@
|
|
|
8722
8722
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8723
8723
|
let { api, tilesetId, loadFiles, req: reqParams } = params;
|
|
8724
8724
|
if (!api) {
|
|
8725
|
-
api = exports.ENVIRONMENT.
|
|
8725
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8726
8726
|
}
|
|
8727
8727
|
if (!tilesetId) {
|
|
8728
8728
|
throw ("Tileset ID is required.");
|
|
@@ -8764,7 +8764,7 @@
|
|
|
8764
8764
|
// This uses the legacy end-point which doesn't do that...
|
|
8765
8765
|
let { api, tilesetIds, req: reqParams } = params;
|
|
8766
8766
|
if (!api) {
|
|
8767
|
-
api = exports.ENVIRONMENT.
|
|
8767
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8768
8768
|
}
|
|
8769
8769
|
const mapping = {};
|
|
8770
8770
|
if (tilesetIds.length == 1) {
|
|
@@ -8791,7 +8791,7 @@
|
|
|
8791
8791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8792
8792
|
let { api, req: reqParams } = params;
|
|
8793
8793
|
if (!api) {
|
|
8794
|
-
api = exports.ENVIRONMENT.
|
|
8794
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8795
8795
|
}
|
|
8796
8796
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
8797
8797
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -8821,7 +8821,7 @@
|
|
|
8821
8821
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8822
8822
|
let { api, tilesetId, req: reqParams } = params;
|
|
8823
8823
|
if (!api) {
|
|
8824
|
-
api = exports.ENVIRONMENT.
|
|
8824
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8825
8825
|
}
|
|
8826
8826
|
if (!tilesetId) {
|
|
8827
8827
|
throw ("Tileset ID is required.");
|
|
@@ -8836,7 +8836,7 @@
|
|
|
8836
8836
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8837
8837
|
let { api, tileset: data, req: reqParams } = params;
|
|
8838
8838
|
if (!api) {
|
|
8839
|
-
api = exports.ENVIRONMENT.
|
|
8839
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8840
8840
|
}
|
|
8841
8841
|
if (!(data === null || data === void 0 ? void 0 : data.name) || !(data === null || data === void 0 ? void 0 : data.type)) {
|
|
8842
8842
|
throw ("Tileset name and type are required.");
|
|
@@ -8859,7 +8859,7 @@
|
|
|
8859
8859
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8860
8860
|
let { api, file, req, tilesetId, onProgress } = params;
|
|
8861
8861
|
if (!api) {
|
|
8862
|
-
api = exports.ENVIRONMENT.
|
|
8862
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8863
8863
|
}
|
|
8864
8864
|
if (!tilesetId || !file) {
|
|
8865
8865
|
throw ("Tileset ID and file are required.");
|
|
@@ -8900,7 +8900,7 @@
|
|
|
8900
8900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8901
8901
|
let { api, tilesetId, file, req: reqParams } = params;
|
|
8902
8902
|
if (!api) {
|
|
8903
|
-
api = exports.ENVIRONMENT.
|
|
8903
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8904
8904
|
}
|
|
8905
8905
|
if (!tilesetId || !file) {
|
|
8906
8906
|
throw ("Tileset ID and file are required.");
|
|
@@ -8914,7 +8914,7 @@
|
|
|
8914
8914
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8915
8915
|
let { api, file, req, tilesetId, onProgress } = params;
|
|
8916
8916
|
if (!api) {
|
|
8917
|
-
api = exports.ENVIRONMENT.
|
|
8917
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8918
8918
|
}
|
|
8919
8919
|
if (!tilesetId || !file) {
|
|
8920
8920
|
throw ("Tileset ID and file are required.");
|
|
@@ -8956,7 +8956,7 @@
|
|
|
8956
8956
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8957
8957
|
let { api, tilesetId, file, req: reqParams } = params;
|
|
8958
8958
|
if (!api) {
|
|
8959
|
-
api = exports.ENVIRONMENT.
|
|
8959
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8960
8960
|
}
|
|
8961
8961
|
if (!tilesetId || !file) {
|
|
8962
8962
|
throw ("Tileset ID and file are required.");
|
|
@@ -8969,7 +8969,7 @@
|
|
|
8969
8969
|
function GetFileUrl(params) {
|
|
8970
8970
|
let { api, tilesetId, file } = params;
|
|
8971
8971
|
if (!api) {
|
|
8972
|
-
api = exports.ENVIRONMENT.
|
|
8972
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8973
8973
|
}
|
|
8974
8974
|
if (!tilesetId) {
|
|
8975
8975
|
throw ("Tileset ID is required.");
|
|
@@ -8983,7 +8983,7 @@
|
|
|
8983
8983
|
function GetSrcFileUrl(params) {
|
|
8984
8984
|
let { api, tilesetId, file } = params;
|
|
8985
8985
|
if (!api) {
|
|
8986
|
-
api = exports.ENVIRONMENT.
|
|
8986
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8987
8987
|
}
|
|
8988
8988
|
if (!tilesetId) {
|
|
8989
8989
|
throw ("Tileset ID is required.");
|
|
@@ -8997,7 +8997,7 @@
|
|
|
8997
8997
|
function GetPublicFileUrl(params) {
|
|
8998
8998
|
let { api, tilesetId, file } = params;
|
|
8999
8999
|
if (!api) {
|
|
9000
|
-
api = exports.ENVIRONMENT.
|
|
9000
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9001
9001
|
}
|
|
9002
9002
|
if (!tilesetId) {
|
|
9003
9003
|
throw ("Tileset ID is required.");
|
|
@@ -9012,7 +9012,7 @@
|
|
|
9012
9012
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9013
9013
|
let { api, tilesetId, req: reqParams } = params;
|
|
9014
9014
|
if (!api) {
|
|
9015
|
-
api = exports.ENVIRONMENT.
|
|
9015
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9016
9016
|
}
|
|
9017
9017
|
if (!tilesetId) {
|
|
9018
9018
|
throw ("Tileset ID is required.");
|
|
@@ -9037,7 +9037,7 @@
|
|
|
9037
9037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9038
9038
|
let { api, published: data, req: reqParams } = params;
|
|
9039
9039
|
if (!api) {
|
|
9040
|
-
api = exports.ENVIRONMENT.
|
|
9040
|
+
api = exports.ENVIRONMENT.Api().GetGlobalApi();
|
|
9041
9041
|
}
|
|
9042
9042
|
if (!(data === null || data === void 0 ? void 0 : data["Tileset.ID"]) || !(data === null || data === void 0 ? void 0 : data["PublishedBy.ClientAccount.ID"]) || !(data === null || data === void 0 ? void 0 : data["PublishedBy.User.ID"])) {
|
|
9043
9043
|
throw ("Tileset ID, client account ID, and user ID are required.");
|
|
@@ -9063,7 +9063,7 @@
|
|
|
9063
9063
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9064
9064
|
let { api, accountId, tilesetId, req: reqParams } = params;
|
|
9065
9065
|
if (!api) {
|
|
9066
|
-
api = exports.ENVIRONMENT.
|
|
9066
|
+
api = exports.ENVIRONMENT.Api().GetGlobalApi();
|
|
9067
9067
|
}
|
|
9068
9068
|
if (!accountId || !tilesetId) {
|
|
9069
9069
|
throw ("Client account ID and tileset ID are required.");
|
|
@@ -9096,7 +9096,7 @@
|
|
|
9096
9096
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9097
9097
|
let { api, accountId, req: reqParams } = params;
|
|
9098
9098
|
if (!api) {
|
|
9099
|
-
api = exports.ENVIRONMENT.
|
|
9099
|
+
api = exports.ENVIRONMENT.Api().GetGlobalApi();
|
|
9100
9100
|
}
|
|
9101
9101
|
if (!accountId) {
|
|
9102
9102
|
throw ("Client account ID is required.");
|
|
@@ -9279,7 +9279,7 @@
|
|
|
9279
9279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9280
9280
|
let { api, viewId, bookmarkId, req: reqParams } = params;
|
|
9281
9281
|
if (!api) {
|
|
9282
|
-
api = exports.ENVIRONMENT.
|
|
9282
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9283
9283
|
}
|
|
9284
9284
|
if (!viewId || !bookmarkId) {
|
|
9285
9285
|
throw ("View ID and Bookmark ID are required.");
|
|
@@ -9313,7 +9313,7 @@
|
|
|
9313
9313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9314
9314
|
let { api, viewId, bookmarkId, req: reqParams } = params;
|
|
9315
9315
|
if (!api) {
|
|
9316
|
-
api = exports.ENVIRONMENT.
|
|
9316
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9317
9317
|
}
|
|
9318
9318
|
if (!viewId || !bookmarkId) {
|
|
9319
9319
|
throw ("View ID and Bookmark ID are required.");
|
|
@@ -9328,7 +9328,7 @@
|
|
|
9328
9328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9329
9329
|
let { api, viewId, req: reqParams } = params;
|
|
9330
9330
|
if (!api) {
|
|
9331
|
-
api = exports.ENVIRONMENT.
|
|
9331
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9332
9332
|
}
|
|
9333
9333
|
if (!viewId) {
|
|
9334
9334
|
throw ("View ID is required.");
|
|
@@ -9378,7 +9378,7 @@
|
|
|
9378
9378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9379
9379
|
let { api, viewId, bookmark: data, req: reqParams } = params;
|
|
9380
9380
|
if (!api) {
|
|
9381
|
-
api = exports.ENVIRONMENT.
|
|
9381
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9382
9382
|
}
|
|
9383
9383
|
if (!(data === null || data === void 0 ? void 0 : data.Title)) {
|
|
9384
9384
|
data.Title = data.ID;
|
|
@@ -9396,7 +9396,7 @@
|
|
|
9396
9396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9397
9397
|
let { api, viewId, bookmarkIds, req: reqParams } = params;
|
|
9398
9398
|
if (!api) {
|
|
9399
|
-
api = exports.ENVIRONMENT.
|
|
9399
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9400
9400
|
}
|
|
9401
9401
|
const reqData = {
|
|
9402
9402
|
"UISlide.ID": bookmarkIds,
|
|
@@ -9433,7 +9433,7 @@
|
|
|
9433
9433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9434
9434
|
let { api, viewId, req: reqParams } = params;
|
|
9435
9435
|
if (!api) {
|
|
9436
|
-
api = exports.ENVIRONMENT.
|
|
9436
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9437
9437
|
}
|
|
9438
9438
|
if (!viewId) {
|
|
9439
9439
|
throw ("View ID is required.");
|
|
@@ -9467,7 +9467,7 @@
|
|
|
9467
9467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9468
9468
|
let { api, req: reqParams } = params;
|
|
9469
9469
|
if (!api) {
|
|
9470
|
-
api = exports.ENVIRONMENT.
|
|
9470
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9471
9471
|
}
|
|
9472
9472
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
9473
9473
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -9497,7 +9497,7 @@
|
|
|
9497
9497
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9498
9498
|
let { api, viewId, req: reqParams } = params;
|
|
9499
9499
|
if (!api) {
|
|
9500
|
-
api = exports.ENVIRONMENT.
|
|
9500
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9501
9501
|
}
|
|
9502
9502
|
if (!viewId) {
|
|
9503
9503
|
throw ("View ID is required.");
|
|
@@ -9512,7 +9512,7 @@
|
|
|
9512
9512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9513
9513
|
let { api, view: data, req: reqParams } = params;
|
|
9514
9514
|
if (!api) {
|
|
9515
|
-
api = exports.ENVIRONMENT.
|
|
9515
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9516
9516
|
}
|
|
9517
9517
|
if (!data) {
|
|
9518
9518
|
data = {};
|
|
@@ -9572,7 +9572,7 @@
|
|
|
9572
9572
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9573
9573
|
let { getter, sources: items, addIfMissing, req: reqParams } = params;
|
|
9574
9574
|
if (!getter) {
|
|
9575
|
-
getter = exports.ENVIRONMENT.
|
|
9575
|
+
getter = exports.ENVIRONMENT.Api().GetBruceGetter();
|
|
9576
9576
|
}
|
|
9577
9577
|
const settings = yield getTemplateSettings(getter, reqParams);
|
|
9578
9578
|
const maps = (_a = settings.CesiumMapSources) !== null && _a !== void 0 ? _a : [];
|
|
@@ -9591,7 +9591,7 @@
|
|
|
9591
9591
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9592
9592
|
let { getter, sources: items, addIfMissing, req: reqParams } = params;
|
|
9593
9593
|
if (!getter) {
|
|
9594
|
-
getter = exports.ENVIRONMENT.
|
|
9594
|
+
getter = exports.ENVIRONMENT.Api().GetBruceGetter();
|
|
9595
9595
|
}
|
|
9596
9596
|
const settings = yield getTemplateSettings(getter, reqParams);
|
|
9597
9597
|
const terrains = (_a = settings.CesiumTerrainSources) !== null && _a !== void 0 ? _a : [];
|
|
@@ -9748,7 +9748,7 @@
|
|
|
9748
9748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9749
9749
|
let { api, actionId, req: reqParams } = params;
|
|
9750
9750
|
if (!api) {
|
|
9751
|
-
api = exports.ENVIRONMENT.
|
|
9751
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9752
9752
|
}
|
|
9753
9753
|
if (!actionId) {
|
|
9754
9754
|
throw ("Action ID is required.");
|
|
@@ -9764,7 +9764,7 @@
|
|
|
9764
9764
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9765
9765
|
let { api, stricter, reqParams } = params;
|
|
9766
9766
|
if (!api) {
|
|
9767
|
-
api = exports.ENVIRONMENT.
|
|
9767
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9768
9768
|
}
|
|
9769
9769
|
const data = yield api.GET(`pendingActions/important?Update=${Boolean(stricter)}`, exports.Api.PrepReqParams(reqParams));
|
|
9770
9770
|
return {
|
|
@@ -9777,7 +9777,7 @@
|
|
|
9777
9777
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9778
9778
|
let { api, actionId, order, startIndex, amount, req: reqParams, types } = params;
|
|
9779
9779
|
if (!api) {
|
|
9780
|
-
api = exports.ENVIRONMENT.
|
|
9780
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9781
9781
|
}
|
|
9782
9782
|
if (amount == null) {
|
|
9783
9783
|
amount = 500;
|
|
@@ -9827,7 +9827,7 @@
|
|
|
9827
9827
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9828
9828
|
let { api, req: reqParams } = params;
|
|
9829
9829
|
if (!api) {
|
|
9830
|
-
api = exports.ENVIRONMENT.
|
|
9830
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9831
9831
|
}
|
|
9832
9832
|
const cache = yield api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
9833
9833
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -9857,7 +9857,7 @@
|
|
|
9857
9857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9858
9858
|
let { api, styleId: id, req: reqParams } = params;
|
|
9859
9859
|
if (!api) {
|
|
9860
|
-
api = exports.ENVIRONMENT.
|
|
9860
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9861
9861
|
}
|
|
9862
9862
|
if (!id) {
|
|
9863
9863
|
throw ("Style ID is required.");
|
|
@@ -9890,7 +9890,7 @@
|
|
|
9890
9890
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9891
9891
|
let { api, style: data, req: reqParams } = params;
|
|
9892
9892
|
if (!api) {
|
|
9893
|
-
api = exports.ENVIRONMENT.
|
|
9893
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9894
9894
|
}
|
|
9895
9895
|
if (!(data === null || data === void 0 ? void 0 : data.Name)) {
|
|
9896
9896
|
throw ("Style name is required.");
|
|
@@ -9911,7 +9911,7 @@
|
|
|
9911
9911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9912
9912
|
let { api, styleId: id, req: reqParams } = params;
|
|
9913
9913
|
if (!api) {
|
|
9914
|
-
api = exports.ENVIRONMENT.
|
|
9914
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
9915
9915
|
}
|
|
9916
9916
|
if (!id) {
|
|
9917
9917
|
throw ("Style ID is required.");
|
|
@@ -9949,7 +9949,7 @@
|
|
|
9949
9949
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9950
9950
|
let { api, sessionId, req: reqParams } = params;
|
|
9951
9951
|
if (!api) {
|
|
9952
|
-
api = exports.ENVIRONMENT.
|
|
9952
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
9953
9953
|
}
|
|
9954
9954
|
if (!sessionId) {
|
|
9955
9955
|
throw ("Session ID is required.");
|
|
@@ -9990,7 +9990,7 @@
|
|
|
9990
9990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9991
9991
|
let { api, username, password, accountId, req: reqParams } = params;
|
|
9992
9992
|
if (!api) {
|
|
9993
|
-
api = exports.ENVIRONMENT.
|
|
9993
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
9994
9994
|
}
|
|
9995
9995
|
const data = yield api.POST("login", {
|
|
9996
9996
|
account: accountId ? accountId : "",
|
|
@@ -10011,7 +10011,7 @@
|
|
|
10011
10011
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10012
10012
|
let { api, req: reqParams } = params;
|
|
10013
10013
|
if (!api) {
|
|
10014
|
-
api = exports.ENVIRONMENT.
|
|
10014
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10015
10015
|
}
|
|
10016
10016
|
const ssid = api.GetSessionId();
|
|
10017
10017
|
if (ssid) {
|
|
@@ -10081,7 +10081,7 @@
|
|
|
10081
10081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10082
10082
|
let { api, accountId, name, req: reqParams } = params;
|
|
10083
10083
|
if (!api) {
|
|
10084
|
-
api = exports.ENVIRONMENT.
|
|
10084
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10085
10085
|
}
|
|
10086
10086
|
if (!name || !accountId) {
|
|
10087
10087
|
throw ("Name and AccountID are required.");
|
|
@@ -10097,7 +10097,7 @@
|
|
|
10097
10097
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10098
10098
|
let { api, accountId, groupId: id, req: reqParams } = params;
|
|
10099
10099
|
if (!api) {
|
|
10100
|
-
api = exports.ENVIRONMENT.
|
|
10100
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10101
10101
|
}
|
|
10102
10102
|
if (!accountId || !id) {
|
|
10103
10103
|
throw ("AccountID and ID are required.");
|
|
@@ -10113,7 +10113,7 @@
|
|
|
10113
10113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10114
10114
|
let { api, accountId, perm, req: reqParams } = params;
|
|
10115
10115
|
if (!api) {
|
|
10116
|
-
api = exports.ENVIRONMENT.
|
|
10116
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10117
10117
|
}
|
|
10118
10118
|
if (!accountId || !perm) {
|
|
10119
10119
|
throw ("AccountID and Perm are required.");
|
|
@@ -10129,7 +10129,7 @@
|
|
|
10129
10129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10130
10130
|
let { api, accountId, req: reqParams } = params;
|
|
10131
10131
|
if (!api) {
|
|
10132
|
-
api = exports.ENVIRONMENT.
|
|
10132
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10133
10133
|
}
|
|
10134
10134
|
if (!accountId) {
|
|
10135
10135
|
throw ("AccountID is required.");
|
|
@@ -10145,7 +10145,7 @@
|
|
|
10145
10145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10146
10146
|
let { api, accountId, groupId: id, req: reqParams } = params;
|
|
10147
10147
|
if (!api) {
|
|
10148
|
-
api = exports.ENVIRONMENT.
|
|
10148
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10149
10149
|
}
|
|
10150
10150
|
if (!accountId || !id) {
|
|
10151
10151
|
throw ("AccountID and ID are required.");
|
|
@@ -10158,7 +10158,7 @@
|
|
|
10158
10158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10159
10159
|
let { api, group: data, reqParams } = params;
|
|
10160
10160
|
if (!api) {
|
|
10161
|
-
api = exports.ENVIRONMENT.
|
|
10161
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10162
10162
|
}
|
|
10163
10163
|
if (!data.Name || !data["ClientAccount.ID"]) {
|
|
10164
10164
|
throw ("User group name and client account ID are required.");
|
|
@@ -10200,7 +10200,7 @@
|
|
|
10200
10200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10201
10201
|
let { api, userId: id, accountId, req: reqParams } = params;
|
|
10202
10202
|
if (!api) {
|
|
10203
|
-
api = exports.ENVIRONMENT.
|
|
10203
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10204
10204
|
}
|
|
10205
10205
|
if (!id) {
|
|
10206
10206
|
throw ("ID is required.");
|
|
@@ -10234,7 +10234,7 @@
|
|
|
10234
10234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10235
10235
|
let { api, user: data, req: reqParams } = params;
|
|
10236
10236
|
if (!api) {
|
|
10237
|
-
api = exports.ENVIRONMENT.
|
|
10237
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10238
10238
|
}
|
|
10239
10239
|
if (!(data === null || data === void 0 ? void 0 : data.ID) || !(data === null || data === void 0 ? void 0 : data.Type)) {
|
|
10240
10240
|
throw ("ID and Type are required.");
|
|
@@ -10275,7 +10275,7 @@
|
|
|
10275
10275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10276
10276
|
let { api, userId, appId, req } = params;
|
|
10277
10277
|
if (!api) {
|
|
10278
|
-
api = exports.ENVIRONMENT.
|
|
10278
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10279
10279
|
}
|
|
10280
10280
|
if (!userId || !appId) {
|
|
10281
10281
|
throw ("UserId and appId are required.");
|
|
@@ -10325,7 +10325,7 @@
|
|
|
10325
10325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10326
10326
|
let { api, accId, userId, appId, settings, req } = params;
|
|
10327
10327
|
if (!api) {
|
|
10328
|
-
api = exports.ENVIRONMENT.
|
|
10328
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10329
10329
|
}
|
|
10330
10330
|
if (!userId || !appId) {
|
|
10331
10331
|
throw ("UserId and appId are required.");
|
|
@@ -10346,7 +10346,7 @@
|
|
|
10346
10346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10347
10347
|
let { api, username, excludeUserId, req: reqParams } = params;
|
|
10348
10348
|
if (!api) {
|
|
10349
|
-
api = exports.ENVIRONMENT.
|
|
10349
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10350
10350
|
}
|
|
10351
10351
|
if (!username) {
|
|
10352
10352
|
throw ("Username is required.");
|
|
@@ -10377,7 +10377,7 @@
|
|
|
10377
10377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10378
10378
|
let { api, email, accountId, req: reqParams } = params;
|
|
10379
10379
|
if (!api) {
|
|
10380
|
-
api = exports.ENVIRONMENT.
|
|
10380
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10381
10381
|
}
|
|
10382
10382
|
if (!email) {
|
|
10383
10383
|
throw ("Email is required.");
|
|
@@ -10410,7 +10410,7 @@
|
|
|
10410
10410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10411
10411
|
let { api, accountId, exclusive, req: reqParams } = params;
|
|
10412
10412
|
if (!api) {
|
|
10413
|
-
api = exports.ENVIRONMENT.
|
|
10413
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10414
10414
|
}
|
|
10415
10415
|
if (!accountId) {
|
|
10416
10416
|
throw ("Client account ID is required.");
|
|
@@ -10465,7 +10465,7 @@
|
|
|
10465
10465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10466
10466
|
let { api, email, req: reqParams } = params;
|
|
10467
10467
|
if (!api) {
|
|
10468
|
-
api = exports.ENVIRONMENT.
|
|
10468
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10469
10469
|
}
|
|
10470
10470
|
if (!email) {
|
|
10471
10471
|
throw ("Email is required.");
|
|
@@ -10485,7 +10485,7 @@
|
|
|
10485
10485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10486
10486
|
let { api, expiredCode, req: reqParams } = params;
|
|
10487
10487
|
if (!api) {
|
|
10488
|
-
api = exports.ENVIRONMENT.
|
|
10488
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10489
10489
|
}
|
|
10490
10490
|
if (!expiredCode) {
|
|
10491
10491
|
throw ("Expired activation code is required.");
|
|
@@ -10503,7 +10503,7 @@
|
|
|
10503
10503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10504
10504
|
let { api, code, user: data, accountId, req: reqParams } = params;
|
|
10505
10505
|
if (!api) {
|
|
10506
|
-
api = exports.ENVIRONMENT.
|
|
10506
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10507
10507
|
}
|
|
10508
10508
|
if (!code || !(data === null || data === void 0 ? void 0 : data.Login) || !(data === null || data === void 0 ? void 0 : data.Password)) {
|
|
10509
10509
|
throw ("Login, password, and activation code are required.");
|
|
@@ -10532,7 +10532,7 @@
|
|
|
10532
10532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10533
10533
|
let { api, accountId, email, req: reqParams } = params;
|
|
10534
10534
|
if (!api) {
|
|
10535
|
-
api = exports.ENVIRONMENT.
|
|
10535
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10536
10536
|
}
|
|
10537
10537
|
if (!accountId || !email) {
|
|
10538
10538
|
throw ("Account ID and email are required.");
|
|
@@ -10564,7 +10564,7 @@
|
|
|
10564
10564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10565
10565
|
let { api, code, userId, password, req: reqParams } = params;
|
|
10566
10566
|
if (!api) {
|
|
10567
|
-
api = exports.ENVIRONMENT.
|
|
10567
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10568
10568
|
}
|
|
10569
10569
|
const { user } = yield Get({
|
|
10570
10570
|
api: api,
|
|
@@ -10596,7 +10596,7 @@
|
|
|
10596
10596
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10597
10597
|
let { api, accountId, req: reqParams } = params;
|
|
10598
10598
|
if (!api) {
|
|
10599
|
-
api = exports.ENVIRONMENT.
|
|
10599
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10600
10600
|
}
|
|
10601
10601
|
const cache = yield api.GetCacheItem(GetListCacheKey(accountId), reqParams);
|
|
10602
10602
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -10638,7 +10638,7 @@
|
|
|
10638
10638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10639
10639
|
let { api, tokenId: id, req: reqParams } = params;
|
|
10640
10640
|
if (!api) {
|
|
10641
|
-
api = exports.ENVIRONMENT.
|
|
10641
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10642
10642
|
}
|
|
10643
10643
|
yield api.DELETE(`accessToken/${id}`, reqParams);
|
|
10644
10644
|
api.Cache.RemoveByContains(exports.Api.ECacheKey.User + exports.Api.ECacheKey.Id + id);
|
|
@@ -10650,7 +10650,7 @@
|
|
|
10650
10650
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10651
10651
|
let { api, token: data, req: reqParams } = params;
|
|
10652
10652
|
if (!api) {
|
|
10653
|
-
api = exports.ENVIRONMENT.
|
|
10653
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10654
10654
|
}
|
|
10655
10655
|
if (!data) {
|
|
10656
10656
|
data = {};
|
|
@@ -10691,7 +10691,7 @@
|
|
|
10691
10691
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10692
10692
|
let { api, code, req } = params;
|
|
10693
10693
|
if (!api) {
|
|
10694
|
-
api = exports.ENVIRONMENT.
|
|
10694
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10695
10695
|
}
|
|
10696
10696
|
const res = yield api.GET(`invite/code?inviteCode=${code}`, exports.Api.PrepReqParams(req));
|
|
10697
10697
|
return res;
|
|
@@ -10702,7 +10702,7 @@
|
|
|
10702
10702
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10703
10703
|
let { api, accountId, userId, req } = params;
|
|
10704
10704
|
if (!api) {
|
|
10705
|
-
api = exports.ENVIRONMENT.
|
|
10705
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10706
10706
|
}
|
|
10707
10707
|
const urlParams = new URLSearchParams();
|
|
10708
10708
|
if (accountId) {
|
|
@@ -10720,7 +10720,7 @@
|
|
|
10720
10720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10721
10721
|
let { api, code, status, user, req } = params;
|
|
10722
10722
|
if (!api) {
|
|
10723
|
-
api = exports.ENVIRONMENT.
|
|
10723
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10724
10724
|
}
|
|
10725
10725
|
const res = yield api.POST("invite/update", {
|
|
10726
10726
|
InviteCode: code,
|
|
@@ -10735,7 +10735,7 @@
|
|
|
10735
10735
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10736
10736
|
let { api, accountId, login, userId, email, mobile, emailTemplateKey, groupIds, req } = params;
|
|
10737
10737
|
if (!api) {
|
|
10738
|
-
api = exports.ENVIRONMENT.
|
|
10738
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
10739
10739
|
}
|
|
10740
10740
|
const res = yield api.POST("invite/new", {
|
|
10741
10741
|
accountId,
|
|
@@ -10869,7 +10869,7 @@
|
|
|
10869
10869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10870
10870
|
let { api, query, key, skip, load, req: reqParams } = params;
|
|
10871
10871
|
if (!api) {
|
|
10872
|
-
api = exports.ENVIRONMENT.
|
|
10872
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10873
10873
|
}
|
|
10874
10874
|
if (!key) {
|
|
10875
10875
|
key = EReqKey.Primary;
|
|
@@ -10903,7 +10903,7 @@
|
|
|
10903
10903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10904
10904
|
let { api, fileAnalyze, req: reqParams } = params;
|
|
10905
10905
|
if (!api) {
|
|
10906
|
-
api = exports.ENVIRONMENT.
|
|
10906
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10907
10907
|
}
|
|
10908
10908
|
return api.POST("entities/PrepareIFCForImport", fileAnalyze, exports.Api.PrepReqParams(reqParams));
|
|
10909
10909
|
});
|
|
@@ -10913,7 +10913,7 @@
|
|
|
10913
10913
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10914
10914
|
let { api, fileImport, req: reqParams } = params;
|
|
10915
10915
|
if (!api) {
|
|
10916
|
-
api = exports.ENVIRONMENT.
|
|
10916
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10917
10917
|
}
|
|
10918
10918
|
return api.POST("entities/importIFCWithProgress", fileImport, exports.Api.PrepReqParams(reqParams));
|
|
10919
10919
|
});
|
|
@@ -10945,7 +10945,7 @@
|
|
|
10945
10945
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10946
10946
|
let { api, fileImport, req: reqParams } = params;
|
|
10947
10947
|
if (!api) {
|
|
10948
|
-
api = exports.ENVIRONMENT.
|
|
10948
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10949
10949
|
}
|
|
10950
10950
|
return api.POST("entities/importCSVWithProgress2", fileImport, exports.Api.PrepReqParams(reqParams));
|
|
10951
10951
|
});
|
|
@@ -10958,7 +10958,7 @@
|
|
|
10958
10958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10959
10959
|
let { api, fileImport, req: reqParams } = params;
|
|
10960
10960
|
if (!api) {
|
|
10961
|
-
api = exports.ENVIRONMENT.
|
|
10961
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10962
10962
|
}
|
|
10963
10963
|
return api.POST("entities/importJsonWithProgress", fileImport, exports.Api.PrepReqParams(reqParams));
|
|
10964
10964
|
});
|
|
@@ -10971,7 +10971,7 @@
|
|
|
10971
10971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10972
10972
|
let { api, fileImport, req: reqParams } = params;
|
|
10973
10973
|
if (!api) {
|
|
10974
|
-
api = exports.ENVIRONMENT.
|
|
10974
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
10975
10975
|
}
|
|
10976
10976
|
return api.POST("entities/importKMLWithProgress2", fileImport, exports.Api.PrepReqParams(reqParams));
|
|
10977
10977
|
});
|
|
@@ -11001,7 +11001,7 @@
|
|
|
11001
11001
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11002
11002
|
let { api, fileType: type, pageIndex, req: reqParams } = params;
|
|
11003
11003
|
if (!api) {
|
|
11004
|
-
api = exports.ENVIRONMENT.
|
|
11004
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11005
11005
|
}
|
|
11006
11006
|
if (!type) {
|
|
11007
11007
|
type = EFileType.All;
|
|
@@ -11047,7 +11047,7 @@
|
|
|
11047
11047
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11048
11048
|
let { api, rootId, req: reqParams } = params;
|
|
11049
11049
|
if (!api) {
|
|
11050
|
-
api = exports.ENVIRONMENT.
|
|
11050
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11051
11051
|
}
|
|
11052
11052
|
const cache = yield api.GetCacheItem(GetCacheKeyByRootId(rootId), reqParams);
|
|
11053
11053
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -11077,7 +11077,7 @@
|
|
|
11077
11077
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11078
11078
|
let { api, importedFileId: fileId, req: reqParams } = params;
|
|
11079
11079
|
if (!api) {
|
|
11080
|
-
api = exports.ENVIRONMENT.
|
|
11080
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11081
11081
|
}
|
|
11082
11082
|
const cache = yield api.GetCacheItem(GetCacheKey(fileId), reqParams);
|
|
11083
11083
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -11300,7 +11300,7 @@
|
|
|
11300
11300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11301
11301
|
let { api, pluginId, req } = params;
|
|
11302
11302
|
if (!api) {
|
|
11303
|
-
api = exports.ENVIRONMENT.
|
|
11303
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11304
11304
|
}
|
|
11305
11305
|
if (!pluginId) {
|
|
11306
11306
|
throw ("Plugin ID is required.");
|
|
@@ -11333,7 +11333,7 @@
|
|
|
11333
11333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11334
11334
|
let { api, req } = params;
|
|
11335
11335
|
if (!api) {
|
|
11336
|
-
api = exports.ENVIRONMENT.
|
|
11336
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11337
11337
|
}
|
|
11338
11338
|
const cache = yield api.GetCacheItem(GetListCacheKey(), req);
|
|
11339
11339
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -11362,7 +11362,7 @@
|
|
|
11362
11362
|
function GetLoadUrl(params) {
|
|
11363
11363
|
let { api, pluginId, req, cacheKey } = params;
|
|
11364
11364
|
if (!api) {
|
|
11365
|
-
api = exports.ENVIRONMENT.
|
|
11365
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
11366
11366
|
}
|
|
11367
11367
|
if (!cacheKey) {
|
|
11368
11368
|
cacheKey = 0;
|