bruce-models 3.9.0 → 3.9.2

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.
@@ -3002,7 +3002,7 @@
3002
3002
  */
3003
3003
  function Get(params) {
3004
3004
  return __awaiter(this, void 0, void 0, function* () {
3005
- let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo } = params;
3005
+ let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
3006
3006
  if (!entityId) {
3007
3007
  throw ("Entity ID is required.");
3008
3008
  }
@@ -3016,7 +3016,8 @@
3016
3016
  expandRelations,
3017
3017
  historicFrom,
3018
3018
  historicKey,
3019
- historicTo
3019
+ historicTo,
3020
+ historicPoint
3020
3021
  });
3021
3022
  const cache = api.GetCacheItem(key, reqParams);
3022
3023
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
@@ -3034,6 +3035,18 @@
3034
3035
  if (entityTypeId) {
3035
3036
  urlParams.append("BruceEntityType", entityTypeId);
3036
3037
  }
3038
+ if (historicKey) {
3039
+ urlParams.set("historicKey", historicKey);
3040
+ }
3041
+ if (historicFrom) {
3042
+ urlParams.set("historicFrom", historicFrom);
3043
+ }
3044
+ if (historicTo) {
3045
+ urlParams.set("historicTo", historicTo);
3046
+ }
3047
+ if (historicPoint) {
3048
+ urlParams.set("historicPoint", historicPoint);
3049
+ }
3037
3050
  const data = yield api.GET(`entity/${entityId}?${urlParams.toString()}`, exports.Api.PrepReqParams(reqParams));
3038
3051
  res({
3039
3052
  entity: data
@@ -3059,7 +3072,7 @@
3059
3072
  */
3060
3073
  function GetListByIds(params) {
3061
3074
  return __awaiter(this, void 0, void 0, function* () {
3062
- let { api, entityIds, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo } = params;
3075
+ let { api, entityIds, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint } = params;
3063
3076
  if (!entityIds.length) {
3064
3077
  throw ("Entity IDs are required.");
3065
3078
  }
@@ -3093,6 +3106,18 @@
3093
3106
  else if (expandLocation) {
3094
3107
  reqData["Expand"] = "location";
3095
3108
  }
3109
+ if (historicKey) {
3110
+ reqData["historicKey"] = historicKey;
3111
+ }
3112
+ if (historicFrom) {
3113
+ reqData["historicFrom"] = historicFrom;
3114
+ }
3115
+ if (historicTo) {
3116
+ reqData["historicTo"] = historicTo;
3117
+ }
3118
+ if (historicPoint) {
3119
+ reqData["historicPoint"] = historicPoint;
3120
+ }
3096
3121
  const reqs = [];
3097
3122
  if (reqIds.length > 0) {
3098
3123
  const req = api.POST("entities", reqData, exports.Api.PrepReqParams(reqParams));
@@ -3105,7 +3130,8 @@
3105
3130
  entityTypeId: null,
3106
3131
  historicFrom: historicFrom,
3107
3132
  historicKey: historicKey,
3108
- historicTo: historicTo
3133
+ historicTo: historicTo,
3134
+ historicPoint: historicPoint
3109
3135
  });
3110
3136
  const prom = new Promise((res) => __awaiter(this, void 0, void 0, function* () {
3111
3137
  try {
@@ -11145,7 +11171,7 @@
11145
11171
  })(exports.DataSource || (exports.DataSource = {}));
11146
11172
 
11147
11173
  // This is updated with the package.json version on build.
11148
- const VERSION = "3.9.0";
11174
+ const VERSION = "3.9.2";
11149
11175
 
11150
11176
  exports.VERSION = VERSION;
11151
11177
  exports.AbstractApi = AbstractApi;