@brigadasos/nadeshiko-sdk 1.4.2-dev.a13aba0 → 1.4.3-dev.5fa35ac
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 +50 -45
- 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 +50 -45
- package/dist/index.js.map +4 -4
- package/dist/internal/user.gen.d.ts +1 -1
- package/dist/internal/user.gen.d.ts.map +1 -1
- package/dist/nadeshiko.gen.d.ts +23 -13
- package/dist/nadeshiko.gen.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +12 -12
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +73 -55
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30,10 +30,10 @@ var __export = (target, all) => {
|
|
|
30
30
|
var exports_dev = {};
|
|
31
31
|
__export(exports_dev, {
|
|
32
32
|
user: () => exports_user_gen,
|
|
33
|
+
updateUserPreferences: () => updateUserPreferences,
|
|
33
34
|
updateSeriesMedia: () => updateSeriesMedia,
|
|
34
35
|
updateSeries: () => updateSeries,
|
|
35
36
|
updateSegment: () => updateSegment,
|
|
36
|
-
updatePreferences: () => updatePreferences,
|
|
37
37
|
updateMedia: () => updateMedia,
|
|
38
38
|
updateEpisode: () => updateEpisode,
|
|
39
39
|
updateCollectionSegment: () => updateCollectionSegment,
|
|
@@ -49,11 +49,12 @@ __export(exports_dev, {
|
|
|
49
49
|
removeMediaFromSeries: () => removeMediaFromSeries,
|
|
50
50
|
purgeAdminQueueFailed: () => purgeAdminQueueFailed,
|
|
51
51
|
media: () => exports_media_gen,
|
|
52
|
+
listUserReports: () => listUserReports,
|
|
53
|
+
listUserLabs: () => listUserLabs,
|
|
54
|
+
listUserActivity: () => listUserActivity,
|
|
52
55
|
listSeries: () => listSeries,
|
|
53
56
|
listSegments: () => listSegments,
|
|
54
|
-
listReports: () => listReports,
|
|
55
57
|
listMedia: () => listMedia,
|
|
56
|
-
listLabs: () => listLabs,
|
|
57
58
|
listEpisodes: () => listEpisodes,
|
|
58
59
|
listCollections: () => listCollections,
|
|
59
60
|
listAdminReviewRuns: () => listAdminReviewRuns,
|
|
@@ -62,15 +63,16 @@ __export(exports_dev, {
|
|
|
62
63
|
listAdminReports: () => listAdminReports,
|
|
63
64
|
listAdminQueueStats: () => listAdminQueueStats,
|
|
64
65
|
listAdminQueueFailed: () => listAdminQueueFailed,
|
|
65
|
-
|
|
66
|
+
getUserQuota: () => getUserQuota,
|
|
67
|
+
getUserPreferences: () => getUserPreferences,
|
|
68
|
+
getUserActivityStats: () => getUserActivityStats,
|
|
69
|
+
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
66
70
|
getSeries: () => getSeries,
|
|
67
71
|
getSeiyuu: () => getSeiyuu,
|
|
68
72
|
getSegmentContext: () => getSegmentContext,
|
|
69
73
|
getSegmentByUuid: () => getSegmentByUuid,
|
|
70
74
|
getSegment: () => getSegment,
|
|
71
75
|
getSearchStats: () => getSearchStats,
|
|
72
|
-
getQuota: () => getQuota,
|
|
73
|
-
getPreferences: () => getPreferences,
|
|
74
76
|
getMedia: () => getMedia,
|
|
75
77
|
getEpisode: () => getEpisode,
|
|
76
78
|
getCollection: () => getCollection,
|
|
@@ -79,19 +81,17 @@ __export(exports_dev, {
|
|
|
79
81
|
getAdminQueue: () => getAdminQueue,
|
|
80
82
|
getAdminHealth: () => getAdminHealth,
|
|
81
83
|
getAdminDashboard: () => getAdminDashboard,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
exportData: () => exportData,
|
|
84
|
+
exportUserData: () => exportUserData,
|
|
85
|
+
deleteUserActivity: () => deleteUserActivity,
|
|
85
86
|
deleteSeries: () => deleteSeries,
|
|
86
87
|
deleteSegment: () => deleteSegment,
|
|
87
88
|
deleteMedia: () => deleteMedia,
|
|
88
89
|
deleteEpisode: () => deleteEpisode,
|
|
89
90
|
deleteCollection: () => deleteCollection,
|
|
90
91
|
deleteAdminReviewAllowlistEntry: () => deleteAdminReviewAllowlistEntry,
|
|
91
|
-
|
|
92
|
+
createUserReport: () => createUserReport,
|
|
92
93
|
createSeries: () => createSeries,
|
|
93
94
|
createSegment: () => createSegment,
|
|
94
|
-
createReport: () => createReport,
|
|
95
95
|
createNadeshikoClient: () => createNadeshikoClient,
|
|
96
96
|
createMedia: () => createMedia,
|
|
97
97
|
createEpisode: () => createEpisode,
|
|
@@ -1130,7 +1130,7 @@ var getSeiyuu = (options) => (options.client ?? client).get({
|
|
|
1130
1130
|
url: "/v1/media/seiyuu/{id}",
|
|
1131
1131
|
...options
|
|
1132
1132
|
});
|
|
1133
|
-
var
|
|
1133
|
+
var getUserQuota = (options) => (options?.client ?? client).get({
|
|
1134
1134
|
security: [{
|
|
1135
1135
|
in: "cookie",
|
|
1136
1136
|
name: "nadeshiko.session_token",
|
|
@@ -1139,7 +1139,7 @@ var getQuota = (options) => (options?.client ?? client).get({
|
|
|
1139
1139
|
url: "/v1/user/quota",
|
|
1140
1140
|
...options
|
|
1141
1141
|
});
|
|
1142
|
-
var
|
|
1142
|
+
var listUserReports = (options) => (options?.client ?? client).get({
|
|
1143
1143
|
security: [{
|
|
1144
1144
|
in: "cookie",
|
|
1145
1145
|
name: "nadeshiko.session_token",
|
|
@@ -1148,7 +1148,7 @@ var listReports = (options) => (options?.client ?? client).get({
|
|
|
1148
1148
|
url: "/v1/user/reports",
|
|
1149
1149
|
...options
|
|
1150
1150
|
});
|
|
1151
|
-
var
|
|
1151
|
+
var createUserReport = (options) => (options.client ?? client).post({
|
|
1152
1152
|
security: [{
|
|
1153
1153
|
in: "cookie",
|
|
1154
1154
|
name: "nadeshiko.session_token",
|
|
@@ -1161,7 +1161,7 @@ var createReport = (options) => (options.client ?? client).post({
|
|
|
1161
1161
|
...options.headers
|
|
1162
1162
|
}
|
|
1163
1163
|
});
|
|
1164
|
-
var
|
|
1164
|
+
var getUserPreferences = (options) => (options?.client ?? client).get({
|
|
1165
1165
|
security: [{
|
|
1166
1166
|
in: "cookie",
|
|
1167
1167
|
name: "nadeshiko.session_token",
|
|
@@ -1170,7 +1170,7 @@ var getPreferences = (options) => (options?.client ?? client).get({
|
|
|
1170
1170
|
url: "/v1/user/preferences",
|
|
1171
1171
|
...options
|
|
1172
1172
|
});
|
|
1173
|
-
var
|
|
1173
|
+
var updateUserPreferences = (options) => (options.client ?? client).patch({
|
|
1174
1174
|
security: [{
|
|
1175
1175
|
in: "cookie",
|
|
1176
1176
|
name: "nadeshiko.session_token",
|
|
@@ -1183,7 +1183,7 @@ var updatePreferences = (options) => (options.client ?? client).patch({
|
|
|
1183
1183
|
...options.headers
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
1186
|
-
var
|
|
1186
|
+
var deleteUserActivity = (options) => (options?.client ?? client).delete({
|
|
1187
1187
|
security: [{
|
|
1188
1188
|
in: "cookie",
|
|
1189
1189
|
name: "nadeshiko.session_token",
|
|
@@ -1192,7 +1192,7 @@ var deleteActivity = (options) => (options?.client ?? client).delete({
|
|
|
1192
1192
|
url: "/v1/user/activity",
|
|
1193
1193
|
...options
|
|
1194
1194
|
});
|
|
1195
|
-
var
|
|
1195
|
+
var listUserActivity = (options) => (options?.client ?? client).get({
|
|
1196
1196
|
security: [{
|
|
1197
1197
|
in: "cookie",
|
|
1198
1198
|
name: "nadeshiko.session_token",
|
|
@@ -1201,7 +1201,7 @@ var listActivity = (options) => (options?.client ?? client).get({
|
|
|
1201
1201
|
url: "/v1/user/activity",
|
|
1202
1202
|
...options
|
|
1203
1203
|
});
|
|
1204
|
-
var
|
|
1204
|
+
var getUserActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
1205
1205
|
security: [{
|
|
1206
1206
|
in: "cookie",
|
|
1207
1207
|
name: "nadeshiko.session_token",
|
|
@@ -1210,7 +1210,7 @@ var getActivityHeatmap = (options) => (options?.client ?? client).get({
|
|
|
1210
1210
|
url: "/v1/user/activity/heatmap",
|
|
1211
1211
|
...options
|
|
1212
1212
|
});
|
|
1213
|
-
var
|
|
1213
|
+
var getUserActivityStats = (options) => (options?.client ?? client).get({
|
|
1214
1214
|
security: [{
|
|
1215
1215
|
in: "cookie",
|
|
1216
1216
|
name: "nadeshiko.session_token",
|
|
@@ -1219,7 +1219,7 @@ var getActivityStats = (options) => (options?.client ?? client).get({
|
|
|
1219
1219
|
url: "/v1/user/activity/stats",
|
|
1220
1220
|
...options
|
|
1221
1221
|
});
|
|
1222
|
-
var
|
|
1222
|
+
var exportUserData = (options) => (options?.client ?? client).get({
|
|
1223
1223
|
security: [{
|
|
1224
1224
|
in: "cookie",
|
|
1225
1225
|
name: "nadeshiko.session_token",
|
|
@@ -1228,7 +1228,7 @@ var exportData = (options) => (options?.client ?? client).get({
|
|
|
1228
1228
|
url: "/v1/user/export",
|
|
1229
1229
|
...options
|
|
1230
1230
|
});
|
|
1231
|
-
var
|
|
1231
|
+
var listUserLabs = (options) => (options?.client ?? client).get({
|
|
1232
1232
|
security: [{
|
|
1233
1233
|
in: "cookie",
|
|
1234
1234
|
name: "nadeshiko.session_token",
|
|
@@ -1441,7 +1441,12 @@ function createNadeshikoClient(config) {
|
|
|
1441
1441
|
const baseUrl = config.baseUrl ? config.baseUrl in environments ? environments[config.baseUrl] : config.baseUrl : environments.PRODUCTION;
|
|
1442
1442
|
const clientInstance = createClient(createConfig({
|
|
1443
1443
|
baseUrl,
|
|
1444
|
-
|
|
1444
|
+
auth: (auth) => {
|
|
1445
|
+
if (auth.in === "cookie") {
|
|
1446
|
+
return config.sessionToken;
|
|
1447
|
+
}
|
|
1448
|
+
return config.apiKey;
|
|
1449
|
+
}
|
|
1445
1450
|
}));
|
|
1446
1451
|
return {
|
|
1447
1452
|
client: clientInstance,
|
|
@@ -1459,7 +1464,7 @@ function createNadeshikoClient(config) {
|
|
|
1459
1464
|
getSeries: (options) => getSeries({ ...options, client: clientInstance }),
|
|
1460
1465
|
getCharacter: (options) => getCharacter({ ...options, client: clientInstance }),
|
|
1461
1466
|
getSeiyuu: (options) => getSeiyuu({ ...options, client: clientInstance }),
|
|
1462
|
-
|
|
1467
|
+
getUserQuota: (options) => getUserQuota({ ...options, client: clientInstance }),
|
|
1463
1468
|
listCollections: (options) => listCollections({ ...options, client: clientInstance }),
|
|
1464
1469
|
createCollection: (options) => createCollection({ ...options, client: clientInstance }),
|
|
1465
1470
|
getCollection: (options) => getCollection({ ...options, client: clientInstance }),
|
|
@@ -1500,16 +1505,16 @@ function createNadeshikoClient(config) {
|
|
|
1500
1505
|
addMediaToSeries: (options) => addMediaToSeries({ ...options, client: clientInstance }),
|
|
1501
1506
|
updateSeriesMedia: (options) => updateSeriesMedia({ ...options, client: clientInstance }),
|
|
1502
1507
|
removeMediaFromSeries: (options) => removeMediaFromSeries({ ...options, client: clientInstance }),
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1508
|
+
createUserReport: (options) => createUserReport({ ...options, client: clientInstance }),
|
|
1509
|
+
listUserReports: (options) => listUserReports({ ...options, client: clientInstance }),
|
|
1510
|
+
getUserPreferences: (options) => getUserPreferences({ ...options, client: clientInstance }),
|
|
1511
|
+
updateUserPreferences: (options) => updateUserPreferences({ ...options, client: clientInstance }),
|
|
1512
|
+
listUserActivity: (options) => listUserActivity({ ...options, client: clientInstance }),
|
|
1513
|
+
deleteUserActivity: (options) => deleteUserActivity({ ...options, client: clientInstance }),
|
|
1514
|
+
getUserActivityHeatmap: (options) => getUserActivityHeatmap({ ...options, client: clientInstance }),
|
|
1515
|
+
getUserActivityStats: (options) => getUserActivityStats({ ...options, client: clientInstance }),
|
|
1516
|
+
exportUserData: (options) => exportUserData({ ...options, client: clientInstance }),
|
|
1517
|
+
listUserLabs: (options) => listUserLabs({ ...options, client: clientInstance }),
|
|
1513
1518
|
getAdminDashboard: (options) => getAdminDashboard({ ...options, client: clientInstance }),
|
|
1514
1519
|
getAdminHealth: (options) => getAdminHealth({ ...options, client: clientInstance })
|
|
1515
1520
|
};
|
|
@@ -1538,16 +1543,16 @@ __export(exports_media_gen, {
|
|
|
1538
1543
|
// generated/dev/internal/user.gen.ts
|
|
1539
1544
|
var exports_user_gen = {};
|
|
1540
1545
|
__export(exports_user_gen, {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1546
|
+
updateUserPreferences: () => updateUserPreferences,
|
|
1547
|
+
listUserReports: () => listUserReports,
|
|
1548
|
+
listUserLabs: () => listUserLabs,
|
|
1549
|
+
listUserActivity: () => listUserActivity,
|
|
1550
|
+
getUserPreferences: () => getUserPreferences,
|
|
1551
|
+
getUserActivityStats: () => getUserActivityStats,
|
|
1552
|
+
getUserActivityHeatmap: () => getUserActivityHeatmap,
|
|
1553
|
+
exportUserData: () => exportUserData,
|
|
1554
|
+
deleteUserActivity: () => deleteUserActivity,
|
|
1555
|
+
createUserReport: () => createUserReport
|
|
1551
1556
|
});
|
|
1552
1557
|
// generated/dev/internal/admin.gen.ts
|
|
1553
1558
|
var exports_admin_gen = {};
|
|
@@ -1556,5 +1561,5 @@ __export(exports_admin_gen, {
|
|
|
1556
1561
|
getAdminDashboard: () => getAdminDashboard
|
|
1557
1562
|
});
|
|
1558
1563
|
|
|
1559
|
-
//# debugId=
|
|
1564
|
+
//# debugId=6D298160C99A5F9A64756E2164756E21
|
|
1560
1565
|
//# sourceMappingURL=index.js.map
|