@ooneex/typeorm 0.13.0 → 0.14.0
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/shared/chunk-19qhst35.js +5 -0
- package/dist/shared/{chunk-tqd6ek7s.js.map → chunk-19qhst35.js.map} +2 -2
- package/dist/shared/{chunk-trhrh4e1.js → chunk-31y260d6.js} +24 -89
- package/dist/shared/{chunk-trhrh4e1.js.map → chunk-31y260d6.js.map} +2 -2
- package/dist/shared/chunk-59vwmfpm.js +5 -0
- package/dist/shared/{chunk-r9hsk9fk.js.map → chunk-59vwmfpm.js.map} +1 -1
- package/dist/shared/chunk-5tnqjb3n.js +5 -0
- package/dist/shared/{chunk-2wdazj26.js.map → chunk-5tnqjb3n.js.map} +2 -2
- package/dist/shared/chunk-5ybg5hda.js +5 -0
- package/dist/shared/{chunk-m4mpkr4n.js.map → chunk-5ybg5hda.js.map} +2 -2
- package/dist/shared/chunk-6jnj2pfx.js +5 -0
- package/dist/shared/{chunk-p12g6e7b.js.map → chunk-6jnj2pfx.js.map} +2 -2
- package/dist/shared/chunk-6kdkyjbn.js +5 -0
- package/dist/shared/{chunk-mssxq87m.js.map → chunk-6kdkyjbn.js.map} +2 -2
- package/dist/shared/{chunk-jap9t59k.js → chunk-aj0aak90.js} +14 -52
- package/dist/shared/{chunk-jap9t59k.js.map → chunk-aj0aak90.js.map} +2 -2
- package/dist/shared/chunk-e51ktjsq.js +5 -0
- package/dist/shared/{chunk-efmap3y3.js.map → chunk-e51ktjsq.js.map} +2 -2
- package/dist/shared/{chunk-yszvxhf3.js → chunk-jr0xys18.js} +11 -41
- package/dist/shared/{chunk-yszvxhf3.js.map → chunk-jr0xys18.js.map} +2 -2
- package/dist/shared/chunk-kw4t1san.js +5 -0
- package/dist/shared/{chunk-m9wkjs7v.js.map → chunk-kw4t1san.js.map} +2 -2
- package/dist/shared/chunk-nfv9ce7v.js +5 -0
- package/dist/shared/{chunk-qbn9p4vj.js.map → chunk-nfv9ce7v.js.map} +2 -2
- package/dist/shared/chunk-p22keb3y.js +5 -0
- package/dist/shared/{chunk-bkdccdhn.js.map → chunk-p22keb3y.js.map} +2 -2
- package/dist/shared/chunk-pbns711f.js +5 -0
- package/dist/shared/{chunk-hkfj9j6w.js.map → chunk-pbns711f.js.map} +2 -2
- package/dist/shared/{chunk-6vmvyg0q.js → chunk-qrs0g3m9.js} +17 -58
- package/dist/shared/{chunk-6vmvyg0q.js.map → chunk-qrs0g3m9.js.map} +2 -2
- package/dist/shared/{chunk-eets3mef.js → chunk-qyf32qsz.js} +22 -75
- package/dist/shared/{chunk-eets3mef.js.map → chunk-qyf32qsz.js.map} +2 -2
- package/dist/shared/chunk-t1jad451.js +5 -0
- package/dist/shared/{chunk-cv6xa6qy.js.map → chunk-t1jad451.js.map} +2 -2
- package/dist/shared/chunk-t5cy307m.js +5 -0
- package/dist/shared/{chunk-wg7xcq50.js.map → chunk-t5cy307m.js.map} +2 -2
- package/dist/shared/chunk-x2d798hg.js +5 -0
- package/dist/shared/{chunk-sk8z5zmk.js.map → chunk-x2d798hg.js.map} +2 -2
- package/dist/shared/chunk-x3pmm3na.js +5 -0
- package/dist/shared/{chunk-cwxhwya1.js.map → chunk-x3pmm3na.js.map} +2 -2
- package/dist/shared/chunk-xrqhqgen.js +5 -0
- package/dist/shared/{chunk-chan1evn.js.map → chunk-xrqhqgen.js.map} +2 -2
- package/dist/shared/chunk-xwe8m6av.js +5 -0
- package/dist/shared/{chunk-0swb1h0m.js.map → chunk-xwe8m6av.js.map} +2 -2
- package/dist/shared/chunk-yrwsqc6r.js +5 -0
- package/dist/shared/{chunk-6m3p1ht9.js.map → chunk-yrwsqc6r.js.map} +2 -2
- package/dist/src/entities/book/index.js +2 -34
- package/dist/src/entities/book/index.js.map +1 -1
- package/dist/src/entities/common/index.js +2 -26
- package/dist/src/entities/common/index.js.map +1 -1
- package/dist/src/entities/country/index.js +2 -9
- package/dist/src/entities/country/index.js.map +1 -1
- package/dist/src/entities/currency/index.js +2 -9
- package/dist/src/entities/currency/index.js.map +1 -1
- package/dist/src/entities/folder/index.js +2 -394
- package/dist/src/entities/folder/index.js.map +2 -2
- package/dist/src/entities/gamification/flashcard/index.js +2 -26
- package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
- package/dist/src/entities/gamification/index.js +2 -9
- package/dist/src/entities/gamification/index.js.map +1 -1
- package/dist/src/entities/gamification/mcq/index.js +2 -36
- package/dist/src/entities/gamification/mcq/index.js.map +1 -1
- package/dist/src/entities/image/index.js +2 -31
- package/dist/src/entities/image/index.js.map +1 -1
- package/dist/src/entities/medecine/index.js +2 -13
- package/dist/src/entities/medecine/index.js.map +1 -1
- package/dist/src/entities/payment/index.js +2 -23
- package/dist/src/entities/payment/index.js.map +1 -1
- package/dist/src/entities/user/index.js +2 -30
- package/dist/src/entities/user/index.js.map +1 -1
- package/dist/src/entities/video/index.js +2 -34
- package/dist/src/entities/video/index.js.map +1 -1
- package/dist/src/migrations/book/index.js +137 -541
- package/dist/src/migrations/book/index.js.map +2 -2
- package/dist/src/migrations/common/index.js +14 -63
- package/dist/src/migrations/common/index.js.map +2 -2
- package/dist/src/migrations/country/index.js +13 -48
- package/dist/src/migrations/country/index.js.map +2 -2
- package/dist/src/migrations/currency/index.js +14 -50
- package/dist/src/migrations/currency/index.js.map +2 -2
- package/dist/src/migrations/folder/index.js +104 -426
- package/dist/src/migrations/folder/index.js.map +2 -2
- package/dist/src/migrations/gamification/flashcard/index.js +96 -356
- package/dist/src/migrations/gamification/flashcard/index.js.map +2 -2
- package/dist/src/migrations/gamification/index.js +2 -8
- package/dist/src/migrations/gamification/index.js.map +1 -1
- package/dist/src/migrations/gamification/mcq/index.js +139 -553
- package/dist/src/migrations/gamification/mcq/index.js.map +2 -2
- package/dist/src/migrations/image/index.js +85 -353
- package/dist/src/migrations/image/index.js.map +2 -2
- package/dist/src/migrations/medecine/index.js +36 -132
- package/dist/src/migrations/medecine/index.js.map +2 -2
- package/dist/src/migrations/payment/index.js +94 -339
- package/dist/src/migrations/payment/index.js.map +2 -2
- package/dist/src/migrations/user/index.js +39 -331
- package/dist/src/migrations/user/index.js.map +2 -2
- package/dist/src/migrations/video/index.js +17 -345
- package/dist/src/migrations/video/index.js.map +2 -2
- package/dist/src/repositories/book/index.js +2 -997
- package/dist/src/repositories/book/index.js.map +2 -2
- package/dist/src/repositories/common/index.js +2 -439
- package/dist/src/repositories/common/index.js.map +2 -2
- package/dist/src/repositories/country/index.js +2 -89
- package/dist/src/repositories/country/index.js.map +2 -2
- package/dist/src/repositories/currency/index.js +2 -89
- package/dist/src/repositories/currency/index.js.map +2 -2
- package/dist/src/repositories/gamification/flashcard/index.js +2 -632
- package/dist/src/repositories/gamification/flashcard/index.js.map +2 -2
- package/dist/src/repositories/gamification/index.js +2 -160
- package/dist/src/repositories/gamification/index.js.map +2 -2
- package/dist/src/repositories/gamification/mcq/index.js +2 -1017
- package/dist/src/repositories/gamification/mcq/index.js.map +2 -2
- package/dist/src/repositories/image/index.js +2 -800
- package/dist/src/repositories/image/index.js.map +2 -2
- package/dist/src/repositories/medecine/index.js +2 -243
- package/dist/src/repositories/medecine/index.js.map +2 -2
- package/dist/src/repositories/payment/index.js +2 -560
- package/dist/src/repositories/payment/index.js.map +2 -2
- package/dist/src/repositories/user/index.js +2 -999
- package/dist/src/repositories/user/index.js.map +2 -2
- package/dist/src/repositories/video/index.js +2 -975
- package/dist/src/repositories/video/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/shared/chunk-0swb1h0m.js +0 -51
- package/dist/shared/chunk-2wdazj26.js +0 -371
- package/dist/shared/chunk-6m3p1ht9.js +0 -606
- package/dist/shared/chunk-bkdccdhn.js +0 -105
- package/dist/shared/chunk-chan1evn.js +0 -72
- package/dist/shared/chunk-cv6xa6qy.js +0 -621
- package/dist/shared/chunk-cwxhwya1.js +0 -548
- package/dist/shared/chunk-efmap3y3.js +0 -345
- package/dist/shared/chunk-hkfj9j6w.js +0 -30
- package/dist/shared/chunk-m4mpkr4n.js +0 -34
- package/dist/shared/chunk-m9wkjs7v.js +0 -639
- package/dist/shared/chunk-mssxq87m.js +0 -195
- package/dist/shared/chunk-p12g6e7b.js +0 -38
- package/dist/shared/chunk-qbn9p4vj.js +0 -835
- package/dist/shared/chunk-r9hsk9fk.js +0 -20
- package/dist/shared/chunk-sk8z5zmk.js +0 -112
- package/dist/shared/chunk-tqd6ek7s.js +0 -86
- package/dist/shared/chunk-wg7xcq50.js +0 -38
|
@@ -1,977 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
VideoCommentEntity,
|
|
4
|
-
VideoDislikedEntity,
|
|
5
|
-
VideoDownloadedEntity,
|
|
6
|
-
VideoEntity,
|
|
7
|
-
VideoLikedEntity,
|
|
8
|
-
VideoPlaylistEntity,
|
|
9
|
-
VideoProgressEntity,
|
|
10
|
-
VideoReportEntity,
|
|
11
|
-
VideoSavedEntity,
|
|
12
|
-
VideoSharedEntity,
|
|
13
|
-
VideoStatEntity,
|
|
14
|
-
VideoViewedEntity
|
|
15
|
-
} from "../../../shared/chunk-cv6xa6qy.js";
|
|
16
|
-
import"../../../shared/chunk-0swb1h0m.js";
|
|
17
|
-
import"../../../shared/chunk-p12g6e7b.js";
|
|
18
|
-
import"../../../shared/chunk-sk8z5zmk.js";
|
|
19
|
-
import"../../../shared/chunk-chan1evn.js";
|
|
20
|
-
import {
|
|
21
|
-
__legacyDecorateClassTS,
|
|
22
|
-
__legacyDecorateParamTS,
|
|
23
|
-
__legacyMetadataTS
|
|
24
|
-
} from "../../../shared/chunk-r9hsk9fk.js";
|
|
2
|
+
import{ea as m,fa as w,ga as P,ha as E,ia as u,ja as R,ka as g,la as V,ma as k,na as y,oa as l,pa as c}from"../../../shared/chunk-t1jad451.js";import"../../../shared/chunk-xwe8m6av.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import{Ha as K,Ia as M,Ja as N}from"../../../shared/chunk-59vwmfpm.js";import{inject as d}from"@ooneex/container";import{decorator as p}from"@ooneex/repository";class _{database;constructor(x){this.database=x}async open(){return await this.database.open(w)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}_=K([p.repository(),M(0,d("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],_);import{inject as a}from"@ooneex/container";import{decorator as n}from"@ooneex/repository";class ${database;constructor(x){this.database=x}async open(){return await this.database.open(P)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}$=K([n.repository(),M(0,a("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],$);import{inject as s}from"@ooneex/container";import{decorator as r}from"@ooneex/repository";class W{database;constructor(x){this.database=x}async open(){return await this.database.open(E)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}W=K([r.repository(),M(0,s("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],W);import{inject as o}from"@ooneex/container";import{decorator as e}from"@ooneex/repository";class O{database;constructor(x){this.database=x}async open(){return await this.database.open(u)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}O=K([e.repository(),M(0,o("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],O);import{inject as t}from"@ooneex/container";import{decorator as i}from"@ooneex/repository";import{ILike as D}from"typeorm";class I{database;constructor(x){this.database=x}async open(){return await this.database.open(R)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,q:F,...B}=x,G,J=A===0?100:A;if(z&&z>0&&A&&A>0)G=(z-1)*J;let H={...B,take:J,...G!==void 0&&{skip:G}};if(F){let T=[{name:D(`%${F}%`)},{description:D(`%${F}%`)}];H={...H,where:B.where?[...T.map((U)=>({...B.where,...U}))]:T}}let Q=await f.find(H),Y=B.where;if(F){let T=[{name:D(`%${F}%`)},{description:D(`%${F}%`)}];Y=B.where?[...T.map((U)=>({...B.where,...U}))]:T}let Z=await this.count(Y),v=Math.ceil(Z/A);return{resources:Q,total:Z,totalPages:v,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}I=K([i.repository(),M(0,t("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],I);import{inject as xx}from"@ooneex/container";import{decorator as fx}from"@ooneex/repository";class b{database;constructor(x){this.database=x}async open(){return await this.database.open(g)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}b=K([fx.repository(),M(0,xx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],b);import{inject as zx}from"@ooneex/container";import{decorator as Ax}from"@ooneex/repository";class j{database;constructor(x){this.database=x}async open(){return await this.database.open(V)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}j=K([Ax.repository(),M(0,zx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],j);import{inject as Bx}from"@ooneex/container";import{decorator as Fx}from"@ooneex/repository";import{ILike as X}from"typeorm";class C{database;constructor(x){this.database=x}async open(){return await this.database.open(m)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,q:F,...B}=x,G,J=A===0?100:A;if(z&&z>0&&A&&A>0)G=(z-1)*J;let H={...B,take:J,...G!==void 0&&{skip:G}};if(F){let T=[{title:X(`%${F}%`)},{subtitle:X(`%${F}%`)},{description:X(`%${F}%`)}];H={...H,where:B.where?[...T.map((U)=>({...B.where,...U}))]:T}}let Q=await f.find(H),Y=B.where;if(F){let T=[{title:X(`%${F}%`)},{subtitle:X(`%${F}%`)},{description:X(`%${F}%`)}];Y=B.where?[...T.map((U)=>({...B.where,...U}))]:T}let Z=await this.count(Y),v=Math.ceil(Z/A);return{resources:Q,total:Z,totalPages:v,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}C=K([Fx.repository(),M(0,Bx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],C);import{inject as Gx}from"@ooneex/container";import{decorator as Hx}from"@ooneex/repository";class q{database;constructor(x){this.database=x}async open(){return await this.database.open(k)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}q=K([Hx.repository(),M(0,Gx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],q);import{inject as Jx}from"@ooneex/container";import{decorator as Kx}from"@ooneex/repository";class L{database;constructor(x){this.database=x}async open(){return await this.database.open(y)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}L=K([Kx.repository(),M(0,Jx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],L);import{inject as Mx}from"@ooneex/container";import{decorator as Nx}from"@ooneex/repository";class S{database;constructor(x){this.database=x}async open(){return await this.database.open(l)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}S=K([Nx.repository(),M(0,Mx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],S);import{inject as Qx}from"@ooneex/container";import{decorator as Tx}from"@ooneex/repository";class h{database;constructor(x){this.database=x}async open(){return await this.database.open(c)}async close(){await this.database.close()}async find(x){let f=await this.open(),{page:z=1,limit:A=100,...F}=x,B,G=A===0?100:A;if(z&&z>0&&A&&A>0)B=(z-1)*G;let J=await f.find({...F,take:G,...B!==void 0&&{skip:B}}),H=await this.count(F.where),Q=Math.ceil(H/A);return{resources:J,total:H,totalPages:Q,page:z,limit:A}}async findOne(x){return await(await this.open()).findOne({where:{id:x}})}async findOneBy(x){return await(await this.open()).findOne({where:x})}async create(x,f){return await(await this.open()).save(x,f)}async createMany(x,f){return await(await this.open()).save(x,f)}async update(x,f){return await this.create(x,f)}async updateMany(x,f){return await this.createMany(x,f)}async delete(x){return await(await this.open()).softDelete(x)}async count(x){return await(await this.open()).count(x?{where:x}:{})}}h=K([Tx.repository(),M(0,Qx("database")),N("design:paramtypes",[typeof ITypeormDatabase==="undefined"?Object:ITypeormDatabase])],h);export{h as VideoViewedRepository,S as VideoStatRepository,L as VideoSharedRepository,q as VideoSavedRepository,C as VideoRepository,j as VideoReportRepository,b as VideoProgressRepository,I as VideoPlaylistRepository,O as VideoLikedRepository,W as VideoDownloadedRepository,$ as VideoDislikedRepository,_ as VideoCommentRepository};
|
|
25
3
|
|
|
26
|
-
|
|
27
|
-
import { inject } from "@ooneex/container";
|
|
28
|
-
import { decorator } from "@ooneex/repository";
|
|
29
|
-
class VideoCommentRepository {
|
|
30
|
-
database;
|
|
31
|
-
constructor(database) {
|
|
32
|
-
this.database = database;
|
|
33
|
-
}
|
|
34
|
-
async open() {
|
|
35
|
-
return await this.database.open(VideoCommentEntity);
|
|
36
|
-
}
|
|
37
|
-
async close() {
|
|
38
|
-
await this.database.close();
|
|
39
|
-
}
|
|
40
|
-
async find(criteria) {
|
|
41
|
-
const repository = await this.open();
|
|
42
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
43
|
-
let skip;
|
|
44
|
-
const take = limit === 0 ? 100 : limit;
|
|
45
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
46
|
-
skip = (page - 1) * take;
|
|
47
|
-
}
|
|
48
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
49
|
-
const total = await this.count(rest.where);
|
|
50
|
-
const totalPages = Math.ceil(total / limit);
|
|
51
|
-
return {
|
|
52
|
-
resources: result,
|
|
53
|
-
total,
|
|
54
|
-
totalPages,
|
|
55
|
-
page,
|
|
56
|
-
limit
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
async findOne(id) {
|
|
60
|
-
const repository = await this.open();
|
|
61
|
-
return await repository.findOne({
|
|
62
|
-
where: { id }
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
async findOneBy(criteria) {
|
|
66
|
-
const repository = await this.open();
|
|
67
|
-
return await repository.findOne({
|
|
68
|
-
where: criteria
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
async create(entity, options) {
|
|
72
|
-
const repository = await this.open();
|
|
73
|
-
return await repository.save(entity, options);
|
|
74
|
-
}
|
|
75
|
-
async createMany(entities, options) {
|
|
76
|
-
const repository = await this.open();
|
|
77
|
-
return await repository.save(entities, options);
|
|
78
|
-
}
|
|
79
|
-
async update(entity, options) {
|
|
80
|
-
return await this.create(entity, options);
|
|
81
|
-
}
|
|
82
|
-
async updateMany(entities, options) {
|
|
83
|
-
return await this.createMany(entities, options);
|
|
84
|
-
}
|
|
85
|
-
async delete(criteria) {
|
|
86
|
-
const repository = await this.open();
|
|
87
|
-
return await repository.softDelete(criteria);
|
|
88
|
-
}
|
|
89
|
-
async count(criteria) {
|
|
90
|
-
const repository = await this.open();
|
|
91
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
VideoCommentRepository = __legacyDecorateClassTS([
|
|
95
|
-
decorator.repository(),
|
|
96
|
-
__legacyDecorateParamTS(0, inject("database")),
|
|
97
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
98
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
99
|
-
])
|
|
100
|
-
], VideoCommentRepository);
|
|
101
|
-
// src/repositories/video/VideoDislikedRepository.ts
|
|
102
|
-
import { inject as inject2 } from "@ooneex/container";
|
|
103
|
-
import { decorator as decorator2 } from "@ooneex/repository";
|
|
104
|
-
class VideoDislikedRepository {
|
|
105
|
-
database;
|
|
106
|
-
constructor(database) {
|
|
107
|
-
this.database = database;
|
|
108
|
-
}
|
|
109
|
-
async open() {
|
|
110
|
-
return await this.database.open(VideoDislikedEntity);
|
|
111
|
-
}
|
|
112
|
-
async close() {
|
|
113
|
-
await this.database.close();
|
|
114
|
-
}
|
|
115
|
-
async find(criteria) {
|
|
116
|
-
const repository = await this.open();
|
|
117
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
118
|
-
let skip;
|
|
119
|
-
const take = limit === 0 ? 100 : limit;
|
|
120
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
121
|
-
skip = (page - 1) * take;
|
|
122
|
-
}
|
|
123
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
124
|
-
const total = await this.count(rest.where);
|
|
125
|
-
const totalPages = Math.ceil(total / limit);
|
|
126
|
-
return {
|
|
127
|
-
resources: result,
|
|
128
|
-
total,
|
|
129
|
-
totalPages,
|
|
130
|
-
page,
|
|
131
|
-
limit
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
async findOne(id) {
|
|
135
|
-
const repository = await this.open();
|
|
136
|
-
return await repository.findOne({
|
|
137
|
-
where: { id }
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
async findOneBy(criteria) {
|
|
141
|
-
const repository = await this.open();
|
|
142
|
-
return await repository.findOne({
|
|
143
|
-
where: criteria
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
async create(entity, options) {
|
|
147
|
-
const repository = await this.open();
|
|
148
|
-
return await repository.save(entity, options);
|
|
149
|
-
}
|
|
150
|
-
async createMany(entities, options) {
|
|
151
|
-
const repository = await this.open();
|
|
152
|
-
return await repository.save(entities, options);
|
|
153
|
-
}
|
|
154
|
-
async update(entity, options) {
|
|
155
|
-
return await this.create(entity, options);
|
|
156
|
-
}
|
|
157
|
-
async updateMany(entities, options) {
|
|
158
|
-
return await this.createMany(entities, options);
|
|
159
|
-
}
|
|
160
|
-
async delete(criteria) {
|
|
161
|
-
const repository = await this.open();
|
|
162
|
-
return await repository.softDelete(criteria);
|
|
163
|
-
}
|
|
164
|
-
async count(criteria) {
|
|
165
|
-
const repository = await this.open();
|
|
166
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
VideoDislikedRepository = __legacyDecorateClassTS([
|
|
170
|
-
decorator2.repository(),
|
|
171
|
-
__legacyDecorateParamTS(0, inject2("database")),
|
|
172
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
173
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
174
|
-
])
|
|
175
|
-
], VideoDislikedRepository);
|
|
176
|
-
// src/repositories/video/VideoDownloadedRepository.ts
|
|
177
|
-
import { inject as inject3 } from "@ooneex/container";
|
|
178
|
-
import { decorator as decorator3 } from "@ooneex/repository";
|
|
179
|
-
class VideoDownloadedRepository {
|
|
180
|
-
database;
|
|
181
|
-
constructor(database) {
|
|
182
|
-
this.database = database;
|
|
183
|
-
}
|
|
184
|
-
async open() {
|
|
185
|
-
return await this.database.open(VideoDownloadedEntity);
|
|
186
|
-
}
|
|
187
|
-
async close() {
|
|
188
|
-
await this.database.close();
|
|
189
|
-
}
|
|
190
|
-
async find(criteria) {
|
|
191
|
-
const repository = await this.open();
|
|
192
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
193
|
-
let skip;
|
|
194
|
-
const take = limit === 0 ? 100 : limit;
|
|
195
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
196
|
-
skip = (page - 1) * take;
|
|
197
|
-
}
|
|
198
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
199
|
-
const total = await this.count(rest.where);
|
|
200
|
-
const totalPages = Math.ceil(total / limit);
|
|
201
|
-
return {
|
|
202
|
-
resources: result,
|
|
203
|
-
total,
|
|
204
|
-
totalPages,
|
|
205
|
-
page,
|
|
206
|
-
limit
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
async findOne(id) {
|
|
210
|
-
const repository = await this.open();
|
|
211
|
-
return await repository.findOne({
|
|
212
|
-
where: { id }
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
async findOneBy(criteria) {
|
|
216
|
-
const repository = await this.open();
|
|
217
|
-
return await repository.findOne({
|
|
218
|
-
where: criteria
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
async create(entity, options) {
|
|
222
|
-
const repository = await this.open();
|
|
223
|
-
return await repository.save(entity, options);
|
|
224
|
-
}
|
|
225
|
-
async createMany(entities, options) {
|
|
226
|
-
const repository = await this.open();
|
|
227
|
-
return await repository.save(entities, options);
|
|
228
|
-
}
|
|
229
|
-
async update(entity, options) {
|
|
230
|
-
return await this.create(entity, options);
|
|
231
|
-
}
|
|
232
|
-
async updateMany(entities, options) {
|
|
233
|
-
return await this.createMany(entities, options);
|
|
234
|
-
}
|
|
235
|
-
async delete(criteria) {
|
|
236
|
-
const repository = await this.open();
|
|
237
|
-
return await repository.softDelete(criteria);
|
|
238
|
-
}
|
|
239
|
-
async count(criteria) {
|
|
240
|
-
const repository = await this.open();
|
|
241
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
VideoDownloadedRepository = __legacyDecorateClassTS([
|
|
245
|
-
decorator3.repository(),
|
|
246
|
-
__legacyDecorateParamTS(0, inject3("database")),
|
|
247
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
248
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
249
|
-
])
|
|
250
|
-
], VideoDownloadedRepository);
|
|
251
|
-
// src/repositories/video/VideoLikedRepository.ts
|
|
252
|
-
import { inject as inject4 } from "@ooneex/container";
|
|
253
|
-
import { decorator as decorator4 } from "@ooneex/repository";
|
|
254
|
-
class VideoLikedRepository {
|
|
255
|
-
database;
|
|
256
|
-
constructor(database) {
|
|
257
|
-
this.database = database;
|
|
258
|
-
}
|
|
259
|
-
async open() {
|
|
260
|
-
return await this.database.open(VideoLikedEntity);
|
|
261
|
-
}
|
|
262
|
-
async close() {
|
|
263
|
-
await this.database.close();
|
|
264
|
-
}
|
|
265
|
-
async find(criteria) {
|
|
266
|
-
const repository = await this.open();
|
|
267
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
268
|
-
let skip;
|
|
269
|
-
const take = limit === 0 ? 100 : limit;
|
|
270
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
271
|
-
skip = (page - 1) * take;
|
|
272
|
-
}
|
|
273
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
274
|
-
const total = await this.count(rest.where);
|
|
275
|
-
const totalPages = Math.ceil(total / limit);
|
|
276
|
-
return {
|
|
277
|
-
resources: result,
|
|
278
|
-
total,
|
|
279
|
-
totalPages,
|
|
280
|
-
page,
|
|
281
|
-
limit
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
async findOne(id) {
|
|
285
|
-
const repository = await this.open();
|
|
286
|
-
return await repository.findOne({
|
|
287
|
-
where: { id }
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
async findOneBy(criteria) {
|
|
291
|
-
const repository = await this.open();
|
|
292
|
-
return await repository.findOne({
|
|
293
|
-
where: criteria
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
async create(entity, options) {
|
|
297
|
-
const repository = await this.open();
|
|
298
|
-
return await repository.save(entity, options);
|
|
299
|
-
}
|
|
300
|
-
async createMany(entities, options) {
|
|
301
|
-
const repository = await this.open();
|
|
302
|
-
return await repository.save(entities, options);
|
|
303
|
-
}
|
|
304
|
-
async update(entity, options) {
|
|
305
|
-
return await this.create(entity, options);
|
|
306
|
-
}
|
|
307
|
-
async updateMany(entities, options) {
|
|
308
|
-
return await this.createMany(entities, options);
|
|
309
|
-
}
|
|
310
|
-
async delete(criteria) {
|
|
311
|
-
const repository = await this.open();
|
|
312
|
-
return await repository.softDelete(criteria);
|
|
313
|
-
}
|
|
314
|
-
async count(criteria) {
|
|
315
|
-
const repository = await this.open();
|
|
316
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
VideoLikedRepository = __legacyDecorateClassTS([
|
|
320
|
-
decorator4.repository(),
|
|
321
|
-
__legacyDecorateParamTS(0, inject4("database")),
|
|
322
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
323
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
324
|
-
])
|
|
325
|
-
], VideoLikedRepository);
|
|
326
|
-
// src/repositories/video/VideoPlaylistRepository.ts
|
|
327
|
-
import { inject as inject5 } from "@ooneex/container";
|
|
328
|
-
import { decorator as decorator5 } from "@ooneex/repository";
|
|
329
|
-
import { ILike } from "typeorm";
|
|
330
|
-
class VideoPlaylistRepository {
|
|
331
|
-
database;
|
|
332
|
-
constructor(database) {
|
|
333
|
-
this.database = database;
|
|
334
|
-
}
|
|
335
|
-
async open() {
|
|
336
|
-
return await this.database.open(VideoPlaylistEntity);
|
|
337
|
-
}
|
|
338
|
-
async close() {
|
|
339
|
-
await this.database.close();
|
|
340
|
-
}
|
|
341
|
-
async find(criteria) {
|
|
342
|
-
const repository = await this.open();
|
|
343
|
-
const { page = 1, limit = 100, q, ...rest } = criteria;
|
|
344
|
-
let skip;
|
|
345
|
-
const take = limit === 0 ? 100 : limit;
|
|
346
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
347
|
-
skip = (page - 1) * take;
|
|
348
|
-
}
|
|
349
|
-
let findOptions = { ...rest, take, ...skip !== undefined && { skip } };
|
|
350
|
-
if (q) {
|
|
351
|
-
const searchConditions = [{ name: ILike(`%${q}%`) }, { description: ILike(`%${q}%`) }];
|
|
352
|
-
findOptions = {
|
|
353
|
-
...findOptions,
|
|
354
|
-
where: rest.where ? [...searchConditions.map((condition) => ({ ...rest.where, ...condition }))] : searchConditions
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
const result = await repository.find(findOptions);
|
|
358
|
-
let countWhere = rest.where;
|
|
359
|
-
if (q) {
|
|
360
|
-
const searchConditions = [{ name: ILike(`%${q}%`) }, { description: ILike(`%${q}%`) }];
|
|
361
|
-
countWhere = rest.where ? [...searchConditions.map((condition) => ({ ...rest.where, ...condition }))] : searchConditions;
|
|
362
|
-
}
|
|
363
|
-
const total = await this.count(countWhere);
|
|
364
|
-
const totalPages = Math.ceil(total / limit);
|
|
365
|
-
return {
|
|
366
|
-
resources: result,
|
|
367
|
-
total,
|
|
368
|
-
totalPages,
|
|
369
|
-
page,
|
|
370
|
-
limit
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
async findOne(id) {
|
|
374
|
-
const repository = await this.open();
|
|
375
|
-
return await repository.findOne({
|
|
376
|
-
where: { id }
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
async findOneBy(criteria) {
|
|
380
|
-
const repository = await this.open();
|
|
381
|
-
return await repository.findOne({
|
|
382
|
-
where: criteria
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
async create(entity, options) {
|
|
386
|
-
const repository = await this.open();
|
|
387
|
-
return await repository.save(entity, options);
|
|
388
|
-
}
|
|
389
|
-
async createMany(entities, options) {
|
|
390
|
-
const repository = await this.open();
|
|
391
|
-
return await repository.save(entities, options);
|
|
392
|
-
}
|
|
393
|
-
async update(entity, options) {
|
|
394
|
-
return await this.create(entity, options);
|
|
395
|
-
}
|
|
396
|
-
async updateMany(entities, options) {
|
|
397
|
-
return await this.createMany(entities, options);
|
|
398
|
-
}
|
|
399
|
-
async delete(criteria) {
|
|
400
|
-
const repository = await this.open();
|
|
401
|
-
return await repository.softDelete(criteria);
|
|
402
|
-
}
|
|
403
|
-
async count(criteria) {
|
|
404
|
-
const repository = await this.open();
|
|
405
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
VideoPlaylistRepository = __legacyDecorateClassTS([
|
|
409
|
-
decorator5.repository(),
|
|
410
|
-
__legacyDecorateParamTS(0, inject5("database")),
|
|
411
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
412
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
413
|
-
])
|
|
414
|
-
], VideoPlaylistRepository);
|
|
415
|
-
// src/repositories/video/VideoProgressRepository.ts
|
|
416
|
-
import { inject as inject6 } from "@ooneex/container";
|
|
417
|
-
import { decorator as decorator6 } from "@ooneex/repository";
|
|
418
|
-
class VideoProgressRepository {
|
|
419
|
-
database;
|
|
420
|
-
constructor(database) {
|
|
421
|
-
this.database = database;
|
|
422
|
-
}
|
|
423
|
-
async open() {
|
|
424
|
-
return await this.database.open(VideoProgressEntity);
|
|
425
|
-
}
|
|
426
|
-
async close() {
|
|
427
|
-
await this.database.close();
|
|
428
|
-
}
|
|
429
|
-
async find(criteria) {
|
|
430
|
-
const repository = await this.open();
|
|
431
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
432
|
-
let skip;
|
|
433
|
-
const take = limit === 0 ? 100 : limit;
|
|
434
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
435
|
-
skip = (page - 1) * take;
|
|
436
|
-
}
|
|
437
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
438
|
-
const total = await this.count(rest.where);
|
|
439
|
-
const totalPages = Math.ceil(total / limit);
|
|
440
|
-
return {
|
|
441
|
-
resources: result,
|
|
442
|
-
total,
|
|
443
|
-
totalPages,
|
|
444
|
-
page,
|
|
445
|
-
limit
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
async findOne(id) {
|
|
449
|
-
const repository = await this.open();
|
|
450
|
-
return await repository.findOne({
|
|
451
|
-
where: { id }
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
async findOneBy(criteria) {
|
|
455
|
-
const repository = await this.open();
|
|
456
|
-
return await repository.findOne({
|
|
457
|
-
where: criteria
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
async create(entity, options) {
|
|
461
|
-
const repository = await this.open();
|
|
462
|
-
return await repository.save(entity, options);
|
|
463
|
-
}
|
|
464
|
-
async createMany(entities, options) {
|
|
465
|
-
const repository = await this.open();
|
|
466
|
-
return await repository.save(entities, options);
|
|
467
|
-
}
|
|
468
|
-
async update(entity, options) {
|
|
469
|
-
return await this.create(entity, options);
|
|
470
|
-
}
|
|
471
|
-
async updateMany(entities, options) {
|
|
472
|
-
return await this.createMany(entities, options);
|
|
473
|
-
}
|
|
474
|
-
async delete(criteria) {
|
|
475
|
-
const repository = await this.open();
|
|
476
|
-
return await repository.softDelete(criteria);
|
|
477
|
-
}
|
|
478
|
-
async count(criteria) {
|
|
479
|
-
const repository = await this.open();
|
|
480
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
VideoProgressRepository = __legacyDecorateClassTS([
|
|
484
|
-
decorator6.repository(),
|
|
485
|
-
__legacyDecorateParamTS(0, inject6("database")),
|
|
486
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
487
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
488
|
-
])
|
|
489
|
-
], VideoProgressRepository);
|
|
490
|
-
// src/repositories/video/VideoReportRepository.ts
|
|
491
|
-
import { inject as inject7 } from "@ooneex/container";
|
|
492
|
-
import { decorator as decorator7 } from "@ooneex/repository";
|
|
493
|
-
class VideoReportRepository {
|
|
494
|
-
database;
|
|
495
|
-
constructor(database) {
|
|
496
|
-
this.database = database;
|
|
497
|
-
}
|
|
498
|
-
async open() {
|
|
499
|
-
return await this.database.open(VideoReportEntity);
|
|
500
|
-
}
|
|
501
|
-
async close() {
|
|
502
|
-
await this.database.close();
|
|
503
|
-
}
|
|
504
|
-
async find(criteria) {
|
|
505
|
-
const repository = await this.open();
|
|
506
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
507
|
-
let skip;
|
|
508
|
-
const take = limit === 0 ? 100 : limit;
|
|
509
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
510
|
-
skip = (page - 1) * take;
|
|
511
|
-
}
|
|
512
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
513
|
-
const total = await this.count(rest.where);
|
|
514
|
-
const totalPages = Math.ceil(total / limit);
|
|
515
|
-
return {
|
|
516
|
-
resources: result,
|
|
517
|
-
total,
|
|
518
|
-
totalPages,
|
|
519
|
-
page,
|
|
520
|
-
limit
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
async findOne(id) {
|
|
524
|
-
const repository = await this.open();
|
|
525
|
-
return await repository.findOne({
|
|
526
|
-
where: { id }
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
async findOneBy(criteria) {
|
|
530
|
-
const repository = await this.open();
|
|
531
|
-
return await repository.findOne({
|
|
532
|
-
where: criteria
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
async create(entity, options) {
|
|
536
|
-
const repository = await this.open();
|
|
537
|
-
return await repository.save(entity, options);
|
|
538
|
-
}
|
|
539
|
-
async createMany(entities, options) {
|
|
540
|
-
const repository = await this.open();
|
|
541
|
-
return await repository.save(entities, options);
|
|
542
|
-
}
|
|
543
|
-
async update(entity, options) {
|
|
544
|
-
return await this.create(entity, options);
|
|
545
|
-
}
|
|
546
|
-
async updateMany(entities, options) {
|
|
547
|
-
return await this.createMany(entities, options);
|
|
548
|
-
}
|
|
549
|
-
async delete(criteria) {
|
|
550
|
-
const repository = await this.open();
|
|
551
|
-
return await repository.softDelete(criteria);
|
|
552
|
-
}
|
|
553
|
-
async count(criteria) {
|
|
554
|
-
const repository = await this.open();
|
|
555
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
VideoReportRepository = __legacyDecorateClassTS([
|
|
559
|
-
decorator7.repository(),
|
|
560
|
-
__legacyDecorateParamTS(0, inject7("database")),
|
|
561
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
562
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
563
|
-
])
|
|
564
|
-
], VideoReportRepository);
|
|
565
|
-
// src/repositories/video/VideoRepository.ts
|
|
566
|
-
import { inject as inject8 } from "@ooneex/container";
|
|
567
|
-
import { decorator as decorator8 } from "@ooneex/repository";
|
|
568
|
-
import { ILike as ILike2 } from "typeorm";
|
|
569
|
-
class VideoRepository {
|
|
570
|
-
database;
|
|
571
|
-
constructor(database) {
|
|
572
|
-
this.database = database;
|
|
573
|
-
}
|
|
574
|
-
async open() {
|
|
575
|
-
return await this.database.open(VideoEntity);
|
|
576
|
-
}
|
|
577
|
-
async close() {
|
|
578
|
-
await this.database.close();
|
|
579
|
-
}
|
|
580
|
-
async find(criteria) {
|
|
581
|
-
const repository = await this.open();
|
|
582
|
-
const { page = 1, limit = 100, q, ...rest } = criteria;
|
|
583
|
-
let skip;
|
|
584
|
-
const take = limit === 0 ? 100 : limit;
|
|
585
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
586
|
-
skip = (page - 1) * take;
|
|
587
|
-
}
|
|
588
|
-
let findOptions = { ...rest, take, ...skip !== undefined && { skip } };
|
|
589
|
-
if (q) {
|
|
590
|
-
const searchConditions = [
|
|
591
|
-
{ title: ILike2(`%${q}%`) },
|
|
592
|
-
{ subtitle: ILike2(`%${q}%`) },
|
|
593
|
-
{ description: ILike2(`%${q}%`) }
|
|
594
|
-
];
|
|
595
|
-
findOptions = {
|
|
596
|
-
...findOptions,
|
|
597
|
-
where: rest.where ? [...searchConditions.map((condition) => ({ ...rest.where, ...condition }))] : searchConditions
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
const result = await repository.find(findOptions);
|
|
601
|
-
let countWhere = rest.where;
|
|
602
|
-
if (q) {
|
|
603
|
-
const searchConditions = [
|
|
604
|
-
{ title: ILike2(`%${q}%`) },
|
|
605
|
-
{ subtitle: ILike2(`%${q}%`) },
|
|
606
|
-
{ description: ILike2(`%${q}%`) }
|
|
607
|
-
];
|
|
608
|
-
countWhere = rest.where ? [...searchConditions.map((condition) => ({ ...rest.where, ...condition }))] : searchConditions;
|
|
609
|
-
}
|
|
610
|
-
const total = await this.count(countWhere);
|
|
611
|
-
const totalPages = Math.ceil(total / limit);
|
|
612
|
-
return {
|
|
613
|
-
resources: result,
|
|
614
|
-
total,
|
|
615
|
-
totalPages,
|
|
616
|
-
page,
|
|
617
|
-
limit
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
async findOne(id) {
|
|
621
|
-
const repository = await this.open();
|
|
622
|
-
return await repository.findOne({
|
|
623
|
-
where: { id }
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
async findOneBy(criteria) {
|
|
627
|
-
const repository = await this.open();
|
|
628
|
-
return await repository.findOne({
|
|
629
|
-
where: criteria
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
async create(entity, options) {
|
|
633
|
-
const repository = await this.open();
|
|
634
|
-
return await repository.save(entity, options);
|
|
635
|
-
}
|
|
636
|
-
async createMany(entities, options) {
|
|
637
|
-
const repository = await this.open();
|
|
638
|
-
return await repository.save(entities, options);
|
|
639
|
-
}
|
|
640
|
-
async update(entity, options) {
|
|
641
|
-
return await this.create(entity, options);
|
|
642
|
-
}
|
|
643
|
-
async updateMany(entities, options) {
|
|
644
|
-
return await this.createMany(entities, options);
|
|
645
|
-
}
|
|
646
|
-
async delete(criteria) {
|
|
647
|
-
const repository = await this.open();
|
|
648
|
-
return await repository.softDelete(criteria);
|
|
649
|
-
}
|
|
650
|
-
async count(criteria) {
|
|
651
|
-
const repository = await this.open();
|
|
652
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
VideoRepository = __legacyDecorateClassTS([
|
|
656
|
-
decorator8.repository(),
|
|
657
|
-
__legacyDecorateParamTS(0, inject8("database")),
|
|
658
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
659
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
660
|
-
])
|
|
661
|
-
], VideoRepository);
|
|
662
|
-
// src/repositories/video/VideoSavedRepository.ts
|
|
663
|
-
import { inject as inject9 } from "@ooneex/container";
|
|
664
|
-
import { decorator as decorator9 } from "@ooneex/repository";
|
|
665
|
-
class VideoSavedRepository {
|
|
666
|
-
database;
|
|
667
|
-
constructor(database) {
|
|
668
|
-
this.database = database;
|
|
669
|
-
}
|
|
670
|
-
async open() {
|
|
671
|
-
return await this.database.open(VideoSavedEntity);
|
|
672
|
-
}
|
|
673
|
-
async close() {
|
|
674
|
-
await this.database.close();
|
|
675
|
-
}
|
|
676
|
-
async find(criteria) {
|
|
677
|
-
const repository = await this.open();
|
|
678
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
679
|
-
let skip;
|
|
680
|
-
const take = limit === 0 ? 100 : limit;
|
|
681
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
682
|
-
skip = (page - 1) * take;
|
|
683
|
-
}
|
|
684
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
685
|
-
const total = await this.count(rest.where);
|
|
686
|
-
const totalPages = Math.ceil(total / limit);
|
|
687
|
-
return {
|
|
688
|
-
resources: result,
|
|
689
|
-
total,
|
|
690
|
-
totalPages,
|
|
691
|
-
page,
|
|
692
|
-
limit
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
async findOne(id) {
|
|
696
|
-
const repository = await this.open();
|
|
697
|
-
return await repository.findOne({
|
|
698
|
-
where: { id }
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
async findOneBy(criteria) {
|
|
702
|
-
const repository = await this.open();
|
|
703
|
-
return await repository.findOne({
|
|
704
|
-
where: criteria
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
async create(entity, options) {
|
|
708
|
-
const repository = await this.open();
|
|
709
|
-
return await repository.save(entity, options);
|
|
710
|
-
}
|
|
711
|
-
async createMany(entities, options) {
|
|
712
|
-
const repository = await this.open();
|
|
713
|
-
return await repository.save(entities, options);
|
|
714
|
-
}
|
|
715
|
-
async update(entity, options) {
|
|
716
|
-
return await this.create(entity, options);
|
|
717
|
-
}
|
|
718
|
-
async updateMany(entities, options) {
|
|
719
|
-
return await this.createMany(entities, options);
|
|
720
|
-
}
|
|
721
|
-
async delete(criteria) {
|
|
722
|
-
const repository = await this.open();
|
|
723
|
-
return await repository.softDelete(criteria);
|
|
724
|
-
}
|
|
725
|
-
async count(criteria) {
|
|
726
|
-
const repository = await this.open();
|
|
727
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
VideoSavedRepository = __legacyDecorateClassTS([
|
|
731
|
-
decorator9.repository(),
|
|
732
|
-
__legacyDecorateParamTS(0, inject9("database")),
|
|
733
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
734
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
735
|
-
])
|
|
736
|
-
], VideoSavedRepository);
|
|
737
|
-
// src/repositories/video/VideoSharedRepository.ts
|
|
738
|
-
import { inject as inject10 } from "@ooneex/container";
|
|
739
|
-
import { decorator as decorator10 } from "@ooneex/repository";
|
|
740
|
-
class VideoSharedRepository {
|
|
741
|
-
database;
|
|
742
|
-
constructor(database) {
|
|
743
|
-
this.database = database;
|
|
744
|
-
}
|
|
745
|
-
async open() {
|
|
746
|
-
return await this.database.open(VideoSharedEntity);
|
|
747
|
-
}
|
|
748
|
-
async close() {
|
|
749
|
-
await this.database.close();
|
|
750
|
-
}
|
|
751
|
-
async find(criteria) {
|
|
752
|
-
const repository = await this.open();
|
|
753
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
754
|
-
let skip;
|
|
755
|
-
const take = limit === 0 ? 100 : limit;
|
|
756
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
757
|
-
skip = (page - 1) * take;
|
|
758
|
-
}
|
|
759
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
760
|
-
const total = await this.count(rest.where);
|
|
761
|
-
const totalPages = Math.ceil(total / limit);
|
|
762
|
-
return {
|
|
763
|
-
resources: result,
|
|
764
|
-
total,
|
|
765
|
-
totalPages,
|
|
766
|
-
page,
|
|
767
|
-
limit
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
async findOne(id) {
|
|
771
|
-
const repository = await this.open();
|
|
772
|
-
return await repository.findOne({
|
|
773
|
-
where: { id }
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
async findOneBy(criteria) {
|
|
777
|
-
const repository = await this.open();
|
|
778
|
-
return await repository.findOne({
|
|
779
|
-
where: criteria
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
async create(entity, options) {
|
|
783
|
-
const repository = await this.open();
|
|
784
|
-
return await repository.save(entity, options);
|
|
785
|
-
}
|
|
786
|
-
async createMany(entities, options) {
|
|
787
|
-
const repository = await this.open();
|
|
788
|
-
return await repository.save(entities, options);
|
|
789
|
-
}
|
|
790
|
-
async update(entity, options) {
|
|
791
|
-
return await this.create(entity, options);
|
|
792
|
-
}
|
|
793
|
-
async updateMany(entities, options) {
|
|
794
|
-
return await this.createMany(entities, options);
|
|
795
|
-
}
|
|
796
|
-
async delete(criteria) {
|
|
797
|
-
const repository = await this.open();
|
|
798
|
-
return await repository.softDelete(criteria);
|
|
799
|
-
}
|
|
800
|
-
async count(criteria) {
|
|
801
|
-
const repository = await this.open();
|
|
802
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
VideoSharedRepository = __legacyDecorateClassTS([
|
|
806
|
-
decorator10.repository(),
|
|
807
|
-
__legacyDecorateParamTS(0, inject10("database")),
|
|
808
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
809
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
810
|
-
])
|
|
811
|
-
], VideoSharedRepository);
|
|
812
|
-
// src/repositories/video/VideoStatRepository.ts
|
|
813
|
-
import { inject as inject11 } from "@ooneex/container";
|
|
814
|
-
import { decorator as decorator11 } from "@ooneex/repository";
|
|
815
|
-
class VideoStatRepository {
|
|
816
|
-
database;
|
|
817
|
-
constructor(database) {
|
|
818
|
-
this.database = database;
|
|
819
|
-
}
|
|
820
|
-
async open() {
|
|
821
|
-
return await this.database.open(VideoStatEntity);
|
|
822
|
-
}
|
|
823
|
-
async close() {
|
|
824
|
-
await this.database.close();
|
|
825
|
-
}
|
|
826
|
-
async find(criteria) {
|
|
827
|
-
const repository = await this.open();
|
|
828
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
829
|
-
let skip;
|
|
830
|
-
const take = limit === 0 ? 100 : limit;
|
|
831
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
832
|
-
skip = (page - 1) * take;
|
|
833
|
-
}
|
|
834
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
835
|
-
const total = await this.count(rest.where);
|
|
836
|
-
const totalPages = Math.ceil(total / limit);
|
|
837
|
-
return {
|
|
838
|
-
resources: result,
|
|
839
|
-
total,
|
|
840
|
-
totalPages,
|
|
841
|
-
page,
|
|
842
|
-
limit
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
async findOne(id) {
|
|
846
|
-
const repository = await this.open();
|
|
847
|
-
return await repository.findOne({
|
|
848
|
-
where: { id }
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
async findOneBy(criteria) {
|
|
852
|
-
const repository = await this.open();
|
|
853
|
-
return await repository.findOne({
|
|
854
|
-
where: criteria
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
async create(entity, options) {
|
|
858
|
-
const repository = await this.open();
|
|
859
|
-
return await repository.save(entity, options);
|
|
860
|
-
}
|
|
861
|
-
async createMany(entities, options) {
|
|
862
|
-
const repository = await this.open();
|
|
863
|
-
return await repository.save(entities, options);
|
|
864
|
-
}
|
|
865
|
-
async update(entity, options) {
|
|
866
|
-
return await this.create(entity, options);
|
|
867
|
-
}
|
|
868
|
-
async updateMany(entities, options) {
|
|
869
|
-
return await this.createMany(entities, options);
|
|
870
|
-
}
|
|
871
|
-
async delete(criteria) {
|
|
872
|
-
const repository = await this.open();
|
|
873
|
-
return await repository.softDelete(criteria);
|
|
874
|
-
}
|
|
875
|
-
async count(criteria) {
|
|
876
|
-
const repository = await this.open();
|
|
877
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
VideoStatRepository = __legacyDecorateClassTS([
|
|
881
|
-
decorator11.repository(),
|
|
882
|
-
__legacyDecorateParamTS(0, inject11("database")),
|
|
883
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
884
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
885
|
-
])
|
|
886
|
-
], VideoStatRepository);
|
|
887
|
-
// src/repositories/video/VideoViewedRepository.ts
|
|
888
|
-
import { inject as inject12 } from "@ooneex/container";
|
|
889
|
-
import { decorator as decorator12 } from "@ooneex/repository";
|
|
890
|
-
class VideoViewedRepository {
|
|
891
|
-
database;
|
|
892
|
-
constructor(database) {
|
|
893
|
-
this.database = database;
|
|
894
|
-
}
|
|
895
|
-
async open() {
|
|
896
|
-
return await this.database.open(VideoViewedEntity);
|
|
897
|
-
}
|
|
898
|
-
async close() {
|
|
899
|
-
await this.database.close();
|
|
900
|
-
}
|
|
901
|
-
async find(criteria) {
|
|
902
|
-
const repository = await this.open();
|
|
903
|
-
const { page = 1, limit = 100, ...rest } = criteria;
|
|
904
|
-
let skip;
|
|
905
|
-
const take = limit === 0 ? 100 : limit;
|
|
906
|
-
if (page && page > 0 && limit && limit > 0) {
|
|
907
|
-
skip = (page - 1) * take;
|
|
908
|
-
}
|
|
909
|
-
const result = await repository.find({ ...rest, take, ...skip !== undefined && { skip } });
|
|
910
|
-
const total = await this.count(rest.where);
|
|
911
|
-
const totalPages = Math.ceil(total / limit);
|
|
912
|
-
return {
|
|
913
|
-
resources: result,
|
|
914
|
-
total,
|
|
915
|
-
totalPages,
|
|
916
|
-
page,
|
|
917
|
-
limit
|
|
918
|
-
};
|
|
919
|
-
}
|
|
920
|
-
async findOne(id) {
|
|
921
|
-
const repository = await this.open();
|
|
922
|
-
return await repository.findOne({
|
|
923
|
-
where: { id }
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
async findOneBy(criteria) {
|
|
927
|
-
const repository = await this.open();
|
|
928
|
-
return await repository.findOne({
|
|
929
|
-
where: criteria
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
async create(entity, options) {
|
|
933
|
-
const repository = await this.open();
|
|
934
|
-
return await repository.save(entity, options);
|
|
935
|
-
}
|
|
936
|
-
async createMany(entities, options) {
|
|
937
|
-
const repository = await this.open();
|
|
938
|
-
return await repository.save(entities, options);
|
|
939
|
-
}
|
|
940
|
-
async update(entity, options) {
|
|
941
|
-
return await this.create(entity, options);
|
|
942
|
-
}
|
|
943
|
-
async updateMany(entities, options) {
|
|
944
|
-
return await this.createMany(entities, options);
|
|
945
|
-
}
|
|
946
|
-
async delete(criteria) {
|
|
947
|
-
const repository = await this.open();
|
|
948
|
-
return await repository.softDelete(criteria);
|
|
949
|
-
}
|
|
950
|
-
async count(criteria) {
|
|
951
|
-
const repository = await this.open();
|
|
952
|
-
return await repository.count(criteria ? { where: criteria } : {});
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
VideoViewedRepository = __legacyDecorateClassTS([
|
|
956
|
-
decorator12.repository(),
|
|
957
|
-
__legacyDecorateParamTS(0, inject12("database")),
|
|
958
|
-
__legacyMetadataTS("design:paramtypes", [
|
|
959
|
-
typeof ITypeormDatabase === "undefined" ? Object : ITypeormDatabase
|
|
960
|
-
])
|
|
961
|
-
], VideoViewedRepository);
|
|
962
|
-
export {
|
|
963
|
-
VideoViewedRepository,
|
|
964
|
-
VideoStatRepository,
|
|
965
|
-
VideoSharedRepository,
|
|
966
|
-
VideoSavedRepository,
|
|
967
|
-
VideoRepository,
|
|
968
|
-
VideoReportRepository,
|
|
969
|
-
VideoProgressRepository,
|
|
970
|
-
VideoPlaylistRepository,
|
|
971
|
-
VideoLikedRepository,
|
|
972
|
-
VideoDownloadedRepository,
|
|
973
|
-
VideoDislikedRepository,
|
|
974
|
-
VideoCommentRepository
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
//# debugId=F4069F3A3501E2EE64756E2164756E21
|
|
4
|
+
//# debugId=F9B81E93DBCDEB7164756E2164756E21
|