@equinor/fusion-framework-module-services 7.0.2 → 7.1.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 (35) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/esm/bookmarks/client.js.map +1 -1
  3. package/dist/esm/bookmarks/endpoints/bookmark.get.js.map +1 -1
  4. package/dist/esm/bookmarks/endpoints/bookmark.patch.js +1 -1
  5. package/dist/esm/bookmarks/endpoints/bookmark.patch.js.map +1 -1
  6. package/dist/esm/bookmarks/endpoints/bookmark.post.js +1 -1
  7. package/dist/esm/bookmarks/endpoints/bookmark.post.js.map +1 -1
  8. package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js +3 -1
  9. package/dist/esm/bookmarks/endpoints/user-bookmarks.get.js.map +1 -1
  10. package/dist/esm/bookmarks/schemas.js +1 -1
  11. package/dist/esm/bookmarks/schemas.js.map +1 -1
  12. package/dist/esm/utils.js.map +1 -1
  13. package/dist/esm/version.js +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/bookmarks/endpoints/bookmark-apply.get.d.ts +3 -13
  16. package/dist/types/bookmarks/endpoints/bookmark.delete.d.ts +1 -5
  17. package/dist/types/bookmarks/endpoints/bookmark.get.d.ts +66 -274
  18. package/dist/types/bookmarks/endpoints/bookmark.patch.d.ts +37 -195
  19. package/dist/types/bookmarks/endpoints/bookmark.post.d.ts +35 -171
  20. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.delete.d.ts +1 -5
  21. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.head.d.ts +1 -5
  22. package/dist/types/bookmarks/endpoints/user-bookmark-favourite.post.d.ts +1 -5
  23. package/dist/types/bookmarks/endpoints/user-bookmarks.get.d.ts +74 -349
  24. package/dist/types/bookmarks/schemas.d.ts +79 -301
  25. package/dist/types/utils.d.ts +1 -1
  26. package/dist/types/version.d.ts +1 -1
  27. package/package.json +4 -4
  28. package/src/bookmarks/client.ts +1 -1
  29. package/src/bookmarks/endpoints/bookmark.get.ts +2 -2
  30. package/src/bookmarks/endpoints/bookmark.patch.ts +1 -1
  31. package/src/bookmarks/endpoints/bookmark.post.ts +1 -1
  32. package/src/bookmarks/endpoints/user-bookmarks.get.ts +7 -5
  33. package/src/bookmarks/schemas.ts +1 -1
  34. package/src/utils.ts +2 -4
  35. package/src/version.ts +1 -1
@@ -10,24 +10,14 @@ type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
10
10
  declare const ArgSchema: {
11
11
  "1.0": z.ZodObject<{
12
12
  bookmarkId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- bookmarkId: string;
15
- }, {
16
- bookmarkId: string;
17
- }>;
13
+ }, z.core.$strip>;
18
14
  };
19
15
  /** Schema for the response from the API. */
20
16
  declare const ApiResponseSchema: {
21
17
  "1.0": z.ZodObject<{
22
18
  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
- }>;
19
+ payload: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>>, z.ZodTransform<any, string | Record<string, unknown>>>;
20
+ }, z.core.$strip>;
31
21
  };
32
22
  /** Defines the expected output from the api. */
33
23
  type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;
@@ -10,11 +10,7 @@ type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
10
10
  declare const ArgSchema: {
11
11
  "1.0": z.ZodObject<{
12
12
  bookmarkId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- bookmarkId: string;
15
- }, {
16
- bookmarkId: string;
17
- }>;
13
+ }, z.core.$strip>;
18
14
  };
19
15
  /** Schema for the response from the API. */
20
16
  declare const ApiResponseSchema: {
@@ -8,20 +8,12 @@ type AvailableVersions = ApiVersion.v1 | ApiVersion.v2;
8
8
  type AllowedVersions = FilterAllowedApiVersions<AvailableVersions>;
9
9
  /** Schema for the input arguments to this operation. */
10
10
  declare const ArgSchema: {
11
- "1.0": z.ZodObject<{
11
+ readonly "1.0": z.ZodObject<{
12
12
  bookmarkId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- bookmarkId: string;
15
- }, {
16
- bookmarkId: string;
17
- }>;
18
- "2.0": z.ZodObject<{
13
+ }, z.core.$strip>;
14
+ readonly "2.0": z.ZodObject<{
19
15
  bookmarkId: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- bookmarkId: string;
22
- }, {
23
- bookmarkId: string;
24
- }>;
16
+ }, z.core.$strip>;
25
17
  };
26
18
  /** Schema for the response from the API. */
27
19
  declare const ApiResponseSchema: {
@@ -35,153 +27,53 @@ declare const ApiResponseSchema: {
35
27
  id: z.ZodString;
36
28
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
29
  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
- }>>;
30
+ }, z.core.$strip>>;
47
31
  createdBy: z.ZodObject<{
48
32
  azureUniqueId: z.ZodString;
49
33
  name: z.ZodString;
50
34
  mail: z.ZodOptional<z.ZodString>;
51
35
  phoneNumber: z.ZodOptional<z.ZodString>;
52
36
  jobTitle: z.ZodOptional<z.ZodString>;
53
- accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
54
- accountClassification: z.ZodOptional<z.ZodNullable<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" | null | 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" | null | undefined;
71
- }>;
37
+ accountType: z.ZodOptional<z.ZodEnum<{
38
+ Employee: "Employee";
39
+ Consultant: "Consultant";
40
+ External: "External";
41
+ Application: "Application";
42
+ Local: "Local";
43
+ }>>;
44
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
45
+ External: "External";
46
+ Unclassified: "Unclassified";
47
+ Internal: "Internal";
48
+ }>>>;
49
+ }, z.core.$strip>;
72
50
  updatedBy: z.ZodOptional<z.ZodObject<{
73
51
  azureUniqueId: z.ZodString;
74
52
  name: z.ZodString;
75
53
  mail: z.ZodOptional<z.ZodString>;
76
54
  phoneNumber: z.ZodOptional<z.ZodString>;
77
55
  jobTitle: z.ZodOptional<z.ZodString>;
78
- accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
79
- accountClassification: z.ZodOptional<z.ZodNullable<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" | null | 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" | null | undefined;
96
- }>>;
97
- created: z.ZodEffects<z.ZodString, Date, string>;
98
- updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
56
+ accountType: z.ZodOptional<z.ZodEnum<{
57
+ Employee: "Employee";
58
+ Consultant: "Consultant";
59
+ External: "External";
60
+ Application: "Application";
61
+ Local: "Local";
62
+ }>>;
63
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
64
+ External: "External";
65
+ Unclassified: "Unclassified";
66
+ Internal: "Internal";
67
+ }>>>;
68
+ }, z.core.$strip>>;
69
+ created: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
70
+ updated: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
99
71
  sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
100
72
  identifier: z.ZodString;
101
73
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
74
  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" | null | 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" | null | undefined;
141
- } | undefined;
142
- updated?: Date | undefined;
143
- sourceSystem?: {
144
- identifier: string;
145
- name?: string | null | undefined;
146
- subSystem?: string | null | undefined;
147
- } | null | 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" | null | 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" | null | undefined;
177
- } | undefined;
178
- updated?: string | undefined;
179
- sourceSystem?: {
180
- identifier: string;
181
- name?: string | null | undefined;
182
- subSystem?: string | null | undefined;
183
- } | null | undefined;
184
- }>;
75
+ }, z.core.$strip>>>;
76
+ }, z.core.$strip>;
185
77
  "2.0": z.ZodObject<{
186
78
  id: z.ZodString;
187
79
  name: z.ZodString;
@@ -192,153 +84,53 @@ declare const ApiResponseSchema: {
192
84
  id: z.ZodString;
193
85
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
86
  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
- }>>;
87
+ }, z.core.$strip>>;
204
88
  createdBy: z.ZodObject<{
205
89
  azureUniqueId: z.ZodString;
206
90
  name: z.ZodString;
207
91
  mail: z.ZodOptional<z.ZodString>;
208
92
  phoneNumber: z.ZodOptional<z.ZodString>;
209
93
  jobTitle: z.ZodOptional<z.ZodString>;
210
- accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
211
- accountClassification: z.ZodOptional<z.ZodNullable<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" | null | 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" | null | undefined;
228
- }>;
94
+ accountType: z.ZodOptional<z.ZodEnum<{
95
+ Employee: "Employee";
96
+ Consultant: "Consultant";
97
+ External: "External";
98
+ Application: "Application";
99
+ Local: "Local";
100
+ }>>;
101
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
102
+ External: "External";
103
+ Unclassified: "Unclassified";
104
+ Internal: "Internal";
105
+ }>>>;
106
+ }, z.core.$strip>;
229
107
  updatedBy: z.ZodOptional<z.ZodObject<{
230
108
  azureUniqueId: z.ZodString;
231
109
  name: z.ZodString;
232
110
  mail: z.ZodOptional<z.ZodString>;
233
111
  phoneNumber: z.ZodOptional<z.ZodString>;
234
112
  jobTitle: z.ZodOptional<z.ZodString>;
235
- accountType: z.ZodOptional<z.ZodEnum<["Employee", "Consultant", "External", "Application", "Local"]>>;
236
- accountClassification: z.ZodOptional<z.ZodNullable<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" | null | 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" | null | undefined;
253
- }>>;
254
- created: z.ZodEffects<z.ZodString, Date, string>;
255
- updated: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
113
+ accountType: z.ZodOptional<z.ZodEnum<{
114
+ Employee: "Employee";
115
+ Consultant: "Consultant";
116
+ External: "External";
117
+ Application: "Application";
118
+ Local: "Local";
119
+ }>>;
120
+ accountClassification: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
121
+ External: "External";
122
+ Unclassified: "Unclassified";
123
+ Internal: "Internal";
124
+ }>>>;
125
+ }, z.core.$strip>>;
126
+ created: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
127
+ updated: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
256
128
  sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
257
129
  identifier: z.ZodString;
258
130
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
131
  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" | null | 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" | null | undefined;
298
- } | undefined;
299
- updated?: Date | undefined;
300
- sourceSystem?: {
301
- identifier: string;
302
- name?: string | null | undefined;
303
- subSystem?: string | null | undefined;
304
- } | null | 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" | null | 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" | null | undefined;
334
- } | undefined;
335
- updated?: string | undefined;
336
- sourceSystem?: {
337
- identifier: string;
338
- name?: string | null | undefined;
339
- subSystem?: string | null | undefined;
340
- } | null | undefined;
341
- }>;
132
+ }, z.core.$strip>>>;
133
+ }, z.core.$strip>;
342
134
  };
343
135
  /** Defines the expected output from the api. */
344
136
  type ApiResponse<TVersion extends AllowedVersions> = z.infer<(typeof ApiResponseSchema)[ExtractApiVersion<TVersion>]>;