@apigames/sdk-core 22.1.4 → 22.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.
@@ -12,8 +12,8 @@ export default class ResourceObject implements IResourceObject {
12
12
  protected EndpointContentType(): string;
13
13
  protected LoadAttributes(value: any): void;
14
14
  protected LoadRelationships(value: any): void;
15
- protected UpdateAttributes(value: any): void;
16
- protected UpdateRelationships(value: any): void;
15
+ UpdateAttributes(value: any): void;
16
+ UpdateRelationships(value: any): void;
17
17
  LoadData(value: any): IResourceObject;
18
18
  protected GetInsertPayload(): any;
19
19
  protected GetUpdatePayload(): any;
@@ -38,4 +38,6 @@ export interface IResourceObject {
38
38
  LoadData(value: any): IResourceObject;
39
39
  Delete(): Promise<void>;
40
40
  Save(): Promise<void>;
41
+ UpdateAttributes(value: any): void;
42
+ UpdateRelationships(value: any): void;
41
43
  }
@@ -9,13 +9,6 @@ class ResourceObjectAttributeBase {
9
9
  }
10
10
  static LoadGeospatialPoint(value) {
11
11
  return (0, helpers_1.LoadGeospatialPoint)(value);
12
- if ((0, json_1.isDefined)(value) && (0, json_1.hasProperty)(value, 'longitude') && (0, json_1.isNumber)(value.longitude)
13
- && (0, json_1.hasProperty)(value, 'latitude') && (0, json_1.isNumber)(value.latitude)) {
14
- const geospatialPoint = new GeospatialPoint();
15
- geospatialPoint.LoadData(value);
16
- return geospatialPoint;
17
- }
18
- return undefined;
19
12
  }
20
13
  }
21
14
  exports.ResourceObjectAttributeBase = ResourceObjectAttributeBase;
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "description": "API Games SDK Core",
15
15
  "license": "MIT",
16
- "version": "22.1.4",
16
+ "version": "22.1.5",
17
17
  "main": "lib/index.js",
18
18
  "types": "lib/index.d.ts",
19
19
  "scripts": {