@equinor/fusion-framework-module-services 5.0.0-next-663bed8344cc2ca0111705b05045173328b3104d → 5.0.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/CHANGELOG.md +199 -186
- 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 +48 -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 +54 -0
- package/dist/esm/bookmarks/selectors.js.map +1 -0
- package/dist/esm/provider.js +3 -1
- package/dist/esm/provider.js.map +1 -1
- 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 +11 -11
- 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 +113 -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 +46 -0
- package/src/bookmarks/types.ts +16 -1
- package/src/provider.ts +7 -5
- 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
|
@@ -0,0 +1,235 @@
|
|
|
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.ZodOptional<z.ZodObject<{
|
|
12
|
+
filter: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
13
|
+
appKey: z.ZodOptional<z.ZodString>;
|
|
14
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
17
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
18
|
+
subSystem: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
name?: string | null | undefined;
|
|
21
|
+
identifier?: string | undefined;
|
|
22
|
+
subSystem?: string | null | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
name?: string | null | undefined;
|
|
25
|
+
identifier?: string | undefined;
|
|
26
|
+
subSystem?: string | null | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
appKey?: string | undefined;
|
|
30
|
+
sourceSystem?: {
|
|
31
|
+
name?: string | null | undefined;
|
|
32
|
+
identifier?: string | undefined;
|
|
33
|
+
subSystem?: string | null | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
contextId?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
appKey?: string | undefined;
|
|
38
|
+
sourceSystem?: {
|
|
39
|
+
name?: string | null | undefined;
|
|
40
|
+
identifier?: string | undefined;
|
|
41
|
+
subSystem?: string | null | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
contextId?: string | undefined;
|
|
44
|
+
}>, string, {
|
|
45
|
+
appKey?: string | undefined;
|
|
46
|
+
sourceSystem?: {
|
|
47
|
+
name?: string | null | undefined;
|
|
48
|
+
identifier?: string | undefined;
|
|
49
|
+
subSystem?: string | null | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
contextId?: string | undefined;
|
|
52
|
+
}>]>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
filter?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
filter?: string | {
|
|
57
|
+
appKey?: string | undefined;
|
|
58
|
+
sourceSystem?: {
|
|
59
|
+
name?: string | null | undefined;
|
|
60
|
+
identifier?: string | undefined;
|
|
61
|
+
subSystem?: string | null | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
contextId?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}>>;
|
|
66
|
+
};
|
|
67
|
+
/** Schema for the response from the API. */
|
|
68
|
+
declare const ApiResponseSchema: {
|
|
69
|
+
"1.0": z.ZodArray<z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
appKey: z.ZodString;
|
|
73
|
+
description: z.ZodOptional<z.ZodString>;
|
|
74
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
id: string;
|
|
81
|
+
type?: string | null | undefined;
|
|
82
|
+
name?: string | null | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
id: string;
|
|
85
|
+
type?: string | null | undefined;
|
|
86
|
+
name?: string | null | undefined;
|
|
87
|
+
}>>;
|
|
88
|
+
createdBy: z.ZodObject<{
|
|
89
|
+
azureUniqueId: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
92
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
93
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
94
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
95
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
azureUniqueId: string;
|
|
98
|
+
name: string;
|
|
99
|
+
mail?: string | undefined;
|
|
100
|
+
phoneNumber?: string | undefined;
|
|
101
|
+
jobTitle?: string | undefined;
|
|
102
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
103
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
azureUniqueId: string;
|
|
106
|
+
name: string;
|
|
107
|
+
mail?: string | undefined;
|
|
108
|
+
phoneNumber?: string | undefined;
|
|
109
|
+
jobTitle?: string | undefined;
|
|
110
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
111
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
updatedBy: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
azureUniqueId: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
117
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
118
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
119
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
120
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
azureUniqueId: string;
|
|
123
|
+
name: string;
|
|
124
|
+
mail?: string | undefined;
|
|
125
|
+
phoneNumber?: string | undefined;
|
|
126
|
+
jobTitle?: string | undefined;
|
|
127
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
128
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
azureUniqueId: string;
|
|
131
|
+
name: string;
|
|
132
|
+
mail?: string | undefined;
|
|
133
|
+
phoneNumber?: string | undefined;
|
|
134
|
+
jobTitle?: string | undefined;
|
|
135
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
136
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
137
|
+
}>>;
|
|
138
|
+
created: z.ZodEffects<z.ZodString, Date, string>;
|
|
139
|
+
updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
140
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
identifier: z.ZodString;
|
|
142
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
identifier: string;
|
|
146
|
+
name?: string | null | undefined;
|
|
147
|
+
subSystem?: string | null | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
identifier: string;
|
|
150
|
+
name?: string | null | undefined;
|
|
151
|
+
subSystem?: string | null | undefined;
|
|
152
|
+
}>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
appKey: string;
|
|
157
|
+
createdBy: {
|
|
158
|
+
azureUniqueId: string;
|
|
159
|
+
name: string;
|
|
160
|
+
mail?: string | undefined;
|
|
161
|
+
phoneNumber?: string | undefined;
|
|
162
|
+
jobTitle?: string | undefined;
|
|
163
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
164
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
165
|
+
};
|
|
166
|
+
created: Date;
|
|
167
|
+
description?: string | undefined;
|
|
168
|
+
isShared?: boolean | undefined;
|
|
169
|
+
context?: {
|
|
170
|
+
id: string;
|
|
171
|
+
type?: string | null | undefined;
|
|
172
|
+
name?: string | null | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
updatedBy?: {
|
|
175
|
+
azureUniqueId: string;
|
|
176
|
+
name: string;
|
|
177
|
+
mail?: string | undefined;
|
|
178
|
+
phoneNumber?: string | undefined;
|
|
179
|
+
jobTitle?: string | undefined;
|
|
180
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
181
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
updated?: Date | undefined;
|
|
184
|
+
sourceSystem?: {
|
|
185
|
+
identifier: string;
|
|
186
|
+
name?: string | null | undefined;
|
|
187
|
+
subSystem?: string | null | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
appKey: string;
|
|
193
|
+
createdBy: {
|
|
194
|
+
azureUniqueId: string;
|
|
195
|
+
name: string;
|
|
196
|
+
mail?: string | undefined;
|
|
197
|
+
phoneNumber?: string | undefined;
|
|
198
|
+
jobTitle?: string | undefined;
|
|
199
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
200
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
201
|
+
};
|
|
202
|
+
created: string;
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
isShared?: boolean | undefined;
|
|
205
|
+
context?: {
|
|
206
|
+
id: string;
|
|
207
|
+
type?: string | null | undefined;
|
|
208
|
+
name?: string | null | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
updatedBy?: {
|
|
211
|
+
azureUniqueId: string;
|
|
212
|
+
name: string;
|
|
213
|
+
mail?: string | undefined;
|
|
214
|
+
phoneNumber?: string | undefined;
|
|
215
|
+
jobTitle?: string | undefined;
|
|
216
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
217
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
updated?: string | undefined;
|
|
220
|
+
sourceSystem?: {
|
|
221
|
+
identifier: string;
|
|
222
|
+
name?: string | null | undefined;
|
|
223
|
+
subSystem?: string | null | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
}>, "many">;
|
|
226
|
+
};
|
|
227
|
+
/** Defines the expected output from the api. */
|
|
228
|
+
type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
|
|
229
|
+
/** Defines the input arguments to this operation. */
|
|
230
|
+
type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
|
|
231
|
+
/** Defines the expected output of this operation. */
|
|
232
|
+
type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
|
|
233
|
+
/** executes the api call */
|
|
234
|
+
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;
|
|
235
|
+
export { AllowedVersions as GetBookmarksVersion, MethodArg as GetBookmarksArgs, ApiResponse as GetBookmarksResponse, MethodResult as GetBookmarksResult, executeApiCall as getBookmarks, };
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ApiDateSchema: z.ZodEffects<z.ZodString, Date, string>;
|
|
3
|
+
export declare const ApiPersonSchema: {
|
|
4
|
+
"1.0": z.ZodObject<{
|
|
5
|
+
azureUniqueId: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
8
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
9
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
10
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
11
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
azureUniqueId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
mail?: string | undefined;
|
|
16
|
+
phoneNumber?: string | undefined;
|
|
17
|
+
jobTitle?: string | undefined;
|
|
18
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
19
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
azureUniqueId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
mail?: string | undefined;
|
|
24
|
+
phoneNumber?: string | undefined;
|
|
25
|
+
jobTitle?: string | undefined;
|
|
26
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
27
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export declare const ApiSourceSystem: {
|
|
31
|
+
"1.0": z.ZodObject<{
|
|
32
|
+
identifier: z.ZodString;
|
|
33
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
identifier: string;
|
|
37
|
+
name?: string | null | undefined;
|
|
38
|
+
subSystem?: string | null | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
identifier: string;
|
|
41
|
+
name?: string | null | undefined;
|
|
42
|
+
subSystem?: string | null | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
export declare const ApiFusionContext: {
|
|
46
|
+
"1.0": z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
id: string;
|
|
52
|
+
type?: string | null | undefined;
|
|
53
|
+
name?: string | null | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
id: string;
|
|
56
|
+
type?: string | null | undefined;
|
|
57
|
+
name?: string | null | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Defines the schema for the API bookmark entity, which includes various properties such as the unique identifier, name, application key, description, sharing status, context, creator and updater information, creation and update timestamps, and source system details.
|
|
62
|
+
*
|
|
63
|
+
* This schema is defined for the v1 API version, and the properties are validated using the Zod library.
|
|
64
|
+
*/
|
|
65
|
+
export declare const ApiBookmarkSchema: {
|
|
66
|
+
readonly "1.0": z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
appKey: z.ZodString;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
id: string;
|
|
78
|
+
type?: string | null | undefined;
|
|
79
|
+
name?: string | null | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
id: string;
|
|
82
|
+
type?: string | null | undefined;
|
|
83
|
+
name?: string | null | undefined;
|
|
84
|
+
}>>;
|
|
85
|
+
createdBy: z.ZodObject<{
|
|
86
|
+
azureUniqueId: z.ZodString;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
89
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
90
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
91
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
92
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
azureUniqueId: string;
|
|
95
|
+
name: string;
|
|
96
|
+
mail?: string | undefined;
|
|
97
|
+
phoneNumber?: string | undefined;
|
|
98
|
+
jobTitle?: string | undefined;
|
|
99
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
100
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
azureUniqueId: string;
|
|
103
|
+
name: string;
|
|
104
|
+
mail?: string | undefined;
|
|
105
|
+
phoneNumber?: string | undefined;
|
|
106
|
+
jobTitle?: string | undefined;
|
|
107
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
108
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
updatedBy: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
azureUniqueId: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
114
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
115
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
116
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
117
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
azureUniqueId: string;
|
|
120
|
+
name: string;
|
|
121
|
+
mail?: string | undefined;
|
|
122
|
+
phoneNumber?: string | undefined;
|
|
123
|
+
jobTitle?: string | undefined;
|
|
124
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
125
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
azureUniqueId: string;
|
|
128
|
+
name: string;
|
|
129
|
+
mail?: string | undefined;
|
|
130
|
+
phoneNumber?: string | undefined;
|
|
131
|
+
jobTitle?: string | undefined;
|
|
132
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
133
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
created: z.ZodEffects<z.ZodString, Date, string>;
|
|
136
|
+
updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
137
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
identifier: z.ZodString;
|
|
139
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
identifier: string;
|
|
143
|
+
name?: string | null | undefined;
|
|
144
|
+
subSystem?: string | null | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
identifier: string;
|
|
147
|
+
name?: string | null | undefined;
|
|
148
|
+
subSystem?: string | null | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
appKey: string;
|
|
154
|
+
createdBy: {
|
|
155
|
+
azureUniqueId: string;
|
|
156
|
+
name: string;
|
|
157
|
+
mail?: string | undefined;
|
|
158
|
+
phoneNumber?: string | undefined;
|
|
159
|
+
jobTitle?: string | undefined;
|
|
160
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
161
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
162
|
+
};
|
|
163
|
+
created: Date;
|
|
164
|
+
description?: string | undefined;
|
|
165
|
+
isShared?: boolean | undefined;
|
|
166
|
+
context?: {
|
|
167
|
+
id: string;
|
|
168
|
+
type?: string | null | undefined;
|
|
169
|
+
name?: string | null | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
updatedBy?: {
|
|
172
|
+
azureUniqueId: string;
|
|
173
|
+
name: string;
|
|
174
|
+
mail?: string | undefined;
|
|
175
|
+
phoneNumber?: string | undefined;
|
|
176
|
+
jobTitle?: string | undefined;
|
|
177
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
178
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
updated?: Date | undefined;
|
|
181
|
+
sourceSystem?: {
|
|
182
|
+
identifier: string;
|
|
183
|
+
name?: string | null | undefined;
|
|
184
|
+
subSystem?: string | null | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
appKey: string;
|
|
190
|
+
createdBy: {
|
|
191
|
+
azureUniqueId: string;
|
|
192
|
+
name: string;
|
|
193
|
+
mail?: string | undefined;
|
|
194
|
+
phoneNumber?: string | undefined;
|
|
195
|
+
jobTitle?: string | undefined;
|
|
196
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
197
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
198
|
+
};
|
|
199
|
+
created: string;
|
|
200
|
+
description?: string | undefined;
|
|
201
|
+
isShared?: boolean | undefined;
|
|
202
|
+
context?: {
|
|
203
|
+
id: string;
|
|
204
|
+
type?: string | null | undefined;
|
|
205
|
+
name?: string | null | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
updatedBy?: {
|
|
208
|
+
azureUniqueId: string;
|
|
209
|
+
name: string;
|
|
210
|
+
mail?: string | undefined;
|
|
211
|
+
phoneNumber?: string | undefined;
|
|
212
|
+
jobTitle?: string | undefined;
|
|
213
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
214
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
updated?: string | undefined;
|
|
217
|
+
sourceSystem?: {
|
|
218
|
+
identifier: string;
|
|
219
|
+
name?: string | null | undefined;
|
|
220
|
+
subSystem?: string | null | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}>;
|
|
223
|
+
readonly "2.0": z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
appKey: z.ZodString;
|
|
227
|
+
description: z.ZodOptional<z.ZodString>;
|
|
228
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
id: string;
|
|
235
|
+
type?: string | null | undefined;
|
|
236
|
+
name?: string | null | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
id: string;
|
|
239
|
+
type?: string | null | undefined;
|
|
240
|
+
name?: string | null | undefined;
|
|
241
|
+
}>>;
|
|
242
|
+
createdBy: z.ZodObject<{
|
|
243
|
+
azureUniqueId: z.ZodString;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
246
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
247
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
248
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
249
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
azureUniqueId: string;
|
|
252
|
+
name: string;
|
|
253
|
+
mail?: string | undefined;
|
|
254
|
+
phoneNumber?: string | undefined;
|
|
255
|
+
jobTitle?: string | undefined;
|
|
256
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
257
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
258
|
+
}, {
|
|
259
|
+
azureUniqueId: string;
|
|
260
|
+
name: string;
|
|
261
|
+
mail?: string | undefined;
|
|
262
|
+
phoneNumber?: string | undefined;
|
|
263
|
+
jobTitle?: string | undefined;
|
|
264
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
265
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
updatedBy: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
azureUniqueId: z.ZodString;
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
mail: z.ZodOptional<z.ZodString>;
|
|
271
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
272
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
273
|
+
accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
|
|
274
|
+
accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
azureUniqueId: string;
|
|
277
|
+
name: string;
|
|
278
|
+
mail?: string | undefined;
|
|
279
|
+
phoneNumber?: string | undefined;
|
|
280
|
+
jobTitle?: string | undefined;
|
|
281
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
282
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
283
|
+
}, {
|
|
284
|
+
azureUniqueId: string;
|
|
285
|
+
name: string;
|
|
286
|
+
mail?: string | undefined;
|
|
287
|
+
phoneNumber?: string | undefined;
|
|
288
|
+
jobTitle?: string | undefined;
|
|
289
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
290
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
291
|
+
}>>;
|
|
292
|
+
created: z.ZodEffects<z.ZodString, Date, string>;
|
|
293
|
+
updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
294
|
+
sourceSystem: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
identifier: z.ZodString;
|
|
296
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
identifier: string;
|
|
300
|
+
name?: string | null | undefined;
|
|
301
|
+
subSystem?: string | null | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
identifier: string;
|
|
304
|
+
name?: string | null | undefined;
|
|
305
|
+
subSystem?: string | null | undefined;
|
|
306
|
+
}>>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
id: string;
|
|
309
|
+
name: string;
|
|
310
|
+
appKey: string;
|
|
311
|
+
createdBy: {
|
|
312
|
+
azureUniqueId: string;
|
|
313
|
+
name: string;
|
|
314
|
+
mail?: string | undefined;
|
|
315
|
+
phoneNumber?: string | undefined;
|
|
316
|
+
jobTitle?: string | undefined;
|
|
317
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
318
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
319
|
+
};
|
|
320
|
+
created: Date;
|
|
321
|
+
description?: string | undefined;
|
|
322
|
+
isShared?: boolean | undefined;
|
|
323
|
+
context?: {
|
|
324
|
+
id: string;
|
|
325
|
+
type?: string | null | undefined;
|
|
326
|
+
name?: string | null | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
updatedBy?: {
|
|
329
|
+
azureUniqueId: string;
|
|
330
|
+
name: string;
|
|
331
|
+
mail?: string | undefined;
|
|
332
|
+
phoneNumber?: string | undefined;
|
|
333
|
+
jobTitle?: string | undefined;
|
|
334
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
335
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
updated?: Date | undefined;
|
|
338
|
+
sourceSystem?: {
|
|
339
|
+
identifier: string;
|
|
340
|
+
name?: string | null | undefined;
|
|
341
|
+
subSystem?: string | null | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
}, {
|
|
344
|
+
id: string;
|
|
345
|
+
name: string;
|
|
346
|
+
appKey: string;
|
|
347
|
+
createdBy: {
|
|
348
|
+
azureUniqueId: string;
|
|
349
|
+
name: string;
|
|
350
|
+
mail?: string | undefined;
|
|
351
|
+
phoneNumber?: string | undefined;
|
|
352
|
+
jobTitle?: string | undefined;
|
|
353
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
354
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
355
|
+
};
|
|
356
|
+
created: string;
|
|
357
|
+
description?: string | undefined;
|
|
358
|
+
isShared?: boolean | undefined;
|
|
359
|
+
context?: {
|
|
360
|
+
id: string;
|
|
361
|
+
type?: string | null | undefined;
|
|
362
|
+
name?: string | null | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
updatedBy?: {
|
|
365
|
+
azureUniqueId: string;
|
|
366
|
+
name: string;
|
|
367
|
+
mail?: string | undefined;
|
|
368
|
+
phoneNumber?: string | undefined;
|
|
369
|
+
jobTitle?: string | undefined;
|
|
370
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
371
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
updated?: string | undefined;
|
|
374
|
+
sourceSystem?: {
|
|
375
|
+
identifier: string;
|
|
376
|
+
name?: string | null | undefined;
|
|
377
|
+
subSystem?: string | null | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
}>;
|
|
380
|
+
};
|
|
381
|
+
export declare const ApiBookmarkPayload: {
|
|
382
|
+
readonly "1.0": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, any, string | Record<string, unknown> | undefined>;
|
|
383
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ResponseSelector } from '@equinor/fusion-framework-module-http/selectors';
|
|
2
|
+
/**
|
|
3
|
+
* A response selector that checks the status of an HTTP response and throws an error if the response is not successful.
|
|
4
|
+
*
|
|
5
|
+
* @param res - The HTTP response to check.
|
|
6
|
+
* @returns `true` if the response is successful, otherwise throws an `HttpJsonResponseError`.
|
|
7
|
+
* @throws {HttpJsonResponseError} If the response is not successful, with the error message, response, and any additional data or cause.
|
|
8
|
+
*/
|
|
9
|
+
export declare const statusSelector: ResponseSelector<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* A response selector that checks the status of an HTTP response is `2xx` = true or `404` = false, otherwise throws an error.
|
|
12
|
+
*
|
|
13
|
+
* @param res - The HTTP response to check.
|
|
14
|
+
* @returns `true` if the response is successful, `false` if the response has a 404 status code, otherwise throws an `HttpJsonResponseError`.
|
|
15
|
+
* @throws {HttpJsonResponseError} If the response is not successful and does not have a 404 status code, with the error message, response, and any additional data or cause.
|
|
16
|
+
*/
|
|
17
|
+
export declare const headSelector: ResponseSelector<boolean>;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FilterAllowedApiVersions as FilterAllowApiVersionsBase, ExtractApiVersion as ExtractApiVersionBase } from '../types';
|
|
2
|
+
import { ApiVersion } from './api-version';
|
|
3
|
+
export { ClientMethodType, ClientMethod, ApiClientArguments } from '../types';
|
|
4
|
+
export type FilterAllowedApiVersions<TAllowed extends string = keyof typeof ApiVersion> = FilterAllowApiVersionsBase<typeof ApiVersion, TAllowed>;
|
|
5
|
+
export type ExtractApiVersion<TVersion extends string, TAllowed extends string = FilterAllowedApiVersions> = ExtractApiVersionBase<typeof ApiVersion, TVersion, TAllowed>;
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface IApiProvider<TClient extends IHttpClient = IHttpClient> {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param method - Version of the service to use
|
|
11
11
|
*/
|
|
12
|
-
createBookmarksClient<TMethod extends keyof ClientMethod
|
|
12
|
+
createBookmarksClient<TMethod extends keyof ClientMethod>(method: TMethod): Promise<BookmarksApiClient<TMethod, TClient>>;
|
|
13
13
|
/**
|
|
14
14
|
* @param method - Version of the service to use
|
|
15
15
|
*/
|
|
@@ -43,7 +43,7 @@ export declare class ApiProvider<TClient extends IHttpClient = IHttpClient> impl
|
|
|
43
43
|
protected _createClientFn: ApiClientFactory<TClient>;
|
|
44
44
|
constructor({ createClient }: ApiProviderCtorArgs<TClient>);
|
|
45
45
|
createNotificationClient<TMethod extends keyof ClientMethod>(method: TMethod): Promise<NotificationApiClient<TMethod, TClient>>;
|
|
46
|
-
createBookmarksClient<TMethod extends keyof ClientMethod
|
|
46
|
+
createBookmarksClient<TMethod extends keyof ClientMethod>(method: TMethod): Promise<BookmarksApiClient<TMethod, TClient>>;
|
|
47
47
|
createContextClient<TMethod extends keyof ClientMethod>(method: TMethod): Promise<ContextApiClient<TMethod, TClient>>;
|
|
48
48
|
createPeopleClient(): Promise<PeopleApiClient<TClient>>;
|
|
49
49
|
}
|