@brigadasos/nadeshiko-sdk 1.5.0-dev.cd60faf → 1.5.0-dev.e2cd9e3
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/dist/index.cjs +24 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -4
- package/dist/index.js.map +4 -4
- package/dist/internal/admin.gen.d.ts +1 -1
- package/dist/internal/admin.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +3 -1
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +15 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +223 -95
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(exports_dev, {
|
|
|
49
49
|
updateEpisode: () => updateEpisode,
|
|
50
50
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
51
51
|
updateCollection: () => updateCollection,
|
|
52
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
52
53
|
updateAdminReport: () => updateAdminReport,
|
|
53
54
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
54
55
|
unenrollUserLab: () => unenrollUserLab,
|
|
@@ -92,6 +93,7 @@ __export(exports_dev, {
|
|
|
92
93
|
getCollectionStats: () => getCollectionStats,
|
|
93
94
|
getCollection: () => getCollection,
|
|
94
95
|
getCharacter: () => getCharacter,
|
|
96
|
+
getAnnouncement: () => getAnnouncement,
|
|
95
97
|
getAdminQueue: () => getAdminQueue,
|
|
96
98
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
97
99
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -1512,7 +1514,7 @@ var removeSegmentFromCollection = (options) => (options.client ?? client).delete
|
|
|
1512
1514
|
name: "nadeshiko.session_token",
|
|
1513
1515
|
type: "apiKey"
|
|
1514
1516
|
}],
|
|
1515
|
-
url: "/v1/collections/{id}/segments/{
|
|
1517
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1516
1518
|
...options
|
|
1517
1519
|
});
|
|
1518
1520
|
var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
@@ -1521,7 +1523,7 @@ var updateCollectionSegment = (options) => (options.client ?? client).patch({
|
|
|
1521
1523
|
name: "nadeshiko.session_token",
|
|
1522
1524
|
type: "apiKey"
|
|
1523
1525
|
}],
|
|
1524
|
-
url: "/v1/collections/{id}/segments/{
|
|
1526
|
+
url: "/v1/collections/{id}/segments/{segmentId}",
|
|
1525
1527
|
...options,
|
|
1526
1528
|
headers: {
|
|
1527
1529
|
"Content-Type": "application/json",
|
|
@@ -1702,6 +1704,20 @@ var getAdminMediaAuditRun = (options) => (options.client ?? client).get({
|
|
|
1702
1704
|
url: "/v1/admin/media/audits/runs/{id}",
|
|
1703
1705
|
...options
|
|
1704
1706
|
});
|
|
1707
|
+
var getAnnouncement = (options) => (options?.client ?? client).get({ url: "/v1/admin/announcement", ...options });
|
|
1708
|
+
var updateAnnouncement = (options) => (options.client ?? client).put({
|
|
1709
|
+
security: [{
|
|
1710
|
+
in: "cookie",
|
|
1711
|
+
name: "nadeshiko.session_token",
|
|
1712
|
+
type: "apiKey"
|
|
1713
|
+
}],
|
|
1714
|
+
url: "/v1/admin/announcement",
|
|
1715
|
+
...options,
|
|
1716
|
+
headers: {
|
|
1717
|
+
"Content-Type": "application/json",
|
|
1718
|
+
...options.headers
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1705
1721
|
// generated/dev/nadeshiko.gen.ts
|
|
1706
1722
|
var environments = {
|
|
1707
1723
|
LOCAL: "http://localhost:5000/api",
|
|
@@ -1809,7 +1825,9 @@ function createNadeshikoClient(config) {
|
|
|
1809
1825
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1810
1826
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1811
1827
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1812
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1828
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1829
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1830
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1813
1831
|
};
|
|
1814
1832
|
}
|
|
1815
1833
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1872,6 +1890,7 @@ __export(exports_collections_gen, {
|
|
|
1872
1890
|
// generated/dev/internal/admin.gen.ts
|
|
1873
1891
|
var exports_admin_gen = {};
|
|
1874
1892
|
__export(exports_admin_gen, {
|
|
1893
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1875
1894
|
updateAdminReport: () => updateAdminReport,
|
|
1876
1895
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1877
1896
|
triggerReindex: () => triggerReindex,
|
|
@@ -1884,6 +1903,7 @@ __export(exports_admin_gen, {
|
|
|
1884
1903
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1885
1904
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1886
1905
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1906
|
+
getAnnouncement: () => getAnnouncement,
|
|
1887
1907
|
getAdminQueue: () => getAdminQueue,
|
|
1888
1908
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1889
1909
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -1891,5 +1911,5 @@ __export(exports_admin_gen, {
|
|
|
1891
1911
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1892
1912
|
});
|
|
1893
1913
|
|
|
1894
|
-
//# debugId=
|
|
1914
|
+
//# debugId=2A761910B609C11D64756E2164756E21
|
|
1895
1915
|
//# sourceMappingURL=index.js.map
|