@ndla/types-backend 1.0.111 → 1.0.113

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.
@@ -423,6 +423,26 @@ export type paths = {
423
423
  patch?: never;
424
424
  trace?: never;
425
425
  };
426
+ "/myndla-api/v1/folders/resources/move": {
427
+ parameters: {
428
+ query?: never;
429
+ header?: never;
430
+ path?: never;
431
+ cookie?: never;
432
+ };
433
+ get?: never;
434
+ /**
435
+ * Move a resource from one folder to another
436
+ * @description Move a resource from one folder to another
437
+ */
438
+ put: operations["putMyndla-apiV1FoldersResourcesMove"];
439
+ post?: never;
440
+ delete?: never;
441
+ options?: never;
442
+ head?: never;
443
+ patch?: never;
444
+ trace?: never;
445
+ };
426
446
  "/myndla-api/v1/robots": {
427
447
  parameters: {
428
448
  query?: never;
@@ -810,6 +830,24 @@ export type components = {
810
830
  Map_Map_String_Long: {
811
831
  [key: string]: components["schemas"]["Map_Long"];
812
832
  };
833
+ /** MoveResourceDTO */
834
+ MoveResourceDTO: {
835
+ /**
836
+ * Format: uuid
837
+ * @description Folder to move from. Empty value indicates root-resource.
838
+ */
839
+ fromFolderId?: string;
840
+ /**
841
+ * Format: uuid
842
+ * @description Folder to move to. Empty value moves resource to root.
843
+ */
844
+ toFolderId?: string;
845
+ /**
846
+ * Format: uuid
847
+ * @description The resource to move
848
+ */
849
+ resourceId: string;
850
+ };
813
851
  /** MyNDLAGroupDTO */
814
852
  MyNDLAGroupDTO: {
815
853
  /** @description ID of the group */
@@ -1186,6 +1224,7 @@ export type FolderStatus = components['schemas']['FolderStatus'];
1186
1224
  export type ListOfRobotDefinitionsDTO = components['schemas']['ListOfRobotDefinitionsDTO'];
1187
1225
  export type Map_Long = components['schemas']['Map_Long'];
1188
1226
  export type Map_Map_String_Long = components['schemas']['Map_Map_String_Long'];
1227
+ export type MoveResourceDTO = components['schemas']['MoveResourceDTO'];
1189
1228
  export type MyNDLAGroupDTO = components['schemas']['MyNDLAGroupDTO'];
1190
1229
  export type MyNDLAUserDTO = components['schemas']['MyNDLAUserDTO'];
1191
1230
  export type NewFolderDTO = components['schemas']['NewFolderDTO'];
@@ -2945,6 +2984,67 @@ export interface operations {
2945
2984
  };
2946
2985
  };
2947
2986
  };
2987
+ "putMyndla-apiV1FoldersResourcesMove": {
2988
+ parameters: {
2989
+ query?: never;
2990
+ header?: never;
2991
+ path?: never;
2992
+ cookie?: never;
2993
+ };
2994
+ requestBody: {
2995
+ content: {
2996
+ "application/json": components["schemas"]["MoveResourceDTO"];
2997
+ };
2998
+ };
2999
+ responses: {
3000
+ 204: {
3001
+ headers: {
3002
+ [name: string]: unknown;
3003
+ };
3004
+ content?: never;
3005
+ };
3006
+ 400: {
3007
+ headers: {
3008
+ [name: string]: unknown;
3009
+ };
3010
+ content: {
3011
+ "application/json": components["schemas"]["AllErrors"];
3012
+ };
3013
+ };
3014
+ 401: {
3015
+ headers: {
3016
+ [name: string]: unknown;
3017
+ };
3018
+ content: {
3019
+ "application/json": components["schemas"]["AllErrors"];
3020
+ };
3021
+ };
3022
+ 403: {
3023
+ headers: {
3024
+ [name: string]: unknown;
3025
+ };
3026
+ content: {
3027
+ "application/json": components["schemas"]["AllErrors"];
3028
+ };
3029
+ };
3030
+ 404: {
3031
+ headers: {
3032
+ [name: string]: unknown;
3033
+ };
3034
+ content: {
3035
+ "application/json": components["schemas"]["AllErrors"];
3036
+ };
3037
+ };
3038
+ default: {
3039
+ headers: {
3040
+ [name: string]: unknown;
3041
+ };
3042
+ content: {
3043
+ "application/json": components["schemas"]["AllErrors"];
3044
+ };
3045
+ };
3046
+ };
3047
+ };
2948
3048
  "getMyndla-apiV1Robots": {
2949
3049
  parameters: {
2950
3050
  query?: never;
@@ -197,6 +197,11 @@ export type components = {
197
197
  /** @description ISO 639-1 code that represents the language used in title */
198
198
  language: string;
199
199
  };
200
+ /**
201
+ * DraftSearchField
202
+ * @enum {string}
203
+ */
204
+ DraftSearchField: "title" | "introduction" | "metaDescription" | "disclaimer" | "content" | "tags" | "embedAttributes" | "creators" | "processors" | "rightsholders" | "revisionMeta" | "notes" | "previousNotes";
200
205
  /** DraftSearchParamsDTO */
201
206
  DraftSearchParamsDTO: {
202
207
  /**
@@ -223,6 +228,8 @@ export type components = {
223
228
  license?: string;
224
229
  /** @description Return only results with content matching the specified query. */
225
230
  query?: string;
231
+ /** @description Restrict query searches to the specified fields. If omitted or empty, all the fields are used. */
232
+ queryFields?: components["schemas"]["DraftSearchField"][];
226
233
  /** @description Return only results with notes matching the specified note-query. */
227
234
  noteQuery?: string;
228
235
  sort?: components["schemas"]["Sort"];
@@ -1080,6 +1087,7 @@ export type ApiTaxonomyContextDTO = components['schemas']['ApiTaxonomyContextDTO
1080
1087
  export type ArticleTrait = components['schemas']['ArticleTrait'];
1081
1088
  export type CommentDTO = components['schemas']['CommentDTO'];
1082
1089
  export type DescriptionDTO = components['schemas']['DescriptionDTO'];
1090
+ export type DraftSearchField = components['schemas']['DraftSearchField'];
1083
1091
  export type DraftSearchParamsDTO = components['schemas']['DraftSearchParamsDTO'];
1084
1092
  export type ErrorBody = components['schemas']['ErrorBody'];
1085
1093
  export type GrepFagkodeDTO = components['schemas']['GrepFagkodeDTO'];
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.111",
35
+ "version": "1.0.113",
36
36
  "packageManager": "yarn@4.10.3"
37
37
  }