@ndla/types-backend 1.0.97 → 1.0.99
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/myndla-api-openapi.d.ts +426 -0
- package/build/myndla-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -91,6 +91,26 @@ export type paths = {
|
|
|
91
91
|
patch: operations["patchMyndla-apiV1FoldersFolder-id"];
|
|
92
92
|
trace?: never;
|
|
93
93
|
};
|
|
94
|
+
"/myndla-api/v1/folders/resources/connections": {
|
|
95
|
+
parameters: {
|
|
96
|
+
query?: never;
|
|
97
|
+
header?: never;
|
|
98
|
+
path?: never;
|
|
99
|
+
cookie?: never;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Fetch resource connections by resource path
|
|
103
|
+
* @description Fetch resource connections by resource path
|
|
104
|
+
*/
|
|
105
|
+
get: operations["getMyndla-apiV1FoldersResourcesConnections"];
|
|
106
|
+
put?: never;
|
|
107
|
+
post?: never;
|
|
108
|
+
delete?: never;
|
|
109
|
+
options?: never;
|
|
110
|
+
head?: never;
|
|
111
|
+
patch?: never;
|
|
112
|
+
trace?: never;
|
|
113
|
+
};
|
|
94
114
|
"/myndla-api/v1/folders/resources/has-favorited": {
|
|
95
115
|
parameters: {
|
|
96
116
|
query?: never;
|
|
@@ -131,6 +151,30 @@ export type paths = {
|
|
|
131
151
|
patch?: never;
|
|
132
152
|
trace?: never;
|
|
133
153
|
};
|
|
154
|
+
"/myndla-api/v1/folders/resources/root": {
|
|
155
|
+
parameters: {
|
|
156
|
+
query?: never;
|
|
157
|
+
header?: never;
|
|
158
|
+
path?: never;
|
|
159
|
+
cookie?: never;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Fetch root resources
|
|
163
|
+
* @description Fetch root resources
|
|
164
|
+
*/
|
|
165
|
+
get: operations["getMyndla-apiV1FoldersResourcesRoot"];
|
|
166
|
+
put?: never;
|
|
167
|
+
/**
|
|
168
|
+
* Creates a resource at root level
|
|
169
|
+
* @description Creates a resource at root level
|
|
170
|
+
*/
|
|
171
|
+
post: operations["postMyndla-apiV1FoldersResourcesRoot"];
|
|
172
|
+
delete?: never;
|
|
173
|
+
options?: never;
|
|
174
|
+
head?: never;
|
|
175
|
+
patch?: never;
|
|
176
|
+
trace?: never;
|
|
177
|
+
};
|
|
134
178
|
"/myndla-api/v1/folders/resources/{resource-id}": {
|
|
135
179
|
parameters: {
|
|
136
180
|
query?: never;
|
|
@@ -171,6 +215,26 @@ export type paths = {
|
|
|
171
215
|
patch?: never;
|
|
172
216
|
trace?: never;
|
|
173
217
|
};
|
|
218
|
+
"/myndla-api/v1/folders/resources/root/{resource-id}": {
|
|
219
|
+
parameters: {
|
|
220
|
+
query?: never;
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
get?: never;
|
|
226
|
+
put?: never;
|
|
227
|
+
post?: never;
|
|
228
|
+
/**
|
|
229
|
+
* Delete selected root resource
|
|
230
|
+
* @description Delete selected root resource
|
|
231
|
+
*/
|
|
232
|
+
delete: operations["deleteMyndla-apiV1FoldersResourcesRootResource-id"];
|
|
233
|
+
options?: never;
|
|
234
|
+
head?: never;
|
|
235
|
+
patch?: never;
|
|
236
|
+
trace?: never;
|
|
237
|
+
};
|
|
174
238
|
"/myndla-api/v1/folders/shared/{folder-id}": {
|
|
175
239
|
parameters: {
|
|
176
240
|
query?: never;
|
|
@@ -215,6 +279,26 @@ export type paths = {
|
|
|
215
279
|
patch?: never;
|
|
216
280
|
trace?: never;
|
|
217
281
|
};
|
|
282
|
+
"/myndla-api/v1/folders/sort-resources/root": {
|
|
283
|
+
parameters: {
|
|
284
|
+
query?: never;
|
|
285
|
+
header?: never;
|
|
286
|
+
path?: never;
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
get?: never;
|
|
290
|
+
/**
|
|
291
|
+
* Decide order of root resource ids
|
|
292
|
+
* @description Decide order of root resource ids
|
|
293
|
+
*/
|
|
294
|
+
put: operations["putMyndla-apiV1FoldersSort-resourcesRoot"];
|
|
295
|
+
post?: never;
|
|
296
|
+
delete?: never;
|
|
297
|
+
options?: never;
|
|
298
|
+
head?: never;
|
|
299
|
+
patch?: never;
|
|
300
|
+
trace?: never;
|
|
301
|
+
};
|
|
218
302
|
"/myndla-api/v1/folders/sort-resources/{folder-id}": {
|
|
219
303
|
parameters: {
|
|
220
304
|
query?: never;
|
|
@@ -776,6 +860,19 @@ export type components = {
|
|
|
776
860
|
*/
|
|
777
861
|
id: number;
|
|
778
862
|
};
|
|
863
|
+
/** ResourceConnectionDTO */
|
|
864
|
+
ResourceConnectionDTO: {
|
|
865
|
+
/**
|
|
866
|
+
* Format: uuid
|
|
867
|
+
* @description The id of the resource this connection points to
|
|
868
|
+
*/
|
|
869
|
+
resourceId: string;
|
|
870
|
+
/**
|
|
871
|
+
* Format: uuid
|
|
872
|
+
* @description The id of the folder this connection points to
|
|
873
|
+
*/
|
|
874
|
+
folderId?: string;
|
|
875
|
+
};
|
|
779
876
|
/** ResourceDTO */
|
|
780
877
|
ResourceDTO: {
|
|
781
878
|
/**
|
|
@@ -1481,6 +1578,76 @@ export interface operations {
|
|
|
1481
1578
|
};
|
|
1482
1579
|
};
|
|
1483
1580
|
};
|
|
1581
|
+
"getMyndla-apiV1FoldersResourcesConnections": {
|
|
1582
|
+
parameters: {
|
|
1583
|
+
query: {
|
|
1584
|
+
/** @description The path of the resource to check */
|
|
1585
|
+
path: string;
|
|
1586
|
+
};
|
|
1587
|
+
header?: never;
|
|
1588
|
+
path?: never;
|
|
1589
|
+
cookie?: never;
|
|
1590
|
+
};
|
|
1591
|
+
requestBody?: never;
|
|
1592
|
+
responses: {
|
|
1593
|
+
200: {
|
|
1594
|
+
headers: {
|
|
1595
|
+
[name: string]: unknown;
|
|
1596
|
+
};
|
|
1597
|
+
content: {
|
|
1598
|
+
"application/json": components["schemas"]["ResourceConnectionDTO"][];
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
400: {
|
|
1602
|
+
headers: {
|
|
1603
|
+
[name: string]: unknown;
|
|
1604
|
+
};
|
|
1605
|
+
content: {
|
|
1606
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
401: {
|
|
1610
|
+
headers: {
|
|
1611
|
+
[name: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
content: {
|
|
1614
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
403: {
|
|
1618
|
+
headers: {
|
|
1619
|
+
[name: string]: unknown;
|
|
1620
|
+
};
|
|
1621
|
+
content: {
|
|
1622
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1625
|
+
404: {
|
|
1626
|
+
headers: {
|
|
1627
|
+
[name: string]: unknown;
|
|
1628
|
+
};
|
|
1629
|
+
content: {
|
|
1630
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
500: {
|
|
1634
|
+
headers: {
|
|
1635
|
+
[name: string]: unknown;
|
|
1636
|
+
};
|
|
1637
|
+
content: {
|
|
1638
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
502: {
|
|
1642
|
+
headers: {
|
|
1643
|
+
[name: string]: unknown;
|
|
1644
|
+
};
|
|
1645
|
+
content: {
|
|
1646
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1484
1651
|
"getMyndla-apiV1FoldersResourcesHas-favorited": {
|
|
1485
1652
|
parameters: {
|
|
1486
1653
|
query: {
|
|
@@ -1617,6 +1784,128 @@ export interface operations {
|
|
|
1617
1784
|
};
|
|
1618
1785
|
};
|
|
1619
1786
|
};
|
|
1787
|
+
"getMyndla-apiV1FoldersResourcesRoot": {
|
|
1788
|
+
parameters: {
|
|
1789
|
+
query?: never;
|
|
1790
|
+
header?: never;
|
|
1791
|
+
path?: never;
|
|
1792
|
+
cookie?: never;
|
|
1793
|
+
};
|
|
1794
|
+
requestBody?: never;
|
|
1795
|
+
responses: {
|
|
1796
|
+
200: {
|
|
1797
|
+
headers: {
|
|
1798
|
+
[name: string]: unknown;
|
|
1799
|
+
};
|
|
1800
|
+
content: {
|
|
1801
|
+
"application/json": components["schemas"]["ResourceDTO"][];
|
|
1802
|
+
};
|
|
1803
|
+
};
|
|
1804
|
+
400: {
|
|
1805
|
+
headers: {
|
|
1806
|
+
[name: string]: unknown;
|
|
1807
|
+
};
|
|
1808
|
+
content: {
|
|
1809
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
401: {
|
|
1813
|
+
headers: {
|
|
1814
|
+
[name: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
content: {
|
|
1817
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
403: {
|
|
1821
|
+
headers: {
|
|
1822
|
+
[name: string]: unknown;
|
|
1823
|
+
};
|
|
1824
|
+
content: {
|
|
1825
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
404: {
|
|
1829
|
+
headers: {
|
|
1830
|
+
[name: string]: unknown;
|
|
1831
|
+
};
|
|
1832
|
+
content: {
|
|
1833
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
500: {
|
|
1837
|
+
headers: {
|
|
1838
|
+
[name: string]: unknown;
|
|
1839
|
+
};
|
|
1840
|
+
content: {
|
|
1841
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
"postMyndla-apiV1FoldersResourcesRoot": {
|
|
1847
|
+
parameters: {
|
|
1848
|
+
query?: never;
|
|
1849
|
+
header?: never;
|
|
1850
|
+
path?: never;
|
|
1851
|
+
cookie?: never;
|
|
1852
|
+
};
|
|
1853
|
+
requestBody: {
|
|
1854
|
+
content: {
|
|
1855
|
+
"application/json": components["schemas"]["NewResourceDTO"];
|
|
1856
|
+
};
|
|
1857
|
+
};
|
|
1858
|
+
responses: {
|
|
1859
|
+
200: {
|
|
1860
|
+
headers: {
|
|
1861
|
+
[name: string]: unknown;
|
|
1862
|
+
};
|
|
1863
|
+
content: {
|
|
1864
|
+
"application/json": components["schemas"]["ResourceDTO"];
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
400: {
|
|
1868
|
+
headers: {
|
|
1869
|
+
[name: string]: unknown;
|
|
1870
|
+
};
|
|
1871
|
+
content: {
|
|
1872
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
401: {
|
|
1876
|
+
headers: {
|
|
1877
|
+
[name: string]: unknown;
|
|
1878
|
+
};
|
|
1879
|
+
content: {
|
|
1880
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
403: {
|
|
1884
|
+
headers: {
|
|
1885
|
+
[name: string]: unknown;
|
|
1886
|
+
};
|
|
1887
|
+
content: {
|
|
1888
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
404: {
|
|
1892
|
+
headers: {
|
|
1893
|
+
[name: string]: unknown;
|
|
1894
|
+
};
|
|
1895
|
+
content: {
|
|
1896
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
500: {
|
|
1900
|
+
headers: {
|
|
1901
|
+
[name: string]: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
content: {
|
|
1904
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
};
|
|
1620
1909
|
"patchMyndla-apiV1FoldersResourcesResource-id": {
|
|
1621
1910
|
parameters: {
|
|
1622
1911
|
query?: never;
|
|
@@ -1753,6 +2042,74 @@ export interface operations {
|
|
|
1753
2042
|
};
|
|
1754
2043
|
};
|
|
1755
2044
|
};
|
|
2045
|
+
"deleteMyndla-apiV1FoldersResourcesRootResource-id": {
|
|
2046
|
+
parameters: {
|
|
2047
|
+
query?: never;
|
|
2048
|
+
header?: never;
|
|
2049
|
+
path: {
|
|
2050
|
+
/** @description The UUID of the resource */
|
|
2051
|
+
"resource-id": string;
|
|
2052
|
+
};
|
|
2053
|
+
cookie?: never;
|
|
2054
|
+
};
|
|
2055
|
+
requestBody?: never;
|
|
2056
|
+
responses: {
|
|
2057
|
+
204: {
|
|
2058
|
+
headers: {
|
|
2059
|
+
[name: string]: unknown;
|
|
2060
|
+
};
|
|
2061
|
+
content?: never;
|
|
2062
|
+
};
|
|
2063
|
+
400: {
|
|
2064
|
+
headers: {
|
|
2065
|
+
[name: string]: unknown;
|
|
2066
|
+
};
|
|
2067
|
+
content: {
|
|
2068
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
401: {
|
|
2072
|
+
headers: {
|
|
2073
|
+
[name: string]: unknown;
|
|
2074
|
+
};
|
|
2075
|
+
content: {
|
|
2076
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
403: {
|
|
2080
|
+
headers: {
|
|
2081
|
+
[name: string]: unknown;
|
|
2082
|
+
};
|
|
2083
|
+
content: {
|
|
2084
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
404: {
|
|
2088
|
+
headers: {
|
|
2089
|
+
[name: string]: unknown;
|
|
2090
|
+
};
|
|
2091
|
+
content: {
|
|
2092
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2093
|
+
};
|
|
2094
|
+
};
|
|
2095
|
+
500: {
|
|
2096
|
+
headers: {
|
|
2097
|
+
[name: string]: unknown;
|
|
2098
|
+
};
|
|
2099
|
+
content: {
|
|
2100
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
2103
|
+
502: {
|
|
2104
|
+
headers: {
|
|
2105
|
+
[name: string]: unknown;
|
|
2106
|
+
};
|
|
2107
|
+
content: {
|
|
2108
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
};
|
|
1756
2113
|
"getMyndla-apiV1FoldersSharedFolder-id": {
|
|
1757
2114
|
parameters: {
|
|
1758
2115
|
query?: never;
|
|
@@ -1969,6 +2326,75 @@ export interface operations {
|
|
|
1969
2326
|
};
|
|
1970
2327
|
};
|
|
1971
2328
|
};
|
|
2329
|
+
"putMyndla-apiV1FoldersSort-resourcesRoot": {
|
|
2330
|
+
parameters: {
|
|
2331
|
+
query?: never;
|
|
2332
|
+
header?: never;
|
|
2333
|
+
path?: never;
|
|
2334
|
+
cookie?: never;
|
|
2335
|
+
};
|
|
2336
|
+
requestBody: {
|
|
2337
|
+
content: {
|
|
2338
|
+
"application/json": components["schemas"]["FolderSortRequestDTO"];
|
|
2339
|
+
};
|
|
2340
|
+
};
|
|
2341
|
+
responses: {
|
|
2342
|
+
204: {
|
|
2343
|
+
headers: {
|
|
2344
|
+
[name: string]: unknown;
|
|
2345
|
+
};
|
|
2346
|
+
content?: never;
|
|
2347
|
+
};
|
|
2348
|
+
400: {
|
|
2349
|
+
headers: {
|
|
2350
|
+
[name: string]: unknown;
|
|
2351
|
+
};
|
|
2352
|
+
content: {
|
|
2353
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
401: {
|
|
2357
|
+
headers: {
|
|
2358
|
+
[name: string]: unknown;
|
|
2359
|
+
};
|
|
2360
|
+
content: {
|
|
2361
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2362
|
+
};
|
|
2363
|
+
};
|
|
2364
|
+
403: {
|
|
2365
|
+
headers: {
|
|
2366
|
+
[name: string]: unknown;
|
|
2367
|
+
};
|
|
2368
|
+
content: {
|
|
2369
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
404: {
|
|
2373
|
+
headers: {
|
|
2374
|
+
[name: string]: unknown;
|
|
2375
|
+
};
|
|
2376
|
+
content: {
|
|
2377
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
500: {
|
|
2381
|
+
headers: {
|
|
2382
|
+
[name: string]: unknown;
|
|
2383
|
+
};
|
|
2384
|
+
content: {
|
|
2385
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
2388
|
+
502: {
|
|
2389
|
+
headers: {
|
|
2390
|
+
[name: string]: unknown;
|
|
2391
|
+
};
|
|
2392
|
+
content: {
|
|
2393
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
};
|
|
2397
|
+
};
|
|
1972
2398
|
"putMyndla-apiV1FoldersSort-resourcesFolder-id": {
|
|
1973
2399
|
parameters: {
|
|
1974
2400
|
query?: never;
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type NewFolderDTO = schemas["NewFolderDTO"];
|
|
|
23
23
|
export type NewResourceDTO = schemas["NewResourceDTO"];
|
|
24
24
|
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
25
25
|
export type OwnerDTO = schemas["OwnerDTO"];
|
|
26
|
+
export type ResourceConnectionDTO = schemas["ResourceConnectionDTO"];
|
|
26
27
|
export type ResourceDTO = schemas["ResourceDTO"];
|
|
27
28
|
export type ResourceStatsDTO = schemas["ResourceStatsDTO"];
|
|
28
29
|
export type ResourceType = schemas["ResourceType"];
|