bruce-models 6.4.5 → 6.4.7

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.
@@ -8204,20 +8204,20 @@
8204
8204
  */
8205
8205
  function Get(params) {
8206
8206
  return __awaiter(this, void 0, void 0, function* () {
8207
- let { api, styleId: id, req: reqParams } = params;
8208
- if (!id) {
8209
- throw ("Style ID is required.");
8207
+ let { api, styleId, req: reqParams } = params;
8208
+ if (!styleId) {
8209
+ throw ("styleId is required.");
8210
8210
  }
8211
8211
  if (!api) {
8212
8212
  api = exports.ENVIRONMENT.Api().GetBruceApi();
8213
8213
  }
8214
- const cache = api.GetCacheItem(GetCacheKey(id), reqParams);
8214
+ const cache = api.GetCacheItem(GetCacheKey(styleId), reqParams);
8215
8215
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
8216
8216
  return cache.data;
8217
8217
  }
8218
8218
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
8219
8219
  try {
8220
- const data = yield api.GET(`ui.entityDisplaySetting/${id}`, exports.Api.PrepReqParams(reqParams));
8220
+ const data = yield api.GET(`ui.entityDisplaySetting/${styleId}`, exports.Api.PrepReqParams(reqParams));
8221
8221
  res({
8222
8222
  style: data
8223
8223
  });
@@ -8227,7 +8227,7 @@
8227
8227
  }
8228
8228
  }));
8229
8229
  api.SetCacheItem({
8230
- key: GetCacheKey(id),
8230
+ key: GetCacheKey(styleId),
8231
8231
  value: prom,
8232
8232
  req: reqParams
8233
8233
  });
@@ -14389,8 +14389,8 @@
14389
14389
  function Get(params) {
14390
14390
  return __awaiter(this, void 0, void 0, function* () {
14391
14391
  let { api, queryId, req } = params;
14392
- if (!queryId || queryId <= 0) {
14393
- throw new Error("queryId is required.");
14392
+ if (!queryId) {
14393
+ throw new Error("queryId must be provided.");
14394
14394
  }
14395
14395
  if (!api) {
14396
14396
  api = exports.ENVIRONMENT.Api().GetBruceApi();
@@ -15715,7 +15715,7 @@
15715
15715
  })(exports.Tracking || (exports.Tracking = {}));
15716
15716
 
15717
15717
  // This is updated with the package.json version on build.
15718
- const VERSION = "6.4.5";
15718
+ const VERSION = "6.4.7";
15719
15719
 
15720
15720
  exports.VERSION = VERSION;
15721
15721
  exports.AbstractApi = AbstractApi;