Delete real-estate
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- real-estate/.eslintrc.js +0 -25
- real-estate/.gitignore +0 -56
- real-estate/.prettierrc +0 -4
- real-estate/README.md +0 -85
- real-estate/dist/app.controller.d.ts +0 -6
- real-estate/dist/app.controller.js +0 -34
- real-estate/dist/app.controller.js.map +0 -1
- real-estate/dist/app.module.d.ts +0 -2
- real-estate/dist/app.module.js +0 -27
- real-estate/dist/app.module.js.map +0 -1
- real-estate/dist/app.service.d.ts +0 -3
- real-estate/dist/app.service.js +0 -20
- real-estate/dist/app.service.js.map +0 -1
- real-estate/dist/constants/collections.constant.d.ts +0 -3
- real-estate/dist/constants/collections.constant.js +0 -7
- real-estate/dist/constants/collections.constant.js.map +0 -1
- real-estate/dist/constants/index.d.ts +0 -2
- real-estate/dist/constants/index.js +0 -19
- real-estate/dist/constants/index.js.map +0 -1
- real-estate/dist/constants/jwt.constant.d.ts +0 -4
- real-estate/dist/constants/jwt.constant.js +0 -8
- real-estate/dist/constants/jwt.constant.js.map +0 -1
- real-estate/dist/constants/repository.constant.d.ts +0 -3
- real-estate/dist/constants/repository.constant.js +0 -7
- real-estate/dist/constants/repository.constant.js.map +0 -1
- real-estate/dist/locales/en.d.ts +0 -9
- real-estate/dist/locales/en.js +0 -13
- real-estate/dist/locales/en.js.map +0 -1
- real-estate/dist/main.d.ts +0 -1
- real-estate/dist/main.js +0 -20
- real-estate/dist/main.js.map +0 -1
- real-estate/dist/modules/activity/activity.controller.d.ts +0 -12
- real-estate/dist/modules/activity/activity.controller.js +0 -115
- real-estate/dist/modules/activity/activity.controller.js.map +0 -1
- real-estate/dist/modules/activity/activity.module.d.ts +0 -2
- real-estate/dist/modules/activity/activity.module.js +0 -26
- real-estate/dist/modules/activity/activity.module.js.map +0 -1
- real-estate/dist/modules/activity/activity.provider.d.ts +0 -12
- real-estate/dist/modules/activity/activity.provider.js +0 -13
- real-estate/dist/modules/activity/activity.provider.js.map +0 -1
- real-estate/dist/modules/activity/activity.schema.d.ts +0 -20
- real-estate/dist/modules/activity/activity.schema.js +0 -24
- real-estate/dist/modules/activity/activity.schema.js.map +0 -1
- real-estate/dist/modules/activity/activity.service.d.ts +0 -8
- real-estate/dist/modules/activity/activity.service.js +0 -35
- real-estate/dist/modules/activity/activity.service.js.map +0 -1
- real-estate/dist/modules/auth/auth.controller.d.ts +0 -11
- real-estate/dist/modules/auth/auth.controller.js +0 -87
- real-estate/dist/modules/auth/auth.controller.js.map +0 -1
- real-estate/dist/modules/auth/auth.module.d.ts +0 -2
real-estate/.eslintrc.js
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
module.exports = {
|
2 |
-
parser: '@typescript-eslint/parser',
|
3 |
-
parserOptions: {
|
4 |
-
project: 'tsconfig.json',
|
5 |
-
tsconfigRootDir: __dirname,
|
6 |
-
sourceType: 'module',
|
7 |
-
},
|
8 |
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
9 |
-
extends: [
|
10 |
-
'plugin:@typescript-eslint/recommended',
|
11 |
-
'plugin:prettier/recommended',
|
12 |
-
],
|
13 |
-
root: true,
|
14 |
-
env: {
|
15 |
-
node: true,
|
16 |
-
jest: true,
|
17 |
-
},
|
18 |
-
ignorePatterns: ['.eslintrc.js'],
|
19 |
-
rules: {
|
20 |
-
'@typescript-eslint/interface-name-prefix': 'off',
|
21 |
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
22 |
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
23 |
-
'@typescript-eslint/no-explicit-any': 'off',
|
24 |
-
},
|
25 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/.gitignore
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
# compiled output
|
2 |
-
/dist
|
3 |
-
/node_modules
|
4 |
-
/build
|
5 |
-
|
6 |
-
# Logs
|
7 |
-
logs
|
8 |
-
*.log
|
9 |
-
npm-debug.log*
|
10 |
-
pnpm-debug.log*
|
11 |
-
yarn-debug.log*
|
12 |
-
yarn-error.log*
|
13 |
-
lerna-debug.log*
|
14 |
-
|
15 |
-
# OS
|
16 |
-
.DS_Store
|
17 |
-
|
18 |
-
# Tests
|
19 |
-
/coverage
|
20 |
-
/.nyc_output
|
21 |
-
|
22 |
-
# IDEs and editors
|
23 |
-
/.idea
|
24 |
-
.project
|
25 |
-
.classpath
|
26 |
-
.c9/
|
27 |
-
*.launch
|
28 |
-
.settings/
|
29 |
-
*.sublime-workspace
|
30 |
-
|
31 |
-
# IDE - VSCode
|
32 |
-
.vscode/*
|
33 |
-
!.vscode/settings.json
|
34 |
-
!.vscode/tasks.json
|
35 |
-
!.vscode/launch.json
|
36 |
-
!.vscode/extensions.json
|
37 |
-
|
38 |
-
# dotenv environment variable files
|
39 |
-
.env
|
40 |
-
.env.development.local
|
41 |
-
.env.test.local
|
42 |
-
.env.production.local
|
43 |
-
.env.local
|
44 |
-
|
45 |
-
# temp directory
|
46 |
-
.temp
|
47 |
-
.tmp
|
48 |
-
|
49 |
-
# Runtime data
|
50 |
-
pids
|
51 |
-
*.pid
|
52 |
-
*.seed
|
53 |
-
*.pid.lock
|
54 |
-
|
55 |
-
# Diagnostic reports (https://nodejs.org/api/report.html)
|
56 |
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/.prettierrc
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"singleQuote": true,
|
3 |
-
"trailingComma": "all"
|
4 |
-
}
|
|
|
|
|
|
|
|
|
|
real-estate/README.md
DELETED
@@ -1,85 +0,0 @@
|
|
1 |
-
<p align="center">
|
2 |
-
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
|
3 |
-
</p>
|
4 |
-
|
5 |
-
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
6 |
-
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
7 |
-
|
8 |
-
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
9 |
-
<p align="center">
|
10 |
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
11 |
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
12 |
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
13 |
-
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
14 |
-
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
15 |
-
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
16 |
-
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
17 |
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
18 |
-
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
|
19 |
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
20 |
-
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
|
21 |
-
</p>
|
22 |
-
<!--[](https://opencollective.com/nest#backer)
|
23 |
-
[](https://opencollective.com/nest#sponsor)-->
|
24 |
-
|
25 |
-
## Description
|
26 |
-
|
27 |
-
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
28 |
-
|
29 |
-
## Project setup
|
30 |
-
|
31 |
-
```bash
|
32 |
-
$ npm install
|
33 |
-
```
|
34 |
-
|
35 |
-
## Compile and run the project
|
36 |
-
|
37 |
-
```bash
|
38 |
-
# development
|
39 |
-
$ npm run start
|
40 |
-
|
41 |
-
# watch mode
|
42 |
-
$ npm run start:dev
|
43 |
-
|
44 |
-
# production mode
|
45 |
-
$ npm run start:prod
|
46 |
-
```
|
47 |
-
|
48 |
-
## Run tests
|
49 |
-
|
50 |
-
```bash
|
51 |
-
# unit tests
|
52 |
-
$ npm run test
|
53 |
-
|
54 |
-
# e2e tests
|
55 |
-
$ npm run test:e2e
|
56 |
-
|
57 |
-
# test coverage
|
58 |
-
$ npm run test:cov
|
59 |
-
```
|
60 |
-
|
61 |
-
## Resources
|
62 |
-
|
63 |
-
Check out a few resources that may come in handy when working with NestJS:
|
64 |
-
|
65 |
-
- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
|
66 |
-
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
|
67 |
-
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
|
68 |
-
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
|
69 |
-
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
|
70 |
-
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
|
71 |
-
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
|
72 |
-
|
73 |
-
## Support
|
74 |
-
|
75 |
-
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
76 |
-
|
77 |
-
## Stay in touch
|
78 |
-
|
79 |
-
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
|
80 |
-
- Website - [https://nestjs.com](https://nestjs.com/)
|
81 |
-
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
82 |
-
|
83 |
-
## License
|
84 |
-
|
85 |
-
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/app.controller.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
import { AppService } from './app.service';
|
2 |
-
export declare class AppController {
|
3 |
-
private readonly appService;
|
4 |
-
constructor(appService: AppService);
|
5 |
-
getHello(): string;
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/app.controller.js
DELETED
@@ -1,34 +0,0 @@
|
|
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.AppController = void 0;
|
13 |
-
const common_1 = require("@nestjs/common");
|
14 |
-
const app_service_1 = require("./app.service");
|
15 |
-
let AppController = class AppController {
|
16 |
-
constructor(appService) {
|
17 |
-
this.appService = appService;
|
18 |
-
}
|
19 |
-
getHello() {
|
20 |
-
return this.appService.getHello();
|
21 |
-
}
|
22 |
-
};
|
23 |
-
exports.AppController = AppController;
|
24 |
-
__decorate([
|
25 |
-
(0, common_1.Get)(),
|
26 |
-
__metadata("design:type", Function),
|
27 |
-
__metadata("design:paramtypes", []),
|
28 |
-
__metadata("design:returntype", String)
|
29 |
-
], AppController.prototype, "getHello", null);
|
30 |
-
exports.AppController = AppController = __decorate([
|
31 |
-
(0, common_1.Controller)(),
|
32 |
-
__metadata("design:paramtypes", [app_service_1.AppService])
|
33 |
-
], AppController);
|
34 |
-
//# sourceMappingURL=app.controller.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/app.controller.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAGvD,QAAQ;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;CACF,CAAA;AAPY,sCAAa;AAIxB;IADC,IAAA,YAAG,GAAE;;;;6CAGL;wBANU,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAE8B,wBAAU;GADxC,aAAa,CAOzB"}
|
|
|
|
real-estate/dist/app.module.d.ts
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
export declare class AppModule {
|
2 |
-
}
|
|
|
|
|
|
real-estate/dist/app.module.js
DELETED
@@ -1,27 +0,0 @@
|
|
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 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
9 |
-
exports.AppModule = void 0;
|
10 |
-
const common_1 = require("@nestjs/common");
|
11 |
-
const app_controller_1 = require("./app.controller");
|
12 |
-
const app_service_1 = require("./app.service");
|
13 |
-
const property_module_1 = require("./modules/property/property.module");
|
14 |
-
const auth_module_1 = require("./modules/auth/auth.module");
|
15 |
-
const user_module_1 = require("./modules/user/user.module");
|
16 |
-
const activity_module_1 = require("./modules/activity/activity.module");
|
17 |
-
let AppModule = class AppModule {
|
18 |
-
};
|
19 |
-
exports.AppModule = AppModule;
|
20 |
-
exports.AppModule = AppModule = __decorate([
|
21 |
-
(0, common_1.Module)({
|
22 |
-
imports: [property_module_1.PropertyModule, auth_module_1.AuthModule, user_module_1.UserModule, activity_module_1.ActivityModule],
|
23 |
-
controllers: [app_controller_1.AppController],
|
24 |
-
providers: [app_service_1.AppService],
|
25 |
-
})
|
26 |
-
], AppModule);
|
27 |
-
//# sourceMappingURL=app.module.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/app.module.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,wEAAoE;AACpE,4DAAwD;AACxD,4DAAwD;AACxD,wEAAoE;AAO7D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IALrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAc,EAAE,wBAAU,EAAE,wBAAU,EAAE,gCAAc,CAAC;QACjE,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG"}
|
|
|
|
real-estate/dist/app.service.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
export declare class AppService {
|
2 |
-
getHello(): string;
|
3 |
-
}
|
|
|
|
|
|
|
|
real-estate/dist/app.service.js
DELETED
@@ -1,20 +0,0 @@
|
|
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 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
9 |
-
exports.AppService = void 0;
|
10 |
-
const common_1 = require("@nestjs/common");
|
11 |
-
let AppService = class AppService {
|
12 |
-
getHello() {
|
13 |
-
return 'Hello World!';
|
14 |
-
}
|
15 |
-
};
|
16 |
-
exports.AppService = AppService;
|
17 |
-
exports.AppService = AppService = __decorate([
|
18 |
-
(0, common_1.Injectable)()
|
19 |
-
], AppService);
|
20 |
-
//# sourceMappingURL=app.service.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/app.service.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../src/app.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,QAAQ;QACN,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAJY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;GACA,UAAU,CAItB"}
|
|
|
|
real-estate/dist/constants/collections.constant.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
export declare const PROPERTIE = "propertie";
|
2 |
-
export declare const USERS = "users";
|
3 |
-
export declare const ACTIVITY = "activity";
|
|
|
|
|
|
|
|
real-estate/dist/constants/collections.constant.js
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.ACTIVITY = exports.USERS = exports.PROPERTIE = void 0;
|
4 |
-
exports.PROPERTIE = 'propertie';
|
5 |
-
exports.USERS = 'users';
|
6 |
-
exports.ACTIVITY = 'activity';
|
7 |
-
//# sourceMappingURL=collections.constant.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/constants/collections.constant.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"collections.constant.js","sourceRoot":"","sources":["../../src/constants/collections.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,QAAQ,GAAG,UAAU,CAAC"}
|
|
|
|
real-estate/dist/constants/index.d.ts
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
export * from './collections.constant';
|
2 |
-
export * from './repository.constant';
|
|
|
|
|
|
real-estate/dist/constants/index.js
DELETED
@@ -1,19 +0,0 @@
|
|
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("./collections.constant"), exports);
|
18 |
-
__exportStar(require("./repository.constant"), exports);
|
19 |
-
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/constants/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,wDAAqC"}
|
|
|
|
real-estate/dist/constants/jwt.constant.d.ts
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
export declare const jwtConstants: {
|
2 |
-
secret: string;
|
3 |
-
salt: number;
|
4 |
-
};
|
|
|
|
|
|
|
|
|
|
real-estate/dist/constants/jwt.constant.js
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.jwtConstants = void 0;
|
4 |
-
exports.jwtConstants = {
|
5 |
-
secret: "secretKey",
|
6 |
-
salt: 10
|
7 |
-
};
|
8 |
-
//# sourceMappingURL=jwt.constant.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/constants/jwt.constant.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"jwt.constant.js","sourceRoot":"","sources":["../../src/constants/jwt.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IACxB,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,EAAE;CACX,CAAC"}
|
|
|
|
real-estate/dist/constants/repository.constant.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
export declare const PROPERTY_REPOSITORY = "PROPERTY_REPOSITORY";
|
2 |
-
export declare const USER_REPOSITORY = "USER_REPOSITORY";
|
3 |
-
export declare const ACTIVITY_REPOSITORY = "ACTIVITY_REPOSITORY";
|
|
|
|
|
|
|
|
real-estate/dist/constants/repository.constant.js
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.ACTIVITY_REPOSITORY = exports.USER_REPOSITORY = exports.PROPERTY_REPOSITORY = void 0;
|
4 |
-
exports.PROPERTY_REPOSITORY = 'PROPERTY_REPOSITORY';
|
5 |
-
exports.USER_REPOSITORY = 'USER_REPOSITORY';
|
6 |
-
exports.ACTIVITY_REPOSITORY = 'ACTIVITY_REPOSITORY';
|
7 |
-
//# sourceMappingURL=repository.constant.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/constants/repository.constant.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"repository.constant.js","sourceRoot":"","sources":["../../src/constants/repository.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,mBAAmB,GAAG,qBAAqB,CAAC"}
|
|
|
|
real-estate/dist/locales/en.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
export declare const en: {
|
2 |
-
Success: string;
|
3 |
-
Error: string;
|
4 |
-
adminVerificationFaild: string;
|
5 |
-
friendAdded: string;
|
6 |
-
reqRejected: string;
|
7 |
-
friendReqSent: string;
|
8 |
-
userAlreadyExist: string;
|
9 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/locales/en.js
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.en = void 0;
|
4 |
-
exports.en = {
|
5 |
-
Success: 'Operation is completed Success',
|
6 |
-
Error: 'Something Went Wrong',
|
7 |
-
adminVerificationFaild: 'Admin key verification failed',
|
8 |
-
friendAdded: 'Friend added Successfully.',
|
9 |
-
reqRejected: 'Friend request declined.',
|
10 |
-
friendReqSent: 'Friend request sent Successfully.',
|
11 |
-
userAlreadyExist: 'User already exist.',
|
12 |
-
};
|
13 |
-
//# sourceMappingURL=en.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/locales/en.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":";;;AAAa,QAAA,EAAE,GAAG;IAChB,OAAO,EAAE,gCAAgC;IACzC,KAAK,EAAE,sBAAsB;IAC7B,sBAAsB,EAAE,+BAA+B;IACvD,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,0BAA0B;IACvC,aAAa,EAAE,mCAAmC;IAClD,gBAAgB,EAAE,qBAAqB;CACxC,CAAC"}
|
|
|
|
real-estate/dist/main.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
export {};
|
|
|
|
real-estate/dist/main.js
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
const core_1 = require("@nestjs/core");
|
4 |
-
const app_module_1 = require("./app.module");
|
5 |
-
const bodyParser = require("body-parser");
|
6 |
-
const common_1 = require("@nestjs/common");
|
7 |
-
async function bootstrap() {
|
8 |
-
const app = await core_1.NestFactory.create(app_module_1.AppModule);
|
9 |
-
app.useGlobalPipes(new common_1.ValidationPipe());
|
10 |
-
app.enableCors({
|
11 |
-
origin: '*',
|
12 |
-
methods: '*',
|
13 |
-
credentials: true,
|
14 |
-
});
|
15 |
-
app.use(bodyParser.urlencoded({ extended: true }));
|
16 |
-
app.use(bodyParser.json());
|
17 |
-
await app.listen(8080);
|
18 |
-
}
|
19 |
-
bootstrap();
|
20 |
-
//# sourceMappingURL=main.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/main.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAyC;AACzC,0CAA0C;AAC1C,2CAAgD;AAEhD,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAEhD,GAAG,CAAC,cAAc,CAAC,IAAI,uBAAc,EAAE,CAAC,CAAC;IAGzC,GAAG,CAAC,UAAU,CAAC;QACb,MAAM,EAAE,GAAG;QAEX,OAAO,EAAE,GAAG;QACZ,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IAEH,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;IAE3B,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AACD,SAAS,EAAE,CAAC"}
|
|
|
|
real-estate/dist/modules/activity/activity.controller.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
import { Response } from 'express';
|
2 |
-
import { CommonServices } from '../shared/common.service';
|
3 |
-
import { ActivityService } from './activity.service';
|
4 |
-
import { PropertyService } from '../property/property.service';
|
5 |
-
export declare class ActivityController extends CommonServices {
|
6 |
-
private readonly activityService;
|
7 |
-
private readonly propertyService;
|
8 |
-
constructor(activityService: ActivityService, propertyService: PropertyService);
|
9 |
-
createActivity(body: any, res: Response, req: any): Promise<any>;
|
10 |
-
getActivityListings(res: Response, req: any): Promise<any>;
|
11 |
-
updateActivity(body: any, res: Response, req: any): Promise<any>;
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.controller.js
DELETED
@@ -1,115 +0,0 @@
|
|
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 |
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12 |
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13 |
-
};
|
14 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15 |
-
exports.ActivityController = void 0;
|
16 |
-
const common_1 = require("@nestjs/common");
|
17 |
-
const common_service_1 = require("../shared/common.service");
|
18 |
-
const activity_service_1 = require("./activity.service");
|
19 |
-
const jwt_auth_guard_1 = require("../auth/jwt-auth.guard");
|
20 |
-
const property_service_1 = require("../property/property.service");
|
21 |
-
let ActivityController = class ActivityController extends common_service_1.CommonServices {
|
22 |
-
constructor(activityService, propertyService) {
|
23 |
-
super();
|
24 |
-
this.activityService = activityService;
|
25 |
-
this.propertyService = propertyService;
|
26 |
-
}
|
27 |
-
async createActivity(body, res, req) {
|
28 |
-
try {
|
29 |
-
const payload = {
|
30 |
-
...body,
|
31 |
-
userId: req.user.userId,
|
32 |
-
};
|
33 |
-
const activity = await this.activityService.sharedCreate(payload);
|
34 |
-
if (body.action == 'view')
|
35 |
-
await this.propertyService.sharedFindOneAndUpdate({ _id: body.propertyId }, {
|
36 |
-
$inc: { views: 1 },
|
37 |
-
}, {});
|
38 |
-
if (body.action == 'time_spent')
|
39 |
-
await this.propertyService.sharedFindOneAndUpdate({ _id: body.propertyId }, {
|
40 |
-
$inc: { total_time_spent: body.duration || 0 },
|
41 |
-
}, {});
|
42 |
-
return this.sendResponse(this.messages.Success, activity, common_1.HttpStatus.OK, res);
|
43 |
-
}
|
44 |
-
catch (error) {
|
45 |
-
console.log(error);
|
46 |
-
return this.sendResponse('Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res);
|
47 |
-
}
|
48 |
-
}
|
49 |
-
async getActivityListings(res, req) {
|
50 |
-
try {
|
51 |
-
const response = await this.activityService.sharedFind({});
|
52 |
-
return this.sendResponse(this.messages.Success, response, common_1.HttpStatus.OK, res);
|
53 |
-
}
|
54 |
-
catch (error) {
|
55 |
-
return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res);
|
56 |
-
}
|
57 |
-
}
|
58 |
-
async updateActivity(body, res, req) {
|
59 |
-
try {
|
60 |
-
const existingActivity = await this.activityService.sharedFindOne({
|
61 |
-
userId: body.userId,
|
62 |
-
propertyId: body.propertyId,
|
63 |
-
action: body.action,
|
64 |
-
});
|
65 |
-
if (existingActivity) {
|
66 |
-
const updatedActivity = await this.activityService.sharedUpdate({ _id: existingActivity._id }, {
|
67 |
-
duration: body.duration ? body.duration : existingActivity.duration,
|
68 |
-
timestamp: new Date(),
|
69 |
-
});
|
70 |
-
return this.sendResponse(this.messages.Success, updatedActivity, common_1.HttpStatus.OK, res);
|
71 |
-
}
|
72 |
-
else {
|
73 |
-
return this.sendResponse('Activity not found', {}, common_1.HttpStatus.NOT_FOUND, res);
|
74 |
-
}
|
75 |
-
}
|
76 |
-
catch (error) {
|
77 |
-
return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res);
|
78 |
-
}
|
79 |
-
}
|
80 |
-
};
|
81 |
-
exports.ActivityController = ActivityController;
|
82 |
-
__decorate([
|
83 |
-
(0, common_1.Post)('create'),
|
84 |
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
85 |
-
__param(0, (0, common_1.Body)()),
|
86 |
-
__param(1, (0, common_1.Res)()),
|
87 |
-
__param(2, (0, common_1.Req)()),
|
88 |
-
__metadata("design:type", Function),
|
89 |
-
__metadata("design:paramtypes", [Object, Object, Object]),
|
90 |
-
__metadata("design:returntype", Promise)
|
91 |
-
], ActivityController.prototype, "createActivity", null);
|
92 |
-
__decorate([
|
93 |
-
(0, common_1.Get)(''),
|
94 |
-
__param(0, (0, common_1.Res)()),
|
95 |
-
__param(1, (0, common_1.Req)()),
|
96 |
-
__metadata("design:type", Function),
|
97 |
-
__metadata("design:paramtypes", [Object, Object]),
|
98 |
-
__metadata("design:returntype", Promise)
|
99 |
-
], ActivityController.prototype, "getActivityListings", null);
|
100 |
-
__decorate([
|
101 |
-
(0, common_1.Patch)('update'),
|
102 |
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
103 |
-
__param(0, (0, common_1.Body)()),
|
104 |
-
__param(1, (0, common_1.Res)()),
|
105 |
-
__param(2, (0, common_1.Req)()),
|
106 |
-
__metadata("design:type", Function),
|
107 |
-
__metadata("design:paramtypes", [Object, Object, Object]),
|
108 |
-
__metadata("design:returntype", Promise)
|
109 |
-
], ActivityController.prototype, "updateActivity", null);
|
110 |
-
exports.ActivityController = ActivityController = __decorate([
|
111 |
-
(0, common_1.Controller)('activity'),
|
112 |
-
__metadata("design:paramtypes", [activity_service_1.ActivityService,
|
113 |
-
property_service_1.PropertyService])
|
114 |
-
], ActivityController);
|
115 |
-
//# sourceMappingURL=activity.controller.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.controller.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"activity.controller.js","sourceRoot":"","sources":["../../../src/modules/activity/activity.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AAExB,6DAA0D;AAC1D,yDAAqD;AACrD,2DAAsD;AACtD,mEAA+D;AAGxD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAAc;IACpD,YACmB,eAAgC,EAChC,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,oBAAe,GAAf,eAAe,CAAiB;QAChC,oBAAe,GAAf,eAAe,CAAiB;IAGnD,CAAC;IAIK,AAAN,KAAK,CAAC,cAAc,CAAS,IAAS,EAAS,GAAa,EAAS,GAAG;QACtE,IAAI,CAAC;YACH,MAAM,OAAO,GAAG;gBACd,GAAG,IAAI;gBACP,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM;aACxB,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAGlE,IAAI,IAAI,CAAC,MAAM,IAAI,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AAiB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;wDA2CnE;AAGK;IADL,IAAA,YAAG,EAAC,EAAE,CAAC;IACmB,WAAA,IAAA,YAAG,GAAE,CAAA;IAAiB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6DAiBrD;AAKK;IAFL,IAAA,cAAK,EAAC,QAAQ,CAAC;IACf,IAAA,kBAAS,EAAC,6BAAY,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;wDA2CP;6BA5HU,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAGe,kCAAe;QACf,kCAAe;GAHxC,kBAAkB,CA6H9B"}
|
|
|
|
real-estate/dist/modules/activity/activity.module.d.ts
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
export declare class ActivityModule {
|
2 |
-
}
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.module.js
DELETED
@@ -1,26 +0,0 @@
|
|
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 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
9 |
-
exports.ActivityModule = void 0;
|
10 |
-
const common_1 = require("@nestjs/common");
|
11 |
-
const database_module_1 = require("../database/database.module");
|
12 |
-
const activity_controller_1 = require("./activity.controller");
|
13 |
-
const activity_service_1 = require("./activity.service");
|
14 |
-
const property_service_1 = require("../property/property.service");
|
15 |
-
let ActivityModule = class ActivityModule {
|
16 |
-
};
|
17 |
-
exports.ActivityModule = ActivityModule;
|
18 |
-
exports.ActivityModule = ActivityModule = __decorate([
|
19 |
-
(0, common_1.Module)({
|
20 |
-
imports: [database_module_1.DatabaseModule],
|
21 |
-
controllers: [activity_controller_1.ActivityController],
|
22 |
-
providers: [activity_service_1.ActivityService, property_service_1.PropertyService],
|
23 |
-
exports: [activity_service_1.ActivityService, property_service_1.PropertyService],
|
24 |
-
})
|
25 |
-
], ActivityModule);
|
26 |
-
//# sourceMappingURL=activity.module.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.module.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"activity.module.js","sourceRoot":"","sources":["../../../src/modules/activity/activity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iEAA6D;AAC7D,+DAA2D;AAC3D,yDAAqD;AACrD,mEAA+D;AAQxD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAN1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAc,CAAC;QACzB,WAAW,EAAE,CAAC,wCAAkB,CAAC;QACjC,SAAS,EAAE,CAAC,kCAAe,EAAE,kCAAe,CAAC;QAC7C,OAAO,EAAE,CAAC,kCAAe,EAAE,kCAAe,CAAC;KAC5C,CAAC;GACW,cAAc,CAAG"}
|
|
|
|
real-estate/dist/modules/activity/activity.provider.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
import { Connection } from 'mongoose';
|
2 |
-
export declare const activityProviders: {
|
3 |
-
provide: string;
|
4 |
-
useFactory: (connection: Connection) => import("mongoose").Model<import("./activity.schema").IUserActivityDocument, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./activity.schema").IUserActivityDocument> & import("./activity.schema").IUserActivityDocument & Required<{
|
5 |
-
_id: unknown;
|
6 |
-
}>, import("mongoose").Schema<import("./activity.schema").IUserActivityDocument, import("mongoose").Model<import("./activity.schema").IUserActivityDocument, any, any, any, import("mongoose").Document<unknown, any, import("./activity.schema").IUserActivityDocument> & import("./activity.schema").IUserActivityDocument & Required<{
|
7 |
-
_id: unknown;
|
8 |
-
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, import("./activity.schema").IUserActivityDocument, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<import("./activity.schema").IUserActivityDocument>> & import("mongoose").FlatRecord<import("./activity.schema").IUserActivityDocument> & Required<{
|
9 |
-
_id: unknown;
|
10 |
-
}>>>;
|
11 |
-
inject: string[];
|
12 |
-
}[];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.provider.js
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.activityProviders = void 0;
|
4 |
-
const constants_1 = require("../../constants");
|
5 |
-
const activity_schema_1 = require("./activity.schema");
|
6 |
-
exports.activityProviders = [
|
7 |
-
{
|
8 |
-
provide: constants_1.ACTIVITY_REPOSITORY,
|
9 |
-
useFactory: (connection) => connection.model(constants_1.ACTIVITY, activity_schema_1.UserActivitySchema),
|
10 |
-
inject: ['DATABASE_CONNECTION'],
|
11 |
-
},
|
12 |
-
];
|
13 |
-
//# sourceMappingURL=activity.provider.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.provider.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"activity.provider.js","sourceRoot":"","sources":["../../../src/modules/activity/activity.provider.ts"],"names":[],"mappings":";;;AACA,+CAA8D;AAC9D,uDAAuD;AAE1C,QAAA,iBAAiB,GAAG;IAC/B;QACE,OAAO,EAAE,+BAAmB;QAC5B,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,oBAAQ,EAAE,oCAAkB,CAAC;QAChD,MAAM,EAAE,CAAC,qBAAqB,CAAC;KAChC;CACF,CAAC"}
|
|
|
|
real-estate/dist/modules/activity/activity.schema.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
import * as mongoose from 'mongoose';
|
2 |
-
import { Document } from 'mongoose';
|
3 |
-
import { IUserDocument } from '../user/user.schema';
|
4 |
-
import { IPropertyDocument } from '../property/property.schema';
|
5 |
-
export interface IUserActivityDocument extends Document {
|
6 |
-
userId: IUserDocument;
|
7 |
-
propertyId: IPropertyDocument;
|
8 |
-
action: string;
|
9 |
-
sessionId: string;
|
10 |
-
id: string;
|
11 |
-
timestamp: Date;
|
12 |
-
duration?: number;
|
13 |
-
searchQuery?: string;
|
14 |
-
}
|
15 |
-
declare const UserActivitySchema: mongoose.Schema<IUserActivityDocument, mongoose.Model<IUserActivityDocument, any, any, any, mongoose.Document<unknown, any, IUserActivityDocument> & IUserActivityDocument & Required<{
|
16 |
-
_id: unknown;
|
17 |
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserActivityDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserActivityDocument>> & mongoose.FlatRecord<IUserActivityDocument> & Required<{
|
18 |
-
_id: unknown;
|
19 |
-
}>>;
|
20 |
-
export { UserActivitySchema };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.schema.js
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
-
exports.UserActivitySchema = void 0;
|
4 |
-
const mongoose = require("mongoose");
|
5 |
-
const UserActivitySchema = new mongoose.Schema({
|
6 |
-
userId: {
|
7 |
-
type: mongoose.Schema.Types.ObjectId,
|
8 |
-
ref: 'User',
|
9 |
-
},
|
10 |
-
propertyId: {
|
11 |
-
type: mongoose.Schema.Types.ObjectId,
|
12 |
-
ref: 'propertie',
|
13 |
-
},
|
14 |
-
action: { type: String, required: true },
|
15 |
-
sessionId: { type: String, required: true },
|
16 |
-
id: { type: String },
|
17 |
-
searchQuery: { type: String },
|
18 |
-
timestamp: { type: Date, default: Date.now },
|
19 |
-
duration: { type: Number },
|
20 |
-
}, {
|
21 |
-
toJSON: { versionKey: false },
|
22 |
-
});
|
23 |
-
exports.UserActivitySchema = UserActivitySchema;
|
24 |
-
//# sourceMappingURL=activity.schema.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.schema.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"activity.schema.js","sourceRoot":"","sources":["../../../src/modules/activity/activity.schema.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAgBrC,MAAM,kBAAkB,GAAG,IAAI,QAAQ,CAAC,MAAM,CAC5C;IACE,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;QACpC,GAAG,EAAE,MAAM;KAEZ;IACD,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;QACpC,GAAG,EAAE,WAAW;KAEjB;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACpB,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;IAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CAC3B,EACD;IACE,MAAM,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;CAC9B,CACF,CAAC;AAEO,gDAAkB"}
|
|
|
|
real-estate/dist/modules/activity/activity.service.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
import { Model } from 'mongoose';
|
2 |
-
import { sharedCrudService } from '../shared/sharedCrud.services';
|
3 |
-
import { IUserActivityDocument } from './activity.schema';
|
4 |
-
export declare class ActivityService extends sharedCrudService {
|
5 |
-
readonly activityRepository: Model<IUserActivityDocument>;
|
6 |
-
constructor(activityRepository: Model<IUserActivityDocument>);
|
7 |
-
activityLisitng(page: number, resPerPage: number, search: string): Promise<any>;
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.service.js
DELETED
@@ -1,35 +0,0 @@
|
|
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 |
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12 |
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13 |
-
};
|
14 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15 |
-
exports.ActivityService = void 0;
|
16 |
-
const common_1 = require("@nestjs/common");
|
17 |
-
const mongoose_1 = require("mongoose");
|
18 |
-
const sharedCrud_services_1 = require("../shared/sharedCrud.services");
|
19 |
-
const constants_1 = require("../../constants");
|
20 |
-
let ActivityService = class ActivityService extends sharedCrud_services_1.sharedCrudService {
|
21 |
-
constructor(activityRepository) {
|
22 |
-
super(activityRepository);
|
23 |
-
this.activityRepository = activityRepository;
|
24 |
-
}
|
25 |
-
async activityLisitng(page, resPerPage, search) {
|
26 |
-
return 'Hello from Activity service.';
|
27 |
-
}
|
28 |
-
};
|
29 |
-
exports.ActivityService = ActivityService;
|
30 |
-
exports.ActivityService = ActivityService = __decorate([
|
31 |
-
(0, common_1.Injectable)(),
|
32 |
-
__param(0, (0, common_1.Inject)(constants_1.ACTIVITY_REPOSITORY)),
|
33 |
-
__metadata("design:paramtypes", [mongoose_1.Model])
|
34 |
-
], ActivityService);
|
35 |
-
//# sourceMappingURL=activity.service.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/activity/activity.service.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"activity.service.js","sourceRoot":"","sources":["../../../src/modules/activity/activity.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uCAAwC;AACxC,uEAAkE;AAClE,+CAAoD;AAI7C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,uCAAiB;IACpD,YAEW,kBAAgD;QAEzD,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAFjB,uBAAkB,GAAlB,kBAAkB,CAA8B;IAG3D,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAAY,EACZ,UAAkB,EAClB,MAAc;QAEd,OAAO,8BAA8B,CAAA;IACvC,CAAC;CACF,CAAA;AAfY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,+BAAmB,CAAC,CAAA;qCACC,gBAAK;GAHzB,eAAe,CAe3B"}
|
|
|
|
real-estate/dist/modules/auth/auth.controller.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
import { Response } from 'express';
|
2 |
-
import { AuthService } from './auth.service';
|
3 |
-
import { UserService } from '../user/user.service';
|
4 |
-
import { CommonServices } from '../shared/common.service';
|
5 |
-
export declare class AuthController extends CommonServices {
|
6 |
-
private readonly authService;
|
7 |
-
private readonly userService;
|
8 |
-
constructor(authService: AuthService, userService: UserService);
|
9 |
-
login(req: any, res: Response, body: any): Promise<any>;
|
10 |
-
signup(req: any, res: Response, body: any): Promise<any>;
|
11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/auth/auth.controller.js
DELETED
@@ -1,87 +0,0 @@
|
|
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 |
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12 |
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13 |
-
};
|
14 |
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15 |
-
exports.AuthController = void 0;
|
16 |
-
const common_1 = require("@nestjs/common");
|
17 |
-
const auth_service_1 = require("./auth.service");
|
18 |
-
const bcrypt = require("bcrypt");
|
19 |
-
const local_auth_guard_1 = require("./local-auth.guard");
|
20 |
-
const user_service_1 = require("../user/user.service");
|
21 |
-
const common_service_1 = require("../shared/common.service");
|
22 |
-
const jwt_constant_1 = require("../../constants/jwt.constant");
|
23 |
-
let AuthController = class AuthController extends common_service_1.CommonServices {
|
24 |
-
constructor(authService, userService) {
|
25 |
-
super();
|
26 |
-
this.authService = authService;
|
27 |
-
this.userService = userService;
|
28 |
-
}
|
29 |
-
async login(req, res, body) {
|
30 |
-
try {
|
31 |
-
const Userresp = await this.authService.login(req.user, body);
|
32 |
-
return this.sendResponse(this.messages.Success, Userresp, common_1.HttpStatus.OK, res);
|
33 |
-
}
|
34 |
-
catch (error) {
|
35 |
-
console.log(`error =>`, error);
|
36 |
-
return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res);
|
37 |
-
}
|
38 |
-
}
|
39 |
-
async signup(req, res, body) {
|
40 |
-
try {
|
41 |
-
const email = body.email.toLowerCase().trim();
|
42 |
-
const checkUser = await this.userService.sharedFindOne({ email: email });
|
43 |
-
if (checkUser && checkUser.email == email) {
|
44 |
-
return this.sendResponse(this.messages.userAlreadyExist, {}, common_1.HttpStatus.CONFLICT, res);
|
45 |
-
}
|
46 |
-
const createUser = await this.userService.sharedCreate({
|
47 |
-
...body,
|
48 |
-
password: bcrypt.hashSync(body.password, jwt_constant_1.jwtConstants.salt),
|
49 |
-
roles: ['user'],
|
50 |
-
});
|
51 |
-
const Userresp = await this.authService.login(createUser);
|
52 |
-
return this.sendResponse('Account created!', {
|
53 |
-
...Userresp,
|
54 |
-
}, common_1.HttpStatus.OK, res);
|
55 |
-
}
|
56 |
-
catch (error) {
|
57 |
-
console.log(error);
|
58 |
-
return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res);
|
59 |
-
}
|
60 |
-
}
|
61 |
-
};
|
62 |
-
exports.AuthController = AuthController;
|
63 |
-
__decorate([
|
64 |
-
(0, common_1.UseGuards)(local_auth_guard_1.LocalAuthGuard),
|
65 |
-
(0, common_1.Post)('/login'),
|
66 |
-
__param(0, (0, common_1.Req)()),
|
67 |
-
__param(1, (0, common_1.Res)()),
|
68 |
-
__param(2, (0, common_1.Body)()),
|
69 |
-
__metadata("design:type", Function),
|
70 |
-
__metadata("design:paramtypes", [Object, Object, Object]),
|
71 |
-
__metadata("design:returntype", Promise)
|
72 |
-
], AuthController.prototype, "login", null);
|
73 |
-
__decorate([
|
74 |
-
(0, common_1.Post)('/signup'),
|
75 |
-
__param(0, (0, common_1.Req)()),
|
76 |
-
__param(1, (0, common_1.Res)()),
|
77 |
-
__param(2, (0, common_1.Body)()),
|
78 |
-
__metadata("design:type", Function),
|
79 |
-
__metadata("design:paramtypes", [Object, Object, Object]),
|
80 |
-
__metadata("design:returntype", Promise)
|
81 |
-
], AuthController.prototype, "signup", null);
|
82 |
-
exports.AuthController = AuthController = __decorate([
|
83 |
-
(0, common_1.Controller)('auth'),
|
84 |
-
__metadata("design:paramtypes", [auth_service_1.AuthService,
|
85 |
-
user_service_1.UserService])
|
86 |
-
], AuthController);
|
87 |
-
//# sourceMappingURL=auth.controller.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
real-estate/dist/modules/auth/auth.controller.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../src/modules/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAewB;AAExB,iDAA6C;AAC7C,iCAAiC;AACjC,yDAAoD;AACpD,uDAAmD;AAOnD,6DAA0D;AAC1D,+DAA0D;AAGnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAAc;IAChD,YACmB,WAAwB,EACxB,WAAwB;QAEzC,KAAK,EAAE,CAAC;QAHS,gBAAW,GAAX,WAAW,CAAa;QACxB,gBAAW,GAAX,WAAW,CAAa;IAG3C,CAAC;IAIK,AAAN,KAAK,CAAC,KAAK,CACF,GAAQ,EACR,GAAa,EACZ,IAAS;QAEjB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC,YAAY,CACtB,IAAI,CAAC,QAAQ,CAAC,OAAO,EACrB,QAAQ,EACR,mBAAU,CAAC,EAAE,EACb,GAAG,CACJ,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC,YAAY,CACtB,uBAAuB,EACvB,EAAE,EACF,mBAAU,CAAC,qBAAqB,EAChC,GAAG,CACJ,CAAC;QACJ,CAAC;IACH,CAAC;IAGK,AAAN,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