@dohana/shared 1.0.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.
- package/README.md +27 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/consts/index.d.ts +1 -0
- package/dist/lib/consts/index.js +18 -0
- package/dist/lib/consts/index.js.map +1 -0
- package/dist/lib/consts/password-helper/index.d.ts +1 -0
- package/dist/lib/consts/password-helper/index.js +18 -0
- package/dist/lib/consts/password-helper/index.js.map +1 -0
- package/dist/lib/consts/password-helper/passwordHelper.d.ts +5 -0
- package/dist/lib/consts/password-helper/passwordHelper.js +9 -0
- package/dist/lib/consts/password-helper/passwordHelper.js.map +1 -0
- package/dist/lib/decorators/api-response.decorator.d.ts +2 -0
- package/dist/lib/decorators/api-response.decorator.js +19 -0
- package/dist/lib/decorators/api-response.decorator.js.map +1 -0
- package/dist/lib/decorators/external-api.decorator.d.ts +1 -0
- package/dist/lib/decorators/external-api.decorator.js +7 -0
- package/dist/lib/decorators/external-api.decorator.js.map +1 -0
- package/dist/lib/decorators/index.d.ts +2 -0
- package/dist/lib/decorators/index.js +19 -0
- package/dist/lib/decorators/index.js.map +1 -0
- package/dist/lib/dto/data-wrapper-dto.d.ts +9 -0
- package/dist/lib/dto/data-wrapper-dto.js +35 -0
- package/dist/lib/dto/data-wrapper-dto.js.map +1 -0
- package/dist/lib/dto/index.d.ts +6 -0
- package/dist/lib/dto/index.js +23 -0
- package/dist/lib/dto/index.js.map +1 -0
- package/dist/lib/dto/pagination-request.d.ts +4 -0
- package/dist/lib/dto/pagination-request.js +48 -0
- package/dist/lib/dto/pagination-request.js.map +1 -0
- package/dist/lib/dto/pagination-response.d.ts +8 -0
- package/dist/lib/dto/pagination-response.js +49 -0
- package/dist/lib/dto/pagination-response.js.map +1 -0
- package/dist/lib/dto/pagination-with-filters-request.d.ts +8 -0
- package/dist/lib/dto/pagination-with-filters-request.js +31 -0
- package/dist/lib/dto/pagination-with-filters-request.js.map +1 -0
- package/dist/lib/dto/shared/index.d.ts +1 -0
- package/dist/lib/dto/shared/index.js +18 -0
- package/dist/lib/dto/shared/index.js.map +1 -0
- package/dist/lib/dto/shared/shared.d.ts +13 -0
- package/dist/lib/dto/shared/shared.js +3 -0
- package/dist/lib/dto/shared/shared.js.map +1 -0
- package/dist/lib/dto/user/index.d.ts +1 -0
- package/dist/lib/dto/user/index.js +18 -0
- package/dist/lib/dto/user/index.js.map +1 -0
- package/dist/lib/dto/user/user-info.dto.d.ts +11 -0
- package/dist/lib/dto/user/user-info.dto.js +7 -0
- package/dist/lib/dto/user/user-info.dto.js.map +1 -0
- package/dist/lib/entities/area/index.d.ts +12 -0
- package/dist/lib/entities/area/index.js +3 -0
- package/dist/lib/entities/area/index.js.map +1 -0
- package/dist/lib/entities/article/index.d.ts +32 -0
- package/dist/lib/entities/article/index.js +3 -0
- package/dist/lib/entities/article/index.js.map +1 -0
- package/dist/lib/entities/index.d.ts +11 -0
- package/dist/lib/entities/index.js +28 -0
- package/dist/lib/entities/index.js.map +1 -0
- package/dist/lib/entities/investor/index.d.ts +23 -0
- package/dist/lib/entities/investor/index.js +3 -0
- package/dist/lib/entities/investor/index.js.map +1 -0
- package/dist/lib/entities/key-builder/index.d.ts +94 -0
- package/dist/lib/entities/key-builder/index.js +148 -0
- package/dist/lib/entities/key-builder/index.js.map +1 -0
- package/dist/lib/entities/notification/index.d.ts +3 -0
- package/dist/lib/entities/notification/index.js +20 -0
- package/dist/lib/entities/notification/index.js.map +1 -0
- package/dist/lib/entities/notification/notification-template.d.ts +12 -0
- package/dist/lib/entities/notification/notification-template.js +3 -0
- package/dist/lib/entities/notification/notification-template.js.map +1 -0
- package/dist/lib/entities/notification/notification.d.ts +12 -0
- package/dist/lib/entities/notification/notification.js +3 -0
- package/dist/lib/entities/notification/notification.js.map +1 -0
- package/dist/lib/entities/notification/subject.d.ts +5 -0
- package/dist/lib/entities/notification/subject.js +3 -0
- package/dist/lib/entities/notification/subject.js.map +1 -0
- package/dist/lib/entities/post/index.d.ts +58 -0
- package/dist/lib/entities/post/index.js +3 -0
- package/dist/lib/entities/post/index.js.map +1 -0
- package/dist/lib/entities/project/index.d.ts +29 -0
- package/dist/lib/entities/project/index.js +3 -0
- package/dist/lib/entities/project/index.js.map +1 -0
- package/dist/lib/entities/tag/index.d.ts +9 -0
- package/dist/lib/entities/tag/index.js +3 -0
- package/dist/lib/entities/tag/index.js.map +1 -0
- package/dist/lib/entities/transaction/index.d.ts +13 -0
- package/dist/lib/entities/transaction/index.js +3 -0
- package/dist/lib/entities/transaction/index.js.map +1 -0
- package/dist/lib/entities/user/index.d.ts +36 -0
- package/dist/lib/entities/user/index.js +18 -0
- package/dist/lib/entities/user/index.js.map +1 -0
- package/dist/lib/entities/user/user-token.d.ts +10 -0
- package/dist/lib/entities/user/user-token.js +3 -0
- package/dist/lib/entities/user/user-token.js.map +1 -0
- package/dist/lib/entities/wallet/index.d.ts +12 -0
- package/dist/lib/entities/wallet/index.js +18 -0
- package/dist/lib/entities/wallet/index.js.map +1 -0
- package/dist/lib/entities/wallet/wallet-type.enum.d.ts +4 -0
- package/dist/lib/entities/wallet/wallet-type.enum.js +9 -0
- package/dist/lib/entities/wallet/wallet-type.enum.js.map +1 -0
- package/dist/lib/exceptions/api.exception.d.ts +3 -0
- package/dist/lib/exceptions/api.exception.js +8 -0
- package/dist/lib/exceptions/api.exception.js.map +1 -0
- package/dist/lib/exceptions/db.exception.d.ts +2 -0
- package/dist/lib/exceptions/db.exception.js +7 -0
- package/dist/lib/exceptions/db.exception.js.map +1 -0
- package/dist/lib/exceptions/index.d.ts +3 -0
- package/dist/lib/exceptions/index.js +20 -0
- package/dist/lib/exceptions/index.js.map +1 -0
- package/dist/lib/exceptions/platform.exception.d.ts +2 -0
- package/dist/lib/exceptions/platform.exception.js +7 -0
- package/dist/lib/exceptions/platform.exception.js.map +1 -0
- package/dist/lib/services/index.d.ts +1 -0
- package/dist/lib/services/index.js +18 -0
- package/dist/lib/services/index.js.map +1 -0
- package/dist/lib/services/oauth-redirect.d.ts +22 -0
- package/dist/lib/services/oauth-redirect.js +89 -0
- package/dist/lib/services/oauth-redirect.js.map +1 -0
- package/dist/lib/shared/index.d.ts +10 -0
- package/dist/lib/shared/index.js +5 -0
- package/dist/lib/shared/index.js.map +1 -0
- package/dist/lib/types/area/area-level.enums.d.ts +6 -0
- package/dist/lib/types/area/area-level.enums.js +11 -0
- package/dist/lib/types/area/area-level.enums.js.map +1 -0
- package/dist/lib/types/area/index.d.ts +1 -0
- package/dist/lib/types/area/index.js +18 -0
- package/dist/lib/types/area/index.js.map +1 -0
- package/dist/lib/types/article/article-status.enum.d.ts +5 -0
- package/dist/lib/types/article/article-status.enum.js +10 -0
- package/dist/lib/types/article/article-status.enum.js.map +1 -0
- package/dist/lib/types/article/index.d.ts +3 -0
- package/dist/lib/types/article/index.js +19 -0
- package/dist/lib/types/article/index.js.map +1 -0
- package/dist/lib/types/article/up-down-vote-type.enum.d.ts +4 -0
- package/dist/lib/types/article/up-down-vote-type.enum.js +9 -0
- package/dist/lib/types/article/up-down-vote-type.enum.js.map +1 -0
- package/dist/lib/types/auth/auth.types.d.ts +25 -0
- package/dist/lib/types/auth/auth.types.js +18 -0
- package/dist/lib/types/auth/auth.types.js.map +1 -0
- package/dist/lib/types/auth/index.d.ts +1 -0
- package/dist/lib/types/auth/index.js +18 -0
- package/dist/lib/types/auth/index.js.map +1 -0
- package/dist/lib/types/index.d.ts +11 -0
- package/dist/lib/types/index.js +28 -0
- package/dist/lib/types/index.js.map +1 -0
- package/dist/lib/types/investor/index.d.ts +1 -0
- package/dist/lib/types/investor/index.js +18 -0
- package/dist/lib/types/investor/index.js.map +1 -0
- package/dist/lib/types/investor/investor.types.d.ts +1 -0
- package/dist/lib/types/investor/investor.types.js +3 -0
- package/dist/lib/types/investor/investor.types.js.map +1 -0
- package/dist/lib/types/notification/index.d.ts +3 -0
- package/dist/lib/types/notification/index.js +19 -0
- package/dist/lib/types/notification/index.js.map +1 -0
- package/dist/lib/types/notification/notification.status.d.ts +6 -0
- package/dist/lib/types/notification/notification.status.js +11 -0
- package/dist/lib/types/notification/notification.status.js.map +1 -0
- package/dist/lib/types/notification/notification.types.d.ts +4 -0
- package/dist/lib/types/notification/notification.types.js +9 -0
- package/dist/lib/types/notification/notification.types.js.map +1 -0
- package/dist/lib/types/pagination/index.d.ts +11 -0
- package/dist/lib/types/pagination/index.js +9 -0
- package/dist/lib/types/pagination/index.js.map +1 -0
- package/dist/lib/types/post/index.d.ts +4 -0
- package/dist/lib/types/post/index.js +21 -0
- package/dist/lib/types/post/index.js.map +1 -0
- package/dist/lib/types/post/post-status.enum.d.ts +6 -0
- package/dist/lib/types/post/post-status.enum.js +11 -0
- package/dist/lib/types/post/post-status.enum.js.map +1 -0
- package/dist/lib/types/post/post-type.enum.d.ts +4 -0
- package/dist/lib/types/post/post-type.enum.js +9 -0
- package/dist/lib/types/post/post-type.enum.js.map +1 -0
- package/dist/lib/types/post/post.types.d.ts +1 -0
- package/dist/lib/types/post/post.types.js +3 -0
- package/dist/lib/types/post/post.types.js.map +1 -0
- package/dist/lib/types/post/price-type.enum.d.ts +5 -0
- package/dist/lib/types/post/price-type.enum.js +10 -0
- package/dist/lib/types/post/price-type.enum.js.map +1 -0
- package/dist/lib/types/project/index.d.ts +2 -0
- package/dist/lib/types/project/index.js +19 -0
- package/dist/lib/types/project/index.js.map +1 -0
- package/dist/lib/types/project/project-status.enum.d.ts +6 -0
- package/dist/lib/types/project/project-status.enum.js +11 -0
- package/dist/lib/types/project/project-status.enum.js.map +1 -0
- package/dist/lib/types/project/project.types.d.ts +1 -0
- package/dist/lib/types/project/project.types.js +3 -0
- package/dist/lib/types/project/project.types.js.map +1 -0
- package/dist/lib/types/tag/index.d.ts +1 -0
- package/dist/lib/types/tag/index.js +3 -0
- package/dist/lib/types/tag/index.js.map +1 -0
- package/dist/lib/types/user/index.d.ts +4 -0
- package/dist/lib/types/user/index.js +19 -0
- package/dist/lib/types/user/index.js.map +1 -0
- package/dist/lib/types/user/user-plan.enum.d.ts +6 -0
- package/dist/lib/types/user/user-plan.enum.js +11 -0
- package/dist/lib/types/user/user-plan.enum.js.map +1 -0
- package/dist/lib/types/user/user.enums.d.ts +6 -0
- package/dist/lib/types/user/user.enums.js +12 -0
- package/dist/lib/types/user/user.enums.js.map +1 -0
- package/dist/lib/types/wallet/index.d.ts +2 -0
- package/dist/lib/types/wallet/index.js +3 -0
- package/dist/lib/types/wallet/index.js.map +1 -0
- package/dist/lib/utils/checkIsResponseError.d.ts +2 -0
- package/dist/lib/utils/checkIsResponseError.js +12 -0
- package/dist/lib/utils/checkIsResponseError.js.map +1 -0
- package/dist/lib/utils/common.d.ts +3 -0
- package/dist/lib/utils/common.js +30 -0
- package/dist/lib/utils/common.js.map +1 -0
- package/dist/lib/utils/email-normalization.d.ts +1 -0
- package/dist/lib/utils/email-normalization.js +49 -0
- package/dist/lib/utils/email-normalization.js.map +1 -0
- package/dist/lib/utils/env.d.ts +1 -0
- package/dist/lib/utils/env.js +67 -0
- package/dist/lib/utils/env.js.map +1 -0
- package/dist/lib/utils/hmac.d.ts +1 -0
- package/dist/lib/utils/hmac.js +10 -0
- package/dist/lib/utils/hmac.js.map +1 -0
- package/dist/lib/utils/index.d.ts +6 -0
- package/dist/lib/utils/index.js +23 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/dist/lib/utils/ttl.d.ts +5 -0
- package/dist/lib/utils/ttl.js +47 -0
- package/dist/lib/utils/ttl.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-token.js","sourceRoot":"","sources":["../../../../src/lib/entities/user/user-token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WalletTypeEnum } from './wallet-type.enum';
|
|
2
|
+
export * from './wallet-type.enum';
|
|
3
|
+
import { UserId, WalletId } from '../../types';
|
|
4
|
+
export interface IWallet {
|
|
5
|
+
id: WalletId;
|
|
6
|
+
userId: UserId;
|
|
7
|
+
amount: number;
|
|
8
|
+
code: string;
|
|
9
|
+
type: WalletTypeEnum;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./wallet-type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/entities/wallet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,qDAAmC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletTypeEnum = void 0;
|
|
4
|
+
var WalletTypeEnum;
|
|
5
|
+
(function (WalletTypeEnum) {
|
|
6
|
+
WalletTypeEnum["MAIN"] = "MAIN";
|
|
7
|
+
WalletTypeEnum["PROMOTION"] = "PROMOTION";
|
|
8
|
+
})(WalletTypeEnum || (exports.WalletTypeEnum = WalletTypeEnum = {}));
|
|
9
|
+
//# sourceMappingURL=wallet-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-type.enum.js","sourceRoot":"","sources":["../../../../src/lib/entities/wallet/wallet-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,yCAAuB,CAAA;AACzB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiException = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
class ApiException extends common_1.BadRequestException {
|
|
6
|
+
}
|
|
7
|
+
exports.ApiException = ApiException;
|
|
8
|
+
//# sourceMappingURL=api.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.exception.js","sourceRoot":"","sources":["../../../src/lib/exceptions/api.exception.ts"],"names":[],"mappings":";;;AAAA,2CAAqD;AAErD,MAAa,YAAa,SAAQ,4BAAmB;CAAG;AAAxD,oCAAwD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.exception.js","sourceRoot":"","sources":["../../../src/lib/exceptions/db.exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAY,SAAQ,KAAK;CAAG;AAAzC,kCAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./db.exception"), exports);
|
|
18
|
+
__exportStar(require("./platform.exception"), exports);
|
|
19
|
+
__exportStar(require("./api.exception"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.exception.js","sourceRoot":"","sources":["../../../src/lib/exceptions/platform.exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAkB,SAAQ,KAAK;CAAG;AAA/C,8CAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './oauth-redirect';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./oauth-redirect"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const buildOauthRedirectUrl: (request: {
|
|
2
|
+
user: {
|
|
3
|
+
token: string;
|
|
4
|
+
newUser: any;
|
|
5
|
+
};
|
|
6
|
+
query: {
|
|
7
|
+
state: string;
|
|
8
|
+
};
|
|
9
|
+
}) => string;
|
|
10
|
+
export declare const buildGoogleOauthRedirectUrl: (request: {
|
|
11
|
+
user: {
|
|
12
|
+
email: string;
|
|
13
|
+
newUser: boolean;
|
|
14
|
+
token: string;
|
|
15
|
+
inviteToken: string;
|
|
16
|
+
};
|
|
17
|
+
query: {
|
|
18
|
+
code: string;
|
|
19
|
+
scope: string;
|
|
20
|
+
authuser: string;
|
|
21
|
+
};
|
|
22
|
+
}) => string;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.buildGoogleOauthRedirectUrl = exports.buildOauthRedirectUrl = void 0;
|
|
37
|
+
const common_1 = require("@nestjs/common");
|
|
38
|
+
const process = __importStar(require("process"));
|
|
39
|
+
const buildOauthRedirectUrl = (request) => {
|
|
40
|
+
let url = process.env.FRONT_BASE_URL + '/auth/sign-in';
|
|
41
|
+
if (!request.user || !request.user.token) {
|
|
42
|
+
return `${url}?error=AuthenticationError`;
|
|
43
|
+
}
|
|
44
|
+
const redirectUrl = JSON.parse(request.query.state).redirectUrl;
|
|
45
|
+
if (redirectUrl &&
|
|
46
|
+
redirectUrl.startsWith('http://localhost:') &&
|
|
47
|
+
!redirectUrl.includes('@')) {
|
|
48
|
+
url = redirectUrl;
|
|
49
|
+
}
|
|
50
|
+
url += `?token=${request.user.token}`;
|
|
51
|
+
if (request.user.newUser) {
|
|
52
|
+
url += '&newUser=true';
|
|
53
|
+
}
|
|
54
|
+
const partnerCode = JSON.parse(request.query.state).partnerCode;
|
|
55
|
+
if (partnerCode) {
|
|
56
|
+
url += `&code=${partnerCode}`;
|
|
57
|
+
}
|
|
58
|
+
const next = JSON.parse(request.query.state).next;
|
|
59
|
+
if (next) {
|
|
60
|
+
url += `&next=${next}`;
|
|
61
|
+
}
|
|
62
|
+
const configurationId = JSON.parse(request.query.state).configurationId;
|
|
63
|
+
if (configurationId) {
|
|
64
|
+
url += `&configurationId=${configurationId}`;
|
|
65
|
+
}
|
|
66
|
+
const inviteToken = JSON.parse(request.query.state).inviteToken;
|
|
67
|
+
if (inviteToken) {
|
|
68
|
+
url += `&inviteToken=${inviteToken}`;
|
|
69
|
+
}
|
|
70
|
+
return url;
|
|
71
|
+
};
|
|
72
|
+
exports.buildOauthRedirectUrl = buildOauthRedirectUrl;
|
|
73
|
+
const buildGoogleOauthRedirectUrl = (request) => {
|
|
74
|
+
if (!request.user) {
|
|
75
|
+
throw new common_1.NotFoundException('No user from google');
|
|
76
|
+
}
|
|
77
|
+
console.log('request', request);
|
|
78
|
+
let url = process.env.FRONT_BASE_URL + '/auth/sign-in';
|
|
79
|
+
if (!request.user || !request.user.token) {
|
|
80
|
+
return `${url}?error=AuthenticationError`;
|
|
81
|
+
}
|
|
82
|
+
url += `?token=${request.user.token}`;
|
|
83
|
+
if (request.user.newUser) {
|
|
84
|
+
url += '&newUser=true';
|
|
85
|
+
}
|
|
86
|
+
return url;
|
|
87
|
+
};
|
|
88
|
+
exports.buildGoogleOauthRedirectUrl = buildGoogleOauthRedirectUrl;
|
|
89
|
+
//# sourceMappingURL=oauth-redirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-redirect.js","sourceRoot":"","sources":["../../../src/lib/services/oauth-redirect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAmD;AACnD,iDAAmC;AAC5B,MAAM,qBAAqB,GAAG,CAAC,OAQrC,EAAU,EAAE;IACX,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,eAAe,CAAC;IAEvD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACzC,OAAO,GAAG,GAAG,4BAA4B,CAAC;IAC5C,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC;IAMhE,IACE,WAAW;QACX,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC;QAC3C,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC1B,CAAC;QACD,GAAG,GAAG,WAAW,CAAC;IACpB,CAAC;IAED,GAAG,IAAI,UAAU,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAEtC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACzB,GAAG,IAAI,eAAe,CAAC;IACzB,CAAC;IAMD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC;IAChE,IAAI,WAAW,EAAE,CAAC;QAChB,GAAG,IAAI,SAAS,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;IAClD,IAAI,IAAI,EAAE,CAAC;QACT,GAAG,IAAI,SAAS,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC;IACxE,IAAI,eAAe,EAAE,CAAC;QACpB,GAAG,IAAI,oBAAoB,eAAe,EAAE,CAAC;IAC/C,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC;IAChE,IAAI,WAAW,EAAE,CAAC;QAChB,GAAG,IAAI,gBAAgB,WAAW,EAAE,CAAC;IACvC,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AA5DW,QAAA,qBAAqB,yBA4DhC;AAEK,MAAM,2BAA2B,GAAG,CAAC,OAY3C,EAAU,EAAE;IACX,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,0BAAiB,CAAC,qBAAqB,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAChC,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,eAAe,CAAC;IAEvD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACzC,OAAO,GAAG,GAAG,4BAA4B,CAAC;IAC5C,CAAC;IAED,GAAG,IAAI,UAAU,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAEtC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACzB,GAAG,IAAI,eAAe,CAAC;IACzB,CAAC;IAiBD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AA7CW,QAAA,2BAA2B,+BA6CtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type CustomDataType = {
|
|
2
|
+
[key: string]: string | string[] | boolean | number | undefined;
|
|
3
|
+
};
|
|
4
|
+
export declare const WOLF_ENCRYPTION_SUB_MASK = "sk.";
|
|
5
|
+
export type EncryptedSecret = `${typeof WOLF_ENCRYPTION_SUB_MASK}${string}`;
|
|
6
|
+
export interface IResponseError {
|
|
7
|
+
error: string;
|
|
8
|
+
message: string;
|
|
9
|
+
statusCode: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/shared/index.ts"],"names":[],"mappings":";;;AAIa,QAAA,wBAAwB,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AreaLevelEnums = void 0;
|
|
4
|
+
var AreaLevelEnums;
|
|
5
|
+
(function (AreaLevelEnums) {
|
|
6
|
+
AreaLevelEnums["COUNTRY"] = "1";
|
|
7
|
+
AreaLevelEnums["PROVINCE"] = "2";
|
|
8
|
+
AreaLevelEnums["DISTRICT"] = "3";
|
|
9
|
+
AreaLevelEnums["WARD"] = "4";
|
|
10
|
+
})(AreaLevelEnums || (exports.AreaLevelEnums = AreaLevelEnums = {}));
|
|
11
|
+
//# sourceMappingURL=area-level.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-level.enums.js","sourceRoot":"","sources":["../../../../src/lib/types/area/area-level.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,gCAAc,CAAA;IACd,gCAAc,CAAA;IACd,4BAAU,CAAA;AACZ,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './area-level.enums';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./area-level.enums"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/area/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArticleStatusEnum = void 0;
|
|
4
|
+
var ArticleStatusEnum;
|
|
5
|
+
(function (ArticleStatusEnum) {
|
|
6
|
+
ArticleStatusEnum["DRAFT"] = "DRAFT";
|
|
7
|
+
ArticleStatusEnum["VISIBLE"] = "VISIBLE";
|
|
8
|
+
ArticleStatusEnum["INVISIBLE"] = "INVISIBLE";
|
|
9
|
+
})(ArticleStatusEnum || (exports.ArticleStatusEnum = ArticleStatusEnum = {}));
|
|
10
|
+
//# sourceMappingURL=article-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"article-status.enum.js","sourceRoot":"","sources":["../../../../src/lib/types/article/article-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./up-down-vote-type.enum"), exports);
|
|
18
|
+
__exportStar(require("./article-status.enum"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/article/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,2DAAyC;AACzC,wDAAsC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpDownVoteTypeEnum = void 0;
|
|
4
|
+
var UpDownVoteTypeEnum;
|
|
5
|
+
(function (UpDownVoteTypeEnum) {
|
|
6
|
+
UpDownVoteTypeEnum["UPVOTE"] = "UPVOTE";
|
|
7
|
+
UpDownVoteTypeEnum["DOWNVOTE"] = "DOWNVOTE";
|
|
8
|
+
})(UpDownVoteTypeEnum || (exports.UpDownVoteTypeEnum = UpDownVoteTypeEnum = {}));
|
|
9
|
+
//# sourceMappingURL=up-down-vote-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"up-down-vote-type.enum.js","sourceRoot":"","sources":["../../../../src/lib/types/article/up-down-vote-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;AACvB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UserPlan } from '../user';
|
|
2
|
+
export interface IJwtPayload {
|
|
3
|
+
id: string;
|
|
4
|
+
firstName?: string;
|
|
5
|
+
lastName?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
profilePicture?: string;
|
|
8
|
+
organizationId: string;
|
|
9
|
+
environmentId: string;
|
|
10
|
+
roles: string[];
|
|
11
|
+
exp: number;
|
|
12
|
+
plan: UserPlan;
|
|
13
|
+
}
|
|
14
|
+
export declare enum ApiAuthSchemeEnum {
|
|
15
|
+
BEARER = "Bearer",
|
|
16
|
+
API_KEY = "ApiKey"
|
|
17
|
+
}
|
|
18
|
+
export declare enum PassportStrategyEnum {
|
|
19
|
+
JWT = "jwt",
|
|
20
|
+
HEADER_API_KEY = "apikey",
|
|
21
|
+
GITHUB = "github",
|
|
22
|
+
GOOGLE = "google",
|
|
23
|
+
GOOGLE_ONE_TAP = "google-one-tap",
|
|
24
|
+
LOCAL = "local"
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PassportStrategyEnum = exports.ApiAuthSchemeEnum = void 0;
|
|
4
|
+
var ApiAuthSchemeEnum;
|
|
5
|
+
(function (ApiAuthSchemeEnum) {
|
|
6
|
+
ApiAuthSchemeEnum["BEARER"] = "Bearer";
|
|
7
|
+
ApiAuthSchemeEnum["API_KEY"] = "ApiKey";
|
|
8
|
+
})(ApiAuthSchemeEnum || (exports.ApiAuthSchemeEnum = ApiAuthSchemeEnum = {}));
|
|
9
|
+
var PassportStrategyEnum;
|
|
10
|
+
(function (PassportStrategyEnum) {
|
|
11
|
+
PassportStrategyEnum["JWT"] = "jwt";
|
|
12
|
+
PassportStrategyEnum["HEADER_API_KEY"] = "apikey";
|
|
13
|
+
PassportStrategyEnum["GITHUB"] = "github";
|
|
14
|
+
PassportStrategyEnum["GOOGLE"] = "google";
|
|
15
|
+
PassportStrategyEnum["GOOGLE_ONE_TAP"] = "google-one-tap";
|
|
16
|
+
PassportStrategyEnum["LOCAL"] = "local";
|
|
17
|
+
})(PassportStrategyEnum || (exports.PassportStrategyEnum = PassportStrategyEnum = {}));
|
|
18
|
+
//# sourceMappingURL=auth.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../../src/lib/types/auth/auth.types.ts"],"names":[],"mappings":";;;AAeA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,uCAAkB,CAAA;AACpB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,iDAAyB,CAAA;IACzB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yDAAiC,CAAA;IACjC,uCAAe,CAAA;AACjB,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './auth.types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth.types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './user';
|
|
2
|
+
export * from './auth';
|
|
3
|
+
export * from './area';
|
|
4
|
+
export * from './post';
|
|
5
|
+
export * from './investor';
|
|
6
|
+
export * from './project';
|
|
7
|
+
export * from './pagination';
|
|
8
|
+
export * from './article';
|
|
9
|
+
export * from './tag';
|
|
10
|
+
export * from './wallet';
|
|
11
|
+
export * from './notification';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./user"), exports);
|
|
18
|
+
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./area"), exports);
|
|
20
|
+
__exportStar(require("./post"), exports);
|
|
21
|
+
__exportStar(require("./investor"), exports);
|
|
22
|
+
__exportStar(require("./project"), exports);
|
|
23
|
+
__exportStar(require("./pagination"), exports);
|
|
24
|
+
__exportStar(require("./article"), exports);
|
|
25
|
+
__exportStar(require("./tag"), exports);
|
|
26
|
+
__exportStar(require("./wallet"), exports);
|
|
27
|
+
__exportStar(require("./notification"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,wCAAsB;AACtB,2CAAyB;AACzB,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './investor.types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./investor.types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/investor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InvestorId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"investor.types.js","sourceRoot":"","sources":["../../../../src/lib/types/investor/investor.types.ts"],"names":[],"mappings":""}
|