@bets-pf/shared-typeorm-models 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,5 @@ export * from './odds';
6
6
  export * from './message';
7
7
  export * from './odds';
8
8
  export * from './signal';
9
+ export * from './user';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -22,4 +22,5 @@ __exportStar(require("./odds"), exports);
22
22
  __exportStar(require("./message"), exports);
23
23
  __exportStar(require("./odds"), exports);
24
24
  __exportStar(require("./signal"), exports);
25
+ __exportStar(require("./user"), exports);
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,oDAAiC;AACjC,yCAAsB;AACtB,+CAA4B;AAC5B,yCAAsB;AACtB,4CAAyB;AACzB,yCAAsB;AACtB,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,oDAAiC;AACjC,yCAAsB;AACtB,+CAA4B;AAC5B,yCAAsB;AACtB,4CAAyB;AACzB,yCAAsB;AACtB,2CAAwB;AACxB,yCAAsB"}
@@ -0,0 +1,3 @@
1
+ export { UserOrmEntity } from './user.orm-entity';
2
+ export { UserRole, UserState } from './types/user.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserState = exports.UserRole = exports.UserOrmEntity = void 0;
4
+ var user_orm_entity_1 = require("./user.orm-entity");
5
+ Object.defineProperty(exports, "UserOrmEntity", { enumerable: true, get: function () { return user_orm_entity_1.UserOrmEntity; } });
6
+ var user_types_1 = require("./types/user.types");
7
+ Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_types_1.UserRole; } });
8
+ Object.defineProperty(exports, "UserState", { enumerable: true, get: function () { return user_types_1.UserState; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/user/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AACtB,iDAAwD;AAA/C,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA"}
@@ -0,0 +1,13 @@
1
+ export declare enum UserState {
2
+ New = "New",
3
+ EmailUnverified = "EmailUnverified",
4
+ Activated = "Activated",
5
+ Banned = "Banned"
6
+ }
7
+ export declare enum UserRole {
8
+ Admin = "Admin",
9
+ SuperAdmin = "SuperAdmin",
10
+ User = "User",
11
+ Guest = "Guest"
12
+ }
13
+ //# sourceMappingURL=user.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/user/types/user.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserRole = exports.UserState = void 0;
4
+ var UserState;
5
+ (function (UserState) {
6
+ UserState["New"] = "New";
7
+ UserState["EmailUnverified"] = "EmailUnverified";
8
+ UserState["Activated"] = "Activated";
9
+ UserState["Banned"] = "Banned";
10
+ })(UserState || (exports.UserState = UserState = {}));
11
+ var UserRole;
12
+ (function (UserRole) {
13
+ UserRole["Admin"] = "Admin";
14
+ UserRole["SuperAdmin"] = "SuperAdmin";
15
+ UserRole["User"] = "User";
16
+ UserRole["Guest"] = "Guest";
17
+ })(UserRole || (exports.UserRole = UserRole = {}));
18
+ //# sourceMappingURL=user.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/user/types/user.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,gDAAmC,CAAA;IACnC,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACnB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,qCAAyB,CAAA;IACzB,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
@@ -0,0 +1,12 @@
1
+ import { UserRole, UserState } from './types/user.types';
2
+ export declare class UserOrmEntity {
3
+ id: string;
4
+ name: string;
5
+ email: string;
6
+ password: string;
7
+ state: UserState;
8
+ role: UserRole;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ }
12
+ //# sourceMappingURL=user.orm-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/user/user.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAExD,qBACa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,CAAA;IAGhB,KAAK,EAAE,SAAS,CAAA;IAGhB,IAAI,EAAE,QAAQ,CAAA;IAGd,SAAS,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserOrmEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_types_1 = require("./types/user.types");
15
+ let UserOrmEntity = class UserOrmEntity {
16
+ };
17
+ exports.UserOrmEntity = UserOrmEntity;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
20
+ __metadata("design:type", String)
21
+ ], UserOrmEntity.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)(),
24
+ __metadata("design:type", String)
25
+ ], UserOrmEntity.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)(),
28
+ __metadata("design:type", String)
29
+ ], UserOrmEntity.prototype, "email", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], UserOrmEntity.prototype, "password", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'string' }),
36
+ __metadata("design:type", String)
37
+ ], UserOrmEntity.prototype, "state", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'string' }),
40
+ __metadata("design:type", String)
41
+ ], UserOrmEntity.prototype, "role", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'timestamp with time zone' }),
44
+ __metadata("design:type", String)
45
+ ], UserOrmEntity.prototype, "createdAt", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'timestamp with time zone' }),
48
+ __metadata("design:type", String)
49
+ ], UserOrmEntity.prototype, "updatedAt", void 0);
50
+ exports.UserOrmEntity = UserOrmEntity = __decorate([
51
+ (0, typeorm_1.Entity)('users')
52
+ ], UserOrmEntity);
53
+ //# sourceMappingURL=user.orm-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/user/user.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,mDAAwD;AAGjD,IAAM,aAAa,GAAnB,MAAM,aAAa;CAwBzB,CAAA;AAxBY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACrB;AAGV;IADC,IAAA,gBAAM,GAAE;;2CACG;AAGZ;IADC,IAAA,gBAAM,GAAE;;4CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;+CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;4CACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;2CACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;;gDAC5B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;;gDAC5B;wBAvBN,aAAa;IADzB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,aAAa,CAwBzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bets-pf/shared-typeorm-models",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Shared TypeORM entities for BPF platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,10 @@
21
21
  "access": "public"
22
22
  },
23
23
  "scripts": {
24
- "build": "rimraf dist && tsc"
24
+ "build": "rimraf dist && tsc",
25
+ "up:major": "npm version major",
26
+ "up:minor": "npm version minor",
27
+ "up:patch": "npm version patch"
25
28
  },
26
29
  "devDependencies": {
27
30
  "@typescript-eslint/eslint-plugin": "^8.49.0",
@@ -36,4 +39,4 @@
36
39
  "typeorm": "^0.3.0",
37
40
  "reflect-metadata": "^0.1.0 || ^0.2.0"
38
41
  }
39
- }
42
+ }