@commercelayer/sdk 6.0.0-beta.11 → 6.0.0-beta.13

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/lib/index.d.mts CHANGED
@@ -1,7 +1,5 @@
1
- import { DocWithData } from 'jsonapi-typescript';
2
-
3
1
  type Fetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
4
- type FetchResponse = DocWithData;
2
+ type FetchResponse = any;
5
3
  type FetchRequestOptions = RequestInit;
6
4
  declare class FetchError extends Error {
7
5
  #private;
@@ -106,7 +104,7 @@ interface QueryParamsList<R extends Resource = Resource> extends QueryParamsRetr
106
104
  pageNumber?: QueryPageNumber;
107
105
  pageSize?: QueryPageSize;
108
106
  }
109
- type QueryParams<R extends Resource> = QueryParamsRetrieve<R> | QueryParamsList<R>;
107
+ type QueryParams<R extends Resource = Resource> = QueryParamsRetrieve<R> | QueryParamsList<R>;
110
108
 
111
109
  type ResourceNull = {
112
110
  id: null;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import { DocWithData } from 'jsonapi-typescript';
2
-
3
1
  type Fetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
4
- type FetchResponse = DocWithData;
2
+ type FetchResponse = any;
5
3
  type FetchRequestOptions = RequestInit;
6
4
  declare class FetchError extends Error {
7
5
  #private;
@@ -106,7 +104,7 @@ interface QueryParamsList<R extends Resource = Resource> extends QueryParamsRetr
106
104
  pageNumber?: QueryPageNumber;
107
105
  pageSize?: QueryPageSize;
108
106
  }
109
- type QueryParams<R extends Resource> = QueryParamsRetrieve<R> | QueryParamsList<R>;
107
+ type QueryParams<R extends Resource = Resource> = QueryParamsRetrieve<R> | QueryParamsList<R>;
110
108
 
111
109
  type ResourceNull = {
112
110
  id: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/sdk",
3
- "version": "6.0.0-beta.11",
3
+ "version": "6.0.0-beta.13",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "lib/index.mjs",
@@ -40,7 +40,7 @@
40
40
  "@semantic-release/git": "^10.0.1",
41
41
  "@types/debug": "^4.1.12",
42
42
  "@types/jest": "^29.5.12",
43
- "@types/node": "^20.12.5",
43
+ "@types/node": "^20.12.6",
44
44
  "dotenv": "^16.4.5",
45
45
  "eslint": "^8.57.0",
46
46
  "jest": "^29.7.0",