@hugo.ye/common 1.0.5 → 1.0.6
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/build/auth/jwt-auth.guard.js +1 -1
- package/build/database/abstract.repository.d.ts +1 -1
- package/build/database/abstract.repository.js +1 -1
- package/build/decorators/current-user.decorator.js +1 -1
- package/build/decorators/role.decorator.js +1 -1
- package/build/models/banner-item.entity.d.ts +1 -1
- package/build/models/banner-item.entity.js +1 -1
- package/build/models/banner.entity.d.ts +1 -1
- package/build/models/banner.entity.js +1 -1
- package/build/models/brand.entity.d.ts +1 -1
- package/build/models/brand.entity.js +1 -1
- package/build/models/campaign-items.entity.d.ts +1 -1
- package/build/models/campaign-items.entity.js +1 -1
- package/build/models/campaigns.entity.d.ts +1 -1
- package/build/models/campaigns.entity.js +1 -1
- package/build/models/category.entity.d.ts +1 -1
- package/build/models/category.entity.js +1 -1
- package/build/models/chat-contacts-apply.entity.d.ts +1 -1
- package/build/models/chat-contacts-apply.entity.js +1 -1
- package/build/models/chat-contacts.entity.d.ts +1 -1
- package/build/models/chat-contacts.entity.js +1 -1
- package/build/models/chat-group-user.entity.d.ts +1 -1
- package/build/models/chat-group-user.entity.js +1 -1
- package/build/models/chat-group.entity.d.ts +1 -1
- package/build/models/chat-group.entity.js +1 -1
- package/build/models/chat-read.entity.d.ts +1 -1
- package/build/models/chat-read.entity.js +1 -1
- package/build/models/chat.entity.d.ts +1 -1
- package/build/models/chat.entity.js +1 -1
- package/build/models/log.entity.d.ts +1 -1
- package/build/models/log.entity.js +1 -1
- package/build/models/member.entity.d.ts +1 -1
- package/build/models/member.entity.js +1 -1
- package/build/models/news.entity.d.ts +1 -1
- package/build/models/news.entity.js +1 -1
- package/build/models/order-item.entity.d.ts +1 -1
- package/build/models/order-item.entity.js +1 -1
- package/build/models/order.entity.d.ts +1 -1
- package/build/models/order.entity.js +1 -1
- package/build/models/page.entity.d.ts +1 -1
- package/build/models/page.entity.js +1 -1
- package/build/models/product-document.entity.d.ts +1 -1
- package/build/models/product-document.entity.js +1 -1
- package/build/models/product-picture.entity.d.ts +1 -1
- package/build/models/product-picture.entity.js +1 -1
- package/build/models/product-sku.entity.d.ts +1 -1
- package/build/models/product-sku.entity.js +1 -1
- package/build/models/product.entity.d.ts +1 -1
- package/build/models/product.entity.js +1 -1
- package/build/models/roles.entity.d.ts +1 -2
- package/build/models/roles.entity.d.ts.map +1 -1
- package/build/models/roles.entity.js +1 -2
- package/build/models/roles.entity.js.map +1 -1
- package/build/models/user-profile.entity.d.ts +1 -1
- package/build/models/user-profile.entity.js +1 -1
- package/build/models/users.entity.d.ts +2 -2
- package/build/models/users.entity.js +2 -2
- package/build/models/visit-logs.entity.d.ts +1 -1
- package/build/models/visit-logs.entity.js +1 -1
- package/build/paginate/abstract.paginate.d.ts +1 -1
- package/build/paginate/abstract.paginate.js +1 -1
- package/build/paginate/dto/banner.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/banner.paginate.dto.js +1 -1
- package/build/paginate/dto/campaign.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/campaign.paginate.dto.js +1 -1
- package/build/paginate/dto/chat-message.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/chat-message.paginate.dto.js +1 -1
- package/build/paginate/dto/filter/banner.filter.d.ts +1 -1
- package/build/paginate/dto/filter/banner.filter.js +1 -1
- package/build/paginate/dto/filter/campaign.filter.d.ts +1 -1
- package/build/paginate/dto/filter/campaign.filter.js +1 -1
- package/build/paginate/dto/filter/chat-message.filter.d.ts +1 -1
- package/build/paginate/dto/filter/chat-message.filter.js +1 -1
- package/build/paginate/dto/filter/log.filter.d.ts +1 -1
- package/build/paginate/dto/filter/log.filter.js +1 -1
- package/build/paginate/dto/filter/member.filter.d.ts +1 -1
- package/build/paginate/dto/filter/member.filter.js +1 -1
- package/build/paginate/dto/filter/news.filter.d.ts +1 -1
- package/build/paginate/dto/filter/news.filter.js +1 -1
- package/build/paginate/dto/filter/order.filter.d.ts +1 -1
- package/build/paginate/dto/filter/order.filter.js +1 -1
- package/build/paginate/dto/filter/page.filter.d.ts +1 -1
- package/build/paginate/dto/filter/page.filter.js +1 -1
- package/build/paginate/dto/filter/product-brand.filter.d.ts +1 -1
- package/build/paginate/dto/filter/product-brand.filter.js +1 -1
- package/build/paginate/dto/filter/product-category.filter.d.ts +1 -1
- package/build/paginate/dto/filter/product-category.filter.js +1 -1
- package/build/paginate/dto/filter/product.filter.d.ts +1 -1
- package/build/paginate/dto/filter/product.filter.js +1 -1
- package/build/paginate/dto/filter/user.filter.d.ts +1 -1
- package/build/paginate/dto/filter/user.filter.js +1 -1
- package/build/paginate/dto/filter/visit-log.filter.d.ts +1 -1
- package/build/paginate/dto/filter/visit-log.filter.js +1 -1
- package/build/paginate/dto/log.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/log.paginate.dto.js +1 -1
- package/build/paginate/dto/member.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/member.paginate.dto.js +1 -1
- package/build/paginate/dto/news.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/news.paginate.dto.js +1 -1
- package/build/paginate/dto/order.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/order.paginate.dto.js +1 -1
- package/build/paginate/dto/page.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/page.paginate.dto.js +1 -1
- package/build/paginate/dto/product-brand.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/product-brand.paginate.dto.js +1 -1
- package/build/paginate/dto/product-category.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/product-category.paginate.dto.js +1 -1
- package/build/paginate/dto/product.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/product.paginate.dto.js +1 -1
- package/build/paginate/dto/user.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/user.paginate.dto.js +1 -1
- package/build/paginate/dto/visit-log.paginate.dto.d.ts +1 -1
- package/build/paginate/dto/visit-log.paginate.dto.js +1 -1
- package/build/paginate/subs/banner-paginate.d.ts +1 -1
- package/build/paginate/subs/banner-paginate.js +1 -1
- package/build/paginate/subs/brand-paginate.d.ts +1 -1
- package/build/paginate/subs/brand-paginate.js +1 -1
- package/build/paginate/subs/campaign-paginate.d.ts +1 -1
- package/build/paginate/subs/campaign-paginate.js +1 -1
- package/build/paginate/subs/category-paginate.d.ts +1 -1
- package/build/paginate/subs/category-paginate.js +1 -1
- package/build/paginate/subs/chat-paginate.d.ts +1 -1
- package/build/paginate/subs/chat-paginate.js +1 -1
- package/build/paginate/subs/log-paginate.d.ts +1 -1
- package/build/paginate/subs/log-paginate.js +1 -1
- package/build/paginate/subs/members-paginate.d.ts +1 -1
- package/build/paginate/subs/members-paginate.js +1 -1
- package/build/paginate/subs/news-paginate.d.ts +1 -1
- package/build/paginate/subs/news-paginate.js +1 -1
- package/build/paginate/subs/order-paginate.d.ts +1 -1
- package/build/paginate/subs/order-paginate.js +1 -1
- package/build/paginate/subs/page-paginate.d.ts +1 -1
- package/build/paginate/subs/page-paginate.js +1 -1
- package/build/paginate/subs/product-paginate.d.ts +1 -1
- package/build/paginate/subs/product-paginate.js +1 -1
- package/build/paginate/subs/users-paginate.d.ts +1 -1
- package/build/paginate/subs/users-paginate.js +1 -1
- package/build/paginate/subs/visit-logs-paginate.d.ts +1 -1
- package/build/paginate/subs/visit-logs-paginate.js +1 -1
- package/package.json +8 -7
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
var JwtAuthGuard_1;
|
|
14
14
|
import { Logger, Inject, UnauthorizedException } from '@nestjs/common';
|
|
15
|
-
import { AUTH_PATTERN, AUTH_SERVICE, RoleEntity } from '
|
|
15
|
+
import { AUTH_PATTERN, AUTH_SERVICE, RoleEntity } from '../index.js';
|
|
16
16
|
import { ClientProxy } from '@nestjs/microservices';
|
|
17
17
|
import { Reflector } from '@nestjs/core';
|
|
18
18
|
import { Observable, tap, map, of, catchError } from 'rxjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from "@nestjs/common";
|
|
2
|
-
import { AbstractEntity } from "
|
|
2
|
+
import { AbstractEntity } from "../index.js";
|
|
3
3
|
import { EntityManager, Repository, type DeepPartial, type FindOptionsRelations, type FindOptionsWhere } from "typeorm";
|
|
4
4
|
import type { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity.js";
|
|
5
5
|
export declare abstract class AbstractRepository<T extends AbstractEntity<T>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createParamDecorator } from "@nestjs/common";
|
|
2
|
-
import { UserEntity } from "
|
|
2
|
+
import { UserEntity } from "../index.js";
|
|
3
3
|
function getCurrentUser(context) {
|
|
4
4
|
if (context.getType() === 'http') {
|
|
5
5
|
const user = context.switchToHttp().getRequest().user;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SetMetadata, createParamDecorator, UnauthorizedException } from "@nestjs/common";
|
|
2
|
-
import { RoleEntity } from "
|
|
2
|
+
import { RoleEntity } from "../index.js";
|
|
3
3
|
export const Visitor = (...roles) => SetMetadata('roles', roles);
|
|
4
4
|
export const VerifyRoles = createParamDecorator((roles, context) => {
|
|
5
5
|
const user = context.getType() === 'http' ? context.switchToHttp().getRequest().user : (context.getArgs()[2].req.headers?.user ? JSON.parse(context.getArgs()[2].req.headers?.user) : null);
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, BannerEntity } from "
|
|
12
|
+
import { AbstractEntity, BannerEntity } from "../index.js";
|
|
13
13
|
let BannerItemEntity = class BannerItemEntity extends AbstractEntity {
|
|
14
14
|
picture;
|
|
15
15
|
title;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, JoinTable, OneToMany } from "typeorm";
|
|
12
|
-
import { AbstractEntity, BannerItemEntity } from "
|
|
12
|
+
import { AbstractEntity, BannerItemEntity } from "../index.js";
|
|
13
13
|
let BannerEntity = class BannerEntity extends AbstractEntity {
|
|
14
14
|
title;
|
|
15
15
|
linkCode;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, ProductEntity } from "
|
|
10
|
+
import { AbstractEntity, ProductEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, JoinTable, OneToMany } from "typeorm";
|
|
13
13
|
let BrandEntity = class BrandEntity extends AbstractEntity {
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
11
|
-
import { CampaignEntity, AbstractEntity } from "
|
|
11
|
+
import { CampaignEntity, AbstractEntity } from "../index.js";
|
|
12
12
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
13
13
|
let CampaignItemEntity = class CampaignItemEntity extends AbstractEntity {
|
|
14
14
|
name;
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, Index, JoinTable, OneToMany } from "typeorm";
|
|
11
|
-
import { CampaignItemEntity, AbstractEntity } from "
|
|
11
|
+
import { CampaignItemEntity, AbstractEntity } from "../index.js";
|
|
12
12
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
13
13
|
let CampaignEntity = class CampaignEntity extends AbstractEntity {
|
|
14
14
|
title;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, ProductEntity } from "
|
|
10
|
+
import { AbstractEntity, ProductEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, JoinTable, OneToMany } from "typeorm";
|
|
13
13
|
let CategoryEntity = class CategoryEntity extends AbstractEntity {
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, Index } from "typeorm";
|
|
12
|
-
import { AbstractEntity } from "
|
|
12
|
+
import { AbstractEntity } from "../index.js";
|
|
13
13
|
let ChatContactsApplyEntity = class ChatContactsApplyEntity extends AbstractEntity {
|
|
14
14
|
userId; // 被申请人Id
|
|
15
15
|
applyId; // 申请人Id
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, UserEntity } from "
|
|
12
|
+
import { AbstractEntity, UserEntity } from "../index.js";
|
|
13
13
|
let ChatContactsEntity = class ChatContactsEntity extends AbstractEntity {
|
|
14
14
|
contactsId;
|
|
15
15
|
createdDate;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity } from "typeorm";
|
|
12
|
-
import { AbstractEntity } from "
|
|
12
|
+
import { AbstractEntity } from "../index.js";
|
|
13
13
|
let ChatGroupUserEntity = class ChatGroupUserEntity extends AbstractEntity {
|
|
14
14
|
groupId;
|
|
15
15
|
userId;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, JoinTable, ManyToMany, OneToMany } from "typeorm";
|
|
12
|
-
import { AbstractEntity, ChatEntity, UserEntity } from "
|
|
12
|
+
import { AbstractEntity, ChatEntity, UserEntity } from "../index.js";
|
|
13
13
|
let ChatGroupEntity = class ChatGroupEntity extends AbstractEntity {
|
|
14
14
|
name;
|
|
15
15
|
count; // 群组人数
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, ChatEntity } from "
|
|
12
|
+
import { AbstractEntity, ChatEntity } from "../index.js";
|
|
13
13
|
let ChatReadEntity = class ChatReadEntity extends AbstractEntity {
|
|
14
14
|
userId;
|
|
15
15
|
createdDate;
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, JoinTable, ManyToOne, OneToMany, OneToOne } from "typeorm";
|
|
11
|
-
import { AbstractEntity, ChatReadEntity, ChatGroupEntity } from "
|
|
11
|
+
import { AbstractEntity, ChatReadEntity, ChatGroupEntity } from "../index.js";
|
|
12
12
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
13
13
|
let ChatEntity = class ChatEntity extends AbstractEntity {
|
|
14
14
|
senderId;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity } from "typeorm";
|
|
12
|
-
import { AbstractEntity } from "
|
|
12
|
+
import { AbstractEntity } from "../index.js";
|
|
13
13
|
let LogEntity = class LogEntity extends AbstractEntity {
|
|
14
14
|
content;
|
|
15
15
|
userId;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, VisitLogEntity } from "
|
|
10
|
+
import { AbstractEntity, VisitLogEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, JoinTable, OneToMany } from "typeorm";
|
|
13
13
|
let MemberEntity = class MemberEntity extends AbstractEntity {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity } from "
|
|
10
|
+
import { AbstractEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity } from "typeorm";
|
|
13
13
|
let NewsEntity = class NewsEntity extends AbstractEntity {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, OrderEntity } from "
|
|
10
|
+
import { AbstractEntity, OrderEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
13
13
|
let OrderItemEntity = class OrderItemEntity extends AbstractEntity {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, OrderItemEntity } from "
|
|
10
|
+
import { AbstractEntity, OrderItemEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, JoinTable, OneToMany } from "typeorm";
|
|
13
13
|
let OrderEntity = class OrderEntity extends AbstractEntity {
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity } from "typeorm";
|
|
12
|
-
import { AbstractEntity } from "
|
|
12
|
+
import { AbstractEntity } from "../index.js";
|
|
13
13
|
let PageEntity = class PageEntity extends AbstractEntity {
|
|
14
14
|
name;
|
|
15
15
|
linkCode;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, ProductEntity } from "
|
|
12
|
+
import { AbstractEntity, ProductEntity } from "../index.js";
|
|
13
13
|
let ProductDocumentEntity = class ProductDocumentEntity extends AbstractEntity {
|
|
14
14
|
originalName;
|
|
15
15
|
size;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, ProductEntity } from "
|
|
10
|
+
import { AbstractEntity, ProductEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
13
13
|
let ProductPictureEntity = class ProductPictureEntity extends AbstractEntity {
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, ProductEntity } from "
|
|
12
|
+
import { AbstractEntity, ProductEntity } from "../index.js";
|
|
13
13
|
let ProductSkuEntity = class ProductSkuEntity extends AbstractEntity {
|
|
14
14
|
picture;
|
|
15
15
|
label;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "
|
|
1
|
+
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "../index.js";
|
|
2
2
|
import { ProductDocumentEntity } from "./product-document.entity.ts";
|
|
3
3
|
import { ProductSkuEntity } from "./product-sku.entity.ts";
|
|
4
4
|
export declare class ProductEntity extends AbstractEntity<ProductEntity> {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "
|
|
10
|
+
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, JoinTable, ManyToOne, OneToMany } from "typeorm";
|
|
13
13
|
import { ProductDocumentEntity } from "./product-document.entity.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity } from "../
|
|
2
|
-
import { UserEntity } from './users.entity.ts';
|
|
1
|
+
import { AbstractEntity, UserEntity } from "../index.js";
|
|
3
2
|
export declare class RoleEntity extends AbstractEntity<RoleEntity> {
|
|
4
3
|
name: string;
|
|
5
4
|
users: UserEntity[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.entity.d.ts","sourceRoot":"","sources":["../../src/models/roles.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"roles.entity.d.ts","sourceRoot":"","sources":["../../src/models/roles.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzD,qBAGa,UAAW,SAAQ,cAAc,CAAC,UAAU,CAAC;IAItD,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,UAAU,EAAE,CAAA;CACtB"}
|
|
@@ -8,8 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
|
-
import { AbstractEntity } from "../
|
|
12
|
-
import { UserEntity } from "./users.entity.js";
|
|
11
|
+
import { AbstractEntity, UserEntity } from "../index.js";
|
|
13
12
|
import { Column, Entity, ManyToMany } from "typeorm";
|
|
14
13
|
let RoleEntity = class RoleEntity extends AbstractEntity {
|
|
15
14
|
name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.entity.js","sourceRoot":"","sources":["../../src/models/roles.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"roles.entity.js","sourceRoot":"","sources":["../../src/models/roles.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK9C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,cAA0B;IAItD,IAAI,CAAS;IAKb,KAAK,CAAc;CACtB,CAAA;AANG;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;wCACK;AAKb;IAHC,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;IAChD,SAAS,CAAC,YAAY,CAAC;IACvB,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3B;AATV,UAAU;IAHtB,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,wBAAwB,CAAC;GACvB,UAAU,CAUtB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
11
|
import { Column, Entity, OneToOne } from "typeorm";
|
|
12
|
-
import { AbstractEntity, UserEntity } from "
|
|
12
|
+
import { AbstractEntity, UserEntity } from "../index.js";
|
|
13
13
|
let UserProfileEntity = class UserProfileEntity extends AbstractEntity {
|
|
14
14
|
name;
|
|
15
15
|
picture;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractEntity, ChatContactsEntity, ChatGroupEntity } from "
|
|
2
|
-
import { RoleEntity, UserProfileEntity } from "
|
|
1
|
+
import { AbstractEntity, ChatContactsEntity, ChatGroupEntity } from "../index.js";
|
|
2
|
+
import { RoleEntity, UserProfileEntity } from "../index.js";
|
|
3
3
|
export declare class UserEntity extends AbstractEntity<UserEntity> {
|
|
4
4
|
email: string;
|
|
5
5
|
password: string;
|
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, ChatContactsEntity, ChatGroupEntity } from "
|
|
10
|
+
import { AbstractEntity, ChatContactsEntity, ChatGroupEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, OneToMany, OneToOne } from "typeorm";
|
|
13
|
-
import { RoleEntity, UserProfileEntity } from "
|
|
13
|
+
import { RoleEntity, UserProfileEntity } from "../index.js";
|
|
14
14
|
let UserEntity = class UserEntity extends AbstractEntity {
|
|
15
15
|
email;
|
|
16
16
|
password;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractEntity, MemberEntity } from "
|
|
10
|
+
import { AbstractEntity, MemberEntity } from "../index.js";
|
|
11
11
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
12
|
import { Column, Entity, ManyToOne } from "typeorm";
|
|
13
13
|
let VisitLogEntity = class VisitLogEntity extends AbstractEntity {
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
|
-
import { PaginateMeta } from "
|
|
11
|
+
import { PaginateMeta } from "../index.js";
|
|
12
12
|
let AbstractPaginate = class AbstractPaginate {
|
|
13
13
|
meta;
|
|
14
14
|
};
|
|
@@ -11,7 +11,7 @@ import { Field, InputType } from "@nestjs/graphql";
|
|
|
11
11
|
import { AbstractPaginateDto } from "../abstract.paginate.dto.js";
|
|
12
12
|
import { IsObject, IsOptional, ValidateNested } from "class-validator";
|
|
13
13
|
import { Type } from "class-transformer";
|
|
14
|
-
import { BannerFilter } from "
|
|
14
|
+
import { BannerFilter } from "../../index.js";
|
|
15
15
|
let BannerPaginateDto = class BannerPaginateDto extends AbstractPaginateDto {
|
|
16
16
|
filter;
|
|
17
17
|
};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Field, InputType } from "@nestjs/graphql";
|
|
11
11
|
import { IsObject, IsOptional, ValidateNested } from "class-validator";
|
|
12
|
-
import { AbstractPaginateDto, CampaignFilter } from "
|
|
12
|
+
import { AbstractPaginateDto, CampaignFilter } from "../../index.js";
|
|
13
13
|
import { Type } from "class-transformer";
|
|
14
14
|
let CampaignPaginateDto = class CampaignPaginateDto extends AbstractPaginateDto {
|
|
15
15
|
filter;
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Field, InputType } from "@nestjs/graphql";
|
|
11
|
-
import { AbstractPaginateDto, ChatMessageFilter } from "
|
|
11
|
+
import { AbstractPaginateDto, ChatMessageFilter } from "../../index.js";
|
|
12
12
|
import { IsObject, IsOptional, ValidateNested } from "class-validator";
|
|
13
13
|
import { Type } from "class-transformer";
|
|
14
14
|
let ChatMessagePaginateDto = class ChatMessagePaginateDto extends AbstractPaginateDto {
|