@brigadasos/nadeshiko-sdk 1.5.0-dev.be49703 → 1.5.0-dev.ca1fe65
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 +27 -6
- 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 +27 -6
- 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 +19 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +279 -101
- 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,11 +1704,26 @@ 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",
|
|
1708
|
-
DEVELOPMENT: "https://api
|
|
1709
|
-
PRODUCTION: "https://api.
|
|
1724
|
+
DEVELOPMENT: "https://api-dev.nadeshiko.co",
|
|
1725
|
+
PRODUCTION: "https://api.nadeshiko.co",
|
|
1726
|
+
PROXY: ""
|
|
1710
1727
|
};
|
|
1711
1728
|
var defaultSessionTokenGetter = () => {
|
|
1712
1729
|
if (typeof document === "undefined")
|
|
@@ -1809,7 +1826,9 @@ function createNadeshikoClient(config) {
|
|
|
1809
1826
|
updateAdminMediaAudit: (options) => updateAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1810
1827
|
runAdminMediaAudit: (options) => runAdminMediaAudit({ ...options, client: clientInstance }),
|
|
1811
1828
|
listAdminMediaAuditRuns: (options) => listAdminMediaAuditRuns({ ...options, client: clientInstance }),
|
|
1812
|
-
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance })
|
|
1829
|
+
getAdminMediaAuditRun: (options) => getAdminMediaAuditRun({ ...options, client: clientInstance }),
|
|
1830
|
+
getAnnouncement: (options) => getAnnouncement({ ...options, client: clientInstance }),
|
|
1831
|
+
updateAnnouncement: (options) => updateAnnouncement({ ...options, client: clientInstance })
|
|
1813
1832
|
};
|
|
1814
1833
|
}
|
|
1815
1834
|
// generated/dev/internal/media.gen.ts
|
|
@@ -1872,6 +1891,7 @@ __export(exports_collections_gen, {
|
|
|
1872
1891
|
// generated/dev/internal/admin.gen.ts
|
|
1873
1892
|
var exports_admin_gen = {};
|
|
1874
1893
|
__export(exports_admin_gen, {
|
|
1894
|
+
updateAnnouncement: () => updateAnnouncement,
|
|
1875
1895
|
updateAdminReport: () => updateAdminReport,
|
|
1876
1896
|
updateAdminMediaAudit: () => updateAdminMediaAudit,
|
|
1877
1897
|
triggerReindex: () => triggerReindex,
|
|
@@ -1884,6 +1904,7 @@ __export(exports_admin_gen, {
|
|
|
1884
1904
|
listAdminMediaAudits: () => listAdminMediaAudits,
|
|
1885
1905
|
listAdminMediaAuditRuns: () => listAdminMediaAuditRuns,
|
|
1886
1906
|
impersonateAdminUser: () => impersonateAdminUser,
|
|
1907
|
+
getAnnouncement: () => getAnnouncement,
|
|
1887
1908
|
getAdminQueue: () => getAdminQueue,
|
|
1888
1909
|
getAdminMediaAuditRun: () => getAdminMediaAuditRun,
|
|
1889
1910
|
getAdminHealth: () => getAdminHealth,
|
|
@@ -1891,5 +1912,5 @@ __export(exports_admin_gen, {
|
|
|
1891
1912
|
clearAdminImpersonation: () => clearAdminImpersonation
|
|
1892
1913
|
});
|
|
1893
1914
|
|
|
1894
|
-
//# debugId=
|
|
1915
|
+
//# debugId=8ABA5B3A395A47F564756E2164756E21
|
|
1895
1916
|
//# sourceMappingURL=index.js.map
|