@ndla/types-backend 1.0.98 → 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 +103 -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;
|
|
@@ -840,6 +860,19 @@ export type components = {
|
|
|
840
860
|
*/
|
|
841
861
|
id: number;
|
|
842
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
|
+
};
|
|
843
876
|
/** ResourceDTO */
|
|
844
877
|
ResourceDTO: {
|
|
845
878
|
/**
|
|
@@ -1545,6 +1578,76 @@ export interface operations {
|
|
|
1545
1578
|
};
|
|
1546
1579
|
};
|
|
1547
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
|
+
};
|
|
1548
1651
|
"getMyndla-apiV1FoldersResourcesHas-favorited": {
|
|
1549
1652
|
parameters: {
|
|
1550
1653
|
query: {
|
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"];
|