synunu-libs 1.0.2 → 1.0.4
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/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/login.entity.d.ts +12 -0
- package/dist/entities/login.entity.d.ts.map +1 -0
- package/dist/entities/login.entity.js +51 -0
- package/dist/entities/login.entity.js.map +1 -0
- package/dist/entities/role.entity.js +1 -1
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +2 -2
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./organization.entity"), exports);
|
|
|
19
19
|
__exportStar(require("./branch.entity"), exports);
|
|
20
20
|
__exportStar(require("./membership.entity"), exports);
|
|
21
21
|
__exportStar(require("./role.entity"), exports);
|
|
22
|
+
__exportStar(require("./login.entity"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserEntity } from "./user.entity";
|
|
2
|
+
export declare class LoginEntity {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
refreshToken?: string;
|
|
5
|
+
user: UserEntity;
|
|
6
|
+
isMultiBranch: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class RefreshTokenEntity {
|
|
9
|
+
accessToken: string;
|
|
10
|
+
refreshToken?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=login.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.entity.d.ts","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,WAAW;IAEtB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,UAAU,CAAC;IAGjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,qBACa,kBAAkB;IAE7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.RefreshTokenEntity = exports.LoginEntity = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
let LoginEntity = class LoginEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.LoginEntity = LoginEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LoginEntity.prototype, "accessToken", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], LoginEntity.prototype, "refreshToken", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, graphql_1.Field)(() => user_entity_1.UserEntity),
|
|
28
|
+
__metadata("design:type", user_entity_1.UserEntity)
|
|
29
|
+
], LoginEntity.prototype, "user", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(() => Boolean),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], LoginEntity.prototype, "isMultiBranch", void 0);
|
|
34
|
+
exports.LoginEntity = LoginEntity = __decorate([
|
|
35
|
+
(0, graphql_1.ObjectType)()
|
|
36
|
+
], LoginEntity);
|
|
37
|
+
let RefreshTokenEntity = class RefreshTokenEntity {
|
|
38
|
+
};
|
|
39
|
+
exports.RefreshTokenEntity = RefreshTokenEntity;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], RefreshTokenEntity.prototype, "accessToken", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], RefreshTokenEntity.prototype, "refreshToken", void 0);
|
|
48
|
+
exports.RefreshTokenEntity = RefreshTokenEntity = __decorate([
|
|
49
|
+
(0, graphql_1.ObjectType)()
|
|
50
|
+
], RefreshTokenEntity);
|
|
51
|
+
//# sourceMappingURL=login.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.entity.js","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAYvB,CAAA;AAZY,kCAAW;AAEtB;IADC,IAAA,eAAK,GAAE;;gDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;yCAAC;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACE;sBAXZ,WAAW;IADvB,IAAA,oBAAU,GAAE;GACA,WAAW,CAYvB;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;uDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACJ;6BALX,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAM9B"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PaginatedRoleResult = exports.RoleEntity = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const paginated_result_type_1 = require("types/paginated-result.type");
|
|
14
|
+
const paginated_result_type_1 = require("../types/paginated-result.type");
|
|
15
15
|
let RoleEntity = class RoleEntity {
|
|
16
16
|
};
|
|
17
17
|
exports.RoleEntity = RoleEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,0EAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;uCACJ;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAjBZ,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAkBtB;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,IAAA,uCAAe,EAAC,UAAU,CAAC;CAAG,CAAA;AAA1D,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAAuC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EAccountStatus } from "enum/account-status.enum";
|
|
2
|
-
import { ISocialAccounts } from "interfaces/account.interface";
|
|
3
1
|
import { MembershipEntity } from "./membership.entity";
|
|
2
|
+
import { EAccountStatus } from "./../enum";
|
|
3
|
+
import { ISocialAccounts } from "../interfaces";
|
|
4
4
|
export declare class UserEntity {
|
|
5
5
|
_id: string;
|
|
6
6
|
userName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,MAAM,CAAC,EAAE,cAAc,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,cAAc,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAGxC,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC"}
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UserEntity = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const account_status_enum_1 = require("enum/account-status.enum");
|
|
15
14
|
const membership_entity_1 = require("./membership.entity");
|
|
15
|
+
const enum_1 = require("./../enum");
|
|
16
16
|
let UserEntity = class UserEntity {
|
|
17
17
|
};
|
|
18
18
|
exports.UserEntity = UserEntity;
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
__metadata("design:type", Boolean)
|
|
46
46
|
], UserEntity.prototype, "isEmailVerified", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, graphql_1.Field)(() =>
|
|
48
|
+
(0, graphql_1.Field)(() => enum_1.EAccountStatus, { nullable: true }),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], UserEntity.prototype, "status", void 0);
|
|
51
51
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,2DAAuD;AACvD,oCAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAoCtB,CAAA;AApCY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;uCACJ;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAGxC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oCAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAnCtB,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAoCtB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@ __exportStar(require("./dto"), exports);
|
|
|
20
20
|
__exportStar(require("./entities"), exports);
|
|
21
21
|
__exportStar(require("./enum"), exports);
|
|
22
22
|
__exportStar(require("./interfaces"), exports);
|
|
23
|
-
__exportStar(require("./utils"), exports);
|
|
24
23
|
__exportStar(require("./types"), exports);
|
|
24
|
+
__exportStar(require("./utils"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|