@ndla/types-backend 1.0.151 → 1.0.153

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.
@@ -312,6 +312,26 @@ export type paths = {
312
312
  patch?: never;
313
313
  trace?: never;
314
314
  };
315
+ "/image-api/v3/images/users/editors": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ /**
323
+ * Get list of users that have edited images
324
+ * @description Get list of user IDs from updatedBy and editor notes in images
325
+ */
326
+ get: operations["getImage-apiV3ImagesUsersEditors"];
327
+ put?: never;
328
+ post?: never;
329
+ delete?: never;
330
+ options?: never;
331
+ head?: never;
332
+ patch?: never;
333
+ trace?: never;
334
+ };
315
335
  "/image-api/raw/id/{image_id}": {
316
336
  parameters: {
317
337
  query?: never;
@@ -573,6 +593,14 @@ export type components = {
573
593
  */
574
594
  height: number;
575
595
  };
596
+ /**
597
+ * ImageEditorsDTO
598
+ * @description A list of image editors
599
+ */
600
+ ImageEditorsDTO: {
601
+ /** @description The user ids of the editors */
602
+ ids?: string[];
603
+ };
576
604
  /**
577
605
  * ImageFileDTO
578
606
  * @description Describes the image file
@@ -1042,6 +1070,7 @@ export type ImageAltTextDTO = components['schemas']['ImageAltTextDTO'];
1042
1070
  export type ImageCaptionDTO = components['schemas']['ImageCaptionDTO'];
1043
1071
  export type ImageContentType = components['schemas']['ImageContentType'];
1044
1072
  export type ImageDimensionsDTO = components['schemas']['ImageDimensionsDTO'];
1073
+ export type ImageEditorsDTO = components['schemas']['ImageEditorsDTO'];
1045
1074
  export type ImageFileDTO = components['schemas']['ImageFileDTO'];
1046
1075
  export type ImageMetaInformationV2DTO = components['schemas']['ImageMetaInformationV2DTO'];
1047
1076
  export type ImageMetaInformationV3DTO = components['schemas']['ImageMetaInformationV3DTO'];
@@ -2341,6 +2370,65 @@ export interface operations {
2341
2370
  };
2342
2371
  };
2343
2372
  };
2373
+ "getImage-apiV3ImagesUsersEditors": {
2374
+ parameters: {
2375
+ query?: never;
2376
+ header?: never;
2377
+ path?: never;
2378
+ cookie?: never;
2379
+ };
2380
+ requestBody?: never;
2381
+ responses: {
2382
+ 200: {
2383
+ headers: {
2384
+ [name: string]: unknown;
2385
+ };
2386
+ content: {
2387
+ "application/json": components["schemas"]["ImageEditorsDTO"];
2388
+ };
2389
+ };
2390
+ 400: {
2391
+ headers: {
2392
+ [name: string]: unknown;
2393
+ };
2394
+ content: {
2395
+ "application/json": components["schemas"]["AllErrors"];
2396
+ };
2397
+ };
2398
+ 401: {
2399
+ headers: {
2400
+ [name: string]: unknown;
2401
+ };
2402
+ content: {
2403
+ "application/json": components["schemas"]["AllErrors"];
2404
+ };
2405
+ };
2406
+ 403: {
2407
+ headers: {
2408
+ [name: string]: unknown;
2409
+ };
2410
+ content: {
2411
+ "application/json": components["schemas"]["AllErrors"];
2412
+ };
2413
+ };
2414
+ 404: {
2415
+ headers: {
2416
+ [name: string]: unknown;
2417
+ };
2418
+ content: {
2419
+ "application/json": components["schemas"]["AllErrors"];
2420
+ };
2421
+ };
2422
+ default: {
2423
+ headers: {
2424
+ [name: string]: unknown;
2425
+ };
2426
+ content: {
2427
+ "application/json": components["schemas"]["AllErrors"];
2428
+ };
2429
+ };
2430
+ };
2431
+ };
2344
2432
  "getImage-apiRawIdImage_id": {
2345
2433
  parameters: {
2346
2434
  query?: {
@@ -2268,7 +2268,7 @@ export type components = {
2268
2268
  * @description The ID of this element in the system where the content is stored. This ID should be of the form 'urn:<system>:<id>', where <system> is a short identifier for the system, and <id> is the id of this content in that system.
2269
2269
  * @example urn:article:1
2270
2270
  */
2271
- contentUri: string;
2271
+ contentUri?: string | null;
2272
2272
  /** @description Is this an exact match for the provided path? False if this is another path to the same resource. */
2273
2273
  exactMatch: boolean;
2274
2274
  /**
@@ -2555,7 +2555,7 @@ export type components = {
2555
2555
  * @description Subject URN for resource in new system (optional)
2556
2556
  * @example urn:subject:5
2557
2557
  */
2558
- subjectId: string;
2558
+ subjectId?: string | null;
2559
2559
  /**
2560
2560
  * @description URL for resource in old system
2561
2561
  * @example ndla.no/nb/node/183926?fag=127013
package/package.json CHANGED
@@ -33,6 +33,6 @@
33
33
  "tsx": "^4.21.0",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
- "version": "1.0.151",
36
+ "version": "1.0.153",
37
37
  "packageManager": "yarn@4.10.3"
38
38
  }