From ddc795d944098b3eddad9563dc0cd86cd9f7240b Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Thu, 6 Jul 2023 22:26:17 +0545 Subject: [PATCH] fix: automate swagger fields from pkg --- package.json | 7 +- pnpm-lock.yaml | 173 +++++++++++++----------- src/common/constant/string.constants.ts | 10 +- temp/BaseEntity.js.json | 2 +- temp/Category.js.json | 2 +- temp/Comment.js.json | 2 +- temp/Conversation.js.json | 2 +- temp/Message.js.json | 2 +- temp/NewsLetter.js.json | 2 +- temp/OtpLog.js.json | 2 +- temp/Post.js.json | 2 +- temp/Social.js.json | 2 +- temp/Subscriber.js.json | 2 +- temp/Tag.js.json | 2 +- temp/User.js.json | 2 +- 15 files changed, 118 insertions(+), 96 deletions(-) diff --git a/package.json b/package.json index 11293713..2802e1f1 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "isomorphic-dompurify": "^1.7.0", "joi": "^17.9.2", "jspdf": "^2.5.1", + "load-pkg": "^4.0.0", "nestjs-cloudinary": "^2.0.6", "nestjs-fastjwt": "^0.0.1", "nestjs-i18n": "^10.2.6", @@ -119,8 +120,8 @@ "passport-jwt": "4.0.1", "passport-magic-login": "^1.2.2", "pino-http": "^8.3.3", - "pino-pretty": "^10.0.0", - "poolifier": "^2.6.6", + "pino-pretty": "^10.0.1", + "poolifier": "^2.6.8", "preview-email": "^3.0.19", "prom-client": "^14.2.0", "pug": "^3.0.2", @@ -153,7 +154,7 @@ "@types/cache-manager-redis-store": "^2.0.1", "@types/jest": "^29.5.2", "@types/multer": "^1.4.7", - "@types/node": "^20.3.3", + "@types/node": "^20.4.0", "@types/nodemailer": "^6.4.8", "@types/passport": "^1.0.12", "@types/passport-facebook": "^2.1.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5507117f..69215b1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -164,6 +164,9 @@ dependencies: jspdf: specifier: ^2.5.1 version: 2.5.1 + load-pkg: + specifier: ^4.0.0 + version: 4.0.0 nestjs-cloudinary: specifier: ^2.0.6 version: 2.0.6(@nestjs/common@10.0.5) @@ -207,10 +210,10 @@ dependencies: specifier: ^8.3.3 version: 8.3.3 pino-pretty: - specifier: ^10.0.0 + specifier: ^10.0.1 version: 10.0.1 poolifier: - specifier: ^2.6.6 + specifier: ^2.6.8 version: 2.6.8 preview-email: specifier: ^3.0.19 @@ -305,8 +308,8 @@ devDependencies: specifier: ^1.4.7 version: 1.4.7 '@types/node': - specifier: ^20.3.3 - version: 20.3.3 + specifier: ^20.4.0 + version: 20.4.0 '@types/nodemailer': specifier: ^6.4.8 version: 6.4.8 @@ -387,7 +390,7 @@ devDependencies: version: 8.0.3 jest: specifier: 29.6.0 - version: 29.6.0(@types/node@20.3.3)(ts-node@10.9.1) + version: 29.6.0(@types/node@20.4.0)(ts-node@10.9.1) lint-staged: specifier: ^13.2.3 version: 13.2.3 @@ -408,7 +411,7 @@ devDependencies: version: 9.4.4(typescript@5.1.3)(webpack@5.88.1) ts-node: specifier: 10.9.1 - version: 10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.3) + version: 10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.3) tsconfig-paths: specifier: 4.2.0 version: 4.2.0 @@ -1319,15 +1322,15 @@ packages: '@commitlint/execute-rule': 17.4.0 '@commitlint/resolve-extends': 17.4.4 '@commitlint/types': 17.4.4 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 cosmiconfig: 8.2.0 - cosmiconfig-typescript-loader: 4.3.0(@types/node@20.3.3)(cosmiconfig@8.2.0)(ts-node@10.9.1)(typescript@5.1.6) + cosmiconfig-typescript-loader: 4.3.0(@types/node@20.4.0)(cosmiconfig@8.2.0)(ts-node@10.9.1)(typescript@5.1.6) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.6) + ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -1716,7 +1719,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.7 - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: false optional: true @@ -2023,7 +2026,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 jest-message-util: 29.6.0 jest-util: 29.6.0 @@ -2044,14 +2047,14 @@ packages: '@jest/test-result': 29.6.0 '@jest/transform': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.8.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.0(@types/node@20.3.3)(ts-node@10.9.1) + jest-config: 29.6.0(@types/node@20.4.0)(ts-node@10.9.1) jest-haste-map: 29.6.0 jest-message-util: 29.6.0 jest-regex-util: 29.4.3 @@ -2085,7 +2088,7 @@ packages: dependencies: '@jest/fake-timers': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-mock: 29.6.0 dev: true @@ -2119,7 +2122,7 @@ packages: dependencies: '@jest/types': 29.6.0 '@sinonjs/fake-timers': 10.1.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-message-util: 29.6.0 jest-mock: 29.6.0 jest-util: 29.6.0 @@ -2152,7 +2155,7 @@ packages: '@jest/transform': 29.6.0 '@jest/types': 29.6.0 '@jridgewell/trace-mapping': 0.3.18 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 @@ -2246,7 +2249,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.3.3 + '@types/node': 20.4.0 '@types/yargs': 16.0.5 chalk: 4.1.2 dev: true @@ -2258,7 +2261,7 @@ packages: '@jest/schemas': 29.4.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.3.3 + '@types/node': 20.4.0 '@types/yargs': 17.0.24 chalk: 4.1.2 dev: true @@ -2270,7 +2273,7 @@ packages: '@jest/schemas': 29.6.0 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.3.3 + '@types/node': 20.4.0 '@types/yargs': 17.0.24 chalk: 4.1.2 dev: true @@ -3411,7 +3414,7 @@ packages: jest-runtime: '>=28' dependencies: '@jest/transform': 29.6.0 - jest: 29.6.0(@types/node@20.3.3)(ts-node@10.9.1) + jest: 29.6.0(@types/node@20.4.0)(ts-node@10.9.1) jest-runtime: 29.6.0 dev: true @@ -4025,7 +4028,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/cache-manager-redis-store@2.0.1: resolution: {integrity: sha512-8QuccvcPieh1xM/5kReE76SfdcIdEB0ePc+54ah/NBuK2eG+6O50SX4WKoJX81UxGdW3sh/WlDaDNqjnqxWNsA==} @@ -4047,7 +4050,7 @@ packages: /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/cookie@0.4.1: resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==} @@ -4059,7 +4062,7 @@ packages: /@types/cors@2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/dompurify@3.0.2: resolution: {integrity: sha512-YBL4ziFebbbfQfH5mlC+QTJsvh0oJUrWbmxKMyEdL7emlHJqGR2Qb34TEFKj+VCayBvjKy3xczMFNhugThUsfQ==} @@ -4088,7 +4091,7 @@ packages: /@types/express-serve-static-core@4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -4105,14 +4108,14 @@ packages: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: false optional: true /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/istanbul-lib-coverage@2.0.4: @@ -4149,7 +4152,7 @@ packages: /@types/jsonwebtoken@9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/linkify-it@3.0.2: resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==} @@ -4164,7 +4167,7 @@ packages: /@types/mailparser@3.4.0: resolution: {integrity: sha512-MotFinA1sT2nPFtQw1WpaF3X6I1OdbEloaixMmk924BOYqwHmlZkoi7XcVUXHI+7i0to8JguHqYj5k/E6c9Chw==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 iconv-lite: 0.6.3 dev: true @@ -4202,13 +4205,13 @@ packages: resolution: {integrity: sha512-P9bsdGFPpVtofEKlhWMVS2qqx1A/rt9QBfihWlklfHHpUpjtYse5AzFz6j4DWrARLYh6gRnw9+5+DJcrq3KvBA==} dev: false - /@types/node@20.3.3: - resolution: {integrity: sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw==} + /@types/node@20.4.0: + resolution: {integrity: sha512-jfT7iTf/4kOQ9S7CHV9BIyRaQqHu67mOjsIQBC3BKZvzvUB6zLxEwJ6sBE3ozcvP8kF6Uk5PXN0Q+c0dfhGX0g==} /@types/nodemailer@6.4.8: resolution: {integrity: sha512-oVsJSCkqViCn8/pEu2hfjwVO+Gb3e+eTWjg3PcjeFKRItfKpKwHphQqbYmPQrlMk+op7pNNWPbsJIEthpFN/OQ==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/normalize-package-data@2.4.1: @@ -4218,7 +4221,7 @@ packages: /@types/oauth@0.9.1: resolution: {integrity: sha512-a1iY62/a3yhZ7qH7cNUsxoI3U/0Fe9+RnuFrpTKr+0WVOzbKlSLojShCKe20aOD1Sppv+i8Zlq0pLDuTJnwS4A==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/parse-json@4.0.0: @@ -4277,7 +4280,7 @@ packages: resolution: {integrity: sha512-ctA5USWHqFokICj74fLx9M7T1ClqA5kshfJwU0SGLfYqkVIR9sC34CBuuRlNjTiP9NRWv4qx9jVm6kIBQZQjpQ==} dependencies: '@types/mailparser': 3.4.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 '@types/nodemailer': 6.4.8 dev: true @@ -4288,7 +4291,7 @@ packages: /@types/qrcode@1.5.1: resolution: {integrity: sha512-HpSN675K0PmxIDRpjMI3Mc2GiKo3dNu+X/F5SoItiaDS1lVfgC6Wac1c5lQDfKWbTJUSHWiHKzpJpBZG7k9gaA==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/qs@6.9.7: @@ -4305,14 +4308,14 @@ packages: /@types/redis@2.8.32: resolution: {integrity: sha512-7jkMKxcGq9p242exlbsVzuJb57KqHRhNl4dHoQu2Y5v9bCAbtIXXH0R3HleSQW4CTOqpHIYUW3t6tpUj4BVQ+w==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/rimraf@3.0.2: resolution: {integrity: sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==} dependencies: '@types/glob': 8.1.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: false optional: true @@ -4324,18 +4327,18 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/serve-static@1.15.1: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 20.3.3 + '@types/node': 20.4.0 /@types/sharp@0.31.1: resolution: {integrity: sha512-5nWwamN9ZFHXaYEincMSuza8nNfOof8nmO+mcI+Agx1uMUk4/pQnNIcix+9rLPXzKrm1pS34+6WRDbDV0Jn7ag==} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/stack-utils@2.0.1: @@ -4346,7 +4349,7 @@ packages: resolution: {integrity: sha512-LOWgpacIV8GHhrsQU+QMZuomfqXiqzz3ILLkCtKx3Us6AmomFViuzKT9D693QTKgyut2oCytMG8/efOop+DB+w==} dependencies: '@types/cookiejar': 2.1.2 - '@types/node': 20.3.3 + '@types/node': 20.4.0 dev: true /@types/supertest@2.0.12: @@ -4360,7 +4363,7 @@ packages: dependencies: '@hapi/hapi': 21.1.0 '@types/express': 4.17.17 - '@types/node': 20.3.3 + '@types/node': 20.4.0 fastify: 3.29.5 joi: 17.9.2 prom-client: 14.2.0 @@ -5983,7 +5986,7 @@ packages: object-assign: 4.1.1 vary: 1.1.2 - /cosmiconfig-typescript-loader@4.3.0(@types/node@20.3.3)(cosmiconfig@8.2.0)(ts-node@10.9.1)(typescript@5.1.6): + /cosmiconfig-typescript-loader@4.3.0(@types/node@20.4.0)(cosmiconfig@8.2.0)(ts-node@10.9.1)(typescript@5.1.6): resolution: {integrity: sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==} engines: {node: '>=12', npm: '>=6'} peerDependencies: @@ -5992,9 +5995,9 @@ packages: ts-node: '>=10' typescript: '>=3' dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 cosmiconfig: 8.2.0 - ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.6) + ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.6) typescript: 5.1.6 dev: true optional: true @@ -6465,7 +6468,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 20.3.3 + '@types/node': 20.4.0 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -6995,7 +6998,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: homedir-polyfill: 1.0.3 - dev: true /expect@29.5.0: resolution: {integrity: sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==} @@ -7013,7 +7015,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/expect-utils': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-get-type: 29.4.3 jest-matcher-utils: 29.6.0 jest-message-util: 29.6.0 @@ -7255,6 +7257,13 @@ packages: transitivePeerDependencies: - supports-color + /find-file-up@2.0.1: + resolution: {integrity: sha512-qVdaUhYO39zmh28/JLQM5CoYN9byEOKEH4qfa8K1eNV17W0UUMJ9WgbR/hHFH+t5rcl+6RTb5UC7ck/I+uRkpQ==} + engines: {node: '>=8'} + dependencies: + resolve-dir: 1.0.1 + dev: false + /find-my-way@4.5.1: resolution: {integrity: sha512-kE0u7sGoUFbMXcOG/xpkmz4sRLCklERnBcg7Ftuu1iAxsfEt2S46RLJ3Sq7vshsEy2wJT2hZxE58XZK27qa8kg==} engines: {node: '>=10'} @@ -7272,6 +7281,13 @@ packages: merge: 2.1.1 dev: true + /find-pkg@2.0.0: + resolution: {integrity: sha512-WgZ+nKbELDa6N3i/9nrHeNznm+lY3z4YfhDDWgW+5P0pdmMj26bxaxU11ookgY3NyP9GC7HvZ9etp0jRFqGEeQ==} + engines: {node: '>=8'} + dependencies: + find-file-up: 2.0.1 + dev: false + /find-root@1.1.0: resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} dev: true @@ -7308,7 +7324,7 @@ packages: '@fastify/busboy': 1.2.1 '@firebase/database-compat': 0.3.4 '@firebase/database-types': 0.10.4 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jsonwebtoken: 9.0.0 jwks-rsa: 3.0.1 node-forge: 1.3.1 @@ -7700,7 +7716,6 @@ packages: global-prefix: 1.0.2 is-windows: 1.0.2 resolve-dir: 1.0.1 - dev: true /global-prefix@1.0.2: resolution: {integrity: sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==} @@ -7711,7 +7726,6 @@ packages: ini: 1.3.8 is-windows: 1.0.2 which: 1.3.1 - dev: true /globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} @@ -7952,7 +7966,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: parse-passwd: 1.0.0 - dev: true /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} @@ -8457,7 +8470,6 @@ packages: /is-windows@1.0.2: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} - dev: true /is-wsl@2.2.0: resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} @@ -8559,7 +8571,7 @@ packages: '@jest/expect': 29.6.0 '@jest/test-result': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 @@ -8579,7 +8591,7 @@ packages: - supports-color dev: true - /jest-cli@29.6.0(@types/node@20.3.3)(ts-node@10.9.1): + /jest-cli@29.6.0(@types/node@20.4.0)(ts-node@10.9.1): resolution: {integrity: sha512-WvZIaanK/abkw6s01924DQ2QLwM5Q4Y4iPbSDb9Zg6smyXGqqcPQ7ft9X8D7B0jICz312eSzM6UlQNxuZJBrMw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -8596,7 +8608,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.0(@types/node@20.3.3)(ts-node@10.9.1) + jest-config: 29.6.0(@types/node@20.4.0)(ts-node@10.9.1) jest-util: 29.6.0 jest-validate: 29.6.0 prompts: 2.4.2 @@ -8607,7 +8619,7 @@ packages: - ts-node dev: true - /jest-config@29.6.0(@types/node@20.3.3)(ts-node@10.9.1): + /jest-config@29.6.0(@types/node@20.4.0)(ts-node@10.9.1): resolution: {integrity: sha512-fKA4jM91PDqWVkMpb1FVKxIuhg3hC6hgaen57cr1rRZkR96dCatvJZsk3ik7/GNu9ERj9wgAspOmyvkFoGsZhA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -8622,7 +8634,7 @@ packages: '@babel/core': 7.22.5 '@jest/test-sequencer': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 babel-jest: 29.6.0(@babel/core@7.22.5) chalk: 4.1.2 ci-info: 3.8.0 @@ -8642,7 +8654,7 @@ packages: pretty-format: 29.6.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.3) + ts-node: 10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.3) transitivePeerDependencies: - supports-color dev: true @@ -8692,7 +8704,7 @@ packages: '@jest/environment': 29.6.0 '@jest/fake-timers': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-mock: 29.6.0 jest-util: 29.6.0 dev: true @@ -8708,7 +8720,7 @@ packages: dependencies: '@jest/types': 29.6.0 '@types/graceful-fs': 4.1.6 - '@types/node': 20.3.3 + '@types/node': 20.4.0 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -8784,7 +8796,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-util: 29.6.0 dev: true @@ -8839,7 +8851,7 @@ packages: '@jest/test-result': 29.6.0 '@jest/transform': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -8870,7 +8882,7 @@ packages: '@jest/test-result': 29.6.0 '@jest/transform': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.1 @@ -8923,7 +8935,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -8935,7 +8947,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -8960,7 +8972,7 @@ packages: dependencies: '@jest/test-result': 29.6.0 '@jest/types': 29.6.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -8972,7 +8984,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true @@ -8981,13 +8993,13 @@ packages: resolution: {integrity: sha512-oiQHH1SnKmZIwwPnpOrXTq4kHBk3lKGY/07DpnH0sAu+x7J8rXlbLDROZsU6vy9GwB0hPiZeZpu6YlJ48QoKcA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 jest-util: 29.6.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.6.0(@types/node@20.3.3)(ts-node@10.9.1): + /jest@29.6.0(@types/node@20.4.0)(ts-node@10.9.1): resolution: {integrity: sha512-do1J9gGrQ68E4UfMz/4OM71p9qCqQxu32N/9ZfeYFSSlx0uUOuxeyZxtJZNaUTW12ZA11ERhmBjBhy1Ho96R4g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -9000,7 +9012,7 @@ packages: '@jest/core': 29.6.0(ts-node@10.9.1) '@jest/types': 29.6.0 import-local: 3.1.0 - jest-cli: 29.6.0(@types/node@20.3.3)(ts-node@10.9.1) + jest-cli: 29.6.0(@types/node@20.4.0)(ts-node@10.9.1) transitivePeerDependencies: - '@types/node' - supports-color @@ -9464,6 +9476,13 @@ packages: wrap-ansi: 7.0.0 dev: true + /load-pkg@4.0.0: + resolution: {integrity: sha512-xS6uYdbUzHbwO5bExhtM8RsU6Z/fVEfZE4uZpWQOwVygLSUfXz7J97nGzJfZ+FFCZc0Weabn/wA3y1k9Q7Y4mw==} + engines: {node: '>=8'} + dependencies: + find-pkg: 2.0.0 + dev: false + /loader-runner@4.3.0: resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} engines: {node: '>=6.11.5'} @@ -10445,7 +10464,6 @@ packages: /parse-passwd@1.0.0: resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==} engines: {node: '>=0.10.0'} - dev: true /parse5@7.1.2: resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} @@ -10939,7 +10957,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.3.3 + '@types/node': 20.4.0 long: 5.2.3 dev: false optional: true @@ -11357,7 +11375,6 @@ packages: dependencies: expand-tilde: 2.0.2 global-modules: 1.0.0 - dev: true /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} @@ -12070,7 +12087,7 @@ packages: resolution: {integrity: sha512-nyVumI9TXqr+B32397lLHF8VPbTWNvCF/rdY6oLXHLZr+7S8q2PJzo2TUvfowD0eSNz5Hz0O0I2kw9Qb2EyGQA==} engines: {node: '>=12.*'} dependencies: - '@types/node': 20.3.3 + '@types/node': 20.4.0 qs: 6.11.2 dev: false @@ -12450,7 +12467,7 @@ packages: code-block-writer: 12.0.0 dev: false - /ts-node@10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.3): + /ts-node@10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.3): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -12470,7 +12487,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.3.3 + '@types/node': 20.4.0 acorn: 8.9.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -12482,7 +12499,7 @@ packages: yn: 3.1.1 dev: true - /ts-node@10.9.1(@swc/core@1.3.68)(@types/node@20.3.3)(typescript@5.1.6): + /ts-node@10.9.1(@swc/core@1.3.68)(@types/node@20.4.0)(typescript@5.1.6): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -12502,7 +12519,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.3.3 + '@types/node': 20.4.0 acorn: 8.9.0 acorn-walk: 8.2.0 arg: 4.1.3 diff --git a/src/common/constant/string.constants.ts b/src/common/constant/string.constants.ts index 2658b8f1..c887c5c9 100644 --- a/src/common/constant/string.constants.ts +++ b/src/common/constant/string.constants.ts @@ -1,6 +1,7 @@ import { capitalize } from "helper-fns"; +import pkg from "load-pkg"; + -export const APP_NAME = "nestify"; export const REQUEST_ID_TOKEN_HEADER = "x-request-id"; export const VERSION_VALIDATION_MESSAGE = 'Version must start with "v" followed by a number.'; @@ -11,11 +12,14 @@ export const MULTER_IMAGE_FILTER = "Only image files are allowed!."; export const API_UNAUTHORISED_RESPONSE = "No auth token in request."; // swagger constants +const packageJson = pkg.sync(); + +export const APP_NAME = packageJson.name; +export const SWAGGER_API_CURRENT_VERSION = packageJson.version; +export const SWAGGER_DESCRIPTION = packageJson.description; export const SWAGGER_TITLE = `${capitalize(APP_NAME)} API Documentation`; export const SWAGGER_API_ENDPOINT = "doc"; -export const SWAGGER_API_CURRENT_VERSION = "1.9.6"; -export const SWAGGER_DESCRIPTION = "NestJS + MikroORM blog example with batteries included"; // available values constants export const SES_REGIONS = [ diff --git a/temp/BaseEntity.js.json b/temp/BaseEntity.js.json index 33df2af2..e0a46f41 100644 --- a/temp/BaseEntity.js.json +++ b/temp/BaseEntity.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"id":{"name":"id","reference":"scalar","primary":true,"hidden":true,"type":"number","array":false},"idx":{"name":"idx","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"isActive":{"name":"isActive","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"isDeleted":{"name":"isDeleted","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"deletedAt":{"name":"deletedAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},"createdAt":{"name":"createdAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},"updatedAt":{"name":"updatedAt","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"id","reference":"scalar","primary":true,"hidden":true,"type":"number","array":false},{"name":"idx","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isActive","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"isDeleted","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"deletedAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},{"name":"createdAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},{"name":"updatedAt","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":["id"],"filters":{},"hooks":{},"indexes":[{"properties":"id"},{"properties":"idx"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"BaseEntity","path":"./dist/common/database/base.entity.js","abstract":true,"constructorParams":[],"toJsonParams":[],"useCache":true,"compositePK":false,"simplePK":true,"relations":[]},"origin":"./dist/common/database/base.entity.js","hash":"b97c1789361e046ff9750a93019565d4","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"id":{"name":"id","reference":"scalar","primary":true,"hidden":true,"index":true,"type":"number","array":false},"idx":{"name":"idx","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"isActive":{"name":"isActive","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"isDeleted":{"name":"isDeleted","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"deletedAt":{"name":"deletedAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},"createdAt":{"name":"createdAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},"updatedAt":{"name":"updatedAt","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"id","reference":"scalar","primary":true,"hidden":true,"index":true,"type":"number","array":false},{"name":"idx","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isActive","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"isDeleted","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"deletedAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},{"name":"createdAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true},{"name":"updatedAt","reference":"scalar","hidden":true,"getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":["id"],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"BaseEntity","path":"./dist/common/database/base.entity.js","abstract":true,"constructorParams":[],"toJsonParams":[],"useCache":true,"compositePK":false,"simplePK":true,"relations":[]},"origin":"./dist/common/database/base.entity.js","hash":"0a512305f18ebe86f440150896ef51f0","version":"5.7.12"} diff --git a/temp/Category.js.json b/temp/Category.js.json index 8c472e7c..fbe691bf 100644 --- a/temp/Category.js.json +++ b/temp/Category.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"name":{"name":"name","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"posts":{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}},"props":[{"name":"name","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"name"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Category","path":"./dist/entities/category.entity.js","name":"Category","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"collection":"category"},"origin":"./dist/entities/category.entity.js","hash":"2d7b0f82833b7cdf99022c6e1e1d2816","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"name":{"name":"name","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"posts":{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}},"props":[{"name":"name","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Category","path":"./dist/entities/category.entity.js","name":"Category","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"collection":"category"},"origin":"./dist/entities/category.entity.js","hash":"fc4f3683c61704e000098ea26e174c85","version":"5.7.12"} diff --git a/temp/Comment.js.json b/temp/Comment.js.json index 87108535..df2c812b 100644 --- a/temp/Comment.js.json +++ b/temp/Comment.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"body":{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"post":{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},"author":{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false}},"props":[{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"author"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Comment","path":"./dist/entities/comment.entity.js","name":"Comment","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false}],"collection":"comment"},"origin":"./dist/entities/comment.entity.js","hash":"713137cc040fae2b48f8436533c8963e","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"body":{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"post":{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},"author":{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false}},"props":[{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Comment","path":"./dist/entities/comment.entity.js","name":"Comment","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"post","reference":"m:1","cascade":["persist"],"eager":false,"type":"Post","owner":true,"array":false},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false}],"collection":"comment"},"origin":"./dist/entities/comment.entity.js","hash":"68720b550ef47caff5316fb0b69a1ab8","version":"5.7.12"} diff --git a/temp/Conversation.js.json b/temp/Conversation.js.json index c24ce814..3a6ff45b 100644 --- a/temp/Conversation.js.json +++ b/temp/Conversation.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"chatName":{"name":"chatName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"users":{"name":"users","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},"messages":{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}},"props":[{"name":"chatName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"users","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"chatName"},{"properties":"users"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Conversation","path":"./dist/entities/conversation.entity.js","name":"Conversation","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"users","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}],"collection":"conversation"},"origin":"./dist/entities/conversation.entity.js","hash":"d6850614647ac717330d3d88f07ac968","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"chatName":{"name":"chatName","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},"users":{"name":"users","reference":"m:n","cascade":["persist"],"index":true,"type":"User","fixedOrder":false,"array":false},"messages":{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}},"props":[{"name":"chatName","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"users","reference":"m:n","cascade":["persist"],"index":true,"type":"User","fixedOrder":false,"array":false},{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Conversation","path":"./dist/entities/conversation.entity.js","name":"Conversation","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"users","reference":"m:n","cascade":["persist"],"index":true,"type":"User","fixedOrder":false,"array":false},{"name":"messages","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"nullable":true,"type":"Message","array":false}],"collection":"conversation"},"origin":"./dist/entities/conversation.entity.js","hash":"c7ed2280f935143d35c9daebb1ca7250","version":"5.7.12"} diff --git a/temp/Message.js.json b/temp/Message.js.json index 0732735a..fa0928ee 100644 --- a/temp/Message.js.json +++ b/temp/Message.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"body":{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"sender":{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},"conversation":{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"type":"Conversation","owner":true,"array":false},"isRead":{"name":"isRead","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"readAt":{"name":"readAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"type":"Conversation","owner":true,"array":false},{"name":"isRead","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"readAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"sender"},{"properties":"conversation"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Message","path":"./dist/entities/message.entity.js","name":"Message","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"type":"Conversation","owner":true,"array":false}],"collection":"message"},"origin":"./dist/entities/message.entity.js","hash":"8ae600844fa37854ce8da47b8ecc8aa7","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"body":{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"sender":{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},"conversation":{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"Conversation","owner":true,"array":false},"isRead":{"name":"isRead","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"readAt":{"name":"readAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"body","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"Conversation","owner":true,"array":false},{"name":"isRead","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"readAt","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Message","path":"./dist/entities/message.entity.js","name":"Message","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"sender","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},{"name":"conversation","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"Conversation","owner":true,"array":false}],"collection":"message"},"origin":"./dist/entities/message.entity.js","hash":"963a25eef622ea82d6b15e3427e2c968","version":"5.7.12"} diff --git a/temp/NewsLetter.js.json b/temp/NewsLetter.js.json index 54c7211b..ac6d0bc0 100644 --- a/temp/NewsLetter.js.json +++ b/temp/NewsLetter.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"name":{"name":"name","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"content":{"name":"content","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"sentAt":{"name":"sentAt","reference":"scalar","type":"date","nullable":true,"getter":false,"setter":false,"array":false,"optional":true}},"props":[{"name":"name","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"content","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"sentAt","reference":"scalar","type":"date","nullable":true,"getter":false,"setter":false,"array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"name"}],"uniques":[{"properties":"name"}],"checks":[],"concurrencyCheckKeys":{},"className":"NewsLetter","path":"./dist/entities/news-letter.entity.js","name":"NewsLetter","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[],"collection":"news_letter"},"origin":"./dist/entities/news-letter.entity.js","hash":"98f8f7e0a623db5443f91365f0cb7a9e","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"name":{"name":"name","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},"content":{"name":"content","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"sentAt":{"name":"sentAt","reference":"scalar","type":"date","nullable":true,"getter":false,"setter":false,"array":false,"optional":true}},"props":[{"name":"name","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"content","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"sentAt","reference":"scalar","type":"date","nullable":true,"getter":false,"setter":false,"array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"NewsLetter","path":"./dist/entities/news-letter.entity.js","name":"NewsLetter","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[],"collection":"news_letter"},"origin":"./dist/entities/news-letter.entity.js","hash":"302f649f5d9512bcda018ad533cd65e8","version":"5.7.12"} diff --git a/temp/OtpLog.js.json b/temp/OtpLog.js.json index c58580d9..ec457a0f 100644 --- a/temp/OtpLog.js.json +++ b/temp/OtpLog.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"expiresIn":{"name":"expiresIn","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false},"otpCode":{"name":"otpCode","reference":"scalar","length":20,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"user":{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},"isUsed":{"name":"isUsed","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true}},"props":[{"name":"expiresIn","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false},{"name":"otpCode","reference":"scalar","length":20,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},{"name":"isUsed","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"otpCode"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"OtpLog","path":"./dist/entities/otp-log.entity.js","name":"OtpLog","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false}],"collection":"otp_log"},"origin":"./dist/entities/otp-log.entity.js","hash":"3078cdaf651434455ef98afb5304df3c","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"expiresIn":{"name":"expiresIn","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false},"otpCode":{"name":"otpCode","reference":"scalar","length":20,"index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"user":{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},"isUsed":{"name":"isUsed","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true}},"props":[{"name":"expiresIn","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false},{"name":"otpCode","reference":"scalar","length":20,"index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},{"name":"isUsed","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"OtpLog","path":"./dist/entities/otp-log.entity.js","name":"OtpLog","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"user","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false}],"collection":"otp_log"},"origin":"./dist/entities/otp-log.entity.js","hash":"11fc28a3ce56ef992e476e365c6d8dc4","version":"5.7.12"} diff --git a/temp/Post.js.json b/temp/Post.js.json index 33f71c75..30a34a10 100644 --- a/temp/Post.js.json +++ b/temp/Post.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"slug":{"name":"slug","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"title":{"name":"title","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},"content":{"name":"content","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},"readingTime":{"name":"readingTime","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"readCount":{"name":"readCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"favoritesCount":{"name":"favoritesCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"author":{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},"comments":{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},"tags":{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},"categories":{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false},"state":{"name":"state","reference":"scalar","enum":true,"items":["DRAFT","PUBLISHED"],"type":"any","array":false,"optional":true}},"props":[{"name":"slug","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"title","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},{"name":"content","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},{"name":"readingTime","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"readCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"favoritesCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false},{"name":"state","reference":"scalar","enum":true,"items":["DRAFT","PUBLISHED"],"type":"any","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpdate":["generateSlug"],"beforeCreate":["generateSlug"],"beforeUpsert":["generateSlug"]},"indexes":[{"properties":"slug"},{"properties":"title"},{"properties":"author"}],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Post","path":"./dist/entities/post.entity.js","name":"Post","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"type":"User","owner":true,"array":false},{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false}],"collection":"post"},"origin":"./dist/entities/post.entity.js","hash":"59728aa7c8c7d4903004ef41ccec0a83","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"slug":{"name":"slug","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"title":{"name":"title","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},"content":{"name":"content","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},"readingTime":{"name":"readingTime","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"readCount":{"name":"readCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"favoritesCount":{"name":"favoritesCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},"author":{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},"comments":{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},"tags":{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},"categories":{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false},"state":{"name":"state","reference":"scalar","enum":true,"items":["DRAFT","PUBLISHED"],"type":"any","array":false,"optional":true}},"props":[{"name":"slug","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"title","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},{"name":"content","reference":"scalar","type":"text","getter":false,"setter":false,"array":false},{"name":"readingTime","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"readCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"favoritesCount","reference":"scalar","getter":false,"setter":false,"type":"number","array":false,"optional":true},{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false},{"name":"state","reference":"scalar","enum":true,"items":["DRAFT","PUBLISHED"],"type":"any","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpdate":["generateSlug"],"beforeCreate":["generateSlug"],"beforeUpsert":["generateSlug"]},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Post","path":"./dist/entities/post.entity.js","name":"Post","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"author","reference":"m:1","cascade":["persist"],"eager":false,"index":true,"type":"User","owner":true,"array":false},{"name":"comments","reference":"1:m","cascade":["persist"],"eager":false,"orphanRemoval":true,"nullable":true,"type":"Comment","array":false},{"name":"tags","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Tag","fixedOrder":false,"array":false},{"name":"categories","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"posts","type":"Category","fixedOrder":false,"array":false}],"collection":"post"},"origin":"./dist/entities/post.entity.js","hash":"1bcdff0468d26c0786e94e3dec2c64c6","version":"5.7.12"} diff --git a/temp/Social.js.json b/temp/Social.js.json index 6239509e..11e59717 100644 --- a/temp/Social.js.json +++ b/temp/Social.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"twitter":{"name":"twitter","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"facebook":{"name":"facebook","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"linkedin":{"name":"linkedin","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true}},"props":[{"name":"twitter","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"facebook","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"linkedin","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Social","path":"./dist/entities/user.entity.js","name":"Social","embeddable":true,"abstract":false,"constructorParams":[],"toJsonParams":[],"useCache":true,"relations":[],"collection":"social"},"origin":"./dist/entities/user.entity.js","hash":"c023d62e137e51bb3fef9d7d44401ce2","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"twitter":{"name":"twitter","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"facebook":{"name":"facebook","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"linkedin":{"name":"linkedin","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true}},"props":[{"name":"twitter","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"facebook","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"linkedin","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Social","path":"./dist/entities/user.entity.js","name":"Social","embeddable":true,"abstract":false,"constructorParams":[],"toJsonParams":[],"useCache":true,"relations":[],"collection":"social"},"origin":"./dist/entities/user.entity.js","hash":"a6c08be1f8338e182a288a2f2a653d82","version":"5.7.12"} diff --git a/temp/Subscriber.js.json b/temp/Subscriber.js.json index e0d06bf6..fef23060 100644 --- a/temp/Subscriber.js.json +++ b/temp/Subscriber.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"email":{"name":"email","reference":"scalar","getter":false,"setter":false,"type":"string","array":false}},"props":[{"name":"email","reference":"scalar","getter":false,"setter":false,"type":"string","array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[{"properties":"email"}],"uniques":[{"properties":"email"}],"checks":[],"concurrencyCheckKeys":{},"className":"Subscriber","path":"./dist/entities/subscribers.entity.js","name":"Subscriber","abstract":false,"constructorParams":[],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[],"collection":"subscriber"},"origin":"./dist/entities/subscribers.entity.js","hash":"1c714992b6a7e4058b153561a025260c","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"email":{"name":"email","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false}},"props":[{"name":"email","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false}],"primaryKeys":[],"filters":{},"hooks":{},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Subscriber","path":"./dist/entities/subscribers.entity.js","name":"Subscriber","abstract":false,"constructorParams":[],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[],"collection":"subscriber"},"origin":"./dist/entities/subscribers.entity.js","hash":"e5e39399d25968164f1f24674615db83","version":"5.7.12"} diff --git a/temp/Tag.js.json b/temp/Tag.js.json index bb3bd000..85dea14c 100644 --- a/temp/Tag.js.json +++ b/temp/Tag.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"title":{"name":"title","reference":"scalar","length":50,"getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"slug":{"name":"slug","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"posts":{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}},"props":[{"name":"title","reference":"scalar","length":50,"getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"slug","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpdate":["generateSlug"],"beforeUpsert":["generateSlug"],"beforeCreate":["generateSlug"]},"indexes":[{"properties":"title"},{"properties":"slug"}],"uniques":[{"properties":"title"}],"checks":[],"concurrencyCheckKeys":{},"className":"Tag","path":"./dist/entities/tag.entity.js","name":"Tag","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"collection":"tag"},"origin":"./dist/entities/tag.entity.js","hash":"17adc31f7e2c98277bae4e4dc5868fd6","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"title":{"name":"title","reference":"scalar","length":50,"index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},"description":{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"slug":{"name":"slug","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"posts":{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}},"props":[{"name":"title","reference":"scalar","length":50,"index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"description","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"slug","reference":"scalar","index":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpdate":["generateSlug"],"beforeUpsert":["generateSlug"],"beforeCreate":["generateSlug"]},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"Tag","path":"./dist/entities/tag.entity.js","name":"Tag","abstract":false,"constructorParams":["partial"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"m:n","cascade":["persist"],"type":"Post","fixedOrder":false,"array":false}],"collection":"tag"},"origin":"./dist/entities/tag.entity.js","hash":"11672de06200cacbe30a320e4549da16","version":"5.7.12"} diff --git a/temp/User.js.json b/temp/User.js.json index 6ada164a..c21dbfc1 100644 --- a/temp/User.js.json +++ b/temp/User.js.json @@ -1 +1 @@ -{"data":{"propertyOrder":{},"properties":{"firstName":{"name":"firstName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"middleName":{"name":"middleName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"lastName":{"name":"lastName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"username":{"name":"username","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"email":{"name":"email","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"bio":{"name":"bio","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"avatar":{"name":"avatar","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"password":{"name":"password","reference":"scalar","hidden":true,"lazy":true,"getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"twoFactorSecret":{"name":"twoFactorSecret","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"isTwoFactorEnabled":{"name":"isTwoFactorEnabled","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"roles":{"name":"roles","reference":"scalar","enum":false,"items":["ADMIN","AUTHOR"],"array":true,"default":["AUTHOR"],"type":"Roles[]","customType":"customType","optional":true},"mobileNumber":{"name":"mobileNumber","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"isVerified":{"name":"isVerified","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"posts":{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},"conversations":{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},"favorites":{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},"social":{"name":"social","type":"Social","reference":"embedded","object":true,"nullable":true,"prefix":true,"array":false,"optional":true},"followers":{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},"followed":{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},"lastLogin":{"name":"lastLogin","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"firstName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"middleName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"lastName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"username","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"email","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"bio","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"avatar","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"password","reference":"scalar","hidden":true,"lazy":true,"getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"twoFactorSecret","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isTwoFactorEnabled","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"roles","reference":"scalar","enum":false,"items":["ADMIN","AUTHOR"],"array":true,"default":["AUTHOR"],"type":"Roles[]","customType":"customType","optional":true},{"name":"mobileNumber","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isVerified","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},{"name":"social","type":"Social","reference":"embedded","object":true,"nullable":true,"prefix":true,"array":false,"optional":true},{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},{"name":"lastLogin","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpsert":["hashPassword"],"beforeUpdate":["hashPassword"],"beforeCreate":["hashPassword"]},"indexes":[{"properties":"username"},{"properties":"email"}],"uniques":[{"properties":"username"},{"properties":"email"},{"properties":"mobileNumber"}],"checks":[],"concurrencyCheckKeys":{},"className":"User","path":"./dist/entities/user.entity.js","name":"User","abstract":false,"constructorParams":["data"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false}],"collection":"user"},"origin":"./dist/entities/user.entity.js","hash":"c023d62e137e51bb3fef9d7d44401ce2","version":"5.7.12"} +{"data":{"propertyOrder":{},"properties":{"firstName":{"name":"firstName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"middleName":{"name":"middleName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"lastName":{"name":"lastName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},"username":{"name":"username","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},"email":{"name":"email","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},"bio":{"name":"bio","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"avatar":{"name":"avatar","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"password":{"name":"password","reference":"scalar","hidden":true,"lazy":true,"getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},"twoFactorSecret":{"name":"twoFactorSecret","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},"isTwoFactorEnabled":{"name":"isTwoFactorEnabled","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"roles":{"name":"roles","reference":"scalar","enum":false,"items":["ADMIN","AUTHOR"],"array":true,"type":"Roles[]","customType":"customType","optional":true},"mobileNumber":{"name":"mobileNumber","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},"isVerified":{"name":"isVerified","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},"posts":{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},"conversations":{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},"favorites":{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},"social":{"name":"social","type":"Social","reference":"embedded","object":true,"nullable":true,"prefix":true,"array":false,"optional":true},"followers":{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},"followed":{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},"lastLogin":{"name":"lastLogin","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}},"props":[{"name":"firstName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"middleName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"lastName","reference":"scalar","getter":false,"setter":false,"type":"string","array":false},{"name":"username","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"email","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false},{"name":"bio","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"avatar","reference":"scalar","getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"password","reference":"scalar","hidden":true,"lazy":true,"getter":false,"setter":false,"type":"string","columnTypes":["text"],"array":false},{"name":"twoFactorSecret","reference":"scalar","getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isTwoFactorEnabled","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"roles","reference":"scalar","enum":false,"items":["ADMIN","AUTHOR"],"array":true,"type":"Roles[]","customType":"customType","optional":true},{"name":"mobileNumber","reference":"scalar","index":true,"unique":true,"getter":false,"setter":false,"type":"string","array":false,"optional":true},{"name":"isVerified","reference":"scalar","getter":false,"setter":false,"type":"boolean","array":false,"optional":true},{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},{"name":"social","type":"Social","reference":"embedded","object":true,"nullable":true,"prefix":true,"array":false,"optional":true},{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false},{"name":"lastLogin","reference":"scalar","getter":false,"setter":false,"type":"Date","array":false,"optional":true}],"primaryKeys":[],"filters":{},"hooks":{"beforeUpsert":["hashPassword"],"beforeUpdate":["hashPassword"],"beforeCreate":["hashPassword"]},"indexes":[],"uniques":[],"checks":[],"concurrencyCheckKeys":{},"className":"User","path":"./dist/entities/user.entity.js","name":"User","abstract":false,"constructorParams":["data"],"toJsonParams":[],"extends":"BaseEntity","useCache":true,"relations":[{"name":"posts","reference":"1:m","cascade":["persist"],"orphanRemoval":true,"eager":false,"nullable":true,"type":"Post","array":false},{"name":"conversations","reference":"m:n","cascade":["persist"],"owner":true,"inversedBy":"users","type":"Conversation","fixedOrder":false,"array":false},{"name":"favorites","reference":"m:n","cascade":["persist"],"hidden":true,"type":"Post","fixedOrder":false,"owner":true,"array":false},{"name":"followers","reference":"m:n","cascade":["persist"],"owner":true,"pivotTable":"user_to_follower","hidden":true,"type":"User","fixedOrder":false,"joinColumns":["follower"],"inverseJoinColumns":["following"],"array":false},{"name":"followed","reference":"m:n","cascade":["persist"],"type":"User","fixedOrder":false,"array":false}],"collection":"user"},"origin":"./dist/entities/user.entity.js","hash":"a6c08be1f8338e182a288a2f2a653d82","version":"5.7.12"}