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