@hugo.ye/common 1.0.40 → 1.0.43
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/models/continent.entity.d.ts +2 -1
- package/build/models/continent.entity.d.ts.map +1 -1
- package/build/models/continent.entity.js +12 -1
- package/build/models/continent.entity.js.map +1 -1
- package/build/models/country.entity.d.ts +3 -2
- package/build/models/country.entity.d.ts.map +1 -1
- package/build/models/country.entity.js +24 -10
- package/build/models/country.entity.js.map +1 -1
- package/build/models/index.d.ts +1 -1
- package/build/models/index.js +1 -1
- package/build/models/member.entity.d.ts +1 -1
- package/build/models/member.entity.js +2 -2
- package/build/models/{setting-member-level.entity.d.ts → setting-member-grade.entity.d.ts} +2 -2
- package/build/models/{setting-member-level.entity.d.ts.map → setting-member-grade.entity.d.ts.map} +1 -1
- package/build/models/{setting-member-level.entity.js → setting-member-grade.entity.js} +15 -15
- package/build/models/{setting-member-level.entity.js.map → setting-member-grade.entity.js.map} +1 -1
- package/build/repositories/index.d.ts +1 -1
- package/build/repositories/index.js +1 -1
- package/build/repositories/setting-member-grade.repository.d.ts +8 -0
- package/build/repositories/{setting-member-level.repository.d.ts.map → setting-member-grade.repository.d.ts.map} +1 -1
- package/build/repositories/{setting-member-level.repository.js → setting-member-grade.repository.js} +9 -9
- package/build/repositories/{setting-member-level.repository.js.map → setting-member-grade.repository.js.map} +1 -1
- package/package.json +1 -1
- package/build/repositories/setting-member-level.repository.d.ts +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AbstractEntity } from '../index.js';
|
|
1
|
+
import { AbstractEntity, CountryEntity } from '../index.js';
|
|
2
2
|
export declare class ContinentEntity extends AbstractEntity<ContinentEntity> {
|
|
3
3
|
chineseName: string;
|
|
4
4
|
name: string;
|
|
5
|
+
countries: CountryEntity[];
|
|
5
6
|
}
|
|
6
7
|
//# sourceMappingURL=continent.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continent.entity.d.ts","sourceRoot":"","sources":["../../src/models/continent.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"continent.entity.d.ts","sourceRoot":"","sources":["../../src/models/continent.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5D,qBAGa,eAAgB,SAAQ,cAAc,CAAC,eAAe,CAAC;IAGlE,WAAW,EAAE,MAAM,CAAC;IAIpB,IAAI,EAAE,MAAM,CAAC;IASb,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B"}
|
|
@@ -8,11 +8,12 @@ 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, OneToMany } from 'typeorm';
|
|
11
|
-
import { AbstractEntity } from '../index.js';
|
|
11
|
+
import { AbstractEntity, CountryEntity } from '../index.js';
|
|
12
12
|
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
13
13
|
let ContinentEntity = class ContinentEntity extends AbstractEntity {
|
|
14
14
|
chineseName;
|
|
15
15
|
name;
|
|
16
|
+
countries;
|
|
16
17
|
};
|
|
17
18
|
__decorate([
|
|
18
19
|
Column({ nullable: true }),
|
|
@@ -24,6 +25,16 @@ __decorate([
|
|
|
24
25
|
Field(),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], ContinentEntity.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
OneToMany(() => CountryEntity, (country) => country.continent, {
|
|
30
|
+
nullable: true,
|
|
31
|
+
cascade: true,
|
|
32
|
+
}),
|
|
33
|
+
JoinTable(),
|
|
34
|
+
Directive('@shareable'),
|
|
35
|
+
Field(() => [CountryEntity], { nullable: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], ContinentEntity.prototype, "countries", void 0);
|
|
27
38
|
ContinentEntity = __decorate([
|
|
28
39
|
Entity(),
|
|
29
40
|
ObjectType(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continent.entity.js","sourceRoot":"","sources":["../../src/models/continent.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"continent.entity.js","sourceRoot":"","sources":["../../src/models/continent.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKxD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,cAA+B;IAGlE,WAAW,CAAS;IAIpB,IAAI,CAAS;IASb,SAAS,CAAkB;CAC5B,CAAA;AAdC;IAFC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACN;AAIpB;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;6CACK;AASb;IAPC,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE;QAC9D,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;IACD,SAAS,EAAE;IACX,SAAS,CAAC,YAAY,CAAC;IACvB,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AAhBhB,eAAe;IAH3B,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,oCAAoC,CAAC;GACnC,eAAe,CAiB3B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type Relation } from 'typeorm';
|
|
1
2
|
import { AbstractEntity } from '../index.js';
|
|
2
|
-
import { ServiceFeeEntity } from './index.js';
|
|
3
|
+
import { ContinentEntity, ServiceFeeEntity } from './index.js';
|
|
3
4
|
export declare class CountryEntity extends AbstractEntity<CountryEntity> {
|
|
4
5
|
chinesename: string;
|
|
5
6
|
name: string;
|
|
6
|
-
continent: 'Asia' | 'Europe' | 'Africa' | 'North America' | 'South America' | 'Oceania' | 'America';
|
|
7
7
|
isHotTrademark: boolean;
|
|
8
8
|
isHotInventionPatent: boolean;
|
|
9
9
|
isHotUtilityModel: boolean;
|
|
@@ -12,5 +12,6 @@ export declare class CountryEntity extends AbstractEntity<CountryEntity> {
|
|
|
12
12
|
isHotCopyrightRegistration: boolean;
|
|
13
13
|
sortNumber: number;
|
|
14
14
|
fees: ServiceFeeEntity[];
|
|
15
|
+
continent: Relation<ContinentEntity>;
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=country.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.d.ts","sourceRoot":"","sources":["../../src/models/country.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country.entity.d.ts","sourceRoot":"","sources":["../../src/models/country.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,QAAQ,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEhE,qBAKa,aAAc,SAAQ,cAAc,CAAC,aAAa,CAAC;IAI9D,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAiBb,cAAc,EAAE,OAAO,CAAC;IAKxB,oBAAoB,EAAE,OAAO,CAAC;IAK9B,iBAAiB,EAAE,OAAO,CAAC;IAK3B,iBAAiB,EAAE,OAAO,CAAC;IAK3B,sBAAsB,EAAE,OAAO,CAAC;IAKhC,0BAA0B,EAAE,OAAO,CAAC;IAIpC,UAAU,EAAE,MAAM,CAAC;IASnB,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAQzB,SAAS,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CACtC"}
|
|
@@ -8,13 +8,23 @@ 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 { Column, Entity, Index, JoinTable, OneToMany } from 'typeorm';
|
|
11
|
+
import { Column, Entity, Index, JoinTable, ManyToOne, OneToMany, } from 'typeorm';
|
|
12
12
|
import { AbstractEntity } from '../index.js';
|
|
13
|
-
import { ServiceFeeEntity } from './index.js';
|
|
13
|
+
import { ContinentEntity, ServiceFeeEntity } from './index.js';
|
|
14
14
|
let CountryEntity = class CountryEntity extends AbstractEntity {
|
|
15
15
|
chinesename; // 国家中文名称
|
|
16
16
|
name; // 国家(英文)名称
|
|
17
|
-
|
|
17
|
+
// @Column()
|
|
18
|
+
// @Field()
|
|
19
|
+
// @Index('continent-idx')
|
|
20
|
+
// continent:
|
|
21
|
+
// | 'Asia'
|
|
22
|
+
// | 'Europe'
|
|
23
|
+
// | 'Africa'
|
|
24
|
+
// | 'North America'
|
|
25
|
+
// | 'South America'
|
|
26
|
+
// | 'Oceania'
|
|
27
|
+
// | 'America'; // 所在大洲,亚洲(Asia),非洲(Africa),欧洲(Europe),北美洲(North America),南美洲(South America),大洋洲(Oceania)
|
|
18
28
|
isHotTrademark; // 热门商标国家
|
|
19
29
|
isHotInventionPatent; // 热门发明专利国家
|
|
20
30
|
isHotUtilityModel; // 热门实用新型国家
|
|
@@ -23,6 +33,7 @@ let CountryEntity = class CountryEntity extends AbstractEntity {
|
|
|
23
33
|
isHotCopyrightRegistration; // 热门版本登记国家
|
|
24
34
|
sortNumber;
|
|
25
35
|
fees;
|
|
36
|
+
continent;
|
|
26
37
|
};
|
|
27
38
|
__decorate([
|
|
28
39
|
Column({ nullable: true }),
|
|
@@ -36,12 +47,6 @@ __decorate([
|
|
|
36
47
|
Index('englishName-idx'),
|
|
37
48
|
__metadata("design:type", String)
|
|
38
49
|
], CountryEntity.prototype, "name", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
Column(),
|
|
41
|
-
Field(),
|
|
42
|
-
Index('continent-idx'),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], CountryEntity.prototype, "continent", void 0);
|
|
45
50
|
__decorate([
|
|
46
51
|
Column({ default: false }),
|
|
47
52
|
Field({ nullable: false }),
|
|
@@ -93,10 +98,19 @@ __decorate([
|
|
|
93
98
|
Field(() => [ServiceFeeEntity], { nullable: true }),
|
|
94
99
|
__metadata("design:type", Array)
|
|
95
100
|
], CountryEntity.prototype, "fees", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
ManyToOne(() => ContinentEntity, (continent) => continent.countries, {
|
|
103
|
+
onDelete: 'CASCADE',
|
|
104
|
+
nullable: true,
|
|
105
|
+
}),
|
|
106
|
+
Field(() => ContinentEntity, { nullable: true }),
|
|
107
|
+
Directive('@shareable'),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], CountryEntity.prototype, "continent", void 0);
|
|
96
110
|
CountryEntity = __decorate([
|
|
97
111
|
Entity(),
|
|
98
112
|
ObjectType(),
|
|
99
|
-
Directive('@key(fields:"id,chinesename,name,
|
|
113
|
+
Directive('@key(fields:"id,chinesename,name,isHotTrademark,isHotInventionPatent,isHotUtilityModel,isHotDesignPatent,isHotAnnuityManagement,isHotCopyrightRegistration")')
|
|
100
114
|
], CountryEntity);
|
|
101
115
|
export { CountryEntity };
|
|
102
116
|
//# sourceMappingURL=country.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../src/models/country.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../src/models/country.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,EACT,SAAS,EACT,SAAS,GAEV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAOzD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,cAA6B;IAI9D,WAAW,CAAS,CAAC,SAAS;IAK9B,IAAI,CAAS,CAAC,WAAW;IAEzB,YAAY;IACZ,WAAW;IACX,0BAA0B;IAC1B,aAAa;IACb,aAAa;IACb,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;IAChB,2GAA2G;IAK3G,cAAc,CAAU,CAAC,SAAS;IAKlC,oBAAoB,CAAU,CAAC,WAAW;IAK1C,iBAAiB,CAAU,CAAC,WAAW;IAKvC,iBAAiB,CAAU,CAAC,WAAW;IAKvC,sBAAsB,CAAU,CAAC,WAAW;IAK5C,0BAA0B,CAAU,CAAC,WAAW;IAIhD,UAAU,CAAS;IASnB,IAAI,CAAqB;IAQzB,SAAS,CAA4B;CACtC,CAAA;AArEC;IAHC,M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AE,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;iDACR;AASnB;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;AAQzB;IANC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE;QACpE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,KAAK,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,SAAS,CAAC,YAAY,CAAC;;gDACa;AAxE1B,aAAa;IALzB,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CACR,8JAA8J,CAC/J;GACY,aAAa,CAyEzB"}
|
package/build/models/index.d.ts
CHANGED
|
@@ -36,6 +36,6 @@ export * from './recharge-record.entity.js';
|
|
|
36
36
|
export * from './order-file.entity.js';
|
|
37
37
|
export * from './order-progress-timeline.entity.js';
|
|
38
38
|
export * from './trademark.entity.js';
|
|
39
|
-
export * from './setting-member-
|
|
39
|
+
export * from './setting-member-grade.entity.ts';
|
|
40
40
|
export * from './project.entity.ts';
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
package/build/models/index.js
CHANGED
|
@@ -36,6 +36,6 @@ export * from './recharge-record.entity.js';
|
|
|
36
36
|
export * from './order-file.entity.js';
|
|
37
37
|
export * from './order-progress-timeline.entity.js';
|
|
38
38
|
export * from './trademark.entity.js';
|
|
39
|
-
export * from "./setting-member-
|
|
39
|
+
export * from "./setting-member-grade.entity.js";
|
|
40
40
|
export * from "./project.entity.js";
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -32,7 +32,7 @@ let MemberEntity = class MemberEntity extends AbstractEntity {
|
|
|
32
32
|
country;
|
|
33
33
|
province;
|
|
34
34
|
city;
|
|
35
|
-
|
|
35
|
+
grade; // 会员等级
|
|
36
36
|
totalSpending; // 累计消费, 已付款
|
|
37
37
|
purchaseAmount; // 购买等级金额
|
|
38
38
|
totalOrders; // 订单总数
|
|
@@ -165,7 +165,7 @@ __decorate([
|
|
|
165
165
|
Column({ default: 1 }),
|
|
166
166
|
Field({ defaultValue: 1 }),
|
|
167
167
|
__metadata("design:type", Number)
|
|
168
|
-
], MemberEntity.prototype, "
|
|
168
|
+
], MemberEntity.prototype, "grade", void 0);
|
|
169
169
|
__decorate([
|
|
170
170
|
Column({ default: 0, type: 'decimal', precision: 10, scale: 3 }),
|
|
171
171
|
Field({ defaultValue: 0 }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity } from '../index.js';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class SettingMemberGradeEntity extends AbstractEntity<SettingMemberGradeEntity> {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
5
|
inipaFee: number;
|
|
@@ -11,4 +11,4 @@ export declare class SettingMemberLevelEntity extends AbstractEntity<SettingMemb
|
|
|
11
11
|
updatedDate: Date;
|
|
12
12
|
updatedBy: string;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=setting-member-
|
|
14
|
+
//# sourceMappingURL=setting-member-grade.entity.d.ts.map
|
package/build/models/{setting-member-level.entity.d.ts.map → setting-member-grade.entity.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-member-
|
|
1
|
+
{"version":3,"file":"setting-member-grade.entity.d.ts","sourceRoot":"","sources":["../../src/models/setting-member-grade.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"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { AbstractEntity } from '../index.js';
|
|
11
11
|
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
12
12
|
import { Column, Entity, Index } from 'typeorm';
|
|
13
|
-
let
|
|
13
|
+
let SettingMemberGradeEntity = class SettingMemberGradeEntity extends AbstractEntity {
|
|
14
14
|
name; // 等级名称
|
|
15
15
|
description; // 描述说明
|
|
16
16
|
inipaFee; // INIPA对应服务费
|
|
@@ -27,56 +27,56 @@ __decorate([
|
|
|
27
27
|
Field(),
|
|
28
28
|
Index('name-idx'),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], SettingMemberGradeEntity.prototype, "name", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
Column({ nullable: true }),
|
|
33
33
|
Field({ nullable: true }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], SettingMemberGradeEntity.prototype, "description", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
Column({ type: 'decimal', precision: 10, scale: 2 }),
|
|
38
38
|
Field(),
|
|
39
39
|
__metadata("design:type", Number)
|
|
40
|
-
],
|
|
40
|
+
], SettingMemberGradeEntity.prototype, "inipaFee", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
Column({ type: 'decimal', precision: 10, scale: 2 }),
|
|
43
43
|
Field(),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
|
-
],
|
|
45
|
+
], SettingMemberGradeEntity.prototype, "totalSpending", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
Column({ type: 'decimal', precision: 10, scale: 2 }),
|
|
48
48
|
Field(),
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
|
-
],
|
|
50
|
+
], SettingMemberGradeEntity.prototype, "purchaseAmount", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
Column({ default: false }),
|
|
53
53
|
Field({ defaultValue: false }),
|
|
54
54
|
__metadata("design:type", Boolean)
|
|
55
|
-
],
|
|
55
|
+
], SettingMemberGradeEntity.prototype, "certification", void 0);
|
|
56
56
|
__decorate([
|
|
57
57
|
Column(),
|
|
58
58
|
Field(() => Date, { nullable: true }),
|
|
59
59
|
__metadata("design:type", Date)
|
|
60
|
-
],
|
|
60
|
+
], SettingMemberGradeEntity.prototype, "createdDate", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
Column(),
|
|
63
63
|
Field({ nullable: true }),
|
|
64
64
|
__metadata("design:type", String)
|
|
65
|
-
],
|
|
65
|
+
], SettingMemberGradeEntity.prototype, "createdBy", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
Column({ nullable: true }),
|
|
68
68
|
Field(() => Date, { nullable: true }),
|
|
69
69
|
__metadata("design:type", Date)
|
|
70
|
-
],
|
|
70
|
+
], SettingMemberGradeEntity.prototype, "updatedDate", void 0);
|
|
71
71
|
__decorate([
|
|
72
72
|
Column({ nullable: true }),
|
|
73
73
|
Field({ nullable: true }),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
|
-
],
|
|
76
|
-
|
|
75
|
+
], SettingMemberGradeEntity.prototype, "updatedBy", void 0);
|
|
76
|
+
SettingMemberGradeEntity = __decorate([
|
|
77
77
|
Entity(),
|
|
78
78
|
ObjectType(),
|
|
79
79
|
Directive('@key(fields:"id,name,description,inipaFee,totalSpending,purchaseAmount,certification,createdDate,createdBy,updatedDate,updatedBy")')
|
|
80
|
-
],
|
|
81
|
-
export {
|
|
82
|
-
//# sourceMappingURL=setting-member-
|
|
80
|
+
], SettingMemberGradeEntity);
|
|
81
|
+
export { SettingMemberGradeEntity };
|
|
82
|
+
//# sourceMappingURL=setting-member-grade.entity.js.map
|
package/build/models/{setting-member-level.entity.js.map → setting-member-grade.entity.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-member-
|
|
1
|
+
{"version":3,"file":"setting-member-grade.entity.js","sourceRoot":"","sources":["../../src/models/setting-member-grade.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOzC,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,cAAwC;IAIpF,IAAI,CAAS,CAAC,OAAO;IAIrB,WAAW,CAAS,CAAC,OAAO;IAI5B,QAAQ,CAAS,CAAC,aAAa;IAI/B,aAAa,CAAS,CAAC,MAAM;IAI7B,cAAc,CAAS,CAAC,SAAS;IAIjC,aAAa,CAAU,CAAC,SAAS;IAIjC,WAAW,CAAO;IAIlB,SAAS,CAAS;IAIlB,WAAW,CAAO;IAIlB,SAAS,CAAS;CACnB,CAAA;AArCC;IAHC,MAAM,EAAE;IACR,KAAK,EAAE;IACP,KAAK,CAAC,UAAU,CAAC;;sDACL;AAIb;IAFC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACN;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'./service.repository.ts';
|
|
4
4
|
export * from './service-fee.repository.ts';
|
|
5
|
-
export * from './setting-member-
|
|
5
|
+
export * from './setting-member-grade.repository.ts';
|
|
6
6
|
export * from './users.repository.ts';
|
|
7
7
|
export * from './user-profile.repository.ts';
|
|
8
8
|
export * from './roles.repository.ts';
|
|
@@ -2,7 +2,7 @@ export * from "./member.repository.js";
|
|
|
2
2
|
export * from "./orders.repository.js";
|
|
3
3
|
export * from "./service.repository.js";
|
|
4
4
|
export * from "./service-fee.repository.js";
|
|
5
|
-
export * from "./setting-member-
|
|
5
|
+
export * from "./setting-member-grade.repository.js";
|
|
6
6
|
export * from "./users.repository.js";
|
|
7
7
|
export * from "./user-profile.repository.js";
|
|
8
8
|
export * from "./roles.repository.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractRepository, SettingMemberGradeEntity } from "../index.js";
|
|
2
|
+
import { Logger } from "@nestjs/common";
|
|
3
|
+
import { EntityManager, Repository } from "typeorm";
|
|
4
|
+
export declare class SettingMemberGradeRepository extends AbstractRepository<SettingMemberGradeEntity> {
|
|
5
|
+
protected readonly logger: Logger;
|
|
6
|
+
constructor(entityRepository: Repository<SettingMemberGradeEntity>, entityManage: EntityManager);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=setting-member-grade.repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-member-
|
|
1
|
+
{"version":3,"file":"setting-member-grade.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/setting-member-grade.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAc,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpD,qBACa,4BAA6B,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IAC1F,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAiD;gBAElC,gBAAgB,EAAE,UAAU,CAAC,wBAAwB,CAAC,EAClG,YAAY,EAAE,aAAa;CAIlC"}
|
package/build/repositories/{setting-member-level.repository.js → setting-member-grade.repository.js}
RENAMED
|
@@ -10,22 +10,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
|
-
var
|
|
14
|
-
import { AbstractRepository,
|
|
13
|
+
var SettingMemberGradeRepository_1;
|
|
14
|
+
import { AbstractRepository, SettingMemberGradeEntity } from "../index.js";
|
|
15
15
|
import { Injectable, Logger } from "@nestjs/common";
|
|
16
16
|
import { InjectRepository } from "@nestjs/typeorm";
|
|
17
17
|
import { EntityManager, Repository } from "typeorm";
|
|
18
|
-
let
|
|
19
|
-
logger = new Logger(
|
|
18
|
+
let SettingMemberGradeRepository = SettingMemberGradeRepository_1 = class SettingMemberGradeRepository extends AbstractRepository {
|
|
19
|
+
logger = new Logger(SettingMemberGradeRepository_1.name);
|
|
20
20
|
constructor(entityRepository, entityManage) {
|
|
21
21
|
super(entityManage, entityRepository);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
SettingMemberGradeRepository = SettingMemberGradeRepository_1 = __decorate([
|
|
25
25
|
Injectable(),
|
|
26
|
-
__param(0, InjectRepository(
|
|
26
|
+
__param(0, InjectRepository(SettingMemberGradeEntity)),
|
|
27
27
|
__metadata("design:paramtypes", [Repository,
|
|
28
28
|
EntityManager])
|
|
29
|
-
],
|
|
30
|
-
export {
|
|
31
|
-
//# sourceMappingURL=setting-member-
|
|
29
|
+
], SettingMemberGradeRepository);
|
|
30
|
+
export { SettingMemberGradeRepository };
|
|
31
|
+
//# sourceMappingURL=setting-member-grade.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-member-
|
|
1
|
+
{"version":3,"file":"setting-member-grade.repository.js","sourceRoot":"","sources":["../../src/repositories/setting-member-grade.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG7C,IAAM,4BAA4B,oCAAlC,MAAM,4BAA6B,SAAQ,kBAA4C;IACvE,MAAM,GAAW,IAAI,MAAM,CAAC,8BAA4B,CAAC,IAAI,CAAC,CAAC;IAClF,YACgD,gBAAsD,EAClG,YAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AARY,4BAA4B;IADxC,UAAU,EAAE;IAIJ,WAAA,gBAAgB,CAAC,wBAAwB,CAAC,CAAA;qCAAmB,UAAU;QAC1D,aAAa;GAJtB,4BAA4B,CAQxC"}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AbstractRepository, SettingMemberLevelEntity } from "../index.js";
|
|
2
|
-
import { Logger } from "@nestjs/common";
|
|
3
|
-
import { EntityManager, Repository } from "typeorm";
|
|
4
|
-
export declare class SettingMemberLevelRepository extends AbstractRepository<SettingMemberLevelEntity> {
|
|
5
|
-
protected readonly logger: Logger;
|
|
6
|
-
constructor(entityRepository: Repository<SettingMemberLevelEntity>, entityManage: EntityManager);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=setting-member-level.repository.d.ts.map
|