@ndla/types-backend 1.0.108 → 1.0.110
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.
- package/build/article-api.d.ts +1 -1
- package/build/draft-api.d.ts +158 -0
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ export type components = {
|
|
|
262
262
|
*/
|
|
263
263
|
ArticleRevisionHistoryDTO: {
|
|
264
264
|
/** @description The revisions of an article, with the latest revision being the first in the list */
|
|
265
|
-
|
|
265
|
+
revisions: components["schemas"]["ArticleV2DTO"][];
|
|
266
266
|
};
|
|
267
267
|
/**
|
|
268
268
|
* ArticleSearchParamsDTO
|
package/build/draft-api.d.ts
CHANGED
|
@@ -496,6 +496,46 @@ export type paths = {
|
|
|
496
496
|
patch: operations["patchDraft-apiV1User-data"];
|
|
497
497
|
trace?: never;
|
|
498
498
|
};
|
|
499
|
+
"/draft-api/v1/user-data/responsibles": {
|
|
500
|
+
parameters: {
|
|
501
|
+
query?: never;
|
|
502
|
+
header?: never;
|
|
503
|
+
path?: never;
|
|
504
|
+
cookie?: never;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Get list of responsibles for drafts
|
|
508
|
+
* @description Get list of responsibles for drafts
|
|
509
|
+
*/
|
|
510
|
+
get: operations["getDraft-apiV1User-dataResponsibles"];
|
|
511
|
+
put?: never;
|
|
512
|
+
post?: never;
|
|
513
|
+
delete?: never;
|
|
514
|
+
options?: never;
|
|
515
|
+
head?: never;
|
|
516
|
+
patch?: never;
|
|
517
|
+
trace?: never;
|
|
518
|
+
};
|
|
519
|
+
"/draft-api/v1/user-data/editors": {
|
|
520
|
+
parameters: {
|
|
521
|
+
query?: never;
|
|
522
|
+
header?: never;
|
|
523
|
+
path?: never;
|
|
524
|
+
cookie?: never;
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Get list of user IDs that have edited drafts
|
|
528
|
+
* @description Get list of user IDs from updatedBy and editor notes in drafts
|
|
529
|
+
*/
|
|
530
|
+
get: operations["getDraft-apiV1User-dataEditors"];
|
|
531
|
+
put?: never;
|
|
532
|
+
post?: never;
|
|
533
|
+
delete?: never;
|
|
534
|
+
options?: never;
|
|
535
|
+
head?: never;
|
|
536
|
+
patch?: never;
|
|
537
|
+
trace?: never;
|
|
538
|
+
};
|
|
499
539
|
};
|
|
500
540
|
export type webhooks = Record<string, never>;
|
|
501
541
|
export type components = {
|
|
@@ -3246,4 +3286,122 @@ export interface operations {
|
|
|
3246
3286
|
};
|
|
3247
3287
|
};
|
|
3248
3288
|
};
|
|
3289
|
+
"getDraft-apiV1User-dataResponsibles": {
|
|
3290
|
+
parameters: {
|
|
3291
|
+
query?: never;
|
|
3292
|
+
header?: never;
|
|
3293
|
+
path?: never;
|
|
3294
|
+
cookie?: never;
|
|
3295
|
+
};
|
|
3296
|
+
requestBody?: never;
|
|
3297
|
+
responses: {
|
|
3298
|
+
200: {
|
|
3299
|
+
headers: {
|
|
3300
|
+
[name: string]: unknown;
|
|
3301
|
+
};
|
|
3302
|
+
content: {
|
|
3303
|
+
"application/json": string[];
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
3306
|
+
400: {
|
|
3307
|
+
headers: {
|
|
3308
|
+
[name: string]: unknown;
|
|
3309
|
+
};
|
|
3310
|
+
content: {
|
|
3311
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3312
|
+
};
|
|
3313
|
+
};
|
|
3314
|
+
401: {
|
|
3315
|
+
headers: {
|
|
3316
|
+
[name: string]: unknown;
|
|
3317
|
+
};
|
|
3318
|
+
content: {
|
|
3319
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3320
|
+
};
|
|
3321
|
+
};
|
|
3322
|
+
403: {
|
|
3323
|
+
headers: {
|
|
3324
|
+
[name: string]: unknown;
|
|
3325
|
+
};
|
|
3326
|
+
content: {
|
|
3327
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
404: {
|
|
3331
|
+
headers: {
|
|
3332
|
+
[name: string]: unknown;
|
|
3333
|
+
};
|
|
3334
|
+
content: {
|
|
3335
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
500: {
|
|
3339
|
+
headers: {
|
|
3340
|
+
[name: string]: unknown;
|
|
3341
|
+
};
|
|
3342
|
+
content: {
|
|
3343
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
3344
|
+
};
|
|
3345
|
+
};
|
|
3346
|
+
};
|
|
3347
|
+
};
|
|
3348
|
+
"getDraft-apiV1User-dataEditors": {
|
|
3349
|
+
parameters: {
|
|
3350
|
+
query?: never;
|
|
3351
|
+
header?: never;
|
|
3352
|
+
path?: never;
|
|
3353
|
+
cookie?: never;
|
|
3354
|
+
};
|
|
3355
|
+
requestBody?: never;
|
|
3356
|
+
responses: {
|
|
3357
|
+
200: {
|
|
3358
|
+
headers: {
|
|
3359
|
+
[name: string]: unknown;
|
|
3360
|
+
};
|
|
3361
|
+
content: {
|
|
3362
|
+
"application/json": string[];
|
|
3363
|
+
};
|
|
3364
|
+
};
|
|
3365
|
+
400: {
|
|
3366
|
+
headers: {
|
|
3367
|
+
[name: string]: unknown;
|
|
3368
|
+
};
|
|
3369
|
+
content: {
|
|
3370
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
401: {
|
|
3374
|
+
headers: {
|
|
3375
|
+
[name: string]: unknown;
|
|
3376
|
+
};
|
|
3377
|
+
content: {
|
|
3378
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3379
|
+
};
|
|
3380
|
+
};
|
|
3381
|
+
403: {
|
|
3382
|
+
headers: {
|
|
3383
|
+
[name: string]: unknown;
|
|
3384
|
+
};
|
|
3385
|
+
content: {
|
|
3386
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
404: {
|
|
3390
|
+
headers: {
|
|
3391
|
+
[name: string]: unknown;
|
|
3392
|
+
};
|
|
3393
|
+
content: {
|
|
3394
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
3395
|
+
};
|
|
3396
|
+
};
|
|
3397
|
+
500: {
|
|
3398
|
+
headers: {
|
|
3399
|
+
[name: string]: unknown;
|
|
3400
|
+
};
|
|
3401
|
+
content: {
|
|
3402
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
};
|
|
3406
|
+
};
|
|
3249
3407
|
}
|