@ooneex/typeorm 0.0.1
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/ooneex-typeorm-0.0.1.tgz +0 -0
- package/dist/shared/chunk-2e7zbxcq.js +5 -0
- package/dist/shared/chunk-2e7zbxcq.js.map +10 -0
- package/dist/shared/chunk-764bzjhz.js +5 -0
- package/dist/shared/chunk-764bzjhz.js.map +12 -0
- package/dist/shared/chunk-eh420jqn.js +5 -0
- package/dist/shared/chunk-eh420jqn.js.map +15 -0
- package/dist/shared/chunk-gjsgnzaq.js +5 -0
- package/dist/shared/chunk-gjsgnzaq.js.map +10 -0
- package/dist/shared/chunk-hw4vdg6q.js +5 -0
- package/dist/shared/chunk-hw4vdg6q.js.map +10 -0
- package/dist/shared/chunk-j7nprmyh.js +5 -0
- package/dist/shared/chunk-j7nprmyh.js.map +10 -0
- package/dist/shared/chunk-kgxsdeye.js +5 -0
- package/dist/shared/chunk-kgxsdeye.js.map +13 -0
- package/dist/shared/chunk-ntrrrvwt.js +5 -0
- package/dist/shared/chunk-ntrrrvwt.js.map +12 -0
- package/dist/shared/chunk-pwhygf44.js +5 -0
- package/dist/shared/chunk-pwhygf44.js.map +10 -0
- package/dist/shared/chunk-sd6mmec6.js +5 -0
- package/dist/shared/chunk-sd6mmec6.js.map +12 -0
- package/dist/shared/chunk-wawk30n1.js +5 -0
- package/dist/shared/chunk-wawk30n1.js.map +14 -0
- package/dist/shared/chunk-wmftwzcs.js +5 -0
- package/dist/shared/chunk-wmftwzcs.js.map +16 -0
- package/dist/shared/chunk-zmzz7hqq.js +5 -0
- package/dist/shared/chunk-zmzz7hqq.js.map +10 -0
- package/dist/src/entities/book/index.d.ts +62 -0
- package/dist/src/entities/book/index.js +4 -0
- package/dist/src/entities/book/index.js.map +9 -0
- package/dist/src/entities/common/index.d.ts +81 -0
- package/dist/src/entities/common/index.js +4 -0
- package/dist/src/entities/common/index.js.map +9 -0
- package/dist/src/entities/gamification/flashcard/index.d.ts +179 -0
- package/dist/src/entities/gamification/flashcard/index.js +4 -0
- package/dist/src/entities/gamification/flashcard/index.js.map +9 -0
- package/dist/src/entities/gamification/index.d.ts +22 -0
- package/dist/src/entities/gamification/index.js +4 -0
- package/dist/src/entities/gamification/index.js.map +9 -0
- package/dist/src/entities/gamification/mcq/index.d.ts +74 -0
- package/dist/src/entities/gamification/mcq/index.js +4 -0
- package/dist/src/entities/gamification/mcq/index.js.map +9 -0
- package/dist/src/entities/image/index.d.ts +35 -0
- package/dist/src/entities/image/index.js +4 -0
- package/dist/src/entities/image/index.js.map +9 -0
- package/dist/src/entities/payment/index.d.ts +89 -0
- package/dist/src/entities/payment/index.js +4 -0
- package/dist/src/entities/payment/index.js.map +9 -0
- package/dist/src/entities/user/index.d.ts +122 -0
- package/dist/src/entities/user/index.js +4 -0
- package/dist/src/entities/user/index.js.map +9 -0
- package/dist/src/entities/video/index.d.ts +67 -0
- package/dist/src/entities/video/index.js +4 -0
- package/dist/src/entities/video/index.js.map +9 -0
- package/dist/src/repositories/book/index.d.ts +128 -0
- package/dist/src/repositories/book/index.js +4 -0
- package/dist/src/repositories/book/index.js.map +12 -0
- package/dist/src/repositories/common/index.d.ts +210 -0
- package/dist/src/repositories/common/index.js +4 -0
- package/dist/src/repositories/common/index.js.map +15 -0
- package/dist/src/repositories/gamification/flashcard/index.d.ts +330 -0
- package/dist/src/repositories/gamification/flashcard/index.js +4 -0
- package/dist/src/repositories/gamification/flashcard/index.js.map +16 -0
- package/dist/src/repositories/gamification/index.d.ts +506 -0
- package/dist/src/repositories/gamification/index.js +4 -0
- package/dist/src/repositories/gamification/index.js.map +10 -0
- package/dist/src/repositories/gamification/mcq/index.d.ts +163 -0
- package/dist/src/repositories/gamification/mcq/index.js +4 -0
- package/dist/src/repositories/gamification/mcq/index.js.map +13 -0
- package/dist/src/repositories/image/index.d.ts +57 -0
- package/dist/src/repositories/image/index.js +4 -0
- package/dist/src/repositories/image/index.js.map +10 -0
- package/dist/src/repositories/payment/index.d.ts +220 -0
- package/dist/src/repositories/payment/index.js +4 -0
- package/dist/src/repositories/payment/index.js.map +15 -0
- package/dist/src/repositories/user/index.d.ts +245 -0
- package/dist/src/repositories/user/index.js +4 -0
- package/dist/src/repositories/user/index.js.map +14 -0
- package/dist/src/repositories/video/index.d.ts +132 -0
- package/dist/src/repositories/video/index.js +4 -0
- package/dist/src/repositories/video/index.js.map +12 -0
- package/package.json +155 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ooneex
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @ooneex/entities
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{S as r,T as l}from"./chunk-764bzjhz.js";import{V as e,X as t,Y as m}from"./chunk-j7nprmyh.js";import{IMAGE_FORMATS as i,IMAGE_MIMES as u}from"@ooneex/image";import{Column as a,Entity as o,JoinColumn as p,JoinTable as s,ManyToMany as y,ManyToOne as g}from"typeorm";class n extends m{}e([a({name:"url",type:"varchar",length:500}),t("design:type",String)],n.prototype,"url",void 0),e([a({name:"width",type:"int",nullable:!0}),t("design:type",Number)],n.prototype,"width",void 0),e([a({name:"height",type:"int",nullable:!0}),t("design:type",Number)],n.prototype,"height",void 0),e([a({name:"alt",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"alt",void 0),e([a({name:"title",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"title",void 0),e([a({name:"format",type:"enum",enum:i,nullable:!0}),t("design:type",typeof ImageFormatType==="undefined"?Object:ImageFormatType)],n.prototype,"format",void 0),e([a({name:"mime_type",type:"enum",enum:u,nullable:!0}),t("design:type",typeof ImageMimeType==="undefined"?Object:ImageMimeType)],n.prototype,"mimeType",void 0),e([a({name:"size",type:"bigint",nullable:!0}),t("design:type",Number)],n.prototype,"size",void 0),e([a({name:"metadata",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],n.prototype,"metadata",void 0),e([a({name:"context",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"context",void 0),e([a({name:"context_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],n.prototype,"contextId",void 0),e([g(()=>r,{nullable:!0,eager:!1,cascade:["insert","update"]}),p({name:"status_id"}),t("design:type",typeof IStatus==="undefined"?Object:IStatus)],n.prototype,"status",void 0),e([y(()=>l,{nullable:!0,eager:!1,cascade:["insert","update"]}),s({name:"images_tags",joinColumn:{name:"image_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),t("design:type",Array)],n.prototype,"tags",void 0),n=e([o({name:"images"})],n);
|
|
3
|
+
export{n as Q};
|
|
4
|
+
|
|
5
|
+
//# debugId=64E4CAAE46A94BDF64756E2164756E21
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/image/ImageEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { type IImage, IMAGE_FORMATS, IMAGE_MIMES, type ImageFormatType, type ImageMimeType } from \"@ooneex/image\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { ScalarType } from \"@ooneex/types\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { StatusEntity } from \"../common/StatusEntity\";\nimport { TagEntity } from \"../common/TagEntity\";\n\n@Entity({\n name: \"images\",\n})\nexport class ImageEntity extends BaseEntity implements IImage {\n @Column({ name: \"url\", type: \"varchar\", length: 500 })\n url: string;\n\n @Column({ name: \"width\", type: \"int\", nullable: true })\n width?: number;\n\n @Column({ name: \"height\", type: \"int\", nullable: true })\n height?: number;\n\n @Column({ name: \"alt\", type: \"varchar\", length: 255, nullable: true })\n alt?: string;\n\n @Column({ name: \"title\", type: \"varchar\", length: 255, nullable: true })\n title?: string;\n\n @Column({\n name: \"format\",\n type: \"enum\",\n enum: IMAGE_FORMATS,\n nullable: true,\n })\n format?: ImageFormatType;\n\n @Column({\n name: \"mime_type\",\n type: \"enum\",\n enum: IMAGE_MIMES,\n nullable: true,\n })\n mimeType?: ImageMimeType;\n\n @Column({ name: \"size\", type: \"bigint\", nullable: true })\n size?: number;\n\n @Column({ name: \"metadata\", type: \"jsonb\", nullable: true })\n metadata?: Record<string, ScalarType>;\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n\n @ManyToMany(() => TagEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"images_tags\",\n joinColumn: { name: \"image_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";2GAAA,kBAAsB,iBAAe,sBAIrC,iBAAS,YAAQ,gBAAQ,eAAY,gBAAW,eAAY,gBAQrD,MAAM,UAAoB,CAA6B,CA+D9D,CA7DE,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,UAAW,OAAQ,GAAI,CAAC,EACrD,yBAFW,EAEX,wBAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,MAAO,SAAU,EAAK,CAAC,EACtD,yBALW,EAKX,0BAGA,GADC,EAAO,CAAE,KAAM,SAAU,KAAM,MAAO,SAAU,EAAK,CAAC,EACvD,yBARW,EAQX,2BAGA,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACrE,yBAXW,EAWX,wBAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACvE,yBAdW,EAcX,0BAQA,GANC,EAAO,CACN,KAAM,SACN,KAAM,OACN,KAAM,EACN,SAAU,EACZ,CAAC,EACD,8EAtBW,EAsBX,2BAQA,GANC,EAAO,CACN,KAAM,YACN,KAAM,OACN,KAAM,EACN,SAAU,EACZ,CAAC,EACD,0EA9BW,EA8BX,6BAGA,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,SAAU,SAAU,EAAK,CAAC,EACxD,yBAjCW,EAiCX,yBAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,QAAS,SAAU,EAAK,CAAC,EAC3D,4DApCW,EAoCX,6BAGA,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACzE,yBAvCW,EAuCX,4BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EAC3E,yBA1CW,EA0CX,8BAQA,GANC,EAAU,IAAM,EAAc,CAC7B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,WAAY,CAAC,EACjC,8DAlDW,EAkDX,2BAYA,GAVC,EAAW,IAAM,EAAW,CAC3B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAU,CACT,KAAM,cACN,WAAY,CAAE,KAAM,WAAY,qBAAsB,IAAK,EAC3D,kBAAmB,CAAE,KAAM,SAAU,qBAAsB,IAAK,CAClE,CAAC,EACD,wBA9DW,EA8DX,yBA9DW,EAAN,GAHN,EAAO,CACN,KAAM,QACR,CAAC,GACY",
|
|
8
|
+
"debugId": "64E4CAAE46A94BDF64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{V as e,X as r,Y as l}from"./chunk-j7nprmyh.js";import{Column as t,Entity as u}from"typeorm";class n extends l{}e([t({name:"hex",type:"varchar",length:7,nullable:!0}),r("design:type",typeof HexaType==="undefined"?Object:HexaType)],n.prototype,"hex",void 0),e([t({name:"rgb",type:"varchar",length:50,nullable:!0}),r("design:type",typeof RGBType==="undefined"?Object:RGBType)],n.prototype,"rgb",void 0),e([t({name:"rgba",type:"varchar",length:60,nullable:!0}),r("design:type",typeof RGBAType==="undefined"?Object:RGBAType)],n.prototype,"rgba",void 0),e([t({name:"hsl",type:"varchar",length:50,nullable:!0}),r("design:type",typeof HSLType==="undefined"?Object:HSLType)],n.prototype,"hsl",void 0),e([t({name:"hsla",type:"varchar",length:60,nullable:!0}),r("design:type",typeof HSLAType==="undefined"?Object:HSLAType)],n.prototype,"hsla",void 0),e([t({name:"alpha",type:"decimal",precision:3,scale:2,nullable:!0}),r("design:type",Number)],n.prototype,"alpha",void 0),e([t({name:"red",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"red",void 0),e([t({name:"green",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"green",void 0),e([t({name:"blue",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"blue",void 0),e([t({name:"hue",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"hue",void 0),e([t({name:"saturation",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"saturation",void 0),e([t({name:"lightness",type:"int",nullable:!0}),r("design:type",Number)],n.prototype,"lightness",void 0),n=e([u({name:"colors"})],n);import{EStatus as p}from"@ooneex/status";import{Column as a,Entity as s,JoinColumn as i,ManyToOne as y}from"typeorm";class o extends l{}e([a({name:"status",type:"enum",enum:p}),r("design:type",typeof p==="undefined"?Object:p)],o.prototype,"status",void 0),e([y(()=>n,{nullable:!0,eager:!1,cascade:["insert","update"]}),i({name:"color_id"}),r("design:type",typeof IColor==="undefined"?Object:IColor)],o.prototype,"color",void 0),e([a({name:"description",type:"text",nullable:!0}),r("design:type",String)],o.prototype,"description",void 0),e([a({name:"reason",type:"text",nullable:!0}),r("design:type",String)],o.prototype,"reason",void 0),o=e([s({name:"statuses"})],o);import{Column as b,Entity as c,JoinColumn as h,ManyToOne as g}from"typeorm";class m extends l{}e([b({name:"name",type:"varchar",length:100}),r("design:type",String)],m.prototype,"name",void 0),e([g(()=>n,{nullable:!0,eager:!1,cascade:["insert","update"]}),h({name:"color_id"}),r("design:type",typeof IColor==="undefined"?Object:IColor)],m.prototype,"color",void 0),m=e([c({name:"tags"})],m);
|
|
3
|
+
export{n as R,o as S,m as T};
|
|
4
|
+
|
|
5
|
+
//# debugId=3C5E92A82A97472D64756E2164756E21
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/common/ColorEntity.ts", "src/entities/common/StatusEntity.ts", "src/entities/common/TagEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { HexaType, HSLAType, HSLType, IColor, RGBAType, RGBType } from \"@ooneex/color\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"./BaseEntity\";\n\n@Entity({\n name: \"colors\",\n})\nexport class ColorEntity extends BaseEntity implements IColor {\n @Column({ name: \"hex\", type: \"varchar\", length: 7, nullable: true })\n hex?: HexaType;\n\n @Column({ name: \"rgb\", type: \"varchar\", length: 50, nullable: true })\n rgb?: RGBType;\n\n @Column({ name: \"rgba\", type: \"varchar\", length: 60, nullable: true })\n rgba?: RGBAType;\n\n @Column({ name: \"hsl\", type: \"varchar\", length: 50, nullable: true })\n hsl?: HSLType;\n\n @Column({ name: \"hsla\", type: \"varchar\", length: 60, nullable: true })\n hsla?: HSLAType;\n\n @Column({\n name: \"alpha\",\n type: \"decimal\",\n precision: 3,\n scale: 2,\n nullable: true,\n })\n alpha?: number;\n\n @Column({ name: \"red\", type: \"int\", nullable: true })\n red?: number;\n\n @Column({ name: \"green\", type: \"int\", nullable: true })\n green?: number;\n\n @Column({ name: \"blue\", type: \"int\", nullable: true })\n blue?: number;\n\n @Column({ name: \"hue\", type: \"int\", nullable: true })\n hue?: number;\n\n @Column({ name: \"saturation\", type: \"int\", nullable: true })\n saturation?: number;\n\n @Column({ name: \"lightness\", type: \"int\", nullable: true })\n lightness?: number;\n}\n",
|
|
6
|
+
"import type { IColor } from \"@ooneex/color\";\nimport { EStatus, type IStatus } from \"@ooneex/status\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"./BaseEntity\";\nimport { ColorEntity } from \"./ColorEntity\";\n\n@Entity({\n name: \"statuses\",\n})\nexport class StatusEntity extends BaseEntity implements IStatus {\n @Column({\n name: \"status\",\n type: \"enum\",\n enum: EStatus,\n })\n status: EStatus;\n\n @ManyToOne(() => ColorEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"color_id\" })\n color?: IColor;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"reason\", type: \"text\", nullable: true })\n reason?: string;\n}\n",
|
|
7
|
+
"import type { IColor } from \"@ooneex/color\";\nimport type { ITag } from \"@ooneex/tag\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"./BaseEntity\";\nimport { ColorEntity } from \"./ColorEntity\";\n\n@Entity({\n name: \"tags\",\n})\nexport class TagEntity extends BaseEntity implements ITag {\n @Column({ name: \"name\", type: \"varchar\", length: 100 })\n name: string;\n\n @ManyToOne(() => ColorEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"color_id\" })\n color?: IColor;\n}\n"
|
|
8
|
+
],
|
|
9
|
+
"mappings": ";sDACA,iBAAS,YAAQ,gBAMV,MAAM,UAAoB,CAA6B,CA0C9D,CAxCE,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,UAAW,OAAQ,EAAG,SAAU,EAAK,CAAC,EACnE,gEAFW,EAEX,wBAGA,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EACpE,8DALW,EAKX,wBAGA,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EACrE,gEARW,EAQX,yBAGA,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EACpE,8DAXW,EAWX,wBAGA,GADC,EAAO,CAAE,K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C,EACxD,yBApBW,EAoBX,2BApBW,EAAN,GAHN,EAAO,CACN,KAAM,UACR,CAAC,GACY,GCPb,iBAAS,YAAQ,gBAAQ,eAAY,gBAO9B,MAAM,UAAkB,CAA2B,CAW1D,CATE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAQA,GANC,EAAU,IAAM,EAAa,CAC5B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,UAAW,CAAC,EAChC,4DAVW,EAUX,0BAVW,EAAN,GAHN,EAAO,CACN,KAAM,MACR,CAAC,GACY",
|
|
10
|
+
"debugId": "3C5E92A82A97472D64756E2164756E21",
|
|
11
|
+
"names": []
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{C as x}from"./chunk-zmzz7hqq.js";import{Q as v}from"./chunk-2e7zbxcq.js";import{T as I}from"./chunk-764bzjhz.js";import{V as e,X as n,Y as a}from"./chunk-j7nprmyh.js";import{Column as s,Entity as J}from"typeorm";class i extends a{}e([s({name:"name",type:"varchar",length:255}),n("design:type",String)],i.prototype,"name",void 0),e([s({name:"description",type:"text",nullable:!0}),n("design:type",String)],i.prototype,"description",void 0),e([s({name:"is_enabled",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],i.prototype,"isEnabled",void 0),e([s({name:"limit",type:"int",nullable:!0}),n("design:type",Number)],i.prototype,"limit",void 0),i=e([J({name:"payment_features"})],i);import{ESubscriptionPeriod as g}from"@ooneex/payment";import{Column as r,Entity as j,JoinTable as A,ManyToMany as M}from"typeorm";class m extends a{}e([r({name:"name",type:"varchar",length:255}),n("design:type",String)],m.prototype,"name",void 0),e([r({name:"description",type:"text",nullable:!0}),n("design:type",String)],m.prototype,"description",void 0),e([r({name:"currency",type:"varchar",length:3}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],m.prototype,"currency",void 0),e([r({name:"price",type:"decimal",precision:10,scale:2}),n("design:type",Number)],m.prototype,"price",void 0),e([r({name:"period",type:"enum",enum:g}),n("design:type",typeof g==="undefined"?Object:g)],m.prototype,"period",void 0),e([r({name:"period_count",type:"int",default:1,nullable:!0}),n("design:type",Number)],m.prototype,"periodCount",void 0),e([M(()=>i,{nullable:!0,eager:!1,cascade:["insert","update"]}),A({name:"payment_plans_features",joinColumn:{name:"plan_id",referencedColumnName:"id"},inverseJoinColumn:{name:"feature_id",referencedColumnName:"id"}}),n("design:type",Array)],m.prototype,"features",void 0),e([r({name:"is_active",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],m.prototype,"isActive",void 0),e([r({name:"trial_days",type:"int",default:0,nullable:!0}),n("design:type",Number)],m.prototype,"trialDays",void 0),m=e([j({name:"payment_plans"})],m);import{Column as o,Entity as B,JoinTable as y,ManyToMany as f}from"typeorm";class l extends a{}e([o({name:"name",type:"varchar",length:255}),n("design:type",String)],l.prototype,"name",void 0),e([o({name:"description",type:"text",nullable:!0}),n("design:type",String)],l.prototype,"description",void 0),e([f(()=>x,{nullable:!0,eager:!1,cascade:["insert","update"]}),y({name:"payment_products_categories",joinColumn:{name:"product_id",referencedColumnName:"id"},inverseJoinColumn:{name:"category_id",referencedColumnName:"id"}}),n("design:type",Array)],l.prototype,"categories",void 0),e([o({name:"currency",type:"varchar",length:3}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],l.prototype,"currency",void 0),e([o({name:"price",type:"decimal",precision:10,scale:2}),n("design:type",Number)],l.prototype,"price",void 0),e([o({name:"barcode",type:"varchar",length:255,nullable:!0}),n("design:type",String)],l.prototype,"barcode",void 0),e([f(()=>v,{nullable:!0,eager:!1,cascade:["insert","update"]}),y({name:"payment_products_images",joinColumn:{name:"product_id",referencedColumnName:"id"},inverseJoinColumn:{name:"image_id",referencedColumnName:"id"}}),n("design:type",Array)],l.prototype,"images",void 0),e([o({name:"attributes",type:"jsonb",nullable:!0}),n("design:type",typeof Record==="undefined"?Object:Record)],l.prototype,"attributes",void 0),e([f(()=>I,{nullable:!0,eager:!1,cascade:["insert","update"]}),y({name:"payment_products_tags",joinColumn:{name:"product_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),n("design:type",Array)],l.prototype,"tags",void 0),l=e([B({name:"payment_products"})],l);import{EDiscountType as T}from"@ooneex/payment";import{Column as t,Entity as D,JoinTable as h,ManyToMany as N}from"typeorm";class u extends a{}e([t({name:"code",type:"varchar",length:50,unique:!0}),n("design:type",String)],u.prototype,"code",void 0),e([t({name:"name",type:"varchar",length:255,nullable:!0}),n("design:type",String)],u.prototype,"name",void 0),e([t({name:"description",type:"text",nullable:!0}),n("design:type",String)],u.prototype,"description",void 0),e([t({name:"discount_type",type:"enum",enum:T}),n("design:type",typeof T==="undefined"?Object:T)],u.prototype,"discountType",void 0),e([t({name:"discount_value",type:"decimal",precision:10,scale:2}),n("design:type",Number)],u.prototype,"discountValue",void 0),e([t({name:"currency",type:"varchar",length:3,nullable:!0}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],u.prototype,"currency",void 0),e([t({name:"max_uses",type:"int",nullable:!0}),n("design:type",Number)],u.prototype,"maxUses",void 0),e([t({name:"used_count",type:"int",default:0,nullable:!0}),n("design:type",Number)],u.prototype,"usedCount",void 0),e([t({name:"start_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],u.prototype,"startAt",void 0),e([t({name:"end_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],u.prototype,"endAt",void 0),e([t({name:"is_active",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],u.prototype,"isActive",void 0),e([t({name:"minimum_amount",type:"decimal",precision:10,scale:2,nullable:!0}),n("design:type",Number)],u.prototype,"minimumAmount",void 0),e([N(()=>l,{nullable:!0,eager:!1,cascade:["insert","update"]}),h({name:"payment_coupons_applicable_products",joinColumn:{name:"coupon_id",referencedColumnName:"id"},inverseJoinColumn:{name:"product_id",referencedColumnName:"id"}}),n("design:type",Array)],u.prototype,"applicableProducts",void 0),e([N(()=>m,{nullable:!0,eager:!1,cascade:["insert","update"]}),h({name:"payment_coupons_applicable_plans",joinColumn:{name:"coupon_id",referencedColumnName:"id"},inverseJoinColumn:{name:"plan_id",referencedColumnName:"id"}}),n("design:type",Array)],u.prototype,"applicablePlans",void 0),u=e([D({name:"payment_coupons"})],u);import{Column as c,Entity as z}from"typeorm";class p extends a{}e([c({name:"balance",type:"decimal",precision:10,scale:2}),n("design:type",Number)],p.prototype,"balance",void 0),e([c({name:"currency",type:"varchar",length:3,nullable:!0}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],p.prototype,"currency",void 0),e([c({name:"expires_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],p.prototype,"expiresAt",void 0),e([c({name:"description",type:"text",nullable:!0}),n("design:type",String)],p.prototype,"description",void 0),p=e([z({name:"payment_credits"})],p);import{Column as d,Entity as E,JoinTable as b,ManyToMany as C}from"typeorm";class _ extends a{}e([C(()=>u,{nullable:!0,eager:!1,cascade:["insert","update"]}),b({name:"payment_subscriptions_coupons",joinColumn:{name:"subscription_id",referencedColumnName:"id"},inverseJoinColumn:{name:"coupon_id",referencedColumnName:"id"}}),n("design:type",Array)],_.prototype,"coupons",void 0),e([C(()=>m,{nullable:!0,eager:!1,cascade:["insert","update"]}),b({name:"payment_subscriptions_plans",joinColumn:{name:"subscription_id",referencedColumnName:"id"},inverseJoinColumn:{name:"plan_id",referencedColumnName:"id"}}),n("design:type",Array)],_.prototype,"plans",void 0),e([C(()=>p,{nullable:!0,eager:!1,cascade:["insert","update"]}),b({name:"payment_subscriptions_credits",joinColumn:{name:"subscription_id",referencedColumnName:"id"},inverseJoinColumn:{name:"credit_id",referencedColumnName:"id"}}),n("design:type",Array)],_.prototype,"credits",void 0),e([d({name:"start_at",type:"timestamptz"}),n("design:type",typeof Date==="undefined"?Object:Date)],_.prototype,"startAt",void 0),e([d({name:"end_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],_.prototype,"endAt",void 0),e([d({name:"is_trial",type:"boolean",default:!1,nullable:!0}),n("design:type",Boolean)],_.prototype,"isTrial",void 0),e([d({name:"is_active",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],_.prototype,"isActive",void 0),_=e([E({name:"payment_subscriptions"})],_);
|
|
3
|
+
export{i as t,m as u,l as v,u as w,p as x,_ as y};
|
|
4
|
+
|
|
5
|
+
//# debugId=822777824254200564756E2164756E21
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/payment/PaymentFeatureEntity.ts", "src/entities/payment/PaymentPlanEntity.ts", "src/entities/payment/PaymentProductEntity.ts", "src/entities/payment/PaymentCouponEntity.ts", "src/entities/payment/PaymentCreditEntity.ts", "src/entities/payment/PaymentSubscriptionEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IFeature } from \"@ooneex/payment\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\n\n@Entity({\n name: \"payment_features\",\n})\nexport class PaymentFeatureEntity extends BaseEntity implements IFeature {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({\n name: \"is_enabled\",\n type: \"boolean\",\n default: true,\n nullable: true,\n })\n isEnabled?: boolean;\n\n @Column({ name: \"limit\", type: \"int\", nullable: true })\n limit?: number;\n}\n",
|
|
6
|
+
"import type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport { ESubscriptionPeriod, type IFeature, type IPlan } from \"@ooneex/payment\";\nimport { Column, Entity, JoinTable, ManyToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { PaymentFeatureEntity } from \"./PaymentFeatureEntity\";\n\n@Entity({\n name: \"payment_plans\",\n})\nexport class PaymentPlanEntity extends BaseEntity implements IPlan {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"currency\", type: \"varchar\", length: 3 })\n currency: CurrencyCodeType;\n\n @Column({ name: \"price\", type: \"decimal\", precision: 10, scale: 2 })\n price: number;\n\n @Column({\n name: \"period\",\n type: \"enum\",\n enum: ESubscriptionPeriod,\n })\n period: ESubscriptionPeriod;\n\n @Column({ name: \"period_count\", type: \"int\", default: 1, nullable: true })\n periodCount?: number;\n\n @ManyToMany(() => PaymentFeatureEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_plans_features\",\n joinColumn: { name: \"plan_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"feature_id\", referencedColumnName: \"id\" },\n })\n features?: IFeature[];\n\n @Column({ name: \"is_active\", type: \"boolean\", default: true, nullable: true })\n isActive?: boolean;\n\n @Column({ name: \"trial_days\", type: \"int\", default: 0, nullable: true })\n trialDays?: number;\n}\n",
|
|
7
|
+
"import type { ICategory } from \"@ooneex/category\";\nimport type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport type { IImage } from \"@ooneex/image\";\nimport type { IProduct } from \"@ooneex/payment\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { ScalarType } from \"@ooneex/types\";\nimport { Column, Entity, JoinTable, ManyToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { CategoryEntity } from \"../common/CategoryEntity\";\nimport { TagEntity } from \"../common/TagEntity\";\nimport { ImageEntity } from \"../image/ImageEntity\";\n\n@Entity({\n name: \"payment_products\",\n})\nexport class PaymentProductEntity extends BaseEntity implements IProduct {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @ManyToMany(() => CategoryEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_products_categories\",\n joinColumn: { name: \"product_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"category_id\", referencedColumnName: \"id\" },\n })\n categories?: ICategory[];\n\n @Column({ name: \"currency\", type: \"varchar\", length: 3 })\n currency: CurrencyCodeType;\n\n @Column({ name: \"price\", type: \"decimal\", precision: 10, scale: 2 })\n price: number;\n\n @Column({ name: \"barcode\", type: \"varchar\", length: 255, nullable: true })\n barcode?: string;\n\n @ManyToMany(() => ImageEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_products_images\",\n joinColumn: { name: \"product_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"image_id\", referencedColumnName: \"id\" },\n })\n images?: IImage[];\n\n @Column({ name: \"attributes\", type: \"jsonb\", nullable: true })\n attributes?: Record<string, ScalarType>;\n\n @ManyToMany(() => TagEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_products_tags\",\n joinColumn: { name: \"product_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n}\n",
|
|
8
|
+
"import type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport { EDiscountType, type ICoupon, type IPlan, type IProduct } from \"@ooneex/payment\";\nimport { Column, Entity, JoinTable, ManyToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { PaymentPlanEntity } from \"./PaymentPlanEntity\";\nimport { PaymentProductEntity } from \"./PaymentProductEntity\";\n\n@Entity({\n name: \"payment_coupons\",\n})\nexport class PaymentCouponEntity extends BaseEntity implements ICoupon {\n @Column({ name: \"code\", type: \"varchar\", length: 50, unique: true })\n code: string;\n\n @Column({ name: \"name\", type: \"varchar\", length: 255, nullable: true })\n name?: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({\n name: \"discount_type\",\n type: \"enum\",\n enum: EDiscountType,\n })\n discountType: EDiscountType;\n\n @Column({ name: \"discount_value\", type: \"decimal\", precision: 10, scale: 2 })\n discountValue: number;\n\n @Column({ name: \"currency\", type: \"varchar\", length: 3, nullable: true })\n currency?: CurrencyCodeType;\n\n @Column({ name: \"max_uses\", type: \"int\", nullable: true })\n maxUses?: number;\n\n @Column({ name: \"used_count\", type: \"int\", default: 0, nullable: true })\n usedCount?: number;\n\n @Column({ name: \"start_at\", type: \"timestamptz\", nullable: true })\n startAt?: Date;\n\n @Column({ name: \"end_at\", type: \"timestamptz\", nullable: true })\n endAt?: Date;\n\n @Column({ name: \"is_active\", type: \"boolean\", default: true, nullable: true })\n isActive?: boolean;\n\n @Column({\n name: \"minimum_amount\",\n type: \"decimal\",\n precision: 10,\n scale: 2,\n nullable: true,\n })\n minimumAmount?: number;\n\n @ManyToMany(() => PaymentProductEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_coupons_applicable_products\",\n joinColumn: { name: \"coupon_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"product_id\", referencedColumnName: \"id\" },\n })\n applicableProducts?: IProduct[];\n\n @ManyToMany(() => PaymentPlanEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_coupons_applicable_plans\",\n joinColumn: { name: \"coupon_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"plan_id\", referencedColumnName: \"id\" },\n })\n applicablePlans?: IPlan[];\n}\n",
|
|
9
|
+
"import type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport type { ICredit } from \"@ooneex/payment\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\n\n@Entity({\n name: \"payment_credits\",\n})\nexport class PaymentCreditEntity extends BaseEntity implements ICredit {\n @Column({ name: \"balance\", type: \"decimal\", precision: 10, scale: 2 })\n balance: number;\n\n @Column({ name: \"currency\", type: \"varchar\", length: 3, nullable: true })\n currency?: CurrencyCodeType;\n\n @Column({ name: \"expires_at\", type: \"timestamptz\", nullable: true })\n expiresAt?: Date;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n}\n",
|
|
10
|
+
"import type { ICoupon, ICredit, IPlan, ISubscription } from \"@ooneex/payment\";\nimport { Column, Entity, JoinTable, ManyToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { PaymentCouponEntity } from \"./PaymentCouponEntity\";\nimport { PaymentCreditEntity } from \"./PaymentCreditEntity\";\nimport { PaymentPlanEntity } from \"./PaymentPlanEntity\";\n\n@Entity({\n name: \"payment_subscriptions\",\n})\nexport class PaymentSubscriptionEntity extends BaseEntity implements Omit<ISubscription, \"isActive\"> {\n @ManyToMany(() => PaymentCouponEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_subscriptions_coupons\",\n joinColumn: { name: \"subscription_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"coupon_id\", referencedColumnName: \"id\" },\n })\n coupons?: ICoupon[];\n\n @ManyToMany(() => PaymentPlanEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_subscriptions_plans\",\n joinColumn: { name: \"subscription_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"plan_id\", referencedColumnName: \"id\" },\n })\n plans?: IPlan[];\n\n @ManyToMany(() => PaymentCreditEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_subscriptions_credits\",\n joinColumn: { name: \"subscription_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"credit_id\", referencedColumnName: \"id\" },\n })\n credits?: ICredit[];\n\n @Column({ name: \"start_at\", type: \"timestamptz\" })\n startAt: Date;\n\n @Column({ name: \"end_at\", type: \"timestamptz\", nullable: true })\n endAt?: Date;\n\n @Column({ name: \"is_trial\", type: \"boolean\", default: false, nullable: true })\n isTrial?: boolean;\n\n @Column({ name: \"is_active\", type: \"boolean\", default: true, nullable: true })\n isActive?: boolean;\n}\n"
|
|
11
|
+
],
|
|
12
|
+
"mappings": ";gMACA,WAAS,MAAQ,UAMV,MAAM,UAA6B,CAA+B,CAiBzE,CAfE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC7D,yBALW,EAKX,gCAQA,GANC,EAAO,CACN,KAAM,aACN,KAAM,UACN,QAAS,GACT,SAAU,EACZ,CAAC,EACD,0BAbW,EAaX,8BAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,MAAO,SAAU,EAAK,CAAC,EACtD,yBAhBW,EAgBX,0BAhBW,EAAN,GAHN,EAAO,CACN,KAAM,kBACR,CAAC,GACY,GCNb,8BAAS,wBACT,iBAAS,YAAQ,eAAQ,gBAAW,gBAO7B,MAAM,UAA0B,CAA4B,CAwCnE,CAtCE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC7D,yBALW,EAKX,gCAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,OAAQ,CAAE,CAAC,EACxD,gFARW,EAQX,6BAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,UAAW,UAAW,GAAI,MAAO,CAAE,CAAC,EACnE,yBAXW,EAWX,0BAOA,GALC,EAAO,CACN,KAAM,S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AS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAU,CACT,KAAM,gCACN,WAAY,CAAE,KAAM,kBAAmB,qBAAsB,IAAK,EAClE,kBAAmB,CAAE,KAAM,YAAa,qBAAsB,IAAK,CACrE,CAAC,EACD,wBAnCW,EAmCX,4BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,aAAc,CAAC,EACjD,wDAtCW,EAsCX,4BAGA,GADC,EAAO,CAAE,KAAM,SAAU,KAAM,cAAe,SAAU,EAAK,CAAC,EAC/D,wDAzCW,EAyCX,0BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,QAAS,GAAO,SAAU,EAAK,CAAC,EAC7E,0BA5CW,EA4CX,4BAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,QAAS,GAAM,SAAU,EAAK,CAAC,EAC7E,0BA/CW,EA+CX,6BA/CW,EAAN,GAHN,EAAO,CACN,KAAM,uBACR,CAAC,GACY",
|
|
13
|
+
"debugId": "822777824254200564756E2164756E21",
|
|
14
|
+
"names": []
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{R as m}from"./chunk-764bzjhz.js";import{V as e,X as r,Y as l}from"./chunk-j7nprmyh.js";import{Column as o,Entity as p,JoinColumn as t,ManyToOne as a,OneToMany as c}from"typeorm";class n extends l{}e([o({name:"name",type:"varchar",length:100}),r("design:type",String)],n.prototype,"name",void 0),e([a(()=>m,{nullable:!0,eager:!1,cascade:["insert","update"]}),t({name:"color_id"}),r("design:type",typeof IColor==="undefined"?Object:IColor)],n.prototype,"color",void 0),e([o({name:"description",type:"text",nullable:!0}),r("design:type",String)],n.prototype,"description",void 0),e([o({name:"context",type:"varchar",length:255,nullable:!0}),r("design:type",String)],n.prototype,"context",void 0),e([o({name:"context_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],n.prototype,"contextId",void 0),e([a(()=>n,{nullable:!0,eager:!1}),t({name:"parent_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],n.prototype,"parent",void 0),e([c(()=>n,(i)=>i.parent),r("design:type",Array)],n.prototype,"children",void 0),n=e([p({name:"folders"})],n);
|
|
3
|
+
export{n as s};
|
|
4
|
+
|
|
5
|
+
//# debugId=8DD570F9DC752B5264756E2164756E21
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/common/FolderEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IColor } from \"@ooneex/color\";\nimport type { IFolder } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne, OneToMany } from \"typeorm\";\nimport { BaseEntity } from \"./BaseEntity\";\nimport { ColorEntity } from \"./ColorEntity\";\n\n@Entity({\n name: \"folders\",\n})\nexport class FolderEntity extends BaseEntity implements IFolder {\n @Column({ name: \"name\", type: \"varchar\", length: 100 })\n name: string;\n\n @ManyToOne(() => ColorEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"color_id\" })\n color?: IColor;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @ManyToOne(() => FolderEntity, { nullable: true, eager: false })\n @JoinColumn({ name: \"parent_id\" })\n parent?: IFolder;\n\n @OneToMany(\n () => FolderEntity,\n (folder) => folder.parent,\n )\n children?: IFolder[];\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";oGAEA,WAAS,YAAQ,gBAAQ,eAAY,eAAW,gBAOzC,MAAM,UAAqB,CAA8B,CA8BhE,CA5BE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAQA,GANC,EAAU,IAAM,EAAa,CAC5B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,UAAW,CAAC,EAChC,4DAVW,EAUX,0BAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC7D,yBAbW,EAaX,gCAGA,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACzE,yBAhBW,EAgBX,4BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EAC3E,yBAnBW,EAmBX,8BAIA,GAFC,EAAU,IAAM,EAAc,CAAE,SAAU,GAAM,MAAO,EAAM,CAAC,EAC9D,EAAW,CAAE,KAAM,WAAY,CAAC,EACjC,8DAvBW,EAuBX,2BAMA,GAJC,EACC,IAAM,EACN,CAAC,IAAW,EAAO,MACrB,EACA,wBA7BW,EA6BX,6BA7BW,EAAN,GAHN,EAAO,CACN,KAAM,SACR,CAAC,GACY",
|
|
8
|
+
"debugId": "8DD570F9DC752B5264756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{V as e,X as l,Y as a}from"./chunk-j7nprmyh.js";import{Column as n,Entity as o}from"typeorm";class t extends a{constructor(){super(...arguments);this.commentCount=0;this.likeCount=0;this.shareCount=0;this.viewCount=0;this.downloadCount=0;this.bookmarkCount=0;this.repostCount=0;this.impressionCount=0;this.clickCount=0;this.engagementRate=0;this.reach=0;this.followerCount=0;this.followingCount=0}}e([n({name:"comment_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"commentCount",void 0),e([n({name:"like_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"likeCount",void 0),e([n({name:"share_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"shareCount",void 0),e([n({name:"view_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"viewCount",void 0),e([n({name:"download_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"downloadCount",void 0),e([n({name:"bookmark_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"bookmarkCount",void 0),e([n({name:"repost_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"repostCount",void 0),e([n({name:"impression_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"impressionCount",void 0),e([n({name:"click_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"clickCount",void 0),e([n({name:"engagement_rate",type:"decimal",precision:5,scale:4,default:0,nullable:!1}),l("design:type",Object)],t.prototype,"engagementRate",void 0),e([n({name:"reach",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"reach",void 0),e([n({name:"follower_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"followerCount",void 0),e([n({name:"following_count",type:"int",default:0,nullable:!1}),l("design:type",Object)],t.prototype,"followingCount",void 0),t=e([o("stats")],t);
|
|
3
|
+
export{t as P};
|
|
4
|
+
|
|
5
|
+
//# debugId=0E265AF50381A8A864756E2164756E21
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/common/StatEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IStat } from \"@ooneex/types\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"./BaseEntity\";\n\n@Entity(\"stats\")\nexport class StatEntity extends BaseEntity implements IStat {\n @Column({\n name: \"comment_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n commentCount = 0;\n\n @Column({\n name: \"like_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n likeCount = 0;\n\n @Column({\n name: \"share_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n shareCount = 0;\n\n @Column({\n name: \"view_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n viewCount = 0;\n\n @Column({\n name: \"download_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n downloadCount = 0;\n\n @Column({\n name: \"bookmark_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n bookmarkCount = 0;\n\n @Column({\n name: \"repost_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n repostCount = 0;\n\n @Column({\n name: \"impression_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n impressionCount = 0;\n\n @Column({\n name: \"click_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n clickCount = 0;\n\n @Column({\n name: \"engagement_rate\",\n type: \"decimal\",\n precision: 5,\n scale: 4,\n default: 0,\n nullable: false,\n })\n engagementRate = 0;\n\n @Column({\n name: \"reach\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n reach = 0;\n\n @Column({\n name: \"follower_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n followerCount = 0;\n\n @Column({\n name: \"following_count\",\n type: \"int\",\n default: 0,\n nullable: false,\n })\n followingCount = 0;\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";sDACA,iBAAS,YAAQ,gBAIV,MAAM,UAAmB,CAA4B,CAArD,kCAOL,kBAAe,EAQf,eAAY,EAQZ,gBAAa,EAQb,eAAY,EAQZ,mBAAgB,EAQhB,mBAAgB,EAQhB,iBAAc,EAQd,qBAAkB,EAQlB,gBAAa,EAUb,oBAAiB,EAQjB,WAAQ,EAQR,mBAAgB,EAQhB,oBAAiB,EACnB,CAnGE,GANC,EAAO,CACN,KAAM,gBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAPW,EAOX,iCAQA,GANC,EAAO,CACN,KAAM,aACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAfW,EAeX,8BAQA,GANC,EAAO,CACN,KAAM,cACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAvBW,EAuBX,+BAQA,GANC,EAAO,CACN,KAAM,aACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBA/BW,EA+BX,8BAQA,GANC,EAAO,CACN,KAAM,iBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAvCW,EAuCX,kCAQA,GANC,EAAO,CACN,KAAM,iBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBA/CW,EA+CX,kCAQA,GANC,EAAO,CACN,KAAM,eACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAvDW,EAuDX,gCAQA,GANC,EAAO,CACN,KAAM,mBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBA/DW,EA+DX,oCAQA,GANC,EAAO,CACN,KAAM,cACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAvEW,EAuEX,+BAUA,GARC,EAAO,CACN,KAAM,kBACN,KAAM,UACN,UAAW,EACX,MAAO,EACP,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAjFW,EAiFX,mCAQA,GANC,EAAO,CACN,KAAM,QACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAzFW,EAyFX,0BAQA,GANC,EAAO,CACN,KAAM,iBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAjGW,EAiGX,kCAQA,GANC,EAAO,CACN,KAAM,kBACN,KAAM,MACN,QAAS,EACT,SAAU,EACZ,CAAC,EACD,yBAzGW,EAyGX,mCAzGW,EAAN,GADN,EAAO,OAAO,GACF",
|
|
8
|
+
"debugId": "0E265AF50381A8A864756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var e=function(o,a,n,r){var u=arguments.length,l=u<3?a:r===null?r=Object.getOwnPropertyDescriptor(a,n):r,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")l=Reflect.decorate(o,a,n,r);else for(var p=o.length-1;p>=0;p--)if(d=o[p])l=(u<3?d(l):u>3?d(a,n,l):d(a,n))||l;return u>3&&l&&Object.defineProperty(a,n,l),l},f=(o,a)=>(n,r)=>a(n,r,o),t=(o,a)=>{if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(o,a)};import{random as i}from"@ooneex/utils";import{Column as m,CreateDateColumn as s,DeleteDateColumn as b,PrimaryColumn as c,UpdateDateColumn as y}from"typeorm";class k{constructor(){this.id=i.nanoid(25)}}e([c({name:"id",type:"varchar",length:25}),t("design:type",String)],k.prototype,"id",void 0),e([m({name:"is_locked",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],k.prototype,"isLocked",void 0),e([m({name:"locked_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],k.prototype,"lockedAt",void 0),e([m({name:"is_blocked",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],k.prototype,"isBlocked",void 0),e([m({name:"blocked_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],k.prototype,"blockedAt",void 0),e([m({name:"block_reason",type:"text",nullable:!0}),t("design:type",String)],k.prototype,"blockReason",void 0),e([m({name:"is_public",type:"boolean",default:!0,nullable:!0}),t("design:type",Boolean)],k.prototype,"isPublic",void 0),e([m({name:"language",type:"varchar",length:10,nullable:!0}),t("design:type",typeof LocaleType==="undefined"?Object:LocaleType)],k.prototype,"language",void 0),e([s({name:"created_at"}),t("design:type",typeof Date==="undefined"?Object:Date)],k.prototype,"createdAt",void 0),e([y({name:"updated_at"}),t("design:type",typeof Date==="undefined"?Object:Date)],k.prototype,"updatedAt",void 0),e([b({name:"deleted_at"}),t("design:type",typeof Date==="undefined"?Object:Date)],k.prototype,"deletedAt",void 0);
|
|
3
|
+
export{e as V,f as W,t as X,k as Y};
|
|
4
|
+
|
|
5
|
+
//# debugId=7A68D4C56865502E64756E2164756E21
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/common/BaseEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { LocaleType } from \"@ooneex/translation\";\nimport type { IBase } from \"@ooneex/types\";\nimport { random } from \"@ooneex/utils\";\nimport { Column, CreateDateColumn, DeleteDateColumn, PrimaryColumn, UpdateDateColumn } from \"typeorm\";\n\nexport abstract class BaseEntity implements IBase {\n @PrimaryColumn({ name: \"id\", type: \"varchar\", length: 25 })\n id: string = random.nanoid(25);\n\n @Column({\n name: \"is_locked\",\n type: \"boolean\",\n default: false,\n nullable: true,\n })\n isLocked?: boolean;\n\n @Column({ name: \"locked_at\", type: \"timestamptz\", nullable: true })\n lockedAt?: Date;\n\n @Column({\n name: \"is_blocked\",\n type: \"boolean\",\n default: false,\n nullable: true,\n })\n isBlocked?: boolean;\n\n @Column({ name: \"blocked_at\", type: \"timestamptz\", nullable: true })\n blockedAt?: Date;\n\n @Column({ name: \"block_reason\", type: \"text\", nullable: true })\n blockReason?: string;\n\n @Column({ name: \"is_public\", type: \"boolean\", default: true, nullable: true })\n isPublic?: boolean;\n\n @Column({ name: \"language\", type: \"varchar\", length: 10, nullable: true })\n language?: LocaleType;\n\n @CreateDateColumn({ name: \"created_at\" })\n createdAt?: Date;\n\n @UpdateDateColumn({ name: \"updated_at\" })\n updatedAt?: Date;\n\n @DeleteDateColumn({ name: \"deleted_at\" })\n deletedAt?: Date;\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";8cAEA,iBAAS,sBACT,iBAAS,sBAAQ,sBAAkB,mBAAkB,sBAAe,gBAE7D,MAAe,CAA4B,CAA3C,cAEL,QAAa,EAAO,OAAO,EAAE,EAyC/B,CAzCE,GADC,EAAc,CAAE,KAAM,KAAM,KAAM,UAAW,OAAQ,EAAG,CAAC,EAC1D,yBAFoB,EAEpB,uBAQA,GANC,EAAO,CACN,KAAM,YACN,KAAM,UACN,QAAS,GACT,SAAU,EACZ,CAAC,EACD,0BAVoB,EAUpB,6BAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,cAAe,SAAU,EAAK,CAAC,EAClE,wDAboB,EAapB,6BAQA,GANC,EAAO,CACN,KAAM,aACN,KAAM,UACN,QAAS,GACT,SAAU,EACZ,CAAC,EACD,0BArBoB,EAqBpB,8BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,cAAe,SAAU,EAAK,CAAC,EACnE,wDAxBoB,EAwBpB,8BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC9D,yBA3BoB,EA2BpB,gCAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,QAAS,GAAM,SAAU,EAAK,CAAC,EAC7E,0BA9BoB,EA8BpB,6BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EACzE,oEAjCoB,EAiCpB,6BAGA,GADC,EAAiB,CAAE,KAAM,YAAa,CAAC,EACxC,wDApCoB,EAoCpB,8BAGA,GADC,EAAiB,CAAE,KAAM,YAAa,CAAC,EACxC,wDAvCoB,EAuCpB,8BAGA,GADC,EAAiB,CAAE,KAAM,YAAa,CAAC,EACxC,wDA1CoB,EA0CpB",
|
|
8
|
+
"debugId": "7A68D4C56865502E64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{P as g}from"./chunk-hw4vdg6q.js";import{Q as _}from"./chunk-2e7zbxcq.js";import{S as y,T as q}from"./chunk-764bzjhz.js";import{U as x}from"./chunk-pwhygf44.js";import{V as e,X as t,Y as o}from"./chunk-j7nprmyh.js";import{Column as l,Entity as J,JoinColumn as u,JoinTable as N,ManyToMany as E,ManyToOne as c,OneToMany as S}from"typeorm";import{EMcqQuestionChoiceLetter as f}from"@ooneex/gamification/mcq";import{Column as r,Entity as v,JoinColumn as T,ManyToOne as Q}from"typeorm";class m extends o{}e([r({name:"letter",type:"enum",enum:f}),t("design:type",typeof f==="undefined"?Object:f)],m.prototype,"letter",void 0),e([r({name:"text",type:"text"}),t("design:type",String)],m.prototype,"text",void 0),e([r({name:"is_correct",type:"boolean",default:!1}),t("design:type",Boolean)],m.prototype,"isCorrect",void 0),e([r({name:"explanation",type:"text",nullable:!0}),t("design:type",String)],m.prototype,"explanation",void 0),e([Q(()=>a,{nullable:!1,eager:!1,cascade:["remove","soft-remove"]}),T({name:"question_id"}),t("design:type",typeof IMcqQuestion==="undefined"?Object:IMcqQuestion)],m.prototype,"question",void 0),m=e([v({name:"mcq_question_choices"})],m);class a extends o{}e([l({name:"question_number",type:"int"}),t("design:type",Number)],a.prototype,"questionNumber",void 0),e([l({name:"text",type:"text"}),t("design:type",String)],a.prototype,"text",void 0),e([S(()=>m,(h)=>h.question,{eager:!1,cascade:["insert","update","remove"]}),t("design:type",Array)],a.prototype,"choices",void 0),e([l({name:"context",type:"varchar",length:255,nullable:!0}),t("design:type",String)],a.prototype,"context",void 0),e([l({name:"context_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],a.prototype,"contextId",void 0),e([c(()=>g,{nullable:!0,eager:!1,cascade:["insert","update"]}),u({name:"stat_id"}),t("design:type",typeof IStat==="undefined"?Object:IStat)],a.prototype,"stat",void 0),e([c(()=>y,{nullable:!0,eager:!1,cascade:["insert","update"]}),u({name:"status_id"}),t("design:type",typeof IStatus==="undefined"?Object:IStatus)],a.prototype,"status",void 0),e([c(()=>_,{nullable:!0,eager:!1,cascade:["insert","update"]}),u({name:"image_id"}),t("design:type",typeof IImage==="undefined"?Object:IImage)],a.prototype,"image",void 0),e([E(()=>q,{nullable:!0,eager:!1,cascade:["insert","update"]}),N({name:"mcq_questions_tags",joinColumn:{name:"question_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),t("design:type",Array)],a.prototype,"tags",void 0),a=e([J({name:"mcq_questions"})],a);import{ESessionType as I}from"@ooneex/gamification";import{EMcqSessionStatus as p}from"@ooneex/gamification/mcq";import{Column as n,Entity as A,JoinColumn as D,JoinTable as O,ManyToMany as z,ManyToOne as B}from"typeorm";class i extends o{}e([n({name:"name",type:"varchar",length:500}),t("design:type",String)],i.prototype,"name",void 0),e([n({name:"total_questions",type:"int",default:0}),t("design:type",Number)],i.prototype,"totalQuestions",void 0),e([n({name:"answered_count",type:"int",default:0}),t("design:type",Number)],i.prototype,"answeredCount",void 0),e([n({name:"correct_count",type:"int",default:0}),t("design:type",Number)],i.prototype,"correctCount",void 0),e([n({name:"incorrect_count",type:"int",default:0}),t("design:type",Number)],i.prototype,"incorrectCount",void 0),e([n({name:"timing",type:"int",default:0}),t("design:type",Number)],i.prototype,"timing",void 0),e([z(()=>a,{eager:!1,cascade:["insert","update"]}),O({name:"mcq_sessions_questions",joinColumn:{name:"session_id",referencedColumnName:"id"},inverseJoinColumn:{name:"question_id",referencedColumnName:"id"}}),t("design:type",Array)],i.prototype,"questions",void 0),e([n({name:"status",type:"enum",enum:p,default:p.DRAFT}),t("design:type",typeof p==="undefined"?Object:p)],i.prototype,"status",void 0),e([n({name:"score",type:"decimal",precision:5,scale:2,default:0}),t("design:type",Number)],i.prototype,"score",void 0),e([n({name:"started_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],i.prototype,"startedAt",void 0),e([n({name:"paused_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],i.prototype,"pausedAt",void 0),e([n({name:"resumed_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],i.prototype,"resumedAt",void 0),e([n({name:"completed_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],i.prototype,"completedAt",void 0),e([n({name:"type",type:"enum",enum:I}),t("design:type",typeof I==="undefined"?Object:I)],i.prototype,"type",void 0),e([B(()=>x,{nullable:!1,eager:!1,cascade:["insert","update"]}),D({name:"level_id"}),t("design:type",typeof ILevel==="undefined"?Object:ILevel)],i.prototype,"level",void 0),i=e([A({name:"mcq_sessions"})],i);import{EAnswerState as b}from"@ooneex/gamification";import{Column as s,Entity as j,JoinColumn as C,JoinTable as L,ManyToMany as F,ManyToOne as M}from"typeorm";class d extends o{}e([M(()=>i,{nullable:!1,eager:!1,cascade:["remove","soft-remove"]}),C({name:"session_id"}),t("design:type",typeof IMcqSession==="undefined"?Object:IMcqSession)],d.prototype,"session",void 0),e([M(()=>a,{nullable:!1,eager:!1,cascade:["insert","update"]}),C({name:"question_id"}),t("design:type",typeof IMcqQuestion==="undefined"?Object:IMcqQuestion)],d.prototype,"question",void 0),e([s({name:"question_number",type:"int"}),t("design:type",Number)],d.prototype,"questionNumber",void 0),e([F(()=>m,{eager:!1,cascade:["insert","update"]}),L({name:"mcq_session_questions_selected_choices",joinColumn:{name:"session_question_id",referencedColumnName:"id"},inverseJoinColumn:{name:"choice_id",referencedColumnName:"id"}}),t("design:type",Array)],d.prototype,"selectedChoices",void 0),e([s({name:"context",type:"varchar",length:255,nullable:!0}),t("design:type",String)],d.prototype,"context",void 0),e([s({name:"context_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],d.prototype,"contextId",void 0),e([s({name:"state",type:"enum",enum:b}),t("design:type",typeof b==="undefined"?Object:b)],d.prototype,"state",void 0),e([s({name:"score",type:"decimal",precision:5,scale:2,default:0}),t("design:type",Number)],d.prototype,"score",void 0),d=e([j({name:"mcq_session_questions"})],d);
|
|
3
|
+
export{a as l,m,i as n,d as o};
|
|
4
|
+
|
|
5
|
+
//# debugId=15BE861C71136F3A64756E2164756E21
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/gamification/mcq/McqQuestionEntity.ts", "src/entities/gamification/mcq/McqQuestionChoiceEntity.ts", "src/entities/gamification/mcq/McqSessionEntity.ts", "src/entities/gamification/mcq/McqSessionQuestionEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IMcqQuestion, IMcqQuestionChoice } from \"@ooneex/gamification/mcq\";\nimport type { IImage } from \"@ooneex/image\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IStat } from \"@ooneex/types\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany } from \"typeorm\";\nimport { BaseEntity } from \"../../common/BaseEntity\";\nimport { StatEntity } from \"../../common/StatEntity\";\nimport { StatusEntity } from \"../../common/StatusEntity\";\nimport { TagEntity } from \"../../common/TagEntity\";\nimport { ImageEntity } from \"../../image/ImageEntity\";\nimport { McqQuestionChoiceEntity } from \"./McqQuestionChoiceEntity\";\n\n@Entity({\n name: \"mcq_questions\",\n})\nexport class McqQuestionEntity extends BaseEntity implements IMcqQuestion {\n @Column({ name: \"question_number\", type: \"int\" })\n questionNumber: number;\n\n @Column({ name: \"text\", type: \"text\" })\n text: string;\n\n @OneToMany(\n () => McqQuestionChoiceEntity,\n (choice) => choice.question,\n {\n eager: false,\n cascade: [\"insert\", \"update\", \"remove\"],\n },\n )\n choices: IMcqQuestionChoice[];\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @ManyToOne(() => StatEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"stat_id\" })\n stat?: IStat;\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n\n @ManyToOne(() => ImageEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"image_id\" })\n image?: IImage;\n\n @ManyToMany(() => TagEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"mcq_questions_tags\",\n joinColumn: { name: \"question_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n}\n",
|
|
6
|
+
"import type { IMcqQuestion, IMcqQuestionChoice } from \"@ooneex/gamification/mcq\";\nimport { EMcqQuestionChoiceLetter } from \"@ooneex/gamification/mcq\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../../common/BaseEntity\";\nimport { McqQuestionEntity } from \"./McqQuestionEntity\";\n\n@Entity({\n name: \"mcq_question_choices\",\n})\nexport class McqQuestionChoiceEntity extends BaseEntity implements IMcqQuestionChoice {\n @Column({\n name: \"letter\",\n type: \"enum\",\n enum: EMcqQuestionChoiceLetter,\n })\n letter: EMcqQuestionChoiceLetter;\n\n @Column({ name: \"text\", type: \"text\" })\n text: string;\n\n @Column({ name: \"is_correct\", type: \"boolean\", default: false })\n isCorrect: boolean;\n\n @Column({ name: \"explanation\", type: \"text\", nullable: true })\n explanation?: string;\n\n @ManyToOne(() => McqQuestionEntity, {\n nullable: false,\n eager: false,\n cascade: [\"remove\", \"soft-remove\"],\n })\n @JoinColumn({ name: \"question_id\" })\n question: IMcqQuestion;\n}\n",
|
|
7
|
+
"import type { ILevel } from \"@ooneex/gamification\";\nimport { ESessionType } from \"@ooneex/gamification\";\nimport type { IMcqQuestion, IMcqSession } from \"@ooneex/gamification/mcq\";\nimport { EMcqSessionStatus } from \"@ooneex/gamification/mcq\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../../common/BaseEntity\";\nimport { LevelEntity } from \"../LevelEntity\";\nimport { McqQuestionEntity } from \"./McqQuestionEntity\";\n\n@Entity({\n name: \"mcq_sessions\",\n})\nexport class McqSessionEntity extends BaseEntity implements IMcqSession {\n @Column({ name: \"name\", type: \"varchar\", length: 500 })\n name: string;\n\n @Column({ name: \"total_questions\", type: \"int\", default: 0 })\n totalQuestions: number;\n\n @Column({ name: \"answered_count\", type: \"int\", default: 0 })\n answeredCount: number;\n\n @Column({ name: \"correct_count\", type: \"int\", default: 0 })\n correctCount: number;\n\n @Column({ name: \"incorrect_count\", type: \"int\", default: 0 })\n incorrectCount: number;\n\n @Column({ name: \"timing\", type: \"int\", default: 0 })\n timing: number;\n\n @ManyToMany(() => McqQuestionEntity, {\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"mcq_sessions_questions\",\n joinColumn: { name: \"session_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"question_id\", referencedColumnName: \"id\" },\n })\n questions: IMcqQuestion[];\n\n @Column({\n name: \"status\",\n type: \"enum\",\n enum: EMcqSessionStatus,\n default: EMcqSessionStatus.DRAFT,\n })\n status: EMcqSessionStatus;\n\n @Column({\n name: \"score\",\n type: \"decimal\",\n precision: 5,\n scale: 2,\n default: 0,\n })\n score: number;\n\n @Column({ name: \"started_at\", type: \"timestamptz\", nullable: true })\n startedAt?: Date | null;\n\n @Column({ name: \"paused_at\", type: \"timestamptz\", nullable: true })\n pausedAt?: Date | null;\n\n @Column({ name: \"resumed_at\", type: \"timestamptz\", nullable: true })\n resumedAt?: Date | null;\n\n @Column({ name: \"completed_at\", type: \"timestamptz\", nullable: true })\n completedAt?: Date | null;\n\n @Column({\n name: \"type\",\n type: \"enum\",\n enum: ESessionType,\n })\n type: ESessionType;\n\n @ManyToOne(() => LevelEntity, {\n nullable: false,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"level_id\" })\n level: ILevel;\n}\n",
|
|
8
|
+
"import { EAnswerState } from \"@ooneex/gamification\";\nimport type { IMcqQuestion, IMcqQuestionChoice, IMcqSession, IMcqSessionQuestion } from \"@ooneex/gamification/mcq\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../../common/BaseEntity\";\nimport { McqQuestionChoiceEntity } from \"./McqQuestionChoiceEntity\";\nimport { McqQuestionEntity } from \"./McqQuestionEntity\";\nimport { McqSessionEntity } from \"./McqSessionEntity\";\n\n@Entity({\n name: \"mcq_session_questions\",\n})\nexport class McqSessionQuestionEntity extends BaseEntity implements IMcqSessionQuestion {\n @ManyToOne(() => McqSessionEntity, {\n nullable: false,\n eager: false,\n cascade: [\"remove\", \"soft-remove\"],\n })\n @JoinColumn({ name: \"session_id\" })\n session: IMcqSession;\n\n @ManyToOne(() => McqQuestionEntity, {\n nullable: false,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"question_id\" })\n question: IMcqQuestion;\n\n @Column({ name: \"question_number\", type: \"int\" })\n questionNumber: number;\n\n @ManyToMany(() => McqQuestionChoiceEntity, {\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"mcq_session_questions_selected_choices\",\n joinColumn: { name: \"session_question_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"choice_id\", referencedColumnName: \"id\" },\n })\n selectedChoices: IMcqQuestionChoice[];\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @Column({\n name: \"state\",\n type: \"enum\",\n enum: EAnswerState,\n })\n state: EAnswerState;\n\n @Column({\n name: \"score\",\n type: \"decimal\",\n precision: 5,\n scale: 2,\n default: 0,\n })\n score: number;\n}\n"
|
|
9
|
+
],
|
|
10
|
+
"mappings": ";qPAKA,WAAS,MAAQ,UAAQ,SAAY,gBAAW,eAAY,eAAW,gBCJvE,mCAAS,iCACT,iBAAS,YAAQ,gBAAQ,eAAY,gBAO9B,MAAM,UAAgC,CAAyC,CAwBtF,CAlBE,GALC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C,CAAC,EACA,EAAW,CAAE,KAAM,YAAa,CAAC,EAClC,sEAPW,EAOX,4BAQA,GANC,EAAU,IAAM,EAAmB,CAClC,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,aAAc,CAAC,EACnC,wEAfW,EAeX,6BAGA,GADC,EAAO,CAAE,KAAM,kBAAmB,KAAM,KAAM,CAAC,EAChD,yBAlBW,EAkBX,mCAWA,GATC,EAAW,IAAM,EAAyB,CACzC,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAU,CACT,KAAM,yCACN,WAAY,CAAE,KAAM,sBAAuB,qBAAsB,IAAK,EACtE,kBAAmB,CAAE,KAAM,YAAa,qBAAsB,IAAK,CACrE,CAAC,EACD,wBA7BW,EA6BX,oCAGA,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACzE,yBAhCW,EAgCX,4BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EAC3E,yBAnCW,EAmCX,8BAOA,GALC,EAAO,CACN,KAAM,QACN,KAAM,OACN,KAAM,CACR,CAAC,EACD,kDA1CW,EA0CX,0BASA,GAPC,EAAO,CACN,KAAM,QACN,KAAM,UACN,UAAW,EACX,MAAO,EACP,QAAS,CACX,CAAC,EACD,yBAnDW,EAmDX,0BAnDW,EAAN,GAHN,EAAO,CACN,KAAM,uBACR,CAAC,GACY",
|
|
11
|
+
"debugId": "15BE861C71136F3A64756E2164756E21",
|
|
12
|
+
"names": []
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{C as b}from"./chunk-zmzz7hqq.js";import{S as d,T as y}from"./chunk-764bzjhz.js";import{V as e,X as t,Y as r}from"./chunk-j7nprmyh.js";import{Column as n,Entity as c}from"typeorm";class l extends r{}e([n({name:"first_name",type:"varchar",length:100}),t("design:type",String)],l.prototype,"firstName",void 0),e([n({name:"last_name",type:"varchar",length:100}),t("design:type",String)],l.prototype,"lastName",void 0),e([n({name:"full_name",type:"varchar",length:200,nullable:!0}),t("design:type",String)],l.prototype,"fullName",void 0),e([n({name:"bio",type:"text",nullable:!0}),t("design:type",String)],l.prototype,"bio",void 0),e([n({name:"birth_date",type:"date",nullable:!0}),t("design:type",String)],l.prototype,"birthDate",void 0),e([n({name:"death_date",type:"date",nullable:!0}),t("design:type",String)],l.prototype,"deathDate",void 0),e([n({name:"nationality",type:"varchar",length:100,nullable:!0}),t("design:type",String)],l.prototype,"nationality",void 0),l=e([c({name:"book_authors"})],l);import{Column as m,Entity as h}from"typeorm";class i extends r{}e([m({name:"name",type:"varchar",length:200}),t("design:type",String)],i.prototype,"name",void 0),e([m({name:"address",type:"text",nullable:!0}),t("design:type",String)],i.prototype,"address",void 0),e([m({name:"website",type:"varchar",length:255,nullable:!0}),t("design:type",String)],i.prototype,"website",void 0),e([m({name:"founded_year",type:"int",nullable:!0}),t("design:type",Number)],i.prototype,"foundedYear",void 0),i=e([h({name:"book_publishers"})],i);import{Column as a,Entity as f,JoinColumn as o,JoinTable as p,ManyToMany as g,ManyToOne as s}from"typeorm";class u extends r{}e([a({name:"title",type:"varchar",length:500}),t("design:type",String)],u.prototype,"title",void 0),e([a({name:"subtitle",type:"varchar",length:500,nullable:!0}),t("design:type",String)],u.prototype,"subtitle",void 0),e([g(()=>l,{eager:!1,cascade:["insert","update"]}),p({name:"books_authors",joinColumn:{name:"book_id",referencedColumnName:"id"},inverseJoinColumn:{name:"author_id",referencedColumnName:"id"}}),t("design:type",Array)],u.prototype,"authors",void 0),e([a({name:"isbn",type:"varchar",length:13,nullable:!0}),t("design:type",String)],u.prototype,"isbn",void 0),e([a({name:"isbn13",type:"varchar",length:17,nullable:!0}),t("design:type",String)],u.prototype,"isbn13",void 0),e([s(()=>i,{nullable:!0,eager:!1,cascade:["insert","update"]}),o({name:"publisher_id"}),t("design:type",typeof IPublisher==="undefined"?Object:IPublisher)],u.prototype,"publisher",void 0),e([a({name:"published_date",type:"date",nullable:!0}),t("design:type",String)],u.prototype,"publishedDate",void 0),e([a({name:"description",type:"text",nullable:!0}),t("design:type",String)],u.prototype,"description",void 0),e([a({name:"page_count",type:"int",nullable:!0}),t("design:type",Number)],u.prototype,"pageCount",void 0),e([s(()=>b,{nullable:!0,eager:!1,cascade:["insert","update"]}),o({name:"category_id"}),t("design:type",typeof ICategory==="undefined"?Object:ICategory)],u.prototype,"category",void 0),e([a({name:"genres",type:"json",nullable:!0}),t("design:type",Array)],u.prototype,"genres",void 0),e([a({name:"size",type:"bigint",nullable:!0}),t("design:type",Number)],u.prototype,"size",void 0),e([a({name:"url",type:"text",nullable:!0}),t("design:type",String)],u.prototype,"url",void 0),e([a({name:"cover_image",type:"text",nullable:!0}),t("design:type",String)],u.prototype,"coverImage",void 0),e([a({name:"context",type:"varchar",length:255,nullable:!0}),t("design:type",String)],u.prototype,"context",void 0),e([a({name:"context_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],u.prototype,"contextId",void 0),e([a({name:"average_rating",type:"decimal",precision:3,scale:2,nullable:!0}),t("design:type",Number)],u.prototype,"averageRating",void 0),e([a({name:"ratings_count",type:"int",nullable:!0}),t("design:type",Number)],u.prototype,"ratingsCount",void 0),e([a({name:"edition",type:"varchar",length:100,nullable:!0}),t("design:type",String)],u.prototype,"edition",void 0),e([a({name:"series",type:"varchar",length:200,nullable:!0}),t("design:type",String)],u.prototype,"series",void 0),e([a({name:"series_volume",type:"int",nullable:!0}),t("design:type",Number)],u.prototype,"seriesVolume",void 0),e([g(()=>y,{eager:!1,cascade:["insert","update"]}),p({name:"books_tags",joinColumn:{name:"book_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),t("design:type",Array)],u.prototype,"tags",void 0),e([s(()=>d,{nullable:!0,eager:!1,cascade:["insert","update"]}),o({name:"status_id"}),t("design:type",typeof IStatus==="undefined"?Object:IStatus)],u.prototype,"status",void 0),u=e([f({name:"books"})],u);
|
|
3
|
+
export{l as p,i as q,u as r};
|
|
4
|
+
|
|
5
|
+
//# debugId=6047C4DC0E12DAF764756E2164756E21
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/book/BookAuthorEntity.ts", "src/entities/book/BookPublisherEntity.ts", "src/entities/book/BookEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IAuthor } from \"@ooneex/book\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\n\n@Entity({\n name: \"book_authors\",\n})\nexport class BookAuthorEntity extends BaseEntity implements IAuthor {\n @Column({ name: \"first_name\", type: \"varchar\", length: 100 })\n firstName: string;\n\n @Column({ name: \"last_name\", type: \"varchar\", length: 100 })\n lastName: string;\n\n @Column({ name: \"full_name\", type: \"varchar\", length: 200, nullable: true })\n fullName?: string;\n\n @Column({ name: \"bio\", type: \"text\", nullable: true })\n bio?: string;\n\n @Column({ name: \"birth_date\", type: \"date\", nullable: true })\n birthDate?: string;\n\n @Column({ name: \"death_date\", type: \"date\", nullable: true })\n deathDate?: string;\n\n @Column({ name: \"nationality\", type: \"varchar\", length: 100, nullable: true })\n nationality?: string;\n}\n",
|
|
6
|
+
"import type { IPublisher } from \"@ooneex/book\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\n\n@Entity({\n name: \"book_publishers\",\n})\nexport class BookPublisherEntity extends BaseEntity implements IPublisher {\n @Column({ name: \"name\", type: \"varchar\", length: 200 })\n name: string;\n\n @Column({ name: \"address\", type: \"text\", nullable: true })\n address?: string;\n\n @Column({ name: \"website\", type: \"varchar\", length: 255, nullable: true })\n website?: string;\n\n @Column({ name: \"founded_year\", type: \"int\", nullable: true })\n foundedYear?: number;\n}\n",
|
|
7
|
+
"import type { IAuthor, IBook, IPublisher } from \"@ooneex/book\";\nimport type { ICategory } from \"@ooneex/category\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { CategoryEntity } from \"../common/CategoryEntity\";\nimport { StatusEntity } from \"../common/StatusEntity\";\nimport { TagEntity } from \"../common/TagEntity\";\nimport { BookAuthorEntity } from \"./BookAuthorEntity\";\nimport { BookPublisherEntity } from \"./BookPublisherEntity\";\n\n@Entity({\n name: \"books\",\n})\nexport class BookEntity extends BaseEntity implements IBook {\n @Column({ name: \"title\", type: \"varchar\", length: 500 })\n title: string;\n\n @Column({ name: \"subtitle\", type: \"varchar\", length: 500, nullable: true })\n subtitle?: string;\n\n @ManyToMany(() => BookAuthorEntity, {\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"books_authors\",\n joinColumn: { name: \"book_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"author_id\", referencedColumnName: \"id\" },\n })\n authors?: IAuthor[];\n\n @Column({ name: \"isbn\", type: \"varchar\", length: 13, nullable: true })\n isbn?: string;\n\n @Column({ name: \"isbn13\", type: \"varchar\", length: 17, nullable: true })\n isbn13?: string;\n\n @ManyToOne(() => BookPublisherEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"publisher_id\" })\n publisher?: IPublisher;\n\n @Column({ name: \"published_date\", type: \"date\", nullable: true })\n publishedDate?: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"page_count\", type: \"int\", nullable: true })\n pageCount?: number;\n\n @ManyToOne(() => CategoryEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"category_id\" })\n category?: ICategory;\n\n @Column({ name: \"genres\", type: \"json\", nullable: true })\n genres?: string[];\n\n @Column({ name: \"size\", type: \"bigint\", nullable: true })\n size?: number;\n\n @Column({ name: \"url\", type: \"text\", nullable: true })\n url?: string;\n\n @Column({ name: \"cover_image\", type: \"text\", nullable: true })\n coverImage?: string;\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @Column({\n name: \"average_rating\",\n type: \"decimal\",\n precision: 3,\n scale: 2,\n nullable: true,\n })\n averageRating?: number;\n\n @Column({ name: \"ratings_count\", type: \"int\", nullable: true })\n ratingsCount?: number;\n\n @Column({ name: \"edition\", type: \"varchar\", length: 100, nullable: true })\n edition?: string;\n\n @Column({ name: \"series\", type: \"varchar\", length: 200, nullable: true })\n series?: string;\n\n @Column({ name: \"series_volume\", type: \"int\", nullable: true })\n seriesVolume?: number;\n\n @ManyToMany(() => TagEntity, { eager: false, cascade: [\"insert\", \"update\"] })\n @JoinTable({\n name: \"books_tags\",\n joinColumn: { name: \"book_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n}\n"
|
|
8
|
+
],
|
|
9
|
+
"mappings": ";yJACA,WAAS,MAAQ,gBAMV,MAAM,UAAyB,CAA8B,CAqBpE,CAnBE,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,UAAW,OAAQ,GAAI,CAAC,EAC5D,yBAFW,EAEX,8BAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,OAAQ,GAAI,CAAC,EAC3D,yBALW,EAKX,6BAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EAC3E,yBARW,EAQX,6BA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756E21",
|
|
11
|
+
"names": []
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{V as e,X as r,Y as n}from"./chunk-j7nprmyh.js";import{Column as o,Entity as t}from"typeorm";class m extends n{}e([o({name:"name",type:"varchar",length:255}),r("design:type",String)],m.prototype,"name",void 0),e([o({name:"code",type:"varchar",length:100,unique:!0}),r("design:type",String)],m.prototype,"code",void 0),e([o({name:"color",type:"varchar",length:7}),r("design:type",String)],m.prototype,"color",void 0),m=e([t({name:"levels"})],m);
|
|
3
|
+
export{m as U};
|
|
4
|
+
|
|
5
|
+
//# debugId=1C3D1481C438C46664756E2164756E21
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/gamification/LevelEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { ILevel } from \"@ooneex/gamification\";\nimport { Column, Entity } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\n\n@Entity({\n name: \"levels\",\n})\nexport class LevelEntity extends BaseEntity implements ILevel {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @Column({ name: \"code\", type: \"varchar\", length: 100, unique: true })\n code: string;\n\n @Column({ name: \"color\", type: \"varchar\", length: 7 })\n color: string;\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";sDACA,iBAAS,YAAQ,gBAMV,MAAM,UAAoB,CAA6B,CAS9D,CAPE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAGA,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,IAAK,OAAQ,EAAK,CAAC,EACpE,yBALW,EAKX,yBAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,UAAW,OAAQ,CAAE,CAAC,EACrD,yBARW,EAQX,0BARW,EAAN,GAHN,EAAO,CACN,KAAM,QACR,CAAC,GACY",
|
|
8
|
+
"debugId": "1C3D1481C438C46664756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{C as b}from"./chunk-zmzz7hqq.js";import{S as o,T as i}from"./chunk-764bzjhz.js";import{V as e,X as t,Y as r}from"./chunk-j7nprmyh.js";import{EVideoCodec as s,EVideoFormat as p,EVideoQuality as d,EVideoResolution as c}from"@ooneex/video";import{Column as a,Entity as h,JoinColumn as y,JoinTable as v,ManyToMany as I,ManyToOne as g}from"typeorm";class n extends r{}e([a({name:"title",type:"varchar",length:500}),t("design:type",String)],n.prototype,"title",void 0),e([a({name:"subtitle",type:"varchar",length:500,nullable:!0}),t("design:type",String)],n.prototype,"subtitle",void 0),e([a({name:"release_date",type:"date",nullable:!0}),t("design:type",String)],n.prototype,"releaseDate",void 0),e([a({name:"description",type:"text",nullable:!0}),t("design:type",String)],n.prototype,"description",void 0),e([a({name:"duration",type:"int",nullable:!0}),t("design:type",Number)],n.prototype,"duration",void 0),e([g(()=>b,{nullable:!0,eager:!1,cascade:["insert","update"]}),y({name:"category_id"}),t("design:type",typeof ICategory==="undefined"?Object:ICategory)],n.prototype,"category",void 0),e([a({name:"genres",type:"json",nullable:!0}),t("design:type",Array)],n.prototype,"genres",void 0),e([a({name:"size",type:"bigint",nullable:!0}),t("design:type",Number)],n.prototype,"size",void 0),e([a({name:"url",type:"text",nullable:!0}),t("design:type",String)],n.prototype,"url",void 0),e([a({name:"poster_image",type:"text",nullable:!0}),t("design:type",String)],n.prototype,"posterImage",void 0),e([a({name:"thumbnail_image",type:"text",nullable:!0}),t("design:type",String)],n.prototype,"thumbnailImage",void 0),e([a({name:"resolution",type:"enum",enum:c,nullable:!0}),t("design:type",typeof c==="undefined"?Object:c)],n.prototype,"resolution",void 0),e([a({name:"quality",type:"enum",enum:d,nullable:!0}),t("design:type",typeof d==="undefined"?Object:d)],n.prototype,"quality",void 0),e([a({name:"format",type:"enum",enum:p,nullable:!0}),t("design:type",typeof p==="undefined"?Object:p)],n.prototype,"format",void 0),e([a({name:"codec",type:"enum",enum:s,nullable:!0}),t("design:type",typeof s==="undefined"?Object:s)],n.prototype,"codec",void 0),e([a({name:"bitrate",type:"int",nullable:!0}),t("design:type",Number)],n.prototype,"bitrate",void 0),e([a({name:"frame_rate",type:"decimal",precision:5,scale:2,nullable:!0}),t("design:type",Number)],n.prototype,"frameRate",void 0),e([a({name:"audio_codec",type:"varchar",length:50,nullable:!0}),t("design:type",typeof AudioCodecType==="undefined"?Object:AudioCodecType)],n.prototype,"audioCodec",void 0),e([a({name:"audio_channels",type:"varchar",length:20,nullable:!0}),t("design:type",typeof AudioChannelsType==="undefined"?Object:AudioChannelsType)],n.prototype,"audioChannels",void 0),e([a({name:"average_rating",type:"decimal",precision:3,scale:2,nullable:!0}),t("design:type",Number)],n.prototype,"averageRating",void 0),e([a({name:"ratings_count",type:"int",nullable:!0}),t("design:type",Number)],n.prototype,"ratingsCount",void 0),e([a({name:"content_rating",type:"varchar",length:10,nullable:!0}),t("design:type",String)],n.prototype,"contentRating",void 0),e([a({name:"context",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"context",void 0),e([a({name:"context_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],n.prototype,"contextId",void 0),e([I(()=>i,{eager:!1,cascade:["insert","update"]}),v({name:"videos_tags",joinColumn:{name:"video_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),t("design:type",Array)],n.prototype,"tags",void 0),e([g(()=>o,{nullable:!0,eager:!1,cascade:["insert","update"]}),y({name:"status_id"}),t("design:type",typeof IStatus==="undefined"?Object:IStatus)],n.prototype,"status",void 0),n=e([h({name:"videos"})],n);import{Column as f,Entity as x,JoinColumn as T,JoinTable as C,ManyToMany as _,ManyToOne as J}from"typeorm";class m extends r{}e([f({name:"name",type:"varchar",length:255}),t("design:type",String)],m.prototype,"name",void 0),e([f({name:"description",type:"text",nullable:!0}),t("design:type",String)],m.prototype,"description",void 0),e([_(()=>n,{eager:!1,cascade:["insert","update"]}),C({name:"playlists_videos",joinColumn:{name:"playlist_id",referencedColumnName:"id"},inverseJoinColumn:{name:"video_id",referencedColumnName:"id"}}),t("design:type",Array)],m.prototype,"videos",void 0),e([_(()=>i,{eager:!1,cascade:["insert","update"]}),C({name:"playlists_tags",joinColumn:{name:"playlist_id",referencedColumnName:"id"},inverseJoinColumn:{name:"tag_id",referencedColumnName:"id"}}),t("design:type",Array)],m.prototype,"tags",void 0),e([J(()=>o,{nullable:!0,eager:!1,cascade:["insert","update"]}),T({name:"status_id"}),t("design:type",typeof IStatus==="undefined"?Object:IStatus)],m.prototype,"status",void 0),m=e([x({name:"video_playlists"})],m);import{Column as l,Entity as M,JoinColumn as N,ManyToOne as S}from"typeorm";class u extends r{}e([S(()=>n,{nullable:!0,eager:!1,cascade:["insert","update"]}),N({name:"video_id"}),t("design:type",typeof IVideo==="undefined"?Object:IVideo)],u.prototype,"video",void 0),e([l({name:"user_id",type:"varchar",length:15}),t("design:type",String)],u.prototype,"userId",void 0),e([l({name:"current_time",type:"int"}),t("design:type",Number)],u.prototype,"currentTime",void 0),e([l({name:"duration",type:"int",nullable:!0}),t("design:type",Number)],u.prototype,"duration",void 0),e([l({name:"completed",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],u.prototype,"completed",void 0),e([l({name:"last_watched",type:"timestamptz",nullable:!0}),t("design:type",String)],u.prototype,"lastWatched",void 0),u=e([M({name:"video_progress"})],u);
|
|
3
|
+
export{n as z,m as A,u as B};
|
|
4
|
+
|
|
5
|
+
//# debugId=FF8CD5F1053B87CF64756E2164756E21
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/video/VideoEntity.ts", "src/entities/video/VideoPlaylistEntity.ts", "src/entities/video/VideoProgressEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { ICategory } from \"@ooneex/category\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport {\n type AudioChannelsType,\n type AudioCodecType,\n EVideoCodec,\n EVideoFormat,\n EVideoQuality,\n EVideoResolution,\n type IVideo,\n} from \"@ooneex/video\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { CategoryEntity } from \"../common/CategoryEntity\";\nimport { StatusEntity } from \"../common/StatusEntity\";\nimport { TagEntity } from \"../common/TagEntity\";\n\n@Entity({\n name: \"videos\",\n})\nexport class VideoEntity extends BaseEntity implements IVideo {\n @Column({ name: \"title\", type: \"varchar\", length: 500 })\n title: string;\n\n @Column({ name: \"subtitle\", type: \"varchar\", length: 500, nullable: true })\n subtitle?: string;\n\n @Column({ name: \"release_date\", type: \"date\", nullable: true })\n releaseDate?: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"duration\", type: \"int\", nullable: true })\n duration?: number;\n\n @ManyToOne(() => CategoryEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"category_id\" })\n category?: ICategory;\n\n @Column({ name: \"genres\", type: \"json\", nullable: true })\n genres?: string[];\n\n @Column({ name: \"size\", type: \"bigint\", nullable: true })\n size?: number;\n\n @Column({ name: \"url\", type: \"text\", nullable: true })\n url?: string;\n\n @Column({ name: \"poster_image\", type: \"text\", nullable: true })\n posterImage?: string;\n\n @Column({ name: \"thumbnail_image\", type: \"text\", nullable: true })\n thumbnailImage?: string;\n\n @Column({\n name: \"resolution\",\n type: \"enum\",\n enum: EVideoResolution,\n nullable: true,\n })\n resolution?: EVideoResolution;\n\n @Column({\n name: \"quality\",\n type: \"enum\",\n enum: EVideoQuality,\n nullable: true,\n })\n quality?: EVideoQuality;\n\n @Column({\n name: \"format\",\n type: \"enum\",\n enum: EVideoFormat,\n nullable: true,\n })\n format?: EVideoFormat;\n\n @Column({\n name: \"codec\",\n type: \"enum\",\n enum: EVideoCodec,\n nullable: true,\n })\n codec?: EVideoCodec;\n\n @Column({ name: \"bitrate\", type: \"int\", nullable: true })\n bitrate?: number;\n\n @Column({\n name: \"frame_rate\",\n type: \"decimal\",\n precision: 5,\n scale: 2,\n nullable: true,\n })\n frameRate?: number;\n\n @Column({ name: \"audio_codec\", type: \"varchar\", length: 50, nullable: true })\n audioCodec?: AudioCodecType;\n\n @Column({\n name: \"audio_channels\",\n type: \"varchar\",\n length: 20,\n nullable: true,\n })\n audioChannels?: AudioChannelsType;\n\n @Column({\n name: \"average_rating\",\n type: \"decimal\",\n precision: 3,\n scale: 2,\n nullable: true,\n })\n averageRating?: number;\n\n @Column({ name: \"ratings_count\", type: \"int\", nullable: true })\n ratingsCount?: number;\n\n @Column({\n name: \"content_rating\",\n type: \"varchar\",\n length: 10,\n nullable: true,\n })\n contentRating?: string;\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n\n @ManyToMany(() => TagEntity, { eager: false, cascade: [\"insert\", \"update\"] })\n @JoinTable({\n name: \"videos_tags\",\n joinColumn: { name: \"video_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n}\n",
|
|
6
|
+
"import type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IPlaylist, IVideo } from \"@ooneex/video\";\nimport { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { StatusEntity } from \"../common/StatusEntity\";\nimport { TagEntity } from \"../common/TagEntity\";\nimport { VideoEntity } from \"./VideoEntity\";\n\n@Entity({\n name: \"video_playlists\",\n})\nexport class VideoPlaylistEntity extends BaseEntity implements IPlaylist {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @ManyToMany(() => VideoEntity, {\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"playlists_videos\",\n joinColumn: { name: \"playlist_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"video_id\", referencedColumnName: \"id\" },\n })\n videos?: IVideo[];\n\n @ManyToMany(() => TagEntity, { eager: false, cascade: [\"insert\", \"update\"] })\n @JoinTable({\n name: \"playlists_tags\",\n joinColumn: { name: \"playlist_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"tag_id\", referencedColumnName: \"id\" },\n })\n tags?: ITag[];\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n}\n",
|
|
7
|
+
"import type { IVideo, IVideoProgress } from \"@ooneex/video\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { VideoEntity } from \"./VideoEntity\";\n\n@Entity({\n name: \"video_progress\",\n})\nexport class VideoProgressEntity extends BaseEntity implements IVideoProgress {\n @ManyToOne(() => VideoEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"video_id\" })\n video?: IVideo;\n\n @Column({ name: \"user_id\", type: \"varchar\", length: 15 })\n userId: string;\n\n @Column({ name: \"current_time\", type: \"int\" })\n currentTime: number;\n\n @Column({ name: \"duration\", type: \"int\", nullable: true })\n duration?: number;\n\n @Column({\n name: \"completed\",\n type: \"boolean\",\n default: false,\n nullable: true,\n })\n completed?: boolean;\n\n @Column({ name: \"last_watched\", type: \"timestamptz\", nullable: true })\n lastWatched?: string;\n}\n"
|
|
8
|
+
],
|
|
9
|
+
"mappings": ";yJAGA,gBAGE,YACA,mBACA,sBACA,sBAGF,iBAAS,YAAQ,gBAAQ,eAAY,gBAAW,eAAY,gBASrD,MAAM,UAAoB,CAA6B,CAuI9D,CArIE,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,UAAW,OAAQ,GAAI,CAAC,EACvD,yBAFW,EAEX,0BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EAC1E,yBALW,EAKX,6BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC9D,yBARW,EAQX,gCAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC7D,yBAXW,EAWX,gCAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,MAAO,SAAU,EAAK,CAAC,EACzD,yBAdW,EAcX,6BAQA,GANC,EAAU,IAAM,EAAgB,CAC/B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,aAAc,CAAC,EACnC,kEAtBW,EAsBX,6BAGA,GADC,EAAO,CAAE,KAAM,SAAU,KAAM,OAAQ,SAAU,EAAK,CAAC,EACxD,wBAzBW,EAyBX,2BAGA,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,SAAU,SAAU,EAAK,CAAC,EACxD,yBA5BW,EA4BX,yBAGA,GADC,EAAO,CAAE,KAAM,MAAO,KAAM,OAAQ,SAAU,EAAK,CAAC,EACrD,yBA/BW,EA+BX,wBAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC9D,yBAlCW,EAkCX,gCAGA,GADC,EAAO,CAAE,KA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AAC,EACD,wBAxBW,EAwBX,yBAQA,GANC,EAAU,IAAM,EAAc,CAC7B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,WAAY,CAAC,EACjC,8DAhCW,EAgCX,2BAhCW,EAAN,GAHN,EAAO,CACN,KAAM,iBACR,CAAC,GACY,GCXb,iBAAS,YAAQ,gBAAQ,eAAY,gBAO9B,MAAM,UAA4B,CAAqC,CA4B9E,CArBE,GANC,EAAU,IAAM,EAAa,CAC5B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,UAAW,CAAC,EAChC,4DAPW,EAOX,0BAGA,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,OAAQ,EAAG,CAAC,EACxD,yBAVW,EAUX,2BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,KAAM,CAAC,EAC7C,yBAbW,EAaX,gCAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,MAAO,SAAU,EAAK,CAAC,EACzD,yBAhBW,EAgBX,6BAQA,GANC,EAAO,CACN,KAAM,YACN,KAAM,UACN,QAAS,GACT,SAAU,EACZ,CAAC,EACD,0BAxBW,EAwBX,8BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,cAAe,SAAU,EAAK,CAAC,EACrE,yBA3BW,EA2BX,gCA3BW,EAAN,GAHN,EAAO,CACN,KAAM,gBACR,CAAC,GACY",
|
|
10
|
+
"debugId": "FF8CD5F1053B87CF64756E2164756E21",
|
|
11
|
+
"names": []
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Q as d}from"./chunk-2e7zbxcq.js";import{V as e,X as t,Y as o}from"./chunk-j7nprmyh.js";import{Column as a,Entity as x,JoinColumn as A,ManyToOne as I,OneToMany as p}from"typeorm";class s extends o{}e([a({name:"email",type:"varchar",length:255,unique:!0}),t("design:type",String)],s.prototype,"email",void 0),e([a({name:"roles",type:"simple-array"}),t("design:type",Array)],s.prototype,"roles",void 0),e([a({name:"name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],s.prototype,"name",void 0),e([a({name:"last_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],s.prototype,"lastName",void 0),e([a({name:"first_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],s.prototype,"firstName",void 0),e([a({name:"username",type:"varchar",length:100,unique:!0,nullable:!0}),t("design:type",String)],s.prototype,"username",void 0),e([I(()=>d,{nullable:!0,eager:!1,cascade:["insert","update"]}),A({name:"avatar_id"}),t("design:type",typeof IImage==="undefined"?Object:IImage)],s.prototype,"avatar",void 0),e([a({name:"bio",type:"text",nullable:!0}),t("design:type",String)],s.prototype,"bio",void 0),e([a({name:"phone",type:"varchar",length:20,nullable:!0}),t("design:type",String)],s.prototype,"phone",void 0),e([a({name:"birth_date",type:"date",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"birthDate",void 0),e([a({name:"timezone",type:"varchar",length:50,nullable:!0}),t("design:type",String)],s.prototype,"timezone",void 0),e([a({name:"is_email_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],s.prototype,"isEmailVerified",void 0),e([a({name:"is_phone_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],s.prototype,"isPhoneVerified",void 0),e([a({name:"last_active_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"lastActiveAt",void 0),e([a({name:"email_verified_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"emailVerifiedAt",void 0),e([a({name:"phone_verified_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"phoneVerifiedAt",void 0),e([a({name:"last_login_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"lastLoginAt",void 0),e([a({name:"password_changed_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],s.prototype,"passwordChangedAt",void 0),e([a({name:"two_factor_enabled",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],s.prototype,"twoFactorEnabled",void 0),e([a({name:"two_factor_secret",type:"varchar",length:255,nullable:!0}),t("design:type",String)],s.prototype,"twoFactorSecret",void 0),e([a({name:"recovery_tokens",type:"simple-array",nullable:!0}),t("design:type",Array)],s.prototype,"recoveryTokens",void 0),e([p("SessionEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],s.prototype,"sessions",void 0),e([p("AccountEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],s.prototype,"accounts",void 0),e([p("VerificationEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],s.prototype,"verifications",void 0),s=e([x({name:"users"})],s);import{EAccountType as b}from"@ooneex/user";import{Column as n,Entity as k,JoinColumn as D,ManyToOne as C}from"typeorm";class c extends o{}e([n({name:"provider",type:"varchar",length:100,nullable:!0}),t("design:type",String)],c.prototype,"provider",void 0),e([n({name:"provider_account_id",type:"varchar",length:255,nullable:!0}),t("design:type",String)],c.prototype,"providerAccountId",void 0),e([n({name:"type",type:"enum",enum:b}),t("design:type",typeof b==="undefined"?Object:b)],c.prototype,"type",void 0),e([n({name:"password",type:"varchar",length:255,nullable:!0}),t("design:type",String)],c.prototype,"password",void 0),e([n({name:"access_token",type:"text",nullable:!0}),t("design:type",String)],c.prototype,"accessToken",void 0),e([n({name:"access_token_expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],c.prototype,"accessTokenExpiresAt",void 0),e([n({name:"refresh_token",type:"text",nullable:!0}),t("design:type",String)],c.prototype,"refreshToken",void 0),e([n({name:"refresh_token_expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],c.prototype,"refreshTokenExpiresAt",void 0),e([n({name:"expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],c.prototype,"expiresAt",void 0),e([n({name:"token_type",type:"varchar",length:50,nullable:!0}),t("design:type",String)],c.prototype,"tokenType",void 0),e([n({name:"scope",type:"text",nullable:!0}),t("design:type",String)],c.prototype,"scope",void 0),e([n({name:"id_token",type:"text",nullable:!0}),t("design:type",String)],c.prototype,"idToken",void 0),e([n({name:"session_state",type:"varchar",length:255,nullable:!0}),t("design:type",String)],c.prototype,"sessionState",void 0),e([n({name:"email",type:"varchar",length:255,nullable:!0}),t("design:type",String)],c.prototype,"email",void 0),e([n({name:"email_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],c.prototype,"emailVerified",void 0),e([n({name:"name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],c.prototype,"name",void 0),e([n({name:"picture",type:"varchar",length:500,nullable:!0}),t("design:type",String)],c.prototype,"picture",void 0),e([n({name:"profile",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],c.prototype,"profile",void 0),e([C(()=>s,(m)=>m.accounts,{nullable:!0,eager:!1,onDelete:"CASCADE"}),D({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],c.prototype,"user",void 0),c=e([k({name:"accounts"})],c);import{Column as r,Entity as z,JoinColumn as T,ManyToOne as E}from"typeorm";class y extends o{}e([r({name:"token",type:"varchar",length:255,unique:!0}),t("design:type",String)],y.prototype,"token",void 0),e([r({name:"refresh_token",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"refreshToken",void 0),e([r({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],y.prototype,"userAgent",void 0),e([r({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],y.prototype,"ipAddress",void 0),e([r({name:"device_type",type:"varchar",length:50,nullable:!0}),t("design:type",String)],y.prototype,"deviceType",void 0),e([r({name:"device_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"deviceName",void 0),e([r({name:"browser",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"browser",void 0),e([r({name:"operating_system",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"operatingSystem",void 0),e([r({name:"location",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"location",void 0),e([r({name:"is_active",type:"boolean",default:!0}),t("design:type",Boolean)],y.prototype,"isActive",void 0),e([r({name:"expires_at",type:"timestamptz"}),t("design:type",typeof Date==="undefined"?Object:Date)],y.prototype,"expiresAt",void 0),e([r({name:"last_access_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],y.prototype,"lastAccessAt",void 0),e([r({name:"revoked_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],y.prototype,"revokedAt",void 0),e([r({name:"revoked_reason",type:"varchar",length:255,nullable:!0}),t("design:type",String)],y.prototype,"revokedReason",void 0),e([E(()=>s,(m)=>m.sessions,{nullable:!0,eager:!1,onDelete:"CASCADE"}),T({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],y.prototype,"user",void 0),y=e([z({name:"sessions"})],y);import{EVerificationType as f}from"@ooneex/user";import{Column as l,Entity as V,JoinColumn as w,ManyToOne as U}from"typeorm";class u extends o{}e([l({name:"email",type:"varchar",length:255,nullable:!0}),t("design:type",String)],u.prototype,"email",void 0),e([l({name:"phone",type:"varchar",length:20,nullable:!0}),t("design:type",String)],u.prototype,"phone",void 0),e([l({name:"token",type:"varchar",length:255,unique:!0}),t("design:type",String)],u.prototype,"token",void 0),e([l({name:"type",type:"enum",enum:f}),t("design:type",typeof f==="undefined"?Object:f)],u.prototype,"type",void 0),e([l({name:"code",type:"varchar",length:10,nullable:!0}),t("design:type",String)],u.prototype,"code",void 0),e([l({name:"is_used",type:"boolean",default:!1}),t("design:type",Boolean)],u.prototype,"isUsed",void 0),e([l({name:"used_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],u.prototype,"usedAt",void 0),e([l({name:"expires_at",type:"timestamptz"}),t("design:type",typeof Date==="undefined"?Object:Date)],u.prototype,"expiresAt",void 0),e([l({name:"attempts_count",type:"int",default:0}),t("design:type",Number)],u.prototype,"attemptsCount",void 0),e([l({name:"max_attempts",type:"int",default:5}),t("design:type",Number)],u.prototype,"maxAttempts",void 0),e([l({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],u.prototype,"ipAddress",void 0),e([l({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],u.prototype,"userAgent",void 0),e([l({name:"metadata",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],u.prototype,"metadata",void 0),e([l({name:"description",type:"text",nullable:!0}),t("design:type",String)],u.prototype,"description",void 0),e([U(()=>s,(m)=>m.verifications,{nullable:!0,eager:!1,onDelete:"CASCADE"}),w({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],u.prototype,"user",void 0),u=e([V({name:"verifications"})],u);import{EProfileUpdateStatus as h}from"@ooneex/user";import{Column as i,Entity as R,JoinColumn as _,ManyToOne as v}from"typeorm";class g extends o{}e([i({name:"changed_fields",type:"simple-array"}),t("design:type",Array)],g.prototype,"changedFields",void 0),e([i({name:"previous_values",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],g.prototype,"previousValues",void 0),e([i({name:"new_values",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],g.prototype,"newValues",void 0),e([i({name:"update_reason",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"updateReason",void 0),e([i({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],g.prototype,"ipAddress",void 0),e([i({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"userAgent",void 0),e([i({name:"requires_verification",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],g.prototype,"requiresVerification",void 0),e([i({name:"status",type:"enum",enum:h}),t("design:type",typeof h==="undefined"?Object:h)],g.prototype,"status",void 0),e([i({name:"applied_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],g.prototype,"appliedAt",void 0),e([i({name:"metadata",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],g.prototype,"metadata",void 0),e([i({name:"description",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"description",void 0),e([v(()=>s,{nullable:!0,eager:!1,onDelete:"CASCADE"}),_({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],g.prototype,"user",void 0),e([v(()=>u,{nullable:!0,eager:!1}),_({name:"verification_id"}),t("design:type",typeof IVerification==="undefined"?Object:IVerification)],g.prototype,"verification",void 0),g=e([R({name:"user_profile_updates"})],g);
|
|
3
|
+
export{s as D,c as E,y as F,u as G,g as H};
|
|
4
|
+
|
|
5
|
+
//# debugId=D5E848CB1B9B4DED64756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/user/UserEntity.ts", "src/entities/user/AccountEntity.ts", "src/entities/user/SessionEntity.ts", "src/entities/user/VerificationEntity.ts", "src/entities/user/UserProfileUpdateEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IImage } from \"@ooneex/image\";\nimport type { ERole } from \"@ooneex/role\";\nimport type { IAccount, ISession, IUser, IVerification } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne, OneToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { ImageEntity } from \"../image/ImageEntity\";\n\n@Entity({\n name: \"users\",\n})\nexport class UserEntity extends BaseEntity implements IUser {\n @Column({ name: \"email\", type: \"varchar\", length: 255, unique: true })\n email: string;\n\n @Column({ name: \"roles\", type: \"simple-array\" })\n roles: ERole[];\n\n @Column({ name: \"name\", type: \"varchar\", length: 255, nullable: true })\n name?: string;\n\n @Column({ name: \"last_name\", type: \"varchar\", length: 255, nullable: true })\n lastName?: string;\n\n @Column({ name: \"first_name\", type: \"varchar\", length: 255, nullable: true })\n firstName?: string;\n\n @Column({ name: \"username\", type: \"varchar\", length: 100, unique: true, nullable: true })\n username?: string;\n\n @ManyToOne(() => ImageEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"avatar_id\" })\n avatar?: IImage;\n\n @Column({ name: \"bio\", type: \"text\", nullable: true })\n bio?: string;\n\n @Column({ name: \"phone\", type: \"varchar\", length: 20, nullable: true })\n phone?: string;\n\n @Column({ name: \"birth_date\", type: \"date\", nullable: true })\n birthDate?: Date;\n\n @Column({ name: \"timezone\", type: \"varchar\", length: 50, nullable: true })\n timezone?: string;\n\n @Column({ name: \"is_email_verified\", type: \"boolean\", default: false, nullable: true })\n isEmailVerified?: boolean;\n\n @Column({ name: \"is_phone_verified\", type: \"boolean\", default: false, nullable: true })\n isPhoneVerified?: boolean;\n\n @Column({ name: \"last_active_at\", type: \"timestamptz\", nullable: true })\n lastActiveAt?: Date;\n\n @Column({ name: \"email_verified_at\", type: \"timestamptz\", nullable: true })\n emailVerifiedAt?: Date;\n\n @Column({ name: \"phone_verified_at\", type: \"timestamptz\", nullable: true })\n phoneVerifiedAt?: Date;\n\n @Column({ name: \"last_login_at\", type: \"timestamptz\", nullable: true })\n lastLoginAt?: Date;\n\n @Column({ name: \"password_changed_at\", type: \"timestamptz\", nullable: true })\n passwordChangedAt?: Date;\n\n @Column({ name: \"two_factor_enabled\", type: \"boolean\", default: false, nullable: true })\n twoFactorEnabled?: boolean;\n\n @Column({ name: \"two_factor_secret\", type: \"varchar\", length: 255, nullable: true })\n twoFactorSecret?: string;\n\n @Column({ name: \"recovery_tokens\", type: \"simple-array\", nullable: true })\n recoveryTokens?: string[];\n\n @OneToMany(\"SessionEntity\", \"user\", {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n sessions?: ISession[];\n\n @OneToMany(\"AccountEntity\", \"user\", {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n accounts?: IAccount[];\n\n @OneToMany(\"VerificationEntity\", \"user\", {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n verifications?: IVerification[];\n}\n",
|
|
6
|
+
"import type { IAccount, IUser } from \"@ooneex/user\";\nimport { EAccountType } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"accounts\",\n})\nexport class AccountEntity extends BaseEntity implements IAccount {\n @Column({ name: \"provider\", type: \"varchar\", length: 100, nullable: true })\n provider?: string;\n\n @Column({ name: \"provider_account_id\", type: \"varchar\", length: 255, nullable: true })\n providerAccountId?: string;\n\n @Column({\n name: \"type\",\n type: \"enum\",\n enum: EAccountType,\n })\n type: EAccountType;\n\n @Column({ name: \"password\", type: \"varchar\", length: 255, nullable: true })\n password?: string;\n\n @Column({ name: \"access_token\", type: \"text\", nullable: true })\n accessToken?: string;\n\n @Column({ name: \"access_token_expires_at\", type: \"timestamptz\", nullable: true })\n accessTokenExpiresAt?: Date;\n\n @Column({ name: \"refresh_token\", type: \"text\", nullable: true })\n refreshToken?: string;\n\n @Column({ name: \"refresh_token_expires_at\", type: \"timestamptz\", nullable: true })\n refreshTokenExpiresAt?: Date;\n\n @Column({ name: \"expires_at\", type: \"timestamptz\", nullable: true })\n expiresAt?: Date;\n\n @Column({ name: \"token_type\", type: \"varchar\", length: 50, nullable: true })\n tokenType?: string;\n\n @Column({ name: \"scope\", type: \"text\", nullable: true })\n scope?: string;\n\n @Column({ name: \"id_token\", type: \"text\", nullable: true })\n idToken?: string;\n\n @Column({ name: \"session_state\", type: \"varchar\", length: 255, nullable: true })\n sessionState?: string;\n\n @Column({ name: \"email\", type: \"varchar\", length: 255, nullable: true })\n email?: string;\n\n @Column({ name: \"email_verified\", type: \"boolean\", default: false, nullable: true })\n emailVerified?: boolean;\n\n @Column({ name: \"name\", type: \"varchar\", length: 255, nullable: true })\n name?: string;\n\n @Column({ name: \"picture\", type: \"varchar\", length: 500, nullable: true })\n picture?: string;\n\n @Column({ name: \"profile\", type: \"jsonb\", nullable: true })\n profile?: Record<string, unknown>;\n\n @ManyToOne(\n () => UserEntity,\n (user) => user.accounts,\n {\n nullable: true,\n eager: false,\n onDelete: \"CASCADE\",\n },\n )\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n}\n",
|
|
7
|
+
"import type { ISession, IUser } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"sessions\",\n})\nexport class SessionEntity extends BaseEntity implements ISession {\n @Column({ name: \"token\", type: \"varchar\", length: 255, unique: true })\n token: string;\n\n @Column({ name: \"refresh_token\", type: \"varchar\", length: 255, nullable: true })\n refreshToken?: string;\n\n @Column({ name: \"user_agent\", type: \"text\", nullable: true })\n userAgent?: string;\n\n @Column({ name: \"ip_address\", type: \"inet\", nullable: true })\n ipAddress?: string;\n\n @Column({ name: \"device_type\", type: \"varchar\", length: 50, nullable: true })\n deviceType?: string;\n\n @Column({ name: \"device_name\", type: \"varchar\", length: 255, nullable: true })\n deviceName?: string;\n\n @Column({ name: \"browser\", type: \"varchar\", length: 255, nullable: true })\n browser?: string;\n\n @Column({ name: \"operating_system\", type: \"varchar\", length: 255, nullable: true })\n operatingSystem?: string;\n\n @Column({ name: \"location\", type: \"varchar\", length: 255, nullable: true })\n location?: string;\n\n @Column({ name: \"is_active\", type: \"boolean\", default: true })\n isActive: boolean;\n\n @Column({ name: \"expires_at\", type: \"timestamptz\" })\n expiresAt: Date;\n\n @Column({ name: \"last_access_at\", type: \"timestamptz\", nullable: true })\n lastAccessAt?: Date;\n\n @Column({ name: \"revoked_at\", type: \"timestamptz\", nullable: true })\n revokedAt?: Date;\n\n @Column({ name: \"revoked_reason\", type: \"varchar\", length: 255, nullable: true })\n revokedReason?: string;\n\n @ManyToOne(\n () => UserEntity,\n (user) => user.sessions,\n {\n nullable: true,\n eager: false,\n onDelete: \"CASCADE\",\n },\n )\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n}\n",
|
|
8
|
+
"import type { IUser, IVerification } from \"@ooneex/user\";\nimport { EVerificationType } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"verifications\",\n})\nexport class VerificationEntity extends BaseEntity implements IVerification {\n @Column({ name: \"email\", type: \"varchar\", length: 255, nullable: true })\n email?: string;\n\n @Column({ name: \"phone\", type: \"varchar\", length: 20, nullable: true })\n phone?: string;\n\n @Column({ name: \"token\", type: \"varchar\", length: 255, unique: true })\n token: string;\n\n @Column({\n name: \"type\",\n type: \"enum\",\n enum: EVerificationType,\n })\n type: EVerificationType;\n\n @Column({ name: \"code\", type: \"varchar\", length: 10, nullable: true })\n code?: string;\n\n @Column({ name: \"is_used\", type: \"boolean\", default: false })\n isUsed: boolean;\n\n @Column({ name: \"used_at\", type: \"timestamptz\", nullable: true })\n usedAt?: Date;\n\n @Column({ name: \"expires_at\", type: \"timestamptz\" })\n expiresAt: Date;\n\n @Column({ name: \"attempts_count\", type: \"int\", default: 0 })\n attemptsCount: number;\n\n @Column({ name: \"max_attempts\", type: \"int\", default: 5 })\n maxAttempts: number;\n\n @Column({ name: \"ip_address\", type: \"inet\", nullable: true })\n ipAddress?: string;\n\n @Column({ name: \"user_agent\", type: \"text\", nullable: true })\n userAgent?: string;\n\n @Column({ name: \"metadata\", type: \"jsonb\", nullable: true })\n metadata?: Record<string, unknown>;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @ManyToOne(\n () => UserEntity,\n (user) => user.verifications,\n {\n nullable: true,\n eager: false,\n onDelete: \"CASCADE\",\n },\n )\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n}\n",
|
|
9
|
+
"import type { IUser, IUserProfileUpdate, IVerification } from \"@ooneex/user\";\nimport { EProfileUpdateStatus } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\nimport { VerificationEntity } from \"./VerificationEntity\";\n\n@Entity({\n name: \"user_profile_updates\",\n})\nexport class UserProfileUpdateEntity extends BaseEntity implements IUserProfileUpdate {\n @Column({ name: \"changed_fields\", type: \"simple-array\" })\n changedFields: string[];\n\n @Column({ name: \"previous_values\", type: \"jsonb\", nullable: true })\n previousValues?: Record<string, unknown>;\n\n @Column({ name: \"new_values\", type: \"jsonb\", nullable: true })\n newValues?: Record<string, unknown>;\n\n @Column({ name: \"update_reason\", type: \"varchar\", length: 255, nullable: true })\n updateReason?: string;\n\n @Column({ name: \"ip_address\", type: \"inet\", nullable: true })\n ipAddress?: string;\n\n @Column({ name: \"user_agent\", type: \"text\", nullable: true })\n userAgent?: string;\n\n @Column({ name: \"requires_verification\", type: \"boolean\", default: false, nullable: true })\n requiresVerification?: boolean;\n\n @Column({\n name: \"status\",\n type: \"enum\",\n enum: EProfileUpdateStatus,\n })\n status: EProfileUpdateStatus;\n\n @Column({ name: \"applied_at\", type: \"timestamptz\", nullable: true })\n appliedAt?: Date;\n\n @Column({ name: \"metadata\", type: \"jsonb\", nullable: true })\n metadata?: Record<string, unknown>;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @ManyToOne(() => UserEntity, {\n nullable: true,\n eager: false,\n onDelete: \"CASCADE\",\n })\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n\n @ManyToOne(() => VerificationEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"verification_id\" })\n verification?: IVer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