@ndla/types-backend 1.0.115 → 1.0.117

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.
@@ -483,6 +483,46 @@ export type paths = {
483
483
  patch?: never;
484
484
  trace?: never;
485
485
  };
486
+ "/myndla-api/v1/folders/resources/move/batch": {
487
+ parameters: {
488
+ query?: never;
489
+ header?: never;
490
+ path?: never;
491
+ cookie?: never;
492
+ };
493
+ get?: never;
494
+ /**
495
+ * Move several resources from one folder to another
496
+ * @description Move several resources from one folder to another
497
+ */
498
+ put: operations["putMyndla-apiV1FoldersResourcesMoveBatch"];
499
+ post?: never;
500
+ delete?: never;
501
+ options?: never;
502
+ head?: never;
503
+ patch?: never;
504
+ trace?: never;
505
+ };
506
+ "/myndla-api/v1/folders/resources/copy/batch": {
507
+ parameters: {
508
+ query?: never;
509
+ header?: never;
510
+ path?: never;
511
+ cookie?: never;
512
+ };
513
+ get?: never;
514
+ /**
515
+ * Copy several resources from one folder to another
516
+ * @description Copy several resources from one folder to another
517
+ */
518
+ put: operations["putMyndla-apiV1FoldersResourcesCopyBatch"];
519
+ post?: never;
520
+ delete?: never;
521
+ options?: never;
522
+ head?: never;
523
+ patch?: never;
524
+ trace?: never;
525
+ };
486
526
  "/myndla-api/v1/robots": {
487
527
  parameters: {
488
528
  query?: never;
@@ -773,6 +813,16 @@ export type components = {
773
813
  /** @description Value to set configuration param to. */
774
814
  value: string[] | boolean;
775
815
  };
816
+ /** CopyResourcesDTO */
817
+ CopyResourcesDTO: {
818
+ /**
819
+ * Format: uuid
820
+ * @description Folder to move to. Empty value moves resource to root.
821
+ */
822
+ toFolderId: string | null;
823
+ /** @description The resources to move */
824
+ resourceIds: string[];
825
+ };
776
826
  /**
777
827
  * CreateRobotDefinitionDTO
778
828
  * @description DTO for creating a new robot definition
@@ -888,6 +938,21 @@ export type components = {
888
938
  */
889
939
  resourceId: string;
890
940
  };
941
+ /** MoveResourcesDTO */
942
+ MoveResourcesDTO: {
943
+ /**
944
+ * Format: uuid
945
+ * @description Folder to move from. Empty value indicates root-resource.
946
+ */
947
+ fromFolderId: string | null;
948
+ /**
949
+ * Format: uuid
950
+ * @description Folder to move to. Empty value moves resource to root.
951
+ */
952
+ toFolderId: string | null;
953
+ /** @description The resources to move */
954
+ resourceIds: string[];
955
+ };
891
956
  /** MyNDLAGroupDTO */
892
957
  MyNDLAGroupDTO: {
893
958
  /** @description ID of the group */
@@ -1254,6 +1319,7 @@ export type ConfigKey = components['schemas']['ConfigKey'];
1254
1319
  export type ConfigMetaDTO = components['schemas']['ConfigMetaDTO'];
1255
1320
  export type ConfigMetaRestrictedDTO = components['schemas']['ConfigMetaRestrictedDTO'];
1256
1321
  export type ConfigMetaValueDTO = components['schemas']['ConfigMetaValueDTO'];
1322
+ export type CopyResourcesDTO = components['schemas']['CopyResourcesDTO'];
1257
1323
  export type CreateRobotDefinitionDTO = components['schemas']['CreateRobotDefinitionDTO'];
1258
1324
  export type ErrorBody = components['schemas']['ErrorBody'];
1259
1325
  export type ExportedUserDataDTO = components['schemas']['ExportedUserDataDTO'];
@@ -1265,6 +1331,7 @@ export type ListOfRobotDefinitionsDTO = components['schemas']['ListOfRobotDefini
1265
1331
  export type Map_Long = components['schemas']['Map_Long'];
1266
1332
  export type Map_Map_String_Long = components['schemas']['Map_Map_String_Long'];
1267
1333
  export type MoveResourceDTO = components['schemas']['MoveResourceDTO'];
1334
+ export type MoveResourcesDTO = components['schemas']['MoveResourcesDTO'];
1268
1335
  export type MyNDLAGroupDTO = components['schemas']['MyNDLAGroupDTO'];
1269
1336
  export type MyNDLAUserDTO = components['schemas']['MyNDLAUserDTO'];
1270
1337
  export type NewFolderDTO = components['schemas']['NewFolderDTO'];
@@ -3226,6 +3293,128 @@ export interface operations {
3226
3293
  };
3227
3294
  };
3228
3295
  };
3296
+ "putMyndla-apiV1FoldersResourcesMoveBatch": {
3297
+ parameters: {
3298
+ query?: never;
3299
+ header?: never;
3300
+ path?: never;
3301
+ cookie?: never;
3302
+ };
3303
+ requestBody: {
3304
+ content: {
3305
+ "application/json": components["schemas"]["MoveResourcesDTO"];
3306
+ };
3307
+ };
3308
+ responses: {
3309
+ 204: {
3310
+ headers: {
3311
+ [name: string]: unknown;
3312
+ };
3313
+ content?: never;
3314
+ };
3315
+ 400: {
3316
+ headers: {
3317
+ [name: string]: unknown;
3318
+ };
3319
+ content: {
3320
+ "application/json": components["schemas"]["AllErrors"];
3321
+ };
3322
+ };
3323
+ 401: {
3324
+ headers: {
3325
+ [name: string]: unknown;
3326
+ };
3327
+ content: {
3328
+ "application/json": components["schemas"]["AllErrors"];
3329
+ };
3330
+ };
3331
+ 403: {
3332
+ headers: {
3333
+ [name: string]: unknown;
3334
+ };
3335
+ content: {
3336
+ "application/json": components["schemas"]["AllErrors"];
3337
+ };
3338
+ };
3339
+ 404: {
3340
+ headers: {
3341
+ [name: string]: unknown;
3342
+ };
3343
+ content: {
3344
+ "application/json": components["schemas"]["AllErrors"];
3345
+ };
3346
+ };
3347
+ default: {
3348
+ headers: {
3349
+ [name: string]: unknown;
3350
+ };
3351
+ content: {
3352
+ "application/json": components["schemas"]["AllErrors"];
3353
+ };
3354
+ };
3355
+ };
3356
+ };
3357
+ "putMyndla-apiV1FoldersResourcesCopyBatch": {
3358
+ parameters: {
3359
+ query?: never;
3360
+ header?: never;
3361
+ path?: never;
3362
+ cookie?: never;
3363
+ };
3364
+ requestBody: {
3365
+ content: {
3366
+ "application/json": components["schemas"]["CopyResourcesDTO"];
3367
+ };
3368
+ };
3369
+ responses: {
3370
+ 204: {
3371
+ headers: {
3372
+ [name: string]: unknown;
3373
+ };
3374
+ content?: never;
3375
+ };
3376
+ 400: {
3377
+ headers: {
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content: {
3381
+ "application/json": components["schemas"]["AllErrors"];
3382
+ };
3383
+ };
3384
+ 401: {
3385
+ headers: {
3386
+ [name: string]: unknown;
3387
+ };
3388
+ content: {
3389
+ "application/json": components["schemas"]["AllErrors"];
3390
+ };
3391
+ };
3392
+ 403: {
3393
+ headers: {
3394
+ [name: string]: unknown;
3395
+ };
3396
+ content: {
3397
+ "application/json": components["schemas"]["AllErrors"];
3398
+ };
3399
+ };
3400
+ 404: {
3401
+ headers: {
3402
+ [name: string]: unknown;
3403
+ };
3404
+ content: {
3405
+ "application/json": components["schemas"]["AllErrors"];
3406
+ };
3407
+ };
3408
+ default: {
3409
+ headers: {
3410
+ [name: string]: unknown;
3411
+ };
3412
+ content: {
3413
+ "application/json": components["schemas"]["AllErrors"];
3414
+ };
3415
+ };
3416
+ };
3417
+ };
3229
3418
  "getMyndla-apiV1Robots": {
3230
3419
  parameters: {
3231
3420
  query?: never;
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "tsx": "^4.21.0",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
- "version": "1.0.115",
35
+ "version": "1.0.117",
36
36
  "packageManager": "yarn@4.10.3"
37
37
  }