@equinor/fusion-framework-module-services 4.1.5 → 5.0.0
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/CHANGELOG.md +17 -0
- package/dist/esm/bookmarks/api-version.js +6 -0
- package/dist/esm/bookmarks/api-version.js.map +1 -0
- package/dist/esm/bookmarks/client.js +148 -47
- package/dist/esm/bookmarks/client.js.map +1 -1
- package/dist/esm/bookmarks/endpoints/bookmark-apply.get.js +49 -0
- package/dist/esm/bookmarks/endpoints/bookmark-apply.get.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/bookmark.delete.js +48 -0
- package/dist/esm/bookmarks/endpoints/bookmark.delete.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/bookmark.get.js +53 -0
- package/dist/esm/bookmarks/endpoints/bookmark.get.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/bookmark.patch.js +68 -0
- package/dist/esm/bookmarks/endpoints/bookmark.patch.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/bookmark.post.js +57 -0
- package/dist/esm/bookmarks/endpoints/bookmark.post.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.delete.js +48 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.delete.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.head.js +49 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.head.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.post.js +49 -0
- package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.post.js.map +1 -0
- package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js +75 -0
- package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js.map +1 -0
- package/dist/esm/bookmarks/index.js +1 -2
- package/dist/esm/bookmarks/index.js.map +1 -1
- package/dist/esm/bookmarks/schemas.js +76 -0
- package/dist/esm/bookmarks/schemas.js.map +1 -0
- package/dist/esm/bookmarks/selectors.js +58 -0
- package/dist/esm/bookmarks/selectors.js.map +1 -0
- package/dist/esm/utils.js +35 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bookmarks/api-version.d.ts +4 -0
- package/dist/types/bookmarks/client.d.ts +132 -34
- package/dist/types/bookmarks/endpoints/bookmark-apply.get.d.ts +40 -0
- package/dist/types/bookmarks/endpoints/bookmark.delete.d.ts +31 -0
- package/dist/types/bookmarks/endpoints/bookmark.get.d.ts +351 -0
- package/dist/types/bookmarks/endpoints/bookmark.patch.d.ts +254 -0
- package/dist/types/bookmarks/endpoints/bookmark.post.d.ts +231 -0
- package/dist/types/bookmarks/endpoints/user-bookmark-favourite.delete.d.ts +31 -0
- package/dist/types/bookmarks/endpoints/user-bookmark-favourite.head.d.ts +31 -0
- package/dist/types/bookmarks/endpoints/user-bookmark-favourite.post.d.ts +31 -0
- package/dist/types/bookmarks/endpoints/user-bookmarks.get.d.ts +235 -0
- package/dist/types/bookmarks/index.d.ts +3 -2
- package/dist/types/bookmarks/schemas.d.ts +383 -0
- package/dist/types/bookmarks/selectors.d.ts +17 -0
- package/dist/types/bookmarks/types.d.ts +5 -1
- package/dist/types/provider.d.ts +2 -2
- package/dist/types/types.d.ts +74 -11
- package/dist/types/utils.d.ts +18 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -7
- package/src/bookmarks/README.md +90 -0
- package/src/bookmarks/api-version.ts +4 -0
- package/src/bookmarks/client.ts +257 -77
- package/src/bookmarks/endpoints/bookmark-apply.get.ts +114 -0
- package/src/bookmarks/endpoints/bookmark.delete.ts +113 -0
- package/src/bookmarks/endpoints/bookmark.get.ts +118 -0
- package/src/bookmarks/endpoints/bookmark.patch.ts +135 -0
- package/src/bookmarks/endpoints/bookmark.post.ts +124 -0
- package/src/bookmarks/endpoints/user-bookmark-favourite.delete.ts +113 -0
- package/src/bookmarks/endpoints/user-bookmark-favourite.head.ts +114 -0
- package/src/bookmarks/endpoints/user-bookmark-favourite.post.ts +114 -0
- package/src/bookmarks/endpoints/user-bookmarks.get.ts +142 -0
- package/src/bookmarks/index.ts +3 -3
- package/src/bookmarks/schemas.ts +81 -0
- package/src/bookmarks/selectors.ts +49 -0
- package/src/bookmarks/types.ts +16 -1
- package/src/provider.ts +4 -4
- package/src/types.ts +92 -11
- package/src/utils.ts +51 -0
- package/src/version.ts +1 -1
- package/dist/esm/bookmarks/api-models.js +0 -2
- package/dist/esm/bookmarks/api-models.js.map +0 -1
- package/dist/esm/bookmarks/delete/client.js +0 -10
- package/dist/esm/bookmarks/delete/client.js.map +0 -1
- package/dist/esm/bookmarks/delete/generate-endpoint.js +0 -20
- package/dist/esm/bookmarks/delete/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/delete/generate-parameters.js +0 -8
- package/dist/esm/bookmarks/delete/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/delete/index.js +0 -5
- package/dist/esm/bookmarks/delete/index.js.map +0 -1
- package/dist/esm/bookmarks/delete/types-v1.js +0 -2
- package/dist/esm/bookmarks/delete/types-v1.js.map +0 -1
- package/dist/esm/bookmarks/delete/types.js +0 -2
- package/dist/esm/bookmarks/delete/types.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/client.js +0 -10
- package/dist/esm/bookmarks/favorites/delete/client.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js +0 -15
- package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/generate-parameters.js +0 -8
- package/dist/esm/bookmarks/favorites/delete/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/index.js +0 -5
- package/dist/esm/bookmarks/favorites/delete/index.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/types-v1.js +0 -2
- package/dist/esm/bookmarks/favorites/delete/types-v1.js.map +0 -1
- package/dist/esm/bookmarks/favorites/delete/types.js +0 -2
- package/dist/esm/bookmarks/favorites/delete/types.js.map +0 -1
- package/dist/esm/bookmarks/favorites/head/client.js +0 -10
- package/dist/esm/bookmarks/favorites/head/client.js.map +0 -1
- package/dist/esm/bookmarks/favorites/head/generate-endpoint.js +0 -15
- package/dist/esm/bookmarks/favorites/head/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/favorites/head/generate-parameters.js +0 -10
- package/dist/esm/bookmarks/favorites/head/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/favorites/head/index.js +0 -5
- package/dist/esm/bookmarks/favorites/head/index.js.map +0 -1
- package/dist/esm/bookmarks/favorites/head/types.js +0 -2
- package/dist/esm/bookmarks/favorites/head/types.js.map +0 -1
- package/dist/esm/bookmarks/favorites/post/client.js +0 -10
- package/dist/esm/bookmarks/favorites/post/client.js.map +0 -1
- package/dist/esm/bookmarks/favorites/post/generate-endpoint.js +0 -14
- package/dist/esm/bookmarks/favorites/post/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/favorites/post/generate-parameters.js +0 -10
- package/dist/esm/bookmarks/favorites/post/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/favorites/post/index.js +0 -5
- package/dist/esm/bookmarks/favorites/post/index.js.map +0 -1
- package/dist/esm/bookmarks/favorites/post/types.js +0 -2
- package/dist/esm/bookmarks/favorites/post/types.js.map +0 -1
- package/dist/esm/bookmarks/get/client.js +0 -10
- package/dist/esm/bookmarks/get/client.js.map +0 -1
- package/dist/esm/bookmarks/get/generate-endpoint.js +0 -20
- package/dist/esm/bookmarks/get/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/get/generate-parameters.js +0 -7
- package/dist/esm/bookmarks/get/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/get/index.js +0 -5
- package/dist/esm/bookmarks/get/index.js.map +0 -1
- package/dist/esm/bookmarks/get/types.js +0 -2
- package/dist/esm/bookmarks/get/types.js.map +0 -1
- package/dist/esm/bookmarks/getAll/client.js +0 -10
- package/dist/esm/bookmarks/getAll/client.js.map +0 -1
- package/dist/esm/bookmarks/getAll/generate-endpoint.js +0 -14
- package/dist/esm/bookmarks/getAll/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/getAll/generate-parameters.js +0 -7
- package/dist/esm/bookmarks/getAll/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/getAll/index.js +0 -5
- package/dist/esm/bookmarks/getAll/index.js.map +0 -1
- package/dist/esm/bookmarks/getAll/types.js +0 -2
- package/dist/esm/bookmarks/getAll/types.js.map +0 -1
- package/dist/esm/bookmarks/patch/client.js +0 -10
- package/dist/esm/bookmarks/patch/client.js.map +0 -1
- package/dist/esm/bookmarks/patch/generate-endpoint.js +0 -14
- package/dist/esm/bookmarks/patch/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/patch/generate-parameters.js +0 -10
- package/dist/esm/bookmarks/patch/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/patch/index.js +0 -5
- package/dist/esm/bookmarks/patch/index.js.map +0 -1
- package/dist/esm/bookmarks/patch/types.js +0 -2
- package/dist/esm/bookmarks/patch/types.js.map +0 -1
- package/dist/esm/bookmarks/post/client.js +0 -10
- package/dist/esm/bookmarks/post/client.js.map +0 -1
- package/dist/esm/bookmarks/post/generate-endpoint.js +0 -14
- package/dist/esm/bookmarks/post/generate-endpoint.js.map +0 -1
- package/dist/esm/bookmarks/post/generate-parameters.js +0 -10
- package/dist/esm/bookmarks/post/generate-parameters.js.map +0 -1
- package/dist/esm/bookmarks/post/index.js +0 -5
- package/dist/esm/bookmarks/post/index.js.map +0 -1
- package/dist/esm/bookmarks/post/types.js +0 -2
- package/dist/esm/bookmarks/post/types.js.map +0 -1
- package/dist/types/bookmarks/api-models.d.ts +0 -42
- package/dist/types/bookmarks/delete/client.d.ts +0 -11
- package/dist/types/bookmarks/delete/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/delete/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/delete/index.d.ts +0 -4
- package/dist/types/bookmarks/delete/types-v1.d.ts +0 -4
- package/dist/types/bookmarks/delete/types.d.ts +0 -18
- package/dist/types/bookmarks/favorites/delete/client.d.ts +0 -11
- package/dist/types/bookmarks/favorites/delete/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/favorites/delete/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/favorites/delete/index.d.ts +0 -4
- package/dist/types/bookmarks/favorites/delete/types-v1.d.ts +0 -4
- package/dist/types/bookmarks/favorites/delete/types.d.ts +0 -16
- package/dist/types/bookmarks/favorites/head/client.d.ts +0 -11
- package/dist/types/bookmarks/favorites/head/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/favorites/head/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/favorites/head/index.d.ts +0 -4
- package/dist/types/bookmarks/favorites/head/types.d.ts +0 -17
- package/dist/types/bookmarks/favorites/post/client.d.ts +0 -11
- package/dist/types/bookmarks/favorites/post/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/favorites/post/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/favorites/post/index.d.ts +0 -4
- package/dist/types/bookmarks/favorites/post/types.d.ts +0 -17
- package/dist/types/bookmarks/get/client.d.ts +0 -11
- package/dist/types/bookmarks/get/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/get/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/get/index.d.ts +0 -4
- package/dist/types/bookmarks/get/types.d.ts +0 -21
- package/dist/types/bookmarks/getAll/client.d.ts +0 -11
- package/dist/types/bookmarks/getAll/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/getAll/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/getAll/index.d.ts +0 -4
- package/dist/types/bookmarks/getAll/types.d.ts +0 -11
- package/dist/types/bookmarks/patch/client.d.ts +0 -11
- package/dist/types/bookmarks/patch/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/patch/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/patch/index.d.ts +0 -4
- package/dist/types/bookmarks/patch/types.d.ts +0 -21
- package/dist/types/bookmarks/post/client.d.ts +0 -11
- package/dist/types/bookmarks/post/generate-endpoint.d.ts +0 -5
- package/dist/types/bookmarks/post/generate-parameters.d.ts +0 -5
- package/dist/types/bookmarks/post/index.d.ts +0 -4
- package/dist/types/bookmarks/post/types.d.ts +0 -34
- package/src/bookmarks/api-models.ts +0 -46
- package/src/bookmarks/delete/client.ts +0 -35
- package/src/bookmarks/delete/generate-endpoint.ts +0 -24
- package/src/bookmarks/delete/generate-parameters.ts +0 -25
- package/src/bookmarks/delete/index.ts +0 -6
- package/src/bookmarks/delete/types-v1.ts +0 -2
- package/src/bookmarks/delete/types.ts +0 -35
- package/src/bookmarks/favorites/delete/client.ts +0 -35
- package/src/bookmarks/favorites/delete/generate-endpoint.ts +0 -19
- package/src/bookmarks/favorites/delete/generate-parameters.ts +0 -25
- package/src/bookmarks/favorites/delete/index.ts +0 -6
- package/src/bookmarks/favorites/delete/types-v1.ts +0 -2
- package/src/bookmarks/favorites/delete/types.ts +0 -33
- package/src/bookmarks/favorites/head/client.ts +0 -35
- package/src/bookmarks/favorites/head/generate-endpoint.ts +0 -19
- package/src/bookmarks/favorites/head/generate-parameters.ts +0 -28
- package/src/bookmarks/favorites/head/index.ts +0 -6
- package/src/bookmarks/favorites/head/types.ts +0 -35
- package/src/bookmarks/favorites/post/client.ts +0 -35
- package/src/bookmarks/favorites/post/generate-endpoint.ts +0 -18
- package/src/bookmarks/favorites/post/generate-parameters.ts +0 -28
- package/src/bookmarks/favorites/post/index.ts +0 -6
- package/src/bookmarks/favorites/post/types.ts +0 -35
- package/src/bookmarks/get/client.ts +0 -30
- package/src/bookmarks/get/generate-endpoint.ts +0 -24
- package/src/bookmarks/get/generate-parameters.ts +0 -18
- package/src/bookmarks/get/index.ts +0 -6
- package/src/bookmarks/get/types.ts +0 -39
- package/src/bookmarks/getAll/client.ts +0 -30
- package/src/bookmarks/getAll/generate-endpoint.ts +0 -15
- package/src/bookmarks/getAll/generate-parameters.ts +0 -18
- package/src/bookmarks/getAll/index.ts +0 -6
- package/src/bookmarks/getAll/types.ts +0 -21
- package/src/bookmarks/patch/client.ts +0 -30
- package/src/bookmarks/patch/generate-endpoint.ts +0 -18
- package/src/bookmarks/patch/generate-parameters.ts +0 -28
- package/src/bookmarks/patch/index.ts +0 -6
- package/src/bookmarks/patch/types.ts +0 -45
- package/src/bookmarks/post/client.ts +0 -30
- package/src/bookmarks/post/generate-endpoint.ts +0 -18
- package/src/bookmarks/post/generate-parameters.ts +0 -28
- package/src/bookmarks/post/index.ts +0 -6
- package/src/bookmarks/post/types.ts +0 -58
|
@@ -1,58 +1,156 @@
|
|
|
1
|
-
import { IHttpClient } from '@equinor/fusion-framework-module-http';
|
|
2
|
-
import { ClientMethod } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
|
|
2
|
+
import type { ClientMethod } from '../types';
|
|
3
|
+
import { GetBookmarksArgs, GetBookmarksResponse, GetBookmarksResult, GetBookmarksVersion } from './endpoints/user-bookmarks.get';
|
|
4
|
+
import { GetBookmarkArg, GetBookmarkResponse, GetBookmarkResult, GetBookmarkVersion } from './endpoints/bookmark.get';
|
|
5
|
+
import { CreateBookmarkArg, CreateBookmarkResponse, CreateBookmarkVersion, CreateBookmarksResult } from './endpoints/bookmark.post';
|
|
6
|
+
import { type PatchBookmarkArg, type PatchBookmarkResponse, type PatchBookmarkVersion, type PatchBookmarksResult } from './endpoints/bookmark.patch';
|
|
7
|
+
import { BookmarkApplyArgs, BookmarkApplyResponse, BookmarkApplyResult, BookmarkApplyVersion } from './endpoints/bookmark-apply.get';
|
|
8
|
+
import { AddBookmarkFavouriteArgs, AddBookmarkFavouriteResponse, AddBookmarkFavouriteResult, AddBookmarkFavouriteVersion } from './endpoints/user-bookmark-favourite.post';
|
|
9
|
+
import { DeleteBookmarkArg, DeleteBookmarkResponse, DeleteBookmarkVersion } from './endpoints/bookmark.delete';
|
|
10
|
+
import { IsFavoriteBookmarkArgs, IsFavoriteBookmarkResponse, IsFavoriteBookmarkResult, IsFavoriteBookmarkVersion } from './endpoints/user-bookmark-favourite.head';
|
|
11
|
+
import { RemoveBookmarkFavouriteArgs, RemoveBookmarkFavouriteResponse, RemoveBookmarkFavouriteResult, RemoveBookmarkFavouriteVersion } from './endpoints/user-bookmark-favourite.delete';
|
|
12
|
+
/**
|
|
13
|
+
* Provides a client interface for interacting with the bookmarks API.
|
|
14
|
+
* This class abstracts the details of making API requests and handling responses.
|
|
15
|
+
* It provides methods for fetching, creating, updating, and deleting bookmarks,
|
|
16
|
+
* as well as managing bookmark favorites.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import { BookmarksApiClient } from '@equinor/fusion';
|
|
21
|
+
* import { HttpClient } from '@equinor/fusion-framework-module-http';
|
|
22
|
+
*
|
|
23
|
+
* const httpClient = new HttpClient({ baseUri: 'https://my-bookmarks-api.com/' });
|
|
24
|
+
*
|
|
25
|
+
* // create a bookmarks API client using a custom HTTP client
|
|
26
|
+
* const client = new BookmarksApiClient(httpClient, 'json');
|
|
27
|
+
*
|
|
28
|
+
* // fetch a bookmark by its ID
|
|
29
|
+
* const bookmark = await client.getBookmark('my-bookmark-id');
|
|
30
|
+
*
|
|
31
|
+
* // fetch all bookmarks for the current user
|
|
32
|
+
* const bookmarks = await client.query();
|
|
33
|
+
*
|
|
34
|
+
* // update a bookmark by its ID
|
|
35
|
+
* await client.patch({
|
|
36
|
+
* bookmarkId: 'my-bookmark-id',
|
|
37
|
+
* data: {
|
|
38
|
+
* name: 'new-name'
|
|
39
|
+
* payload: { foo: 'bar' }
|
|
40
|
+
* }
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // delete a bookmark by its ID
|
|
44
|
+
* await client.deleteBookmark('my-bookmark-id');
|
|
45
|
+
*
|
|
46
|
+
* // add or remove a bookmark to the current user's favorites
|
|
47
|
+
* await client.addFavorite({ bookmarkId:'my-bookmark-id' });
|
|
48
|
+
* await client.removeFavorite({ bookmarkId:'my-bookmark-id' });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @template TMethod - The client method to use for the request, defaults to 'json'.
|
|
52
|
+
* @template TClient - The HTTP client to use for executing the request.
|
|
53
|
+
*/
|
|
54
|
+
export declare class BookmarksApiClient<TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TClient extends IHttpClient = IHttpClient> {
|
|
12
55
|
protected _client: TClient;
|
|
13
56
|
protected _method: TMethod;
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a new instance of the BookmarksClient class.
|
|
59
|
+
*
|
|
60
|
+
* @param _client - The client instance to use for making API requests.
|
|
61
|
+
* @param _method - The client method to use for API requests.
|
|
62
|
+
*/
|
|
14
63
|
constructor(_client: TClient, _method: TMethod);
|
|
15
64
|
/**
|
|
16
|
-
* Fetch
|
|
17
|
-
*
|
|
65
|
+
* Fetch a single bookmark
|
|
66
|
+
*
|
|
67
|
+
* @template TVersion - The version of the API to call
|
|
68
|
+
* @template TResponse - The type of the result of the `getBookmark` function
|
|
69
|
+
* @param version - The API version to use
|
|
70
|
+
* @param args - Additional parameters to pass to the `getBookmark` function
|
|
71
|
+
* @returns The result of the `getBookmark` function
|
|
18
72
|
*/
|
|
19
|
-
get<TVersion extends
|
|
73
|
+
get<TVersion extends GetBookmarkVersion, TResponse = GetBookmarkResponse<TVersion>>(version: TVersion, args: GetBookmarkArg<TVersion>, init?: ClientRequestInit<TClient, TResponse>): GetBookmarkResult<TVersion, TMethod, TResponse>;
|
|
20
74
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
75
|
+
* Retrieves the payload for a bookmark using the specified API version.
|
|
76
|
+
*
|
|
77
|
+
* @template TVersion - The version of the API to call.
|
|
78
|
+
* @template TResult - The type of the result of the `getBookmarkPayload` function.
|
|
79
|
+
* @param version - The API version to use for the bookmark payload.
|
|
80
|
+
* @param args - The arguments to pass to the `getBookmarkPayload` function.
|
|
81
|
+
* @returns The result of the `getBookmarkPayload` function.
|
|
23
82
|
*/
|
|
24
|
-
|
|
83
|
+
getPayload<TVersion extends BookmarkApplyVersion, TResponse = BookmarkApplyResponse<TVersion>>(version: TVersion, args: BookmarkApplyArgs<TVersion>, init?: ClientRequestInit<TClient, TResponse>): BookmarkApplyResult<TVersion, TMethod, TResponse>;
|
|
25
84
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
85
|
+
* Query a person's bookmarks.
|
|
86
|
+
*
|
|
87
|
+
* @template TVersion - The version of the API to call.
|
|
88
|
+
* @template TResponse - The type of the result of the `getBookmarks` function.
|
|
89
|
+
* @param version - The API version to use.
|
|
90
|
+
* @param args - Additional arguments to pass to the `getBookmarks` function.
|
|
91
|
+
* @param init - Optional request initialization options.
|
|
92
|
+
* @returns The result of calling the `getBookmarks` function.
|
|
28
93
|
*/
|
|
29
|
-
|
|
94
|
+
query<TVersion extends GetBookmarksVersion, TResponse = GetBookmarksResponse<TVersion>>(version: TVersion, args?: GetBookmarksArgs<TVersion>, init?: ClientRequestInit<TClient, TResponse>): GetBookmarksResult<TVersion, TMethod, TResponse>;
|
|
30
95
|
/**
|
|
31
96
|
* Update a bookmark
|
|
32
|
-
*
|
|
97
|
+
*
|
|
98
|
+
* @template TVersion - The version of the API to call
|
|
99
|
+
* @template TResponse - The type of the result of the `patchBookmark` function
|
|
100
|
+
* @param version - The API version to use
|
|
101
|
+
* @param args - The parameters to pass to the `patchBookmark` function
|
|
102
|
+
* @returns The result of the `patchBookmark` function
|
|
33
103
|
*/
|
|
34
|
-
patch<TVersion extends
|
|
104
|
+
patch<TVersion extends PatchBookmarkVersion, TResponse = PatchBookmarkResponse<TVersion>>(version: TVersion, args: PatchBookmarkArg<TVersion>, init?: ClientRequestInit<TClient, TResponse>): PatchBookmarksResult<TVersion, TMethod, TResponse>;
|
|
35
105
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
106
|
+
* Create a new bookmark
|
|
107
|
+
*
|
|
108
|
+
* @template TVersion - The version of the API to call
|
|
109
|
+
* @template TResult - The type of the result of the `postBookmark` function
|
|
110
|
+
* @param version - The API version to use
|
|
111
|
+
* @param request - The parameters to pass to the `postBookmark` function
|
|
112
|
+
* @returns The result of creating the bookmark
|
|
38
113
|
*/
|
|
39
|
-
|
|
114
|
+
create<TVersion extends CreateBookmarkVersion, TResponse = CreateBookmarkResponse<TVersion>>(version: TVersion, request: CreateBookmarkArg<TVersion>, init?: ClientRequestInit<TClient, TResponse>): CreateBookmarksResult<TVersion, TMethod, TResponse>;
|
|
40
115
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
116
|
+
* Deletes a bookmark.
|
|
117
|
+
*
|
|
118
|
+
* @template TVersion - The version of the API to call.
|
|
119
|
+
* @template TResponse - The type of the result of the `deleteBookmark` function.
|
|
120
|
+
* @param version - The version of the delete bookmark API to use.
|
|
121
|
+
* @param args - The arguments to pass to the `deleteBookmark` function.
|
|
122
|
+
* @returns The result of the delete bookmark operation.
|
|
123
|
+
*/
|
|
124
|
+
delete<TVersion extends DeleteBookmarkVersion, TResponse = DeleteBookmarkResponse<TVersion>>(version: TVersion, args: DeleteBookmarkArg<TVersion>, init?: ClientRequestInit<TClient, TResponse>): GetBookmarkResult<TVersion, TMethod, TResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Check if a bookmark is a favorite.
|
|
127
|
+
*
|
|
128
|
+
* @template TVersion - The version of the API to call.
|
|
129
|
+
* @template TResult - The type of the result of the `verifyBookmarkFavorite` function.
|
|
130
|
+
* @param version - The API version to use.
|
|
131
|
+
* @param args - The arguments to pass to the `HeadBookmarkFavoriteFn` function.
|
|
132
|
+
* @returns The result of the `HeadBookmarksFavoriteResult` function.
|
|
43
133
|
*/
|
|
44
|
-
|
|
134
|
+
isFavorite<TVersion extends IsFavoriteBookmarkVersion, TResponse = IsFavoriteBookmarkResponse<TVersion>>(version: TVersion, args: IsFavoriteBookmarkArgs<TVersion>, init?: ClientRequestInit<TClient, TResponse>): IsFavoriteBookmarkResult<TVersion, TMethod, TResponse>;
|
|
45
135
|
/**
|
|
136
|
+
* Add the provided bookmark to the user's favorites.
|
|
46
137
|
*
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
138
|
+
* @template TVersion - The version of the API to call.
|
|
139
|
+
* @template TResponse - The type of the result of the `addBookmarkFavorite` function.
|
|
140
|
+
* @param version - The API version to use.
|
|
141
|
+
* @param args - The parameters to pass to the `PostBookmarkFavoriteFn` function.
|
|
142
|
+
* @returns The result of adding the bookmark to the user's favorites.
|
|
49
143
|
*/
|
|
50
|
-
|
|
144
|
+
addFavourite<TVersion extends AddBookmarkFavouriteVersion, TResponse = AddBookmarkFavouriteResponse<TVersion>>(version: TVersion, args: AddBookmarkFavouriteArgs<TVersion>, init?: ClientRequestInit<TClient, TResponse>): AddBookmarkFavouriteResult<TVersion, TMethod, TResponse>;
|
|
51
145
|
/**
|
|
146
|
+
* Removes the provided bookmark from the user's collection of bookmarks.
|
|
52
147
|
*
|
|
53
|
-
*
|
|
54
|
-
* @
|
|
148
|
+
* @template TVersion - The version of the API to call.
|
|
149
|
+
* @template TResult - The type of the result of the `deleteBookmarkFavorite` function.
|
|
150
|
+
* @param version - The API version to use for the request.
|
|
151
|
+
* @param request - The parameters to pass to the `deleteBookmarkFavorite` function.
|
|
152
|
+
* @returns The result of the `deleteBookmarkFavorite` function.
|
|
55
153
|
*/
|
|
56
|
-
|
|
154
|
+
removeFavourite<TVersion extends RemoveBookmarkFavouriteVersion, TResponse = RemoveBookmarkFavouriteResponse<TVersion>>(version: TVersion, request: RemoveBookmarkFavouriteArgs<TVersion>, init?: ClientRequestInit<TClient, TResponse>): RemoveBookmarkFavouriteResult<TVersion, TMethod, TResponse>;
|
|
57
155
|
}
|
|
58
156
|
export default BookmarksApiClient;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
|
|
3
|
+
import type { ClientMethod, ExtractApiVersion, FilterAllowedApiVersions } from '../types';
|
|
4
|
+
import { ApiVersion } from '../api-version';
|
|
5
|
+
/** API version which this operation uses. */
|
|
6
|
+
type AvailableVersions = ApiVersion.v1;
|
|
7
|
+
/** Defines the allowed versions for this operation. (key of enum as string or enum value) */
|
|
8
|
+
type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
|
|
9
|
+
/** Schema for the input arguments to this operation. */
|
|
10
|
+
declare const ArgSchema: {
|
|
11
|
+
"1.0": z.ZodObject<{
|
|
12
|
+
bookmarkId: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
bookmarkId: string;
|
|
15
|
+
}, {
|
|
16
|
+
bookmarkId: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
/** Schema for the response from the API. */
|
|
20
|
+
declare const ApiResponseSchema: {
|
|
21
|
+
"1.0": z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
payload: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, any, string | Record<string, unknown> | undefined>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
payload?: any;
|
|
27
|
+
}, {
|
|
28
|
+
id: string;
|
|
29
|
+
payload?: string | Record<string, unknown> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
/** Defines the expected output from the api. */
|
|
33
|
+
type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
|
|
34
|
+
/** Defines the input arguments to this operation. */
|
|
35
|
+
type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
|
|
36
|
+
/** Defines the expected output of this operation. */
|
|
37
|
+
type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
|
|
38
|
+
/** executes the api call */
|
|
39
|
+
declare const executeApiCall: <TVersion extends AllowedVersions, TMethod extends keyof ClientMethod>(version: TVersion, client: IHttpClient, method?: TMethod) => <TResponse = ApiResponse<ExtractApiVersion<TVersion>>, TResult = MethodResult<ExtractApiVersion<TVersion>, TMethod, TResponse>>(input: MethodArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, TResponse>) => TResult;
|
|
40
|
+
export { AllowedVersions as BookmarkApplyVersion, MethodArg as BookmarkApplyArgs, ApiResponse as BookmarkApplyResponse, MethodResult as BookmarkApplyResult, executeApiCall as getBookmarkApply, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
|
|
3
|
+
import type { ClientMethod, ExtractApiVersion, FilterAllowedApiVersions } from '../types';
|
|
4
|
+
import { ApiVersion } from '../api-version';
|
|
5
|
+
/** API version which this operation uses. */
|
|
6
|
+
type AvailableVersions = ApiVersion.v1;
|
|
7
|
+
/** Defines the allowed versions for this operation. (key of enum as string or enum value) */
|
|
8
|
+
type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
|
|
9
|
+
/** Schema for the input arguments to this operation. */
|
|
10
|
+
declare const ArgSchema: {
|
|
11
|
+
"1.0": z.ZodObject<{
|
|
12
|
+
bookmarkId: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
bookmarkId: string;
|
|
15
|
+
}, {
|
|
16
|
+
bookmarkId: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
/** Schema for the response from the API. */
|
|
20
|
+
declare const ApiResponseSchema: {
|
|
21
|
+
"1.0": z.ZodBoolean;
|
|
22
|
+
};
|
|
23
|
+
/** Defines the expected output from the api. */
|
|
24
|
+
type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
|
|
25
|
+
/** Defines the input arguments to this operation. */
|
|
26
|
+
type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
|
|
27
|
+
/** Defines the expected output of this operation. */
|
|
28
|
+
type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
|
|
29
|
+
/** executes the api call */
|
|
30
|
+
declare const executeApiCall: <TVersion extends AllowedVersions, TMethod extends keyof ClientMethod>(version: TVersion, client: IHttpClient, method?: TMethod) => <TResponse = ApiResponse<ExtractApiVersion<TVersion>>, TResult = MethodResult<ExtractApiVersion<TVersion>, TMethod, TResponse>>(input: MethodArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, TResponse>) => TResult;
|
|
31
|
+
export { AllowedVersions as DeleteBookmarkVersion, MethodArg as DeleteBookmarkArg, ApiResponse as DeleteBookmarkResponse, MethodResult as DeleteBookmarksResult, executeApiCall as deleteBookmark, };
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ClientRequestInit, IHttpClient } from '@equinor/fusion-framework-module-http/client';
|
|
3
|
+
import type { ClientMethod, ExtractApiVersion, FilterAllowedApiVersions } from '../types';
|
|
4
|
+
import { ApiVersion } from '../api-version';
|
|
5
|
+
/** API version which this operation uses. */
|
|
6
|
+
type AvailableVersions = ApiVersion.v1 | ApiVersion.v2;
|
|
7
|
+
/** Defines the allowed versions for this operation. (key of enum as string or enum value) */
|
|
8
|
+
type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
|
|
9
|
+
/** Schema for the input arguments to this operation. */
|
|
10
|
+
declare const ArgSchema: {
|
|
11
|
+
"1.0": z.ZodObject<{
|
|
12
|
+
bookmarkId: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
bookmarkId: string;
|
|
15
|
+
}, {
|
|
16
|
+
bookmarkId: string;
|
|
17
|
+
}>;
|
|
18
|
+
"2.0": z.ZodObject<{
|
|
19
|
+
bookmarkId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
bookmarkId: string;
|
|
22
|
+
}, {
|
|
23
|
+
bookmarkId: string;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
/** Schema for the response from the API. */
|
|
27
|
+
declare const ApiResponseSchema: {
|
|
28
|
+
"1.0": z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
appKey: z.ZodString;
|
|
32
|
+
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
id: string;
|
|
40
|
+
type?: string | null | undefined;
|
|
41
|
+
name?: string | null | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
type?: string | null | undefined;
|
|
45
|
+
name?: string | null | undefined;
|
|
46
|
+
}>>;
|
|
47
|
+
createdBy: z.ZodObject<{
|
|
48
|
+
azureUniqueId: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
51
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
52
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
53
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
54
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
azureUniqueId: string;
|
|
57
|
+
name: string;
|
|
58
|
+
mail?: string | undefined;
|
|
59
|
+
phoneNumber?: string | undefined;
|
|
60
|
+
jobTitle?: string | undefined;
|
|
61
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
62
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
azureUniqueId: string;
|
|
65
|
+
name: string;
|
|
66
|
+
mail?: string | undefined;
|
|
67
|
+
phoneNumber?: string | undefined;
|
|
68
|
+
jobTitle?: string | undefined;
|
|
69
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
70
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
updatedBy: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
azureUniqueId: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
76
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
77
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
78
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
79
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
azureUniqueId: string;
|
|
82
|
+
name: string;
|
|
83
|
+
mail?: string | undefined;
|
|
84
|
+
phoneNumber?: string | undefined;
|
|
85
|
+
jobTitle?: string | undefined;
|
|
86
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
87
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
azureUniqueId: string;
|
|
90
|
+
name: string;
|
|
91
|
+
mail?: string | undefined;
|
|
92
|
+
phoneNumber?: string | undefined;
|
|
93
|
+
jobTitle?: string | undefined;
|
|
94
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
95
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
96
|
+
}>>;
|
|
97
|
+
created: z.ZodEffects<z.ZodString, Date, string>;
|
|
98
|
+
updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
99
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
identifier: z.ZodString;
|
|
101
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
identifier: string;
|
|
105
|
+
name?: string | null | undefined;
|
|
106
|
+
subSystem?: string | null | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
identifier: string;
|
|
109
|
+
name?: string | null | undefined;
|
|
110
|
+
subSystem?: string | null | undefined;
|
|
111
|
+
}>>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
appKey: string;
|
|
116
|
+
createdBy: {
|
|
117
|
+
azureUniqueId: string;
|
|
118
|
+
name: string;
|
|
119
|
+
mail?: string | undefined;
|
|
120
|
+
phoneNumber?: string | undefined;
|
|
121
|
+
jobTitle?: string | undefined;
|
|
122
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
123
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
124
|
+
};
|
|
125
|
+
created: Date;
|
|
126
|
+
description?: string | undefined;
|
|
127
|
+
isShared?: boolean | undefined;
|
|
128
|
+
context?: {
|
|
129
|
+
id: string;
|
|
130
|
+
type?: string | null | undefined;
|
|
131
|
+
name?: string | null | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
updatedBy?: {
|
|
134
|
+
azureUniqueId: string;
|
|
135
|
+
name: string;
|
|
136
|
+
mail?: string | undefined;
|
|
137
|
+
phoneNumber?: string | undefined;
|
|
138
|
+
jobTitle?: string | undefined;
|
|
139
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
140
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
updated?: Date | undefined;
|
|
143
|
+
sourceSystem?: {
|
|
144
|
+
identifier: string;
|
|
145
|
+
name?: string | null | undefined;
|
|
146
|
+
subSystem?: string | null | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
appKey: string;
|
|
152
|
+
createdBy: {
|
|
153
|
+
azureUniqueId: string;
|
|
154
|
+
name: string;
|
|
155
|
+
mail?: string | undefined;
|
|
156
|
+
phoneNumber?: string | undefined;
|
|
157
|
+
jobTitle?: string | undefined;
|
|
158
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
159
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
160
|
+
};
|
|
161
|
+
created: string;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
isShared?: boolean | undefined;
|
|
164
|
+
context?: {
|
|
165
|
+
id: string;
|
|
166
|
+
type?: string | null | undefined;
|
|
167
|
+
name?: string | null | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
updatedBy?: {
|
|
170
|
+
azureUniqueId: string;
|
|
171
|
+
name: string;
|
|
172
|
+
mail?: string | undefined;
|
|
173
|
+
phoneNumber?: string | undefined;
|
|
174
|
+
jobTitle?: string | undefined;
|
|
175
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
176
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
updated?: string | undefined;
|
|
179
|
+
sourceSystem?: {
|
|
180
|
+
identifier: string;
|
|
181
|
+
name?: string | null | undefined;
|
|
182
|
+
subSystem?: string | null | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
"2.0": z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
appKey: z.ZodString;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
id: string;
|
|
197
|
+
type?: string | null | undefined;
|
|
198
|
+
name?: string | null | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
id: string;
|
|
201
|
+
type?: string | null | undefined;
|
|
202
|
+
name?: string | null | undefined;
|
|
203
|
+
}>>;
|
|
204
|
+
createdBy: z.ZodObject<{
|
|
205
|
+
azureUniqueId: z.ZodString;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
208
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
209
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
210
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
211
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
azureUniqueId: string;
|
|
214
|
+
name: string;
|
|
215
|
+
mail?: string | undefined;
|
|
216
|
+
phoneNumber?: string | undefined;
|
|
217
|
+
jobTitle?: string | undefined;
|
|
218
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
219
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
azureUniqueId: string;
|
|
222
|
+
name: string;
|
|
223
|
+
mail?: string | undefined;
|
|
224
|
+
phoneNumber?: string | undefined;
|
|
225
|
+
jobTitle?: string | undefined;
|
|
226
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
227
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
updatedBy: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
azureUniqueId: z.ZodString;
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
233
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
234
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
235
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
236
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
azureUniqueId: string;
|
|
239
|
+
name: string;
|
|
240
|
+
mail?: string | undefined;
|
|
241
|
+
phoneNumber?: string | undefined;
|
|
242
|
+
jobTitle?: string | undefined;
|
|
243
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
244
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
245
|
+
}, {
|
|
246
|
+
azureUniqueId: string;
|
|
247
|
+
name: string;
|
|
248
|
+
mail?: string | undefined;
|
|
249
|
+
phoneNumber?: string | undefined;
|
|
250
|
+
jobTitle?: string | undefined;
|
|
251
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
252
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
253
|
+
}>>;
|
|
254
|
+
created: z.ZodEffects<z.ZodString, Date, string>;
|
|
255
|
+
updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
256
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
identifier: z.ZodString;
|
|
258
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
identifier: string;
|
|
262
|
+
name?: string | null | undefined;
|
|
263
|
+
subSystem?: string | null | undefined;
|
|
264
|
+
}, {
|
|
265
|
+
identifier: string;
|
|
266
|
+
name?: string | null | undefined;
|
|
267
|
+
subSystem?: string | null | undefined;
|
|
268
|
+
}>>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
id: string;
|
|
271
|
+
name: string;
|
|
272
|
+
appKey: string;
|
|
273
|
+
createdBy: {
|
|
274
|
+
azureUniqueId: string;
|
|
275
|
+
name: string;
|
|
276
|
+
mail?: string | undefined;
|
|
277
|
+
phoneNumber?: string | undefined;
|
|
278
|
+
jobTitle?: string | undefined;
|
|
279
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
280
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
281
|
+
};
|
|
282
|
+
created: Date;
|
|
283
|
+
description?: string | undefined;
|
|
284
|
+
isShared?: boolean | undefined;
|
|
285
|
+
context?: {
|
|
286
|
+
id: string;
|
|
287
|
+
type?: string | null | undefined;
|
|
288
|
+
name?: string | null | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
updatedBy?: {
|
|
291
|
+
azureUniqueId: string;
|
|
292
|
+
name: string;
|
|
293
|
+
mail?: string | undefined;
|
|
294
|
+
phoneNumber?: string | undefined;
|
|
295
|
+
jobTitle?: string | undefined;
|
|
296
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
297
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
updated?: Date | undefined;
|
|
300
|
+
sourceSystem?: {
|
|
301
|
+
identifier: string;
|
|
302
|
+
name?: string | null | undefined;
|
|
303
|
+
subSystem?: string | null | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
id: string;
|
|
307
|
+
name: string;
|
|
308
|
+
appKey: string;
|
|
309
|
+
createdBy: {
|
|
310
|
+
azureUniqueId: string;
|
|
311
|
+
name: string;
|
|
312
|
+
mail?: string | undefined;
|
|
313
|
+
phoneNumber?: string | undefined;
|
|
314
|
+
jobTitle?: string | undefined;
|
|
315
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
316
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
317
|
+
};
|
|
318
|
+
created: string;
|
|
319
|
+
description?: string | undefined;
|
|
320
|
+
isShared?: boolean | undefined;
|
|
321
|
+
context?: {
|
|
322
|
+
id: string;
|
|
323
|
+
type?: string | null | undefined;
|
|
324
|
+
name?: string | null | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
updatedBy?: {
|
|
327
|
+
azureUniqueId: string;
|
|
328
|
+
name: string;
|
|
329
|
+
mail?: string | undefined;
|
|
330
|
+
phoneNumber?: string | undefined;
|
|
331
|
+
jobTitle?: string | undefined;
|
|
332
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
333
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
updated?: string | undefined;
|
|
336
|
+
sourceSystem?: {
|
|
337
|
+
identifier: string;
|
|
338
|
+
name?: string | null | undefined;
|
|
339
|
+
subSystem?: string | null | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
}>;
|
|
342
|
+
};
|
|
343
|
+
/** Defines the expected output from the api. */
|
|
344
|
+
type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
|
|
345
|
+
/** Defines the input arguments to this operation. */
|
|
346
|
+
type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
|
|
347
|
+
/** Defines the expected output of this operation. */
|
|
348
|
+
type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
|
|
349
|
+
/** executes the api call */
|
|
350
|
+
declare const executeApiCall: <TVersion extends AllowedVersions, TMethod extends keyof ClientMethod>(version: TVersion, client: IHttpClient, method?: TMethod) => <TResponse = ApiResponse<ExtractApiVersion<TVersion>>, TResult = MethodResult<ExtractApiVersion<TVersion>, TMethod, TResponse>>(input: MethodArg<ExtractApiVersion<TVersion>>, init?: ClientRequestInit<IHttpClient, TResponse>) => TResult;
|
|
351
|
+
export { AllowedVersions as GetBookmarkVersion, MethodArg as GetBookmarkArg, ApiResponse as GetBookmarkResponse, MethodResult as GetBookmarkResult, executeApiCall as getBookmark, };
|