@apigames/sdk-core 22.2.5 → 23.1.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Cloudize Limited.
3
+ Copyright (c) 2023 Cloudize Limited.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -10,7 +10,7 @@ export declare enum ResourceFilterType {
10
10
  NearLocation = "near",
11
11
  Exists = "exists"
12
12
  }
13
- export declare type ResourceContainerParams = {
13
+ export type ResourceContainerParams = {
14
14
  restClient?: IRestClient;
15
15
  sdkConfig?: SDKConfiguration;
16
16
  };
@@ -1,3 +1,3 @@
1
- export declare type ResourceHeaderParams = {
1
+ export type ResourceHeaderParams = {
2
2
  [index: string]: string;
3
3
  };
@@ -35,4 +35,4 @@ export default class ResourceObject implements IResourceObject {
35
35
  protected get shadowRelationships(): IResourceObjectRelationships;
36
36
  get uri(): ResourceObjectUri;
37
37
  }
38
- export declare type ResourceObjectClass = typeof ResourceObject;
38
+ export type ResourceObjectClass = typeof ResourceObject;
@@ -1,3 +1,3 @@
1
- export declare type ResourcePathParams = {
1
+ export type ResourcePathParams = {
2
2
  [index: string]: string;
3
3
  };
@@ -1,5 +1,5 @@
1
1
  import { ResourceObjectClass } from './resource.object';
2
- export declare type SDKResourceMap = {
2
+ export type SDKResourceMap = {
3
3
  [index: string]: ResourceObjectClass;
4
4
  };
5
5
  export declare class SDKConfiguration {
@@ -1,7 +1,7 @@
1
1
  import { IRestClient } from '@apigames/rest-client';
2
2
  import { ResourceFilterType, ResourceHeaderParams } from '../classes';
3
- export declare type ResourceObjectType = string;
4
- export declare type ResourceObjectIdentifier = string;
3
+ export type ResourceObjectType = string;
4
+ export type ResourceObjectIdentifier = string;
5
5
  export declare enum ResourceObjectAttributesLoadType {
6
6
  Replace = 0,
7
7
  Update = 1
@@ -9,20 +9,20 @@ export declare enum ResourceObjectAttributesLoadType {
9
9
  export interface IResourceObjectAttributes {
10
10
  LoadData(data: any, action: ResourceObjectAttributesLoadType): void;
11
11
  }
12
- export declare type ResourceObjectRelationshipLinkObject = {
12
+ export type ResourceObjectRelationshipLinkObject = {
13
13
  type: ResourceObjectType;
14
14
  id: ResourceObjectIdentifier;
15
15
  };
16
- export declare type ResourceObjectRelationshipLink = {
16
+ export type ResourceObjectRelationshipLink = {
17
17
  data: ResourceObjectRelationshipLinkObject;
18
18
  };
19
- export declare type ResourceObjectRelationshipsLinks = {
19
+ export type ResourceObjectRelationshipsLinks = {
20
20
  data: ResourceObjectRelationshipLinkObject[];
21
21
  };
22
- export declare type ResourceContainerIncludedResources = {
22
+ export type ResourceContainerIncludedResources = {
23
23
  [id: string]: IResourceObject;
24
24
  };
25
- export declare type ResourceContainerIncludedResourceTypes = {
25
+ export type ResourceContainerIncludedResourceTypes = {
26
26
  [type: string]: ResourceContainerIncludedResources;
27
27
  };
28
28
  export declare class ResourceObjectRelationship {
@@ -33,7 +33,7 @@ export declare class ResourceObjectRelationship {
33
33
  clear(): void;
34
34
  get target(): IResourceObject;
35
35
  }
36
- export declare type ResourceObjectRelationships = ResourceObjectRelationship[];
36
+ export type ResourceObjectRelationships = ResourceObjectRelationship[];
37
37
  export declare enum ResourceObjectRelationshipsLoadType {
38
38
  Replace = 0,
39
39
  Update = 1
@@ -41,7 +41,7 @@ export declare enum ResourceObjectRelationshipsLoadType {
41
41
  export interface IResourceObjectRelationships {
42
42
  LoadData(data: any, action: ResourceObjectRelationshipsLoadType): void;
43
43
  }
44
- export declare type ResourceObjectUri = string;
44
+ export type ResourceObjectUri = string;
45
45
  export declare class ResourceObjectAttributeBase {
46
46
  protected static LoadDateTime(value: string): Date;
47
47
  protected static LoadGeospatialPoint(geospatialPoint: GeospatialPoint, value: any): GeospatialPoint;
@@ -70,10 +70,10 @@ export interface IResourceObject {
70
70
  UpdateAttributes(value: any): void;
71
71
  UpdateRelationships(value: any): void;
72
72
  }
73
- export declare type ResourceFilterName = string;
74
- export declare type ResourceFilterValue = string;
75
- export declare type ResourceSortOption = string;
76
- export declare type ResourceIncludeOption = string;
73
+ export type ResourceFilterName = string;
74
+ export type ResourceFilterValue = string;
75
+ export type ResourceSortOption = string;
76
+ export type ResourceIncludeOption = string;
77
77
  export interface IResourceContainer {
78
78
  data: IResourceObject | IResourceObject[];
79
79
  includes: ResourceContainerIncludedResourceTypes;
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "description": "API Games SDK Core",
15
15
  "license": "MIT",
16
- "version": "22.2.5",
16
+ "version": "23.1.1",
17
17
  "main": "lib/index.js",
18
18
  "types": "lib/index.d.ts",
19
19
  "scripts": {
@@ -33,26 +33,26 @@
33
33
  "test:watch": "jest --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@apigames/json": "22.2.4",
37
- "@apigames/rest-client": "22.2.4",
36
+ "@apigames/json": "23.1.1",
37
+ "@apigames/rest-client": "23.1.1",
38
38
  "object-hash": "3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "date-and-time": "^2.4.1",
42
42
  "@types/date-and-time": "^0.13.0",
43
43
  "@types/jest": "28.1.8",
44
- "@types/node": "16.18.3",
45
- "@typescript-eslint/eslint-plugin": "5.42.0",
46
- "@typescript-eslint/parser": "5.42.0",
47
- "eslint": "8.26.0",
44
+ "@types/node": "16.18.11",
45
+ "@typescript-eslint/eslint-plugin": "5.47.1",
46
+ "@typescript-eslint/parser": "5.47.1",
47
+ "eslint": "8.30.0",
48
48
  "eslint-config-airbnb": "19.0.4",
49
49
  "eslint-plugin-import": "2.26.0",
50
50
  "eslint-plugin-jsx-a11y": "6.6.1",
51
- "eslint-plugin-react": "7.31.10",
51
+ "eslint-plugin-react": "7.31.11",
52
52
  "eslint-plugin-react-hooks": "4.6.0",
53
53
  "jest": "28.1.3",
54
54
  "ts-jest": "28.0.8",
55
- "typescript": "4.8.4"
55
+ "typescript": "4.9.4"
56
56
  },
57
57
  "eslintConfig": {},
58
58
  "repository": {