@brigadasos/nadeshiko-sdk 2.0.5-internal.fe888a8 → 2.0.6-internal

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 CHANGED
@@ -55,6 +55,7 @@ __export(exports_internal, {
55
55
  updateAdminMediaAudit: () => updateAdminMediaAudit,
56
56
  unenrollUserLab: () => unenrollUserLab,
57
57
  triggerReindex: () => triggerReindex,
58
+ triggerCoveredWordsUpdate: () => triggerCoveredWordsUpdate,
58
59
  trackUserActivity: () => trackUserActivity,
59
60
  searchWords: () => searchWords,
60
61
  searchCollectionSegments: () => searchCollectionSegments,
@@ -83,6 +84,7 @@ __export(exports_internal, {
83
84
  getUserPreferences: () => getUserPreferences,
84
85
  getUserActivityStats: () => getUserActivityStats,
85
86
  getUserActivityHeatmap: () => getUserActivityHeatmap,
87
+ getStatsOverview: () => getStatsOverview,
86
88
  getSeries: () => getSeries,
87
89
  getSeiyuu: () => getSeiyuu,
88
90
  getSegmentContext: () => getSegmentContext,
@@ -91,6 +93,7 @@ __export(exports_internal, {
91
93
  getSearchStats: () => getSearchStats,
92
94
  getMedia: () => getMedia,
93
95
  getEpisode: () => getEpisode,
96
+ getCoveredWords: () => getCoveredWords,
94
97
  getCollectionStats: () => getCollectionStats,
95
98
  getCollection: () => getCollection,
96
99
  getCharacter: () => getCharacter,
@@ -964,6 +967,21 @@ var searchWords = (options) => (options.client ?? client).post({
964
967
  ...options.headers
965
968
  }
966
969
  });
970
+ var getStatsOverview = (options) => (options?.client ?? client).get({ url: "/v1/stats/overview", ...options });
971
+ var getCoveredWords = (options) => (options.client ?? client).get({ url: "/v1/stats/covered-words", ...options });
972
+ var triggerCoveredWordsUpdate = (options) => (options?.client ?? client).post({
973
+ security: [{
974
+ in: "cookie",
975
+ name: "nadeshiko.session_token",
976
+ type: "apiKey"
977
+ }],
978
+ url: "/v1/stats/covered-words/update",
979
+ ...options,
980
+ headers: {
981
+ "Content-Type": "application/json",
982
+ ...options?.headers
983
+ }
984
+ });
967
985
  var listMedia = (options) => (options?.client ?? client).get({
968
986
  security: [{ scheme: "bearer", type: "http" }],
969
987
  url: "/v1/media",
@@ -1784,6 +1802,9 @@ function createNadeshikoClient(config) {
1784
1802
  search: (options) => search({ throwOnError: true, ...options, client: clientInstance }),
1785
1803
  getSearchStats: (options) => getSearchStats({ throwOnError: true, ...options, client: clientInstance }),
1786
1804
  searchWords: (options) => searchWords({ throwOnError: true, ...options, client: clientInstance }),
1805
+ getStatsOverview: (options) => getStatsOverview({ throwOnError: true, ...options, client: clientInstance }),
1806
+ getCoveredWords: (options) => getCoveredWords({ throwOnError: true, ...options, client: clientInstance }),
1807
+ triggerCoveredWordsUpdate: (options) => triggerCoveredWordsUpdate({ throwOnError: true, ...options, client: clientInstance }),
1787
1808
  listMedia: (options) => listMedia({ throwOnError: true, ...options, client: clientInstance }),
1788
1809
  getSegmentByUuid: (options) => getSegmentByUuid({ throwOnError: true, ...options, client: clientInstance }),
1789
1810
  getSegmentContext: (options) => getSegmentContext({ throwOnError: true, ...options, client: clientInstance }),
@@ -1983,5 +2004,5 @@ function patchCursor(options, cursor) {
1983
2004
  return { ...options, body: { cursor } };
1984
2005
  }
1985
2006
 
1986
- //# debugId=F940433131E3D04864756E2164756E21
2007
+ //# debugId=5CA77681DF7EE37E64756E2164756E21
1987
2008
  //# sourceMappingURL=index.js.map