@ooneex/typeorm 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{qa as I}from"./chunk-xwe8m6av.js";import{Ba as v}from"./chunk-p22keb3y.js";import{Ca as h}from"./chunk-6jnj2pfx.js";import{Ga as r}from"./chunk-xrqhqgen.js";import{Ha as e,Ja as n}from"./chunk-59vwmfpm.js";import{Column as s,Entity as N}from"typeorm";class m extends r{}e([s({name:"balance",type:"decimal",precision:10,scale:2}),n("design:type",Number)],m.prototype,"balance",void 0),e([s({name:"currency",type:"varchar",length:3,nullable:!0}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],m.prototype,"currency",void 0),e([s({name:"expires_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],m.prototype,"expiresAt",void 0),e([s({name:"description",type:"text",nullable:!0}),n("design:type",String)],m.prototype,"description",void 0),m=e([N({name:"payment_credits"})],m);import{Column as c,Entity as D}from"typeorm";class l extends r{}e([c({name:"name",type:"varchar",length:255}),n("design:type",String)],l.prototype,"name",void 0),e([c({name:"description",type:"text",nullable:!0}),n("design:type",String)],l.prototype,"description",void 0),e([c({name:"is_enabled",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],l.prototype,"isEnabled",void 0),e([c({name:"limit",type:"int",nullable:!0}),n("design:type",Number)],l.prototype,"limit",void 0),l=e([D({name:"payment_features"})],l);import{ESubscriptionPeriod as C}from"@ooneex/payment";import{Column as i,Entity as j,JoinTable as J,ManyToMany as A}from"typeorm";class o extends r{}e([i({name:"name",type:"varchar",length:255}),n("design:type",String)],o.prototype,"name",void 0),e([i({name:"description",type:"text",nullable:!0}),n("design:type",String)],o.prototype,"description",void 0),e([i({name:"currency",type:"varchar",length:3}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],o.prototype,"currency",void 0),e([i({name:"price",type:"decimal",precision:10,scale:2}),n("design:type",Number)],o.prototype,"price",void 0),e([i({name:"period",type:"enum",enum:C}),n("design:type",typeof C==="undefined"?Object:C)],o.prototype,"period",void 0),e([i({name:"period_count",type:"int",default:1,nullable:!0}),n("design:type",Number)],o.prototype,"periodCount",void 0),e([A(()=>l,{nullable:!0,eager:!1,cascade:["insert","update"]}),J({name:"payment_plans_features",joinColumn:{name:"plan_id",referencedColumnName:"id"},inverseJoinColumn:{name:"feature_id",referencedColumnName:"id"}}),n("design:type",Array)],o.prototype,"features",void 0),e([i({name:"is_active",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],o.prototype,"isActive",void 0),e([i({name:"trial_days",type:"int",default:0,nullable:!0}),n("design:type",Number)],o.prototype,"trialDays",void 0),o=e([j({name:"payment_plans"})],o);import{Column as a,Entity as z,JoinTable as y,ManyToMany as b}from"typeorm";class u extends r{}e([a({name:"key",type:"varchar",length:255,nullable:!0,unique:!0}),n("design:type",String)],u.prototype,"key",void 0),e([a({name:"name",type:"varchar",length:255}),n("design:type",String)],u.prototype,"name",void 0),e([a({name:"description",type:"text",nullable:!0}),n("design:type",String)],u.prototype,"description",void 0),e([b(()=>I,{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)],u.prototype,"categories",void 0),e([a({name:"currency",type:"varchar",length:3,nullable:!0}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],u.prototype,"currency",void 0),e([a({name:"price",type:"decimal",precision:10,scale:2,nullable:!0}),n("design:type",Number)],u.prototype,"price",void 0),e([a({name:"barcode",type:"varchar",length:255,nullable:!0}),n("design:type",String)],u.prototype,"barcode",void 0),e([b(()=>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)],u.prototype,"images",void 0),e([a({name:"attributes",type:"jsonb",nullable:!0}),n("design:type",typeof Record==="undefined"?Object:Record)],u.prototype,"attributes",void 0),e([b(()=>h,{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)],u.prototype,"tags",void 0),e([a({name:"is_recurring",type:"boolean",nullable:!0}),n("design:type",Boolean)],u.prototype,"isRecurring",void 0),e([a({name:"is_archived",type:"boolean",nullable:!0}),n("design:type",Boolean)],u.prototype,"isArchived",void 0),e([a({name:"organization_id",type:"varchar",length:25,nullable:!0}),n("design:type",String)],u.prototype,"organizationId",void 0),e([a({name:"recurring_interval",type:"varchar",length:20,nullable:!0}),n("design:type",typeof SubscriptionPeriodType==="undefined"?Object:SubscriptionPeriodType)],u.prototype,"recurringInterval",void 0),e([a({name:"metadata",type:"jsonb",nullable:!0}),n("design:type",typeof Record==="undefined"?Object:Record)],u.prototype,"metadata",void 0),e([a({name:"prices",type:"jsonb",nullable:!0}),n("design:type",Array)],u.prototype,"prices",void 0),e([a({name:"benefits",type:"jsonb",nullable:!0}),n("design:type",Array)],u.prototype,"benefits",void 0),e([a({name:"attached_custom_fields",type:"jsonb",nullable:!0}),n("design:type",Array)],u.prototype,"attachedCustomFields",void 0),u=e([z({name:"payment_products"})],u);import{EDiscountDuration as M,EDiscountType as B}from"@ooneex/payment";import{Column as t,Entity as E,JoinTable as x,ManyToMany as T}from"typeorm";class p extends r{}e([t({name:"key",type:"varchar",length:255,nullable:!0,unique:!0}),n("design:type",String)],p.prototype,"key",void 0),e([t({name:"name",type:"varchar",length:255}),n("design:type",String)],p.prototype,"name",void 0),e([t({name:"description",type:"text",nullable:!0}),n("design:type",String)],p.prototype,"description",void 0),e([t({name:"code",type:"varchar",length:50,nullable:!0,unique:!0}),n("design:type",String)],p.prototype,"code",void 0),e([t({name:"type",type:"enum",enum:B}),n("design:type",typeof DiscountType==="undefined"?Object:DiscountType)],p.prototype,"type",void 0),e([t({name:"amount",type:"decimal",precision:10,scale:2}),n("design:type",Number)],p.prototype,"amount",void 0),e([t({name:"currency",type:"varchar",length:3,nullable:!0}),n("design:type",typeof CurrencyCodeType==="undefined"?Object:CurrencyCodeType)],p.prototype,"currency",void 0),e([t({name:"duration",type:"enum",enum:M}),n("design:type",typeof DiscountDurationType==="undefined"?Object:DiscountDurationType)],p.prototype,"duration",void 0),e([t({name:"duration_in_months",type:"int",nullable:!0}),n("design:type",Number)],p.prototype,"durationInMonths",void 0),e([t({name:"start_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],p.prototype,"startAt",void 0),e([t({name:"end_at",type:"timestamptz",nullable:!0}),n("design:type",typeof Date==="undefined"?Object:Date)],p.prototype,"endAt",void 0),e([t({name:"max_uses",type:"int",nullable:!0}),n("design:type",Number)],p.prototype,"maxUses",void 0),e([t({name:"used_count",type:"int",default:0,nullable:!0}),n("design:type",Number)],p.prototype,"usedCount",void 0),e([t({name:"max_redemptions",type:"int",nullable:!0}),n("design:type",Number)],p.prototype,"maxRedemptions",void 0),e([t({name:"redemptions_count",type:"int",default:0,nullable:!0}),n("design:type",Number)],p.prototype,"redemptionsCount",void 0),e([t({name:"is_active",type:"boolean",default:!0,nullable:!0}),n("design:type",Boolean)],p.prototype,"isActive",void 0),e([t({name:"minimum_amount",type:"decimal",precision:10,scale:2,nullable:!0}),n("design:type",Number)],p.prototype,"minimumAmount",void 0),e([T(()=>u,{nullable:!0,eager:!1,cascade:["insert","update"]}),x({name:"payment_discounts_applicable_products",joinColumn:{name:"discount_id",referencedColumnName:"id"},inverseJoinColumn:{name:"product_id",referencedColumnName:"id"}}),n("design:type",Array)],p.prototype,"applicableProducts",void 0),e([T(()=>o,{nullable:!0,eager:!1,cascade:["insert","update"]}),x({name:"payment_discounts_applicable_plans",joinColumn:{name:"discount_id",referencedColumnName:"id"},inverseJoinColumn:{name:"plan_id",referencedColumnName:"id"}}),n("design:type",Array)],p.prototype,"applicablePlans",void 0),e([t({name:"organization_id",type:"varchar",length:25,nullable:!0}),n("design:type",String)],p.prototype,"organizationId",void 0),e([t({name:"metadata",type:"jsonb",nullable:!0}),n("design:type",typeof Record==="undefined"?Object:Record)],p.prototype,"metadata",void 0),p=e([E({name:"payment_discounts"})],p);import{Column as d,Entity as F,JoinTable as f,ManyToMany as g}from"typeorm";class _ extends r{}e([g(()=>p,{nullable:!0,eager:!1,cascade:["insert","update"]}),f({name:"payment_subscriptions_discounts",joinColumn:{name:"subscription_id",referencedColumnName:"id"},inverseJoinColumn:{name:"discount_id",referencedColumnName:"id"}}),n("design:type",Array)],_.prototype,"discounts",void 0),e([g(()=>o,{nullable:!0,eager:!1,cascade:["insert","update"]}),f({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([g(()=>m,{nullable:!0,eager:!1,cascade:["insert","update"]}),f({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([F({name:"payment_subscriptions"})],_);
3
+ export{m as _,l as $,o as aa,u as ba,p as ca,_ as da};
4
+
5
+ //# debugId=880640A561DDDA8364756E2164756E21
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/entities/payment/PaymentCreditEntity.ts", "src/entities/payment/PaymentFeatureEntity.ts", "src/entities/payment/PaymentPlanEntity.ts", "src/entities/payment/PaymentProductEntity.ts", "src/entities/payment/PaymentDiscountEntity.ts", "src/entities/payment/PaymentSubscriptionEntity.ts"],
4
+ "sourcesContent": [
5
+ "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",
6
+ "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",
7
+ "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",
8
+ "import type { ICategory } from \"@ooneex/category\";\nimport type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport type { IImage } from \"@ooneex/image\";\nimport type { BenefitType, CustomFieldType, IProduct, PriceType, SubscriptionPeriodType } 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: \"key\", type: \"varchar\", length: 255, nullable: true, unique: true })\n key?: string;\n\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, nullable: true })\n currency?: CurrencyCodeType;\n\n @Column({\n name: \"price\",\n type: \"decimal\",\n precision: 10,\n scale: 2,\n nullable: true,\n })\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 @Column({ name: \"is_recurring\", type: \"boolean\", nullable: true })\n isRecurring?: boolean;\n\n @Column({ name: \"is_archived\", type: \"boolean\", nullable: true })\n isArchived?: boolean;\n\n @Column({\n name: \"organization_id\",\n type: \"varchar\",\n length: 25,\n nullable: true,\n })\n organizationId?: string;\n\n @Column({ name: \"recurring_interval\", type: \"varchar\", length: 20, nullable: true })\n recurringInterval?: SubscriptionPeriodType;\n\n @Column({ name: \"metadata\", type: \"jsonb\", nullable: true })\n metadata?: Record<string, string | number | boolean>;\n\n @Column({ name: \"prices\", type: \"jsonb\", nullable: true })\n prices?: PriceType[];\n\n @Column({ name: \"benefits\", type: \"jsonb\", nullable: true })\n benefits?: BenefitType[];\n\n @Column({ name: \"attached_custom_fields\", type: \"jsonb\", nullable: true })\n attachedCustomFields?: CustomFieldType[];\n}\n",
9
+ "import type { CurrencyCodeType } from \"@ooneex/currencies\";\nimport {\n type DiscountDurationType,\n type DiscountType,\n EDiscountDuration,\n EDiscountType,\n type IDiscount,\n type IPlan,\n type IProduct,\n} 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_discounts\",\n})\nexport class PaymentDiscountEntity extends BaseEntity implements IDiscount {\n @Column({ name: \"key\", type: \"varchar\", length: 255, nullable: true, unique: true })\n key?: string;\n\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: \"code\", type: \"varchar\", length: 50, nullable: true, unique: true })\n code?: string;\n\n @Column({\n name: \"type\",\n type: \"enum\",\n enum: EDiscountType,\n })\n type: DiscountType;\n\n @Column({ name: \"amount\", type: \"decimal\", precision: 10, scale: 2 })\n amount: number;\n\n @Column({ name: \"currency\", type: \"varchar\", length: 3, nullable: true })\n currency?: CurrencyCodeType;\n\n @Column({\n name: \"duration\",\n type: \"enum\",\n enum: EDiscountDuration,\n })\n duration: DiscountDurationType;\n\n @Column({ name: \"duration_in_months\", type: \"int\", nullable: true })\n durationInMonths?: 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: \"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: \"max_redemptions\", type: \"int\", nullable: true })\n maxRedemptions?: number;\n\n @Column({ name: \"redemptions_count\", type: \"int\", default: 0, nullable: true })\n redemptionsCount?: number;\n\n @Column({ name: \"is_active\", type: \"boolean\", default: true, nullable: true })\n isActive?: boolean;\n\n @Column({ name: \"minimum_amount\", type: \"decimal\", precision: 10, scale: 2, nullable: true })\n minimumAmount?: number;\n\n @ManyToMany(() => PaymentProductEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_discounts_applicable_products\",\n joinColumn: { name: \"discount_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_discounts_applicable_plans\",\n joinColumn: { name: \"discount_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"plan_id\", referencedColumnName: \"id\" },\n })\n applicablePlans?: IPlan[];\n\n @Column({\n name: \"organization_id\",\n type: \"varchar\",\n length: 25,\n nullable: true,\n })\n organizationId?: string;\n\n @Column({ name: \"metadata\", type: \"jsonb\", nullable: true })\n metadata?: Record<string, string | number | boolean>;\n}\n",
10
+ "import type { ICredit, IDiscount, IPlan, ISubscription } from \"@ooneex/payment\";\nimport { Column, Entity, JoinTable, ManyToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { PaymentCreditEntity } from \"./PaymentCreditEntity\";\nimport { PaymentDiscountEntity } from \"./PaymentDiscountEntity\";\nimport { PaymentPlanEntity } from \"./PaymentPlanEntity\";\n\n@Entity({\n name: \"payment_subscriptions\",\n})\nexport class PaymentSubscriptionEntity extends BaseEntity implements Omit<ISubscription, \"isActive\"> {\n @ManyToMany(() => PaymentDiscountEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinTable({\n name: \"payment_subscriptions_discounts\",\n joinColumn: { name: \"subscription_id\", referencedColumnName: \"id\" },\n inverseJoinColumn: { name: \"discount_id\", referencedColumnName: \"id\" },\n })\n discounts?: IDiscount[];\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": ";6OAEA,WAAS,MAAQ,UAMV,AAAM,UAA4B,CAA8B,CAYvE,CAVE,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,UAAW,GAAI,MAAO,CAAE,CAAC,EACrE,yBAFW,EAEX,4BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,OAAQ,EAAG,SAAU,EAAK,CAAC,EACxE,gFALW,EAKX,6BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,cAAe,SAAU,EAAK,CAAC,EACnE,wDARW,EAQX,8BAGA,GADC,EAAO,CAAE,KAAM,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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": "880640A561DDDA8364756E2164756E21",
14
+ "names": []
15
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Ba as C}from"./chunk-p22keb3y.js";import{Ga as a}from"./chunk-xrqhqgen.js";import{Ha as e,Ja as t}from"./chunk-59vwmfpm.js";import{Column as r,Entity as z,JoinColumn as E,ManyToOne as V,OneToMany as c}from"typeorm";class n extends a{}e([r({name:"email",type:"varchar",length:255,unique:!0}),t("design:type",String)],n.prototype,"email",void 0),e([r({name:"roles",type:"simple-array"}),t("design:type",Array)],n.prototype,"roles",void 0),e([r({name:"key",type:"varchar",length:255,unique:!0,nullable:!0}),t("design:type",String)],n.prototype,"key",void 0),e([r({name:"name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"name",void 0),e([r({name:"last_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"lastName",void 0),e([r({name:"first_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"firstName",void 0),e([r({name:"username",type:"varchar",length:100,unique:!0,nullable:!0}),t("design:type",String)],n.prototype,"username",void 0),e([V(()=>C,{nullable:!0,eager:!1,cascade:["insert","update"]}),E({name:"avatar_id"}),t("design:type",typeof IImage==="undefined"?Object:IImage)],n.prototype,"avatar",void 0),e([r({name:"bio",type:"text",nullable:!0}),t("design:type",String)],n.prototype,"bio",void 0),e([r({name:"phone",type:"varchar",length:20,nullable:!0}),t("design:type",String)],n.prototype,"phone",void 0),e([r({name:"birth_date",type:"date",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"birthDate",void 0),e([r({name:"timezone",type:"varchar",length:50,nullable:!0}),t("design:type",String)],n.prototype,"timezone",void 0),e([r({name:"is_email_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],n.prototype,"isEmailVerified",void 0),e([r({name:"is_phone_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],n.prototype,"isPhoneVerified",void 0),e([r({name:"last_active_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"lastActiveAt",void 0),e([r({name:"email_verified_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"emailVerifiedAt",void 0),e([r({name:"phone_verified_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"phoneVerifiedAt",void 0),e([r({name:"last_login_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"lastLoginAt",void 0),e([r({name:"password_changed_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],n.prototype,"passwordChangedAt",void 0),e([r({name:"two_factor_enabled",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],n.prototype,"twoFactorEnabled",void 0),e([r({name:"two_factor_secret",type:"varchar",length:255,nullable:!0}),t("design:type",String)],n.prototype,"twoFactorSecret",void 0),e([r({name:"recovery_tokens",type:"simple-array",nullable:!0}),t("design:type",Array)],n.prototype,"recoveryTokens",void 0),e([c("SessionEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],n.prototype,"sessions",void 0),e([c("AccountEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],n.prototype,"accounts",void 0),e([c("VerificationEntity","user",{nullable:!0,eager:!1,cascade:["insert","update"]}),t("design:type",Array)],n.prototype,"verifications",void 0),n=e([z({name:"users"})],n);import{EAccountType as D}from"@ooneex/user";import{Column as l,Entity as M,JoinColumn as O,ManyToOne as J}from"typeorm";class g extends a{}e([l({name:"provider",type:"varchar",length:100,nullable:!0}),t("design:type",String)],g.prototype,"provider",void 0),e([l({name:"provider_account_id",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"providerAccountId",void 0),e([l({name:"type",type:"enum",enum:D}),t("design:type",typeof D==="undefined"?Object:D)],g.prototype,"type",void 0),e([l({name:"password",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"password",void 0),e([l({name:"access_token",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"accessToken",void 0),e([l({name:"access_token_expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],g.prototype,"accessTokenExpiresAt",void 0),e([l({name:"refresh_token",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"refreshToken",void 0),e([l({name:"refresh_token_expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],g.prototype,"refreshTokenExpiresAt",void 0),e([l({name:"expires_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],g.prototype,"expiresAt",void 0),e([l({name:"token_type",type:"varchar",length:50,nullable:!0}),t("design:type",String)],g.prototype,"tokenType",void 0),e([l({name:"scope",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"scope",void 0),e([l({name:"id_token",type:"text",nullable:!0}),t("design:type",String)],g.prototype,"idToken",void 0),e([l({name:"session_state",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"sessionState",void 0),e([l({name:"email",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"email",void 0),e([l({name:"email_verified",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],g.prototype,"emailVerified",void 0),e([l({name:"name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],g.prototype,"name",void 0),e([l({name:"picture",type:"varchar",length:500,nullable:!0}),t("design:type",String)],g.prototype,"picture",void 0),e([l({name:"profile",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],g.prototype,"profile",void 0),e([J(()=>n,(m)=>m.accounts,{nullable:!0,eager:!1,onDelete:"CASCADE"}),O({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],g.prototype,"user",void 0),g=e([M({name:"accounts"})],g);import{Column as s,Entity as R,JoinColumn as S,ManyToOne as q}from"typeorm";class b extends a{}e([s({name:"token",type:"varchar",length:255,unique:!0}),t("design:type",String)],b.prototype,"token",void 0),e([s({name:"refresh_token",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"refreshToken",void 0),e([s({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],b.prototype,"userAgent",void 0),e([s({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],b.prototype,"ipAddress",void 0),e([s({name:"device_type",type:"varchar",length:50,nullable:!0}),t("design:type",String)],b.prototype,"deviceType",void 0),e([s({name:"device_name",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"deviceName",void 0),e([s({name:"browser",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"browser",void 0),e([s({name:"operating_system",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"operatingSystem",void 0),e([s({name:"location",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"location",void 0),e([s({name:"is_active",type:"boolean",default:!0}),t("design:type",Boolean)],b.prototype,"isActive",void 0),e([s({name:"expires_at",type:"timestamptz"}),t("design:type",typeof Date==="undefined"?Object:Date)],b.prototype,"expiresAt",void 0),e([s({name:"last_access_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],b.prototype,"lastAccessAt",void 0),e([s({name:"revoked_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],b.prototype,"revokedAt",void 0),e([s({name:"revoked_reason",type:"varchar",length:255,nullable:!0}),t("design:type",String)],b.prototype,"revokedReason",void 0),e([q(()=>n,(m)=>m.sessions,{nullable:!0,eager:!1,onDelete:"CASCADE"}),S({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],b.prototype,"user",void 0),b=e([R({name:"sessions"})],b);import{Column as d,Entity as j,JoinColumn as N,ManyToOne as F}from"typeorm";class f extends a{}e([F(()=>n,{nullable:!0,eager:!1}),N({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],f.prototype,"user",void 0),e([d({name:"user_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],f.prototype,"userId",void 0),e([d({name:"blocked_by",type:"varchar",length:255,nullable:!0}),t("design:type",String)],f.prototype,"blockedBy",void 0),e([d({name:"blocked_by_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],f.prototype,"blockedById",void 0),e([d({name:"reason",type:"text",nullable:!0}),t("design:type",String)],f.prototype,"reason",void 0),f=e([j({name:"users_blocked"})],f);import{Column as h,Entity as L,JoinColumn as G,ManyToOne as H}from"typeorm";class _ extends a{}e([H(()=>n,{nullable:!0,eager:!1}),G({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],_.prototype,"user",void 0),e([h({name:"user_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],_.prototype,"userId",void 0),e([h({name:"followed_by",type:"varchar",length:255,nullable:!0}),t("design:type",String)],_.prototype,"followedBy",void 0),e([h({name:"followed_by_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],_.prototype,"followedById",void 0),_=e([L({name:"users_followed"})],_);import{EVerificationType as w}from"@ooneex/user";import{Column as o,Entity as K,JoinColumn as P,ManyToOne as Q}from"typeorm";class p extends a{}e([o({name:"email",type:"varchar",length:255,nullable:!0}),t("design:type",String)],p.prototype,"email",void 0),e([o({name:"phone",type:"varchar",length:20,nullable:!0}),t("design:type",String)],p.prototype,"phone",void 0),e([o({name:"token",type:"varchar",length:255,unique:!0}),t("design:type",String)],p.prototype,"token",void 0),e([o({name:"type",type:"enum",enum:w}),t("design:type",typeof w==="undefined"?Object:w)],p.prototype,"type",void 0),e([o({name:"code",type:"varchar",length:10,nullable:!0}),t("design:type",String)],p.prototype,"code",void 0),e([o({name:"is_used",type:"boolean",default:!1}),t("design:type",Boolean)],p.prototype,"isUsed",void 0),e([o({name:"used_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],p.prototype,"usedAt",void 0),e([o({name:"expires_at",type:"timestamptz"}),t("design:type",typeof Date==="undefined"?Object:Date)],p.prototype,"expiresAt",void 0),e([o({name:"attempts_count",type:"int",default:0}),t("design:type",Number)],p.prototype,"attemptsCount",void 0),e([o({name:"max_attempts",type:"int",default:5}),t("design:type",Number)],p.prototype,"maxAttempts",void 0),e([o({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],p.prototype,"ipAddress",void 0),e([o({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],p.prototype,"userAgent",void 0),e([o({name:"metadata",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],p.prototype,"metadata",void 0),e([o({name:"description",type:"text",nullable:!0}),t("design:type",String)],p.prototype,"description",void 0),e([Q(()=>n,(m)=>m.verifications,{nullable:!0,eager:!1,onDelete:"CASCADE"}),P({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],p.prototype,"user",void 0),p=e([K({name:"verifications"})],p);import{EProfileUpdateStatus as T}from"@ooneex/user";import{Column as i,Entity as W,JoinColumn as U,ManyToOne as B}from"typeorm";class v extends a{}e([i({name:"changed_fields",type:"simple-array"}),t("design:type",Array)],v.prototype,"changedFields",void 0),e([i({name:"previous_values",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],v.prototype,"previousValues",void 0),e([i({name:"new_values",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],v.prototype,"newValues",void 0),e([i({name:"update_reason",type:"varchar",length:255,nullable:!0}),t("design:type",String)],v.prototype,"updateReason",void 0),e([i({name:"ip_address",type:"inet",nullable:!0}),t("design:type",String)],v.prototype,"ipAddress",void 0),e([i({name:"user_agent",type:"text",nullable:!0}),t("design:type",String)],v.prototype,"userAgent",void 0),e([i({name:"requires_verification",type:"boolean",default:!1,nullable:!0}),t("design:type",Boolean)],v.prototype,"requiresVerification",void 0),e([i({name:"status",type:"enum",enum:T}),t("design:type",typeof T==="undefined"?Object:T)],v.prototype,"status",void 0),e([i({name:"applied_at",type:"timestamptz",nullable:!0}),t("design:type",typeof Date==="undefined"?Object:Date)],v.prototype,"appliedAt",void 0),e([i({name:"metadata",type:"jsonb",nullable:!0}),t("design:type",typeof Record==="undefined"?Object:Record)],v.prototype,"metadata",void 0),e([i({name:"description",type:"text",nullable:!0}),t("design:type",String)],v.prototype,"description",void 0),e([B(()=>n,{nullable:!0,eager:!1,onDelete:"CASCADE"}),U({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],v.prototype,"user",void 0),e([B(()=>p,{nullable:!0,eager:!1}),U({name:"verification_id"}),t("design:type",typeof IVerification==="undefined"?Object:IVerification)],v.prototype,"verification",void 0),v=e([W({name:"user_profile_updates"})],v);import{Column as y,Entity as X,JoinColumn as Y,ManyToOne as Z}from"typeorm";class I extends a{}e([Z(()=>n,{nullable:!0,eager:!1}),Y({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],I.prototype,"user",void 0),e([y({name:"user_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],I.prototype,"userId",void 0),e([y({name:"reason",type:"varchar",length:255}),t("design:type",String)],I.prototype,"reason",void 0),e([y({name:"description",type:"text",nullable:!0}),t("design:type",String)],I.prototype,"description",void 0),e([y({name:"reported_by",type:"varchar",length:255,nullable:!0}),t("design:type",String)],I.prototype,"reportedBy",void 0),e([y({name:"reported_by_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],I.prototype,"reportedById",void 0),I=e([X({name:"users_reports"})],I);import{Column as u,Entity as $,JoinColumn as ee,ManyToOne as te}from"typeorm";class x extends a{}e([te(()=>n,{nullable:!0,eager:!1}),ee({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],x.prototype,"user",void 0),e([u({name:"user_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],x.prototype,"userId",void 0),e([u({name:"followers_count",type:"int",default:0,nullable:!0}),t("design:type",Number)],x.prototype,"followersCount",void 0),e([u({name:"following_count",type:"int",default:0,nullable:!0}),t("design:type",Number)],x.prototype,"followingCount",void 0),e([u({name:"blocked_count",type:"int",default:0,nullable:!0}),t("design:type",Number)],x.prototype,"blockedCount",void 0),e([u({name:"views_count",type:"int",default:0,nullable:!0}),t("design:type",Number)],x.prototype,"viewsCount",void 0),e([u({name:"reports_count",type:"int",default:0,nullable:!0}),t("design:type",Number)],x.prototype,"reportsCount",void 0),x=e([$({name:"users_stats"})],x);import{Column as k,Entity as re,JoinColumn as ne,ManyToOne as ae}from"typeorm";class A extends a{}e([ae(()=>n,{nullable:!0,eager:!1}),ne({name:"user_id"}),t("design:type",typeof IUser==="undefined"?Object:IUser)],A.prototype,"user",void 0),e([k({name:"user_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],A.prototype,"userId",void 0),e([k({name:"viewed_by",type:"varchar",length:255,nullable:!0}),t("design:type",String)],A.prototype,"viewedBy",void 0),e([k({name:"viewed_by_id",type:"varchar",length:25,nullable:!0}),t("design:type",String)],A.prototype,"viewedById",void 0),A=e([re({name:"users_viewed"})],A);
3
+ export{n as ra,g as sa,b as ta,f as ua,_ as va,p as wa,v as xa,I as ya,x as za,A as Aa};
4
+
5
+ //# debugId=BC025CD893D304FF64756E2164756E21
@@ -2,7 +2,7 @@
2
2
  "version": 3,
3
3
  "sources": ["src/entities/user/UserEntity.ts", "src/entities/user/AccountEntity.ts", "src/entities/user/SessionEntity.ts", "src/entities/user/UserBlockedEntity.ts", "src/entities/user/UserFollowedEntity.ts", "src/entities/user/VerificationEntity.ts", "src/entities/user/UserProfileUpdateEntity.ts", "src/entities/user/UserReportEntity.ts", "src/entities/user/UserStatEntity.ts", "src/entities/user/UserViewedEntity.ts"],
4
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",
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: \"key\", type: \"varchar\", length: 255, unique: true, nullable: true })\n key?: string;\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
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
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
8
  "import type { IUser, IUserBlocked } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"users_blocked\",\n})\nexport class UserBlockedEntity extends BaseEntity implements IUserBlocked {\n @ManyToOne(() => UserEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n\n @Column({ name: \"user_id\", type: \"varchar\", length: 25, nullable: true })\n userId?: string;\n\n @Column({ name: \"blocked_by\", type: \"varchar\", length: 255, nullable: true })\n blockedBy?: string;\n\n @Column({ name: \"blocked_by_id\", type: \"varchar\", length: 25, nullable: true })\n blockedById?: string;\n\n @Column({ name: \"reason\", type: \"text\", nullable: true })\n reason?: string;\n}\n",
@@ -13,7 +13,7 @@
13
13
  "import type { IUser, IUserStat } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"users_stats\",\n})\nexport class UserStatEntity extends BaseEntity implements IUserStat {\n @ManyToOne(() => UserEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n\n @Column({ name: \"user_id\", type: \"varchar\", length: 25, nullable: true })\n userId?: string;\n\n @Column({ name: \"followers_count\", type: \"int\", default: 0, nullable: true })\n followersCount?: number;\n\n @Column({ name: \"following_count\", type: \"int\", default: 0, nullable: true })\n followingCount?: number;\n\n @Column({ name: \"blocked_count\", type: \"int\", default: 0, nullable: true })\n blockedCount?: number;\n\n @Column({ name: \"views_count\", type: \"int\", default: 0, nullable: true })\n viewsCount?: number;\n\n @Column({ name: \"reports_count\", type: \"int\", default: 0, nullable: true })\n reportsCount?: number;\n}\n",
14
14
  "import type { IUser, IUserViewed } from \"@ooneex/user\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { UserEntity } from \"./UserEntity\";\n\n@Entity({\n name: \"users_viewed\",\n})\nexport class UserViewedEntity extends BaseEntity implements IUserViewed {\n @ManyToOne(() => UserEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"user_id\" })\n user?: IUser;\n\n @Column({ name: \"user_id\", type: \"varchar\", length: 25, nullable: true })\n userId?: string;\n\n @Column({ name: \"viewed_by\", type: \"varchar\", length: 255, nullable: true })\n viewedBy?: string;\n\n @Column({ name: \"viewed_by_id\", type: \"varchar\", length: 25, nullable: true })\n viewedById?: string;\n}\n"
15
15
  ],
16
- "mappings": ";+IAGA,WAAS,MAAQ,gBAAQ,eAAY,eAAW,gBAOzC,MAAM,UAAmB,CAA4B,CAyF5D,CAvFE,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,UAAW,OAAQ,IAAK,OAAQ,EAAK,CAAC,EACrE,yBAFW,EAEX,0BAGA,GADC,EAAO,CAAE,KAAM,QAAS,KAAM,cAAe,CAAC,EAC/C,wBALW,EAKX,0BAGA,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EACtE,yBARW,EAQX,yBAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EAC3E,yBAXW,EAWX,6BAGA,GADC,EAAO,CAAE,KAAM,aAAc,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EAC5E,yBAdW,EAcX,8BAGA,GADC,EAAO,CAAE,KAAM,WAAY,KAAM,UAAW,OAAQ,IAAK,OAAQ,GAAM,SAAU,EAAK,CAAC,EACxF,yBAjBW,EAiBX,6BAQA,GANC,EAAU,IAAM,EAAa,CAC5B,SAAU,GACV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1E,yBAlBW,EAkBX,iCAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,MAAO,QAAS,EAAG,SAAU,EAAK,CAAC,EACxE,yBArBW,EAqBX,+BAGA,GADC,EAAO,CAAE,KAAM,gBAAiB,KAAM,MAAO,QAAS,EAAG,SAAU,EAAK,CAAC,EAC1E,yBAxBW,EAwBX,iCAxBW,EAAN,GAHN,EAAO,CACN,KAAM,aACR,CAAC,GACY,GCPb,iBAAS,YAAQ,iBAAQ,gBAAY,iBAO9B,MAAM,UAAyB,CAAkC,CAgBxE,CAVE,GALC,GAAU,IAAM,EAAY,CAC3B,SAAU,GACV,MAAO,EACT,CAAC,EACA,GAAW,CAAE,KAAM,SAAU,CAAC,EAC/B,0DANW,EAMX,yBAGA,GADC,EAAO,CAAE,KAAM,UAAW,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EACxE,yBATW,EASX,2BAGA,GADC,EAAO,CAAE,KAAM,YAAa,KAAM,UAAW,OAAQ,IAAK,SAAU,EAAK,CAAC,EAC3E,yBAZW,EAYX,6BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EAC7E,yBAfW,EAeX,+BAfW,EAAN,GAHN,GAAO,CACN,KAAM,cACR,CAAC,GACY",
17
+ "debugId": "BC025CD893D304FF64756E2164756E21",
18
18
  "names": []
19
19
  }
@@ -1,5 +1,5 @@
1
1
  import { CurrencyCodeType } from "@ooneex/currencies";
2
- import { EDiscountType, ICoupon, IPlan, IProduct } from "@ooneex/payment";
2
+ import { ICredit } from "@ooneex/payment";
3
3
  import { LocaleType } from "@ooneex/translation";
4
4
  import { IBase } from "@ooneex/types";
5
5
  declare abstract class BaseEntity implements IBase {
@@ -15,29 +15,36 @@ declare abstract class BaseEntity implements IBase {
15
15
  updatedAt?: Date;
16
16
  deletedAt?: Date;
17
17
  }
18
- declare class PaymentCouponEntity extends BaseEntity implements ICoupon {
19
- code: string;
20
- name?: string;
21
- description?: string;
22
- discountType: EDiscountType;
23
- discountValue: number;
18
+ declare class PaymentCreditEntity extends BaseEntity implements ICredit {
19
+ balance: number;
24
20
  currency?: CurrencyCodeType;
25
- maxUses?: number;
26
- usedCount?: number;
21
+ expiresAt?: Date;
22
+ description?: string;
23
+ }
24
+ import { CurrencyCodeType as CurrencyCodeType2 } from "@ooneex/currencies";
25
+ import { DiscountDurationType, DiscountType, IDiscount, IPlan, IProduct } from "@ooneex/payment";
26
+ declare class PaymentDiscountEntity extends BaseEntity implements IDiscount {
27
+ key?: string;
28
+ name: string;
29
+ description?: string;
30
+ code?: string;
31
+ type: DiscountType;
32
+ amount: number;
33
+ currency?: CurrencyCodeType2;
34
+ duration: DiscountDurationType;
35
+ durationInMonths?: number;
27
36
  startAt?: Date;
28
37
  endAt?: Date;
38
+ maxUses?: number;
39
+ usedCount?: number;
40
+ maxRedemptions?: number;
41
+ redemptionsCount?: number;
29
42
  isActive?: boolean;
30
43
  minimumAmount?: number;
31
44
  applicableProducts?: IProduct[];
32
45
  applicablePlans?: IPlan[];
33
- }
34
- import { CurrencyCodeType as CurrencyCodeType2 } from "@ooneex/currencies";
35
- import { ICredit } from "@ooneex/payment";
36
- declare class PaymentCreditEntity extends BaseEntity implements ICredit {
37
- balance: number;
38
- currency?: CurrencyCodeType2;
39
- expiresAt?: Date;
40
- description?: string;
46
+ organizationId?: string;
47
+ metadata?: Record<string, string | number | boolean>;
41
48
  }
42
49
  import { IFeature } from "@ooneex/payment";
43
50
  declare class PaymentFeatureEntity extends BaseEntity implements IFeature {
@@ -62,23 +69,32 @@ declare class PaymentPlanEntity extends BaseEntity implements IPlan2 {
62
69
  import { ICategory } from "@ooneex/category";
63
70
  import { CurrencyCodeType as CurrencyCodeType4 } from "@ooneex/currencies";
64
71
  import { IImage } from "@ooneex/image";
65
- import { IProduct as IProduct2 } from "@ooneex/payment";
72
+ import { BenefitType, CustomFieldType, IProduct as IProduct2, PriceType, SubscriptionPeriodType } from "@ooneex/payment";
66
73
  import { ITag } from "@ooneex/tag";
67
74
  import { ScalarType } from "@ooneex/types";
68
75
  declare class PaymentProductEntity extends BaseEntity implements IProduct2 {
76
+ key?: string;
69
77
  name: string;
70
78
  description?: string;
71
79
  categories?: ICategory[];
72
- currency: CurrencyCodeType4;
73
- price: number;
80
+ currency?: CurrencyCodeType4;
81
+ price?: number;
74
82
  barcode?: string;
75
83
  images?: IImage[];
76
84
  attributes?: Record<string, ScalarType>;
77
85
  tags?: ITag[];
86
+ isRecurring?: boolean;
87
+ isArchived?: boolean;
88
+ organizationId?: string;
89
+ recurringInterval?: SubscriptionPeriodType;
90
+ metadata?: Record<string, string | number | boolean>;
91
+ prices?: PriceType[];
92
+ benefits?: BenefitType[];
93
+ attachedCustomFields?: CustomFieldType[];
78
94
  }
79
- import { ICoupon as ICoupon2, ICredit as ICredit2, IPlan as IPlan3, ISubscription } from "@ooneex/payment";
95
+ import { ICredit as ICredit2, IDiscount as IDiscount2, IPlan as IPlan3, ISubscription } from "@ooneex/payment";
80
96
  declare class PaymentSubscriptionEntity extends BaseEntity implements Omit<ISubscription, "isActive"> {
81
- coupons?: ICoupon2[];
97
+ discounts?: IDiscount2[];
82
98
  plans?: IPlan3[];
83
99
  credits?: ICredit2[];
84
100
  startAt: Date;
@@ -86,4 +102,4 @@ declare class PaymentSubscriptionEntity extends BaseEntity implements Omit<ISubs
86
102
  isTrial?: boolean;
87
103
  isActive?: boolean;
88
104
  }
89
- export { PaymentSubscriptionEntity, PaymentProductEntity, PaymentPlanEntity, PaymentFeatureEntity, PaymentCreditEntity, PaymentCouponEntity };
105
+ export { PaymentSubscriptionEntity, PaymentProductEntity, PaymentPlanEntity, PaymentFeatureEntity, PaymentDiscountEntity, PaymentCreditEntity };
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{$ as o,_ as t,aa as r,ba as e,ca as n,da as m}from"../../../shared/chunk-5tnqjb3n.js";import"../../../shared/chunk-xwe8m6av.js";import"../../../shared/chunk-p22keb3y.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{m as PaymentSubscriptionEntity,r as PaymentProductEntity,o as PaymentPlanEntity,t as PaymentFeatureEntity,n as PaymentCreditEntity,e as PaymentCouponEntity};
2
+ import{$ as r,_ as t,aa as e,ba as n,ca as o,da as m}from"../../../shared/chunk-b668j15v.js";import"../../../shared/chunk-xwe8m6av.js";import"../../../shared/chunk-p22keb3y.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{m as PaymentSubscriptionEntity,n as PaymentProductEntity,e as PaymentPlanEntity,r as PaymentFeatureEntity,o as PaymentDiscountEntity,t as PaymentCreditEntity};
3
3
 
4
- //# debugId=67CC7FE8DCC7E6F464756E2164756E21
4
+ //# debugId=A18F2FE932F3A89264756E2164756E21
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "67CC7FE8DCC7E6F464756E2164756E21",
7
+ "debugId": "A18F2FE932F3A89264756E2164756E21",
8
8
  "names": []
9
9
  }
@@ -68,6 +68,7 @@ import { IAccount as IAccount2, ISession as ISession2, IUser as IUser4, IVerific
68
68
  declare class UserEntity extends BaseEntity implements IUser4 {
69
69
  email: string;
70
70
  roles: ERole[];
71
+ key?: string;
71
72
  name?: string;
72
73
  lastName?: string;
73
74
  firstName?: string;
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Aa as x,ra as t,sa as r,ta as o,ua as e,va as i,wa as n,xa as f,ya as p,za as m}from"../../../shared/chunk-kw4t1san.js";import"../../../shared/chunk-p22keb3y.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{n as VerificationEntity,x as UserViewedEntity,m as UserStatEntity,p as UserReportEntity,f as UserProfileUpdateEntity,i as UserFollowedEntity,t as UserEntity,e as UserBlockedEntity,o as SessionEntity,r as AccountEntity};
2
+ import{Aa as x,ra as t,sa as r,ta as o,ua as e,va as i,wa as n,xa as f,ya as p,za as m}from"../../../shared/chunk-gb0y6wm0.js";import"../../../shared/chunk-p22keb3y.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{n as VerificationEntity,x as UserViewedEntity,m as UserStatEntity,p as UserReportEntity,f as UserProfileUpdateEntity,i as UserFollowedEntity,t as UserEntity,e as UserBlockedEntity,o as SessionEntity,r as AccountEntity};
3
3
 
4
4
  //# debugId=3F1CE85327F3F59664756E2164756E21
@@ -24,7 +24,7 @@ declare class Migration20251225182218190 implements IMigration3 {
24
24
  }
25
25
  import { IMigration as IMigration4, MigrationClassType as MigrationClassType4 } from "@ooneex/migrations";
26
26
  import { TransactionSQL as TransactionSQL4 } from "bun";
27
- declare class Migration20251225182218192 implements IMigration4 {
27
+ declare class Migration20251225182218195 implements IMigration4 {
28
28
  up(tx: TransactionSQL4): Promise<void>;
29
29
  down(tx: TransactionSQL4): Promise<void>;
30
30
  getVersion(): string;
@@ -32,7 +32,7 @@ declare class Migration20251225182218192 implements IMigration4 {
32
32
  }
33
33
  import { IMigration as IMigration5, MigrationClassType as MigrationClassType5 } from "@ooneex/migrations";
34
34
  import { TransactionSQL as TransactionSQL5 } from "bun";
35
- declare class Migration20251225182218195 implements IMigration5 {
35
+ declare class Migration20251225182218197 implements IMigration5 {
36
36
  up(tx: TransactionSQL5): Promise<void>;
37
37
  down(tx: TransactionSQL5): Promise<void>;
38
38
  getVersion(): string;
@@ -40,10 +40,10 @@ declare class Migration20251225182218195 implements IMigration5 {
40
40
  }
41
41
  import { IMigration as IMigration6, MigrationClassType as MigrationClassType6 } from "@ooneex/migrations";
42
42
  import { TransactionSQL as TransactionSQL6 } from "bun";
43
- declare class Migration20251225182218197 implements IMigration6 {
43
+ declare class Migration20260118214514066 implements IMigration6 {
44
44
  up(tx: TransactionSQL6): Promise<void>;
45
45
  down(tx: TransactionSQL6): Promise<void>;
46
46
  getVersion(): string;
47
47
  getDependencies(): MigrationClassType6[];
48
48
  }
49
- export { Migration20251225182218197, Migration20251225182218195, Migration20251225182218192, Migration20251225182218190, Migration20251225182218188, Migration20251225182218185 };
49
+ export { Migration20260118214514066, Migration20251225182218197, Migration20251225182218195, Migration20251225182218190, Migration20251225182218188, Migration20251225182218185 };