@ndla/types-backend 1.0.98 → 1.0.100
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 +185 -0
- package/build/myndla-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -91,6 +91,46 @@ 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
|
+
};
|
|
114
|
+
"/myndla-api/v1/folders/resources/path": {
|
|
115
|
+
parameters: {
|
|
116
|
+
query?: never;
|
|
117
|
+
header?: never;
|
|
118
|
+
path?: never;
|
|
119
|
+
cookie?: never;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Fetch resource by path
|
|
123
|
+
* @description Fetch resource by path
|
|
124
|
+
*/
|
|
125
|
+
get: operations["getMyndla-apiV1FoldersResourcesPath"];
|
|
126
|
+
put?: never;
|
|
127
|
+
post?: never;
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
94
134
|
"/myndla-api/v1/folders/resources/has-favorited": {
|
|
95
135
|
parameters: {
|
|
96
136
|
query?: never;
|
|
@@ -840,6 +880,19 @@ export type components = {
|
|
|
840
880
|
*/
|
|
841
881
|
id: number;
|
|
842
882
|
};
|
|
883
|
+
/** ResourceConnectionDTO */
|
|
884
|
+
ResourceConnectionDTO: {
|
|
885
|
+
/**
|
|
886
|
+
* Format: uuid
|
|
887
|
+
* @description The id of the resource this connection points to
|
|
888
|
+
*/
|
|
889
|
+
resourceId: string;
|
|
890
|
+
/**
|
|
891
|
+
* Format: uuid
|
|
892
|
+
* @description The id of the folder this connection points to
|
|
893
|
+
*/
|
|
894
|
+
folderId?: string;
|
|
895
|
+
};
|
|
843
896
|
/** ResourceDTO */
|
|
844
897
|
ResourceDTO: {
|
|
845
898
|
/**
|
|
@@ -1545,6 +1598,138 @@ export interface operations {
|
|
|
1545
1598
|
};
|
|
1546
1599
|
};
|
|
1547
1600
|
};
|
|
1601
|
+
"getMyndla-apiV1FoldersResourcesConnections": {
|
|
1602
|
+
parameters: {
|
|
1603
|
+
query: {
|
|
1604
|
+
/** @description The path of the resource to check */
|
|
1605
|
+
path: string;
|
|
1606
|
+
};
|
|
1607
|
+
header?: never;
|
|
1608
|
+
path?: never;
|
|
1609
|
+
cookie?: never;
|
|
1610
|
+
};
|
|
1611
|
+
requestBody?: never;
|
|
1612
|
+
responses: {
|
|
1613
|
+
200: {
|
|
1614
|
+
headers: {
|
|
1615
|
+
[name: string]: unknown;
|
|
1616
|
+
};
|
|
1617
|
+
content: {
|
|
1618
|
+
"application/json": components["schemas"]["ResourceConnectionDTO"][];
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
400: {
|
|
1622
|
+
headers: {
|
|
1623
|
+
[name: string]: unknown;
|
|
1624
|
+
};
|
|
1625
|
+
content: {
|
|
1626
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
401: {
|
|
1630
|
+
headers: {
|
|
1631
|
+
[name: string]: unknown;
|
|
1632
|
+
};
|
|
1633
|
+
content: {
|
|
1634
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
403: {
|
|
1638
|
+
headers: {
|
|
1639
|
+
[name: string]: unknown;
|
|
1640
|
+
};
|
|
1641
|
+
content: {
|
|
1642
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
404: {
|
|
1646
|
+
headers: {
|
|
1647
|
+
[name: string]: unknown;
|
|
1648
|
+
};
|
|
1649
|
+
content: {
|
|
1650
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
500: {
|
|
1654
|
+
headers: {
|
|
1655
|
+
[name: string]: unknown;
|
|
1656
|
+
};
|
|
1657
|
+
content: {
|
|
1658
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
502: {
|
|
1662
|
+
headers: {
|
|
1663
|
+
[name: string]: unknown;
|
|
1664
|
+
};
|
|
1665
|
+
content: {
|
|
1666
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
"getMyndla-apiV1FoldersResourcesPath": {
|
|
1672
|
+
parameters: {
|
|
1673
|
+
query: {
|
|
1674
|
+
/** @description The path of the resource to check */
|
|
1675
|
+
path: string;
|
|
1676
|
+
};
|
|
1677
|
+
header?: never;
|
|
1678
|
+
path?: never;
|
|
1679
|
+
cookie?: never;
|
|
1680
|
+
};
|
|
1681
|
+
requestBody?: never;
|
|
1682
|
+
responses: {
|
|
1683
|
+
200: {
|
|
1684
|
+
headers: {
|
|
1685
|
+
[name: string]: unknown;
|
|
1686
|
+
};
|
|
1687
|
+
content: {
|
|
1688
|
+
"application/json": components["schemas"]["ResourceDTO"];
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
400: {
|
|
1692
|
+
headers: {
|
|
1693
|
+
[name: string]: unknown;
|
|
1694
|
+
};
|
|
1695
|
+
content: {
|
|
1696
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
401: {
|
|
1700
|
+
headers: {
|
|
1701
|
+
[name: string]: unknown;
|
|
1702
|
+
};
|
|
1703
|
+
content: {
|
|
1704
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
403: {
|
|
1708
|
+
headers: {
|
|
1709
|
+
[name: string]: unknown;
|
|
1710
|
+
};
|
|
1711
|
+
content: {
|
|
1712
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
404: {
|
|
1716
|
+
headers: {
|
|
1717
|
+
[name: string]: unknown;
|
|
1718
|
+
};
|
|
1719
|
+
content: {
|
|
1720
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
500: {
|
|
1724
|
+
headers: {
|
|
1725
|
+
[name: string]: unknown;
|
|
1726
|
+
};
|
|
1727
|
+
content: {
|
|
1728
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1548
1733
|
"getMyndla-apiV1FoldersResourcesHas-favorited": {
|
|
1549
1734
|
parameters: {
|
|
1550
1735
|
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"];
|