bruce-models 1.1.3 → 1.1.5
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 +57 -46
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +57 -46
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +3 -3
- 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/api/abstract-api.js +11 -0
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/api/api.js +1 -0
- package/dist/lib/api/api.js.map +1 -1
- package/dist/lib/client-file/client-file.js +1 -1
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/custom-form/custom-form.js +2 -2
- package/dist/lib/custom-form/custom-form.js.map +1 -1
- package/dist/lib/entity/entity-attachment-type.js +1 -1
- package/dist/lib/entity/entity-attachment-type.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +1 -1
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/entity-comment.js +1 -1
- package/dist/lib/entity/entity-comment.js.map +1 -1
- package/dist/lib/entity/entity-coords.js +1 -1
- package/dist/lib/entity/entity-coords.js.map +1 -1
- package/dist/lib/entity/entity-link.js +1 -1
- package/dist/lib/entity/entity-link.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +2 -2
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/lib/entity/entity-relation-type.js +2 -2
- package/dist/lib/entity/entity-relation-type.js.map +1 -1
- package/dist/lib/entity/entity-relation.js +2 -2
- package/dist/lib/entity/entity-relation.js.map +1 -1
- package/dist/lib/entity/entity-source.js +2 -2
- package/dist/lib/entity/entity-source.js.map +1 -1
- package/dist/lib/entity/entity-tag.js +2 -2
- package/dist/lib/entity/entity-tag.js.map +1 -1
- package/dist/lib/entity/entity-type.js +2 -2
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/entity/entity.js +2 -2
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/import/imported-file.js +2 -2
- package/dist/lib/import/imported-file.js.map +1 -1
- package/dist/lib/program-key/program-key.js +2 -2
- package/dist/lib/program-key/program-key.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +2 -2
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/project/project-view.js +2 -2
- package/dist/lib/project/project-view.js.map +1 -1
- package/dist/lib/style/style.js +2 -2
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/tileset/tileset.js +4 -4
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/lib/user/session.js +1 -1
- package/dist/lib/user/session.js.map +1 -1
- package/dist/lib/user/user.js +4 -4
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/api/abstract-api.d.ts +1 -0
- package/dist/types/api/api.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -74,6 +74,7 @@ var Api;
|
|
|
74
74
|
EEnv["UAT"] = "UAT";
|
|
75
75
|
EEnv["PROD"] = "PROD";
|
|
76
76
|
})(EEnv = Api.EEnv || (Api.EEnv = {}));
|
|
77
|
+
Api.DEFAULT_CACHE_STATE = true;
|
|
77
78
|
/**
|
|
78
79
|
* Prepares a string to be included in a url.
|
|
79
80
|
* @param str
|
|
@@ -135,7 +136,7 @@ var AnnDocument;
|
|
|
135
136
|
throw ("Doc ID is required.");
|
|
136
137
|
}
|
|
137
138
|
const key = GetCacheKey(docId);
|
|
138
|
-
const cacheData =
|
|
139
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
139
140
|
if (cacheData) {
|
|
140
141
|
return cacheData;
|
|
141
142
|
}
|
|
@@ -150,7 +151,7 @@ var AnnDocument;
|
|
|
150
151
|
if (!type) {
|
|
151
152
|
type = "";
|
|
152
153
|
}
|
|
153
|
-
const cacheData =
|
|
154
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(type), reqParams);
|
|
154
155
|
if (cacheData) {
|
|
155
156
|
return cacheData;
|
|
156
157
|
}
|
|
@@ -198,7 +199,7 @@ var CustomForm;
|
|
|
198
199
|
if (!id) {
|
|
199
200
|
throw ("Id is required.");
|
|
200
201
|
}
|
|
201
|
-
const cacheData =
|
|
202
|
+
const cacheData = api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
202
203
|
if (cacheData) {
|
|
203
204
|
return cacheData;
|
|
204
205
|
}
|
|
@@ -221,7 +222,7 @@ var CustomForm;
|
|
|
221
222
|
function GetList(api, typeId, reqParams) {
|
|
222
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
224
|
const url = typeId ? `entityType/${typeId}/customForms` : "customForms";
|
|
224
|
-
const cacheData =
|
|
225
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(typeId), reqParams);
|
|
225
226
|
if (cacheData) {
|
|
226
227
|
return cacheData;
|
|
227
228
|
}
|
|
@@ -459,6 +460,16 @@ class AbstractApi {
|
|
|
459
460
|
this.Cache = new CacheControl();
|
|
460
461
|
this.ssidHeader = ssidHeader;
|
|
461
462
|
}
|
|
463
|
+
GetCacheItem(key, reqParams) {
|
|
464
|
+
let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
|
|
465
|
+
if (noCache == null) {
|
|
466
|
+
noCache = Api.DEFAULT_CACHE_STATE;
|
|
467
|
+
}
|
|
468
|
+
if (noCache) {
|
|
469
|
+
return null;
|
|
470
|
+
}
|
|
471
|
+
return this.Cache.Get(key);
|
|
472
|
+
}
|
|
462
473
|
GetSessionId() {
|
|
463
474
|
return this.ssid;
|
|
464
475
|
}
|
|
@@ -660,7 +671,7 @@ var Account;
|
|
|
660
671
|
];
|
|
661
672
|
function Get(api, id, reqParams) {
|
|
662
673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
-
const cacheData =
|
|
674
|
+
const cacheData = api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
664
675
|
if (cacheData) {
|
|
665
676
|
return cacheData;
|
|
666
677
|
}
|
|
@@ -672,7 +683,7 @@ var Account;
|
|
|
672
683
|
Account.Get = Get;
|
|
673
684
|
function GetRelatedList(api, reqParams) {
|
|
674
685
|
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
-
const cacheData =
|
|
686
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(api.GetSessionId()), reqParams);
|
|
676
687
|
if (cacheData) {
|
|
677
688
|
return cacheData;
|
|
678
689
|
}
|
|
@@ -694,7 +705,7 @@ var Account;
|
|
|
694
705
|
Account.GetRelatedList = GetRelatedList;
|
|
695
706
|
function GetAppSettings(api, id, appId, reqParams) {
|
|
696
707
|
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
const cacheData =
|
|
708
|
+
const cacheData = api.GetCacheItem(GetCacheKey(id, appId), reqParams);
|
|
698
709
|
if (cacheData) {
|
|
699
710
|
return cacheData;
|
|
700
711
|
}
|
|
@@ -1438,7 +1449,7 @@ var Entity;
|
|
|
1438
1449
|
throw ("Entity ID is required.");
|
|
1439
1450
|
}
|
|
1440
1451
|
const key = GetCacheKey(entityId);
|
|
1441
|
-
const cacheData =
|
|
1452
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
1442
1453
|
if (cacheData) {
|
|
1443
1454
|
return cacheData;
|
|
1444
1455
|
}
|
|
@@ -1458,7 +1469,7 @@ var Entity;
|
|
|
1458
1469
|
for (let i = 0; i < entityIds.length; i++) {
|
|
1459
1470
|
const entityId = entityIds[i];
|
|
1460
1471
|
const key = GetCacheKey(entityId);
|
|
1461
|
-
const cacheData =
|
|
1472
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
1462
1473
|
if (cacheData) {
|
|
1463
1474
|
reqs.push(cacheData);
|
|
1464
1475
|
}
|
|
@@ -2437,7 +2448,7 @@ var EntityAttachmentType;
|
|
|
2437
2448
|
EntityAttachmentType.Update = Update;
|
|
2438
2449
|
function GetList(api, reqParams) {
|
|
2439
2450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2440
|
-
const cacheData =
|
|
2451
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
2441
2452
|
if (cacheData) {
|
|
2442
2453
|
return cacheData;
|
|
2443
2454
|
}
|
|
@@ -2537,7 +2548,7 @@ var EntityAttachment;
|
|
|
2537
2548
|
if (!entityId) {
|
|
2538
2549
|
throw ("Entity ID is required.");
|
|
2539
2550
|
}
|
|
2540
|
-
const cacheData =
|
|
2551
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(entityId), reqParams);
|
|
2541
2552
|
if (cacheData) {
|
|
2542
2553
|
return cacheData;
|
|
2543
2554
|
}
|
|
@@ -2612,7 +2623,7 @@ var EntityComment;
|
|
|
2612
2623
|
if (!entityId) {
|
|
2613
2624
|
throw ("Entity ID is required.");
|
|
2614
2625
|
}
|
|
2615
|
-
const cacheData =
|
|
2626
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(entityId), reqParams);
|
|
2616
2627
|
if (cacheData) {
|
|
2617
2628
|
return cacheData;
|
|
2618
2629
|
}
|
|
@@ -2675,7 +2686,7 @@ var EntityLink;
|
|
|
2675
2686
|
if (!entityId) {
|
|
2676
2687
|
throw ("Entity ID is required.");
|
|
2677
2688
|
}
|
|
2678
|
-
const cacheData =
|
|
2689
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(entityId), reqParams);
|
|
2679
2690
|
if (cacheData) {
|
|
2680
2691
|
return cacheData;
|
|
2681
2692
|
}
|
|
@@ -2733,7 +2744,7 @@ var EntityLod;
|
|
|
2733
2744
|
if (!url) {
|
|
2734
2745
|
throw ("Url is required.");
|
|
2735
2746
|
}
|
|
2736
|
-
const cacheData =
|
|
2747
|
+
const cacheData = api.GetCacheItem(GetCacheKey(url), reqParams);
|
|
2737
2748
|
if (cacheData) {
|
|
2738
2749
|
return cacheData;
|
|
2739
2750
|
}
|
|
@@ -2774,7 +2785,7 @@ var EntityLod;
|
|
|
2774
2785
|
if (!group) {
|
|
2775
2786
|
group = "DEFAULT";
|
|
2776
2787
|
}
|
|
2777
|
-
const cacheData =
|
|
2788
|
+
const cacheData = api.GetCacheItem(GetTypeListKey(typeId, group), reqParams);
|
|
2778
2789
|
if (cacheData) {
|
|
2779
2790
|
return cacheData;
|
|
2780
2791
|
}
|
|
@@ -2828,7 +2839,7 @@ var EntityRelationType;
|
|
|
2828
2839
|
throw ("Type ID is required.");
|
|
2829
2840
|
}
|
|
2830
2841
|
const key = GetCacheKey(typeId);
|
|
2831
|
-
const cacheData =
|
|
2842
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
2832
2843
|
if (cacheData) {
|
|
2833
2844
|
return cacheData;
|
|
2834
2845
|
}
|
|
@@ -2851,7 +2862,7 @@ var EntityRelationType;
|
|
|
2851
2862
|
EntityRelationType.Delete = Delete;
|
|
2852
2863
|
function GetList(api, reqParams) {
|
|
2853
2864
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2854
|
-
const cacheData =
|
|
2865
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
2855
2866
|
if (cacheData) {
|
|
2856
2867
|
return cacheData;
|
|
2857
2868
|
}
|
|
@@ -2951,7 +2962,7 @@ var EntityRelation;
|
|
|
2951
2962
|
throw ("Entity ID is required.");
|
|
2952
2963
|
}
|
|
2953
2964
|
params = Object.assign({ typeId: "", oneWayOnly: false, loadEntityData: false }, params);
|
|
2954
|
-
const cacheData =
|
|
2965
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(entityId, params), reqParams);
|
|
2955
2966
|
if (cacheData) {
|
|
2956
2967
|
return cacheData;
|
|
2957
2968
|
}
|
|
@@ -2979,7 +2990,7 @@ var EntityRelation;
|
|
|
2979
2990
|
if (!entityId) {
|
|
2980
2991
|
throw ("Entity ID is required.");
|
|
2981
2992
|
}
|
|
2982
|
-
const cacheData =
|
|
2993
|
+
const cacheData = api.GetCacheItem(GetEntityCacheKey(entityId), reqParams);
|
|
2983
2994
|
if (cacheData) {
|
|
2984
2995
|
return cacheData;
|
|
2985
2996
|
}
|
|
@@ -3008,7 +3019,7 @@ var EntitySource;
|
|
|
3008
3019
|
throw ("Source ID and Source Key are required.");
|
|
3009
3020
|
}
|
|
3010
3021
|
const key = GetCacheKey(sourceId, sourceKey);
|
|
3011
|
-
const cacheData =
|
|
3022
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
3012
3023
|
if (cacheData) {
|
|
3013
3024
|
return cacheData;
|
|
3014
3025
|
}
|
|
@@ -3027,7 +3038,7 @@ var EntitySource;
|
|
|
3027
3038
|
const reqs = [];
|
|
3028
3039
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
3029
3040
|
const sourceKey = sourceKeys[i];
|
|
3030
|
-
const cacheData =
|
|
3041
|
+
const cacheData = api.GetCacheItem(GetCacheKey(sourceId, sourceKey), reqParams);
|
|
3031
3042
|
if (cacheData) {
|
|
3032
3043
|
reqs.push(cacheData);
|
|
3033
3044
|
}
|
|
@@ -3123,7 +3134,7 @@ var EntityTag;
|
|
|
3123
3134
|
const reqs = [];
|
|
3124
3135
|
for (let i = 0; i < tagIds.length; i++) {
|
|
3125
3136
|
const tagId = tagIds[i];
|
|
3126
|
-
const cacheData =
|
|
3137
|
+
const cacheData = api.GetCacheItem(GetCacheKey(tagId), reqParams);
|
|
3127
3138
|
if (cacheData) {
|
|
3128
3139
|
reqs.push(cacheData);
|
|
3129
3140
|
}
|
|
@@ -3163,7 +3174,7 @@ var EntityTag;
|
|
|
3163
3174
|
EntityTag.GetListByIds = GetListByIds;
|
|
3164
3175
|
function GetList(api, entityTypeId, reqParams) {
|
|
3165
3176
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3166
|
-
const cacheData =
|
|
3177
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(entityTypeId), reqParams);
|
|
3167
3178
|
if (cacheData) {
|
|
3168
3179
|
return cacheData;
|
|
3169
3180
|
}
|
|
@@ -3238,7 +3249,7 @@ var EntityType;
|
|
|
3238
3249
|
throw ("Type ID is required.");
|
|
3239
3250
|
}
|
|
3240
3251
|
const key = GetCacheKey(typeId);
|
|
3241
|
-
const cacheData =
|
|
3252
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
3242
3253
|
if (cacheData) {
|
|
3243
3254
|
return cacheData;
|
|
3244
3255
|
}
|
|
@@ -3261,7 +3272,7 @@ var EntityType;
|
|
|
3261
3272
|
EntityType.Delete = Delete;
|
|
3262
3273
|
function GetList(api, reqParams) {
|
|
3263
3274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3264
|
-
const cacheData =
|
|
3275
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
3265
3276
|
if (cacheData) {
|
|
3266
3277
|
return cacheData;
|
|
3267
3278
|
}
|
|
@@ -3890,7 +3901,7 @@ var EntityCoords;
|
|
|
3890
3901
|
EntityCoords.GetCacheKey = GetCacheKey;
|
|
3891
3902
|
function GetEntityCoords(api, entityId, reqParams) {
|
|
3892
3903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3893
|
-
const cacheData =
|
|
3904
|
+
const cacheData = api.GetCacheItem(GetCacheKey(entityId), reqParams);
|
|
3894
3905
|
if (cacheData) {
|
|
3895
3906
|
return cacheData;
|
|
3896
3907
|
}
|
|
@@ -4019,7 +4030,7 @@ var ClientFile;
|
|
|
4019
4030
|
throw ("File ID is required.");
|
|
4020
4031
|
}
|
|
4021
4032
|
const key = GetCacheKey(fileId);
|
|
4022
|
-
const cacheData =
|
|
4033
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
4023
4034
|
if (cacheData) {
|
|
4024
4035
|
return cacheData;
|
|
4025
4036
|
}
|
|
@@ -4172,7 +4183,7 @@ var ProgramKey;
|
|
|
4172
4183
|
throw ("Program ID is required.");
|
|
4173
4184
|
}
|
|
4174
4185
|
const key = GetCacheKey(programId);
|
|
4175
|
-
const cacheData =
|
|
4186
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
4176
4187
|
if (cacheData) {
|
|
4177
4188
|
return cacheData;
|
|
4178
4189
|
}
|
|
@@ -4184,7 +4195,7 @@ var ProgramKey;
|
|
|
4184
4195
|
ProgramKey.Get = Get;
|
|
4185
4196
|
function GetList(api, reqParams) {
|
|
4186
4197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4187
|
-
const cacheData =
|
|
4198
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
4188
4199
|
if (cacheData) {
|
|
4189
4200
|
return cacheData;
|
|
4190
4201
|
}
|
|
@@ -4285,7 +4296,7 @@ var Tileset;
|
|
|
4285
4296
|
if (!tilesetId) {
|
|
4286
4297
|
throw ("Tileset ID is required.");
|
|
4287
4298
|
}
|
|
4288
|
-
const cacheData =
|
|
4299
|
+
const cacheData = api.GetCacheItem(GetCacheKey(tilesetId, loadFiles), reqParams);
|
|
4289
4300
|
if (cacheData) {
|
|
4290
4301
|
return cacheData;
|
|
4291
4302
|
}
|
|
@@ -4297,7 +4308,7 @@ var Tileset;
|
|
|
4297
4308
|
Tileset.Get = Get;
|
|
4298
4309
|
function GetList(api, reqParams) {
|
|
4299
4310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4300
|
-
const cacheData =
|
|
4311
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
4301
4312
|
if (cacheData) {
|
|
4302
4313
|
return cacheData;
|
|
4303
4314
|
}
|
|
@@ -4458,7 +4469,7 @@ var Tileset;
|
|
|
4458
4469
|
if (!accountId || !tilesetId) {
|
|
4459
4470
|
throw ("Client account ID and tileset ID are required.");
|
|
4460
4471
|
}
|
|
4461
|
-
const cacheData =
|
|
4472
|
+
const cacheData = api.GetCacheItem(GetCacheKey(accountId, tilesetId), reqParams);
|
|
4462
4473
|
if (cacheData) {
|
|
4463
4474
|
return cacheData;
|
|
4464
4475
|
}
|
|
@@ -4473,7 +4484,7 @@ var Tileset;
|
|
|
4473
4484
|
if (!accountId) {
|
|
4474
4485
|
throw ("Client account ID is required.");
|
|
4475
4486
|
}
|
|
4476
|
-
const cacheData =
|
|
4487
|
+
const cacheData = api.GetCacheItem(GetCacheKey(accountId), reqParams);
|
|
4477
4488
|
if (cacheData) {
|
|
4478
4489
|
return cacheData;
|
|
4479
4490
|
}
|
|
@@ -4637,7 +4648,7 @@ var ProjectViewBookmark;
|
|
|
4637
4648
|
throw ("View ID and Bookmark ID are required.");
|
|
4638
4649
|
}
|
|
4639
4650
|
const key = GetCacheKey(viewId, bookmarkId);
|
|
4640
|
-
const cacheData =
|
|
4651
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
4641
4652
|
if (cacheData) {
|
|
4642
4653
|
return cacheData;
|
|
4643
4654
|
}
|
|
@@ -4663,7 +4674,7 @@ var ProjectViewBookmark;
|
|
|
4663
4674
|
if (!viewId) {
|
|
4664
4675
|
throw ("View ID is required.");
|
|
4665
4676
|
}
|
|
4666
|
-
const cacheData =
|
|
4677
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(viewId), reqParams);
|
|
4667
4678
|
if (cacheData) {
|
|
4668
4679
|
return cacheData;
|
|
4669
4680
|
}
|
|
@@ -4749,7 +4760,7 @@ var ProjectView;
|
|
|
4749
4760
|
throw ("View ID is required.");
|
|
4750
4761
|
}
|
|
4751
4762
|
const key = GetCacheKey(viewId);
|
|
4752
|
-
const cacheData =
|
|
4763
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
4753
4764
|
if (cacheData) {
|
|
4754
4765
|
return cacheData;
|
|
4755
4766
|
}
|
|
@@ -4761,7 +4772,7 @@ var ProjectView;
|
|
|
4761
4772
|
ProjectView.Get = Get;
|
|
4762
4773
|
function GetList(api, reqParams) {
|
|
4763
4774
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4764
|
-
const cacheData =
|
|
4775
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
4765
4776
|
if (cacheData) {
|
|
4766
4777
|
return cacheData;
|
|
4767
4778
|
}
|
|
@@ -5068,7 +5079,7 @@ var Style;
|
|
|
5068
5079
|
EPointType["Cylinder"] = "CYLINDER";
|
|
5069
5080
|
})(EPointType = Style.EPointType || (Style.EPointType = {}));
|
|
5070
5081
|
function GetList(api, reqParams) {
|
|
5071
|
-
const cacheData =
|
|
5082
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(), reqParams);
|
|
5072
5083
|
if (cacheData) {
|
|
5073
5084
|
return cacheData;
|
|
5074
5085
|
}
|
|
@@ -5089,7 +5100,7 @@ var Style;
|
|
|
5089
5100
|
if (!id) {
|
|
5090
5101
|
throw ("Style ID is required.");
|
|
5091
5102
|
}
|
|
5092
|
-
const cacheData =
|
|
5103
|
+
const cacheData = api.GetCacheItem(GetCacheKey(id), reqParams);
|
|
5093
5104
|
if (cacheData) {
|
|
5094
5105
|
return cacheData;
|
|
5095
5106
|
}
|
|
@@ -5191,7 +5202,7 @@ var Session;
|
|
|
5191
5202
|
throw ("Session ID is required.");
|
|
5192
5203
|
}
|
|
5193
5204
|
const key = GetCacheKey(sessionId);
|
|
5194
|
-
const cacheData =
|
|
5205
|
+
const cacheData = api.GetCacheItem(key, reqParams);
|
|
5195
5206
|
if (cacheData) {
|
|
5196
5207
|
return cacheData;
|
|
5197
5208
|
}
|
|
@@ -5374,7 +5385,7 @@ var User;
|
|
|
5374
5385
|
if (!id) {
|
|
5375
5386
|
throw ("ID is required.");
|
|
5376
5387
|
}
|
|
5377
|
-
const cacheData =
|
|
5388
|
+
const cacheData = api.GetCacheItem(GetCacheKey(id, accountId), reqParams);
|
|
5378
5389
|
if (cacheData) {
|
|
5379
5390
|
return cacheData;
|
|
5380
5391
|
}
|
|
@@ -5431,7 +5442,7 @@ var User;
|
|
|
5431
5442
|
if (!email) {
|
|
5432
5443
|
throw ("Email is required.");
|
|
5433
5444
|
}
|
|
5434
|
-
const cacheData =
|
|
5445
|
+
const cacheData = api.GetCacheItem(GetEmailCacheKey(email, accountId), reqParams);
|
|
5435
5446
|
if (cacheData) {
|
|
5436
5447
|
return cacheData;
|
|
5437
5448
|
}
|
|
@@ -5449,7 +5460,7 @@ var User;
|
|
|
5449
5460
|
if (!exclusive) {
|
|
5450
5461
|
exclusive = false;
|
|
5451
5462
|
}
|
|
5452
|
-
const cacheData = exclusive
|
|
5463
|
+
const cacheData = exclusive ? null : api.GetCacheItem(GetListCacheKey(accountId), reqParams);
|
|
5453
5464
|
if (cacheData) {
|
|
5454
5465
|
return cacheData;
|
|
5455
5466
|
}
|
|
@@ -5590,7 +5601,7 @@ var User;
|
|
|
5590
5601
|
AccessToken.GetListCacheKey = GetListCacheKey;
|
|
5591
5602
|
function GetList(api, accountId, reqParams) {
|
|
5592
5603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5593
|
-
const cacheData =
|
|
5604
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(accountId), reqParams);
|
|
5594
5605
|
if (cacheData) {
|
|
5595
5606
|
return cacheData;
|
|
5596
5607
|
}
|
|
@@ -5879,7 +5890,7 @@ var ImportedFile;
|
|
|
5879
5890
|
if (!pageIndex) {
|
|
5880
5891
|
pageIndex = 0;
|
|
5881
5892
|
}
|
|
5882
|
-
const cacheData =
|
|
5893
|
+
const cacheData = api.GetCacheItem(GetListCacheKey(type, pageIndex), reqParams);
|
|
5883
5894
|
if (cacheData) {
|
|
5884
5895
|
return cacheData;
|
|
5885
5896
|
}
|
|
@@ -5909,7 +5920,7 @@ var ImportedFile;
|
|
|
5909
5920
|
ImportedFile.GetList = GetList;
|
|
5910
5921
|
function Get(api, fileId, reqParams) {
|
|
5911
5922
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5912
|
-
const cacheData =
|
|
5923
|
+
const cacheData = api.GetCacheItem(GetCacheKey(fileId), reqParams);
|
|
5913
5924
|
if (cacheData) {
|
|
5914
5925
|
return cacheData;
|
|
5915
5926
|
}
|