Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- real-estate/.eslintrc.jsAdded+25
- real-estate/.gitignoreAdded+56
- real-estate/.prettierrcAdded+4
- real-estate/README.mdAdded+85
- real-estate/dist/app.controller.d.tsAdded+6
- real-estate/dist/app.controller.jsAdded+34
- real-estate/dist/app.controller.js.mapAdded+1
- real-estate/dist/app.module.d.tsAdded+2
- real-estate/dist/app.module.jsAdded+27
- real-estate/dist/app.module.js.mapAdded+1
- real-estate/dist/app.service.d.tsAdded+3
- real-estate/dist/app.service.jsAdded+20
- real-estate/dist/app.service.js.mapAdded+1
- real-estate/dist/constants/collections.constant.d.tsAdded+3
- real-estate/dist/constants/collections.constant.jsAdded+7
- real-estate/dist/constants/collections.constant.js.mapAdded+1
- real-estate/dist/constants/index.d.tsAdded+2
- real-estate/dist/constants/index.jsAdded+19
- real-estate/dist/constants/index.js.mapAdded+1
- real-estate/dist/constants/jwt.constant.d.tsAdded+4
- real-estate/dist/constants/jwt.constant.jsAdded+8
- real-estate/dist/constants/jwt.constant.js.mapAdded+1
- real-estate/dist/constants/repository.constant.d.tsAdded+3
- real-estate/dist/constants/repository.constant.jsAdded+7
- real-estate/dist/constants/repository.constant.js.mapAdded+1
- real-estate/dist/locales/en.d.tsAdded+9
- real-estate/dist/locales/en.jsAdded+13
- real-estate/dist/locales/en.js.mapAdded+1
- real-estate/dist/main.d.tsAdded+1
- real-estate/dist/main.jsAdded+20
- real-estate/dist/main.js.mapAdded+1
- real-estate/dist/modules/activity/activity.controller.d.tsAdded+12
- real-estate/dist/modules/activity/activity.controller.jsAdded+115
- real-estate/dist/modules/activity/activity.controller.js.mapAdded+1
- real-estate/dist/modules/activity/activity.module.d.tsAdded+2
- real-estate/dist/modules/activity/activity.module.jsAdded+26
- real-estate/dist/modules/activity/activity.module.js.mapAdded+1
- real-estate/dist/modules/activity/activity.provider.d.tsAdded+12
- real-estate/dist/modules/activity/activity.provider.jsAdded+13
- real-estate/dist/modules/activity/activity.provider.js.mapAdded+1
- real-estate/dist/modules/activity/activity.schema.d.tsAdded+20
- real-estate/dist/modules/activity/activity.schema.jsAdded+24
- real-estate/dist/modules/activity/activity.schema.js.mapAdded+1
- real-estate/dist/modules/activity/activity.service.d.tsAdded+8
- real-estate/dist/modules/activity/activity.service.jsAdded+35
- real-estate/dist/modules/activity/activity.service.js.mapAdded+1
- real-estate/dist/modules/auth/auth.controller.d.tsAdded+11
- real-estate/dist/modules/auth/auth.controller.jsAdded+87
- real-estate/dist/modules/auth/auth.controller.js.mapAdded+1
- real-estate/dist/modules/auth/auth.module.d.tsAdded+2
12345678910111213141516171819202122232425module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556# compiled output/dist/node_modules/build
# Logslogs*.lognpm-debug.log*pnpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log*
# OS.DS_Store
# Tests/coverage/.nyc_output
# IDEs and editors/.idea.project.classpath.c9/*.launch.settings/*.sublime-workspace
# IDE - VSCode.vscode/*!.vscode/settings.json!.vscode/tasks.json!.vscode/launch.json!.vscode/extensions.json
# dotenv environment variable files.env.env.development.local.env.test.local.env.production.local.env.local
# temp directory.temp.tmp
# Runtime datapids*.pid*.seed*.pid.lock
# Diagnostic reports (https://nodejs.org/api/report.html)report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json1234{
"singleQuote": true,
"trailingComma": "all"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
<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>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
<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>
<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>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
<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>
<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>
</p>
<!--[](https://opencollective.com/nest#backer)
[](https://opencollective.com/nest#sponsor)-->
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Project setup
```bash
$ npm install
```
## Compile and run the project
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
## Run tests
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
```
## Resources
Check out a few resources that may come in handy when working with NestJS:
- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
## Support
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).
## Stay in touch
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)
## License
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).123456import { AppService } from './app.service';export declare class AppController { private readonly appService; constructor(appService: AppService); getHello(): string;}12345678910111213141516171819202122232425262728293031323334"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);};Object.defineProperty(exports, "__esModule", { value: true });exports.AppController = void 0;const common_1 = require("@nestjs/common");const app_service_1 = require("./app.service");let AppController = class AppController { constructor(appService) { this.appService = appService; } getHello() { return this.appService.getHello(); }};exports.AppController = AppController;__decorate([ (0, common_1.Get)(), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", String)], AppController.prototype, "getHello", null);exports.AppController = AppController = __decorate([ (0, common_1.Controller)(), __metadata("design:paramtypes", [app_service_1.AppService])], AppController);//# sourceMappingURL=app.controller.js.map1{"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"}12export declare class AppModule {}123456789101112131415161718192021222324252627"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};Object.defineProperty(exports, "__esModule", { value: true });exports.AppModule = void 0;const common_1 = require("@nestjs/common");const app_controller_1 = require("./app.controller");const app_service_1 = require("./app.service");const property_module_1 = require("./modules/property/property.module");const auth_module_1 = require("./modules/auth/auth.module");const user_module_1 = require("./modules/user/user.module");const activity_module_1 = require("./modules/activity/activity.module");let AppModule = class AppModule {};exports.AppModule = AppModule;exports.AppModule = AppModule = __decorate([ (0, common_1.Module)({ imports: [property_module_1.PropertyModule, auth_module_1.AuthModule, user_module_1.UserModule, activity_module_1.ActivityModule], controllers: [app_controller_1.AppController], providers: [app_service_1.AppService], })], AppModule);//# sourceMappingURL=app.module.js.map1{"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"}123export declare class AppService { getHello(): string;}1234567891011121314151617181920"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};Object.defineProperty(exports, "__esModule", { value: true });exports.AppService = void 0;const common_1 = require("@nestjs/common");let AppService = class AppService { getHello() { return 'Hello World!'; }};exports.AppService = AppService;exports.AppService = AppService = __decorate([ (0, common_1.Injectable)()], AppService);//# sourceMappingURL=app.service.js.map1{"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"}123export declare const PROPERTIE = "propertie";export declare const USERS = "users";export declare const ACTIVITY = "activity";1234567"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.ACTIVITY = exports.USERS = exports.PROPERTIE = void 0;exports.PROPERTIE = 'propertie';exports.USERS = 'users';exports.ACTIVITY = 'activity';//# sourceMappingURL=collections.constant.js.map1{"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"}12export * from './collections.constant';export * from './repository.constant';12345678910111213141516171819"use strict";var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc);}) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k];}));var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);};Object.defineProperty(exports, "__esModule", { value: true });__exportStar(require("./collections.constant"), exports);__exportStar(require("./repository.constant"), exports);//# sourceMappingURL=index.js.map1{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,wDAAqC"}1234export declare const jwtConstants: { secret: string; salt: number;};12345678"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.jwtConstants = void 0;exports.jwtConstants = { secret: "secretKey", salt: 10};//# sourceMappingURL=jwt.constant.js.map1{"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"}123export declare const PROPERTY_REPOSITORY = "PROPERTY_REPOSITORY";export declare const USER_REPOSITORY = "USER_REPOSITORY";export declare const ACTIVITY_REPOSITORY = "ACTIVITY_REPOSITORY";1234567"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.ACTIVITY_REPOSITORY = exports.USER_REPOSITORY = exports.PROPERTY_REPOSITORY = void 0;exports.PROPERTY_REPOSITORY = 'PROPERTY_REPOSITORY';exports.USER_REPOSITORY = 'USER_REPOSITORY';exports.ACTIVITY_REPOSITORY = 'ACTIVITY_REPOSITORY';//# sourceMappingURL=repository.constant.js.map1{"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"}123456789export declare const en: { Success: string; Error: string; adminVerificationFaild: string; friendAdded: string; reqRejected: string; friendReqSent: string; userAlreadyExist: string;};12345678910111213"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.en = void 0;exports.en = { Success: 'Operation is completed Success', Error: 'Something Went Wrong', adminVerificationFaild: 'Admin key verification failed', friendAdded: 'Friend added Successfully.', reqRejected: 'Friend request declined.', friendReqSent: 'Friend request sent Successfully.', userAlreadyExist: 'User already exist.',};//# sourceMappingURL=en.js.map1{"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"}1export {};1234567891011121314151617181920"use strict";Object.defineProperty(exports, "__esModule", { value: true });const core_1 = require("@nestjs/core");const app_module_1 = require("./app.module");const bodyParser = require("body-parser");const common_1 = require("@nestjs/common");async function bootstrap() { const app = await core_1.NestFactory.create(app_module_1.AppModule); app.useGlobalPipes(new common_1.ValidationPipe()); app.enableCors({ origin: '*', methods: '*', credentials: true, }); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); await app.listen(8080);}bootstrap();//# sourceMappingURL=main.js.map1{"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"}123456789101112import { Response } from 'express';import { CommonServices } from '../shared/common.service';import { ActivityService } from './activity.service';import { PropertyService } from '../property/property.service';export declare class ActivityController extends CommonServices { private readonly activityService; private readonly propertyService; constructor(activityService: ActivityService, propertyService: PropertyService); createActivity(body: any, res: Response, req: any): Promise<any>; getActivityListings(res: Response, req: any): Promise<any>; updateActivity(body: any, res: Response, req: any): Promise<any>;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);};var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); }};Object.defineProperty(exports, "__esModule", { value: true });exports.ActivityController = void 0;const common_1 = require("@nestjs/common");const common_service_1 = require("../shared/common.service");const activity_service_1 = require("./activity.service");const jwt_auth_guard_1 = require("../auth/jwt-auth.guard");const property_service_1 = require("../property/property.service");let ActivityController = class ActivityController extends common_service_1.CommonServices { constructor(activityService, propertyService) { super(); this.activityService = activityService; this.propertyService = propertyService; } async createActivity(body, res, req) { try { const payload = { ...body, userId: req.user.userId, }; const activity = await this.activityService.sharedCreate(payload); if (body.action == 'view') await this.propertyService.sharedFindOneAndUpdate({ _id: body.propertyId }, { $inc: { views: 1 }, }, {}); if (body.action == 'time_spent') await this.propertyService.sharedFindOneAndUpdate({ _id: body.propertyId }, { $inc: { total_time_spent: body.duration || 0 }, }, {}); return this.sendResponse(this.messages.Success, activity, common_1.HttpStatus.OK, res); } catch (error) { console.log(error); return this.sendResponse('Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res); } } async getActivityListings(res, req) { try { const response = await this.activityService.sharedFind({}); return this.sendResponse(this.messages.Success, response, common_1.HttpStatus.OK, res); } catch (error) { return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res); } } async updateActivity(body, res, req) { try { const existingActivity = await this.activityService.sharedFindOne({ userId: body.userId, propertyId: body.propertyId, action: body.action, }); if (existingActivity) { const updatedActivity = await this.activityService.sharedUpdate({ _id: existingActivity._id }, { duration: body.duration ? body.duration : existingActivity.duration, timestamp: new Date(), }); return this.sendResponse(this.messages.Success, updatedActivity, common_1.HttpStatus.OK, res); } else { return this.sendResponse('Activity not found', {}, common_1.HttpStatus.NOT_FOUND, res); } } catch (error) { return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res); } }};exports.ActivityController = ActivityController;__decorate([ (0, common_1.Post)('create'), (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), __param(0, (0, common_1.Body)()), __param(1, (0, common_1.Res)()), __param(2, (0, common_1.Req)()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object, Object]), __metadata("design:returntype", Promise)], ActivityController.prototype, "createActivity", null);__decorate([ (0, common_1.Get)(''), __param(0, (0, common_1.Res)()), __param(1, (0, common_1.Req)()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype", Promise)], ActivityController.prototype, "getActivityListings", null);__decorate([ (0, common_1.Patch)('update'), (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), __param(0, (0, common_1.Body)()), __param(1, (0, common_1.Res)()), __param(2, (0, common_1.Req)()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object, Object]), __metadata("design:returntype", Promise)], ActivityController.prototype, "updateActivity", null);exports.ActivityController = ActivityController = __decorate([ (0, common_1.Controller)('activity'), __metadata("design:paramtypes", [activity_service_1.ActivityService, property_service_1.PropertyService])], ActivityController);//# sourceMappingURL=activity.controller.js.map1{"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,MAAM;gBACvB,MAAM,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAC/C,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB;oBACE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;iBACnB,EACD,EAAE,CACH,CAAC;YAGJ,IAAI,IAAI,CAAC,MAAM,IAAI,YAAY;gBAC7B,MAAM,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAC/C,EAAE,GAAG,EAAE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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"}12export declare class ActivityModule {}1234567891011121314151617181920212223242526"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};Object.defineProperty(exports, "__esModule", { value: true });exports.ActivityModule = void 0;const common_1 = require("@nestjs/common");const database_module_1 = require("../database/database.module");const activity_controller_1 = require("./activity.controller");const activity_service_1 = require("./activity.service");const property_service_1 = require("../property/property.service");let ActivityModule = class ActivityModule {};exports.ActivityModule = ActivityModule;exports.ActivityModule = ActivityModule = __decorate([ (0, common_1.Module)({ imports: [database_module_1.DatabaseModule], controllers: [activity_controller_1.ActivityController], providers: [activity_service_1.ActivityService, property_service_1.PropertyService], exports: [activity_service_1.ActivityService, property_service_1.PropertyService], })], ActivityModule);//# sourceMappingURL=activity.module.js.map1{"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"}123456789101112import { Connection } from 'mongoose';export declare const activityProviders: { provide: string; useFactory: (connection: Connection) => import("mongoose").Model<import("./activity.schema").IUserActivityDocument, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./activity.schema").IUserActivityDocument> & import("./activity.schema").IUserActivityDocument & Required<{ _id: unknown; }>, 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<{ _id: unknown; }>, 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<{ _id: unknown; }>>>; inject: string[];}[];12345678910111213"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.activityProviders = void 0;const constants_1 = require("../../constants");const activity_schema_1 = require("./activity.schema");exports.activityProviders = [ { provide: constants_1.ACTIVITY_REPOSITORY, useFactory: (connection) => connection.model(constants_1.ACTIVITY, activity_schema_1.UserActivitySchema), inject: ['DATABASE_CONNECTION'], },];//# sourceMappingURL=activity.provider.js.map1{"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"}1234567891011121314151617181920import * as mongoose from 'mongoose';import { Document } from 'mongoose';import { IUserDocument } from '../user/user.schema';import { IPropertyDocument } from '../property/property.schema';export interface IUserActivityDocument extends Document { userId: IUserDocument; propertyId: IPropertyDocument; action: string; sessionId: string; id: string; timestamp: Date; duration?: number; searchQuery?: string;}declare const UserActivitySchema: mongoose.Schema<IUserActivityDocument, mongoose.Model<IUserActivityDocument, any, any, any, mongoose.Document<unknown, any, IUserActivityDocument> & IUserActivityDocument & Required<{ _id: unknown;}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserActivityDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserActivityDocument>> & mongoose.FlatRecord<IUserActivityDocument> & Required<{ _id: unknown;}>>;export { UserActivitySchema };123456789101112131415161718192021222324"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.UserActivitySchema = void 0;const mongoose = require("mongoose");const UserActivitySchema = new mongoose.Schema({ userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', }, propertyId: { type: mongoose.Schema.Types.ObjectId, ref: 'propertie', }, action: { type: String, required: true }, sessionId: { type: String, required: true }, id: { type: String }, searchQuery: { type: String }, timestamp: { type: Date, default: Date.now }, duration: { type: Number },}, { toJSON: { versionKey: false },});exports.UserActivitySchema = UserActivitySchema;//# sourceMappingURL=activity.schema.js.map1{"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"}12345678import { Model } from 'mongoose';import { sharedCrudService } from '../shared/sharedCrud.services';import { IUserActivityDocument } from './activity.schema';export declare class ActivityService extends sharedCrudService { readonly activityRepository: Model<IUserActivityDocument>; constructor(activityRepository: Model<IUserActivityDocument>); activityLisitng(page: number, resPerPage: number, search: string): Promise<any>;}1234567891011121314151617181920212223242526272829303132333435"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);};var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); }};Object.defineProperty(exports, "__esModule", { value: true });exports.ActivityService = void 0;const common_1 = require("@nestjs/common");const mongoose_1 = require("mongoose");const sharedCrud_services_1 = require("../shared/sharedCrud.services");const constants_1 = require("../../constants");let ActivityService = class ActivityService extends sharedCrud_services_1.sharedCrudService { constructor(activityRepository) { super(activityRepository); this.activityRepository = activityRepository; } async activityLisitng(page, resPerPage, search) { return 'Hello from Activity service.'; }};exports.ActivityService = ActivityService;exports.ActivityService = ActivityService = __decorate([ (0, common_1.Injectable)(), __param(0, (0, common_1.Inject)(constants_1.ACTIVITY_REPOSITORY)), __metadata("design:paramtypes", [mongoose_1.Model])], ActivityService);//# sourceMappingURL=activity.service.js.map1{"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"}1234567891011import { Response } from 'express';import { AuthService } from './auth.service';import { UserService } from '../user/user.service';import { CommonServices } from '../shared/common.service';export declare class AuthController extends CommonServices { private readonly authService; private readonly userService; constructor(authService: AuthService, userService: UserService); login(req: any, res: Response, body: any): Promise<any>; signup(req: any, res: Response, body: any): Promise<any>;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687"use strict";var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r;};var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);};var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); }};Object.defineProperty(exports, "__esModule", { value: true });exports.AuthController = void 0;const common_1 = require("@nestjs/common");const auth_service_1 = require("./auth.service");const bcrypt = require("bcrypt");const local_auth_guard_1 = require("./local-auth.guard");const user_service_1 = require("../user/user.service");const common_service_1 = require("../shared/common.service");const jwt_constant_1 = require("../../constants/jwt.constant");let AuthController = class AuthController extends common_service_1.CommonServices { constructor(authService, userService) { super(); this.authService = authService; this.userService = userService; } async login(req, res, body) { try { const Userresp = await this.authService.login(req.user, body); return this.sendResponse(this.messages.Success, Userresp, common_1.HttpStatus.OK, res); } catch (error) { console.log(`error =>`, error); return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res); } } async signup(req, res, body) { try { const email = body.email.toLowerCase().trim(); const checkUser = await this.userService.sharedFindOne({ email: email }); if (checkUser && checkUser.email == email) { return this.sendResponse(this.messages.userAlreadyExist, {}, common_1.HttpStatus.CONFLICT, res); } const createUser = await this.userService.sharedCreate({ ...body, password: bcrypt.hashSync(body.password, jwt_constant_1.jwtConstants.salt), roles: ['user'], }); const Userresp = await this.authService.login(createUser); return this.sendResponse('Account created!', { ...Userresp, }, common_1.HttpStatus.OK, res); } catch (error) { console.log(error); return this.sendResponse('Internal server Error', {}, common_1.HttpStatus.INTERNAL_SERVER_ERROR, res); } }};exports.AuthController = AuthController;__decorate([ (0, common_1.UseGuards)(local_auth_guard_1.LocalAuthGuard), (0, common_1.Post)('/login'), __param(0, (0, common_1.Req)()), __param(1, (0, common_1.Res)()), __param(2, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object, Object]), __metadata("design:returntype", Promise)], AuthController.prototype, "login", null);__decorate([ (0, common_1.Post)('/signup'), __param(0, (0, common_1.Req)()), __param(1, (0, common_1.Res)()), __param(2, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object, Object]), __metadata("design:returntype", Promise)], AuthController.prototype, "signup", null);exports.AuthController = AuthController = __decorate([ (0, common_1.Controller)('auth'), __metadata("design:paramtypes", [auth_service_1.AuthService, user_service_1.UserService])], AuthController);//# sourceMappingURL=auth.controller.js.map1{"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,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B,EAChC,GAAG,CACJ,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAjFY,wCAAc;AAUnB;IAFL,IAAA,kBAAS,EAAC,iCAAc,CAAC;IACzB,IAAA,aAAI,EAAC,QAAQ,CAAC;IAEZ,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;2CAmBR;AAGK;IADL,IAAA,aAAI,EAAC,SAAS,CAAC;IAEb,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;4CA0CR;yBAhFU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAGe,0BAAW;QACX,0BAAW;GAHhC,cAAc,CAiF1B"}12export declare class AuthModule {}real-estate/.eslintrc.jsAdded+25
real-estate/.gitignoreAdded+56
real-estate/.prettierrcAdded+4
real-estate/README.mdAdded+85
real-estate/dist/app.controller.d.tsAdded+6
real-estate/dist/app.controller.jsAdded+34
real-estate/dist/app.controller.js.mapAdded+1
real-estate/dist/app.module.d.tsAdded+2
real-estate/dist/app.module.jsAdded+27
real-estate/dist/app.module.js.mapAdded+1
real-estate/dist/app.service.d.tsAdded+3
real-estate/dist/app.service.jsAdded+20
real-estate/dist/app.service.js.mapAdded+1
real-estate/dist/constants/collections.constant.d.tsAdded+3
real-estate/dist/constants/collections.constant.jsAdded+7
real-estate/dist/constants/collections.constant.js.mapAdded+1
real-estate/dist/constants/index.d.tsAdded+2
real-estate/dist/constants/index.jsAdded+19
real-estate/dist/constants/index.js.mapAdded+1
real-estate/dist/constants/jwt.constant.d.tsAdded+4
real-estate/dist/constants/jwt.constant.jsAdded+8
real-estate/dist/constants/jwt.constant.js.mapAdded+1
real-estate/dist/constants/repository.constant.d.tsAdded+3
real-estate/dist/constants/repository.constant.jsAdded+7
real-estate/dist/constants/repository.constant.js.mapAdded+1
real-estate/dist/locales/en.d.tsAdded+9
real-estate/dist/locales/en.jsAdded+13
real-estate/dist/locales/en.js.mapAdded+1
real-estate/dist/main.d.tsAdded+1
real-estate/dist/main.jsAdded+20
real-estate/dist/main.js.mapAdded+1
real-estate/dist/modules/activity/activity.controller.d.tsAdded+12
real-estate/dist/modules/activity/activity.controller.jsAdded+115
real-estate/dist/modules/activity/activity.controller.js.mapAdded+1
real-estate/dist/modules/activity/activity.module.d.tsAdded+2
real-estate/dist/modules/activity/activity.module.jsAdded+26
real-estate/dist/modules/activity/activity.module.js.mapAdded+1
real-estate/dist/modules/activity/activity.provider.d.tsAdded+12
real-estate/dist/modules/activity/activity.provider.jsAdded+13
real-estate/dist/modules/activity/activity.provider.js.mapAdded+1
real-estate/dist/modules/activity/activity.schema.d.tsAdded+20
real-estate/dist/modules/activity/activity.schema.jsAdded+24
real-estate/dist/modules/activity/activity.schema.js.mapAdded+1
real-estate/dist/modules/activity/activity.service.d.tsAdded+8
real-estate/dist/modules/activity/activity.service.jsAdded+35
real-estate/dist/modules/activity/activity.service.js.mapAdded+1
real-estate/dist/modules/auth/auth.controller.d.tsAdded+11
real-estate/dist/modules/auth/auth.controller.jsAdded+87
real-estate/dist/modules/auth/auth.controller.js.mapAdded+1
real-estate/dist/modules/auth/auth.module.d.tsAdded+2