@hugo.ye/common 1.0.23 → 1.0.25
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/decorators/index.d.ts +2 -0
- package/build/decorators/index.d.ts.map +1 -1
- package/build/decorators/index.js +2 -0
- package/build/decorators/index.js.map +1 -1
- package/build/models/banner-item.entity.d.ts +3 -2
- package/build/models/banner-item.entity.d.ts.map +1 -1
- package/build/models/banner-item.entity.js +7 -4
- package/build/models/banner-item.entity.js.map +1 -1
- package/build/models/banner.entity.d.ts +2 -1
- package/build/models/banner.entity.d.ts.map +1 -1
- package/build/models/banner.entity.js +8 -4
- package/build/models/banner.entity.js.map +1 -1
- package/build/models/brand.entity.d.ts +2 -1
- package/build/models/brand.entity.d.ts.map +1 -1
- package/build/models/brand.entity.js +7 -4
- package/build/models/brand.entity.js.map +1 -1
- package/build/models/campaign-items.entity.d.ts +2 -1
- package/build/models/campaign-items.entity.d.ts.map +1 -1
- package/build/models/campaign-items.entity.js +2 -1
- package/build/models/campaign-items.entity.js.map +1 -1
- package/build/models/campaigns.entity.d.ts +2 -1
- package/build/models/campaigns.entity.d.ts.map +1 -1
- package/build/models/campaigns.entity.js +2 -1
- package/build/models/campaigns.entity.js.map +1 -1
- package/build/models/category.entity.d.ts +2 -1
- package/build/models/category.entity.d.ts.map +1 -1
- package/build/models/category.entity.js +2 -1
- package/build/models/category.entity.js.map +1 -1
- package/build/models/chat-contacts.entity.d.ts +2 -1
- package/build/models/chat-contacts.entity.d.ts.map +1 -1
- package/build/models/chat-contacts.entity.js +2 -1
- package/build/models/chat-contacts.entity.js.map +1 -1
- package/build/models/chat-read.entity.d.ts +3 -2
- package/build/models/chat-read.entity.d.ts.map +1 -1
- package/build/models/chat-read.entity.js +8 -4
- package/build/models/chat-read.entity.js.map +1 -1
- package/build/models/chat.entity.d.ts +3 -2
- package/build/models/chat.entity.d.ts.map +1 -1
- package/build/models/chat.entity.js +12 -5
- package/build/models/chat.entity.js.map +1 -1
- package/build/models/continent.entity.d.ts +2 -1
- package/build/models/continent.entity.d.ts.map +1 -1
- package/build/models/continent.entity.js +8 -4
- package/build/models/continent.entity.js.map +1 -1
- package/build/models/count-member-daily-amount.entity.d.ts +1 -1
- package/build/models/count-member-daily-amount.entity.d.ts.map +1 -1
- package/build/models/count-member-daily-amount.entity.js +3 -3
- package/build/models/count-member-daily-amount.entity.js.map +1 -1
- package/build/models/count-member-daily-order-status.entity.d.ts +1 -1
- package/build/models/count-member-daily-order-status.entity.d.ts.map +1 -1
- package/build/models/count-member-daily-order-status.entity.js +3 -3
- package/build/models/count-member-daily-order-status.entity.js.map +1 -1
- package/build/models/country.entity.d.ts +1 -1
- package/build/models/country.entity.d.ts.map +1 -1
- package/build/models/country.entity.js +1 -1
- package/build/models/country.entity.js.map +1 -1
- package/build/models/index.d.ts +38 -41
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +38 -41
- package/build/models/index.js.map +1 -1
- package/build/models/member.entity.d.ts +2 -2
- package/build/models/member.entity.d.ts.map +1 -1
- package/build/models/member.entity.js +2 -2
- package/build/models/member.entity.js.map +1 -1
- package/build/models/order-file.entity.d.ts +2 -1
- package/build/models/order-file.entity.d.ts.map +1 -1
- package/build/models/order-file.entity.js +2 -1
- package/build/models/order-file.entity.js.map +1 -1
- package/build/models/order-item.entity.d.ts +2 -1
- package/build/models/order-item.entity.d.ts.map +1 -1
- package/build/models/order-item.entity.js +2 -1
- package/build/models/order-item.entity.js.map +1 -1
- package/build/models/order-progress-timeline.entity.d.ts +2 -1
- package/build/models/order-progress-timeline.entity.d.ts.map +1 -1
- package/build/models/order-progress-timeline.entity.js +2 -1
- package/build/models/order-progress-timeline.entity.js.map +1 -1
- package/build/models/order.entity.d.ts +3 -3
- package/build/models/order.entity.d.ts.map +1 -1
- package/build/models/order.entity.js +12 -4
- package/build/models/order.entity.js.map +1 -1
- package/build/models/product-document.entity.d.ts +2 -1
- package/build/models/product-document.entity.d.ts.map +1 -1
- package/build/models/product-document.entity.js +2 -1
- package/build/models/product-document.entity.js.map +1 -1
- package/build/models/product-picture.entity.d.ts +2 -1
- package/build/models/product-picture.entity.d.ts.map +1 -1
- package/build/models/product-picture.entity.js +2 -1
- package/build/models/product-picture.entity.js.map +1 -1
- package/build/models/product-sku.entity.d.ts +2 -1
- package/build/models/product-sku.entity.d.ts.map +1 -1
- package/build/models/product-sku.entity.js +2 -1
- package/build/models/product-sku.entity.js.map +1 -1
- package/build/models/product.entity.d.ts +2 -3
- package/build/models/product.entity.d.ts.map +1 -1
- package/build/models/product.entity.js +2 -3
- package/build/models/product.entity.js.map +1 -1
- package/build/models/recharge-record.entity.d.ts +2 -1
- package/build/models/recharge-record.entity.d.ts.map +1 -1
- package/build/models/recharge-record.entity.js +2 -1
- package/build/models/recharge-record.entity.js.map +1 -1
- package/build/models/roles.entity.d.ts +2 -1
- package/build/models/roles.entity.d.ts.map +1 -1
- package/build/models/roles.entity.js +5 -4
- package/build/models/roles.entity.js.map +1 -1
- package/build/models/service-fee.entity.d.ts +2 -2
- package/build/models/service-fee.entity.d.ts.map +1 -1
- package/build/models/service-fee.entity.js +2 -2
- package/build/models/service-fee.entity.js.map +1 -1
- package/build/models/service.entity.d.ts +1 -1
- package/build/models/service.entity.d.ts.map +1 -1
- package/build/models/service.entity.js +2 -2
- package/build/models/service.entity.js.map +1 -1
- package/build/models/trademark.entity.d.ts +3 -0
- package/build/models/trademark.entity.d.ts.map +1 -1
- package/build/models/trademark.entity.js +9 -1
- package/build/models/trademark.entity.js.map +1 -1
- package/build/models/user-profile.entity.d.ts +2 -1
- package/build/models/user-profile.entity.d.ts.map +1 -1
- package/build/models/user-profile.entity.js +2 -1
- package/build/models/user-profile.entity.js.map +1 -1
- package/build/models/users.entity.d.ts +2 -2
- package/build/models/users.entity.d.ts.map +1 -1
- package/build/models/users.entity.js +2 -2
- package/build/models/users.entity.js.map +1 -1
- package/build/models/visit-logs.entity.d.ts +2 -1
- package/build/models/visit-logs.entity.d.ts.map +1 -1
- package/build/models/visit-logs.entity.js +2 -1
- package/build/models/visit-logs.entity.js.map +1 -1
- package/build/models copy/banner-item.entity.d.ts +11 -0
- package/build/models copy/banner-item.entity.d.ts.map +1 -0
- package/build/models copy/banner-item.entity.js +58 -0
- package/build/models copy/banner-item.entity.js.map +1 -0
- package/build/models copy/banner.entity.d.ts +11 -0
- package/build/models copy/banner.entity.d.ts.map +1 -0
- package/build/models copy/banner.entity.js +65 -0
- package/build/models copy/banner.entity.js.map +1 -0
- package/build/models copy/brand.entity.d.ts +13 -0
- package/build/models copy/brand.entity.d.ts.map +1 -0
- package/build/models copy/brand.entity.js +77 -0
- package/build/models copy/brand.entity.js.map +1 -0
- package/build/models copy/campaign-category.entity.d.ts +2 -0
- package/build/models copy/campaign-category.entity.d.ts.map +1 -0
- package/build/models copy/campaign-category.entity.js +2 -0
- package/build/models copy/campaign-category.entity.js.map +1 -0
- package/build/models copy/campaign-items.entity.d.ts +12 -0
- package/build/models copy/campaign-items.entity.d.ts.map +1 -0
- package/build/models copy/campaign-items.entity.js +64 -0
- package/build/models copy/campaign-items.entity.js.map +1 -0
- package/build/models copy/campaign-type.entity.d.ts +2 -0
- package/build/models copy/campaign-type.entity.d.ts.map +1 -0
- package/build/models copy/campaign-type.entity.js +2 -0
- package/build/models copy/campaign-type.entity.js.map +1 -0
- package/build/models copy/campaign-viewer.entity.d.ts +2 -0
- package/build/models copy/campaign-viewer.entity.d.ts.map +1 -0
- package/build/models copy/campaign-viewer.entity.js +2 -0
- package/build/models copy/campaign-viewer.entity.js.map +1 -0
- package/build/models copy/campaigns.entity.d.ts +18 -0
- package/build/models copy/campaigns.entity.d.ts.map +1 -0
- package/build/models copy/campaigns.entity.js +110 -0
- package/build/models copy/campaigns.entity.js.map +1 -0
- package/build/models copy/category.entity.d.ts +14 -0
- package/build/models copy/category.entity.d.ts.map +1 -0
- package/build/models copy/category.entity.js +83 -0
- package/build/models copy/category.entity.js.map +1 -0
- package/build/models copy/chat-contacts-apply.entity.d.ts +8 -0
- package/build/models copy/chat-contacts-apply.entity.d.ts.map +1 -0
- package/build/models copy/chat-contacts-apply.entity.js +46 -0
- package/build/models copy/chat-contacts-apply.entity.js.map +1 -0
- package/build/models copy/chat-contacts.entity.d.ts +8 -0
- package/build/models copy/chat-contacts.entity.d.ts.map +1 -0
- package/build/models copy/chat-contacts.entity.js +40 -0
- package/build/models copy/chat-contacts.entity.js.map +1 -0
- package/build/models copy/chat-group-user.entity.d.ts +7 -0
- package/build/models copy/chat-group-user.entity.d.ts.map +1 -0
- package/build/models copy/chat-group-user.entity.js +39 -0
- package/build/models copy/chat-group-user.entity.js.map +1 -0
- package/build/models copy/chat-group.entity.d.ts +11 -0
- package/build/models copy/chat-group.entity.d.ts.map +1 -0
- package/build/models copy/chat-group.entity.js +66 -0
- package/build/models copy/chat-group.entity.js.map +1 -0
- package/build/models copy/chat-read.entity.d.ts +8 -0
- package/build/models copy/chat-read.entity.d.ts.map +1 -0
- package/build/models copy/chat-read.entity.js +40 -0
- package/build/models copy/chat-read.entity.js.map +1 -0
- package/build/models copy/chat.entity.d.ts +11 -0
- package/build/models copy/chat.entity.d.ts.map +1 -0
- package/build/models copy/chat.entity.js +60 -0
- package/build/models copy/chat.entity.js.map +1 -0
- package/build/models copy/continent.entity.d.ts +6 -0
- package/build/models copy/continent.entity.d.ts.map +1 -0
- package/build/models copy/continent.entity.js +35 -0
- package/build/models copy/continent.entity.js.map +1 -0
- package/build/models copy/count-member-daily-amount.entity.d.ts +7 -0
- package/build/models copy/count-member-daily-amount.entity.d.ts.map +1 -0
- package/build/models copy/count-member-daily-amount.entity.js +42 -0
- package/build/models copy/count-member-daily-amount.entity.js.map +1 -0
- package/build/models copy/count-member-daily-order-status.entity.d.ts +13 -0
- package/build/models copy/count-member-daily-order-status.entity.d.ts.map +1 -0
- package/build/models copy/count-member-daily-order-status.entity.js +78 -0
- package/build/models copy/count-member-daily-order-status.entity.js.map +1 -0
- package/build/models copy/country.entity.d.ts +15 -0
- package/build/models copy/country.entity.d.ts.map +1 -0
- package/build/models copy/country.entity.js +96 -0
- package/build/models copy/country.entity.js.map +1 -0
- package/build/models copy/index.d.ts +42 -0
- package/build/models copy/index.d.ts.map +1 -0
- package/build/models copy/index.js +42 -0
- package/build/models copy/index.js.map +1 -0
- package/build/models copy/log.entity.d.ts +11 -0
- package/build/models copy/log.entity.d.ts.map +1 -0
- package/build/models copy/log.entity.js +63 -0
- package/build/models copy/log.entity.js.map +1 -0
- package/build/models copy/member.entity.d.ts +53 -0
- package/build/models copy/member.entity.d.ts.map +1 -0
- package/build/models copy/member.entity.js +322 -0
- package/build/models copy/member.entity.js.map +1 -0
- package/build/models copy/news.entity.d.ts +15 -0
- package/build/models copy/news.entity.d.ts.map +1 -0
- package/build/models copy/news.entity.js +87 -0
- package/build/models copy/news.entity.js.map +1 -0
- package/build/models copy/order-file.entity.d.ts +13 -0
- package/build/models copy/order-file.entity.d.ts.map +1 -0
- package/build/models copy/order-file.entity.js +74 -0
- package/build/models copy/order-file.entity.js.map +1 -0
- package/build/models copy/order-item.entity.d.ts +13 -0
- package/build/models copy/order-item.entity.d.ts.map +1 -0
- package/build/models copy/order-item.entity.js +70 -0
- package/build/models copy/order-item.entity.js.map +1 -0
- package/build/models copy/order-progress-timeline.entity.d.ts +11 -0
- package/build/models copy/order-progress-timeline.entity.d.ts.map +1 -0
- package/build/models copy/order-progress-timeline.entity.js +62 -0
- package/build/models copy/order-progress-timeline.entity.js.map +1 -0
- package/build/models copy/order.entity.d.ts +45 -0
- package/build/models copy/order.entity.d.ts.map +1 -0
- package/build/models copy/order.entity.js +271 -0
- package/build/models copy/order.entity.js.map +1 -0
- package/build/models copy/page.entity.d.ts +13 -0
- package/build/models copy/page.entity.d.ts.map +1 -0
- package/build/models copy/page.entity.js +75 -0
- package/build/models copy/page.entity.js.map +1 -0
- package/build/models copy/product-document.entity.d.ts +14 -0
- package/build/models copy/product-document.entity.d.ts.map +1 -0
- package/build/models copy/product-document.entity.js +76 -0
- package/build/models copy/product-document.entity.js.map +1 -0
- package/build/models copy/product-picture.entity.d.ts +8 -0
- package/build/models copy/product-picture.entity.d.ts.map +1 -0
- package/build/models copy/product-picture.entity.js +40 -0
- package/build/models copy/product-picture.entity.js.map +1 -0
- package/build/models copy/product-sku.entity.d.ts +15 -0
- package/build/models copy/product-sku.entity.d.ts.map +1 -0
- package/build/models copy/product-sku.entity.js +82 -0
- package/build/models copy/product-sku.entity.js.map +1 -0
- package/build/models copy/product.entity.d.ts +33 -0
- package/build/models copy/product.entity.d.ts.map +1 -0
- package/build/models copy/product.entity.js +187 -0
- package/build/models copy/product.entity.js.map +1 -0
- package/build/models copy/recharge-record.entity.d.ts +9 -0
- package/build/models copy/recharge-record.entity.d.ts.map +1 -0
- package/build/models copy/recharge-record.entity.js +50 -0
- package/build/models copy/recharge-record.entity.js.map +1 -0
- package/build/models copy/remove-result.entity.d.ts +4 -0
- package/build/models copy/remove-result.entity.d.ts.map +1 -0
- package/build/models copy/remove-result.entity.js +23 -0
- package/build/models copy/remove-result.entity.js.map +1 -0
- package/build/models copy/roles.entity.d.ts +6 -0
- package/build/models copy/roles.entity.d.ts.map +1 -0
- package/build/models copy/roles.entity.js +34 -0
- package/build/models copy/roles.entity.js.map +1 -0
- package/build/models copy/service-fee.entity.d.ts +19 -0
- package/build/models copy/service-fee.entity.d.ts.map +1 -0
- package/build/models copy/service-fee.entity.js +119 -0
- package/build/models copy/service-fee.entity.js.map +1 -0
- package/build/models copy/service.entity.d.ts +7 -0
- package/build/models copy/service.entity.d.ts.map +1 -0
- package/build/models copy/service.entity.js +40 -0
- package/build/models copy/service.entity.js.map +1 -0
- package/build/models copy/setting-member-level.entity.d.ts +14 -0
- package/build/models copy/setting-member-level.entity.d.ts.map +1 -0
- package/build/models copy/setting-member-level.entity.js +82 -0
- package/build/models copy/setting-member-level.entity.js.map +1 -0
- package/build/models copy/token.entity.d.ts +4 -0
- package/build/models copy/token.entity.d.ts.map +1 -0
- package/build/models copy/token.entity.js +23 -0
- package/build/models copy/token.entity.js.map +1 -0
- package/build/models copy/trademark.entity.d.ts +16 -0
- package/build/models copy/trademark.entity.d.ts.map +1 -0
- package/build/models copy/trademark.entity.js +88 -0
- package/build/models copy/trademark.entity.js.map +1 -0
- package/build/models copy/user-profile.entity.d.ts +15 -0
- package/build/models copy/user-profile.entity.d.ts.map +1 -0
- package/build/models copy/user-profile.entity.js +82 -0
- package/build/models copy/user-profile.entity.js.map +1 -0
- package/build/models copy/users.entity.d.ts +18 -0
- package/build/models copy/users.entity.d.ts.map +1 -0
- package/build/models copy/users.entity.js +103 -0
- package/build/models copy/users.entity.js.map +1 -0
- package/build/models copy/visit-logs.entity.d.ts +8 -0
- package/build/models copy/visit-logs.entity.d.ts.map +1 -0
- package/build/models copy/visit-logs.entity.js +40 -0
- package/build/models copy/visit-logs.entity.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "../index.js";
|
|
2
|
+
import { type Relation } from "typeorm";
|
|
3
|
+
import { ProductDocumentEntity } from "./product-document.entity.ts";
|
|
4
|
+
import { ProductSkuEntity } from "./product-sku.entity.ts";
|
|
5
|
+
export declare class ProductEntity extends AbstractEntity<ProductEntity> {
|
|
6
|
+
name: string;
|
|
7
|
+
originalPrice: number;
|
|
8
|
+
salePrice: number;
|
|
9
|
+
model: string;
|
|
10
|
+
variants: string;
|
|
11
|
+
description: string;
|
|
12
|
+
customOptions: string;
|
|
13
|
+
startDisplayDate: Date;
|
|
14
|
+
endDisplayDate: Date;
|
|
15
|
+
startSellDate: Date;
|
|
16
|
+
endSellDate: Date;
|
|
17
|
+
totalStock: number;
|
|
18
|
+
surplusStock: number;
|
|
19
|
+
pageView: number;
|
|
20
|
+
reviews: number;
|
|
21
|
+
stars: number;
|
|
22
|
+
serialNumber: string;
|
|
23
|
+
createdDate: Date;
|
|
24
|
+
createdBy: string;
|
|
25
|
+
updatedBy: string;
|
|
26
|
+
updatedDate: Date;
|
|
27
|
+
brand: Relation<BrandEntity>;
|
|
28
|
+
category: Relation<CategoryEntity>;
|
|
29
|
+
pictures: ProductPictureEntity[];
|
|
30
|
+
documents: ProductDocumentEntity[];
|
|
31
|
+
sku: ProductSkuEntity[];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=product.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/product.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEhG,OAAO,EAAmD,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,qBAGa,aAAc,SAAQ,cAAc,CAAC,aAAa,CAAC;IAI5D,IAAI,EAAE,MAAM,CAAC;IAIb,aAAa,EAAE,MAAM,CAAC;IAItB,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,EAAE,MAAM,CAAC;IAIjB,WAAW,EAAE,MAAM,CAAC;IAIpB,aAAa,EAAE,MAAM,CAAC;IAItB,gBAAgB,EAAE,IAAI,CAAC;IAIvB,cAAc,EAAE,IAAI,CAAC;IAIrB,aAAa,EAAE,IAAI,CAAC;IAIpB,WAAW,EAAE,IAAI,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,YAAY,EAAE,MAAM,CAAC;IAIrB,QAAQ,EAAE,MAAM,CAAC;IAIjB,OAAO,EAAE,MAAM,CAAC;IAIhB,KAAK,EAAE,MAAM,CAAC;IAId,YAAY,EAAE,MAAM,CAAC;IAIrB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAA;IAKjB,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;IAK5B,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAA;IAMlC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAMhC,SAAS,EAAE,qBAAqB,EAAE,CAAA;IAMlC,GAAG,EAAE,gBAAgB,EAAE,CAAA;CAE1B"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { AbstractEntity, BrandEntity, CategoryEntity, ProductPictureEntity } from "../index.js";
|
|
11
|
+
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
12
|
+
import { Column, Entity, JoinTable, ManyToOne, OneToMany } from "typeorm";
|
|
13
|
+
import { ProductDocumentEntity } from "./product-document.entity.js";
|
|
14
|
+
import { ProductSkuEntity } from "./product-sku.entity.js";
|
|
15
|
+
let ProductEntity = class ProductEntity extends AbstractEntity {
|
|
16
|
+
name;
|
|
17
|
+
originalPrice;
|
|
18
|
+
salePrice;
|
|
19
|
+
model;
|
|
20
|
+
variants;
|
|
21
|
+
description;
|
|
22
|
+
customOptions;
|
|
23
|
+
startDisplayDate;
|
|
24
|
+
endDisplayDate;
|
|
25
|
+
startSellDate;
|
|
26
|
+
endSellDate;
|
|
27
|
+
totalStock;
|
|
28
|
+
surplusStock;
|
|
29
|
+
pageView;
|
|
30
|
+
reviews;
|
|
31
|
+
stars;
|
|
32
|
+
serialNumber;
|
|
33
|
+
createdDate;
|
|
34
|
+
createdBy;
|
|
35
|
+
updatedBy;
|
|
36
|
+
updatedDate;
|
|
37
|
+
brand;
|
|
38
|
+
category;
|
|
39
|
+
pictures;
|
|
40
|
+
documents;
|
|
41
|
+
sku;
|
|
42
|
+
};
|
|
43
|
+
__decorate([
|
|
44
|
+
Column(),
|
|
45
|
+
Field(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ProductEntity.prototype, "name", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 3 }),
|
|
50
|
+
Field({ defaultValue: 0 }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ProductEntity.prototype, "originalPrice", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 3 }),
|
|
55
|
+
Field({ defaultValue: 0 }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], ProductEntity.prototype, "salePrice", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
Column({ nullable: true }),
|
|
60
|
+
Field({ nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ProductEntity.prototype, "model", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column({ nullable: true }),
|
|
65
|
+
Field({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ProductEntity.prototype, "variants", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column({ nullable: true }),
|
|
70
|
+
Field({ nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ProductEntity.prototype, "description", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column({ nullable: true }),
|
|
75
|
+
Field({ nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], ProductEntity.prototype, "customOptions", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
Column({ nullable: true }),
|
|
80
|
+
Field(() => Date, { nullable: true }),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], ProductEntity.prototype, "startDisplayDate", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
Column({ nullable: true }),
|
|
85
|
+
Field(() => Date, { nullable: true }),
|
|
86
|
+
__metadata("design:type", Date)
|
|
87
|
+
], ProductEntity.prototype, "endDisplayDate", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
Column({ nullable: true }),
|
|
90
|
+
Field(() => Date, { nullable: true }),
|
|
91
|
+
__metadata("design:type", Date)
|
|
92
|
+
], ProductEntity.prototype, "startSellDate", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
Column({ nullable: true }),
|
|
95
|
+
Field(() => Date, { nullable: true }),
|
|
96
|
+
__metadata("design:type", Date)
|
|
97
|
+
], ProductEntity.prototype, "endSellDate", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
Column({ default: 0 }),
|
|
100
|
+
Field({ defaultValue: 0 }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], ProductEntity.prototype, "totalStock", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
Column({ default: 0 }),
|
|
105
|
+
Field({ defaultValue: 0 }),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], ProductEntity.prototype, "surplusStock", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
Column({ default: 0 }),
|
|
110
|
+
Field({ defaultValue: 0 }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], ProductEntity.prototype, "pageView", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
Column({ default: 0 }),
|
|
115
|
+
Field({ defaultValue: 0 }),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], ProductEntity.prototype, "reviews", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
Column({ default: 0 }),
|
|
120
|
+
Field({ defaultValue: 0 }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], ProductEntity.prototype, "stars", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
Column({ nullable: true }),
|
|
125
|
+
Field({ nullable: true }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], ProductEntity.prototype, "serialNumber", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
Column(),
|
|
130
|
+
Field(() => Date, { nullable: true }),
|
|
131
|
+
__metadata("design:type", Date)
|
|
132
|
+
], ProductEntity.prototype, "createdDate", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
Column(),
|
|
135
|
+
Field({ nullable: true }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], ProductEntity.prototype, "createdBy", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
Column({ nullable: true }),
|
|
140
|
+
Field({ nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], ProductEntity.prototype, "updatedBy", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
Column({ nullable: true }),
|
|
145
|
+
Field(() => Date, { nullable: true }),
|
|
146
|
+
__metadata("design:type", Date)
|
|
147
|
+
], ProductEntity.prototype, "updatedDate", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
ManyToOne(() => BrandEntity, brand => brand.products, { nullable: true }),
|
|
150
|
+
Field(() => BrandEntity, { nullable: true }),
|
|
151
|
+
Directive('@shareable'),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], ProductEntity.prototype, "brand", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
ManyToOne(() => CategoryEntity, category => category.products, { nullable: true }),
|
|
156
|
+
Field(() => CategoryEntity, { nullable: true }),
|
|
157
|
+
Directive('@shareable'),
|
|
158
|
+
__metadata("design:type", Object)
|
|
159
|
+
], ProductEntity.prototype, "category", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
OneToMany(() => ProductPictureEntity, productPicture => productPicture.product, { nullable: true, cascade: true }),
|
|
162
|
+
JoinTable(),
|
|
163
|
+
Field(() => [ProductPictureEntity], { nullable: true }),
|
|
164
|
+
Directive('@shareable'),
|
|
165
|
+
__metadata("design:type", Array)
|
|
166
|
+
], ProductEntity.prototype, "pictures", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
OneToMany(() => ProductDocumentEntity, productDocument => productDocument.product, { nullable: true, cascade: true }),
|
|
169
|
+
JoinTable(),
|
|
170
|
+
Field(() => [ProductDocumentEntity], { nullable: true }),
|
|
171
|
+
Directive('@shareable'),
|
|
172
|
+
__metadata("design:type", Array)
|
|
173
|
+
], ProductEntity.prototype, "documents", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
OneToMany(() => ProductSkuEntity, productSku => productSku.product, { nullable: true, cascade: true }),
|
|
176
|
+
JoinTable(),
|
|
177
|
+
Field(() => [ProductSkuEntity], { nullable: true }),
|
|
178
|
+
Directive('@shareable'),
|
|
179
|
+
__metadata("design:type", Array)
|
|
180
|
+
], ProductEntity.prototype, "sku", void 0);
|
|
181
|
+
ProductEntity = __decorate([
|
|
182
|
+
Entity(),
|
|
183
|
+
ObjectType(),
|
|
184
|
+
Directive('@key(fields:"id,name,originalPrice,salePrice,model,variants,description,customOptions,startDisplayDate,endDisplayDate,startSellDate,endSellDate,totalStock,surplusStock,pageView,reviews,stars,serialNumber,createdDate,createdBy,updatedDate,updatedBy")')
|
|
185
|
+
], ProductEntity);
|
|
186
|
+
export { ProductEntity };
|
|
187
|
+
//# sourceMappingURL=product.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../src/models copy/product.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,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AAE,CAAC;IACxD,SAAS,CAAC,YAAY,CAAC;;gDACU;AAMlC;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtG,SAAS,EAAE;IACX,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnD,SAAS,CAAC,YAAY,CAAC;;0CACD;AAhHd,aAAa;IAHzB,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,2PAA2P,CAAC;GAC1P,aAAa,CAkHzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractEntity, MemberEntity } from '../index.js';
|
|
2
|
+
import { type Relation } from 'typeorm';
|
|
3
|
+
export declare class RechargeRecordEntity extends AbstractEntity<RechargeRecordEntity> {
|
|
4
|
+
amount: number;
|
|
5
|
+
beforeAmount: number;
|
|
6
|
+
createdDate: Date;
|
|
7
|
+
member: Relation<MemberEntity>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=recharge-record.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recharge-record.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/recharge-record.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAyC,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E,qBAGa,oBAAqB,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAG5E,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;IAIrB,WAAW,EAAE,IAAI,CAAC;IASlB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { AbstractEntity, MemberEntity } from '../index.js';
|
|
11
|
+
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
12
|
+
import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm';
|
|
13
|
+
let RechargeRecordEntity = class RechargeRecordEntity extends AbstractEntity {
|
|
14
|
+
amount;
|
|
15
|
+
beforeAmount;
|
|
16
|
+
createdDate;
|
|
17
|
+
member;
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
Column(),
|
|
21
|
+
Field(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], RechargeRecordEntity.prototype, "amount", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ default: 0 }),
|
|
26
|
+
Field({ defaultValue: 0 }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], RechargeRecordEntity.prototype, "beforeAmount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column(),
|
|
31
|
+
Field(() => Date, { nullable: true }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], RechargeRecordEntity.prototype, "createdDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
ManyToOne(() => MemberEntity, (member) => member.recharges, {
|
|
36
|
+
cascade: true,
|
|
37
|
+
nullable: true,
|
|
38
|
+
}),
|
|
39
|
+
Field(() => MemberEntity, { nullable: true }),
|
|
40
|
+
Directive('@shareable'),
|
|
41
|
+
JoinColumn(),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], RechargeRecordEntity.prototype, "member", void 0);
|
|
44
|
+
RechargeRecordEntity = __decorate([
|
|
45
|
+
Entity(),
|
|
46
|
+
ObjectType(),
|
|
47
|
+
Directive("@key(fields:'id,amount,beforeAmount,createdDate')")
|
|
48
|
+
], RechargeRecordEntity);
|
|
49
|
+
export { RechargeRecordEntity };
|
|
50
|
+
//# sourceMappingURL=recharge-record.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recharge-record.entity.js","sourceRoot":"","sources":["../../src/models copy/recharge-record.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAiB,MAAM,SAAS,CAAC;AAKxE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,cAAoC;IAG5E,MAAM,CAAS;IAIf,YAAY,CAAS;IAIrB,WAAW,CAAO;IASlB,MAAM,CAAyB;CAChC,CAAA;AAlBC;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;oDACO;AAIf;IAFC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0DACN;AAIrB;IAFC,MAAM,EAAE;IACR,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;yDAAC;AASlB;IAPC,SAAS,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE;QAC3D,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,SAAS,CAAC,YAAY,CAAC;IACvB,UAAU,EAAE;;oDACkB;AApBpB,oBAAoB;IAHhC,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,mDAAmD,CAAC;GAClD,oBAAoB,CAqBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-result.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/remove-result.entity.ts"],"names":[],"mappings":"AAEA,qBAEa,YAAY;IAGrB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
|
+
let RemoveResult = class RemoveResult {
|
|
12
|
+
result;
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
Field(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], RemoveResult.prototype, "result", void 0);
|
|
18
|
+
RemoveResult = __decorate([
|
|
19
|
+
ObjectType(),
|
|
20
|
+
Directive('@key(fields:"result")')
|
|
21
|
+
], RemoveResult);
|
|
22
|
+
export { RemoveResult };
|
|
23
|
+
//# sourceMappingURL=remove-result.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-result.entity.js","sourceRoot":"","sources":["../../src/models copy/remove-result.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIxD,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGrB,MAAM,CAAS;CAClB,CAAA;AADG;IADC,KAAK,EAAE;;4CACO;AAHN,YAAY;IAFxB,UAAU,EAAE;IACZ,SAAS,CAAC,uBAAuB,CAAC;GACtB,YAAY,CAIxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Directive, Field, ObjectType } from "@nestjs/graphql";
|
|
11
|
+
import { AbstractEntity, UserEntity } from "../index.js";
|
|
12
|
+
import { Column, Entity, ManyToMany } from "typeorm";
|
|
13
|
+
let RoleEntity = class RoleEntity extends AbstractEntity {
|
|
14
|
+
name;
|
|
15
|
+
users;
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
Column(),
|
|
19
|
+
Field(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], RoleEntity.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
ManyToMany(() => UserEntity, user => user.roles),
|
|
24
|
+
Directive('@shareable'),
|
|
25
|
+
Field(() => [UserEntity], { nullable: true }),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], RoleEntity.prototype, "users", void 0);
|
|
28
|
+
RoleEntity = __decorate([
|
|
29
|
+
Entity(),
|
|
30
|
+
ObjectType(),
|
|
31
|
+
Directive('@key(fields:"id,name")')
|
|
32
|
+
], RoleEntity);
|
|
33
|
+
export { RoleEntity };
|
|
34
|
+
//# sourceMappingURL=roles.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.entity.js","sourceRoot":"","sources":["../../src/models copy/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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Relation } from 'typeorm';
|
|
2
|
+
import { AbstractEntity, CountryEntity } from '../index.js';
|
|
3
|
+
import { ServiceEntity } from './service.entity.ts';
|
|
4
|
+
export declare class ServiceFeeEntity extends AbstractEntity<ServiceFeeEntity> {
|
|
5
|
+
qtyFrom: number;
|
|
6
|
+
qtyTo: number;
|
|
7
|
+
officialFee: number;
|
|
8
|
+
percentage: number;
|
|
9
|
+
calculationMethod: number;
|
|
10
|
+
attorneyDirectFilingFee: number;
|
|
11
|
+
attorneyOptimalFee: number;
|
|
12
|
+
inipaFee: number;
|
|
13
|
+
optionalFee: number;
|
|
14
|
+
optionalFeeReason: string;
|
|
15
|
+
remark: string;
|
|
16
|
+
service: Relation<ServiceEntity>;
|
|
17
|
+
country: Relation<CountryEntity>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=service-fee.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-fee.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/service-fee.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBAKa,gBAAiB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAKpE,OAAO,EAAE,MAAM,CAAC;IAIhB,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,EAAE,MAAM,CAAC;IAIpB,UAAU,EAAE,MAAM,CAAC;IAInB,iBAAiB,EAAE,MAAM,CAAC;IAK1B,uBAAuB,EAAE,MAAM,CAAC;IAKhC,kBAAkB,EAAE,MAAM,CAAC;IAK3B,QAAQ,EAAE,MAAM,CAAC;IAKjB,WAAW,EAAE,MAAM,CAAC;IAKpB,iBAAiB,EAAE,MAAM,CAAC;IAK1B,MAAM,EAAE,MAAM,CAAC;IAQf,OAAO,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IASjC,OAAO,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
11
|
+
import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm';
|
|
12
|
+
import { AbstractEntity, CountryEntity } from '../index.js';
|
|
13
|
+
import { ServiceEntity } from "./service.entity.js";
|
|
14
|
+
let ServiceFeeEntity = class ServiceFeeEntity extends AbstractEntity {
|
|
15
|
+
// 根据申请数量范围设定不同的价格
|
|
16
|
+
// 数量范围设置,开始数量
|
|
17
|
+
qtyFrom;
|
|
18
|
+
// 数量范围设置,结束数量
|
|
19
|
+
qtyTo;
|
|
20
|
+
// 官方规定费用
|
|
21
|
+
officialFee;
|
|
22
|
+
percentage;
|
|
23
|
+
calculationMethod; // 官方服务费计算方式: 1(固定金额)2(递增固定金额,如每件增加50元)3(倍增,即乘以件数)
|
|
24
|
+
// 律师直通提交价
|
|
25
|
+
attorneyDirectFilingFee;
|
|
26
|
+
// 律师最优中标价
|
|
27
|
+
attorneyOptimalFee;
|
|
28
|
+
// INIPA 服务费
|
|
29
|
+
inipaFee;
|
|
30
|
+
// 附加费用
|
|
31
|
+
optionalFee;
|
|
32
|
+
// 附加费用原因
|
|
33
|
+
optionalFeeReason;
|
|
34
|
+
// 备注
|
|
35
|
+
remark;
|
|
36
|
+
service;
|
|
37
|
+
country;
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ default: 1 }),
|
|
41
|
+
Field({ defaultValue: 1 }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], ServiceFeeEntity.prototype, "qtyFrom", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ default: 1 }),
|
|
46
|
+
Field({ defaultValue: 1 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ServiceFeeEntity.prototype, "qtyTo", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 2 }),
|
|
51
|
+
Field({ defaultValue: 0 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ServiceFeeEntity.prototype, "officialFee", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ default: 100, comment: '按官方规定费用的百分之几' }),
|
|
56
|
+
Field({ defaultValue: 100 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], ServiceFeeEntity.prototype, "percentage", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column({ default: 1 }),
|
|
61
|
+
Field({ defaultValue: 1 }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ServiceFeeEntity.prototype, "calculationMethod", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 2 }),
|
|
66
|
+
Field({ defaultValue: 0 }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], ServiceFeeEntity.prototype, "attorneyDirectFilingFee", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 2 }),
|
|
71
|
+
Field({ defaultValue: 0 }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], ServiceFeeEntity.prototype, "attorneyOptimalFee", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 2 }),
|
|
76
|
+
Field({ defaultValue: 0 }),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], ServiceFeeEntity.prototype, "inipaFee", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Column({ default: 0, type: 'decimal', precision: 10, scale: 2 }),
|
|
81
|
+
Field({ defaultValue: 0 }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], ServiceFeeEntity.prototype, "optionalFee", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
Column({ nullable: true }),
|
|
86
|
+
Field({ nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], ServiceFeeEntity.prototype, "optionalFeeReason", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
Column({ nullable: true }),
|
|
91
|
+
Field({ nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], ServiceFeeEntity.prototype, "remark", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
ManyToOne(() => ServiceEntity, (service) => service.fees, {
|
|
96
|
+
onDelete: 'CASCADE',
|
|
97
|
+
nullable: true,
|
|
98
|
+
}),
|
|
99
|
+
Field(() => ServiceEntity, { nullable: true }),
|
|
100
|
+
Directive('@shareable'),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], ServiceFeeEntity.prototype, "service", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
ManyToOne(() => CountryEntity, (country) => country.fees, {
|
|
105
|
+
cascade: true,
|
|
106
|
+
nullable: true,
|
|
107
|
+
}),
|
|
108
|
+
Field(() => CountryEntity, { nullable: true }),
|
|
109
|
+
Directive('@shareable'),
|
|
110
|
+
JoinColumn(),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], ServiceFeeEntity.prototype, "country", void 0);
|
|
113
|
+
ServiceFeeEntity = __decorate([
|
|
114
|
+
Entity(),
|
|
115
|
+
ObjectType(),
|
|
116
|
+
Directive('@key(fields:"id,qtyFrom,qtyTo,percentage,calculationMethod,officialFee,attorneyDirectFilingFee,attorneyOptimalFee,inipaFee,optionalFee,optionalFeeReason,remark")')
|
|
117
|
+
], ServiceFeeEntity);
|
|
118
|
+
export { ServiceFeeEntity };
|
|
119
|
+
//# sourceMappingURL=service-fee.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-fee.entity.js","sourceRoot":"","sources":["../../src/models copy/service-fee.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAiB,MAAM,S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B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,SAAS,CAAC,YAAY,CAAC;;iDACS;AASjC;IAPC,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE;QACzD,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,SAAS,CAAC,YAAY,CAAC;IACvB,UAAU,EAAE;;iDACoB;AArEtB,gBAAgB;IAL5B,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CACR,mKAAmK,CACpK;GACY,gBAAgB,CAsE5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractEntity } from '../index.js';
|
|
2
|
+
import { ServiceFeeEntity } from './service-fee.entity.ts';
|
|
3
|
+
export declare class ServiceEntity extends AbstractEntity<ServiceEntity> {
|
|
4
|
+
name: string;
|
|
5
|
+
fees: ServiceFeeEntity[];
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=service.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/service.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAmB,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,qBAGa,aAAc,SAAQ,cAAc,CAAC,aAAa,CAAC;IAI9D,IAAI,EAAE,MAAM,CAAC;IASb,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
11
|
+
import { Column, Entity, Index, JoinTable, OneToMany } from 'typeorm';
|
|
12
|
+
import { AbstractEntity, ContinentEntity } from '../index.js';
|
|
13
|
+
import { ServiceFeeEntity } from "./service-fee.entity.js";
|
|
14
|
+
let ServiceEntity = class ServiceEntity extends AbstractEntity {
|
|
15
|
+
name;
|
|
16
|
+
fees;
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Column(),
|
|
20
|
+
Field(),
|
|
21
|
+
Index('name-idx'),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ServiceEntity.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
OneToMany(() => ServiceFeeEntity, (fee) => fee.service, {
|
|
26
|
+
nullable: true,
|
|
27
|
+
cascade: true,
|
|
28
|
+
}),
|
|
29
|
+
JoinTable(),
|
|
30
|
+
Directive('@shareable'),
|
|
31
|
+
Field(() => [ServiceFeeEntity], { nullable: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], ServiceEntity.prototype, "fees", void 0);
|
|
34
|
+
ServiceEntity = __decorate([
|
|
35
|
+
Entity(),
|
|
36
|
+
ObjectType(),
|
|
37
|
+
Directive('@key(fields:"id,name")')
|
|
38
|
+
], ServiceEntity);
|
|
39
|
+
export { ServiceEntity };
|
|
40
|
+
//# sourceMappingURL=service.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../src/models copy/service.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAKpD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,cAA6B;IAI9D,IAAI,CAAS;IASb,IAAI,CAAqB;CAC1B,CAAA;AAVC;IAHC,MAAM,EAAE;IACR,KAAK,EAAE;IACP,KAAK,CAAC,UAAU,CAAC;;2CACL;AASb;IAPC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE;QACvD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;IACD,SAAS,EAAE;IACX,SAAS,CAAC,YAAY,CAAC;IACvB,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3B;AAbd,aAAa;IAHzB,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,wBAAwB,CAAC;GACvB,aAAa,CAczB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractEntity } from '../index.js';
|
|
2
|
+
export declare class SettingMemberLevelEntity extends AbstractEntity<SettingMemberLevelEntity> {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inipaFee: number;
|
|
6
|
+
totalSpending: number;
|
|
7
|
+
purchaseAmount: number;
|
|
8
|
+
certification: boolean;
|
|
9
|
+
createdDate: Date;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
updatedDate: Date;
|
|
12
|
+
updatedBy: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=setting-member-level.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting-member-level.entity.d.ts","sourceRoot":"","sources":["../../src/models copy/setting-member-level.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,qBAKa,wBAAyB,SAAQ,cAAc,CAAC,wBAAwB,CAAC;IAIpF,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,EAAE,MAAM,CAAC;IAIpB,QAAQ,EAAE,MAAM,CAAC;IAIjB,aAAa,EAAE,MAAM,CAAC;IAItB,cAAc,EAAE,MAAM,CAAC;IAIvB,aAAa,EAAE,OAAO,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|