@ndla/types-taxonomy 1.0.43 → 1.0.44

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.
@@ -2205,6 +2205,16 @@ export type components = {
2205
2205
  grepCodes: string[];
2206
2206
  visible: boolean;
2207
2207
  };
2208
+ MetadataPUT: {
2209
+ /** @description Custom fields, Only updated if present */
2210
+ customFields?: {
2211
+ [key: string]: string;
2212
+ };
2213
+ /** @description Set of grep codes, Only updated if present */
2214
+ grepCodes?: string[];
2215
+ /** @description Visibility of the node, Only updated if present */
2216
+ visible?: boolean;
2217
+ };
2208
2218
  Node: {
2209
2219
  /**
2210
2220
  * @description The stored name of the node
@@ -2496,7 +2506,7 @@ export type components = {
2496
2506
  * @description The language used at create time. Used to set default translation.
2497
2507
  * @example nb
2498
2508
  */
2499
- language: string;
2509
+ language?: string;
2500
2510
  /**
2501
2511
  * @description The name of the node. Required on create.
2502
2512
  * @example Trigonometry
@@ -2508,7 +2518,7 @@ export type components = {
2508
2518
  * @description Type of node.
2509
2519
  * @example topic
2510
2520
  */
2511
- nodeType: components["schemas"]["NodeType"];
2521
+ nodeType?: components["schemas"]["NodeType"];
2512
2522
  /** @description The quality evaluation of the node. Consist of a score from 1 to 5 and a comment. Can be null to remove existing evaluation. */
2513
2523
  qualityEvaluation?: components["schemas"]["QualityEvaluationDTO"];
2514
2524
  /**
@@ -2618,28 +2628,28 @@ export type components = {
2618
2628
  [key: string]: string;
2619
2629
  };
2620
2630
  /** @description Filter out programme contexts */
2621
- filterProgrammes: boolean;
2631
+ filterProgrammes?: boolean;
2622
2632
  /** @description Ids to fetch for query */
2623
2633
  ids?: string[];
2624
2634
  /** @description Include all contexts */
2625
- includeContexts: boolean;
2635
+ includeContexts?: boolean;
2626
2636
  /**
2627
2637
  * @description ISO-639-1 language code
2628
2638
  * @example nb
2629
2639
  */
2630
- language: string;
2640
+ language?: string;
2631
2641
  /** @description Filter by nodeType */
2632
2642
  nodeType?: components["schemas"]["NodeType"][];
2633
2643
  /**
2634
2644
  * Format: int32
2635
2645
  * @description Which page to fetch
2636
2646
  */
2637
- page: number;
2647
+ page?: number;
2638
2648
  /**
2639
2649
  * Format: int32
2640
2650
  * @description How many results to return per page
2641
2651
  */
2642
- pageSize: number;
2652
+ pageSize?: number;
2643
2653
  /**
2644
2654
  * Format: uri
2645
2655
  * @description Id to parent id in context.
@@ -3621,9 +3631,10 @@ export interface operations {
3621
3631
  };
3622
3632
  };
3623
3633
  responses: {
3624
- /** @description OK */
3625
- 200: {
3634
+ /** @description Created */
3635
+ 201: {
3626
3636
  headers: {
3637
+ Location?: string;
3627
3638
  [name: string]: unknown;
3628
3639
  };
3629
3640
  content?: never;
@@ -3673,9 +3684,10 @@ export interface operations {
3673
3684
  };
3674
3685
  };
3675
3686
  responses: {
3676
- /** @description OK */
3677
- 200: {
3687
+ /** @description Created */
3688
+ 201: {
3678
3689
  headers: {
3690
+ Location?: string;
3679
3691
  [name: string]: unknown;
3680
3692
  };
3681
3693
  content?: never;
@@ -3741,9 +3753,10 @@ export interface operations {
3741
3753
  };
3742
3754
  };
3743
3755
  responses: {
3744
- /** @description OK */
3745
- 200: {
3756
+ /** @description Created */
3757
+ 201: {
3746
3758
  headers: {
3759
+ Location?: string;
3747
3760
  [name: string]: unknown;
3748
3761
  };
3749
3762
  content?: never;
@@ -3787,9 +3800,10 @@ export interface operations {
3787
3800
  };
3788
3801
  };
3789
3802
  responses: {
3790
- /** @description OK */
3791
- 200: {
3803
+ /** @description Created */
3804
+ 201: {
3792
3805
  headers: {
3806
+ Location?: string;
3793
3807
  [name: string]: unknown;
3794
3808
  };
3795
3809
  content?: never;
@@ -3932,7 +3946,7 @@ export interface operations {
3932
3946
  };
3933
3947
  requestBody: {
3934
3948
  content: {
3935
- "application/json": components["schemas"]["Metadata"];
3949
+ "application/json": components["schemas"]["MetadataPUT"];
3936
3950
  };
3937
3951
  };
3938
3952
  responses: {
@@ -3984,9 +3998,10 @@ export interface operations {
3984
3998
  };
3985
3999
  };
3986
4000
  responses: {
3987
- /** @description OK */
3988
- 200: {
4001
+ /** @description Created */
4002
+ 201: {
3989
4003
  headers: {
4004
+ Location?: string;
3990
4005
  [name: string]: unknown;
3991
4006
  };
3992
4007
  content?: never;
@@ -4030,9 +4045,10 @@ export interface operations {
4030
4045
  };
4031
4046
  };
4032
4047
  responses: {
4033
- /** @description OK */
4034
- 200: {
4048
+ /** @description Created */
4049
+ 201: {
4035
4050
  headers: {
4051
+ Location?: string;
4036
4052
  [name: string]: unknown;
4037
4053
  };
4038
4054
  content?: never;
@@ -4175,7 +4191,7 @@ export interface operations {
4175
4191
  };
4176
4192
  requestBody: {
4177
4193
  content: {
4178
- "application/json": components["schemas"]["Metadata"];
4194
+ "application/json": components["schemas"]["MetadataPUT"];
4179
4195
  };
4180
4196
  };
4181
4197
  responses: {
@@ -4262,9 +4278,10 @@ export interface operations {
4262
4278
  };
4263
4279
  };
4264
4280
  responses: {
4265
- /** @description OK */
4266
- 200: {
4281
+ /** @description Created */
4282
+ 201: {
4267
4283
  headers: {
4284
+ Location?: string;
4268
4285
  [name: string]: unknown;
4269
4286
  };
4270
4287
  content?: never;
@@ -4343,9 +4360,10 @@ export interface operations {
4343
4360
  };
4344
4361
  };
4345
4362
  responses: {
4346
- /** @description OK */
4347
- 200: {
4363
+ /** @description Created */
4364
+ 201: {
4348
4365
  headers: {
4366
+ Location?: string;
4349
4367
  [name: string]: unknown;
4350
4368
  };
4351
4369
  content?: never;
@@ -4704,7 +4722,7 @@ export interface operations {
4704
4722
  };
4705
4723
  requestBody: {
4706
4724
  content: {
4707
- "application/json": components["schemas"]["Metadata"];
4725
+ "application/json": components["schemas"]["MetadataPUT"];
4708
4726
  };
4709
4727
  };
4710
4728
  responses: {
@@ -5331,9 +5349,10 @@ export interface operations {
5331
5349
  };
5332
5350
  };
5333
5351
  responses: {
5334
- /** @description OK */
5335
- 200: {
5352
+ /** @description Created */
5353
+ 201: {
5336
5354
  headers: {
5355
+ Location?: string;
5337
5356
  [name: string]: unknown;
5338
5357
  };
5339
5358
  content?: never;
@@ -5377,9 +5396,10 @@ export interface operations {
5377
5396
  };
5378
5397
  };
5379
5398
  responses: {
5380
- /** @description OK */
5381
- 200: {
5399
+ /** @description Created */
5400
+ 201: {
5382
5401
  headers: {
5402
+ Location?: string;
5383
5403
  [name: string]: unknown;
5384
5404
  };
5385
5405
  content?: never;
@@ -5475,9 +5495,10 @@ export interface operations {
5475
5495
  };
5476
5496
  };
5477
5497
  responses: {
5478
- /** @description OK */
5479
- 200: {
5498
+ /** @description Created */
5499
+ 201: {
5480
5500
  headers: {
5501
+ Location?: string;
5481
5502
  [name: string]: unknown;
5482
5503
  };
5483
5504
  content?: never;
@@ -5527,9 +5548,10 @@ export interface operations {
5527
5548
  };
5528
5549
  };
5529
5550
  responses: {
5530
- /** @description OK */
5531
- 200: {
5551
+ /** @description Created */
5552
+ 201: {
5532
5553
  headers: {
5554
+ Location?: string;
5533
5555
  [name: string]: unknown;
5534
5556
  };
5535
5557
  content?: never;
@@ -5832,9 +5854,10 @@ export interface operations {
5832
5854
  };
5833
5855
  };
5834
5856
  responses: {
5835
- /** @description OK */
5836
- 200: {
5857
+ /** @description Created */
5858
+ 201: {
5837
5859
  headers: {
5860
+ Location?: string;
5838
5861
  [name: string]: unknown;
5839
5862
  };
5840
5863
  content?: never;
@@ -5892,9 +5915,10 @@ export interface operations {
5892
5915
  };
5893
5916
  };
5894
5917
  responses: {
5895
- /** @description OK */
5896
- 200: {
5918
+ /** @description Created */
5919
+ 201: {
5897
5920
  headers: {
5921
+ Location?: string;
5898
5922
  [name: string]: unknown;
5899
5923
  };
5900
5924
  content?: never;
@@ -6070,9 +6094,10 @@ export interface operations {
6070
6094
  };
6071
6095
  };
6072
6096
  responses: {
6073
- /** @description OK */
6074
- 200: {
6097
+ /** @description Created */
6098
+ 201: {
6075
6099
  headers: {
6100
+ Location?: string;
6076
6101
  [name: string]: unknown;
6077
6102
  };
6078
6103
  content?: never;
@@ -6146,7 +6171,7 @@ export interface operations {
6146
6171
  };
6147
6172
  requestBody: {
6148
6173
  content: {
6149
- "application/json": components["schemas"]["Metadata"];
6174
+ "application/json": components["schemas"]["MetadataPUT"];
6150
6175
  };
6151
6176
  };
6152
6177
  responses: {
@@ -6363,9 +6388,10 @@ export interface operations {
6363
6388
  };
6364
6389
  };
6365
6390
  responses: {
6366
- /** @description OK */
6367
- 200: {
6391
+ /** @description Created */
6392
+ 201: {
6368
6393
  headers: {
6394
+ Location?: string;
6369
6395
  [name: string]: unknown;
6370
6396
  };
6371
6397
  content?: never;
@@ -6409,9 +6435,10 @@ export interface operations {
6409
6435
  };
6410
6436
  };
6411
6437
  responses: {
6412
- /** @description OK */
6413
- 200: {
6438
+ /** @description Created */
6439
+ 201: {
6414
6440
  headers: {
6441
+ Location?: string;
6415
6442
  [name: string]: unknown;
6416
6443
  };
6417
6444
  content?: never;
@@ -6566,9 +6593,10 @@ export interface operations {
6566
6593
  };
6567
6594
  };
6568
6595
  responses: {
6569
- /** @description OK */
6570
- 200: {
6596
+ /** @description Created */
6597
+ 201: {
6571
6598
  headers: {
6599
+ Location?: string;
6572
6600
  [name: string]: unknown;
6573
6601
  };
6574
6602
  content?: never;
@@ -6624,9 +6652,10 @@ export interface operations {
6624
6652
  };
6625
6653
  };
6626
6654
  responses: {
6627
- /** @description OK */
6628
- 200: {
6655
+ /** @description Created */
6656
+ 201: {
6629
6657
  headers: {
6658
+ Location?: string;
6630
6659
  [name: string]: unknown;
6631
6660
  };
6632
6661
  content?: never;
@@ -6818,7 +6847,7 @@ export interface operations {
6818
6847
  };
6819
6848
  requestBody: {
6820
6849
  content: {
6821
- "application/json": components["schemas"]["Metadata"];
6850
+ "application/json": components["schemas"]["MetadataPUT"];
6822
6851
  };
6823
6852
  };
6824
6853
  responses: {
@@ -7073,9 +7102,10 @@ export interface operations {
7073
7102
  };
7074
7103
  };
7075
7104
  responses: {
7076
- /** @description OK */
7077
- 200: {
7105
+ /** @description Created */
7106
+ 201: {
7078
7107
  headers: {
7108
+ Location?: string;
7079
7109
  [name: string]: unknown;
7080
7110
  };
7081
7111
  content?: never;
@@ -7119,9 +7149,10 @@ export interface operations {
7119
7149
  };
7120
7150
  };
7121
7151
  responses: {
7122
- /** @description OK */
7123
- 200: {
7152
+ /** @description Created */
7153
+ 201: {
7124
7154
  headers: {
7155
+ Location?: string;
7125
7156
  [name: string]: unknown;
7126
7157
  };
7127
7158
  content?: never;
@@ -7264,9 +7295,10 @@ export interface operations {
7264
7295
  };
7265
7296
  };
7266
7297
  responses: {
7267
- /** @description OK */
7268
- 200: {
7298
+ /** @description Created */
7299
+ 201: {
7269
7300
  headers: {
7301
+ Location?: string;
7270
7302
  [name: string]: unknown;
7271
7303
  };
7272
7304
  content?: never;
@@ -7310,9 +7342,10 @@ export interface operations {
7310
7342
  };
7311
7343
  };
7312
7344
  responses: {
7313
- /** @description OK */
7314
- 200: {
7345
+ /** @description Created */
7346
+ 201: {
7315
7347
  headers: {
7348
+ Location?: string;
7316
7349
  [name: string]: unknown;
7317
7350
  };
7318
7351
  content?: never;
@@ -7469,9 +7502,10 @@ export interface operations {
7469
7502
  };
7470
7503
  };
7471
7504
  responses: {
7472
- /** @description OK */
7473
- 200: {
7505
+ /** @description Created */
7506
+ 201: {
7474
7507
  headers: {
7508
+ Location?: string;
7475
7509
  [name: string]: unknown;
7476
7510
  };
7477
7511
  content?: never;
@@ -7529,9 +7563,10 @@ export interface operations {
7529
7563
  };
7530
7564
  };
7531
7565
  responses: {
7532
- /** @description OK */
7533
- 200: {
7566
+ /** @description Created */
7567
+ 201: {
7534
7568
  headers: {
7569
+ Location?: string;
7535
7570
  [name: string]: unknown;
7536
7571
  };
7537
7572
  content?: never;
@@ -7774,7 +7809,7 @@ export interface operations {
7774
7809
  };
7775
7810
  requestBody: {
7776
7811
  content: {
7777
- "application/json": components["schemas"]["Metadata"];
7812
+ "application/json": components["schemas"]["MetadataPUT"];
7778
7813
  };
7779
7814
  };
7780
7815
  responses: {
@@ -8120,9 +8155,10 @@ export interface operations {
8120
8155
  };
8121
8156
  };
8122
8157
  responses: {
8123
- /** @description OK */
8124
- 200: {
8158
+ /** @description Created */
8159
+ 201: {
8125
8160
  headers: {
8161
+ Location?: string;
8126
8162
  [name: string]: unknown;
8127
8163
  };
8128
8164
  content?: never;
@@ -8180,9 +8216,10 @@ export interface operations {
8180
8216
  };
8181
8217
  };
8182
8218
  responses: {
8183
- /** @description OK */
8184
- 200: {
8219
+ /** @description Created */
8220
+ 201: {
8185
8221
  headers: {
8222
+ Location?: string;
8186
8223
  [name: string]: unknown;
8187
8224
  };
8188
8225
  content?: never;
@@ -7,6 +7,7 @@ export type ContextPOST = schemas["ContextPOST"];
7
7
  export type Grade = schemas["Grade"];
8
8
  export type GradeAverage = schemas["GradeAverage"];
9
9
  export type Metadata = schemas["Metadata"];
10
+ export type MetadataPUT = schemas["MetadataPUT"];
10
11
  export type Node = schemas["Node"];
11
12
  export type NodeChild = schemas["NodeChild"];
12
13
  export type NodeConnection = schemas["NodeConnection"];