@equinor/fusion-framework-module-services
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.5.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-services@0.4.0...@equinor/fusion-framework-module-services@0.5.0) (2022-11-01) | ||
### Features | ||
- :sparkles: delete bookmark ([df70d9f](https://github.com/equinor/fusion-framework/commit/df70d9f6ed369cfc9e682a268b7175ddf8b3d122)) | ||
## 0.4.0 (2022-11-01) | ||
@@ -8,0 +14,0 @@ |
@@ -0,1 +1,2 @@ | ||
import deleteBookmark from './delete/client'; | ||
import getBookmark from './get/client'; | ||
@@ -16,4 +17,8 @@ import postBookmark from './post/client'; | ||
} | ||
delete(version, ...args) { | ||
const fn = deleteBookmark(this._client, version, this._method); | ||
return fn(...args); | ||
} | ||
} | ||
export default BookmarksApiClient; | ||
//# sourceMappingURL=client.js.map |
import { IHttpClient } from '@equinor/fusion-framework-module-http'; | ||
import { ClientMethod } from '@equinor/fusion-framework-module-services/context'; | ||
import { DeleteBookmarkResult, DeleteBookmarksFn, DeleteBookmarksResult } from './delete/types'; | ||
import { ApiVersions, GetBookmarkResult, GetBookmarksFn, GetBookmarksResult } from './get/types'; | ||
@@ -11,3 +12,4 @@ import { PostBookmarkResult, PostBookmarkFn, PostBookmarksResult } from './post/types'; | ||
post<TVersion extends ApiVersions, TResult = PostBookmarkResult<TVersion, TPayload>>(version: TVersion, ...args: Parameters<PostBookmarkFn<TVersion, TMethod, TClient, TPayload, TResult>>): PostBookmarksResult<TVersion, TMethod, TPayload, TResult>; | ||
delete<TVersion extends ApiVersions, TResult = DeleteBookmarkResult<TVersion>>(version: TVersion, ...args: Parameters<DeleteBookmarksFn<TVersion, TMethod, TClient, TResult>>): DeleteBookmarksResult<TVersion, TMethod, TResult>; | ||
} | ||
export default BookmarksApiClient; |
import { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client'; | ||
import { ClientMethod } from '../..'; | ||
import { GetBookmarkArgs, GetBookmarkResult, GetBookmarksResult } from './types'; | ||
export declare const getBookmark: <TVersion extends "v1" = "v1", TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TClient extends IHttpClient<import("@equinor/fusion-framework-module-services/../../module-http/src/lib/client").FetchRequest, Response> = IHttpClient<import("@equinor/fusion-framework-module-services/../../module-http/src/lib/client").FetchRequest, Response>>(client: TClient, version: TVersion, method?: TMethod) => <TResult = GetBookmarkResult<TVersion, unknown>>(args: GetBookmarkArgs<TVersion>, init?: ClientRequestInit<TClient, TResult> | undefined) => GetBookmarksResult<TVersion, TMethod, unknown, TResult>; | ||
export declare const getBookmark: <TVersion extends "v1" = "v1", TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TClient extends IHttpClient<import("@equinor/fusion-framework-module-http/client").FetchRequest, Response> = IHttpClient<import("@equinor/fusion-framework-module-http/client").FetchRequest, Response>>(client: TClient, version: TVersion, method?: TMethod) => <TResult = GetBookmarkResult<TVersion, unknown>>(args: GetBookmarkArgs<TVersion>, init?: ClientRequestInit<TClient, TResult> | undefined) => GetBookmarksResult<TVersion, TMethod, unknown, TResult>; | ||
export default getBookmark; |
{ | ||
"name": "@equinor/fusion-framework-module-services", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "", | ||
@@ -52,4 +52,4 @@ "sideEffects": false, | ||
"@equinor/fusion-framework-module": "^1.2.6", | ||
"@equinor/fusion-framework-module-http": "^2.0.14", | ||
"@equinor/fusion-framework-module-service-discovery": "^3.0.6" | ||
"@equinor/fusion-framework-module-http": "^2.1.0", | ||
"@equinor/fusion-framework-module-service-discovery": "^3.0.7" | ||
}, | ||
@@ -60,3 +60,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "765972107b2f477c97ca12bad11f15b3d52d1fdb" | ||
"gitHead": "b0bada58a93067d4f6adfa7f3e47c864c22c5bc9" | ||
} |
import { IHttpClient } from '@equinor/fusion-framework-module-http'; | ||
import { ClientMethod } from '@equinor/fusion-framework-module-services/context'; | ||
import deleteBookmark from './delete/client'; | ||
import { DeleteBookmarkResult, DeleteBookmarksFn, DeleteBookmarksResult } from './delete/types'; | ||
import getBookmark from './get/client'; | ||
@@ -39,4 +41,12 @@ import { ApiVersions, GetBookmarkResult, GetBookmarksFn, GetBookmarksResult } from './get/types'; | ||
} | ||
public delete<TVersion extends ApiVersions, TResult = DeleteBookmarkResult<TVersion>>( | ||
version: TVersion, | ||
...args: Parameters<DeleteBookmarksFn<TVersion, TMethod, TClient, TResult>> | ||
): DeleteBookmarksResult<TVersion, TMethod, TResult> { | ||
const fn = deleteBookmark(this._client, version, this._method); | ||
return fn<TResult>(...args); | ||
} | ||
} | ||
export default BookmarksApiClient; |
Sorry, the diff of this file is not supported yet
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
181649
169
1766