peertube-plugin-premium-members 3.2.2 → 3.2.3
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/client/api.ts +0 -20
- package/client/common.ts +0 -830
- package/dist/client/common.js +1 -1
- package/dist/client/my-account/index.js +1 -1
- package/dist/server/server/main.js +0 -42
- package/dist/server/server/main.js.map +1 -1
- package/dist/server/server/storage.js +1 -58
- package/dist/server/server/storage.js.map +1 -1
- package/package.json +1 -1
- package/server/main.ts +0 -69
- package/server/storage.ts +1 -78
package/client/api.ts
CHANGED
|
@@ -31,13 +31,6 @@ export type RumbleDurationPayload = {
|
|
|
31
31
|
durationSeconds: number
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export type NativePeerTubeProgressPayload = {
|
|
35
|
-
videoUuid: string
|
|
36
|
-
positionSeconds: number
|
|
37
|
-
durationSeconds?: number
|
|
38
|
-
paused?: boolean
|
|
39
|
-
routeSignature?: string
|
|
40
|
-
}
|
|
41
34
|
|
|
42
35
|
export class Api {
|
|
43
36
|
getAuthHeader: () => { Authorization: string } | undefined
|
|
@@ -142,19 +135,6 @@ export class Api {
|
|
|
142
135
|
}
|
|
143
136
|
|
|
144
137
|
|
|
145
|
-
|
|
146
|
-
// ✅ เพิ่ม: บันทึกตำแหน่ง PeerTube native player ของ login non-member
|
|
147
|
-
async saveNativePeerTubeProgress (body: NativePeerTubeProgressPayload): Promise<{ success: boolean, skipped?: boolean }> {
|
|
148
|
-
return this.post(this.pluginBasePath + '/native/progress', body)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// ✅ เพิ่ม: ดึงตำแหน่ง PeerTube native player จาก DB ของปลั๊กอิน
|
|
152
|
-
async getNativePeerTubeProgress (videoUuid: string): Promise<any> {
|
|
153
|
-
return this.get(
|
|
154
|
-
this.pluginBasePath + `/native/progress/${encodeURIComponent(videoUuid)}`
|
|
155
|
-
)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
138
|
// ✅ เพิ่ม: ดึงประวัติ Rumble ทั้งหมดของ user
|
|
159
139
|
async getRumbleHistory (limit = 50, offset = 0): Promise<any> {
|
|
160
140
|
return this.get(
|