@hugo.ye/common 1.0.18 → 1.0.20

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.
@@ -1,6 +1,7 @@
1
1
  export declare const NOTIFY_EMAIL_PATTERN = "notify_email";
2
2
  export declare const CREATE_CHARGE_PATTERN = "create_charge";
3
3
  export declare const AUTH_PATTERN = "authenticate";
4
+ export declare const MEMBER_AUTH_PATTERN = "member_authenticate";
4
5
  export declare const CREATE_LOG_PATTERN = "create_logs";
5
6
  export declare const CREATE_CHAT_PATTERN = "create_chat";
6
7
  //# sourceMappingURL=patterns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,mBAAmB,gBAAgB,CAAC"}
1
+ {"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,mBAAmB,gBAAgB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export const NOTIFY_EMAIL_PATTERN = 'notify_email';
2
2
  export const CREATE_CHARGE_PATTERN = 'create_charge';
3
3
  export const AUTH_PATTERN = 'authenticate';
4
+ export const MEMBER_AUTH_PATTERN = 'member_authenticate';
4
5
  export const CREATE_LOG_PATTERN = 'create_logs';
5
6
  export const CREATE_CHAT_PATTERN = 'create_chat';
6
7
  //# sourceMappingURL=patterns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../src/constants/patterns.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../src/constants/patterns.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC"}
@@ -2,4 +2,5 @@ export declare const LOGS_QUEUE = "logs";
2
2
  export declare const NOTIFICATIONS_QUEUE = "notifications";
3
3
  export declare const CHAT_QUEUE = "chat";
4
4
  export declare const AUTH_QUEUE = "auth";
5
+ export declare const MEMBER_AUTH_QUEUE = "member_auth";
5
6
  //# sourceMappingURL=queue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/constants/queue.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,UAAU,SAAS,CAAC"}
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/constants/queue.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
@@ -2,4 +2,5 @@ export const LOGS_QUEUE = 'logs';
2
2
  export const NOTIFICATIONS_QUEUE = 'notifications';
3
3
  export const CHAT_QUEUE = 'chat';
4
4
  export const AUTH_QUEUE = 'auth';
5
+ export const MEMBER_AUTH_QUEUE = 'member_auth';
5
6
  //# sourceMappingURL=queue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/constants/queue.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/constants/queue.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare const AUTH_SERVICE = "auth";
2
+ export declare const MEMBER_AUTH_SERVICE = "member_auth";
2
3
  export declare const PAYMENTS_SERVICE = "payments";
3
4
  export declare const NEWS_SERVICE = "news";
4
5
  export declare const LOGS_SERVICE = "logs";
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/constants/services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/constants/services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export const AUTH_SERVICE = 'auth';
2
+ export const MEMBER_AUTH_SERVICE = 'member_auth';
2
3
  export const PAYMENTS_SERVICE = 'payments';
3
4
  export const NEWS_SERVICE = 'news';
4
5
  export const LOGS_SERVICE = 'logs';
@@ -1 +1 @@
1
- {"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/constants/services.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/constants/services.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { AbstractEntity } from '../index.js';
2
+ export declare class SettingMemberLevelEntity extends AbstractEntity<SettingMemberLevelEntity> {
3
+ name: string;
4
+ price: number;
5
+ totalSpending: number;
6
+ purchasePlan: number;
7
+ createdDate: Date;
8
+ createdBy: string;
9
+ updatedDate: Date;
10
+ updatedBy: string;
11
+ }
12
+ //# 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/setting-member-level.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,qBAKa,wBAAyB,SAAQ,cAAc,CAAC,wBAAwB,CAAC;IAGpF,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;IAId,aAAa,EAAE,MAAM,CAAC;IAItB,YAAY,EAAE,MAAM,CAAC;IAIrB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,69 @@
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 } from '../index.js';
11
+ import { Directive, Field, ObjectType } from '@nestjs/graphql';
12
+ import { Column, Entity } from 'typeorm';
13
+ let SettingMemberLevelEntity = class SettingMemberLevelEntity extends AbstractEntity {
14
+ name;
15
+ price;
16
+ totalSpending; //累计消费
17
+ purchasePlan; // 购买套餐
18
+ createdDate;
19
+ createdBy;
20
+ updatedDate;
21
+ updatedBy;
22
+ };
23
+ __decorate([
24
+ Column(),
25
+ Field(),
26
+ __metadata("design:type", String)
27
+ ], SettingMemberLevelEntity.prototype, "name", void 0);
28
+ __decorate([
29
+ Column({ type: 'decimal', precision: 10, scale: 2 }),
30
+ Field(),
31
+ __metadata("design:type", Number)
32
+ ], SettingMemberLevelEntity.prototype, "price", void 0);
33
+ __decorate([
34
+ Column({ type: 'decimal', precision: 10, scale: 2 }),
35
+ Field(),
36
+ __metadata("design:type", Number)
37
+ ], SettingMemberLevelEntity.prototype, "totalSpending", void 0);
38
+ __decorate([
39
+ Column({ type: 'decimal', precision: 10, scale: 2 }),
40
+ Field(),
41
+ __metadata("design:type", Number)
42
+ ], SettingMemberLevelEntity.prototype, "purchasePlan", void 0);
43
+ __decorate([
44
+ Column(),
45
+ Field(() => Date, { nullable: true }),
46
+ __metadata("design:type", Date)
47
+ ], SettingMemberLevelEntity.prototype, "createdDate", void 0);
48
+ __decorate([
49
+ Column(),
50
+ Field({ nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], SettingMemberLevelEntity.prototype, "createdBy", void 0);
53
+ __decorate([
54
+ Column({ nullable: true }),
55
+ Field(() => Date, { nullable: true }),
56
+ __metadata("design:type", Date)
57
+ ], SettingMemberLevelEntity.prototype, "updatedDate", void 0);
58
+ __decorate([
59
+ Column({ nullable: true }),
60
+ Field({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], SettingMemberLevelEntity.prototype, "updatedBy", void 0);
63
+ SettingMemberLevelEntity = __decorate([
64
+ Entity(),
65
+ ObjectType(),
66
+ Directive('@key(fields:"id,name,price,totalSpending,purchasePlan,createdDate,createdBy,updatedDate,updatedBy")')
67
+ ], SettingMemberLevelEntity);
68
+ export { SettingMemberLevelEntity };
69
+ //# sourceMappingURL=setting-member-level.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting-member-level.entity.js","sourceRoot":"","sources":["../../src/models/setting-member-level.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,MAAM,SAAS,CAAC;AAOlC,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,cAAwC;IAGpF,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,aAAa,CAAS,CAAC,MAAM;IAI7B,YAAY,CAAS,CAAC,OAAO;IAI7B,WAAW,CAAO;IAIlB,SAAS,CAAS;IAIlB,WAAW,CAAO;IAIlB,SAAS,CAAS;CACnB,CAAA;AA7BC;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;sDACK;AAIb;IAFC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IACpD,KAAK,EAAE;;uDACM;AAId;IAFC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IACpD,KAAK,EAAE;;+DACc;AAItB;IAFC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IACpD,KAAK,EAAE;;8DACa;AAIrB;IAFC,MAAM,EAAE;IACR,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;6DAAC;AAIlB;IAFC,MAAM,EAAE;IACR,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACR;AAIlB;IAFC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;6DAAC;AAIlB;IAFC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACR;AA/BP,wBAAwB;IALpC,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CACR,qGAAqG,CACtG;GACY,wBAAwB,CAgCpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hugo.ye/common",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",