@cognite/sdk-core
Advanced tools
Comparing version 4.0.4 to 4.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.1.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-core@4.0.4...@cognite/sdk-core@4.1.0) (2022-01-10) | ||
### Features | ||
* **core:** add generic for id, path to aggregate ([#726](https://github.com/cognitedata/cognite-sdk-js/issues/726)) ([b927e24](https://github.com/cognitedata/cognite-sdk-js/commit/b927e24c044eb934bbc0fd74975b64660f8b599f)) | ||
## [4.0.4](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-core@4.0.3...@cognite/sdk-core@4.0.4) (2021-12-21) | ||
@@ -8,0 +19,0 @@ |
@@ -43,14 +43,14 @@ import { HttpResponse, HttpRequestOptions, HttpQueryParams } from './httpClient/basicHttpClient'; | ||
protected listEndpoint<QueryType extends FilterQuery>(endpointCaller: ListEndpoint<QueryType, ResponseType[]>, scope?: QueryType): CursorAndAsyncIterator<ResponseType>; | ||
protected retrieveEndpoint<RequestParams extends object>(ids: IdEither[], params?: RequestParams, path?: string): Promise<ResponseType[]>; | ||
protected retrieveEndpoint<RequestParams extends object, T = IdEither>(ids: T[], params?: RequestParams, path?: string): Promise<ResponseType[]>; | ||
protected updateEndpoint<ChangeType>(changes: ChangeType[], path?: string): Promise<ResponseType[]>; | ||
protected searchEndpoint<FilterType>(query: FilterType, path?: string, queryParams?: HttpQueryParams): Promise<ResponseType[]>; | ||
protected deleteEndpoint<RequestParams extends object, T = IdEither>(ids: T[], params?: RequestParams, path?: string): Promise<{}>; | ||
protected aggregateEndpoint<QueryType, AggregateResponse>(query: QueryType): Promise<AggregateResponse[]>; | ||
protected aggregateEndpoint<QueryType, AggregateResponse>(query: QueryType, path?: string): Promise<AggregateResponse[]>; | ||
protected callListEndpointWithGet: <QueryType extends FilterQuery>(scope?: QueryType | undefined) => Promise<HttpResponse<CursorResponse<ResponseType[]>>>; | ||
protected callListEndpointWithPost: <QueryType extends FilterQuery>(scope?: QueryType | undefined) => Promise<HttpResponse<CursorResponse<ResponseType[]>>>; | ||
protected callRetrieveEndpoint<RequestParams extends object>(items: IdEither[], path?: string, params?: RequestParams): Promise<HttpResponse<ItemsWrapper<ResponseType[]>>[]>; | ||
protected callRetrieveEndpoint<RequestParams extends object, T = IdEither>(items: T[], path?: string, params?: RequestParams): Promise<HttpResponse<ItemsWrapper<ResponseType[]>>[]>; | ||
protected callUpdateEndpoint<ChangeType>(changes: ChangeType[], path?: string): Promise<HttpResponse<ItemsWrapper<ResponseType[]>>[]>; | ||
protected callSearchEndpoint<QueryType, Response>(query: QueryType, path?: string, queryParams?: HttpQueryParams): Promise<HttpResponse<Response>>; | ||
protected callDeleteEndpoint<ParamsType extends object, T = IdEither>(ids: T[], params?: ParamsType, path?: string): Promise<HttpResponse<ItemsWrapper<ResponseType[]>>[]>; | ||
protected callAggregateEndpoint<QueryType, AggregateResponse>(query: QueryType): Promise<HttpResponse<ItemsWrapper<AggregateResponse[]>>>; | ||
protected callAggregateEndpoint<QueryType, AggregateResponse>(query: QueryType, path?: string): Promise<HttpResponse<ItemsWrapper<AggregateResponse[]>>>; | ||
protected addToMapAndReturn<T, R>(response: T, metadata: HttpResponse<R>): T; | ||
@@ -57,0 +57,0 @@ protected callEndpointWithMergeAndTransform<RequestType>(query: RequestType, requester: (request: RequestType) => Promise<HttpResponse<ItemsWrapper<ResponseType[]>>[]>, preRequestModifier?: (items: RequestType) => RequestType, postRequestModifier?: (items: ResponseType[]) => ResponseType[]): Promise<ResponseType[]>; |
@@ -9,3 +9,3 @@ { | ||
"types": "dist/src/index.d.js", | ||
"version": "4.0.4", | ||
"version": "4.1.0", | ||
"scripts": { | ||
@@ -41,3 +41,3 @@ "clean": "rm -rf dist/ docs/", | ||
}, | ||
"gitHead": "b61860939cef03ce1b409eae65178dab82ad0d83" | ||
"gitHead": "3e5517915cb36724ae47e544b649a88c19037391" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223041
3186