@equinor/fusion-framework-module-services 5.0.0-next-663bed8344cc2ca0111705b05045173328b3104d → 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.
Files changed (245) hide show
  1. package/CHANGELOG.md +10 -7
  2. package/dist/esm/bookmarks/api-version.js +6 -0
  3. package/dist/esm/bookmarks/api-version.js.map +1 -0
  4. package/dist/esm/bookmarks/client.js +148 -47
  5. package/dist/esm/bookmarks/client.js.map +1 -1
  6. package/dist/esm/bookmarks/endpoints/bookmark-apply.get.js +49 -0
  7. package/dist/esm/bookmarks/endpoints/bookmark-apply.get.js.map +1 -0
  8. package/dist/esm/bookmarks/endpoints/bookmark.delete.js +48 -0
  9. package/dist/esm/bookmarks/endpoints/bookmark.delete.js.map +1 -0
  10. package/dist/esm/bookmarks/endpoints/bookmark.get.js +53 -0
  11. package/dist/esm/bookmarks/endpoints/bookmark.get.js.map +1 -0
  12. package/dist/esm/bookmarks/endpoints/bookmark.patch.js +68 -0
  13. package/dist/esm/bookmarks/endpoints/bookmark.patch.js.map +1 -0
  14. package/dist/esm/bookmarks/endpoints/bookmark.post.js +57 -0
  15. package/dist/esm/bookmarks/endpoints/bookmark.post.js.map +1 -0
  16. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.delete.js +48 -0
  17. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.delete.js.map +1 -0
  18. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.head.js +49 -0
  19. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.head.js.map +1 -0
  20. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.post.js +49 -0
  21. package/dist/esm/bookmarks/endpoints/user-bookmark-favourite.post.js.map +1 -0
  22. package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js +75 -0
  23. package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js.map +1 -0
  24. package/dist/esm/bookmarks/index.js +1 -2
  25. package/dist/esm/bookmarks/index.js.map +1 -1
  26. package/dist/esm/bookmarks/schemas.js +76 -0
  27. package/dist/esm/bookmarks/schemas.js.map +1 -0
  28. package/dist/esm/bookmarks/selectors.js +58 -0
  29. package/dist/esm/bookmarks/selectors.js.map +1 -0
  30. package/dist/esm/utils.js +35 -0
  31. package/dist/esm/utils.js.map +1 -0
  32. package/dist/esm/version.js +1 -1
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/dist/types/bookmarks/api-version.d.ts +4 -0
  35. package/dist/types/bookmarks/client.d.ts +132 -34
  36. package/dist/types/bookmarks/endpoints/bookmark-apply.get.d.ts +40 -0
  37. package/dist/types/bookmarks/endpoints/bookmark.delete.d.ts +31 -0
  38. package/dist/types/bookmarks/endpoints/bookmark.get.d.ts +351 -0
  39. package/dist/types/bookmarks/endpoints/bookmark.patch.d.ts +254 -0
  40. package/dist/types/bookmarks/endpoints/bookmark.post.d.ts +231 -0
  41. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.delete.d.ts +31 -0
  42. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.head.d.ts +31 -0
  43. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.post.d.ts +31 -0
  44. package/dist/types/bookmarks/endpoints/user-bookmarks.get.d.ts +235 -0
  45. package/dist/types/bookmarks/index.d.ts +3 -2
  46. package/dist/types/bookmarks/schemas.d.ts +383 -0
  47. package/dist/types/bookmarks/selectors.d.ts +17 -0
  48. package/dist/types/bookmarks/types.d.ts +5 -1
  49. package/dist/types/provider.d.ts +2 -2
  50. package/dist/types/types.d.ts +74 -11
  51. package/dist/types/utils.d.ts +18 -0
  52. package/dist/types/version.d.ts +1 -1
  53. package/package.json +11 -11
  54. package/src/bookmarks/README.md +90 -0
  55. package/src/bookmarks/api-version.ts +4 -0
  56. package/src/bookmarks/client.ts +257 -77
  57. package/src/bookmarks/endpoints/bookmark-apply.get.ts +114 -0
  58. package/src/bookmarks/endpoints/bookmark.delete.ts +113 -0
  59. package/src/bookmarks/endpoints/bookmark.get.ts +118 -0
  60. package/src/bookmarks/endpoints/bookmark.patch.ts +135 -0
  61. package/src/bookmarks/endpoints/bookmark.post.ts +124 -0
  62. package/src/bookmarks/endpoints/user-bookmark-favourite.delete.ts +113 -0
  63. package/src/bookmarks/endpoints/user-bookmark-favourite.head.ts +114 -0
  64. package/src/bookmarks/endpoints/user-bookmark-favourite.post.ts +114 -0
  65. package/src/bookmarks/endpoints/user-bookmarks.get.ts +142 -0
  66. package/src/bookmarks/index.ts +3 -3
  67. package/src/bookmarks/schemas.ts +81 -0
  68. package/src/bookmarks/selectors.ts +49 -0
  69. package/src/bookmarks/types.ts +16 -1
  70. package/src/provider.ts +4 -4
  71. package/src/types.ts +92 -11
  72. package/src/utils.ts +51 -0
  73. package/src/version.ts +1 -1
  74. package/dist/esm/bookmarks/api-models.js +0 -2
  75. package/dist/esm/bookmarks/api-models.js.map +0 -1
  76. package/dist/esm/bookmarks/delete/client.js +0 -10
  77. package/dist/esm/bookmarks/delete/client.js.map +0 -1
  78. package/dist/esm/bookmarks/delete/generate-endpoint.js +0 -20
  79. package/dist/esm/bookmarks/delete/generate-endpoint.js.map +0 -1
  80. package/dist/esm/bookmarks/delete/generate-parameters.js +0 -8
  81. package/dist/esm/bookmarks/delete/generate-parameters.js.map +0 -1
  82. package/dist/esm/bookmarks/delete/index.js +0 -5
  83. package/dist/esm/bookmarks/delete/index.js.map +0 -1
  84. package/dist/esm/bookmarks/delete/types-v1.js +0 -2
  85. package/dist/esm/bookmarks/delete/types-v1.js.map +0 -1
  86. package/dist/esm/bookmarks/delete/types.js +0 -2
  87. package/dist/esm/bookmarks/delete/types.js.map +0 -1
  88. package/dist/esm/bookmarks/favorites/delete/client.js +0 -10
  89. package/dist/esm/bookmarks/favorites/delete/client.js.map +0 -1
  90. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js +0 -15
  91. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js.map +0 -1
  92. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js +0 -8
  93. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js.map +0 -1
  94. package/dist/esm/bookmarks/favorites/delete/index.js +0 -5
  95. package/dist/esm/bookmarks/favorites/delete/index.js.map +0 -1
  96. package/dist/esm/bookmarks/favorites/delete/types-v1.js +0 -2
  97. package/dist/esm/bookmarks/favorites/delete/types-v1.js.map +0 -1
  98. package/dist/esm/bookmarks/favorites/delete/types.js +0 -2
  99. package/dist/esm/bookmarks/favorites/delete/types.js.map +0 -1
  100. package/dist/esm/bookmarks/favorites/head/client.js +0 -10
  101. package/dist/esm/bookmarks/favorites/head/client.js.map +0 -1
  102. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js +0 -15
  103. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js.map +0 -1
  104. package/dist/esm/bookmarks/favorites/head/generate-parameters.js +0 -10
  105. package/dist/esm/bookmarks/favorites/head/generate-parameters.js.map +0 -1
  106. package/dist/esm/bookmarks/favorites/head/index.js +0 -5
  107. package/dist/esm/bookmarks/favorites/head/index.js.map +0 -1
  108. package/dist/esm/bookmarks/favorites/head/types.js +0 -2
  109. package/dist/esm/bookmarks/favorites/head/types.js.map +0 -1
  110. package/dist/esm/bookmarks/favorites/post/client.js +0 -10
  111. package/dist/esm/bookmarks/favorites/post/client.js.map +0 -1
  112. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js +0 -14
  113. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js.map +0 -1
  114. package/dist/esm/bookmarks/favorites/post/generate-parameters.js +0 -10
  115. package/dist/esm/bookmarks/favorites/post/generate-parameters.js.map +0 -1
  116. package/dist/esm/bookmarks/favorites/post/index.js +0 -5
  117. package/dist/esm/bookmarks/favorites/post/index.js.map +0 -1
  118. package/dist/esm/bookmarks/favorites/post/types.js +0 -2
  119. package/dist/esm/bookmarks/favorites/post/types.js.map +0 -1
  120. package/dist/esm/bookmarks/get/client.js +0 -10
  121. package/dist/esm/bookmarks/get/client.js.map +0 -1
  122. package/dist/esm/bookmarks/get/generate-endpoint.js +0 -20
  123. package/dist/esm/bookmarks/get/generate-endpoint.js.map +0 -1
  124. package/dist/esm/bookmarks/get/generate-parameters.js +0 -7
  125. package/dist/esm/bookmarks/get/generate-parameters.js.map +0 -1
  126. package/dist/esm/bookmarks/get/index.js +0 -5
  127. package/dist/esm/bookmarks/get/index.js.map +0 -1
  128. package/dist/esm/bookmarks/get/types.js +0 -2
  129. package/dist/esm/bookmarks/get/types.js.map +0 -1
  130. package/dist/esm/bookmarks/getAll/client.js +0 -10
  131. package/dist/esm/bookmarks/getAll/client.js.map +0 -1
  132. package/dist/esm/bookmarks/getAll/generate-endpoint.js +0 -14
  133. package/dist/esm/bookmarks/getAll/generate-endpoint.js.map +0 -1
  134. package/dist/esm/bookmarks/getAll/generate-parameters.js +0 -7
  135. package/dist/esm/bookmarks/getAll/generate-parameters.js.map +0 -1
  136. package/dist/esm/bookmarks/getAll/index.js +0 -5
  137. package/dist/esm/bookmarks/getAll/index.js.map +0 -1
  138. package/dist/esm/bookmarks/getAll/types.js +0 -2
  139. package/dist/esm/bookmarks/getAll/types.js.map +0 -1
  140. package/dist/esm/bookmarks/patch/client.js +0 -10
  141. package/dist/esm/bookmarks/patch/client.js.map +0 -1
  142. package/dist/esm/bookmarks/patch/generate-endpoint.js +0 -14
  143. package/dist/esm/bookmarks/patch/generate-endpoint.js.map +0 -1
  144. package/dist/esm/bookmarks/patch/generate-parameters.js +0 -10
  145. package/dist/esm/bookmarks/patch/generate-parameters.js.map +0 -1
  146. package/dist/esm/bookmarks/patch/index.js +0 -5
  147. package/dist/esm/bookmarks/patch/index.js.map +0 -1
  148. package/dist/esm/bookmarks/patch/types.js +0 -2
  149. package/dist/esm/bookmarks/patch/types.js.map +0 -1
  150. package/dist/esm/bookmarks/post/client.js +0 -10
  151. package/dist/esm/bookmarks/post/client.js.map +0 -1
  152. package/dist/esm/bookmarks/post/generate-endpoint.js +0 -14
  153. package/dist/esm/bookmarks/post/generate-endpoint.js.map +0 -1
  154. package/dist/esm/bookmarks/post/generate-parameters.js +0 -10
  155. package/dist/esm/bookmarks/post/generate-parameters.js.map +0 -1
  156. package/dist/esm/bookmarks/post/index.js +0 -5
  157. package/dist/esm/bookmarks/post/index.js.map +0 -1
  158. package/dist/esm/bookmarks/post/types.js +0 -2
  159. package/dist/esm/bookmarks/post/types.js.map +0 -1
  160. package/dist/types/bookmarks/api-models.d.ts +0 -42
  161. package/dist/types/bookmarks/delete/client.d.ts +0 -11
  162. package/dist/types/bookmarks/delete/generate-endpoint.d.ts +0 -5
  163. package/dist/types/bookmarks/delete/generate-parameters.d.ts +0 -5
  164. package/dist/types/bookmarks/delete/index.d.ts +0 -4
  165. package/dist/types/bookmarks/delete/types-v1.d.ts +0 -4
  166. package/dist/types/bookmarks/delete/types.d.ts +0 -18
  167. package/dist/types/bookmarks/favorites/delete/client.d.ts +0 -11
  168. package/dist/types/bookmarks/favorites/delete/generate-endpoint.d.ts +0 -5
  169. package/dist/types/bookmarks/favorites/delete/generate-parameters.d.ts +0 -5
  170. package/dist/types/bookmarks/favorites/delete/index.d.ts +0 -4
  171. package/dist/types/bookmarks/favorites/delete/types-v1.d.ts +0 -4
  172. package/dist/types/bookmarks/favorites/delete/types.d.ts +0 -16
  173. package/dist/types/bookmarks/favorites/head/client.d.ts +0 -11
  174. package/dist/types/bookmarks/favorites/head/generate-endpoint.d.ts +0 -5
  175. package/dist/types/bookmarks/favorites/head/generate-parameters.d.ts +0 -5
  176. package/dist/types/bookmarks/favorites/head/index.d.ts +0 -4
  177. package/dist/types/bookmarks/favorites/head/types.d.ts +0 -17
  178. package/dist/types/bookmarks/favorites/post/client.d.ts +0 -11
  179. package/dist/types/bookmarks/favorites/post/generate-endpoint.d.ts +0 -5
  180. package/dist/types/bookmarks/favorites/post/generate-parameters.d.ts +0 -5
  181. package/dist/types/bookmarks/favorites/post/index.d.ts +0 -4
  182. package/dist/types/bookmarks/favorites/post/types.d.ts +0 -17
  183. package/dist/types/bookmarks/get/client.d.ts +0 -11
  184. package/dist/types/bookmarks/get/generate-endpoint.d.ts +0 -5
  185. package/dist/types/bookmarks/get/generate-parameters.d.ts +0 -5
  186. package/dist/types/bookmarks/get/index.d.ts +0 -4
  187. package/dist/types/bookmarks/get/types.d.ts +0 -21
  188. package/dist/types/bookmarks/getAll/client.d.ts +0 -11
  189. package/dist/types/bookmarks/getAll/generate-endpoint.d.ts +0 -5
  190. package/dist/types/bookmarks/getAll/generate-parameters.d.ts +0 -5
  191. package/dist/types/bookmarks/getAll/index.d.ts +0 -4
  192. package/dist/types/bookmarks/getAll/types.d.ts +0 -11
  193. package/dist/types/bookmarks/patch/client.d.ts +0 -11
  194. package/dist/types/bookmarks/patch/generate-endpoint.d.ts +0 -5
  195. package/dist/types/bookmarks/patch/generate-parameters.d.ts +0 -5
  196. package/dist/types/bookmarks/patch/index.d.ts +0 -4
  197. package/dist/types/bookmarks/patch/types.d.ts +0 -21
  198. package/dist/types/bookmarks/post/client.d.ts +0 -11
  199. package/dist/types/bookmarks/post/generate-endpoint.d.ts +0 -5
  200. package/dist/types/bookmarks/post/generate-parameters.d.ts +0 -5
  201. package/dist/types/bookmarks/post/index.d.ts +0 -4
  202. package/dist/types/bookmarks/post/types.d.ts +0 -34
  203. package/src/bookmarks/api-models.ts +0 -46
  204. package/src/bookmarks/delete/client.ts +0 -35
  205. package/src/bookmarks/delete/generate-endpoint.ts +0 -24
  206. package/src/bookmarks/delete/generate-parameters.ts +0 -25
  207. package/src/bookmarks/delete/index.ts +0 -6
  208. package/src/bookmarks/delete/types-v1.ts +0 -2
  209. package/src/bookmarks/delete/types.ts +0 -35
  210. package/src/bookmarks/favorites/delete/client.ts +0 -35
  211. package/src/bookmarks/favorites/delete/generate-endpoint.ts +0 -19
  212. package/src/bookmarks/favorites/delete/generate-parameters.ts +0 -25
  213. package/src/bookmarks/favorites/delete/index.ts +0 -6
  214. package/src/bookmarks/favorites/delete/types-v1.ts +0 -2
  215. package/src/bookmarks/favorites/delete/types.ts +0 -33
  216. package/src/bookmarks/favorites/head/client.ts +0 -35
  217. package/src/bookmarks/favorites/head/generate-endpoint.ts +0 -19
  218. package/src/bookmarks/favorites/head/generate-parameters.ts +0 -28
  219. package/src/bookmarks/favorites/head/index.ts +0 -6
  220. package/src/bookmarks/favorites/head/types.ts +0 -35
  221. package/src/bookmarks/favorites/post/client.ts +0 -35
  222. package/src/bookmarks/favorites/post/generate-endpoint.ts +0 -18
  223. package/src/bookmarks/favorites/post/generate-parameters.ts +0 -28
  224. package/src/bookmarks/favorites/post/index.ts +0 -6
  225. package/src/bookmarks/favorites/post/types.ts +0 -35
  226. package/src/bookmarks/get/client.ts +0 -30
  227. package/src/bookmarks/get/generate-endpoint.ts +0 -24
  228. package/src/bookmarks/get/generate-parameters.ts +0 -18
  229. package/src/bookmarks/get/index.ts +0 -6
  230. package/src/bookmarks/get/types.ts +0 -39
  231. package/src/bookmarks/getAll/client.ts +0 -30
  232. package/src/bookmarks/getAll/generate-endpoint.ts +0 -15
  233. package/src/bookmarks/getAll/generate-parameters.ts +0 -18
  234. package/src/bookmarks/getAll/index.ts +0 -6
  235. package/src/bookmarks/getAll/types.ts +0 -21
  236. package/src/bookmarks/patch/client.ts +0 -30
  237. package/src/bookmarks/patch/generate-endpoint.ts +0 -18
  238. package/src/bookmarks/patch/generate-parameters.ts +0 -28
  239. package/src/bookmarks/patch/index.ts +0 -6
  240. package/src/bookmarks/patch/types.ts +0 -45
  241. package/src/bookmarks/post/client.ts +0 -30
  242. package/src/bookmarks/post/generate-endpoint.ts +0 -18
  243. package/src/bookmarks/post/generate-parameters.ts +0 -28
  244. package/src/bookmarks/post/index.ts +0 -6
  245. package/src/bookmarks/post/types.ts +0 -58
@@ -0,0 +1,254 @@
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
+ updates: z.ZodObject<{
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ isShared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
+ payload: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, string | undefined, string | Record<string, unknown> | null | undefined>;
18
+ sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ name?: string | null | undefined;
24
+ identifier?: string | null | undefined;
25
+ subSystem?: string | null | undefined;
26
+ }, {
27
+ name?: string | null | undefined;
28
+ identifier?: string | null | undefined;
29
+ subSystem?: string | null | undefined;
30
+ }>>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name?: string | null | undefined;
33
+ description?: string | null | undefined;
34
+ isShared?: boolean | null | undefined;
35
+ sourceSystem?: {
36
+ name?: string | null | undefined;
37
+ identifier?: string | null | undefined;
38
+ subSystem?: string | null | undefined;
39
+ } | null | undefined;
40
+ payload?: string | undefined;
41
+ }, {
42
+ name?: string | null | undefined;
43
+ description?: string | null | undefined;
44
+ isShared?: boolean | null | undefined;
45
+ sourceSystem?: {
46
+ name?: string | null | undefined;
47
+ identifier?: string | null | undefined;
48
+ subSystem?: string | null | undefined;
49
+ } | null | undefined;
50
+ payload?: string | Record<string, unknown> | null | undefined;
51
+ }>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ bookmarkId: string;
54
+ updates: {
55
+ name?: string | null | undefined;
56
+ description?: string | null | undefined;
57
+ isShared?: boolean | null | undefined;
58
+ sourceSystem?: {
59
+ name?: string | null | undefined;
60
+ identifier?: string | null | undefined;
61
+ subSystem?: string | null | undefined;
62
+ } | null | undefined;
63
+ payload?: string | undefined;
64
+ };
65
+ }, {
66
+ bookmarkId: string;
67
+ updates: {
68
+ name?: string | null | undefined;
69
+ description?: string | null | undefined;
70
+ isShared?: boolean | null | undefined;
71
+ sourceSystem?: {
72
+ name?: string | null | undefined;
73
+ identifier?: string | null | undefined;
74
+ subSystem?: string | null | undefined;
75
+ } | null | undefined;
76
+ payload?: string | Record<string, unknown> | null | undefined;
77
+ };
78
+ }>;
79
+ };
80
+ /** Schema for the response from the API. */
81
+ declare const ApiResponseSchema: {
82
+ "1.0": z.ZodIntersection<z.ZodObject<{
83
+ id: z.ZodString;
84
+ name: z.ZodString;
85
+ appKey: z.ZodString;
86
+ description: z.ZodOptional<z.ZodString>;
87
+ isShared: z.ZodOptional<z.ZodBoolean>;
88
+ context: z.ZodOptional<z.ZodObject<{
89
+ id: z.ZodString;
90
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ type?: string | null | undefined;
95
+ name?: string | null | undefined;
96
+ }, {
97
+ id: string;
98
+ type?: string | null | undefined;
99
+ name?: string | null | undefined;
100
+ }>>;
101
+ createdBy: z.ZodObject<{
102
+ azureUniqueId: z.ZodString;
103
+ name: z.ZodString;
104
+ mail: z.ZodOptional<z.ZodString>;
105
+ phoneNumber: z.ZodOptional<z.ZodString>;
106
+ jobTitle: z.ZodOptional<z.ZodString>;
107
+ accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
108
+ accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ azureUniqueId: string;
111
+ name: string;
112
+ mail?: string | undefined;
113
+ phoneNumber?: string | undefined;
114
+ jobTitle?: string | undefined;
115
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
116
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
117
+ }, {
118
+ azureUniqueId: string;
119
+ name: string;
120
+ mail?: string | undefined;
121
+ phoneNumber?: string | undefined;
122
+ jobTitle?: string | undefined;
123
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
124
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
125
+ }>;
126
+ updatedBy: z.ZodOptional<z.ZodObject<{
127
+ azureUniqueId: z.ZodString;
128
+ name: z.ZodString;
129
+ mail: z.ZodOptional<z.ZodString>;
130
+ phoneNumber: z.ZodOptional<z.ZodString>;
131
+ jobTitle: z.ZodOptional<z.ZodString>;
132
+ accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
133
+ accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ azureUniqueId: string;
136
+ name: string;
137
+ mail?: string | undefined;
138
+ phoneNumber?: string | undefined;
139
+ jobTitle?: string | undefined;
140
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
141
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
142
+ }, {
143
+ azureUniqueId: string;
144
+ name: string;
145
+ mail?: string | undefined;
146
+ phoneNumber?: string | undefined;
147
+ jobTitle?: string | undefined;
148
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
149
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
150
+ }>>;
151
+ created: z.ZodEffects<z.ZodString, Date, string>;
152
+ updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
153
+ sourceSystem: z.ZodOptional<z.ZodObject<{
154
+ identifier: z.ZodString;
155
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ identifier: string;
159
+ name?: string | null | undefined;
160
+ subSystem?: string | null | undefined;
161
+ }, {
162
+ identifier: string;
163
+ name?: string | null | undefined;
164
+ subSystem?: string | null | undefined;
165
+ }>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ id: string;
168
+ name: string;
169
+ appKey: string;
170
+ createdBy: {
171
+ azureUniqueId: string;
172
+ name: string;
173
+ mail?: string | undefined;
174
+ phoneNumber?: string | undefined;
175
+ jobTitle?: string | undefined;
176
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
177
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
178
+ };
179
+ created: Date;
180
+ description?: string | undefined;
181
+ isShared?: boolean | undefined;
182
+ context?: {
183
+ id: string;
184
+ type?: string | null | undefined;
185
+ name?: string | null | undefined;
186
+ } | undefined;
187
+ updatedBy?: {
188
+ azureUniqueId: string;
189
+ name: string;
190
+ mail?: string | undefined;
191
+ phoneNumber?: string | undefined;
192
+ jobTitle?: string | undefined;
193
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
194
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
195
+ } | undefined;
196
+ updated?: Date | undefined;
197
+ sourceSystem?: {
198
+ identifier: string;
199
+ name?: string | null | undefined;
200
+ subSystem?: string | null | undefined;
201
+ } | undefined;
202
+ }, {
203
+ id: string;
204
+ name: string;
205
+ appKey: string;
206
+ createdBy: {
207
+ azureUniqueId: string;
208
+ name: string;
209
+ mail?: string | undefined;
210
+ phoneNumber?: string | undefined;
211
+ jobTitle?: string | undefined;
212
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
213
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
214
+ };
215
+ created: string;
216
+ description?: string | undefined;
217
+ isShared?: boolean | undefined;
218
+ context?: {
219
+ id: string;
220
+ type?: string | null | undefined;
221
+ name?: string | null | undefined;
222
+ } | undefined;
223
+ updatedBy?: {
224
+ azureUniqueId: string;
225
+ name: string;
226
+ mail?: string | undefined;
227
+ phoneNumber?: string | undefined;
228
+ jobTitle?: string | undefined;
229
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
230
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
231
+ } | undefined;
232
+ updated?: string | undefined;
233
+ sourceSystem?: {
234
+ identifier: string;
235
+ name?: string | null | undefined;
236
+ subSystem?: string | null | undefined;
237
+ } | undefined;
238
+ }>, z.ZodObject<{
239
+ payload: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, any, string | Record<string, unknown> | undefined>>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ payload?: any;
242
+ }, {
243
+ payload?: string | Record<string, unknown> | undefined;
244
+ }>>;
245
+ };
246
+ /** Defines the expected output from the api. */
247
+ type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
248
+ /** Defines the input arguments to this operation. */
249
+ type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
250
+ /** Defines the expected output of this operation. */
251
+ type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
252
+ /** executes the api call */
253
+ 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;
254
+ export { AllowedVersions as PatchBookmarkVersion, MethodArg as PatchBookmarkArg, ApiResponse as PatchBookmarkResponse, MethodResult as PatchBookmarksResult, executeApiCall as patchBookmark, };
@@ -0,0 +1,231 @@
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
+ name: z.ZodString;
13
+ appKey: z.ZodString;
14
+ payload: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ isShared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
+ contextId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ identifier: z.ZodString;
20
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ identifier: string;
24
+ name?: string | null | undefined;
25
+ subSystem?: string | null | undefined;
26
+ }, {
27
+ identifier: string;
28
+ name?: string | null | undefined;
29
+ subSystem?: string | null | undefined;
30
+ }>>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name: string;
33
+ appKey: string;
34
+ description?: string | null | undefined;
35
+ isShared?: boolean | null | undefined;
36
+ sourceSystem?: {
37
+ identifier: string;
38
+ name?: string | null | undefined;
39
+ subSystem?: string | null | undefined;
40
+ } | null | undefined;
41
+ contextId?: string | null | undefined;
42
+ payload?: string | Record<string, unknown> | undefined;
43
+ }, {
44
+ name: string;
45
+ appKey: string;
46
+ description?: string | null | undefined;
47
+ isShared?: boolean | null | undefined;
48
+ sourceSystem?: {
49
+ identifier: string;
50
+ name?: string | null | undefined;
51
+ subSystem?: string | null | undefined;
52
+ } | null | undefined;
53
+ contextId?: string | null | undefined;
54
+ payload?: string | Record<string, unknown> | undefined;
55
+ }>;
56
+ };
57
+ /** Schema for the response from the API. */
58
+ declare const ApiResponseSchema: {
59
+ "1.0": z.ZodIntersection<z.ZodObject<{
60
+ id: z.ZodString;
61
+ name: z.ZodString;
62
+ appKey: z.ZodString;
63
+ description: z.ZodOptional<z.ZodString>;
64
+ isShared: z.ZodOptional<z.ZodBoolean>;
65
+ context: z.ZodOptional<z.ZodObject<{
66
+ id: z.ZodString;
67
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ id: string;
71
+ type?: string | null | undefined;
72
+ name?: string | null | undefined;
73
+ }, {
74
+ id: string;
75
+ type?: string | null | undefined;
76
+ name?: string | null | undefined;
77
+ }>>;
78
+ createdBy: z.ZodObject<{
79
+ azureUniqueId: z.ZodString;
80
+ name: z.ZodString;
81
+ mail: z.ZodOptional<z.ZodString>;
82
+ phoneNumber: z.ZodOptional<z.ZodString>;
83
+ jobTitle: z.ZodOptional<z.ZodString>;
84
+ accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
85
+ accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ azureUniqueId: string;
88
+ name: string;
89
+ mail?: string | undefined;
90
+ phoneNumber?: string | undefined;
91
+ jobTitle?: string | undefined;
92
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
93
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
94
+ }, {
95
+ azureUniqueId: string;
96
+ name: string;
97
+ mail?: string | undefined;
98
+ phoneNumber?: string | undefined;
99
+ jobTitle?: string | undefined;
100
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
101
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
102
+ }>;
103
+ updatedBy: z.ZodOptional<z.ZodObject<{
104
+ azureUniqueId: z.ZodString;
105
+ name: z.ZodString;
106
+ mail: z.ZodOptional<z.ZodString>;
107
+ phoneNumber: z.ZodOptional<z.ZodString>;
108
+ jobTitle: z.ZodOptional<z.ZodString>;
109
+ accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
110
+ accountClassification: z.ZodOptional<z.ZodEnum<["Unclassified", "Internal", "External"]>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ azureUniqueId: string;
113
+ name: string;
114
+ mail?: string | undefined;
115
+ phoneNumber?: string | undefined;
116
+ jobTitle?: string | undefined;
117
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
118
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
119
+ }, {
120
+ azureUniqueId: string;
121
+ name: string;
122
+ mail?: string | undefined;
123
+ phoneNumber?: string | undefined;
124
+ jobTitle?: string | undefined;
125
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
126
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
127
+ }>>;
128
+ created: z.ZodEffects<z.ZodString, Date, string>;
129
+ updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
130
+ sourceSystem: z.ZodOptional<z.ZodObject<{
131
+ identifier: z.ZodString;
132
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ identifier: string;
136
+ name?: string | null | undefined;
137
+ subSystem?: string | null | undefined;
138
+ }, {
139
+ identifier: string;
140
+ name?: string | null | undefined;
141
+ subSystem?: string | null | undefined;
142
+ }>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ id: string;
145
+ name: string;
146
+ appKey: string;
147
+ createdBy: {
148
+ azureUniqueId: string;
149
+ name: string;
150
+ mail?: string | undefined;
151
+ phoneNumber?: string | undefined;
152
+ jobTitle?: string | undefined;
153
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
154
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
155
+ };
156
+ created: Date;
157
+ description?: string | undefined;
158
+ isShared?: boolean | undefined;
159
+ context?: {
160
+ id: string;
161
+ type?: string | null | undefined;
162
+ name?: string | null | undefined;
163
+ } | undefined;
164
+ updatedBy?: {
165
+ azureUniqueId: string;
166
+ name: string;
167
+ mail?: string | undefined;
168
+ phoneNumber?: string | undefined;
169
+ jobTitle?: string | undefined;
170
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
171
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
172
+ } | undefined;
173
+ updated?: Date | undefined;
174
+ sourceSystem?: {
175
+ identifier: string;
176
+ name?: string | null | undefined;
177
+ subSystem?: string | null | undefined;
178
+ } | undefined;
179
+ }, {
180
+ id: string;
181
+ name: string;
182
+ appKey: string;
183
+ createdBy: {
184
+ azureUniqueId: string;
185
+ name: string;
186
+ mail?: string | undefined;
187
+ phoneNumber?: string | undefined;
188
+ jobTitle?: string | undefined;
189
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
190
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
191
+ };
192
+ created: string;
193
+ description?: string | undefined;
194
+ isShared?: boolean | undefined;
195
+ context?: {
196
+ id: string;
197
+ type?: string | null | undefined;
198
+ name?: string | null | undefined;
199
+ } | undefined;
200
+ updatedBy?: {
201
+ azureUniqueId: string;
202
+ name: string;
203
+ mail?: string | undefined;
204
+ phoneNumber?: string | undefined;
205
+ jobTitle?: string | undefined;
206
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
207
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
208
+ } | undefined;
209
+ updated?: string | undefined;
210
+ sourceSystem?: {
211
+ identifier: string;
212
+ name?: string | null | undefined;
213
+ subSystem?: string | null | undefined;
214
+ } | undefined;
215
+ }>, z.ZodObject<{
216
+ payload: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, any, string | Record<string, unknown> | undefined>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ payload?: any;
219
+ }, {
220
+ payload?: string | Record<string, unknown> | undefined;
221
+ }>>;
222
+ };
223
+ /** Defines the expected output from the api. */
224
+ type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
225
+ /** Defines the input arguments to this operation. */
226
+ type MethodArg<TVersion extends AllowedVersions> = z.input<(typeof ArgSchema)[ExtractApiVersion<TVersion>]>;
227
+ /** Defines the expected output of this operation. */
228
+ type MethodResult<TVersion extends AllowedVersions, TMethod extends keyof ClientMethod<unknown> = keyof ClientMethod<unknown>, TResult = ApiResponse<TVersion>> = ClientMethod<TResult>[TMethod];
229
+ /** executes the api call */
230
+ 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;
231
+ export { AllowedVersions as CreateBookmarkVersion, MethodArg as CreateBookmarkArg, ApiResponse as CreateBookmarkResponse, MethodResult as CreateBookmarksResult, executeApiCall as createBookmark, };
@@ -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 RemoveBookmarkFavouriteVersion, MethodArg as RemoveBookmarkFavouriteArgs, ApiResponse as RemoveBookmarkFavouriteResponse, MethodResult as RemoveBookmarkFavouriteResult, executeApiCall as removeFavoriteBookmark, };
@@ -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 IsFavoriteBookmarkVersion, MethodArg as IsFavoriteBookmarkArgs, ApiResponse as IsFavoriteBookmarkResponse, MethodResult as IsFavoriteBookmarkResult, executeApiCall as isFavoriteBookmark, };
@@ -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 AddBookmarkFavouriteVersion, MethodArg as AddBookmarkFavouriteArgs, ApiResponse as AddBookmarkFavouriteResponse, MethodResult as AddBookmarkFavouriteResult, executeApiCall as addBookmarkAsFavourite, };